ahdjs 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+ stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
3
+ addons: [
4
+ "@storybook/addon-links",
5
+ "@storybook/addon-essentials",
6
+ "@storybook/addon-interactions",
7
+ "@storybook/preset-scss",
8
+ ],
9
+ framework: "@storybook/html",
10
+ core: {
11
+ builder: "@storybook/builder-webpack5",
12
+ },
13
+ };
@@ -0,0 +1,9 @@
1
+ export const parameters = {
2
+ actions: { argTypesRegex: "^on[A-Z].*" },
3
+ controls: {
4
+ matchers: {
5
+ color: /(background|color)$/i,
6
+ date: /Date$/,
7
+ },
8
+ },
9
+ }
@@ -0,0 +1,76 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at opensource@hodgef.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
@@ -0,0 +1,15 @@
1
+ # Contributing
2
+
3
+ When contributing to this repository, please first discuss the change you wish to make via issue,
4
+ email, or any other method with the owners of this repository before working on a change.
5
+
6
+ Please note we have a code of conduct, please follow it in all your interactions with the project.
7
+
8
+ ## Pull Request Guidelines
9
+
10
+ 1. Please ensure your proposal will not radically change current functionality or bring along breaking changes.
11
+ 2. PRs only consisting of typo fixes (or other automated contributions), will not be accepted.
12
+ 3. Do not add any dependencies to the project.
13
+ 4. Document your changes thoroughly.
14
+ 5. Ensure coverage is complete (`npm run coverage` should show 100% coverage) and that none of the tests fail.
15
+ 6. Be reactive to any comments, reviews or change requests entered in your pull request.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Ishaan Puniani
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,64 @@
1
+
2
+
3
+ <a href="https://www.npmjs.com/package/@hodgef/ts-library-boilerplate-basic"><img src="https://badgen.net/npm/v/@hodgef/ts-library-boilerplate-basic?color=blue" alt="npm version"></a> <a href="https://github.com/hodgef/ts-library-boilerplate"><img src="https://img.shields.io/github/last-commit/hodgef/ts-library-boilerplate" alt="latest commit"></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"><img alt="Build Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Build/badge.svg?color=green" /></a> <a href="https://github.com/hodgef/ts-library-boilerplate-basic/actions"> <img alt="Publish Status" src="https://github.com/hodgef/ts-library-boilerplate-basic/workflows/Publish/badge.svg?color=green" /></a>
4
+
5
+ <strong>For a plain Javascript alternative, check out [js-library-boilerplate-basic](https://github.com/hodgef/js-library-boilerplate-basic).</strong>
6
+
7
+ </div>
8
+
9
+ ## ⭐️ Features
10
+
11
+ - Webpack 5
12
+ - Babel 7
13
+ - Hot reloading (`npm start`)
14
+ - Automatic Types file generation (index.d.ts)
15
+ - UMD exports, so your library works everywhere.
16
+ - Jest unit testing
17
+ - Customizable file headers for your build [(Example 1)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/index.js) [(Example2)](https://github.com/hodgef/ts-library-boilerplate-basic/blob/master/build/css/index.css)
18
+ - Daily [dependabot](https://dependabot.com) dependency updates
19
+
20
+ ## 📦 Getting Started
21
+
22
+ ```
23
+ git clone https://github.com/hodgef/ts-library-boilerplate-basic.git myLibrary
24
+ npm install
25
+ ```
26
+
27
+ ## 💎 Customization
28
+
29
+ > Before shipping, make sure to:
30
+
31
+ 1. Edit `LICENSE` file
32
+ 2. Edit `package.json` information (These will be used to generate the headers for your built files)
33
+ 3. Edit `library: "MyLibrary"` with your library's export name in `./webpack.config.js`
34
+
35
+ ## 🚀 Deployment
36
+
37
+ 1. `npm publish`
38
+ 2. Your users can include your library as usual
39
+
40
+ ### npm
41
+
42
+ ```
43
+ import MyLibrary from 'my-library';
44
+ const libraryInstance = new MyLibrary();
45
+ ...
46
+ ```
47
+
48
+ ### self-host/cdn
49
+
50
+ ```
51
+ <script src="build/index.js"></script>
52
+
53
+ const MyLibrary = window.MyLibrary.default;
54
+ const libraryInstance = new MyLibrary();
55
+ ...
56
+ ```
57
+
58
+ ## ✅ Libraries built with this boilerplate
59
+
60
+ > Made a library using this starter kit? Share it here by [submitting a pull request](https://github.com/hodgef/ts-library-boilerplate-basic/pulls)!
61
+
62
+ - [simple-keyboard](https://github.com/hodgef/simple-keyboard) - Javascript Virtual Keyboard
63
+ - [react-simple-keyboard](https://github.com/hodgef/react-simple-keyboard) - React Virtual Keyboard
64
+ - [simple-keyboard-layouts](https://github.com/hodgef/simple-keyboard-layouts) - Keyboard layouts for simple-keyboard
@@ -0,0 +1,12 @@
1
+ /*!
2
+ *
3
+ * ahdjs v0.0.6
4
+ *
5
+ *
6
+ * Copyright (c) Ishaan Puniani (https://github.com/ishaan-puniani) and project contributors.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */.gc .gc-relative{position:relative}.gc .gc-fixed{position:fixed}.gc.gc-loading .gc-control,.gc.gc-loading .gc-interaction,.gc.gc-loading .gc-tooltip{display:none}.gc-overlay{bottom:0;box-sizing:content-box;left:0;opacity:.4;pointer-events:none;position:fixed;right:0;top:0;z-index:6400}.gc-overlay svg{fill:#222;height:100%;width:100%}.gc-overlay svg path{pointer-events:fill}.gc-control{background-color:transparent;box-sizing:content-box;-moz-transition:all .3s ease-out;-o-transition:all .3s ease-out;-webkit-transition:all .3s ease-out;transition:all .3s ease-out;visibility:hidden;z-index:6404}.gc-control,.gc-interaction{position:absolute}.gc-interaction.gc-disable{cursor:inherit;filter:alpha(opacity=0);opacity:0;z-index:6403}.gc-interaction.gc-disable,.gc-tooltip{background-color:#fff;position:absolute}.gc-tooltip{border-radius:3px;box-shadow:0 1px 10px rgba(0,0,0,.4);box-sizing:content-box;max-width:550px;min-width:300px;padding:25px;-moz-transition:opacity .1s ease-out;-o-transition:opacity .1s ease-out;-webkit-transition:opacity .1s ease-out;transition:opacity .1s ease-out;visibility:visible}.gc-tooltip[data-guidechimp-position=top]{margin-bottom:10px}.gc-tooltip[data-guidechimp-position=left],.gc-tooltip[data-guidechimp-position=right]{margin:0 10px}.gc-tooltip[data-guidechimp-position=bottom]{margin-top:10px}.gc-tooltip[data-guidechimp-alignment=right]{margin-left:5px}.gc-tooltip[data-guidechimp-alignment=left]{margin-right:5px}.gc-tooltip-tail{border:6px solid transparent;content:"";position:absolute}.gc-tooltip[data-guidechimp-position=top] .gc-tooltip-tail{border-top-color:#fff;bottom:-10px}.gc-tooltip[data-guidechimp-position=top][data-guidechimp-alignment=right] .gc-tooltip-tail{border-top-color:#fff;bottom:-10px;right:10px}.gc-tooltip[data-guidechimp-position=top][data-guidechimp-alignment=middle] .gc-tooltip-tail{border-top-color:#fff;bottom:-10px;left:50%;margin-left:-5px}.gc-tooltip[data-guidechimp-position=left] .gc-tooltip-tail{border-left-color:#fff;right:-10px;top:10px}.gc-tooltip[data-guidechimp-position=right] .gc-tooltip-tail{border-right-color:#fff;left:-10px;top:10px}.gc-tooltip[data-guidechimp-position=bottom] .gc-tooltip-tail{border-bottom-color:#fff;top:-10px}.gc-tooltip[data-guidechimp-position=bottom][data-guidechimp-alignment=right] .gc-tooltip-tail{border-bottom-color:#fff;right:10px;top:-10px}.gc-tooltip[data-guidechimp-position=bottom][data-guidechimp-alignment=middle] .gc-tooltip-tail{border-bottom-color:#fff;left:50%;margin-left:-5px;top:-10px}.gc-close{cursor:pointer;display:inline-block;height:15px;margin:10px;opacity:.4;overflow:hidden;position:absolute;right:0;top:0;width:15px}.gc-close:hover{opacity:1}.gc-close:after,.gc-close:before{background:#000;border-radius:5px;content:"";height:2px;left:0;margin-top:-1px;position:absolute;top:50%;width:100%}.gc-close:before{transform:rotate(45deg)}.gc-close:after{transform:rotate(-45deg)}.gc-progressbar{background-color:#e14817;border-radius:2px 0 0 0;box-sizing:content-box;float:left;font-size:10px;height:5px;left:0;line-height:10px;position:absolute;text-align:center;top:0;width:0}.gc-progressbar[aria-valuenow="100"]{border-radius:2px 2px 0 0}.gc-tooltip[data-guidechimp-position=bottom] .gc-progressbar{border-radius:0 0 0 2px;bottom:0;top:auto}.gc-tooltip[data-guidechimp-position=bottom] .gc-progressbar[aria-valuenow="100"]{border-radius:0 0 2px 2px}.gc-progressbar.gc-hidden{display:none}.gc-fake-step{height:0;left:50%;position:absolute;top:50%;width:0}.gc-title{font-size:18px;font-weight:700;margin-bottom:20px;padding:0 5px}.gc-title.gc-hidden{display:none}.gc-description{font-size:14px;margin-bottom:20px;max-height:200px;overflow-y:auto;padding:0 5px;scroll-behavior:smooth;text-align:justify}.gc-description.gc-hidden{display:none}.gc-custom-buttons{margin-bottom:20px}.gc-custom-buttons.gc-hidden{display:none}.gc-navigation{display:flex;justify-content:space-between;padding:20px 10px 10px}.gc-navigation.gc-hidden{display:none}.gc-navigation-next,.gc-navigation-prev{border-bottom:5px solid #bebebe;border-right:5px solid #bebebe;cursor:pointer;height:15px;width:15px}.gc-navigation-next:hover,.gc-navigation-prev:hover{border-color:#e14817;opacity:1}.gc-navigation-next.gc-hidden,.gc-navigation-prev.gc-hidden{visibility:hidden}.gc-navigation-prev{transform:rotate(-225deg)}.gc-navigation-next{transform:rotate(-45deg)}.gc-pagination.gc-hidden{visibility:hidden}.gc-pagination-theme-numbers{align-items:center;display:flex;justify-content:center;margin:0;padding:0}.gc-pagination-theme-numbers .gc-pagination-dots,.gc-pagination-theme-numbers .gc-pagination-item{align-items:center;cursor:pointer;display:flex;font-size:14px;justify-content:center;margin:0 5px}.gc-pagination-theme-numbers .gc-pagination-dots{color:#e14817;cursor:auto;height:20px;width:20px}.gc-pagination-theme-numbers .gc-pagination-item{border-radius:2px;height:20px;width:20px}.gc-pagination-theme-numbers .gc-pagination-item.gc-pagination-active,.gc-pagination-theme-numbers .gc-pagination-item:hover{background:#e14817;color:#fff}.gc-pagination-theme-circles .gc-pagination-item{background-color:#bebebe;border-radius:50%;box-sizing:border-box;cursor:pointer;display:inline-block;height:8px;margin:0 5px;padding:0;width:8px}.gc-pagination-theme-circles .gc-pagination-item.gc-pagination-active,.gc-pagination-theme-circles .gc-pagination-item:hover{background-color:#e14817}.gc-copyright{left:0;margin:0 0 5px 10px}.gc-copyright,.gc-notification{bottom:0;color:#888;font-family:Arial,serif;font-size:10px;letter-spacing:.1em;position:absolute}.gc-notification{margin:0 10px 5px 0;right:0}.gc-notification a.gc-link{color:#888}.gc-preloader{height:80px;left:50%;position:fixed;top:50%;transform:translate(-50%,-50%);width:80px;z-index:6405}.gc-preloader:after{animation:gc-preloader 1.2s linear infinite;border-color:#fff transparent;border-radius:50%;border-style:solid;border-width:6px;content:" ";display:block;height:64px;margin:8px;width:64px}.gc-preloader.gc-hidden{display:none}@keyframes gc-preloader{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media(max-width:360px){.gc-tooltip{max-width:290px;min-width:260px}}.gc-information{border-radius:50%;cursor:pointer;height:10px;position:absolute;width:10px;z-index:64}.gc-information:before{background-color:transparent;border-radius:50%;content:"ℹ";font-size:24px;height:20px;left:0;position:absolute;top:0;width:20px}.gc-information[data-information-position=top-left][data-information-boundary=inner]{margin-left:3px;margin-top:3px}.gc-information[data-information-position=top][data-information-boundary=inner]{margin-top:3px}.gc-information[data-information-position=top][data-information-boundary=outer]{margin-top:-3px}.gc-information[data-information-position=top-right][data-information-boundary=inner]{margin-left:-3px;margin-top:3px}.gc-information[data-information-position=left][data-information-boundary=inner]{margin-left:3px}.gc-information[data-information-position=left][data-information-boundary=outer],.gc-information[data-information-position=right][data-information-boundary=inner]{margin-left:-3px}.gc-information[data-information-position=right][data-information-boundary=outer]{margin-left:3px}.gc-information[data-information-position=bottom-left][data-information-boundary=inner]{margin-left:3px;margin-top:-3px}.gc-information[data-information-position=bottom][data-information-boundary=inner]{margin-top:-3px}.gc-information[data-information-position=bottom][data-information-boundary=outer]{margin-top:3px}.gc-information[data-information-position=bottom-right][data-information-boundary=inner]{margin-left:-3px;margin-top:-3px}.gc-information-fixed{position:fixed}.gc-beacon{background:linear-gradient(#e14817,#b33912);box-shadow:0 0 1px rgba(0,0,0,.5);cursor:pointer;z-index:64}.gc-beacon,.gc-beacon:before{border-radius:50%;height:20px;position:absolute;width:20px}.gc-beacon:before{-webkit-animation:active 2s linear infinite;animation:beacon 2s linear infinite;background-color:transparent;box-shadow:0 0 3px 3px #ee7b57;content:"";left:0;top:0}.gc-beacon[data-beacon-position=top-left][data-beacon-boundary=inner]{margin-left:3px;margin-top:3px}.gc-beacon[data-beacon-position=top][data-beacon-boundary=inner]{margin-top:3px}.gc-beacon[data-beacon-position=top][data-beacon-boundary=outer]{margin-top:-3px}.gc-beacon[data-beacon-position=top-right][data-beacon-boundary=inner]{margin-left:-3px;margin-top:3px}.gc-beacon[data-beacon-position=left][data-beacon-boundary=inner]{margin-left:3px}.gc-beacon[data-beacon-position=left][data-beacon-boundary=outer],.gc-beacon[data-beacon-position=right][data-beacon-boundary=inner]{margin-left:-3px}.gc-beacon[data-beacon-position=right][data-beacon-boundary=outer]{margin-left:3px}.gc-beacon[data-beacon-position=bottom-left][data-beacon-boundary=inner]{margin-left:3px;margin-top:-3px}.gc-beacon[data-beacon-position=bottom][data-beacon-boundary=inner]{margin-top:-3px}.gc-beacon[data-beacon-position=bottom][data-beacon-boundary=outer]{margin-top:3px}.gc-beacon[data-beacon-position=bottom-right][data-beacon-boundary=inner]{margin-left:-3px;margin-top:-3px}.gc-beacon-fixed{position:fixed}@-webkit-keyframes beacon{0%{opacity:1;-webkit-transform:scale(.1)}70%{opacity:0;-webkit-transform:scale(2.5)}to{opacity:0}}@keyframes beacon{0%{opacity:1;transform:scale(.1)}70%{opacity:0;transform:scale(2.5)}to{opacity:0}}
12
+ /*# sourceMappingURL=index.css.map*/
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css/index.css","mappings":";;;;;;;;;;GACE,iBACE,kBAGF,cACE,eAYA,qFACE,aAKN,YAKE,SAEA,uBADA,OAEA,WACA,oBARA,eAGA,QADA,MADA,YAOA,CAEA,gBACE,UAEA,YADA,UACA,CAEA,qBACE,oBAKN,YASE,6BALA,uBACA,iCACA,+BACA,oCACA,4BALA,kBADA,YAOA,CAGF,4BAXE,iBAYA,CAEA,2BAEE,eAIA,wBAFA,UADA,YAGA,CAIJ,uCALI,sBAJA,iBAsBF,CAbF,YAWE,kBAEA,qCAVA,uBAEA,gBADA,gBAEA,aACA,qCACA,mCACA,wCACA,gCARA,kBAWA,CAEA,0CACE,mBAOF,uFACE,cAGF,6CACE,gBAGF,6CACE,gBAGF,4CACE,iBAIJ,iBAGE,6BADA,WADA,iBAEA,CAEA,2DAEE,sBADA,YACA,CAGF,4FAGE,sBADA,aADA,UAEA,CAGF,6FAIE,sBAHA,aACA,SACA,gBACA,CAGF,4DAGE,uBADA,YADA,QAEA,CAGF,6DAGE,wBADA,WADA,QAEA,CAGF,8DAEE,yBADA,SACA,CAGF,+FAGE,yBADA,WADA,SAEA,CAGF,gGAIE,yBAFA,SACA,iBAFA,SAGA,CAIJ,UASE,eALA,qBAGA,YACA,YAEA,WALA,gBAJA,kBAEA,QADA,MAIA,UAIA,CAEA,gBACE,UAGF,iCASE,gBADA,kBADA,WAFA,WAFA,OAGA,gBALA,kBACA,QAEA,UAKA,CAGF,iBACE,wBAGF,gBACE,yBAIJ,gBAYE,yBADA,wBAJA,uBADA,WALA,eAQA,WAJA,OAHA,iBACA,kBAOA,kBANA,MAIA,OCjNQ,CDuNR,qCACE,0BAGF,6DAGE,wBADA,SADA,QAEA,CAEA,kFACE,0BAIJ,0BACE,aAIJ,cAKE,QAAO,CAFP,SAFA,kBACA,QAEA,OACA,CAGF,UACE,eACA,gBACA,mBACA,cAEA,oBACE,aAIJ,gBACE,eAGA,mBADA,iBADA,gBAGA,cAEA,uBADA,kBACA,CAEA,0BACE,aAIJ,mBACE,mBAEA,6BACE,aAIJ,eACE,aACA,8BACA,uBAEA,yBACE,aAIJ,wCAME,gCADA,+BADA,eADA,YADA,UAIA,CAEA,oDAEE,qBADA,SCtSM,CD0SR,4DACE,kBAIJ,oBACE,0BAGF,oBACE,yBAIA,yBACE,kBAIJ,6BAGE,mBAFA,aACA,uBAEA,SACA,UAEA,kGAIE,mBAGA,eALA,aAIA,eAHA,uBAEA,YAEA,CAGF,iDAGE,aCjVM,CDkVN,YAFA,YADA,UAGA,CAGF,iDAGE,kBADA,YADA,UAEA,CAOA,6HAEE,mBADA,UChWI,CDuWR,iDACE,wBCvWQ,CDwWR,kBACA,sBACA,eACA,qBACA,WACA,aACA,UACA,UAMA,6HACE,wBCvXI,CD4XV,cAKE,OACA,mBAEA,CAGF,+BAPE,SAIA,WAPA,wBACA,eAKA,oBAJA,iBAgBA,CARF,iBAME,oBADA,OAGA,CAEA,2BACE,WAIJ,cAME,YAFA,SAHA,eAEA,QAIA,+BAFA,WAHA,YAKA,CAEA,oBAME,4CAEA,8BACA,kBADA,oCAHA,YAJA,cAEA,YACA,WAFA,UAOA,CAGF,wBACE,aAIJ,wBACE,GACE,uBAGF,GACE,yBEvbJ,wBACE,YAEE,gBADA,eACA,ECHJ,gBCIE,iBACA,eACA,CALA,WAEA,CAHF,iBACE,CAEA,UACA,CAEA,UACA,wBAUE,4BACA,kBACA,CAPA,WACA,CAMA,eANA,WACA,CACA,MACA,CALF,iBACE,CAIA,KACA,CAHA,UAMA,sFAMA,eACE,eACA,iFAKF,cACE,iFAGF,eACE,uFAMA,iBADF,cAEE,kFAKF,eACE,CAIA,mKAKF,gBACE,mFAGF,eACE,yFAKF,eACE,gBACA,oFAKF,eACE,oFAGF,cACE,0FAKF,gBACE,gBACA,uBAKN,cACE,CC/FF,WAEE,4CAMA,kCAFA,eACA,UACA,CAEA,6BALA,kBAFA,YAFA,kBAGA,UAiBE,CAXF,kBAUE,4CACA,oCAJA,6BAEA,+BAPA,WAGA,OACA,KAKA,CAIA,sEACE,gBACA,eAKF,iEACE,eAGF,iEACE,gBAKF,uEAEE,iBADA,cACA,CAKF,kEACE,gBASF,qIACE,iBAGF,mEACE,gBAKF,yEACE,gBACA,gBAKF,oEACE,gBAGF,oEACE,eAKF,0EACE,iBACA,gBAKN,iBACE,eAIF,0BACE,GAEE,SAAQ,CADR,2BACA,CAEF,IAEE,SAAQ,CADR,4BACA,CAEF,GACE,WAIJ,kBACE,GAEE,SAAQ,CADR,mBACA,CAEF,IAEE,SAAQ,CADR,oBACA,CAEF,GACE","sources":["webpack://ahdjs/./src/lib/styles/imports/_base.scss","webpack://ahdjs/./src/lib/styles/imports/_variables.scss","webpack://ahdjs/./src/lib/styles/imports/_media.scss","webpack://ahdjs/./src/lib/plugins/information/assets/style.scss","webpack://ahdjs/./src/lib/plugins/information/assets/imports/_base.scss","webpack://ahdjs/./src/lib/plugins/beacons/assets/imports/_base.scss"],"sourcesContent":[".gc {\n .gc-relative {\n position: relative;\n }\n\n .gc-fixed {\n position: fixed;\n }\n\n &.gc-loading {\n .gc-interaction {\n display: none;\n }\n\n .gc-control {\n display: none;\n }\n\n .gc-tooltip {\n display: none;\n }\n }\n}\n\n.gc-overlay {\n position: fixed;\n z-index: 6400;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n box-sizing: content-box;\n opacity: 0.4;\n pointer-events: none;\n\n & svg {\n fill: #222222;\n width: 100%;\n height: 100%;\n\n & path {\n pointer-events: fill;\n }\n }\n}\n\n.gc-control {\n position: absolute;\n z-index: 6404;\n visibility: hidden;\n box-sizing: content-box;\n -moz-transition: all 0.3s ease-out;\n -o-transition: all 0.3s ease-out;\n -webkit-transition: all 0.3s ease-out;\n transition: all 0.3s ease-out;\n background-color: transparent;\n}\n\n.gc-interaction {\n position: absolute;\n\n &.gc-disable {\n position: absolute;\n cursor: inherit;\n z-index: 6403;\n opacity: 0;\n background-color: white;\n filter: alpha(opacity=0);\n }\n}\n\n.gc-tooltip {\n position: absolute;\n visibility: visible;\n box-sizing: content-box;\n min-width: 300px;\n max-width: 550px;\n padding: 25px;\n -moz-transition: opacity 0.1s ease-out;\n -o-transition: opacity 0.1s ease-out;\n -webkit-transition: opacity 0.1s ease-out;\n transition: opacity 0.1s ease-out;\n border-radius: 3px;\n background-color: white;\n box-shadow: 0 1px 10px rgba(0, 0, 0, .4);\n\n &[data-guidechimp-position='top'] {\n margin-bottom: 10px;\n }\n\n &[data-guidechimp-position='left'] {\n margin: 0 10px 0 10px;\n }\n\n &[data-guidechimp-position='right'] {\n margin: 0 10px 0 10px;\n }\n\n &[data-guidechimp-position='bottom'] {\n margin-top: 10px;\n }\n\n &[data-guidechimp-alignment='right'] {\n margin-left: 5px;\n }\n\n &[data-guidechimp-alignment='left'] {\n margin-right: 5px;\n }\n}\n\n.gc-tooltip-tail {\n position: absolute;\n content: '';\n border: 6px solid transparent;\n\n .gc-tooltip[data-guidechimp-position='top'] & {\n bottom: -10px;\n border-top-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='top'][data-guidechimp-alignment='right'] & {\n right: 10px;\n bottom: -10px;\n border-top-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='top'][data-guidechimp-alignment='middle'] & {\n bottom: -10px;\n left: 50%;\n margin-left: -5px;\n border-top-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='left'] & {\n top: 10px;\n right: -10px;\n border-left-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='right'] & {\n top: 10px;\n left: -10px;\n border-right-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='bottom'] & {\n top: -10px;\n border-bottom-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='bottom'][data-guidechimp-alignment='right'] & {\n top: -10px;\n right: 10px;\n border-bottom-color: white;\n }\n\n .gc-tooltip[data-guidechimp-position='bottom'][data-guidechimp-alignment='middle'] & {\n top: -10px;\n left: 50%;\n margin-left: -5px;\n border-bottom-color: white;\n }\n}\n\n.gc-close {\n position: absolute;\n top: 0;\n right: 0;\n display: inline-block;\n overflow: hidden;\n width: 15px;\n height: 15px;\n margin: 10px;\n cursor: pointer;\n opacity: 0.4;\n\n &:hover {\n opacity: 1;\n }\n\n &::before, &::after {\n position: absolute;\n top: 50%;\n left: 0;\n width: 100%;\n height: 2px;\n margin-top: -1px;\n content: '';\n border-radius: 5px;\n background: #000;\n }\n\n &::before {\n transform: rotate(45deg);\n }\n\n &::after {\n transform: rotate(-45deg);\n }\n}\n\n.gc-progressbar {\n font-size: 10px;\n line-height: 10px;\n position: absolute;\n top: 0;\n left: 0;\n float: left;\n box-sizing: content-box;\n width: 0;\n height: 5px;\n text-align: center;\n border-radius: 2px 0 0 0;\n background-color: $primary;\n\n &[aria-valuenow='100'] {\n border-radius: 2px 2px 0 0;\n }\n\n .gc-tooltip[data-guidechimp-position='bottom'] & {\n top: auto;\n bottom: 0;\n border-radius: 0 0 0 2px;\n\n &[aria-valuenow='100'] {\n border-radius: 0 0 2px 2px;\n }\n }\n\n &.gc-hidden {\n display: none;\n }\n}\n\n.gc-fake-step {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 0;\n height: 0;\n}\n\n.gc-title {\n font-size: 18px;\n font-weight: bold;\n margin-bottom: 20px;\n padding: 0 5px 0 5px;\n\n &.gc-hidden {\n display: none;\n }\n}\n\n.gc-description {\n font-size: 14px;\n overflow-y: auto;\n max-height: 200px;\n margin-bottom: 20px;\n padding: 0 5px 0 5px;\n text-align: justify;\n scroll-behavior: smooth;\n\n &.gc-hidden {\n display: none;\n }\n}\n\n.gc-custom-buttons {\n margin-bottom: 20px;\n\n &.gc-hidden {\n display: none;\n }\n}\n\n.gc-navigation {\n display: flex;\n justify-content: space-between;\n padding: 20px 10px 10px 10px;\n\n &.gc-hidden {\n display: none;\n }\n}\n\n.gc-navigation-prev,\n.gc-navigation-next {\n width: 15px;\n height: 15px;\n cursor: pointer;\n border-right: 5px solid $secondary;\n border-bottom: 5px solid $secondary;\n\n &:hover {\n opacity: 1;\n border-color: $primary;\n }\n\n &.gc-hidden {\n visibility: hidden;\n }\n}\n\n.gc-navigation-prev {\n transform: rotate(-225deg);\n}\n\n.gc-navigation-next {\n transform: rotate(-45deg);\n}\n\n.gc-pagination {\n &.gc-hidden {\n visibility: hidden;\n }\n}\n\n.gc-pagination-theme-numbers {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0;\n padding: 0;\n\n & .gc-pagination-item,\n & .gc-pagination-dots {\n display: flex;\n justify-content: center;\n align-items: center;\n margin: 0 5px 0 5px;\n font-size: 14px;\n cursor: pointer;\n }\n\n & .gc-pagination-dots {\n width: 20px;\n height: 20px;\n color: $primary;\n cursor: initial;\n }\n\n & .gc-pagination-item {\n width: 20px;\n height: 20px;\n border-radius: 2px;\n\n &:hover {\n color: #ffffff;\n background: $primary;\n }\n\n &.gc-pagination-active {\n color: #ffffff;\n background: $primary;\n }\n }\n}\n\n.gc-pagination-theme-circles {\n & .gc-pagination-item{\n background-color: $secondary;\n border-radius: 50%;\n box-sizing: border-box;\n cursor: pointer;\n display: inline-block;\n height: 8px;\n margin: 0 5px;\n padding: 0;\n width: 8px;\n\n &:hover {\n background-color: $primary;\n }\n\n &.gc-pagination-active {\n background-color: $primary;\n }\n }\n}\n\n.gc-copyright {\n font-family: Arial, serif;\n font-size: 10px;\n position: absolute;\n bottom: 0;\n left: 0;\n margin: 0 0 5px 10px;\n letter-spacing: 0.1em;\n color: #888888;\n}\n\n.gc-notification {\n font-family: Arial, serif;\n font-size: 10px;\n position: absolute;\n bottom: 0;\n right: 0;\n margin: 0 10px 5px 0;\n letter-spacing: 0.1em;\n color: #888888;\n\n & a.gc-link {\n color: #888888;\n }\n}\n\n.gc-preloader {\n position: fixed;\n z-index: 6405;\n top: 50%;\n left: 50%;\n width: 80px;\n height: 80px;\n transform: translate(-50%, -50%);\n\n &:after {\n display: block;\n width: 64px;\n height: 64px;\n margin: 8px;\n content: \" \";\n animation: gc-preloader 1.2s linear infinite;\n border: 6px solid #fff;\n border-color: #fff transparent #fff transparent;\n border-radius: 50%;\n }\n\n &.gc-hidden {\n display: none;\n }\n}\n\n@keyframes gc-preloader {\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n}","// Basic Colors\n$primary: #e14817;\n$secondary: #bebebe;","@media (max-width: 360px) {\n .gc-tooltip {\n min-width: 260px;\n max-width: 290px;\n }\n}",".gc-information{position:absolute;height:10px;width:10px;border-radius:50%;cursor:pointer;z-index:64}.gc-information:before{position:absolute;content:\"ℹ\";height:20px;width:20px;left:0;top:0;background-color:rgba(0,0,0,0);border-radius:50%;font-size:24px}.gc-information[data-information-position=top-left][data-information-boundary=inner]{margin-left:3px;margin-top:3px}.gc-information[data-information-position=top][data-information-boundary=inner]{margin-top:3px}.gc-information[data-information-position=top][data-information-boundary=outer]{margin-top:-3px}.gc-information[data-information-position=top-right][data-information-boundary=inner]{margin-top:3px;margin-left:-3px}.gc-information[data-information-position=left][data-information-boundary=inner]{margin-left:3px}.gc-information[data-information-position=left][data-information-boundary=outer]{margin-left:-3px}.gc-information[data-information-position=right][data-information-boundary=inner]{margin-left:-3px}.gc-information[data-information-position=right][data-information-boundary=outer]{margin-left:3px}.gc-information[data-information-position=bottom-left][data-information-boundary=inner]{margin-left:3px;margin-top:-3px}.gc-information[data-information-position=bottom][data-information-boundary=inner]{margin-top:-3px}.gc-information[data-information-position=bottom][data-information-boundary=outer]{margin-top:3px}.gc-information[data-information-position=bottom-right][data-information-boundary=inner]{margin-left:-3px;margin-top:-3px}.gc-information-fixed{position:fixed}",".gc-information {\n position: absolute;\n // background: linear-gradient($primary, darken($primary, 10%));\n height: 10px;\n width: 10px;\n border-radius: 50%;\n cursor: pointer;\n z-index: 64;\n // box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);\n\n\n &:before {\n position: absolute;\n content: \"\\2139\";\n height: 20px;\n width: 20px;\n left: 0;\n top: 0;\n background-color: transparent;\n border-radius: 50%;\n font-size: 24px;\n // box-shadow: 0px 0px 3px 3px lighten($wave, 15%);\n \n }\n\n &[data-information-position=\"top-left\"] {\n &[data-information-boundary=\"inner\"] {\n margin-left: 3px;\n margin-top: 3px;\n }\n }\n\n &[data-information-position=\"top\"] {\n &[data-information-boundary=\"inner\"] {\n margin-top: 3px;\n }\n\n &[data-information-boundary=\"outer\"] {\n margin-top: -3px;\n }\n }\n\n &[data-information-position=\"top-right\"] {\n &[data-information-boundary=\"inner\"] {\n margin-top: 3px;\n margin-left: -3px;\n }\n }\n\n &[data-information-position=\"left\"] {\n &[data-information-boundary=\"inner\"] {\n margin-left: 3px;\n }\n\n &[data-information-boundary=\"outer\"] {\n margin-left: -3px;\n }\n }\n\n &[data-information-position=\"right\"] {\n &[data-information-boundary=\"inner\"] {\n margin-left: -3px;\n }\n\n &[data-information-boundary=\"outer\"] {\n margin-left: 3px;\n }\n }\n\n &[data-information-position=\"bottom-left\"] {\n &[data-information-boundary=\"inner\"] {\n margin-left: 3px;\n margin-top: -3px;\n }\n }\n\n &[data-information-position=\"bottom\"] {\n &[data-information-boundary=\"inner\"] {\n margin-top: -3px;\n }\n\n &[data-information-boundary=\"outer\"] {\n margin-top: 3px;\n }\n }\n\n &[data-information-position=\"bottom-right\"] {\n &[data-information-boundary=\"inner\"] {\n margin-left: -3px;\n margin-top: -3px;\n }\n }\n}\n\n.gc-information-fixed {\n position: fixed;\n}\n\n",".gc-beacon {\n position: absolute;\n background: linear-gradient($primary, darken($primary, 10%));\n height: 20px;\n width: 20px;\n border-radius: 50%;\n cursor: pointer;\n z-index: 64;\n box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);\n\n &:before {\n position: absolute;\n content: \"\";\n height: 20px;\n width: 20px;\n left: 0;\n top: 0;\n background-color: transparent;\n border-radius: 50%;\n box-shadow: 0px 0px 3px 3px lighten($wave, 15%);\n -webkit-animation: active 2s infinite linear;\n animation: beacon 2s infinite linear;\n }\n\n &[data-beacon-position=\"top-left\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-left: 3px;\n margin-top: 3px;\n }\n }\n\n &[data-beacon-position=\"top\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-top: 3px;\n }\n\n &[data-beacon-boundary=\"outer\"] {\n margin-top: -3px;\n }\n }\n\n &[data-beacon-position=\"top-right\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-top: 3px;\n margin-left: -3px;\n }\n }\n\n &[data-beacon-position=\"left\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-left: 3px;\n }\n\n &[data-beacon-boundary=\"outer\"] {\n margin-left: -3px;\n }\n }\n\n &[data-beacon-position=\"right\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-left: -3px;\n }\n\n &[data-beacon-boundary=\"outer\"] {\n margin-left: 3px;\n }\n }\n\n &[data-beacon-position=\"bottom-left\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-left: 3px;\n margin-top: -3px;\n }\n }\n\n &[data-beacon-position=\"bottom\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-top: -3px;\n }\n\n &[data-beacon-boundary=\"outer\"] {\n margin-top: 3px;\n }\n }\n\n &[data-beacon-position=\"bottom-right\"] {\n &[data-beacon-boundary=\"inner\"] {\n margin-left: -3px;\n margin-top: -3px;\n }\n }\n}\n\n.gc-beacon-fixed {\n position: fixed;\n}\n\n\n@-webkit-keyframes beacon {\n 0% {\n -webkit-transform: scale(.1);\n opacity: 1;\n }\n 70% {\n -webkit-transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n opacity: 0;\n }\n}\n\n@keyframes beacon {\n 0% {\n transform: scale(.1);\n opacity: 1;\n }\n 70% {\n transform: scale(2.5);\n opacity: 0;\n }\n 100% {\n opacity: 0;\n }\n}\n"],"names":[],"sourceRoot":""}
package/build/index.js ADDED
@@ -0,0 +1,13 @@
1
+ /*!
2
+ *
3
+ * ahdjs v0.0.6
4
+ *
5
+ *
6
+ * Copyright (c) Ishaan Puniani (https://github.com/ishaan-puniani) and project contributors.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ *
11
+ */
12
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.ahdjs=e():t.ahdjs=e()}(self,(()=>(()=>{var __webpack_modules__={219:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Beacons});var _utils_domTemplate__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(95),_templates_beacon_html__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(398);function _typeof(t){return _typeof="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},_typeof(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Beacons=function(){function Beacons(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Beacons),this.beacons=[],this.options={},this.observers={},"undefined"!=typeof ResizeObserver&&(this.observers.elementResizeObserver=new ResizeObserver((function(){return e.refresh()}))),this.cache=new Map,this.elements=new Map,this.setOptions(n),this.setBeacons(t),this.init()}return _createClass(Beacons,[{key:"init",value:function(){}},{key:"setOptions",value:function(t){return this.options=_objectSpread(_objectSpread({},this.constructor.getDefaultOptions()),t),this}},{key:"setBeacons",value:function(t){var e=this;return this.removeAll(),this.beacons=!t||"string"==typeof t||Array.isArray(t)&&t.every((function(t){return"string"==typeof t}))?this.getDataBeacons(t):this.getJsBeacons(t),this.beacons.length&&(this.beacons.forEach((function(t){var n=t.element;if(n){var r=e.getEl(n);if(r){var i=e.createBeaconEl(t);i.hidden=!0,e.constructor.isFixed(r)&&i.classList.add(e.constructor.getFixedClass()),(r.parentElement&&r.parentElement!==document.body?r.parentElement:document.body).append(i),e.elements.set(t,i),e.setBeaconPosition(r,i,t),e.observeResizing(r)}}})),this.addOnWindowResizeListener()),this}},{key:"getBeacons",value:function(){return this.beacons}},{key:"getBeacon",value:function(t,e){return _slicedToArray(t&&"object"===_typeof(t)?[t]:this.beacons.filter((function(e){return e.id===t})),1)[0]||e}},{key:"getDataBeacons",value:function getDataBeacons(ids){var _this3=this,beaconsIds="string"==typeof ids?ids.split(",").map((function(t){return t.trim()})):ids,beaconsSelector=["[".concat(this.constructor.getBeaconDataPrefix(),"]")];beaconsIds&&(beaconsSelector=[],beaconsIds.forEach((function(t){beaconsSelector.push("[".concat(_this3.constructor.getBeaconDataPrefix(),"*='").concat(t,"']"))})));var beaconsEl=Array.from(document.querySelectorAll(beaconsSelector.join(","))),dataGlobalRegExp=new RegExp("^".concat(this.constructor.getBeaconDataPrefix(),"-([^-]+)$")),beacons=[];return beaconsEl.forEach((function(el){var beaconsIdsAttrValue=el.attributes[_this3.constructor.getBeaconDataPrefix()].value;if(beaconsIdsAttrValue){var elBeaconsIds=beaconsIdsAttrValue.split(",");elBeaconsIds.forEach((function(id){if(!beaconsIds||beaconsIds.includes(id)){for(var globalBeaconAttrs={},beaconAttrs={},dataBeaconRegExp=new RegExp("^".concat(_this3.constructor.getBeaconDataPrefix(),"-").concat(id,"-([^-]+)$")),j=0;j<el.attributes.length;j++){var _el$attributes$j=el.attributes[j],attrName=_el$attributes$j.name,attrValue=_el$attributes$j.value,isGlobalAttr=dataGlobalRegExp.test(attrName),isBeaconAttr=dataBeaconRegExp.test(attrName);if(isGlobalAttr){var _attrName$match=attrName.match(dataGlobalRegExp),_attrName$match2=_slicedToArray(_attrName$match,2),shortAttrName=_attrName$match2[1];globalBeaconAttrs[shortAttrName]=attrValue}else if(isBeaconAttr){var _attrName$match3=attrName.match(dataBeaconRegExp),_attrName$match4=_slicedToArray(_attrName$match3,2),_shortAttrName=_attrName$match4[1];beaconAttrs[_shortAttrName]=attrValue}}var beacon=_objectSpread(_objectSpread(_objectSpread({id,position:_this3.options.position},globalBeaconAttrs),beaconAttrs),{},{element:el}),onClick=beacon.onclick||beacon.onClick;onClick&&(delete beacon.onclick,beacon.onClick=function(e){var onClickCode=eval(onClick);"function"==typeof onClickCode&&onClickCode.call(e,beacon)}),beacons.push(beacon)}}))}})),beacons}},{key:"getJsBeacons",value:function(t){return(Array.isArray(t)?t:[t]).map((function(t,e){return _objectSpread(_objectSpread({},t),{},{id:t.id||e})}))}},{key:"getBeaconTpl",value:function(){return _templates_beacon_html__WEBPACK_IMPORTED_MODULE_1__.Z}},{key:"createBeaconEl",value:function(t){var e=this,n=_objectSpread({},t);return n.onClick=function(n){n.stopPropagation(),t.onClick&&t.onClick.call(e,n,t)},(0,_utils_domTemplate__WEBPACK_IMPORTED_MODULE_0__.Z)(this.getBeaconTpl(),{beacon:n})}},{key:"getEl",value:function(t){return t instanceof HTMLElement?t:document.querySelector(t)}},{key:"setBeaconPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.position,i=n.boundary;r=r||this.options.position,i="inner"===(i=i||this.options.boundary)?"inner":"outer";var o=t.offsetLeft,a=t.offsetTop,s=t.offsetWidth,c=t.offsetHeight,l=e.style,u=getComputedStyle(e),p=u.width,f=u.height;switch(p=parseInt(p,10),f=parseInt(f,10),e.removeAttribute("data-beacon-position"),e.removeAttribute("data-beacon-boundary"),e.setAttribute("data-beacon-position",r),e.setAttribute("data-beacon-boundary",i),r){case"top-left":"inner"===i?(l.left="".concat(o,"px"),l.top="".concat(a,"px")):(l.left="".concat(o-p,"px"),l.top="".concat(a-f,"px"));break;case"top":l.left="".concat(o+(s-p)/2,"px"),l.top="".concat("inner"===i?a:a-f,"px");break;case"top-right":"inner"===i?(l.left="".concat(s+o-p,"px"),l.top="".concat(a,"px")):(l.left="".concat(s+o,"px"),l.top="".concat(a-f,"px"));break;case"left":l.left="".concat("inner"===i?o:o-p,"px"),l.top="".concat(a+(c-f)/2,"px");break;case"right":l.left="".concat("inner"===i?o+s-p:o+s,"px"),l.top="".concat(a+(c-f)/2,"px");break;case"bottom-left":"inner"===i?(l.left="".concat(o,"px"),l.top="".concat(a+c-f,"px")):(l.left="".concat(o-p,"px"),l.top="".concat(a+c,"px"));break;case"bottom":l.left="".concat(o+(s-p)/2,"px"),l.top="".concat("inner"===i?a+c-f:a+c,"px");break;case"bottom-right":"inner"===i?(l.left="".concat(s+o-p,"px"),l.top="".concat(a+c-f,"px")):(l.left="".concat(s+o,"px"),l.top="".concat(a+c,"px"));break;default:e.setAttribute("data-beacon-position","center"),l.left="".concat(o+(s-p)/2,"px"),l.top="".concat(a+(c-f)/2,"px")}return this}},{key:"isCanShowBeacon",value:function(t){var e=t.canShow;return!(void 0!==e&&(!e||"function"==typeof e&&!1===e()))}},{key:"showAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.beacons.forEach((function(n){t.show(n,e)})),this}},{key:"show",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBeacon(t);if(n){var r=this.elements.get(n);r&&(e||this.isCanShowBeacon(n))&&(r.hidden=!1)}return this}},{key:"hideAll",value:function(){var t=this;return this.beacons.forEach((function(e){t.hide(e)})),this}},{key:"hide",value:function(t){var e=this.getBeacon(t);if(e){var n=this.elements.get(e);n&&(n.hidden=!0)}return this}},{key:"removeAll",value:function(){var t=this;return this.beacons.forEach((function(e){t.remove(e)})),this.beacons=[],this.unobserveResizeAllElements(),this.removeOnWindowResizeListener(),this}},{key:"remove",value:function(t){var e=this.getBeacon(t),n=this.elements.get(e);if(n){n.parentNode.removeChild(n),-1!==this.beacons.indexOf(e)&&this.beacons.splice(this.beacons.indexOf(e),1),this.elements.delete(e);var r=this.getEl(e.element);r&&this.unobserveResizing(r)}return this.beacons.length||this.removeOnWindowResizeListener(),this}},{key:"refresh",value:function(){var t=this;return this.beacons.forEach((function(e){var n=e.element;if(n){var r=t.getEl(n),i=t.elements.get(e);r&&i&&t.setBeaconPosition(r,i,e)}})),this}},{key:"addOnWindowResizeListener",value:function(){return this.cache.set("onWindowResizeListener",this.getOnWindowResizeListener()),window.addEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this}},{key:"getOnWindowResizeListener",value:function(){var t=this;return function(){return t.refresh()}}},{key:"removeOnWindowResizeListener",value:function(){return this.cache.has("onWindowResizeListener")&&(window.removeEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this.cache.delete("onWindowResizeListener")),this}},{key:"observeResizing",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{box:"border-box"},n=this.observers.elementResizeObserver;return n&&n.observe(t,e),this}},{key:"unobserveResizing",value:function(t){var e=this.observers.elementResizeObserver;return e&&e.unobserve(t),this}},{key:"unobserveResizeAllElements",value:function(){var t=this.observers.elementResizeObserver;return t&&t.disconnect(),this}}],[{key:"getDefaultOptions",value:function(){return{position:"center",boundary:"inner"}}},{key:"getFixedClass",value:function(){return"gc-beacon-fixed"}},{key:"getBeaconDataPrefix",value:function(){return"data-beacon"}},{key:"isFixed",value:function(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||this.isFixed(e))}}]),Beacons}()},9:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>Information});var _utils_domTemplate__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(95),_templates_information_html__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(747);function _typeof(t){return _typeof="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},_typeof(t)}function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _iterableToArrayLimit(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(n),!0).forEach((function(e){_defineProperty(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _defineProperty(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}var Information=function(){function Information(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};_classCallCheck(this,Information),this.informations=[],this.options={},this.observers={},"undefined"!=typeof ResizeObserver&&(this.observers.elementResizeObserver=new ResizeObserver((function(){return e.refresh()}))),this.cache=new Map,this.elements=new Map,this.setOptions(n),this.setInformations(t),this.init()}return _createClass(Information,[{key:"init",value:function(){}},{key:"setOptions",value:function(t){return this.options=_objectSpread(_objectSpread({},this.constructor.getDefaultOptions()),t),this}},{key:"setInformations",value:function(t){var e=this;return this.removeAll(),this.informations=!t||"string"==typeof t||Array.isArray(t)&&t.every((function(t){return"string"==typeof t}))?this.getDataInformations(t):this.getJsInformations(t),this.informations.length&&(this.informations.forEach((function(t){var n=t.element;if(n){var r=e.getEl(n);if(r){var i=e.createInformationEl(t);i.hidden=!0,e.constructor.isFixed(r)&&i.classList.add(e.constructor.getFixedClass()),(r.parentElement&&r.parentElement!==document.body?r.parentElement:document.body).append(i),e.elements.set(t,i),e.setInformationPosition(r,i,t),e.observeResizing(r)}}})),this.addOnWindowResizeListener()),this}},{key:"getInformations",value:function(){return this.informations}},{key:"getInformation",value:function(t,e){return _slicedToArray(t&&"object"===_typeof(t)?[t]:this.informations.filter((function(e){return e.id===t})),1)[0]||e}},{key:"getDataInformations",value:function getDataInformations(ids){var _this3=this,informationsIds="string"==typeof ids?ids.split(",").map((function(t){return t.trim()})):ids,informationsSelector=["[".concat(this.constructor.getInformationDataPrefix(),"]")];informationsIds&&(informationsSelector=[],informationsIds.forEach((function(t){informationsSelector.push("[".concat(_this3.constructor.getInformationDataPrefix(),"*='").concat(t,"']"))})));var informationsEl=Array.from(document.querySelectorAll(informationsSelector.join(","))),dataGlobalRegExp=new RegExp("^".concat(this.constructor.getInformationDataPrefix(),"-([^-]+)$")),informations=[];return informationsEl.forEach((function(el){var informationsIdsAttrValue=el.attributes[_this3.constructor.getInformationDataPrefix()].value;if(informationsIdsAttrValue){var elInformationsIds=informationsIdsAttrValue.split(",");elInformationsIds.forEach((function(id){if(!informationsIds||informationsIds.includes(id)){for(var globalInformationAttrs={},informationAttrs={},dataInformationRegExp=new RegExp("^".concat(_this3.constructor.getInformationDataPrefix(),"-").concat(id,"-([^-]+)$")),j=0;j<el.attributes.length;j++){var _el$attributes$j=el.attributes[j],attrName=_el$attributes$j.name,attrValue=_el$attributes$j.value,isGlobalAttr=dataGlobalRegExp.test(attrName),isInformationAttr=dataInformationRegExp.test(attrName);if(isGlobalAttr){var _attrName$match=attrName.match(dataGlobalRegExp),_attrName$match2=_slicedToArray(_attrName$match,2),shortAttrName=_attrName$match2[1];globalInformationAttrs[shortAttrName]=attrValue}else if(isInformationAttr){var _attrName$match3=attrName.match(dataInformationRegExp),_attrName$match4=_slicedToArray(_attrName$match3,2),_shortAttrName=_attrName$match4[1];informationAttrs[_shortAttrName]=attrValue}}var information=_objectSpread(_objectSpread(_objectSpread({id,position:_this3.options.position},globalInformationAttrs),informationAttrs),{},{element:el}),onClick=information.onclick||information.onClick;onClick&&(delete information.onclick,information.onClick=function(e){var onClickCode=eval(onClick);"function"==typeof onClickCode&&onClickCode.call(e,information)}),informations.push(information)}}))}})),informations}},{key:"getJsInformations",value:function(t){return(Array.isArray(t)?t:[t]).map((function(t,e){return _objectSpread(_objectSpread({},t),{},{id:t.id||e})}))}},{key:"getInformationTpl",value:function(){return _templates_information_html__WEBPACK_IMPORTED_MODULE_1__.Z}},{key:"createInformationEl",value:function(t){var e=this,n=_objectSpread({},t);return n.onClick=function(n){n.stopPropagation(),t.onClick&&t.onClick.call(e,n,t)},(0,_utils_domTemplate__WEBPACK_IMPORTED_MODULE_0__.Z)(this.getInformationTpl(),{information:n})}},{key:"getEl",value:function(t){return t instanceof HTMLElement?t:document.querySelector(t)}},{key:"setInformationPosition",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.position,i=n.boundary;r=r||this.options.position,i="inner"===(i=i||this.options.boundary)?"inner":"outer";var o=t.offsetLeft,a=t.offsetTop,s=t.offsetWidth,c=t.offsetHeight,l=e.style,u=getComputedStyle(e),p=u.width,f=u.height;switch(p=parseInt(p,10),f=parseInt(f,10),e.removeAttribute("data-information-position"),e.removeAttribute("data-information-boundary"),e.setAttribute("data-information-position",r),e.setAttribute("data-information-boundary",i),r){case"top-left":"inner"===i?(l.left="".concat(o,"px"),l.top="".concat(a,"px")):(l.left="".concat(o-p,"px"),l.top="".concat(a-f,"px"));break;case"top":l.left="".concat(o+(s-p)/2,"px"),l.top="".concat("inner"===i?a:a-f,"px");break;case"top-right":"inner"===i?(l.left="".concat(s+o-p,"px"),l.top="".concat(a,"px")):(l.left="".concat(s+o,"px"),l.top="".concat(a-f,"px"));break;case"left":l.left="".concat("inner"===i?o:o-p,"px"),l.top="".concat(a+(c-f)/2,"px");break;case"right":l.left="".concat("inner"===i?o+s-p:o+s,"px"),l.top="".concat(a+(c-f)/2,"px");break;case"bottom-left":"inner"===i?(l.left="".concat(o,"px"),l.top="".concat(a+c-f,"px")):(l.left="".concat(o-p,"px"),l.top="".concat(a+c,"px"));break;case"bottom":l.left="".concat(o+(s-p)/2,"px"),l.top="".concat("inner"===i?a+c-f:a+c,"px");break;case"bottom-right":"inner"===i?(l.left="".concat(s+o-p,"px"),l.top="".concat(a+c-f,"px")):(l.left="".concat(s+o,"px"),l.top="".concat(a+c,"px"));break;default:e.setAttribute("data-information-position","center"),l.left="".concat(o+(s-p)/2,"px"),l.top="".concat(a+(c-f)/2,"px")}return this}},{key:"isCanShowInformation",value:function(t){var e=t.canShow;return!(void 0!==e&&(!e||"function"==typeof e&&!1===e()))}},{key:"showAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.informations.forEach((function(n){t.show(n,e)})),this}},{key:"show",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getInformation(t);if(n){var r=this.elements.get(n);r&&(e||this.isCanShowInformation(n))&&(r.hidden=!1)}return this}},{key:"hideAll",value:function(){var t=this;return this.informations.forEach((function(e){t.hide(e)})),this}},{key:"hide",value:function(t){var e=this.getInformation(t);if(e){var n=this.elements.get(e);n&&(n.hidden=!0)}return this}},{key:"removeAll",value:function(){var t=this;return this.informations.forEach((function(e){t.remove(e)})),this.informations=[],this.unobserveResizeAllElements(),this.removeOnWindowResizeListener(),this}},{key:"remove",value:function(t){var e=this.getInformation(t),n=this.elements.get(e);if(n){n.parentNode.removeChild(n),-1!==this.informations.indexOf(e)&&this.informations.splice(this.informations.indexOf(e),1),this.elements.delete(e);var r=this.getEl(e.element);r&&this.unobserveResizing(r)}return this.informations.length||this.removeOnWindowResizeListener(),this}},{key:"refresh",value:function(){var t=this;return this.informations.forEach((function(e){var n=e.element;if(n){var r=t.getEl(n),i=t.elements.get(e);r&&i&&t.setInformationPosition(r,i,e)}})),this}},{key:"addOnWindowResizeListener",value:function(){return this.cache.set("onWindowResizeListener",this.getOnWindowResizeListener()),window.addEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this}},{key:"getOnWindowResizeListener",value:function(){var t=this;return function(){return t.refresh()}}},{key:"removeOnWindowResizeListener",value:function(){return this.cache.has("onWindowResizeListener")&&(window.removeEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this.cache.delete("onWindowResizeListener")),this}},{key:"observeResizing",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{box:"border-box"},n=this.observers.elementResizeObserver;return n&&n.observe(t,e),this}},{key:"unobserveResizing",value:function(t){var e=this.observers.elementResizeObserver;return e&&e.unobserve(t),this}},{key:"unobserveResizeAllElements",value:function(){var t=this.observers.elementResizeObserver;return t&&t.disconnect(),this}}],[{key:"getDefaultOptions",value:function(){return{position:"center",boundary:"inner"}}},{key:"getFixedClass",value:function(){return"gc-information-fixed"}},{key:"getInformationDataPrefix",value:function(){return"data-information"}},{key:"isFixed",value:function(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||this.isFixed(e))}}]),Information}()},95:(t,e,n)=>{"use strict";n.d(e,{Z:()=>x});var r=n(353),i=n.n(r),o=n(220),a=n.n(o),s=n(629);const c=function(t){return t instanceof SVGElement||/^\[object SVG(.+)Element\]$/.test("".concat(t))},l=function(t){return/^[object NodeList]$/.test("".concat(t))};function u(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||v(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){h(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function h(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||v(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){if(t){if("string"==typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function y(t,e,n){return y=m()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&b(i,n.prototype),i},y.apply(null,arguments)}function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}const x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new DOMParser,r=t.replace(/<template/g,"<gc-template");r=r.replace(/<\/template/g,"</gc-template");var o=n.parseFromString(r,"text/html"),p=document.implementation.createHTMLDocument(),v=/{{([^}}]+)?}}/gm,g=/^@(.+)$/,m=new Map,b=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.body,o=r,b=Object.keys(n),x=Object.values(n),_=function(t){return y(Function,b.concat(["return ".concat(t,";")])).apply(void 0,x)};if(e){if(e.nodeType===Node.ELEMENT_NODE){if(e.hasAttribute("if")){if(m.set(e.parentNode,!1),!_(e.getAttribute("if")))return;m.set(e.parentNode,!0)}if(e.hasAttribute("elseif")){if(m.get(e.parentNode)||!_(e.getAttribute("elseif")))return;m.set(e.parentNode,!0)}if(e.hasAttribute("else")){if(m.get(e.parentNode))return;m.set(e.parentNode,!0)}if(e.hasAttribute("for")){var w=e.getAttribute("for").split(" in "),k=d(w,2),S=k[0],E=k[1];e.removeAttribute("for");var O=S.replace(/\(|\)/g,"").split(","),P=d(O,2),A=P[0],I=P[1];A=A.trim(),I=I?I.trim():"";var j=_(E.trim()),T=Array.isArray(j);return void Object.keys(j).forEach((function(r){var i=f(f({},n),{},h({},A,j[r]));I&&(i[I]=T?parseInt(r,10):r),t(e,i,o)}))}e!==e.ownerDocument.body&&"GC-TEMPLATE"!==e.tagName&&(o=e.cloneNode(),r.append(o)),u(e.attributes).forEach((function(t){var e=t.name,n=t.value,r=g.exec(e);if(r){var s=d(r,2)[1];return o.addEventListener(s,(function(t){return y(Function,[].concat(b,["$event"]).concat(["return ".concat(n).concat(/\(.+\)/.test(n)?"":"()",";")])).apply(void 0,[].concat(x,[t]))})),void o.removeAttribute(e)}for(var c=v.exec(n),l=0,u="";c;){u+=n.slice(l,c.index);var p=d(c,2),f=p[0],h=p[1];h=h.trim();try{f=_(h),(i()(f)||a()(f))&&(f="")}catch(t){console.error(t)}u+=f,l=c.index+c[0].length,c=v.exec(n)}u+=n.substr(l,n.length-l),"html"===e?(o.innerHTML=u,o.removeAttribute(e)):["if","else","elseif"].includes(e)?o.removeAttribute(e):o.setAttribute(e,u)}))}else if(e.nodeType===Node.TEXT_NODE){var C=v.exec(e.nodeValue);if(C){for(var L=0;C;){o.append(document.createTextNode(e.nodeValue.slice(L,C.index)));var D=C,R=d(D,2),N=R[0],B=R[1];B=B.trim();try{N=_(B),(i()(N)||a()(N))&&(N="")}catch(t){console.error(t)}(0,s.Z)(N)||c(N)?o.append(N):l(N)?N.forEach((function(t){o.append(t)})):o.append(document.createTextNode(N)),L=C.index+C[0].length,C=v.exec(e.nodeValue)}o.append(document.createTextNode(e.nodeValue.slice(L,e.nodeValue.length)))}else o.append(e.cloneNode())}var z=e.childNodes,$=void 0===z?[]:z;$.length&&$.forEach((function(e){t(e,n,o)}))}};return b(o.body,e,p.body),p.body.firstElementChild}},629:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r=function(t){return t instanceof HTMLElement||/^\[object HTML(.+)Element\]$/.test("".concat(t))}},398:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r='<div class="gc-beacon {{ beacon.class }}" @click="beacon.onClick($event)"></div>'},747:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});const r='<div class="gc-information {{ information.class }}" @click="information.onClick($event)"></div> '},705:(t,e,n)=>{var r=n(639).Symbol;t.exports=r},932:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},239:(t,e,n)=>{var r=n(705),i=n(607),o=n(333),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},531:(t,e,n)=>{var r=n(705),i=n(932),o=n(469),a=n(448),s=r?r.prototype:void 0,c=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return c?c.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n}},957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},607:(t,e,n)=>{var r=n(705),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var i=a.call(t);return r&&(e?t[s]=n:delete t[s]),i}},333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},639:(t,e,n)=>{var r=n(957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},469:t=>{var e=Array.isArray;t.exports=e},220:t=>{t.exports=function(t){return null===t}},5:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},448:(t,e,n)=>{var r=n(239),i=n(5);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},353:t=>{t.exports=function(t){return void 0===t}},833:(t,e,n)=>{var r=n(531);t.exports=function(t){return null==t?"":r(t)}},955:(t,e,n)=>{var r=n(833),i=0;t.exports=function(t){var e=++i;return r(t)+e}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{default:()=>X});var t=__webpack_require__(955),e=__webpack_require__.n(t),n=__webpack_require__(95),r=__webpack_require__(629);function i(t){return i="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},i(t)}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||s(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||s(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new E(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=p(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function h(){}function d(){}function v(){}var g={};c(g,o,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(O([])));m&&m!==e&&n.call(m,o)&&(g=m);var b=v.prototype=h.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,a,s,c){var l=p(t[o],t,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==i(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,c)}),(function(t){r("throw",t,s,c)})):e.resolve(f).then((function(t){u.value=t,s(u)}),(function(t){return r("throw",t,s,c)}))}c(l.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=p(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function O(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:P}}function P(){return{value:void 0,done:!0}}return d.prototype=v,c(b,"constructor",v),c(v,"constructor",d),d.displayName=c(v,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(_.prototype),c(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new _(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),c(b,s,"Generator"),c(b,o,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=O,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function u(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function p(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){u(o,r,i,a,s,"next",t)}function s(t){u(o,r,i,a,s,"throw",t)}a(void 0)}))}}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var y=function(){function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,t),Object.defineProperty(this,"uid",{value:e()(),enumerable:!1,configurable:!1,writable:!1}),this.setDefaults(),this.cache=new Map,this.listeners={},this.observers={},this.options={},this.setOptions(r),this.tour=null,this.setTour(n),this.notifications=[],this.elements=new Map,this.init()}var i,s,c,u,f,d,y,m;return i=t,s=[{key:"init",value:function(){}},{key:"setDefaults",value:function(){return this.previousStep=null,this.currentStep=null,this.nextStep=null,this.fromStep=null,this.toStep=null,this.previousStepIndex=-1,this.currentStepIndex=-1,this.nextStepIndex=-1,this.fromStepIndex=-1,this.toStepIndex=-1,this.steps=[],this.isDisplayed=!1,this}},{key:"setTour",value:function(t){return this.tour=t,this}},{key:"getTour",value:function(){return this.tour}},{key:"setOptions",value:function(t){return this.options=h(h({},this.constructor.getDefaultOptions()),t),this}},{key:"getOptions",value:function(){return this.options}},{key:"start",value:(m=p(l().mark((function t(){var e,n,r,i,o,a,s=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=s.length>0&&void 0!==s[0]?s[0]:0,n=!(s.length>1&&void 0!==s[1])||s[1],this.isDisplayed=!0,this.mountOverlayEl(),this.startPreloader(),r=s.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=s[o];return t.next=8,this.emit.apply(this,["onStart"].concat(i));case 8:if(this.stopPreloader(),this.tour&&this.tour.length){t.next=13;break}return this.removeOverlayEl(),this.isDisplayed=!1,t.abrupt("return",!1);case 13:if(this.steps=this.sortSteps(this.getSteps(this.tour)),this.steps.length){t.next=18;break}return this.removeOverlayEl(),this.isDisplayed=!1,t.abrupt("return",!1);case 18:return document.body.classList.add(this.constructor.getBodyClass()),t.next=21,this.go.apply(this,[e,n].concat(i));case 21:return a=t.sent,this.isDisplayed=a,document.body.classList.toggle(this.constructor.getBodyClass(),a),a&&(this.options.useKeyboard&&this.addOnKeydownListener(),this.addOnWindowResizeListener(),this.addOnWindowScrollListener()),t.abrupt("return",a);case 26:case"end":return t.stop()}}),t,this)}))),function(){return m.apply(this,arguments)})},{key:"go",value:(y=p(l().mark((function t(e){var n,r,i,o,a,s,c,u,p,f,h,d,v,g,y,m,b,x=this,_=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(n=!(_.length>1&&void 0!==_[1])||_[1],r=_.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=_[o];if(this.isDisplayed&&this.steps.length){t.next=4;break}return t.abrupt("return",!1);case 4:if(a=n?parseInt(e,10):e,!this.currentStep){t.next=9;break}if(!(n?this.currentStepIndex===a:this.currentStep.step===a)){t.next=9;break}return t.abrupt("return",!1);case 9:if(s=this.currentStep,c=this.currentStepIndex,u=n?this.steps[a]:this.steps.filter((function(t){return t.step===a}))[0]){t.next=14;break}return t.abrupt("return",!1);case 14:if(p=this.steps.indexOf(u),h=p,d=(f=u).onBeforeChange,v=f.onAfterChange,this.startPreloader(),g=!1,!d){t.next=26;break}return t.next=23,Promise.resolve().then((function(){return d.call.apply(d,[x,f,s].concat(i))}));case 23:if(t.t0=t.sent,!1!==t.t0){t.next=26;break}g=!0;case 26:return t.next=28,this.emit.apply(this,["onBeforeChange",f,s].concat(i));case 28:if(!t.sent.some((function(t){return!1===t}))){t.next=30;break}g=!0;case 30:if(this.stopPreloader(),!g){t.next=33;break}return t.abrupt("return",!1);case 33:return this.beforeChangeStep({toStep:f,toStepIndex:h,currentStep:u,currentStepIndex:p,fromStep:s,fromStepIndex:c}),this.toStep=f,this.toStepIndex=h,this.currentStep=u,this.currentStepIndex=p,this.fromStep=s,this.fromStepIndex=c,this.previousStep=this.steps[this.currentStepIndex-1]||null,this.previousStepIndex=this.previousStep?this.currentStepIndex-1:-1,this.nextStep=this.steps[this.currentStepIndex+1]||null,this.nextStepIndex=this.nextStep?this.currentStepIndex+1:-1,y=this.options.scrollBehavior,m=this.currentStep.scrollPadding,b=void 0===m?this.options.scrollPadding:m,this.scrollParentsToStepEl(),this.scrollTo(this.getStepEl(this.currentStep,!0),y,b),this.mountStep(),setTimeout((function(){x.getEl("tooltip")&&x.scrollTo(x.getEl("tooltip"),y,b)}),300),v&&v.call.apply(v,[this,this.toStep,this.fromStep].concat(i)),this.emit.apply(this,["onAfterChange",this.toStep,this.fromStep].concat(i)),t.abrupt("return",!0);case 53:case"end":return t.stop()}}),t,this)}))),function(t){return y.apply(this,arguments)})},{key:"previous",value:(d=p(l().mark((function t(){var e,n,r,i,o=this,a=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=a.length,n=new Array(e),r=0;r<e;r++)n[r]=a[r];if(this.isDisplayed&&this.currentStep&&this.previousStep){t.next=3;break}return t.abrupt("return",!1);case 3:if(i=this.currentStep.onPrevious,this.startPreloader(),!i){t.next=12;break}return t.next=8,Promise.resolve().then((function(){return i.call.apply(i,[o,o.previousStep,o.currentStep].concat(n))}));case 8:if(t.t0=t.sent,!1!==t.t0){t.next=12;break}return this.stopPreloader(),t.abrupt("return",!1);case 12:return t.next=14,this.emit.apply(this,["onPrevious",this.previousStep,this.currentStep].concat(n));case 14:if(!t.sent.some((function(t){return!1===t}))){t.next=17;break}return this.stopPreloader(),t.abrupt("return",!1);case 17:return this.stopPreloader(),t.abrupt("return",this.go.apply(this,[this.previousStepIndex,!0].concat(n)));case 19:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"next",value:(f=p(l().mark((function t(){var e,n,r,i,o=this,a=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(e=a.length,n=new Array(e),r=0;r<e;r++)n[r]=a[r];if(this.isDisplayed&&this.currentStep&&this.nextStep){t.next=3;break}return t.abrupt("return",!1);case 3:if(i=this.currentStep.onNext,this.startPreloader(),!i){t.next=12;break}return t.next=8,Promise.resolve().then((function(){return i.call.apply(i,[o,o.nextStep,o.currentStep].concat(n))}));case 8:if(t.t0=t.sent,!1!==t.t0){t.next=12;break}return this.stopPreloader(),t.abrupt("return",!1);case 12:return t.next=14,this.emit.apply(this,["onNext",this.nextStep,this.currentStep].concat(n));case 14:if(!t.sent.some((function(t){return!1===t}))){t.next=17;break}return this.stopPreloader(),t.abrupt("return",!1);case 17:return this.stopPreloader(),t.abrupt("return",this.go.apply(this,[this.nextStepIndex,!0].concat(n)));case 19:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"stop",value:(u=p(l().mark((function t(){var e,n,r,i=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.isDisplayed){t.next=2;break}return t.abrupt("return",this);case 2:for(e=i.length,n=new Array(e),r=0;r<e;r++)n[r]=i[r];if(this.currentStepIndex!==this.steps.length-1){t.next=8;break}return this.startPreloader(),t.next=7,this.emit.apply(this,["onComplete"].concat(n));case 7:this.stopPreloader();case 8:return this.startPreloader(),t.next=11,this.emit.apply(this,["onStop"].concat(n));case 11:return this.stopPreloader(),document.body.classList.remove(this.constructor.getBodyClass()),this.removeListeners(),this.unobserveStep(),this.unmountStep(),this.removeOverlayEl(),this.cache.clear(),this.elements.clear(),this.setDefaults(),t.abrupt("return",this);case 21:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"getSteps",value:function(t){return t&&t.length?"string"==typeof t?this.getDataSteps(t):this.getJsSteps(t):[]}},{key:"getDataSteps",value:function(t){var e=this,n="data-guidechimp",r=Array.from(document.querySelectorAll("[".concat(n,"-tour*='").concat(t,"']")));r=r.filter((function(t){return t.getAttribute("".concat(n,"-tour")).split(",").includes(e.tour)}));var i=new RegExp("^".concat(n,"-").concat(t,"-[^-]+$")),o=new RegExp("^".concat(n,"-[^-]+$"));return r.map((function(r,a){for(var s={},c=0;c<r.attributes.length;c++){var l=r.attributes[c],u=l.name,p=l.value,f=i.test(u),d=!f&&o.test(u);if(f||d){var v=f?u.replace("".concat(n,"-").concat(t,"-"),""):u.replace("".concat(n,"-"),"");"tour"!==v&&(f||d&&!s[v])&&(s[v]=p)}}return h(h({step:a,title:"",description:"",position:e.options.position,interaction:e.options.interaction},s),{},{element:r})}))}},{key:"getJsSteps",value:function(t){return t.map((function(t,e){return h(h({},t),{},{step:t.step||e})}))}},{key:"sortSteps",value:function(t){return a(t).sort((function(t,e){return t.step<e.step?-1:t.step>e.step?1:0}))}},{key:"getStepEl",value:function(t){var e=(t||{}).element;if(!e)return this.mountFakeStepEl();var n=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n="string"==typeof t?document.querySelector(t):t;return n||e}(e);return n&&"none"!==n.style.display&&"hidden"!==n.style.visibility||(n=this.getEl("fakeStep")?this.getEl("fakeStep"):this.mountFakeStepEl()),n}},{key:"scrollParentsToStepEl",value:function(){var t=this.currentStep.scrollPadding,e=void 0===t?this.options.scrollPadding:t;return this.scrollParentsToEl(this.getStepEl(this.currentStep),e)}},{key:"getScrollableParentsEls",value:function(t){for(var e=[],n=t;n&&n!==n.ownerDocument.body;)n=this.getScrollableParentEl(n),e.push(n);return e}},{key:"getScrollableParentEl",value:function(t){var e=/(auto|scroll)/,n=getComputedStyle(t),r=t.ownerDocument;return"fixed"===n.getPropertyValue("position")?r.body:function t(i){if(!i||i===r.body)return r.body;var o=getComputedStyle(i);if("fixed"===n.getPropertyValue("position")&&"static"===o.getPropertyValue("position"))return t(i.parentElement);var a=o.getPropertyValue("overflow-x"),s=o.getPropertyValue("overflow-y");return e.test(a)||e.test(s)?i:t(i.parentElement)}(t.parentElement)}},{key:"scrollParentsToEl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getScrollableParentsEls(t);return n.forEach((function(n){n!==document.body&&(n.scrollTop=t.offsetTop-n.offsetTop-e,n.scrollLeft=t.offsetLeft-n.offsetLeft-e)})),this}},{key:"scrollTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=t.getBoundingClientRect(),i=r.top,o=r.bottom,a=r.left,s=r.right,c=window,l=c.innerWidth,u=c.innerHeight;return a>=0&&s<=l||window.scrollBy({behavior:e,left:a-n}),i>=0&&o<=u||window.scrollBy({behavior:e,top:i-n}),this}},{key:"highlightStepEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getStepEl(this.currentStep),n=this.getEl("overlay");if(n){var r=n.querySelector("path"),i=r.querySelector("animate"),o=this.isEl(e,"fakeStep"),a=o?this.getOverlayDocumentPath():this.getOverlayStepPath(this.currentStep);if(r.setAttribute("d",a),i){var s=i.getAttribute("lock");if(s||(i.setAttribute("from",a),i.setAttribute("to",a)),t){var c=this.isEl(this.getStepEl(this.fromStep),"fakeStep"),l=!this.fromStep||c||o?null:this.getOverlayStepPath(this.fromStep);l&&(i.setAttribute("from",l),i.setAttribute("to",a)),i.setAttribute("lock","true")}i.onend=function(){i.removeAttribute("lock")},i.beginElement()}}var u=getComputedStyle(e);return["absolute","relative","fixed"].includes(u.getPropertyValue("position"))||e.classList.add(this.constructor.getRelativePositionClass()),e.classList.add(this.constructor.getHighlightClass()),e.setAttribute("data-guidechimp-".concat(this.uid),"highlight"),this.elements.set("highlight",e),this}},{key:"resetHighlightStepEl",value:function(){var t=this.getEl("overlay");if(t){var e=t.querySelector("path"),n=t.querySelector("animate");e.setAttribute("d",this.getOverlayDocumentPath()),n&&(n.removeAttribute("from"),n.removeAttribute("to"))}var r=this.getStepEl(this.currentStep);return r.classList.remove(this.constructor.getRelativePositionClass()),r.classList.remove(this.constructor.getHighlightClass()),r.removeAttribute("data-guidechimp-".concat(this.uid)),this.elements.delete("highlight"),this}},{key:"setInteractionPosition",value:function(t){var e=this.getStepEl(this.currentStep);if(!t||!e)return this;var n=this.options.padding;"floating"===getComputedStyle(e).getPropertyValue("position")&&(n=0);var r=this.constructor.getOffset(e),i=r.width,o=r.height,a=r.top,s=r.left;return t.classList.toggle(this.constructor.getFixedClass(),this.constructor.isFixed(e)),t.style.cssText="width: ".concat(i+n,"px;\n height: ").concat(o+n,"px;\n top: ").concat(a-n/2,"px;\n left: ").concat(s-n/2,"px;"),this}},{key:"setControlPosition",value:function(t){var e=this.getStepEl(this.currentStep);if(!t||!e)return this;var n=this.options.padding;"floating"===getComputedStyle(e).getPropertyValue("position")&&(n=0);var r=e.ownerDocument.defaultView.pageXOffset,i=e.ownerDocument.documentElement.getBoundingClientRect().width,o=this.constructor.getOffset(e),a=o.height,s=o.top,c=o.left,l=o.right,u=a+n,p=s-n/2,f=r<r+(c-n/2)?r:c-n/2,h=r+i>r+(l+n/2)?i:l+n/2;return t.classList.toggle(this.constructor.getFixedClass(),this.constructor.isFixed(e)),t.style.cssText="width: ".concat(h,"px;\n height: ").concat(u,"px;\n top: ").concat(p,"px;\n left: ").concat(f,"px;"),this}},{key:"setTooltipPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.currentStep)return this;var n=this.getStepEl(this.currentStep);if(!t||!n)return this;var r=e.boundary,i=e.position,a=this.options.padding;r=r||window;var s=(i=(i=i||this.currentStep.position)||this.options.position).split("-"),c=o(s,2),l=c[0],u=c[1],p=getComputedStyle(n);"floating"===p.getPropertyValue("position")&&(a=0);var f=t.style;f.top=null,f.right=null,f.bottom=null,f.left=null,f.transform=null;var h=n.getBoundingClientRect(),d=h.top,v=h.bottom,g=h.left,y=h.right,m=h.width,b=h.height,x=t.getBoundingClientRect(),_=x.height,w=x.width,k=t.cloneNode(!0);k.style.visibility="hidden",k.innerHTML="",t.parentElement.appendChild(k);var S=k.getBoundingClientRect(),E=S.width;k.parentElement.removeChild(k);var O=new DOMRect(0,0,window.innerWidth,window.innerHeight);if(!(r instanceof Window)){var P=r.getBoundingClientRect(),A=P.x,I=P.y;O=new DOMRect(A,I,r.scrollWidth,r.scrollHeight)}var j=O,T=j.top,C=j.bottom,L=j.left,D=j.right;if(this.isEl(n,"fakeStep"))l="floating";else{var R=["bottom","right","left","top"],N=getComputedStyle(t),B=N.marginTop,z=N.marginLeft,$=N.marginRight,W=N.marginBottom;if(B=parseInt(B,10),z=parseInt(z,10),$=parseInt($,10),_+B+(W=parseInt(W,10))>d-T&&R.splice(R.indexOf("top"),1),_+B+W>C-v&&R.splice(R.indexOf("bottom"),1),E+z+$>g-L&&R.splice(R.indexOf("left"),1),E+z+$>D-y&&R.splice(R.indexOf("right"),1),"top"===(l=R.length?R.includes(l)?l:R[0]:"floating")||"bottom"===l){var M=["left","right","middle"];D-g<E&&M.splice(M.indexOf("left"),1),y-L<E&&M.splice(M.indexOf("right"),1),(g+m/2-L<E/2||D-(y-m/2)<E/2)&&M.splice(M.indexOf("middle"),1),u=M.length?M.includes(u)?u:M[0]:"middle"}}t.setAttribute("data-guidechimp-position",l);var q=document.documentElement;switch(l){case"top":f.bottom="".concat(b+a,"px");break;case"right":f.left="".concat(y+a/2-q.clientLeft,"px");break;case"left":f.right="".concat(q.clientWidth-(g-a/2),"px");break;case"bottom":f.top="".concat(b+a,"px");break;default:f.left="50%",f.top="50%",f.transform="translate(-50%,-50%)"}if(t.removeAttribute("data-guidechimp-alignment"),u)switch(t.setAttribute("data-guidechimp-alignment",u),u){case"left":f.left="".concat(g-a/2,"px");break;case"right":f.right="".concat(q.clientWidth-y-a/2,"px");break;default:g+m/2<w/2||g+m/2+w/2>q.clientWidth?f.left="".concat(q.clientWidth/2-w/2,"px"):f.left="".concat(g+m/2-w/2,"px")}return this}},{key:"startPreloader",value:function(){document.body.classList.add(this.constructor.getLoadingClass());var t=this.getEl("overlay");if(t){var e=t.querySelector("path"),n=t.querySelector("animate"),r=new Map;r.set("d",e.getAttribute("d")),e.setAttribute("d",this.getOverlayDocumentPath()),n&&(r.set("from",n.getAttribute("from")),r.set("to",n.getAttribute("to")),n.removeAttribute("from"),n.removeAttribute("to")),this.cache.set("preloaderCache",r)}var i=this.mountPreloaderEl();return i.hidden=!0,setTimeout((function(){i.hidden=!1}),100),this}},{key:"stopPreloader",value:function(){document.body.classList.remove(this.constructor.getLoadingClass());var t=this.getEl("overlay");if(t){var e=t.querySelector("path"),n=t.querySelector("animate"),r=this.cache.get("preloaderCache")||new Map;r.has("d")&&e.setAttribute("d",r.get("d")),n&&(r.has("from")&&n.setAttribute("from",r.get("from")),r.has("to")&&n.setAttribute("to",r.get("to"))),this.cache.delete("preloaderCache")}return this.removePreloaderEl(),this}},{key:"getDefaultTmplData",value:function(){var t=this;return{previousStep:this.previousStep,currentStep:this.currentStep,nextStep:this.nextStep,fromStep:this.fromStep,toStep:this.toStep,previousStepIndex:this.previousStepIndex,currentStepIndex:this.currentStepIndex,nextStepIndex:this.nextStepIndex,fromStepIndex:this.fromStepIndex,toStepIndex:this.toStepIndex,steps:this.steps,go:function(){return t.go.apply(t,arguments)},previous:function(){return t.previous.apply(t,arguments)},next:function(){return t.next.apply(t,arguments)},stop:function(){return t.stop.apply(t,arguments)}}}},{key:"mountStep",value:function(){var t=this.mountInteractionEl(),e=this.mountControlEl();return this.setInteractionPosition(t),this.setControlPosition(e),this.setTooltipPosition(this.getEl("tooltip")),this.observeStep(),this.highlightStepEl(!0),this}},{key:"unmountStep",value:function(){return this.resetHighlightStepEl(),this.removeInteractionEl(),this.removeControlEl(),this.removePreloaderEl(),this.removeFakeStepEl(),this}},{key:"createEl",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=(0,n.Z)(e,r);return i&&i.setAttribute("data-quidechimp-".concat(this.uid),t),i}},{key:"getEl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.elements.get(t);return n||(n=document.querySelector("[data-quidechimp-".concat(this.uid,'="').concat(t,'"]'))),n||e}},{key:"mountEl",value:function(t,e){var n=this;if(t){var r=t.querySelectorAll("[data-quidechimp-".concat(this.uid,"]"));[t].concat(a(r)).forEach((function(t){var e=t.getAttribute("data-quidechimp-".concat(n.uid));e&&(n.removeEl(e),n.elements.set(e,t))})),e.appendChild(t)}return t}},{key:"removeEl",value:function(t){var e=this.getEl(t);return e&&e.parentElement.removeChild(e),this.elements.delete(t),this}},{key:"isEl",value:function(t,e){return this.getEl(e)?t===this.getEl(e):t.getAttribute("data-quidechimp-".concat(this.uid))===e}},{key:"getFakeStepTmpl",value:function(){return'<div class="gc-fake-step"></div>'}},{key:"createFakeStepEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("fakeStep",this.getFakeStepTmpl(),h(h({},this.getDefaultTmplData()),t))}},{key:"mountFakeStepEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.mountEl(this.createFakeStepEl(t),document.body)}},{key:"removeFakeStepEl",value:function(){return this.removeEl("fakeStep")}},{key:"getPreloaderTmpl",value:function(){return'<div class="gc-preloader"></div>'}},{key:"createPreloaderEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("preloader",this.getPreloaderTmpl(),t)}},{key:"mountPreloaderEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.mountEl(this.createPreloaderEl(t),document.body)}},{key:"removePreloaderEl",value:function(){return this.removeEl("preloader")}},{key:"getOverlayDocumentPath",value:function(){var t=window,e=t.innerWidth,n=t.innerHeight,r=document.body,i=r.scrollWidth,o=r.scrollHeight,a=n>o?n:o;return"M 0 0 H ".concat(e>i?e:i," V ").concat(a," H 0 V 0 Z")}},{key:"getOverlayStepPath",value:function(t){return this.getOverlayElPath(this.getStepEl(t))}},{key:"getOverlayElPath",value:function(t){var e=this.options.padding;e=e?e/2:0;var n=t.getBoundingClientRect(),r=n.left,i=n.top,o=n.width,a=n.height,s=this.getOverlayDocumentPath();return s+="M ".concat(r-e+4," ").concat(i-e,"\n a ").concat(4,",").concat(4," 0 0 0 -").concat(4,",").concat(4,"\n V ").concat(a+i+e-4,"\n a ").concat(4,",").concat(4," 0 0 0 ").concat(4,",").concat(4,"\n H ").concat(o+r+e-4,"\n a ").concat(4,",").concat(4," 0 0 0 ").concat(4,",-").concat(4,"\n V ").concat(i-e+4,"\n a ").concat(4,",").concat(4," 0 0 0 -").concat(4,",-").concat(4,"Z")}},{key:"getOverlayTmpl",value:function(){return'<div class="gc-overlay" @click="stop({ event: $event })"> <svg class="svg-overlay"> <path d="{{path}}"> <animate attributeName="d" dur="200ms"/> </path> </svg> </div>'}},{key:"createOverlayEl",value:function(){var t,e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={stop:(t=p(l().mark((function t(){var n=arguments;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.options.exitOverlay){t.next=3;break}return t.next=3,e.stop.apply(e,n);case 3:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)}),path:this.getOverlayDocumentPath()};return this.createEl("overlay",this.getOverlayTmpl(),h(h({},r),n))}},{key:"mountOverlayEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.mountEl(this.createOverlayEl(t),document.body)}},{key:"removeOverlayEl",value:function(){return this.removeEl("overlay")}},{key:"getInteractionTmpl",value:function(){return'<div if="!interaction" class="gc-interaction gc-disable"> </div>'}},{key:"createInteractionEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.options.interaction;"boolean"==typeof this.currentStep.interaction&&(e=this.currentStep.interaction);var n=h(h({},this.getDefaultTmplData()),{},{interaction:e});return this.createEl("interaction",this.getInteractionTmpl(),h(h({},n),t))}},{key:"mountInteractionEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.mountEl(this.createInteractionEl(t),document.body)}},{key:"removeInteractionEl",value:function(){return this.removeEl("interaction")}},{key:"getControlTmpl",value:function(){return'<div class="gc-control"> {{ tooltipEl }} </div>'}},{key:"createControlEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("control",this.getControlTmpl(),h(h({},this.getDefaultTmplData()),{},{tooltipEl:this.createTooltipEl(t)},t))}},{key:"mountControlEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.mountEl(this.createControlEl(t),document.body)}},{key:"removeControlEl",value:function(){return this.removeEl("control")}},{key:"getTooltipTmpl",value:function(){return'<div class="gc-tooltip"> <div class="gc-tooltip-tail"></div> {{ progressbar }} {{ title }} {{ description }} {{ close }} {{ customButtons }} <div if="previous || pagination || next" class="gc-navigation"> {{ previous }} {{ pagination }} {{ next }} </div> {{ copyright }} {{ notification }} </div>'}},{key:"createTooltipEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=h(h({},this.getDefaultTmplData()),{},{progressbar:this.createProgressbarEl(t),title:this.createTitleEl(t),description:this.createDescriptionEl(t),close:this.createCloseEl(t),customButtons:this.createCustomButtonsEl(t),previous:this.createPreviousEl(t),pagination:this.createPaginationEl(t),next:this.createNextEl(t),copyright:this.createCopyrightEl(t),notification:this.createNotificationEl(t)});return this.createEl("tooltip",this.getTooltipTmpl(),h(h({},e),t))}},{key:"getCloseTmpl",value:function(){return'<div class="gc-close" @click="stop({ event: $event })"></div>'}},{key:"createCloseEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("close",this.getCloseTmpl(),h(h({},this.getDefaultTmplData()),t))}},{key:"getProgressbarTmpl",value:function(){return'<div if="showProgressbar" class="gc-progressbar" role="progressbar" aria-valuemin="{{ progressMin }}" aria-valuemax="{{ progressMax }}" aria-valuenow="{{ progress }}" style="width:{{ progress }}%;"></div>'}},{key:"createProgressbarEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.options.showProgressbar;"boolean"==typeof this.currentStep.showProgressbar&&(e=this.currentStep.showProgressbar);var n=100,r=0,i=(this.currentStepIndex+1)/this.steps.length*100,o=h(h({},this.getDefaultTmplData()),{},{showProgressbar:e,progressMax:n,progressMin:r,progress:i});return this.createEl("progressbar",this.getProgressbarTmpl(),h(h({},o),t))}},{key:"getTitleTmpl",value:function(){return'<div if="title" html="{{ title }}" class="gc-title"> </div>'}},{key:"createTitleEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.currentStep.title,n=void 0===e?"":e;return this.createEl("title",this.getTitleTmpl(),h(h({},this.getDefaultTmplData()),{},{title:n},t))}},{key:"getDescriptionTmpl",value:function(){return'<div if="description" html="{{ description }}" class="gc-description"></div>'}},{key:"createDescriptionEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.currentStep.description,n=void 0===e?"":e;return this.createEl("description",this.getDescriptionTmpl(),h(h({},this.getDefaultTmplData()),{},{description:n},t))}},{key:"getCustomButtonsTmpl",value:function(){return'<div if="buttons.length" class="gc-custom-buttons"> <template for="button in buttons"> {{ button }} </template> </div>'}},{key:"createCustomButtonsEl",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[];return this.currentStep.buttons&&this.currentStep.buttons.forEach((function(e){var i=e;if(!(0,r.Z)(i)){var o=e.onClick,a=e.tagName,s=void 0===a?"button":a,c=e.title,l=void 0===c?"":c,u=e.class;(i=document.createElement(s)).innerHTML=l,u&&(i.className=u),o&&i.addEventListener("click",(function(e){o.call(t,e)}))}n.push(i)})),this.createEl("customButtons",this.getCustomButtonsTmpl(),h(h({},this.getDefaultTmplData()),{},{buttons:n},e))}},{key:"getPaginationTmpl",value:function(){return'<div if="showPagination && steps.length > 1" class="gc-pagination"> <template if="paginationTheme === \'numbers\' || steps.length >= paginationCirclesMaxItems"> <ul class="gc-pagination-theme-numbers"> <template for="(step, index) in steps"> <template if="index === 0"> <li if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> <li elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"> {{ index + 1 }} </li> <li elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"> {{ index + 1 }} </li> <li else class="gc-pagination-item" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> </template> <template if="currentStepIndex < 3"> <template if="index > 0 && index < 5"> <li if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> <li elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"> {{ index + 1 }} </li> <li elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"> {{ index + 1 }} </li> <li else class="gc-pagination-item" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> </template> <li elseif="index === 5 && index !== steps.length - 1" class="gc-pagination-dots"> ... </li> </template> <template elseif="steps.length - currentStepIndex < 5"> <template if="steps.length - index < 6 && steps.length - 1 !== index"> <li if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> <li elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"> {{ index + 1 }} </li> <li elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"> {{ index + 1 }} </li> <li else class="gc-pagination-item" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> </template> <li elseif="steps.length - index === 6 && index !== 0" class="gc-pagination-dots"> ... </li> </template> <template else> <li if="currentStepIndex - index === 3 && index !== 0" class="gc-pagination-dots"> ... </li> <template elseif="(currentStepIndex - index >= 0 && currentStepIndex - index < 3)\n || ( index - currentStepIndex >= 0 && index - currentStepIndex < 3)"> <li if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> <li elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"> {{ index + 1 }} </li> <li elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"> {{ index + 1 }} </li> <li else class="gc-pagination-item" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> </template> <li elseif="index - currentStepIndex === 3 && steps.length -1 !== index" class="gc-pagination-dots"> ... </li> </template> <template if="index + 1 === steps.length"> <li if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> <li elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"> {{ index + 1 }} </li> <li elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"> {{ index + 1 }} </li> <li else class="gc-pagination-item" @click="go(index, true, { event: $event })"> {{ index + 1 }} </li> </template> </template> </ul> </template> <template else> <div class="gc-pagination-theme-circles"> <template for="(step, index) in steps"> <div if="index === currentStepIndex" class="gc-pagination-item gc-pagination-item-current gc-pagination-active"></div> <div elseif="index === previousStepIndex" class="gc-pagination-item gc-pagination-item-previous" @click="previous({ event: $event })"></div> <div elseif="index === nextStepIndex" class="gc-pagination-item gc-pagination-item-next" @click="next({ event: $event })"></div> <div else class="gc-pagination-item" @click="go(index, true, { event: $event })"></div> </template> </div> </template> </div> '}},{key:"createPaginationEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.currentStep,n=e.paginationTheme,r=void 0===n?this.options.paginationTheme:n,i=e.paginationCirclesMaxItems,o=void 0===i?this.options.paginationCirclesMaxItems:i,a=this.options.showPagination;return"boolean"==typeof this.currentStep.showPagination&&(a=this.currentStep.showPagination),this.createEl("pagination",this.getPaginationTmpl(),h(h({},this.getDefaultTmplData()),{},{showPagination:a,paginationTheme:r,paginationCirclesMaxItems:o},t))}},{key:"getPreviousTmpl",value:function(){return"<div class=\"gc-navigation-prev {{ (!previousStep || !showNavigation) ? 'gc-hidden': '' }}\" @click=\"previous({ event: $event })\"></div>"}},{key:"createPreviousEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.options.showNavigation;return"boolean"==typeof this.currentStep.showNavigation&&(e=this.currentStep.showNavigation),this.createEl("previous",this.getPreviousTmpl(),h(h({},this.getDefaultTmplData()),{},{showNavigation:e},t))}},{key:"getNextTmpl",value:function(){return"<div class=\"gc-navigation-next {{ (!nextStep || !showNavigation) ? 'gc-hidden': '' }}\" @click=\"next({ event: $event })\"></div>"}},{key:"createNextEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.options.showNavigation;return"boolean"==typeof this.currentStep.showNavigation&&(e=this.currentStep.showNavigation),this.createEl("next",this.getNextTmpl(),h(h({},this.getDefaultTmplData()),{},{showNavigation:e},t))}},{key:"getCopyrightTmpl",value:function(){return'<div class="gc-copyright">Made with AHD.JS</div> '}},{key:"createCopyrightEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("copyright",this.getCopyrightTmpl(),h(h({},this.getDefaultTmplData()),t))}},{key:"getNotificationTmpl",value:function(){return'<div html="{{ messages[0] }}" class="gc-notification"></div>'}},{key:"createNotificationEl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.createEl("notification",this.getNotificationTmpl(),h(h({},this.getDefaultTmplData()),{},{messages:this.notifications},t))}},{key:"notify",value:function(t){this.notifications.push(t);var e=this.getEl("notification");return e&&this.mountEl(this.createNotificationEl(),e.parentElement),this}},{key:"on",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.constructor.getEventListenersPriorities(),i=o(r,1),a=i[0];n.priority&&r.includes(n.priority)&&(a=n.priority);var s=t.trim();return this.listeners[s]=this.listeners[s]||{},this.listeners[s][a]=this.listeners[s][a]||[],this.listeners[s][a].push(e),this}},{key:"emit",value:function(t){for(var e=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=a(this.constructor.getEventListenersPriorities()).reverse(),s=t.trim(),c=[],l=Promise.resolve(c);return this.listeners[s]&&o.forEach((function(t){var n=e.listeners[s][t];n&&(l=l.then((function(){return Promise.all(n.map((function(t){return Promise.resolve().then((function(){return t.apply(e,r)}))})))})).then((function(t){return c=[].concat(a(c),a(t))})))})),l}},{key:"addOnKeydownListener",value:function(){return this.cache.set("onKeydownListener",this.getOnKeydownListener()),window.addEventListener("keydown",this.cache.get("onKeydownListener"),!0),this}},{key:"getOnKeydownListener",value:function(){var t=this;return function(e){var n=e.keyCode,r=h(h({},t.constructor.getDefaultKeyboardCodes()),t.options.useKeyboard),i=r.previous,o=r.next,a=r.stop;a&&a.includes(n)?t.stop({event:e}):i&&i.includes(n)?t.previous({event:e}):o&&o.includes(n)&&t.next({event:e})}}},{key:"removeOnKeydownListener",value:function(){return this.cache.has("onKeydownListener")&&(window.removeEventListener("keydown",this.cache.get("onKeydownListener"),!0),this.cache.delete("onKeydownListener")),this}},{key:"addOnWindowResizeListener",value:function(){return this.cache.set("onWindowResizeListener",this.getOnWindowResizeListener()),window.addEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this}},{key:"getOnWindowResizeListener",value:function(){var t=this;return function(){return t.refresh()}}},{key:"removeOnWindowResizeListener",value:function(){return this.cache.has("onWindowResizeListener")&&(window.removeEventListener("resize",this.cache.get("onWindowResizeListener"),!0),this.cache.delete("onWindowResizeListener")),this}},{key:"addOnWindowScrollListener",value:function(){return this.cache.set("onWindowScrollListener",this.getOnWindowScrollListener()),window.addEventListener("scroll",this.cache.get("onWindowScrollListener"),!0),this}},{key:"getOnWindowScrollListener",value:function(){var t=this;return function(){return t.refresh()}}},{key:"removeOnWindowScrollListener",value:function(){return this.cache.has("onWindowScrollListener")&&(window.removeEventListener("scroll",this.cache.get("onWindowScrollListener"),!0),this.cache.delete("onWindowScrollListener")),this}},{key:"removeListeners",value:function(){this.removeOnKeydownListener(),this.removeOnWindowResizeListener(),this.removeOnWindowScrollListener()}},{key:"observeStep",value:function(){this.observeResizing(),this.observeMutation()}},{key:"observeResizing",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{box:"border-box"},n=this.observers.resizingObserver;return n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver((function(){(t||t.currentStep)&&t.refresh()})),this.observers.resizingObserver=n),!!n&&(n.observe(this.getStepEl(this.currentStep),e),!0)}},{key:"unobserveResizing",value:function(){var t=this.observers.resizingObserver;return!!t&&(t.disconnect(),!0)}},{key:"observeMutation",value:function(){var t=this,e=this.observers.mutationObserver;return e||(e=new MutationObserver((function(e){if((t||t.currentStep)&&t.currentStep.element){var n=t.getStepEl(t.currentStep),r=function(){return n&&!t.isEl(n,"fakeStep")};e.forEach((function(e){r()?"childList"===e.type&&e.removedNodes.length&&e.removedNodes.forEach((function(e){(e===n||e.contains(n))&&(n=t.getStepEl(t.currentStep),t.scrollParentsToStepEl(),t.refresh())})):"childList"===e.type&&e.addedNodes.length&&(n=t.getStepEl(t.currentStep),r()&&(t.scrollParentsToStepEl(),t.refresh()))}))}})),this.observers.mutationObserver=e),e.observe(this.getStepEl(this.currentStep).ownerDocument.body,{childList:!0,subtree:!0}),!0}},{key:"unobserveMutation",value:function(){var t=this.observers.mutationObserver;return!!t&&(t.disconnect(),!0)}},{key:"unobserveStep",value:function(){this.unobserveResizing(),this.unobserveMutation()}},{key:"beforeChangeStep",value:function(){this.unmountStep(),this.unobserveStep()}},{key:"refresh",value:function(){return this.currentStep?(this.highlightStepEl(),this.setControlPosition(this.getEl("control")),this.setInteractionPosition(this.getEl("interaction")),this.setTooltipPosition(this.getEl("tooltip")),this):this}}],c=[{key:"getDefaultOptions",value:function(){return{position:"bottom",useKeyboard:!0,exitEscape:!0,exitOverlay:!0,showPagination:!0,showNavigation:!0,showProgressbar:!0,paginationTheme:"circles",paginationCirclesMaxItems:10,interaction:!0,padding:8,scrollPadding:10,scrollBehavior:"auto"}}},{key:"getDefaultKeyboardCodes",value:function(){return{previous:[37],next:[39,13,32],stop:[27]}}},{key:"getEventListenersPriorities",value:function(){return["low","medium","high","critical"]}},{key:"getBodyClass",value:function(){return"gc"}},{key:"getLoadingClass",value:function(){return"gc-loading"}},{key:"getHighlightClass",value:function(){return"gc-highlight"}},{key:"getFixedClass",value:function(){return"gc-fixed"}},{key:"getRelativePositionClass",value:function(){return"gc-relative"}},{key:"getOffset",value:function(t){var e=t.ownerDocument,n=e.body,r=e.documentElement,i=e.defaultView,o=i.pageYOffset||r.scrollTop||n.scrollTop,a=i.pageXOffset||r.scrollLeft||n.scrollLeft,s=t.getBoundingClientRect(),c=s.top,l=s.right,u=s.bottom,p=s.left;return{right:l,bottom:u,width:s.width,height:s.height,x:s.x,y:s.y,top:c+o,left:p+a}}},{key:"isFixed",value:function(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===getComputedStyle(t).getPropertyValue("position")||this.isFixed(e))}}],s&&g(i.prototype,s),c&&g(i,c),Object.defineProperty(i,"prototype",{writable:!1}),t}(),m=__webpack_require__(9);function b(t){return b="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},b(t)}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(){return k="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=S(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},k.apply(this,arguments)}function S(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=I(t)););return t}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var i=I(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(t,e){if(e&&("object"===b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}const j=function(t,e){e.information=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new(function(e){E(r,e);var n=P(r);function r(){return x(this,r),n.apply(this,arguments)}return w(r,[{key:"getDataInformation",value:function(t){var e=this,n=k(I(r.prototype),"getDataInformation",this).call(this,t);return n.forEach((function(t){var n=t.id,r=t.element,i="",o="".concat(e.constructor.getInformationDataPrefix(),"-tour"),a="".concat(e.constructor.getInformationDataPrefix(),"-").concat(n,"-tour");r.attributes[o]&&(i=r.attributes[o].value);r.attributes[a]&&(i=r.attributes[a].value);i&&(t.tour=i)})),n}},{key:"createInformationEl",value:function(e){var n=k(I(r.prototype),"createInformationEl",this).call(this,e);return e.tour&&n.addEventListener("click",(function(){var n=null;if("string"==typeof e.tour||Array.isArray(e.tour))n=new t(e.tour);else if(e.tour instanceof t)n=e.tour;else if("object"===b(e.tour)){var r=e.tour,i=r.steps,o=r.options;n=new t(i,o)}n&&n.start()})),n}}]),r}(m.Z))(e,n)}};var T=__webpack_require__(219);function C(t){return C="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},C(t)}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e,n){return e&&D(t.prototype,e),n&&D(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function N(){return N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=B(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},N.apply(this,arguments)}function B(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=q(t)););return t}function z(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$(t,e)}function $(t,e){return $=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},$(t,e)}function W(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=q(t);if(e){var i=q(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return M(this,n)}}function M(t,e){if(e&&("object"===C(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function q(t){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},q(t)}const F=function(t,e){e.beacons=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new(function(e){z(r,e);var n=W(r);function r(){return L(this,r),n.apply(this,arguments)}return R(r,[{key:"getDataBeacons",value:function(t){var e=this,n=N(q(r.prototype),"getDataBeacons",this).call(this,t);return n.forEach((function(t){var n=t.id,r=t.element,i="",o="".concat(e.constructor.getBeaconDataPrefix(),"-tour"),a="".concat(e.constructor.getBeaconDataPrefix(),"-").concat(n,"-tour");r.attributes[o]&&(i=r.attributes[o].value);r.attributes[a]&&(i=r.attributes[a].value);i&&(t.tour=i)})),n}},{key:"createBeaconEl",value:function(e){var n=N(q(r.prototype),"createBeaconEl",this).call(this,e);return e.tour&&n.addEventListener("click",(function(){var n=null;if("string"==typeof e.tour||Array.isArray(e.tour))n=new t(e.tour);else if(e.tour instanceof t)n=e.tour;else if("object"===C(e.tour)){var r=e.tour,i=r.steps,o=r.options;n=new t(i,o)}n&&n.start()})),n}}]),r}(T.Z))(e,n)}};function V(t,e,n){return V=H()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&K(i,n.prototype),i},V.apply(null,arguments)}function H(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Z(t,e,n){return e&&G(t.prototype,e),n&&G(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function J(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}const X=Z((function t(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];U(this,t),J(this,"guideChimp",void 0),J(this,"beacons",(function(){var t,n=(t=e.guideChimp).beacons.apply(t,arguments);setTimeout((function(){n.showAll()}),1e3)})),J(this,"start",(function(){var t;(t=e.guideChimp).start.apply(t,arguments)})),J(this,"showInformation",(function(){var t,n=(t=e.guideChimp).information.apply(t,arguments);setTimeout((function(){n.showAll()}),1e3)})),this.guideChimp=V(y,r),this.guideChimp.prototype=y.prototype,this.guideChimp.plugins=new Set;var o=[F,j];o.forEach((function(t){var n=t;e.guideChimp.plugins.has(n)||(e.guideChimp.plugins.add(n),n.apply(void 0,[y,e.guideChimp].concat(r)))}))}))})(),__webpack_exports__})()));
13
+ //# sourceMappingURL=index.js.map