Version Description
Security release related to CVE-2018-7747
Download this release
Release Info
Developer | Shelob9 |
Plugin | Caldera Forms – More Than Contact Forms |
Version | 1.6.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.6.1 to 1.6.1.1
- LICENSE +0 -0
- README.md +0 -0
- assets/build/css/admin.min.css +0 -0
- assets/build/css/caldera-alert.min.css +0 -0
- assets/build/css/caldera-form.min.css +0 -0
- assets/build/css/caldera-grid.min.css +0 -0
- assets/build/css/caldera-modals.min.css +0 -0
- assets/build/css/caldera-table.min.css +0 -0
- assets/build/css/cfont.min.css +0 -0
- assets/build/css/dashicon.min.css +0 -0
- assets/build/css/editor-grid.min.css +0 -0
- assets/build/css/entry-viewer-2.min.css +0 -0
- assets/build/css/fields.min.css +0 -0
- assets/build/css/fonts/caldera-forms.eot +0 -0
- assets/build/css/fonts/caldera-forms.svg +0 -0
- assets/build/css/fonts/caldera-forms.ttf +0 -0
- assets/build/css/fonts/caldera-forms.woff +0 -0
- assets/build/css/fonts/cf-raty.eot +0 -0
- assets/build/css/fonts/cf-raty.svg +0 -0
- assets/build/css/fonts/cf-raty.ttf +0 -0
- assets/build/css/fonts/cf-raty.woff +0 -0
- assets/build/css/fonts/cfont.eot +0 -0
- assets/build/css/fonts/cfont.svg +0 -0
- assets/build/css/fonts/cfont.ttf +0 -0
- assets/build/css/fonts/cfont.woff +0 -0
- assets/build/css/fonts/icon.eot +0 -0
- assets/build/css/fonts/icon.svg +0 -0
- assets/build/css/fonts/icon.ttf +0 -0
- assets/build/css/fonts/icon.woff +0 -0
- assets/build/css/minicolor-colors.png +0 -0
- assets/build/css/minicolor-trigger.png +0 -0
- assets/build/css/modals.min.css +0 -0
- assets/build/css/processors-edit.min.css +0 -0
- assets/build/css/remodal-default-theme.min.css +0 -0
- assets/build/css/remodal.min.css +0 -0
- assets/build/css/theme-default.min.css +0 -0
- assets/build/images/align-justify.svg +0 -0
- assets/build/images/calculator.svg +0 -0
- assets/build/images/caldera-globe-logo-sm.png +0 -0
- assets/build/images/cart-plus.svg +0 -0
- assets/build/images/cc-amex.svg +0 -0
- assets/build/images/cc-discover.svg +0 -0
- assets/build/images/cc-mastercard.svg +0 -0
- assets/build/images/cc-paypal.svg +0 -0
- assets/build/images/cc-stripe.svg +0 -0
- assets/build/images/cc-visa.svg +0 -0
- assets/build/images/cf-pro-logo.png +0 -0
- assets/build/images/chain.svg +0 -0
- assets/build/images/checkmark.png +0 -0
- assets/build/images/cloud-upload.svg +0 -0
- assets/build/images/cog.svg +0 -0
- assets/build/images/credit-card.svg +0 -0
- assets/build/images/envelope-o.svg +0 -0
- assets/build/images/envelope-square.svg +0 -0
- assets/build/images/eye.svg +0 -0
- assets/build/images/field.png +0 -0
- assets/build/images/folder-open-o.svg +0 -0
- assets/build/images/howto.gif +0 -0
- assets/build/images/lgo-icon.png +0 -0
- assets/build/images/list.svg +0 -0
- assets/build/images/loading.gif +0 -0
- assets/build/images/lock.svg +0 -0
- assets/build/images/mobile.svg +0 -0
- assets/build/images/new-icon.png +0 -0
- assets/build/images/paint-brush.svg +0 -0
- assets/build/images/paypal.svg +0 -0
- assets/build/images/plus.svg +0 -0
- assets/build/images/processor.png +0 -0
- assets/build/images/ra.svg +0 -0
- assets/build/images/slack.svg +0 -0
- assets/build/images/star.svg +0 -0
- assets/build/images/user.svg +0 -0
- assets/build/images/volume-control-phone.svg +0 -0
- assets/build/images/wordpress.svg +0 -0
- assets/build/js/admin.min.js +0 -0
- assets/build/js/api/client.min.js +0 -0
- assets/build/js/api/stores.min.js +0 -0
- assets/build/js/caldera-clippy.min.js +0 -0
- assets/build/js/caldera-modals.min.js +0 -0
- assets/build/js/edit.min.js +0 -0
- assets/build/js/entry-viewer-2.min.js +0 -0
- assets/build/js/field-config.min.js +0 -0
- assets/build/js/fields.min.js +0 -0
- assets/build/js/formobject.min.js +0 -0
- assets/build/js/handlebars.min.js +0 -0
- assets/build/js/html5.min.js +0 -0
- assets/build/js/i18n/al.js +0 -0
- assets/build/js/i18n/ar.js +0 -0
- assets/build/js/i18n/bg.js +0 -0
- assets/build/js/i18n/ca.js +0 -0
- assets/build/js/i18n/cs.extra.js +0 -0
- assets/build/js/i18n/cs.js +0 -0
- assets/build/js/i18n/da.js +0 -0
- assets/build/js/i18n/de.extra.js +0 -0
- assets/build/js/i18n/de.js +0 -0
- assets/build/js/i18n/el.extra.js +0 -0
- assets/build/js/i18n/el.js +0 -0
- assets/build/js/i18n/en.extra.js +0 -0
- assets/build/js/i18n/en.js +0 -0
- assets/build/js/i18n/es.js +0 -0
- assets/build/js/i18n/eu.js +0 -0
- assets/build/js/i18n/fa.js +0 -0
- assets/build/js/i18n/fi.extra.js +0 -0
- assets/build/js/i18n/fi.js +0 -0
- assets/build/js/i18n/fr.extra.js +0 -0
- assets/build/js/i18n/fr.js +0 -0
- assets/build/js/i18n/he.extra.js +0 -0
- assets/build/js/i18n/he.js +0 -0
- assets/build/js/i18n/hr.extra.js +0 -0
- assets/build/js/i18n/hr.js +0 -0
- assets/build/js/i18n/hu.extra.js +0 -0
- assets/build/js/i18n/hu.js +0 -0
- assets/build/js/i18n/id.extra.js +0 -0
- assets/build/js/i18n/id.js +0 -0
- assets/build/js/i18n/it.extra.js +0 -0
- assets/build/js/i18n/it.js +0 -0
- assets/build/js/i18n/ja.extra.js +0 -0
- assets/build/js/i18n/ja.js +0 -0
- assets/build/js/i18n/ko.js +0 -0
- assets/build/js/i18n/lt.extra.js +0 -0
- assets/build/js/i18n/lt.js +0 -0
- assets/build/js/i18n/lv.extra.js +0 -0
- assets/build/js/i18n/lv.js +0 -0
- assets/build/js/i18n/ms.extra.js +0 -0
- assets/build/js/i18n/ms.js +0 -0
- assets/build/js/i18n/ms_MY.extra.js +0 -0
- assets/build/js/i18n/ms_MY.js +0 -0
- assets/build/js/i18n/nl.extra.js +0 -0
- assets/build/js/i18n/nl.js +0 -0
- assets/build/js/i18n/no.js +0 -0
- assets/build/js/i18n/pl.js +0 -0
- assets/build/js/i18n/pt-br.js +0 -0
- assets/build/js/i18n/pt-pt.js +0 -0
- assets/build/js/i18n/ro.extra.js +0 -0
- assets/build/js/i18n/ro.js +0 -0
- assets/build/js/i18n/ru.extra.js +0 -0
- assets/build/js/i18n/ru.js +0 -0
- assets/build/js/i18n/sk.extra.js +0 -0
- assets/build/js/i18n/sk.js +0 -0
- assets/build/js/i18n/sl.extra.js +0 -0
- assets/build/js/i18n/sl.js +0 -0
- assets/build/js/i18n/sq.js +0 -0
- assets/build/js/i18n/sr.extra.js +0 -0
- assets/build/js/i18n/sr.js +0 -0
- assets/build/js/i18n/sv.extra.js +0 -0
- assets/build/js/i18n/sv.js +0 -0
- assets/build/js/i18n/th.js +0 -0
- assets/build/js/i18n/tr.js +0 -0
- assets/build/js/i18n/ua.extra.js +0 -0
- assets/build/js/i18n/ua.js +0 -0
- assets/build/js/i18n/uk.extra.js +0 -0
- assets/build/js/i18n/uk.js +0 -0
- assets/build/js/i18n/zh_cn.extra.js +0 -0
- assets/build/js/i18n/zh_cn.js +0 -0
- assets/build/js/i18n/zh_tw.js +0 -0
- assets/build/js/jquery-baldrick.min.js +0 -0
- assets/build/js/jquery.min.js +0 -0
- assets/build/js/modals.min.js +0 -0
- assets/build/js/parsley-aria.min.js +0 -0
- assets/build/js/polyfiller.min.js +0 -0
- assets/build/js/remodal.min.js +0 -0
- assets/build/js/shortcode-insert.min.js +0 -0
- assets/build/js/state/events.min.js +0 -0
- assets/build/js/support-page.min.js +0 -0
- assets/build/js/viewer/init.min.js +0 -0
- assets/build/js/viewer/viewer.min.js +0 -0
- assets/build/js/vue.min.js +0 -0
- assets/build/js/vue/status-component.min.js +0 -0
- assets/build/js/vue/vue-filter.min.js +0 -0
- assets/build/js/vue/vue.min.js +0 -0
- assets/build/js/wp-baldrick-full.min.js +0 -0
- assets/css/caldera-modals.css +0 -0
- assets/css/caldera-table.css +0 -0
- assets/css/cfont.css +0 -0
- assets/css/entry-viewer-2.css +0 -0
- assets/css/fonts/cfont.eot +0 -0
- assets/css/fonts/cfont.svg +0 -0
- assets/css/fonts/cfont.ttf +0 -0
- assets/css/fonts/cfont.woff +0 -0
- assets/css/ie7/ie7.css +0 -0
- assets/css/ie7/ie7.js +0 -0
- assets/css/remodal-default-theme.css +0 -0
- assets/css/remodal.css +0 -0
- assets/css/theme-default.min.css +0 -0
- assets/images/align-justify.svg +0 -0
- assets/images/calculator.svg +0 -0
- assets/images/cart-plus.svg +0 -0
- assets/images/cc-amex.svg +0 -0
- assets/images/cc-discover.svg +0 -0
- assets/images/cc-mastercard.svg +0 -0
- assets/images/cc-paypal.svg +0 -0
- assets/images/cc-stripe.svg +0 -0
- assets/images/cc-visa.svg +0 -0
- assets/images/cf-pro-logo.png +0 -0
- assets/images/chain.svg +0 -0
- assets/images/cloud-upload.svg +0 -0
- assets/images/cog.svg +0 -0
- assets/images/credit-card.svg +0 -0
- assets/images/envelope-o.svg +0 -0
- assets/images/envelope-square.svg +0 -0
- assets/images/eye.svg +0 -0
- assets/images/folder-open-o.svg +0 -0
- assets/images/list.svg +0 -0
- assets/images/lock.svg +0 -0
- assets/images/mobile.svg +0 -0
- assets/images/paint-brush.svg +0 -0
- assets/images/paypal.svg +0 -0
- assets/images/plus.svg +0 -0
- assets/images/ra.svg +0 -0
- assets/images/slack.svg +0 -0
- assets/images/star.svg +0 -0
- assets/images/user.svg +0 -0
- assets/images/volume-control-phone.svg +0 -0
- assets/images/wordpress.svg +0 -0
- assets/js/api/client.js +0 -0
- assets/js/api/stores.js +0 -0
- assets/js/caldera-modals.js +0 -0
- assets/js/field-config.js +0 -0
- assets/js/fields.js +0 -0
- assets/js/formobject.js +0 -0
- assets/js/html5.js +0 -0
- assets/js/i18n/al.js +0 -0
- assets/js/i18n/ar.js +0 -0
- assets/js/i18n/bg.js +0 -0
- assets/js/i18n/ca.js +0 -0
- assets/js/i18n/cs.extra.js +0 -0
- assets/js/i18n/cs.js +0 -0
- assets/js/i18n/da.js +0 -0
- assets/js/i18n/de.extra.js +0 -0
- assets/js/i18n/de.js +0 -0
- assets/js/i18n/el.extra.js +0 -0
- assets/js/i18n/el.js +0 -0
- assets/js/i18n/en.extra.js +0 -0
- assets/js/i18n/en.js +0 -0
- assets/js/i18n/es.js +0 -0
- assets/js/i18n/eu.js +0 -0
- assets/js/i18n/fa.js +0 -0
- assets/js/i18n/fi.extra.js +0 -0
- assets/js/i18n/fi.js +0 -0
- assets/js/i18n/fr.extra.js +0 -0
- assets/js/i18n/fr.js +0 -0
- assets/js/i18n/he.extra.js +0 -0
- assets/js/i18n/he.js +0 -0
- assets/js/i18n/hr.extra.js +0 -0
- assets/js/i18n/hr.js +0 -0
- assets/js/i18n/hu.extra.js +0 -0
- assets/js/i18n/hu.js +0 -0
- assets/js/i18n/id.extra.js +0 -0
- assets/js/i18n/id.js +0 -0
- assets/js/i18n/it.extra.js +0 -0
- assets/js/i18n/it.js +0 -0
- assets/js/i18n/ja.extra.js +0 -0
- assets/js/i18n/ja.js +0 -0
- assets/js/i18n/ko.js +0 -0
- assets/js/i18n/lt.extra.js +0 -0
- assets/js/i18n/lt.js +0 -0
- assets/js/i18n/lv.extra.js +0 -0
- assets/js/i18n/lv.js +0 -0
- assets/js/i18n/ms.extra.js +0 -0
- assets/js/i18n/ms.js +0 -0
- assets/js/i18n/ms_MY.extra.js +0 -0
- assets/js/i18n/ms_MY.js +0 -0
- assets/js/i18n/nl.extra.js +0 -0
- assets/js/i18n/nl.js +0 -0
- assets/js/i18n/no.js +0 -0
- assets/js/i18n/pl.js +0 -0
- assets/js/i18n/pt-br.js +0 -0
- assets/js/i18n/pt-pt.js +0 -0
- assets/js/i18n/ro.extra.js +0 -0
- assets/js/i18n/ro.js +0 -0
- assets/js/i18n/ru.extra.js +0 -0
- assets/js/i18n/ru.js +0 -0
- assets/js/i18n/sk.extra.js +0 -0
- assets/js/i18n/sk.js +0 -0
- assets/js/i18n/sl.extra.js +0 -0
- assets/js/i18n/sl.js +0 -0
- assets/js/i18n/sq.js +0 -0
- assets/js/i18n/sr.extra.js +0 -0
- assets/js/i18n/sr.js +0 -0
- assets/js/i18n/sv.extra.js +0 -0
- assets/js/i18n/sv.js +0 -0
- assets/js/i18n/th.js +0 -0
- assets/js/i18n/tr.js +0 -0
- assets/js/i18n/ua.extra.js +0 -0
- assets/js/i18n/ua.js +0 -0
- assets/js/i18n/uk.extra.js +0 -0
- assets/js/i18n/uk.js +0 -0
- assets/js/i18n/zh_cn.extra.js +0 -0
- assets/js/i18n/zh_cn.js +0 -0
- assets/js/i18n/zh_tw.js +0 -0
- assets/js/jquery-baldrick.js +0 -0
- assets/js/parsley-aria.js +0 -0
- assets/js/remodal.js +0 -0
- assets/js/state/events.js +0 -0
- assets/js/support-page.js +0 -0
- assets/js/viewer/init.js +0 -0
- assets/js/viewer/viewer.js +0 -0
- assets/js/vue/status-component.js +0 -0
- assets/js/vue/vue-filter.js +0 -0
- assets/js/vue/vue.js +0 -0
- caldera-core.php +35 -35
- classes/admin/apeasypods.php +0 -0
- classes/admin/apeasyqueries.php +0 -0
- classes/admin/apsetup.php +0 -0
- classes/admin/apsetupinterface.php +0 -0
- classes/admin/assets.php +0 -0
- classes/admin/extend.php +0 -0
- classes/admin/feed.php +0 -0
- classes/admin/panel.php +0 -0
- classes/admin/pro.php +0 -0
- classes/admin/resend.php +0 -0
- classes/api/entries.php +0 -0
- classes/api/form.php +0 -0
- classes/api/forms.php +0 -0
- classes/api/jsconfig.php +0 -0
- classes/api/settings.php +0 -0
- classes/api/token.php +0 -0
- classes/api/tokens.php +0 -0
- classes/cdn.php +0 -0
- classes/cdn/contract.php +0 -0
- classes/cdn/init.php +0 -0
- classes/cdn/jsdelivr.php +0 -0
- classes/cdn/settings.php +0 -0
- classes/db/base.php +0 -0
- classes/db/form.php +0 -0
- classes/db/tables.php +0 -0
- classes/db/track.php +0 -0
- classes/email/attachment.php +0 -0
- classes/email/callbacks.php +0 -0
- classes/email/client.php +0 -0
- classes/email/interface.php +0 -0
- classes/email/preview.php +0 -0
- classes/email/previews.php +0 -0
- classes/email/resend.php +0 -0
- classes/email/save.php +0 -0
- classes/email/sendgrid.php +0 -0
- classes/email/sendgrid/lib/SendGrid.php +0 -0
- classes/email/sendgrid/lib/helpers/mail/Mail.php +0 -0
- classes/email/sendgrid/lib/helpers/mail/README.md +0 -0
- classes/email/sendgrid/sendgrid-php.php +0 -0
- classes/email/sendgrid/vendor/autoload.php +0 -0
- classes/email/sendgrid/vendor/composer/ClassLoader.php +0 -0
- classes/email/sendgrid/vendor/composer/LICENSE +0 -0
- classes/email/sendgrid/vendor/composer/autoload_classmap.php +0 -0
- classes/email/sendgrid/vendor/composer/autoload_files.php +0 -0
- classes/email/sendgrid/vendor/composer/autoload_namespaces.php +0 -0
- classes/email/sendgrid/vendor/composer/autoload_psr4.php +0 -0
- classes/email/sendgrid/vendor/composer/autoload_real.php +0 -0
- classes/email/sendgrid/vendor/composer/autoload_static.php +0 -0
- classes/email/sendgrid/vendor/composer/installed.json +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/CHANGELOG.md +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/README.md +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/examples/example.php +0 -0
- classes/email/sendgrid/vendor/sendgrid/php-http-client/lib/SendGrid/Client.php +0 -0
- classes/email/settings.php +0 -0
- classes/entry/bulk.php +0 -0
- classes/entry/entries.php +0 -0
- classes/entry/entry.php +0 -0
- classes/entry/field.php +0 -0
- classes/entry/meta.php +0 -0
- classes/entry/object.php +0 -0
- classes/entry/shortcode.php +0 -0
- classes/entry/token.php +0 -0
- classes/entry/ui.php +0 -0
- classes/entry/update.php +0 -0
- classes/entry/viewer.php +0 -0
- classes/entry/vue.php +0 -0
- classes/field/calculation.php +0 -0
- classes/field/credit.php +0 -0
- classes/field/honey.php +0 -0
- classes/field/html.php +0 -0
- classes/field/input.php +0 -0
- classes/field/localizer.php +0 -0
- classes/field/utm.php +0 -0
- classes/fields.php +0 -0
- classes/magic.php +0 -0
- classes/magic/parser.php +0 -0
- classes/magic/summary.php +0 -0
- classes/magic/util.php +0 -0
- classes/object.php +0 -0
- classes/render/assets.php +0 -0
- classes/render/footer.php +0 -0
- classes/render/modals.php +0 -0
- classes/render/nonce.php +0 -0
- classes/render/util.php +0 -0
- classes/settings/contract.php +0 -0
- classes/settings/init.php +0 -0
- classes/settings/option.php +0 -0
- classes/shortcode/atts.php +0 -0
- classes/shortcode/defaults.php +0 -0
- classes/support.php +0 -0
- classes/sync/calc.php +0 -0
- classes/sync/factory.php +0 -0
- classes/sync/html.php +0 -0
- classes/sync/summary.php +0 -0
- classes/sync/sync.php +0 -0
- classes/tracking.php +0 -0
- classes/transient.php +0 -0
- composer.json +0 -0
- fields/advanced_file/config_template.php +0 -0
- fields/advanced_file/preview.php +0 -0
- fields/advanced_file/uploader.js +0 -0
- fields/advanced_file/uploader.min.js +0 -0
- fields/color_picker/minicolors.min.css +0 -0
- fields/credit_card_cvc/config.php +0 -0
- fields/credit_card_cvc/preview.php +0 -0
- fields/credit_card_exp/config.php +0 -0
- fields/credit_card_exp/preview.php +0 -0
- fields/credit_card_number/config.php +0 -0
- fields/credit_card_number/credit-card.js +0 -0
- fields/credit_card_number/preview.php +0 -0
- fields/date_picker/js/setup.js +0 -0
- fields/file/uploader.js +0 -0
- fields/file/uploader.min.js +0 -0
- fields/generic-input.php +0 -0
- fields/number/config.php +0 -0
- fields/number/preview.php +0 -0
- fields/phone_better/assets/css/demo.css +0 -0
- fields/phone_better/assets/css/intlTelInput.css +0 -0
- fields/phone_better/assets/img/flags.png +0 -0
- fields/phone_better/assets/img/flags@2x.png +0 -0
- fields/phone_better/assets/js/intlTelInput.js +0 -0
- fields/phone_better/assets/js/intlTelInput.min.js +0 -0
- fields/phone_better/assets/js/utils.js +0 -0
- fields/phone_better/config.php +0 -0
- fields/phone_better/preview.php +0 -0
- fields/section-break/config.php +0 -0
- fields/section-break/section-break.php +0 -0
- fields/select2/field/config.php +0 -0
- fields/select2/field/field.php +0 -0
- fields/select2/field/preview.php +0 -0
- fields/select2/js/select2.js +0 -0
- fields/select2/js/select2.min.js +0 -0
- fields/select2/select2.php +0 -0
- fields/summary/config.php +0 -0
- fields/summary/field.php +0 -0
- fields/summary/preview.php +0 -0
- fields/url/config.php +0 -0
- fields/url/preview.php +0 -0
- fields/utm/field.php +0 -0
- fields/utm/preview.php +0 -0
- fields/utm/setup.php +0 -0
- fields/wysiwyg/config_template.php +0 -0
- fields/wysiwyg/field.php +0 -0
- fields/wysiwyg/langs/ar.min.js +0 -0
- fields/wysiwyg/langs/ca.min.js +0 -0
- fields/wysiwyg/langs/cs.min.js +0 -0
- fields/wysiwyg/langs/da.min.js +0 -0
- fields/wysiwyg/langs/de.min.js +0 -0
- fields/wysiwyg/langs/el.min.js +0 -0
- fields/wysiwyg/langs/es.min.js +0 -0
- fields/wysiwyg/langs/es_ar.min.js +0 -0
- fields/wysiwyg/langs/fa.min.js +0 -0
- fields/wysiwyg/langs/fi.min.js +0 -0
- fields/wysiwyg/langs/fr.min.js +0 -0
- fields/wysiwyg/langs/he.min.js +0 -0
- fields/wysiwyg/langs/hr.min.js +0 -0
- fields/wysiwyg/langs/hu.min.js +0 -0
- fields/wysiwyg/langs/id.min.js +0 -0
- fields/wysiwyg/langs/it.min.js +0 -0
- fields/wysiwyg/langs/ja.min.js +0 -0
- fields/wysiwyg/langs/ko.min.js +0 -0
- fields/wysiwyg/langs/my.min.js +0 -0
- fields/wysiwyg/langs/nl.min.js +0 -0
- fields/wysiwyg/langs/no_nb.min.js +0 -0
- fields/wysiwyg/langs/ph.min.js +0 -0
- fields/wysiwyg/langs/pl.min.js +0 -0
- fields/wysiwyg/langs/pt.min.js +0 -0
- fields/wysiwyg/langs/ro.min.js +0 -0
- fields/wysiwyg/langs/rs.min.js +0 -0
- fields/wysiwyg/langs/rs_latin.min.js +0 -0
- fields/wysiwyg/langs/ru.min.js +0 -0
- fields/wysiwyg/langs/sk.min.js +0 -0
- fields/wysiwyg/langs/sv.min.js +0 -0
- fields/wysiwyg/langs/tr.min.js +0 -0
- fields/wysiwyg/langs/ua.min.js +0 -0
- fields/wysiwyg/langs/vi.min.js +0 -0
- fields/wysiwyg/langs/zh_cn.min.js +0 -0
- fields/wysiwyg/langs/zh_tw.min.js +0 -0
- fields/wysiwyg/preview.php +0 -0
- fields/wysiwyg/ui/icons.svg +0 -0
- fields/wysiwyg/wysiwyg.css +0 -0
- fields/wysiwyg/wysiwyg.js +0 -0
- fields/wysiwyg/wysiwyg.min.css +0 -0
- fields/wysiwyg/wysiwyg.min.js +0 -0
- includes/cf-pro-client/dist/client.ca043aad.js +2 -0
- includes/cf-pro-client/dist/client.ca043aad.js.map +1 -0
- includes/cf-pro-client/dist/client.js +790 -0
LICENSE
CHANGED
File without changes
|
README.md
CHANGED
File without changes
|
assets/build/css/admin.min.css
CHANGED
File without changes
|
assets/build/css/caldera-alert.min.css
CHANGED
File without changes
|
assets/build/css/caldera-form.min.css
CHANGED
File without changes
|
assets/build/css/caldera-grid.min.css
CHANGED
File without changes
|
assets/build/css/caldera-modals.min.css
CHANGED
File without changes
|
assets/build/css/caldera-table.min.css
CHANGED
File without changes
|
assets/build/css/cfont.min.css
CHANGED
File without changes
|
assets/build/css/dashicon.min.css
CHANGED
File without changes
|
assets/build/css/editor-grid.min.css
CHANGED
File without changes
|
assets/build/css/entry-viewer-2.min.css
CHANGED
File without changes
|
assets/build/css/fields.min.css
CHANGED
File without changes
|
assets/build/css/fonts/caldera-forms.eot
CHANGED
File without changes
|
assets/build/css/fonts/caldera-forms.svg
CHANGED
File without changes
|
assets/build/css/fonts/caldera-forms.ttf
CHANGED
File without changes
|
assets/build/css/fonts/caldera-forms.woff
CHANGED
File without changes
|
assets/build/css/fonts/cf-raty.eot
CHANGED
File without changes
|
assets/build/css/fonts/cf-raty.svg
CHANGED
File without changes
|
assets/build/css/fonts/cf-raty.ttf
CHANGED
File without changes
|
assets/build/css/fonts/cf-raty.woff
CHANGED
File without changes
|
assets/build/css/fonts/cfont.eot
CHANGED
File without changes
|
assets/build/css/fonts/cfont.svg
CHANGED
File without changes
|
assets/build/css/fonts/cfont.ttf
CHANGED
File without changes
|
assets/build/css/fonts/cfont.woff
CHANGED
File without changes
|
assets/build/css/fonts/icon.eot
CHANGED
File without changes
|
assets/build/css/fonts/icon.svg
CHANGED
File without changes
|
assets/build/css/fonts/icon.ttf
CHANGED
File without changes
|
assets/build/css/fonts/icon.woff
CHANGED
File without changes
|
assets/build/css/minicolor-colors.png
CHANGED
File without changes
|
assets/build/css/minicolor-trigger.png
CHANGED
File without changes
|
assets/build/css/modals.min.css
CHANGED
File without changes
|
assets/build/css/processors-edit.min.css
CHANGED
File without changes
|
assets/build/css/remodal-default-theme.min.css
CHANGED
File without changes
|
assets/build/css/remodal.min.css
CHANGED
File without changes
|
assets/build/css/theme-default.min.css
CHANGED
File without changes
|
assets/build/images/align-justify.svg
CHANGED
File without changes
|
assets/build/images/calculator.svg
CHANGED
File without changes
|
assets/build/images/caldera-globe-logo-sm.png
CHANGED
File without changes
|
assets/build/images/cart-plus.svg
CHANGED
File without changes
|
assets/build/images/cc-amex.svg
CHANGED
File without changes
|
assets/build/images/cc-discover.svg
CHANGED
File without changes
|
assets/build/images/cc-mastercard.svg
CHANGED
File without changes
|
assets/build/images/cc-paypal.svg
CHANGED
File without changes
|
assets/build/images/cc-stripe.svg
CHANGED
File without changes
|
assets/build/images/cc-visa.svg
CHANGED
File without changes
|
assets/build/images/cf-pro-logo.png
CHANGED
File without changes
|
assets/build/images/chain.svg
CHANGED
File without changes
|
assets/build/images/checkmark.png
CHANGED
File without changes
|
assets/build/images/cloud-upload.svg
CHANGED
File without changes
|
assets/build/images/cog.svg
CHANGED
File without changes
|
assets/build/images/credit-card.svg
CHANGED
File without changes
|
assets/build/images/envelope-o.svg
CHANGED
File without changes
|
assets/build/images/envelope-square.svg
CHANGED
File without changes
|
assets/build/images/eye.svg
CHANGED
File without changes
|
assets/build/images/field.png
CHANGED
File without changes
|
assets/build/images/folder-open-o.svg
CHANGED
File without changes
|
assets/build/images/howto.gif
CHANGED
File without changes
|
assets/build/images/lgo-icon.png
CHANGED
File without changes
|
assets/build/images/list.svg
CHANGED
File without changes
|
assets/build/images/loading.gif
CHANGED
File without changes
|
assets/build/images/lock.svg
CHANGED
File without changes
|
assets/build/images/mobile.svg
CHANGED
File without changes
|
assets/build/images/new-icon.png
CHANGED
File without changes
|
assets/build/images/paint-brush.svg
CHANGED
File without changes
|
assets/build/images/paypal.svg
CHANGED
File without changes
|
assets/build/images/plus.svg
CHANGED
File without changes
|
assets/build/images/processor.png
CHANGED
File without changes
|
assets/build/images/ra.svg
CHANGED
File without changes
|
assets/build/images/slack.svg
CHANGED
File without changes
|
assets/build/images/star.svg
CHANGED
File without changes
|
assets/build/images/user.svg
CHANGED
File without changes
|
assets/build/images/volume-control-phone.svg
CHANGED
File without changes
|
assets/build/images/wordpress.svg
CHANGED
File without changes
|
assets/build/js/admin.min.js
CHANGED
File without changes
|
assets/build/js/api/client.min.js
CHANGED
File without changes
|
assets/build/js/api/stores.min.js
CHANGED
File without changes
|
assets/build/js/caldera-clippy.min.js
CHANGED
File without changes
|
assets/build/js/caldera-modals.min.js
CHANGED
File without changes
|
assets/build/js/edit.min.js
CHANGED
File without changes
|
assets/build/js/entry-viewer-2.min.js
CHANGED
File without changes
|
assets/build/js/field-config.min.js
CHANGED
File without changes
|
assets/build/js/fields.min.js
CHANGED
File without changes
|
assets/build/js/formobject.min.js
CHANGED
File without changes
|
assets/build/js/handlebars.min.js
CHANGED
File without changes
|
assets/build/js/html5.min.js
CHANGED
File without changes
|
assets/build/js/i18n/al.js
CHANGED
File without changes
|
assets/build/js/i18n/ar.js
CHANGED
File without changes
|
assets/build/js/i18n/bg.js
CHANGED
File without changes
|
assets/build/js/i18n/ca.js
CHANGED
File without changes
|
assets/build/js/i18n/cs.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/cs.js
CHANGED
File without changes
|
assets/build/js/i18n/da.js
CHANGED
File without changes
|
assets/build/js/i18n/de.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/de.js
CHANGED
File without changes
|
assets/build/js/i18n/el.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/el.js
CHANGED
File without changes
|
assets/build/js/i18n/en.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/en.js
CHANGED
File without changes
|
assets/build/js/i18n/es.js
CHANGED
File without changes
|
assets/build/js/i18n/eu.js
CHANGED
File without changes
|
assets/build/js/i18n/fa.js
CHANGED
File without changes
|
assets/build/js/i18n/fi.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/fi.js
CHANGED
File without changes
|
assets/build/js/i18n/fr.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/fr.js
CHANGED
File without changes
|
assets/build/js/i18n/he.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/he.js
CHANGED
File without changes
|
assets/build/js/i18n/hr.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/hr.js
CHANGED
File without changes
|
assets/build/js/i18n/hu.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/hu.js
CHANGED
File without changes
|
assets/build/js/i18n/id.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/id.js
CHANGED
File without changes
|
assets/build/js/i18n/it.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/it.js
CHANGED
File without changes
|
assets/build/js/i18n/ja.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ja.js
CHANGED
File without changes
|
assets/build/js/i18n/ko.js
CHANGED
File without changes
|
assets/build/js/i18n/lt.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/lt.js
CHANGED
File without changes
|
assets/build/js/i18n/lv.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/lv.js
CHANGED
File without changes
|
assets/build/js/i18n/ms.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ms.js
CHANGED
File without changes
|
assets/build/js/i18n/ms_MY.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ms_MY.js
CHANGED
File without changes
|
assets/build/js/i18n/nl.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/nl.js
CHANGED
File without changes
|
assets/build/js/i18n/no.js
CHANGED
File without changes
|
assets/build/js/i18n/pl.js
CHANGED
File without changes
|
assets/build/js/i18n/pt-br.js
CHANGED
File without changes
|
assets/build/js/i18n/pt-pt.js
CHANGED
File without changes
|
assets/build/js/i18n/ro.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ro.js
CHANGED
File without changes
|
assets/build/js/i18n/ru.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ru.js
CHANGED
File without changes
|
assets/build/js/i18n/sk.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/sk.js
CHANGED
File without changes
|
assets/build/js/i18n/sl.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/sl.js
CHANGED
File without changes
|
assets/build/js/i18n/sq.js
CHANGED
File without changes
|
assets/build/js/i18n/sr.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/sr.js
CHANGED
File without changes
|
assets/build/js/i18n/sv.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/sv.js
CHANGED
File without changes
|
assets/build/js/i18n/th.js
CHANGED
File without changes
|
assets/build/js/i18n/tr.js
CHANGED
File without changes
|
assets/build/js/i18n/ua.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/ua.js
CHANGED
File without changes
|
assets/build/js/i18n/uk.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/uk.js
CHANGED
File without changes
|
assets/build/js/i18n/zh_cn.extra.js
CHANGED
File without changes
|
assets/build/js/i18n/zh_cn.js
CHANGED
File without changes
|
assets/build/js/i18n/zh_tw.js
CHANGED
File without changes
|
assets/build/js/jquery-baldrick.min.js
CHANGED
File without changes
|
assets/build/js/jquery.min.js
CHANGED
File without changes
|
assets/build/js/modals.min.js
CHANGED
File without changes
|
assets/build/js/parsley-aria.min.js
CHANGED
File without changes
|
assets/build/js/polyfiller.min.js
CHANGED
File without changes
|
assets/build/js/remodal.min.js
CHANGED
File without changes
|
assets/build/js/shortcode-insert.min.js
CHANGED
File without changes
|
assets/build/js/state/events.min.js
CHANGED
File without changes
|
assets/build/js/support-page.min.js
CHANGED
File without changes
|
assets/build/js/viewer/init.min.js
CHANGED
File without changes
|
assets/build/js/viewer/viewer.min.js
CHANGED
File without changes
|
assets/build/js/vue.min.js
CHANGED
File without changes
|
assets/build/js/vue/status-component.min.js
CHANGED
File without changes
|
assets/build/js/vue/vue-filter.min.js
CHANGED
File without changes
|
assets/build/js/vue/vue.min.js
CHANGED
File without changes
|
assets/build/js/wp-baldrick-full.min.js
CHANGED
File without changes
|
assets/css/caldera-modals.css
CHANGED
File without changes
|
assets/css/caldera-table.css
CHANGED
File without changes
|
assets/css/cfont.css
CHANGED
File without changes
|
assets/css/entry-viewer-2.css
CHANGED
File without changes
|
assets/css/fonts/cfont.eot
CHANGED
File without changes
|
assets/css/fonts/cfont.svg
CHANGED
File without changes
|
assets/css/fonts/cfont.ttf
CHANGED
File without changes
|
assets/css/fonts/cfont.woff
CHANGED
File without changes
|
assets/css/ie7/ie7.css
CHANGED
File without changes
|
assets/css/ie7/ie7.js
CHANGED
File without changes
|
assets/css/remodal-default-theme.css
CHANGED
File without changes
|
assets/css/remodal.css
CHANGED
File without changes
|
assets/css/theme-default.min.css
CHANGED
File without changes
|
assets/images/align-justify.svg
CHANGED
File without changes
|
assets/images/calculator.svg
CHANGED
File without changes
|
assets/images/cart-plus.svg
CHANGED
File without changes
|
assets/images/cc-amex.svg
CHANGED
File without changes
|
assets/images/cc-discover.svg
CHANGED
File without changes
|
assets/images/cc-mastercard.svg
CHANGED
File without changes
|
assets/images/cc-paypal.svg
CHANGED
File without changes
|
assets/images/cc-stripe.svg
CHANGED
File without changes
|
assets/images/cc-visa.svg
CHANGED
File without changes
|
assets/images/cf-pro-logo.png
CHANGED
File without changes
|
assets/images/chain.svg
CHANGED
File without changes
|
assets/images/cloud-upload.svg
CHANGED
File without changes
|
assets/images/cog.svg
CHANGED
File without changes
|
assets/images/credit-card.svg
CHANGED
File without changes
|
assets/images/envelope-o.svg
CHANGED
File without changes
|
assets/images/envelope-square.svg
CHANGED
File without changes
|
assets/images/eye.svg
CHANGED
File without changes
|
assets/images/folder-open-o.svg
CHANGED
File without changes
|
assets/images/list.svg
CHANGED
File without changes
|
assets/images/lock.svg
CHANGED
File without changes
|
assets/images/mobile.svg
CHANGED
File without changes
|
assets/images/paint-brush.svg
CHANGED
File without changes
|
assets/images/paypal.svg
CHANGED
File without changes
|
assets/images/plus.svg
CHANGED
File without changes
|
assets/images/ra.svg
CHANGED
File without changes
|
assets/images/slack.svg
CHANGED
File without changes
|
assets/images/star.svg
CHANGED
File without changes
|
assets/images/user.svg
CHANGED
File without changes
|
assets/images/volume-control-phone.svg
CHANGED
File without changes
|
assets/images/wordpress.svg
CHANGED
File without changes
|
assets/js/api/client.js
CHANGED
File without changes
|
assets/js/api/stores.js
CHANGED
File without changes
|
assets/js/caldera-modals.js
CHANGED
File without changes
|
assets/js/field-config.js
CHANGED
File without changes
|
assets/js/fields.js
CHANGED
File without changes
|
assets/js/formobject.js
CHANGED
File without changes
|
assets/js/html5.js
CHANGED
File without changes
|
assets/js/i18n/al.js
CHANGED
File without changes
|
assets/js/i18n/ar.js
CHANGED
File without changes
|
assets/js/i18n/bg.js
CHANGED
File without changes
|
assets/js/i18n/ca.js
CHANGED
File without changes
|
assets/js/i18n/cs.extra.js
CHANGED
File without changes
|
assets/js/i18n/cs.js
CHANGED
File without changes
|
assets/js/i18n/da.js
CHANGED
File without changes
|
assets/js/i18n/de.extra.js
CHANGED
File without changes
|
assets/js/i18n/de.js
CHANGED
File without changes
|
assets/js/i18n/el.extra.js
CHANGED
File without changes
|
assets/js/i18n/el.js
CHANGED
File without changes
|
assets/js/i18n/en.extra.js
CHANGED
File without changes
|
assets/js/i18n/en.js
CHANGED
File without changes
|
assets/js/i18n/es.js
CHANGED
File without changes
|
assets/js/i18n/eu.js
CHANGED
File without changes
|
assets/js/i18n/fa.js
CHANGED
File without changes
|
assets/js/i18n/fi.extra.js
CHANGED
File without changes
|
assets/js/i18n/fi.js
CHANGED
File without changes
|
assets/js/i18n/fr.extra.js
CHANGED
File without changes
|
assets/js/i18n/fr.js
CHANGED
File without changes
|
assets/js/i18n/he.extra.js
CHANGED
File without changes
|
assets/js/i18n/he.js
CHANGED
File without changes
|
assets/js/i18n/hr.extra.js
CHANGED
File without changes
|
assets/js/i18n/hr.js
CHANGED
File without changes
|
assets/js/i18n/hu.extra.js
CHANGED
File without changes
|
assets/js/i18n/hu.js
CHANGED
File without changes
|
assets/js/i18n/id.extra.js
CHANGED
File without changes
|
assets/js/i18n/id.js
CHANGED
File without changes
|
assets/js/i18n/it.extra.js
CHANGED
File without changes
|
assets/js/i18n/it.js
CHANGED
File without changes
|
assets/js/i18n/ja.extra.js
CHANGED
File without changes
|
assets/js/i18n/ja.js
CHANGED
File without changes
|
assets/js/i18n/ko.js
CHANGED
File without changes
|
assets/js/i18n/lt.extra.js
CHANGED
File without changes
|
assets/js/i18n/lt.js
CHANGED
File without changes
|
assets/js/i18n/lv.extra.js
CHANGED
File without changes
|
assets/js/i18n/lv.js
CHANGED
File without changes
|
assets/js/i18n/ms.extra.js
CHANGED
File without changes
|
assets/js/i18n/ms.js
CHANGED
File without changes
|
assets/js/i18n/ms_MY.extra.js
CHANGED
File without changes
|
assets/js/i18n/ms_MY.js
CHANGED
File without changes
|
assets/js/i18n/nl.extra.js
CHANGED
File without changes
|
assets/js/i18n/nl.js
CHANGED
File without changes
|
assets/js/i18n/no.js
CHANGED
File without changes
|
assets/js/i18n/pl.js
CHANGED
File without changes
|
assets/js/i18n/pt-br.js
CHANGED
File without changes
|
assets/js/i18n/pt-pt.js
CHANGED
File without changes
|
assets/js/i18n/ro.extra.js
CHANGED
File without changes
|
assets/js/i18n/ro.js
CHANGED
File without changes
|
assets/js/i18n/ru.extra.js
CHANGED
File without changes
|
assets/js/i18n/ru.js
CHANGED
File without changes
|
assets/js/i18n/sk.extra.js
CHANGED
File without changes
|
assets/js/i18n/sk.js
CHANGED
File without changes
|
assets/js/i18n/sl.extra.js
CHANGED
File without changes
|
assets/js/i18n/sl.js
CHANGED
File without changes
|
assets/js/i18n/sq.js
CHANGED
File without changes
|
assets/js/i18n/sr.extra.js
CHANGED
File without changes
|
assets/js/i18n/sr.js
CHANGED
File without changes
|
assets/js/i18n/sv.extra.js
CHANGED
File without changes
|
assets/js/i18n/sv.js
CHANGED
File without changes
|
assets/js/i18n/th.js
CHANGED
File without changes
|
assets/js/i18n/tr.js
CHANGED
File without changes
|
assets/js/i18n/ua.extra.js
CHANGED
File without changes
|
assets/js/i18n/ua.js
CHANGED
File without changes
|
assets/js/i18n/uk.extra.js
CHANGED
File without changes
|
assets/js/i18n/uk.js
CHANGED
File without changes
|
assets/js/i18n/zh_cn.extra.js
CHANGED
File without changes
|
assets/js/i18n/zh_cn.js
CHANGED
File without changes
|
assets/js/i18n/zh_tw.js
CHANGED
File without changes
|
assets/js/jquery-baldrick.js
CHANGED
File without changes
|
assets/js/parsley-aria.js
CHANGED
File without changes
|
assets/js/remodal.js
CHANGED
File without changes
|
assets/js/state/events.js
CHANGED
File without changes
|
assets/js/support-page.js
CHANGED
File without changes
|
assets/js/viewer/init.js
CHANGED
File without changes
|
assets/js/viewer/viewer.js
CHANGED
File without changes
|
assets/js/vue/status-component.js
CHANGED
File without changes
|
assets/js/vue/vue-filter.js
CHANGED
File without changes
|
assets/js/vue/vue.js
CHANGED
File without changes
|
caldera-core.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin URI: https://CalderaForms.com
|
5 |
Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
|
6 |
Author: Caldera Labs
|
7 |
-
Version: 1.6.1
|
8 |
Author URI: http://CalderaLabs.org
|
9 |
Text Domain: caldera-forms
|
10 |
GitHub Plugin URI: https://github.com/CalderaWP/caldera-forms
|
@@ -18,7 +18,7 @@ if ( ! defined( 'WPINC' ) ) {
|
|
18 |
|
19 |
define('CFCORE_PATH', plugin_dir_path(__FILE__));
|
20 |
define('CFCORE_URL', plugin_dir_url(__FILE__));
|
21 |
-
define( 'CFCORE_VER', '1.6.1' );
|
22 |
define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
|
23 |
define('CFCORE_BASENAME', plugin_basename( __FILE__ ));
|
24 |
|
@@ -74,14 +74,14 @@ function caldera_forms_load(){
|
|
74 |
include_once CFCORE_PATH . 'processors/functions.php';
|
75 |
include_once CFCORE_PATH . 'includes/functions.php';
|
76 |
include_once CFCORE_PATH . 'ui/blocks/init.php';
|
77 |
-
|
78 |
-
|
79 |
* Runs after all of the includes and autoload setup is done in Caldera Forms core
|
80 |
*
|
81 |
* @since 1.3.5.3
|
82 |
*/
|
83 |
do_action( 'caldera_forms_includes_complete' );
|
84 |
-
|
85 |
}
|
86 |
|
87 |
add_action( 'plugins_loaded', array( 'Caldera_Forms', 'get_instance' ) );
|
@@ -104,35 +104,35 @@ if ( is_admin() || defined( 'DOING_AJAX' ) ) {
|
|
104 |
* @return Freemius
|
105 |
*/
|
106 |
function caldera_forms_freemius() {
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
}
|
137 |
|
138 |
//Load freemius
|
@@ -146,5 +146,5 @@ caldera_forms_freemius();
|
|
146 |
* @return string
|
147 |
*/
|
148 |
function caldera_forms_freemius_icon_path(){
|
149 |
-
|
150 |
}
|
4 |
Plugin URI: https://CalderaForms.com
|
5 |
Description: Easy to use, grid based responsive form builder for creating simple to complex forms.
|
6 |
Author: Caldera Labs
|
7 |
+
Version: 1.6.1.1
|
8 |
Author URI: http://CalderaLabs.org
|
9 |
Text Domain: caldera-forms
|
10 |
GitHub Plugin URI: https://github.com/CalderaWP/caldera-forms
|
18 |
|
19 |
define('CFCORE_PATH', plugin_dir_path(__FILE__));
|
20 |
define('CFCORE_URL', plugin_dir_url(__FILE__));
|
21 |
+
define( 'CFCORE_VER', '1.6.1.1' );
|
22 |
define('CFCORE_EXTEND_URL', 'https://api.calderaforms.com/1.0/');
|
23 |
define('CFCORE_BASENAME', plugin_basename( __FILE__ ));
|
24 |
|
74 |
include_once CFCORE_PATH . 'processors/functions.php';
|
75 |
include_once CFCORE_PATH . 'includes/functions.php';
|
76 |
include_once CFCORE_PATH . 'ui/blocks/init.php';
|
77 |
+
include_once CFCORE_PATH . 'includes/cf-pro-client/cf-pro-init.php';
|
78 |
+
/**
|
79 |
* Runs after all of the includes and autoload setup is done in Caldera Forms core
|
80 |
*
|
81 |
* @since 1.3.5.3
|
82 |
*/
|
83 |
do_action( 'caldera_forms_includes_complete' );
|
84 |
+
caldera_forms_freemius()->add_filter('plugin_icon', 'caldera_forms_freemius_icon_path' );
|
85 |
}
|
86 |
|
87 |
add_action( 'plugins_loaded', array( 'Caldera_Forms', 'get_instance' ) );
|
104 |
* @return Freemius
|
105 |
*/
|
106 |
function caldera_forms_freemius() {
|
107 |
+
global $caldera_forms_freemius;
|
108 |
+
if ( ! isset( $caldera_forms_freemius ) ) {
|
109 |
+
// Include Freemius SDK.
|
110 |
+
require_once CFCORE_PATH . 'includes/freemius/start.php';
|
111 |
+
$caldera_forms_freemius = fs_dynamic_init( array(
|
112 |
+
'id' => '1767',
|
113 |
+
'slug' => 'caldera-forms',
|
114 |
+
'type' => 'plugin',
|
115 |
+
'public_key' => 'pk_d8e6325777a98c1b3e0d8cdbfad1e',
|
116 |
+
'is_premium' => false,
|
117 |
+
'has_addons' => false,
|
118 |
+
'has_paid_plans' => false,
|
119 |
+
'menu' => array(
|
120 |
+
'slug' => 'caldera-forms',
|
121 |
+
'account' => false,
|
122 |
+
'support' => false,
|
123 |
+
'contact' => false,
|
124 |
+
),
|
125 |
+
) );
|
126 |
+
/**
|
127 |
+
* Runs after Freemius loads
|
128 |
+
*
|
129 |
+
* @since 1.6.0
|
130 |
+
*
|
131 |
+
* @param Freemius $caldera_forms_freemius
|
132 |
+
*/
|
133 |
+
do_action( 'caldera_forms_freemius_init', $caldera_forms_freemius );
|
134 |
+
}
|
135 |
+
return $caldera_forms_freemius;
|
136 |
}
|
137 |
|
138 |
//Load freemius
|
146 |
* @return string
|
147 |
*/
|
148 |
function caldera_forms_freemius_icon_path(){
|
149 |
+
return CFCORE_PATH . 'assets/build/images/new-icon.png';
|
150 |
}
|
classes/admin/apeasypods.php
CHANGED
File without changes
|
classes/admin/apeasyqueries.php
CHANGED
File without changes
|
classes/admin/apsetup.php
CHANGED
File without changes
|
classes/admin/apsetupinterface.php
CHANGED
File without changes
|
classes/admin/assets.php
CHANGED
File without changes
|
classes/admin/extend.php
CHANGED
File without changes
|
classes/admin/feed.php
CHANGED
File without changes
|
classes/admin/panel.php
CHANGED
File without changes
|
classes/admin/pro.php
CHANGED
File without changes
|
classes/admin/resend.php
CHANGED
File without changes
|
classes/api/entries.php
CHANGED
File without changes
|
classes/api/form.php
CHANGED
File without changes
|
classes/api/forms.php
CHANGED
File without changes
|
classes/api/jsconfig.php
CHANGED
File without changes
|
classes/api/settings.php
CHANGED
File without changes
|
classes/api/token.php
CHANGED
File without changes
|
classes/api/tokens.php
CHANGED
File without changes
|
classes/cdn.php
CHANGED
File without changes
|
classes/cdn/contract.php
CHANGED
File without changes
|
classes/cdn/init.php
CHANGED
File without changes
|
classes/cdn/jsdelivr.php
CHANGED
File without changes
|
classes/cdn/settings.php
CHANGED
File without changes
|
classes/db/base.php
CHANGED
File without changes
|
classes/db/form.php
CHANGED
File without changes
|
classes/db/tables.php
CHANGED
File without changes
|
classes/db/track.php
CHANGED
File without changes
|
classes/email/attachment.php
CHANGED
File without changes
|
classes/email/callbacks.php
CHANGED
File without changes
|
classes/email/client.php
CHANGED
File without changes
|
classes/email/interface.php
CHANGED
File without changes
|
classes/email/preview.php
CHANGED
File without changes
|
classes/email/previews.php
CHANGED
File without changes
|
classes/email/resend.php
CHANGED
File without changes
|
classes/email/save.php
CHANGED
File without changes
|
classes/email/sendgrid.php
CHANGED
File without changes
|
classes/email/sendgrid/lib/SendGrid.php
CHANGED
File without changes
|
classes/email/sendgrid/lib/helpers/mail/Mail.php
CHANGED
File without changes
|
classes/email/sendgrid/lib/helpers/mail/README.md
CHANGED
File without changes
|
classes/email/sendgrid/sendgrid-php.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/autoload.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/ClassLoader.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/LICENSE
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_classmap.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_files.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_namespaces.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_psr4.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_real.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/autoload_static.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/composer/installed.json
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/CHANGELOG.md
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/CONTRIBUTING.md
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/LICENSE.txt
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/README.md
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/examples/example.php
CHANGED
File without changes
|
classes/email/sendgrid/vendor/sendgrid/php-http-client/lib/SendGrid/Client.php
CHANGED
File without changes
|
classes/email/settings.php
CHANGED
File without changes
|
classes/entry/bulk.php
CHANGED
File without changes
|
classes/entry/entries.php
CHANGED
File without changes
|
classes/entry/entry.php
CHANGED
File without changes
|
classes/entry/field.php
CHANGED
File without changes
|
classes/entry/meta.php
CHANGED
File without changes
|
classes/entry/object.php
CHANGED
File without changes
|
classes/entry/shortcode.php
CHANGED
File without changes
|
classes/entry/token.php
CHANGED
File without changes
|
classes/entry/ui.php
CHANGED
File without changes
|
classes/entry/update.php
CHANGED
File without changes
|
classes/entry/viewer.php
CHANGED
File without changes
|
classes/entry/vue.php
CHANGED
File without changes
|
classes/field/calculation.php
CHANGED
File without changes
|
classes/field/credit.php
CHANGED
File without changes
|
classes/field/honey.php
CHANGED
File without changes
|
classes/field/html.php
CHANGED
File without changes
|
classes/field/input.php
CHANGED
File without changes
|
classes/field/localizer.php
CHANGED
File without changes
|
classes/field/utm.php
CHANGED
File without changes
|
classes/fields.php
CHANGED
File without changes
|
classes/magic.php
CHANGED
File without changes
|
classes/magic/parser.php
CHANGED
File without changes
|
classes/magic/summary.php
CHANGED
File without changes
|
classes/magic/util.php
CHANGED
File without changes
|
classes/object.php
CHANGED
File without changes
|
classes/render/assets.php
CHANGED
File without changes
|
classes/render/footer.php
CHANGED
File without changes
|
classes/render/modals.php
CHANGED
File without changes
|
classes/render/nonce.php
CHANGED
File without changes
|
classes/render/util.php
CHANGED
File without changes
|
classes/settings/contract.php
CHANGED
File without changes
|
classes/settings/init.php
CHANGED
File without changes
|
classes/settings/option.php
CHANGED
File without changes
|
classes/shortcode/atts.php
CHANGED
File without changes
|
classes/shortcode/defaults.php
CHANGED
File without changes
|
classes/support.php
CHANGED
File without changes
|
classes/sync/calc.php
CHANGED
File without changes
|
classes/sync/factory.php
CHANGED
File without changes
|
classes/sync/html.php
CHANGED
File without changes
|
classes/sync/summary.php
CHANGED
File without changes
|
classes/sync/sync.php
CHANGED
File without changes
|
classes/tracking.php
CHANGED
File without changes
|
classes/transient.php
CHANGED
File without changes
|
composer.json
CHANGED
File without changes
|
fields/advanced_file/config_template.php
CHANGED
File without changes
|
fields/advanced_file/preview.php
CHANGED
File without changes
|
fields/advanced_file/uploader.js
CHANGED
File without changes
|
fields/advanced_file/uploader.min.js
CHANGED
File without changes
|
fields/color_picker/minicolors.min.css
CHANGED
File without changes
|
fields/credit_card_cvc/config.php
CHANGED
File without changes
|
fields/credit_card_cvc/preview.php
CHANGED
File without changes
|
fields/credit_card_exp/config.php
CHANGED
File without changes
|
fields/credit_card_exp/preview.php
CHANGED
File without changes
|
fields/credit_card_number/config.php
CHANGED
File without changes
|
fields/credit_card_number/credit-card.js
CHANGED
File without changes
|
fields/credit_card_number/preview.php
CHANGED
File without changes
|
fields/date_picker/js/setup.js
CHANGED
File without changes
|
fields/file/uploader.js
CHANGED
File without changes
|
fields/file/uploader.min.js
CHANGED
File without changes
|
fields/generic-input.php
CHANGED
File without changes
|
fields/number/config.php
CHANGED
File without changes
|
fields/number/preview.php
CHANGED
File without changes
|
fields/phone_better/assets/css/demo.css
CHANGED
File without changes
|
fields/phone_better/assets/css/intlTelInput.css
CHANGED
File without changes
|
fields/phone_better/assets/img/flags.png
CHANGED
File without changes
|
fields/phone_better/assets/img/flags@2x.png
CHANGED
File without changes
|
fields/phone_better/assets/js/intlTelInput.js
CHANGED
File without changes
|
fields/phone_better/assets/js/intlTelInput.min.js
CHANGED
File without changes
|
fields/phone_better/assets/js/utils.js
CHANGED
File without changes
|
fields/phone_better/config.php
CHANGED
File without changes
|
fields/phone_better/preview.php
CHANGED
File without changes
|
fields/section-break/config.php
CHANGED
File without changes
|
fields/section-break/section-break.php
CHANGED
File without changes
|
fields/select2/field/config.php
CHANGED
File without changes
|
fields/select2/field/field.php
CHANGED
File without changes
|
fields/select2/field/preview.php
CHANGED
File without changes
|
fields/select2/js/select2.js
CHANGED
File without changes
|
fields/select2/js/select2.min.js
CHANGED
File without changes
|
fields/select2/select2.php
CHANGED
File without changes
|
fields/summary/config.php
CHANGED
File without changes
|
fields/summary/field.php
CHANGED
File without changes
|
fields/summary/preview.php
CHANGED
File without changes
|
fields/url/config.php
CHANGED
File without changes
|
fields/url/preview.php
CHANGED
File without changes
|
fields/utm/field.php
CHANGED
File without changes
|
fields/utm/preview.php
CHANGED
File without changes
|
fields/utm/setup.php
CHANGED
File without changes
|
fields/wysiwyg/config_template.php
CHANGED
File without changes
|
fields/wysiwyg/field.php
CHANGED
File without changes
|
fields/wysiwyg/langs/ar.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ca.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/cs.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/da.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/de.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/el.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/es.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/es_ar.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/fa.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/fi.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/fr.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/he.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/hr.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/hu.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/id.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/it.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ja.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ko.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/my.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/nl.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/no_nb.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ph.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/pl.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/pt.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ro.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/rs.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/rs_latin.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ru.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/sk.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/sv.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/tr.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/ua.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/vi.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/zh_cn.min.js
CHANGED
File without changes
|
fields/wysiwyg/langs/zh_tw.min.js
CHANGED
File without changes
|
fields/wysiwyg/preview.php
CHANGED
File without changes
|
fields/wysiwyg/ui/icons.svg
CHANGED
File without changes
|
fields/wysiwyg/wysiwyg.css
CHANGED
File without changes
|
fields/wysiwyg/wysiwyg.js
CHANGED
File without changes
|
fields/wysiwyg/wysiwyg.min.css
CHANGED
File without changes
|
fields/wysiwyg/wysiwyg.min.js
CHANGED
File without changes
|
includes/cf-pro-client/dist/client.ca043aad.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
webpackJsonp([1,2],Array(28).concat([function(e,t,a){"use strict";a.d(t,"a",function(){return c});var c=("function"==typeof Symbol&&Symbol.iterator,function(e,t){return Object.prototype.hasOwnProperty.call(e,t)})},function(e,t,a){"use strict";t.a={localApiURL:CF_PRO_ADMIN.api.cf.url,localApiNonce:CF_PRO_ADMIN.api.cf.nonce,appURL:CF_PRO_ADMIN.api.cfPro.url,formScreen:CF_PRO_ADMIN.formScreen,strings:CF_PRO_ADMIN.strings,logLevels:CF_PRO_ADMIN.logLevels}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},,function(e,t){e.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},function(e,t){e.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){a(180);var c=a(8)(a(126),a(234),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(127),a(235),null,null);e.exports=c.exports},function(e,t,a){"use strict";var c=a(43),n=a(5),r=a(29),i=a(118),s=a(116),f=a(117),o=a(119);c.a.use(n.e);var d={loading:!1,connected:!1,forms:[],settings:{enhancedDelivery:!1,generatePDFs:!1,logLevel:250},layouts:[{name:""}],account:{plan:String,id:Number,apiKeys:{public:String,secret:String,token:String}},strings:r.a.strings,mainAlert:{success:!1,message:"",show:!1},logLevels:r.a.logLevels},l=[o.a,o.b],u=new n.e.Store({strict:!1,plugins:l,modules:{},state:d,getters:f.a,mutations:i.a,actions:s.a});t.a=u},function(e,t,a){a(178);var c=a(8)(a(132),a(227),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(133),a(225),null,null);e.exports=c.exports},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,a){"use strict";var c=a(177),n=(a.n(c),a(5));t.a={render:function(e){return e("div",{attrs:{id:"cf-pro-account"}},[e("ul",null,[e("li",null,["Public Key ",this.publicKey]),e("li",null,["Secret Key ",this.secretKey]),e("li",null,["Token ",this.token])])])},computed:a.i(n.b)({token:function(e){return e.account.apiKeys.token},publicKey:function(e){return e.account.apiKeys.public},secretKey:function(e){return e.account.apiKeys.secret}})}},function(e,t,a){"use strict";var c=a(120),n=a(121),r=a(29);a.d(t,"a",function(){return s});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s={getAccount:function(e){return new Promise(function(t,a){c.a.get().then(function(a){var c;if("string"==typeof a.data){var n=JSON.parse(a.data);if("object"!==(void 0===n?"undefined":i(n)))throw new Exception;c=n}else c=a.data;e.commit("forms",c.forms),e.commit("apiKeys",c.apiKeys),e.commit("accountId",c.account_id),e.commit("plan",c.plan),e.commit("logLevel",c.logLevel),e.commit("enhancedDelivery",c.enhancedDelivery),e.commit("formScreen",c.hasOwnProperty("formScreen")?c.formScreen:r.a.formScreen),t(a)},function(e){a(e)})})},saveAccount:function(e){var t=e.state.account.apiKeys.public;t&&"string"==typeof t&&(t=t.trim());var a=e.state.account.apiKeys.secret;return a&&"string"==typeof a&&(a=a.trim()),c.a.post("",{accountId:e.state.account.id,apiKey:t,apiSecret:a,enhancedDelivery:e.state.settings.enhancedDelivery,plan:e.state.account.plan,forms:e.state.forms,logLevel:e.state.settings.logLevel}).then(function(t){t.data.hasOwnProperty("_cfAlertMessage")?e.dispatch("updateMainAlert",_cfAlertMessage):e.dispatch("updateMainAlert",{message:e.state.strings.saved,show:!0,success:!0,fade:1500})})},testConnection:function(e){var t=e.commit,r=e.state;return new Promise(function(e,i){if(r.account.apiKeys.public&&r.account.apiKeys.secret)return c.b.get(a.i(n.a)({public:r.account.apiKeys.public,token:a.i(c.c)(r.account.apiKeys)},"/account/verify")).then(function(a){r.account.plan=a.plan,r.account.id=a.id,r.connected=!0,t("connected",!0),e(a)},function(e){i(e)});i("Not Connected")})},getLayouts:function(e){var t=e.commit,r=e.state;if(r.connected)return c.b.get(a.i(n.a)({simple:!0,public:r.account.apiKeys.public,token:r.account.apiKeys.token},"/layouts/list")).then(function(e){t("layouts",e.data)},function(e){console.log(e)})},updateMainAlert:function(e,t){var a=t.hasOwnProperty("fade")&&!isNaN(t.fade)?t.fade:0;a&&window.setTimeout(function(){e.dispatch("closeMainAlert")},a),e.commit("mainAlert",t)},closeMainAlert:function(e){e.dispatch("updateMainAlert",{show:!1})}}},function(e,t,a){"use strict";var c=a(28);a.d(t,"a",function(){return n});var n={publicKey:function(e){return e.account.apiKeys.public},secretKey:function(e){return e.account.apiKeys.secret},apiKeys:function(e){return e.account.apiKeys},hi:function(e){return"Roy"},getSetting:function(e){return function(t,n){return a.i(c.a)(e.settings,t)?e.settings[t]:n}},getFormsById:function(e,t){return function(t){return e.forms.find(function(e){return e.form_id===t})}},enhancedDelivery:function(e){return e.settings.enhancedDelivery},logLevels:function(e){return e.logLevels},logLevel:function(e){return e.settings.logLevel},connected:function(e){return e.connected},formScreen:function(e){return e.formScreen},strings:function(e){return e.strings},mainAlert:function(e){return e.mainAlert}}},function(e,t,a){"use strict";var c=a(192);a.n(c);a.d(t,"a",function(){return n});var n={publicKey:function(e,t){e.account.apiKeys.public=t},secretKey:function(e,t){e.account.apiKeys.secret=t},apiKeys:function(e,t){e.account.apiKeys.public=t.public,e.account.apiKeys.secret=t.secret,e.account.apiKeys.token=t.token},accountId:function(e,t){e.account.id=t},plan:function(e,t){e.account.plan=t},loading:function(e){e.loading=!e.loading},forms:function(e,t){e.forms=t},logLevels:function(e,t){e.logLevels=t},connected:function(e,t){e.connected=t},layouts:function(e,t){e.layouts=t},form:function(e,t){var a=e.forms.findIndex(function(e){return e.form_id===t.form_id});-1<a&&(e.forms[a]=t)},logLevel:function(e,t){e.settings.logLevel=t},enhancedDelivery:function(e,t){"on"==t&&(t=!0),e.settings.enhancedDelivery=t},formScreen:function(e,t){e.formScreen=t},mainAlert:function(e,t){e.mainAlert={success:!!t.hasOwnProperty("success")&&t.success,message:t.hasOwnProperty("message")?t.message:"",show:!!t.hasOwnProperty("show")&&t.show}}}},function(e,t,a){"use strict";var c=a(67),n=a.n(c);a.d(t,"a",function(){return i}),a.d(t,"b",function(){return s});var r=this,i=function(e){e.subscribe(function(t,a){switch(t.type){case"apiKeys":case"secretKey":case"publicKey":console.log(a.connected,a.account.apiKeys.secret,a.account.apiKeys.public),!a.connected&&a.account.apiKeys.secret&&a.account.apiKeys.public?(console.log(a.connected,a.account.apiKeys.secret,a.account.apiKeys.public),e.dispatch("testConnection"),e.dispatch("getLayouts")):(a.account.apiKeys.public&&a.account.apiKeys.secret,e.commit("connected",0));break;case"connected":a.connected&&e.dispatch("getLayouts")}})},s=function(e){r.debounedFormMutation=n()(function(){e.dispatch("saveAccount")},100),e.subscribe(function(e,t){"form"===e.type&&r.debounedFormMutation()})}},function(e,t,a){"use strict";var c=a(97),n=a.n(c),r=a(29),i=a(191),s=a.n(i),f=a(28);a.d(t,"a",function(){return d}),a.d(t,"b",function(){return l}),a.d(t,"c",function(){return u});var o=3e4,d=n.a.create({baseURL:r.a.localApiURL,timeout:o,headers:{"X-WP-Nonce":r.a.localApiNonce}}),l=n.a.create({baseURL:r.a.appURL,timeout:o}),u=function(e){if(a.i(f.a)(e,"public")&&a.i(f.a)(e,"secret")){var t=e.public,c=e.secret;return s()(t+c)}return""}},function(e,t,a){"use strict";a.d(t,"a",function(){return c});var c=function(e,t){var a="";for(var c in e)""!=a&&(a+="&"),a+=c+"="+e[c];return t+"?"+a}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5);t.default={computed:Object.assign({},a.i(c.c)(["publicKey","secretKey","connected"])),methods:Object.assign({},a.i(c.d)(["publicKey","secretKey"]),{publicKeyChange:function(e){this.$store.commit("publicKey",e.target.value)},secretKeyChange:function(e){this.$store.commit("secretKey",e.target.value)}})}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(219),n=a.n(c),r=a(218),i=a.n(r);t.default={components:{_label:n.a,_input:i.a},props:{idAttr:{type:String,require:!0},value:{type:String,required:!0},setting:{type:String,required:!0},label:{type:String,required:!0}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{idAttr:{type:String,require:!0},value:{type:String,required:!0},setting:{type:String,required:!0},type:{type:String,default:"text"}},methods:{handle:function(){this.$store.commit(this.setting,this.value)}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={idAttr:{type:String,require:!0},label:{type:String,required:!0}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["success","message","show"],watch:{show:function(){this.show?this.$el.className="cf-alert-wrap cf-show":this.$el.className="cf-alert-wrap cf-hide"}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=(a(5),a(217)),n=a.n(c);a(28);t.default={components:{checkbox:n.a},props:["form","layouts"],computed:{layoutIdAttr:function(){return"cf-pro-layout-"+this.form.form_id},pdfLayoutIdAttr:function(){return"cf-pro-layout-pdf-"+this.form.form_id},attachPDFIdAttr:function(){return"cf-pro-layout-"+this.form.form_id},linkPDFIdAttr:function(){return"cf-pro-layout-"+this.form.form_id},sendLocalIdAttr:function(){return"cf-pro-send-local-"+this.form.form_id}},methods:{commitChange:function(e,t){this.form[e]=t,this.$store.commit("form",this.form)},changeLayout:function(e){this.commitChange(e.target.value,"layout")},changePDFLayout:function(e){this.commitChange(e.target.value,"pdf_layout")},changeAttachPDF:function(e){this.commitChange(e.target.value,"attach_pdf")},changeLinkPDF:function(e){this.commitChange(e.target.value,"pdf_link")},changeSendLocal:function(e){this.commitChange(e.target.value,"send_local")}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(84),n=a.n(c),r=a(5);t.default={components:{"form-setting":n.a},computed:a.i(r.b)({forms:function(e){return e.forms},layouts:function(e){return e.layouts}}),methods:Object.assign({},a.i(r.a)(["getLayouts"])),beforeMount:function(){this.getLayouts()},data:function(){return{editForm:0,form:{}}},watch:{editForm:function(e){this.form=this.$store.getters.getFormsById(e)}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5);t.default={computed:Object.assign({},a.i(c.c)(["enhancedDelivery"]),{deliveryValue:{get:function(){return this.enhancedDelivery},set:function(e){this.$store.commit("enhancedDelivery",e)}}})}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5);t.default={computed:Object.assign({},a.i(c.c)(["logLevels","logLevel","strings"]),{logLevelValue:{get:function(){return this.logLevel},set:function(e){this.$store.commit("logLevel",e)}}})}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5);t.default={computed:Object.assign({},a.i(c.c)(["strings"]))}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5),n=a(115),r=a(216),i=a.n(r),s=a(220),f=a.n(s),o=a(221),d=a.n(o),l=a(222),u=a.n(l),b=a(83),p=a.n(b);t.default={components:{"account-display":n.a,"account-edit":i.a,"forms-settings":f.a,delivery:d.a,logs:u.a,status:p.a},computed:a.i(c.b)({loading:function(e){return e.loading},connected:function(e){return e.connected},publicKey:function(e){return e.account.apiKeys.public},enhancedDelivery:function(e){return e.settings.enhancedDelivery},logLevel:function(e){return e.settings.logLevel},mainAlert:function(e){return e.mainAlert}}),beforeMount:function(){[].forEach.call(document.querySelectorAll(".update-nag"),function(e){e.parentNode.removeChild(e)}),this.$store.dispatch("getAccount")},methods:{save:function(){this.$store.dispatch("saveAccount")}}}},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(5),n=a(67),r=(a.n(n),a(83)),i=a.n(r),s=a(84),f=a.n(s),o=a(223),d=a.n(o);t.default={components:{"form-setting":f.a,"link-keys":d.a,status:i.a},methods:Object.assign({},a.i(c.a)(["getLayouts","getAccount","saveAccount"])),beforeMount:function(){var e=this;this.getAccount().then(function(){e.getLayouts(),e.form=e.$store.getters.getFormsById(e.formScreen)})},computed:a.i(c.b)({layouts:function(e){return e.layouts},connected:function(e){return e.connected},formScreen:function(e){return e.formScreen},mainAlert:function(e){return e.mainAlert}}),data:function(){return{form:{}}}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){e.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},,,,,,,,,,,,,,function(e,t){e.exports={_args:[["elliptic@6.4.0","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client"]],_development:!0,_from:"elliptic@6.4.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"elliptic@6.4.0",name:"elliptic",escapedName:"elliptic",rawSpec:"6.4.0",saveSpec:null,fetchSpec:"6.4.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_spec:"6.4.0",_where:"/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},function(e,t){e.exports={"cf-pro-account-edit":"style__cf-pro-account-edit___6_kkC"}},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,function(e,t){e.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},,,,,,,,,,,,,,,,,,,,,,function(e,t,a){a(179);var c=a(8)(a(122),a(233),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(123),a(230),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(124),a(226),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(125),a(228),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(128),a(229),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(129),a(224),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(130),a(232),null,null);e.exports=c.exports},function(e,t,a){var c=a(8)(a(131),a(231),null,null);e.exports=c.exports},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"caldera-config-group"},[a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.deliveryValue,expression:"deliveryValue"}],attrs:{type:"checkbox",id:"cf-pro-enhanced-delivery","aria-describedby":"cf-pro-enhanced-delivery-desc"},domProps:{checked:Array.isArray(e.deliveryValue)?e._i(e.deliveryValue,null)>-1:e.deliveryValue},on:{__c:function(t){var a=e.deliveryValue,c=t.target,n=!!c.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);c.checked?i<0&&(e.deliveryValue=a.concat([r])):i>-1&&(e.deliveryValue=a.slice(0,i).concat(a.slice(i+1)))}else e.deliveryValue=n}}}),e._v(" "),a("label",{attrs:{for:"cf-pro-enhanced-delivery"}},[e._v("\n\t\t\tEnable Enhanced Delivery\n\t\t")]),e._v(" "),a("div",{staticClass:"description",attrs:{id:"cf-pro-enhanced-delivery-desc"}},[a("p",[e._v("If enabled, messages are sent via Caldera Forms Pro Servers")]),e._v(" "),e.enhancedDelivery?a("ul",[a("li",[e._v("Forms must use database entry tracking.")]),e._v(" "),a("li",[e._v("From Email setting will be used as the reply-to.")])]):e._e()])])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cf-pro-form-settings"}},[e.connected?a("div",[a("form-setting",{attrs:{form:e.form,layouts:e.layouts}})],1):e._e(),e._v(" "),e.connected?e._e():a("div",[a("link-keys")],1),e._v(" "),a("div",{attrs:{id:"cf-pro-alert-wrap"}},[a("status",{attrs:{message:e.mainAlert.message,success:e.mainAlert.success,show:e.mainAlert.show}})],1)])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:e.type,id:e.idAttr},on:{keyup:function(t){e.handle()},change:function(t){e.handle()}}})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cf-pro-message-settings"}},[a("div",{attrs:{id:"cf-pro-message-setting-inner"}},[a("div",{staticClass:"caldera-editor-header"},[a("ul",{staticClass:"caldera-editor-header-nav"},[e._m(0),e._v(" "),e.connected?a("li",{staticClass:"status good"},[e._v("\n\t\t\t\t\tConnected\n\t\t\t\t")]):e._e(),e._v(" "),e.connected?e._e():a("li",{staticClass:"status bad"},[e._v("\n\t\t\t\t\tNot Connected\n\t\t\t\t")]),e._v(" "),a("li",{staticClass:"cf-pro-save"},[a("input",{staticClass:"button button-primary",attrs:{type:"submit",value:"Save"},on:{click:e.save}})]),e._v(" "),a("li",{attrs:{id:"cf-pro-alert-wrap"}},[a("status",{attrs:{message:e.mainAlert.message,success:e.mainAlert.success,show:e.mainAlert.show}})],1)])]),e._v(" "),a("div",{staticClass:"cf-pro-settings"},[a("div",[a("tabs",{attrs:{options:{useUrlFragment:!1}}},[a("tab",{attrs:{name:"Account"}},[a("account-edit")],1),e._v(" "),a("tab",{attrs:{name:"Form Settings"}},[e.connected?a("div",[a("forms-settings")],1):a("div",[e._v("\n\t\t\t\t\t\t\tYou must connected to Caldera Forms Pro First\n\t\t\t\t\t\t")])]),e._v(" "),a("tab",{attrs:{name:"Settings"}},[a("delivery"),e._v(" "),a("logs")],1)],1)],1)])])])},staticRenderFns:[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("li",{staticClass:"caldera-editor-logo"},[a("span",{staticClass:"caldera-forms-name"},[e._v("\n\t\t\t\t\t\tCaldera Forms Pro\n\t\t\t\t\t")])])}]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("label",{attrs:{for:e.idAttr},domProps:{innerHTML:e._s(e.label)}})},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:"cf-pro-form-setting-chooser"}},[e._v("\n\t\t\tChoose Form\n\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.editForm,expression:"editForm"}],attrs:{id:"cf-pro-form-setting-chooser"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.editForm=t.target.multiple?a:a[0]}}},[a("option"),e._v(" "),e._l(e.forms,function(t){return a("option",{domProps:{value:t.form_id}},[e._v("\n\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t")])})],2)])]),e._v(" "),e.editForm?a("div",[a("form-setting",{attrs:{form:e.form,layouts:e.layouts}})],1):e._e()])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:e.idAttr},domProps:{innerHTML:e._s(e.label)}}),e._v(" "),a("_input",{attrs:{type:e.checkbox,idAttr:e.idAttr,value:e.value,setting:e.setting}})],1)},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("a",{attrs:{href:e.strings.apiKeysViewLink,alt:e.strings.apiKeysViewText,target:"_blank"}},[e._v(e._s(e.strings.apiKeysViewText))])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"caldera-config-group"},[a("div",{attrs:{"aria-labelledby":"minLogLevelTitle","aria-describedby":"minLogLevelInfo"}},[a("label",{attrs:{for:"cf-pro-form-log-level-chooser",id:"minLogLevelTitle"}},[e._v("\n "+e._s(e.strings.minLogLevelTitle)+"\n ")]),e._v(" "),a("p",{attrs:{id:"minLogLevelInfo"}},[e._v(e._s(e.strings.minLogLevelInfo))])]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.logLevelValue,expression:"logLevelValue"}],attrs:{id:"cf-pro-form-log-level-chooser"},on:{change:function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.logLevelValue=t.target.multiple?a:a[0]}}},e._l(e.logLevels,function(t){return a("option",{directives:[{name:"key",rawName:"v-key",value:t.number,expression:"level.number"}],domProps:{value:t.number}},[e._v("\n "+e._s(t.name)+"\n ")])}))])])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"cf-pro-account-edit"}},[a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:"cf-pro-api-public"}},[e._v("\n\t\t\tPublic Key\n\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.publicKey,expression:"publicKey"}],attrs:{type:"text",id:"cf-pro-api-public"},domProps:{value:e.publicKey},on:{change:e.publicKeyChange,input:function(t){t.target.composing||(e.publicKey=t.target.value)}}})])]),e._v(" "),a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:"cf-pro-api-secret"}},[e._v("\n\t\t\tSecret Key\n\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.secretKey,expression:"secretKey"}],attrs:{type:"text",id:"cf-pro-api-secret"},domProps:{value:e.secretKey},on:{change:e.secretKeyChange,input:function(t){t.target.composing||(e.secretKey=t.target.value)}}})])]),e._v(" "),e.connected?e._e():a("p",[e._v("\n\t\tYou can find your API keys in your "),a("a",{attrs:{href:"https://app.calderaformspro.com/app#/account",target:"_blank"}},[e._v("\n\t\tCaldera Forms Pro Account\n\t")])])])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"cf-alert-wrap cf-hide"},[e.show&&e.success?a("p",{staticClass:"cf-alert cf-alert-success"},[e._v("\n\t\t"+e._s(e.message)+"\n\t")]):e._e(),e._v(" "),e.show&&!e.success?a("p",{staticClass:"cf-alert cf-alert-warning"},[e._v("\n\t\t"+e._s(e.message)+"\n\t")]):e._e()])},staticRenderFns:[]}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"caldera-config-group"},[1!=e.form.send_local?a("label",{attrs:{for:e.sendLocalIdAttr}},[e._v("\n\t\t\t\tDisable enhanced delivery for this form\n\t\t")]):a("label",{attrs:{for:e.sendLocalIdAttr}},[e._v("\n\t\t\t\tEnhanced delivery is disabled for this form\n\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.send_local,expression:"form.send_local"}],attrs:{type:"checkbox",id:e.sendLocalIdAttr},domProps:{checked:Array.isArray(e.form.send_local)?e._i(e.form.send_local,null)>-1:e.form.send_local},on:{change:e.changeSendLocal,__c:function(t){var a=e.form.send_local,c=t.target,n=!!c.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);c.checked?i<0&&(e.form.send_local=a.concat([r])):i>-1&&(e.form.send_local=a.slice(0,i).concat(a.slice(i+1)))}else e.form.send_local=n}}})])]),e._v(" "),1!=e.form.send_local?a("div",[a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:e.layoutIdAttr}},[e._v("\n\t\t\t\tEmail Layout\n\t\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.form.layout,expression:"form.layout"}],attrs:{id:e.layoutIdAttr},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.form.layout=t.target.multiple?a:a[0]},e.changeLayout]}},[a("option"),e._v(" "),e._l(e.layouts,function(t){return a("option",{domProps:{value:t.id}},[e._v("\n\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t")])})],2)])]),e._v(" "),a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:e.pdfLayoutIdAttr}},[e._v("\n\t\t\t\tPDF Layout\n\t\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("select",{directives:[{name:"model",rawName:"v-model",value:e.form.pdf_layout,expression:"form.pdf_layout"}],attrs:{id:e.pdfLayoutIdAttr},on:{change:[function(t){var a=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){return"_value"in e?e._value:e.value});e.form.pdf_layout=t.target.multiple?a:a[0]},e.changePDFLayout]}},[a("option"),e._v(" "),e._l(e.layouts,function(t){return a("option",{domProps:{value:t.id}},[e._v("\n\t\t\t\t\t\t\t"+e._s(t.name)+"\n\t\t\t\t\t\t")])})],2)])]),e._v(" "),a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:e.attachPDFIdAttr}},[e._v("\n\t\t\t\tAttach PDF To Main Mailer\n\t\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.attach_pdf,expression:"form.attach_pdf"}],attrs:{type:"checkbox",id:e.attachPDFIdAttr},domProps:{checked:Array.isArray(e.form.attach_pdf)?e._i(e.form.attach_pdf,null)>-1:e.form.attach_pdf},on:{change:e.changeAttachPDF,__c:function(t){var a=e.form.attach_pdf,c=t.target,n=!!c.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);c.checked?i<0&&(e.form.attach_pdf=a.concat([r])):i>-1&&(e.form.attach_pdf=a.slice(0,i).concat(a.slice(i+1)))}else e.form.attach_pdf=n}}})])]),e._v(" "),a("div",{staticClass:"caldera-config-group"},[a("label",{attrs:{for:e.attachPDFIdAttr}},[e._v("\n\t\t\t\tAdd PDF Link\n\t\t\t")]),e._v(" "),a("div",{staticClass:"caldera-config-field"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.pdf_link,expression:"form.pdf_link"}],attrs:{type:"checkbox",id:e.attachPDFIdAttr},domProps:{checked:Array.isArray(e.form.pdf_link)?e._i(e.form.pdf_link,null)>-1:e.form.pdf_link},on:{change:e.changeLinkPDF,__c:function(t){var a=e.form.pdf_link,c=t.target,n=!!c.checked;if(Array.isArray(a)){var r=null,i=e._i(a,r);c.checked?i<0&&(e.form.pdf_link=a.concat([r])):i>-1&&(e.form.pdf_link=a.slice(0,i).concat(a.slice(i+1)))}else e.form.pdf_link=n}}})])])]):e._e()])},staticRenderFns:[]}},,,function(e,t){},function(e,t){},function(e,t){},function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=a(43),n=a(85),r=a(86),i=a.n(r),s=a(88),f=(a.n(s),a(87)),o=a.n(f);if(a.d(t,"store",function(){return n.a}),c.a.component("tabs",s.Tabs),c.a.component("tab",s.Tab),document.getElementById("cf-pro-app")){new c.a({el:"#cf-pro-app",store:n.a,components:{settings:i.a},render:function(e){return e("div",{attrs:{id:"cf-pro-settings"}},[e("settings")])}})}if(document.getElementById("cf-pro-app-tab")){new c.a({el:"#cf-pro-app-tab",store:n.a,components:{settings:o.a},render:function(e){return e("div",{attrs:{id:"cf-pro-settings-tab"}},[e("settings")])}})}}]),[241]);
|
2 |
+
//# sourceMappingURL=client.ca043aad.js.map
|
includes/cf-pro-client/dist/client.ca043aad.js.map
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
{"version":3,"sources":["/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client.ca043aad.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/util/utils.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/util/wpConfig.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/browserify-aes/modes/list.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/browserify-sign/browser/algorithms.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/browserify-sign/browser/curves.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Elements/Status/Status.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/FormSettings/Form.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/index.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/views/Settings.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/views/Tab.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Account/display.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/actions.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/getters.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/mutations.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/plugins.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/util/API.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/store/util/urlString.js","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Edit.vue?0995a470","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Checkbox.vue?34f7250e","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Input.vue?6944ebf0","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Label.vue?5a1f1299","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Status.vue?356c271a","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Form.vue?7a94102f","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Forms.vue?3865799d","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/enhancedDelivery.vue?3dab0983","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/logLevel.vue?5bfc5662","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/linkKeys.vue?528979b5","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Settings.vue?3500228d","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/Tab.vue?9f2b6b52","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/diffie-hellman/lib/primes.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/elliptic/package.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Account/style.css","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/node_modules/parse-asn1/aesid.json","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Account/Edit.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Elements/Field/Checkbox.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Elements/Parts/Input/Input.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Elements/Parts/Label/Label.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/FormSettings/Forms.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/GeneralSettings/enhancedDelivery.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/GeneralSettings/logLevel.vue","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/components/Link/linkKeys.vue","webpack:///./client/components/GeneralSettings/enhancedDelivery.vue?63dd","webpack:///./client/views/Tab.vue?faf1","webpack:///./client/components/Elements/Parts/Input/Input.vue?4f47","webpack:///./client/views/Settings.vue?91fa","webpack:///./client/components/Elements/Parts/Label/Label.vue?a14c","webpack:///./client/components/FormSettings/Forms.vue?dd5c","webpack:///./client/components/Elements/Field/Checkbox.vue?5437","webpack:///./client/components/Link/linkKeys.vue?e7e0","webpack:///./client/components/GeneralSettings/logLevel.vue?bed6","webpack:///./client/components/Account/Edit.vue?d9a0","webpack:///./client/components/Elements/Status/Status.vue?4e3f","webpack:///./client/components/FormSettings/Form.vue?8ffe","/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client/client/index.js"],"names":["webpackJsonp","Array","concat","module","__webpack_exports__","__webpack_require__","d","objHasProp","Symbol","iterator","obj","prop","Object","prototype","hasOwnProperty","call","localApiURL","CF_PRO_ADMIN","api","cf","url","localApiNonce","nonce","appURL","cfPro","formScreen","strings","logLevels","exports","aes-128-ecb","cipher","key","iv","mode","type","aes-192-ecb","aes-256-ecb","aes-128-cbc","aes-192-cbc","aes-256-cbc","aes128","aes192","aes256","aes-128-cfb","aes-192-cfb","aes-256-cfb","aes-128-cfb8","aes-192-cfb8","aes-256-cfb8","aes-128-cfb1","aes-192-cfb1","aes-256-cfb1","aes-128-ofb","aes-192-ofb","aes-256-ofb","aes-128-ctr","aes-192-ctr","aes-256-ctr","aes-128-gcm","aes-192-gcm","aes-256-gcm","sha224WithRSAEncryption","sign","hash","id","RSA-SHA224","sha256WithRSAEncryption","RSA-SHA256","sha384WithRSAEncryption","RSA-SHA384","sha512WithRSAEncryption","RSA-SHA512","RSA-SHA1","ecdsa-with-SHA1","sha256","sha224","sha384","sha512","DSA-SHA","DSA-SHA1","DSA","DSA-WITH-SHA224","DSA-SHA224","DSA-WITH-SHA256","DSA-SHA256","DSA-WITH-SHA384","DSA-SHA384","DSA-WITH-SHA512","DSA-SHA512","DSA-RIPEMD160","ripemd160WithRSA","RSA-RIPEMD160","md5WithRSAEncryption","RSA-MD5","1.3.132.0.10","1.3.132.0.33","1.2.840.10045.3.1.1","1.2.840.10045.3.1.7","1.3.132.0.34","1.3.132.0.35","Component","__WEBPACK_IMPORTED_MODULE_0_vue__","__WEBPACK_IMPORTED_MODULE_1_vuex__","__WEBPACK_IMPORTED_MODULE_2__util_wpConfig__","__WEBPACK_IMPORTED_MODULE_3__mutations__","__WEBPACK_IMPORTED_MODULE_4__actions__","__WEBPACK_IMPORTED_MODULE_5__getters__","__WEBPACK_IMPORTED_MODULE_6__plugins__","use","STATE","loading","connected","forms","settings","enhancedDelivery","generatePDFs","logLevel","layouts","name","account","plan","String","Number","apiKeys","public","secret","token","mainAlert","success","message","show","PLUGINS","store","Store","strict","plugins","modules","state","getters","mutations","actions","__WEBPACK_IMPORTED_MODULE_0__style_css__","n","render","h","attrs","this","publicKey","secretKey","computed","i","__WEBPACK_IMPORTED_MODULE_0__util_API__","__WEBPACK_IMPORTED_MODULE_1__util_urlString__","ACTIONS","_typeof","constructor","getAccount","context","Promise","resolve","reject","get","then","response","r","data","maybe","JSON","parse","Exception","commit","account_id","error","saveAccount","trim","post","accountId","apiKey","apiSecret","dispatch","_cfAlertMessage","saved","fade","testConnection","_ref","getLayouts","_ref2","simple","e","console","log","updateMainAlert","alert","isNaN","window","setTimeout","closeMainAlert","__WEBPACK_IMPORTED_MODULE_0__util_utils__","GETTERS","hi","getSetting","setting","_default","getFormsById","find","form","form_id","__WEBPACK_IMPORTED_MODULE_0_lodash_isboolean__","MUTATIONS","value","index","findIndex","__WEBPACK_IMPORTED_MODULE_0_lodash_debounce__","__WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default","accountSaver","formSaver","_this","subscribe","mutation","debounedFormMutation","__WEBPACK_IMPORTED_MODULE_0_axios__","__WEBPACK_IMPORTED_MODULE_0_axios___default","__WEBPACK_IMPORTED_MODULE_1__wpConfig__","__WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1__","__WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1___default","__WEBPACK_IMPORTED_MODULE_3__utils__","localAPI","appAPI","appToken","timeout","a","create","baseURL","headers","X-WP-Nonce","urlString","endpoint","str","defineProperty","__WEBPACK_IMPORTED_MODULE_0_vuex__","assign","methods","publicKeyChange","ev","$store","target","secretKeyChange","__WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue__","__WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue___default","__WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue__","__WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue___default","components","_label","_input","props","idAttr","require","required","label","default","handle","watch","$el","className","__WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox__","__WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox___default","checkbox","layoutIdAttr","pdfLayoutIdAttr","attachPDFIdAttr","linkPDFIdAttr","sendLocalIdAttr","commitChange","what","changeLayout","changePDFLayout","changeAttachPDF","changeLinkPDF","changeSendLocal","__WEBPACK_IMPORTED_MODULE_0__Form__","__WEBPACK_IMPORTED_MODULE_0__Form___default","form-setting","beforeMount","editForm","v","deliveryValue","set","logLevelValue","__WEBPACK_IMPORTED_MODULE_1__components_Account_display__","__WEBPACK_IMPORTED_MODULE_2__components_Account_Edit__","__WEBPACK_IMPORTED_MODULE_2__components_Account_Edit___default","__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms__","__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms___default","__WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery__","__WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery___default","__WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel__","__WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel___default","__WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue__","__WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue___default","account-display","account-edit","forms-settings","delivery","logs","status","forEach","document","querySelectorAll","parentNode","removeChild","save","__WEBPACK_IMPORTED_MODULE_1_lodash_debounce__","__WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status__","__WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status___default","__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue__","__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue___default","__WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue__","__WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue___default","link-keys","modp1","gen","prime","modp2","modp5","modp14","modp15","modp16","modp17","modp18","_args","_development","_from","_id","_inBundle","_integrity","_location","_phantomChildren","_requested","registry","raw","escapedName","rawSpec","saveSpec","fetchSpec","_requiredBy","_resolved","_spec","_where","author","email","bugs","dependencies","bn.js","brorand","hash.js","hmac-drbg","inherits","minimalistic-assert","minimalistic-crypto-utils","description","devDependencies","brfs","coveralls","grunt","grunt-browserify","grunt-cli","grunt-contrib-connect","grunt-contrib-copy","grunt-contrib-uglify","grunt-mocha-istanbul","grunt-saucelabs","istanbul","jscs","jshint","mocha","files","homepage","keywords","license","main","repository","scripts","lint","test","unit","version","cf-pro-account-edit","2.16.840.1.101.3.4.1.1","2.16.840.1.101.3.4.1.2","2.16.840.1.101.3.4.1.3","2.16.840.1.101.3.4.1.4","2.16.840.1.101.3.4.1.21","2.16.840.1.101.3.4.1.22","2.16.840.1.101.3.4.1.23","2.16.840.1.101.3.4.1.24","2.16.840.1.101.3.4.1.41","2.16.840.1.101.3.4.1.42","2.16.840.1.101.3.4.1.43","2.16.840.1.101.3.4.1.44","_vm","_h","$createElement","_c","_self","staticClass","directives","rawName","expression","aria-describedby","domProps","checked","isArray","_i","on","__c","$event","$$a","$$el","$$c","$$v","$$i","slice","_v","for","_e","staticRenderFns","keyup","change","_m","click","options","useUrlFragment","innerHTML","_s","$$selectedVal","filter","o","selected","map","_value","multiple","_l","href","apiKeysViewLink","alt","apiKeysViewText","aria-labelledby","minLogLevelTitle","minLogLevelInfo","level","number","input","composing","send_local","layout","option","pdf_layout","attach_pdf","pdf_link","__WEBPACK_IMPORTED_MODULE_1__store__","__WEBPACK_IMPORTED_MODULE_2__views_Settings_vue__","__WEBPACK_IMPORTED_MODULE_2__views_Settings_vue___default","__WEBPACK_IMPORTED_MODULE_3_vue_tabs_component__","__WEBPACK_IMPORTED_MODULE_4__views_Tab_vue__","__WEBPACK_IMPORTED_MODULE_4__views_Tab_vue___default","component","getElementById","el"],"mappings":"AAAAA,cAAc,EAAE,GAAGC,MAAM,IAAIC,QAOvB,SAAUC,EAAQC,EAAqBC,GAE7C,YAG+BA,GAAoBC,EAAEF,EAAqB,IAAK,WAAa,MAAOG,IAGnG,ICJaA,IDImB,kBAAXC,SAAgCA,OAAOC,SCJlC,SAASC,EAAIC,GACtC,MAAOC,QAAOC,UAAUC,eAAeC,KAAKL,EAAKC,MDuC5C,SAAUR,EAAQC,EAAqBC,GAE7C,YErDAD,GAAA,GAQCY,YAAaC,aAAaC,IAAIC,GAAGC,IASjCC,cAAeJ,aAAaC,IAAIC,GAAGG,MASnCC,OAAQN,aAAaC,IAAIM,MAAMJ,IAS/BK,WAAYR,aAAaQ,WAWzBC,QAAST,aAAaS,QAWnBC,UAAWV,aAAaU,YF2DpB,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CACA,CAOF,SAAUxB,EAAQyB,GGpJxBzB,EAAAyB,SAAkBC,e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SAAUzB,EAAQyB,KAWlB,SAAUzB,EAAQyB,KAWlB,SAAUzB,EAAQC,EAAqBC,GAE7C,YACAO,QAAOkO,eAAe1O,EAAqB,cAAgB6M,OAAO,GAC7C,IAAI5G,GAAoChG,EAA+B,IACnEsc,EAAuCtc,EAAmC,IAC1Euc,EAAoDvc,EAAgD,IACpGwc,EAA4Dxc,EAAoByI,EAAE8T,GAClFE,EAAmDzc,EAA8C,IAEjG0c,GAD2D1c,EAAoByI,EAAEgU,GAClCzc,EAA2C,KAC1F2c,EAAuD3c,EAAoByI,EAAEiU,EsDttFtG,ItDutFiC1c,EAAoBC,EAAEF,EAAqB,QAAS,WAAa,MAAOuc,GAAwC,IsD5tFjJtW,EAAA,EAAI4W,UAAU,OAAQH,EAAA,MACtBzW,EAAA,EAAI4W,UAAU,MAAOH,EAAA,KAIjB5J,SAASgK,eAAgB,cAC5B,CAAwB,GAAI7W,GAAA,GAC3B8W,GAAI,cACJ/U,MAAAuU,EAAA,EACAhN,YACC1I,SAAY4V,EAAAvO,GAEbvF,OAN+B,SAMxBC,GACN,MAAOA,GACN,OAECC,OACCjF,GAAI,qBAILgF,EAAG,iBAWR,GAAIkK,SAASgK,eAAgB,kBAC5B,CAAe,GAAI7W,GAAA,GAClB8W,GAAI,kBACJ/U,MAAAuU,EAAA,EACAhN,YACC1I,SAAY+V,EAAA1O,GAEbvF,OANsB,SAMfC,GACN,MAAOA,GACN,OAECC,OACCjF,GAAI,yBAILgF,EAAG,sBtD+tFJ","file":"client.ca043aad.js","sourcesContent":["webpackJsonp([1,2],Array(28).concat([\n/* 28 */\n/* exports provided: isObject, hasProp, objHasProp, findForm, findFormOffset */\n/* exports used: objHasProp */\n/*!************************************!*\\\n !*** ./client/store/util/utils.js ***!\n \\************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* unused harmony export isObject */\n/* unused harmony export hasProp */\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return objHasProp; });\n/* unused harmony export findForm */\n/* unused harmony export findFormOffset */\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isObject = function isObject(value) {\n\t/**@TODO npm in just this function from lodash, beacuse the fact that I copypasted 3 lines of code is THE WORST THING EVER! https://github.com/lodash/lodash/blob/master/isObject.js **/\n\tvar type = typeof value === 'undefined' ? 'undefined' : _typeof(value);\n\treturn value != null && (type == 'object' || type == 'function');\n\t//Look - I added semicolons\n};\n\nvar hasProp = function hasProp(maybeObj, prop) {\n\treturn isObject(maybeObj) && objHasProp(maybeObj, prop);\n};\n\nvar objHasProp = function objHasProp(obj, prop) {\n\treturn Object.prototype.hasOwnProperty.call(obj, prop);\n};\n\nvar findForm = function findForm(state, formId) {\n\treturn state.forms.find(function (form) {\n\t\treturn form.form_id === formId;\n\t});\n};\n\nvar findFormOffset = function findFormOffset(state, formId) {\n\treturn state.forms.findIndex(function (form) {\n\t\treturn form.form_id === formId;\n\t});\n};\n\n/***/ }),\n/* 29 */\n/* exports provided: default */\n/* exports used: default */\n/*!***************************************!*\\\n !*** ./client/store/util/wpConfig.js ***!\n \\***************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony default export */ __webpack_exports__[\"a\"] = {\n\t/**\n * The URL for local site API\n *\n * @since 0.0.1\n *\n * @type {string}\n */\n\tlocalApiURL: CF_PRO_ADMIN.api.cf.url,\n\n\t/**\n * The nonce for local site API\n *\n * @since 0.0.1\n *\n * @type {string}\n */\n\tlocalApiNonce: CF_PRO_ADMIN.api.cf.nonce,\n\n\t/**\n * The URL for remote app API\n *\n * @since 0.0.1\n *\n * @type {string}\n */\n\tappURL: CF_PRO_ADMIN.api.cfPro.url,\n\n\t/**\n * The ID of the form whose edit screen we are on\n *\n * @since 1.0.0\n *\n * @type {string}\n */\n\tformScreen: CF_PRO_ADMIN.formScreen,\n\n\t/**\n * Translation and other strings.\n *\n * Created by \"strings\" index of generated in calderawp\\calderaforms\\pro\\admin\\scripts::data()\n *\n * @since 1.0.0\n *\n * @type {Object}\n */\n\tstrings: CF_PRO_ADMIN.strings,\n\n\t/**\n * Levels of Monolog logs\n *\n * Created by \"logLevels\" index of generated in calderawp\\calderaforms\\pro\\admin\\scripts::data()\n *\n * @since 1.5.9\n *\n * @type array\n */\n\tlogLevels: CF_PRO_ADMIN.logLevels\n\n};\n\n/***/ }),\n/* 30 */,\n/* 31 */,\n/* 32 */,\n/* 33 */,\n/* 34 */,\n/* 35 */,\n/* 36 */,\n/* 37 */,\n/* 38 */,\n/* 39 */,\n/* 40 */,\n/* 41 */,\n/* 42 */,\n/* 43 */,\n/* 44 */,\n/* 45 */,\n/* 46 */,\n/* 47 */,\n/* 48 */,\n/* 49 */,\n/* 50 */,\n/* 51 */,\n/* 52 */,\n/* 53 */,\n/* 54 */,\n/* 55 */,\n/* 56 */\n/* unknown exports provided */\n/* all exports used */\n/*!******************************************!*\\\n !*** ./~/browserify-aes/modes/list.json ***!\n \\******************************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"aes-128-ecb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-192-ecb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-256-ecb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-128-cbc\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-192-cbc\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-256-cbc\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes128\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes192\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes256\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-128-cfb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-192-cfb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-256-cfb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-128-cfb8\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-192-cfb8\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-256-cfb8\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-128-cfb1\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-192-cfb1\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-256-cfb1\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-128-ofb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-192-ofb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-256-ofb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-128-ctr\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-192-ctr\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-256-ctr\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-128-gcm\":{\"cipher\":\"AES\",\"key\":128,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"},\"aes-192-gcm\":{\"cipher\":\"AES\",\"key\":192,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"},\"aes-256-gcm\":{\"cipher\":\"AES\",\"key\":256,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"}}\n\n/***/ }),\n/* 57 */,\n/* 58 */\n/* unknown exports provided */\n/* all exports used */\n/*!***************************************************!*\\\n !*** ./~/browserify-sign/browser/algorithms.json ***!\n \\***************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"sha224WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha224\",\"id\":\"302d300d06096086480165030402040500041c\"},\"RSA-SHA224\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha224\",\"id\":\"302d300d06096086480165030402040500041c\"},\"sha256WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha256\",\"id\":\"3031300d060960864801650304020105000420\"},\"RSA-SHA256\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha256\",\"id\":\"3031300d060960864801650304020105000420\"},\"sha384WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha384\",\"id\":\"3041300d060960864801650304020205000430\"},\"RSA-SHA384\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha384\",\"id\":\"3041300d060960864801650304020205000430\"},\"sha512WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha512\",\"id\":\"3051300d060960864801650304020305000440\"},\"RSA-SHA512\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha512\",\"id\":\"3051300d060960864801650304020305000440\"},\"RSA-SHA1\":{\"sign\":\"rsa\",\"hash\":\"sha1\",\"id\":\"3021300906052b0e03021a05000414\"},\"ecdsa-with-SHA1\":{\"sign\":\"ecdsa\",\"hash\":\"sha1\",\"id\":\"\"},\"sha256\":{\"sign\":\"ecdsa\",\"hash\":\"sha256\",\"id\":\"\"},\"sha224\":{\"sign\":\"ecdsa\",\"hash\":\"sha224\",\"id\":\"\"},\"sha384\":{\"sign\":\"ecdsa\",\"hash\":\"sha384\",\"id\":\"\"},\"sha512\":{\"sign\":\"ecdsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-SHA\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA-SHA1\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA-WITH-SHA224\":{\"sign\":\"dsa\",\"hash\":\"sha224\",\"id\":\"\"},\"DSA-SHA224\":{\"sign\":\"dsa\",\"hash\":\"sha224\",\"id\":\"\"},\"DSA-WITH-SHA256\":{\"sign\":\"dsa\",\"hash\":\"sha256\",\"id\":\"\"},\"DSA-SHA256\":{\"sign\":\"dsa\",\"hash\":\"sha256\",\"id\":\"\"},\"DSA-WITH-SHA384\":{\"sign\":\"dsa\",\"hash\":\"sha384\",\"id\":\"\"},\"DSA-SHA384\":{\"sign\":\"dsa\",\"hash\":\"sha384\",\"id\":\"\"},\"DSA-WITH-SHA512\":{\"sign\":\"dsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-SHA512\":{\"sign\":\"dsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-RIPEMD160\":{\"sign\":\"dsa\",\"hash\":\"rmd160\",\"id\":\"\"},\"ripemd160WithRSA\":{\"sign\":\"rsa\",\"hash\":\"rmd160\",\"id\":\"3021300906052b2403020105000414\"},\"RSA-RIPEMD160\":{\"sign\":\"rsa\",\"hash\":\"rmd160\",\"id\":\"3021300906052b2403020105000414\"},\"md5WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"md5\",\"id\":\"3020300c06082a864886f70d020505000410\"},\"RSA-MD5\":{\"sign\":\"rsa\",\"hash\":\"md5\",\"id\":\"3020300c06082a864886f70d020505000410\"}}\n\n/***/ }),\n/* 59 */\n/* unknown exports provided */\n/* all exports used */\n/*!***********************************************!*\\\n !*** ./~/browserify-sign/browser/curves.json ***!\n \\***********************************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"1.3.132.0.10\":\"secp256k1\",\"1.3.132.0.33\":\"p224\",\"1.2.840.10045.3.1.1\":\"p192\",\"1.2.840.10045.3.1.7\":\"p256\",\"1.3.132.0.34\":\"p384\",\"1.3.132.0.35\":\"p521\"}\n\n/***/ }),\n/* 60 */,\n/* 61 */,\n/* 62 */,\n/* 63 */,\n/* 64 */,\n/* 65 */,\n/* 66 */,\n/* 67 */,\n/* 68 */,\n/* 69 */,\n/* 70 */,\n/* 71 */,\n/* 72 */,\n/* 73 */,\n/* 74 */,\n/* 75 */,\n/* 76 */,\n/* 77 */,\n/* 78 */,\n/* 79 */,\n/* 80 */,\n/* 81 */,\n/* 82 */,\n/* 83 */\n/* unknown exports provided */\n/* exports used: default */\n/*!******************************************************!*\\\n !*** ./client/components/Elements/Status/Status.vue ***!\n \\******************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/* styles */\n__webpack_require__(/*! !../../../../~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../../../~/vue-loader/lib/style-compiler/index?{\"id\":\"data-v-b2ae9c58\",\"scoped\":false,\"hasInlineConfig\":false}!../../../../~/vue-loader/lib/selector?type=styles&index=0!./Status.vue */ 180)\n\nvar Component = __webpack_require__(/*! ../../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../../~/vue-loader/lib/selector?type=script&index=0!./Status.vue */ 126),\n /* template */\n __webpack_require__(/*! !../../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-b2ae9c58\"}!../../../../~/vue-loader/lib/selector?type=template&index=0!./Status.vue */ 234),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 84 */\n/* unknown exports provided */\n/* exports used: default */\n/*!*************************************************!*\\\n !*** ./client/components/FormSettings/Form.vue ***!\n \\*************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./Form.vue */ 127),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-d44e4582\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./Form.vue */ 235),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 85 */\n/* exports provided: default */\n/* exports used: default */\n/*!*******************************!*\\\n !*** ./client/store/index.js ***!\n \\*******************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(/*! vue */ 43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(/*! vuex */ 5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_wpConfig__ = __webpack_require__(/*! ./util/wpConfig */ 29);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__mutations__ = __webpack_require__(/*! ./mutations */ 118);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__actions__ = __webpack_require__(/*! ./actions */ 116);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__getters__ = __webpack_require__(/*! ./getters */ 117);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__plugins__ = __webpack_require__(/*! ./plugins */ 119);\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].use(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"e\" /* default */]);\n\n\n\nvar STATE = {\n\tloading: false,\n\tconnected: false,\n\tforms: [],\n\tsettings: {\n\t\tenhancedDelivery: false,\n\t\tgeneratePDFs: false,\n\t\tlogLevel: 250\n\t},\n\tlayouts: [{ name: '' }],\n\taccount: {\n\t\tplan: String,\n\t\tid: Number,\n\t\tapiKeys: {\n\t\t\tpublic: String,\n\t\t\tsecret: String,\n\t\t\ttoken: String\n\t\t}\n\t},\n\tstrings: __WEBPACK_IMPORTED_MODULE_2__util_wpConfig__[\"a\" /* default */].strings,\n\tmainAlert: {\n\t\tsuccess: false,\n\t\tmessage: '',\n\t\tshow: false\n\t},\n\tlogLevels: __WEBPACK_IMPORTED_MODULE_2__util_wpConfig__[\"a\" /* default */].logLevels\n};\n\n\n\n\n\n\n\n\n\nvar PLUGINS = [__WEBPACK_IMPORTED_MODULE_6__plugins__[\"a\" /* accountSaver */], __WEBPACK_IMPORTED_MODULE_6__plugins__[\"b\" /* formSaver */]];\n\nvar store = new __WEBPACK_IMPORTED_MODULE_1_vuex__[\"e\" /* default */].Store({\n\tstrict: false,\n\tplugins: PLUGINS,\n\tmodules: {},\n\tstate: STATE,\n\tgetters: __WEBPACK_IMPORTED_MODULE_5__getters__[\"a\" /* GETTERS */],\n\tmutations: __WEBPACK_IMPORTED_MODULE_3__mutations__[\"a\" /* MUTATIONS */],\n\tactions: __WEBPACK_IMPORTED_MODULE_4__actions__[\"a\" /* ACTIONS */]\n});\n\n/* harmony default export */ __webpack_exports__[\"a\"] = store;\n\n/***/ }),\n/* 86 */\n/* unknown exports provided */\n/* exports used: default */\n/*!***********************************!*\\\n !*** ./client/views/Settings.vue ***!\n \\***********************************/\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/* styles */\n__webpack_require__(/*! !../../~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../~/vue-loader/lib/style-compiler/index?{\"id\":\"data-v-16fab070\",\"scoped\":false,\"hasInlineConfig\":false}!../../~/vue-loader/lib/selector?type=styles&index=0!./Settings.vue */ 178)\n\nvar Component = __webpack_require__(/*! ../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../~/vue-loader/lib/selector?type=script&index=0!./Settings.vue */ 132),\n /* template */\n __webpack_require__(/*! !../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-16fab070\"}!../../~/vue-loader/lib/selector?type=template&index=0!./Settings.vue */ 227),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 87 */\n/* unknown exports provided */\n/* exports used: default */\n/*!******************************!*\\\n !*** ./client/views/Tab.vue ***!\n \\******************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../~/vue-loader/lib/selector?type=script&index=0!./Tab.vue */ 133),\n /* template */\n __webpack_require__(/*! !../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-0b88b150\"}!../../~/vue-loader/lib/selector?type=template&index=0!./Tab.vue */ 225),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 88 */,\n/* 89 */,\n/* 90 */,\n/* 91 */,\n/* 92 */,\n/* 93 */,\n/* 94 */,\n/* 95 */,\n/* 96 */,\n/* 97 */,\n/* 98 */,\n/* 99 */,\n/* 100 */,\n/* 101 */,\n/* 102 */,\n/* 103 */,\n/* 104 */,\n/* 105 */,\n/* 106 */,\n/* 107 */,\n/* 108 */,\n/* 109 */,\n/* 110 */,\n/* 111 */,\n/* 112 */,\n/* 113 */,\n/* 114 */,\n/* 115 */\n/* exports provided: default */\n/* exports used: default */\n/*!**********************************************!*\\\n !*** ./client/components/Account/display.js ***!\n \\**********************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_css__ = __webpack_require__(/*! ./style.css */ 177);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_css__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(/*! vuex */ 5);\n\n\n\n/* harmony default export */ __webpack_exports__[\"a\"] = {\n render: function render(h) {\n return h(\n 'div',\n {\n attrs: { id: 'cf-pro-account' }\n },\n [h(\n 'ul',\n null,\n [h(\n 'li',\n null,\n ['Public Key ', this.publicKey]\n ), h(\n 'li',\n null,\n ['Secret Key ', this.secretKey]\n ), h(\n 'li',\n null,\n ['Token ', this.token]\n )]\n )]\n );\n },\n\n computed: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapState */])({\n token: function token(state) {\n return state.account.apiKeys.token;\n },\n publicKey: function publicKey(state) {\n return state.account.apiKeys.public;\n },\n secretKey: function secretKey(state) {\n return state.account.apiKeys.secret;\n }\n })\n\n};\n\n/***/ }),\n/* 116 */\n/* exports provided: ACTIONS */\n/* exports used: ACTIONS */\n/*!*********************************!*\\\n !*** ./client/store/actions.js ***!\n \\*********************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_API__ = __webpack_require__(/*! ./util/API */ 120);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__util_urlString__ = __webpack_require__(/*! ./util/urlString */ 121);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__util_wpConfig__ = __webpack_require__(/*! ./util/wpConfig */ 29);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return ACTIONS; });\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\n\n\n\n\nvar ACTIONS = {\n\tgetAccount: function getAccount(context) {\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\t__WEBPACK_IMPORTED_MODULE_0__util_API__[\"a\" /* localAPI */].get().then(function (response) {\n\t\t\t\tvar r;\n\t\t\t\tif ('string' == typeof response.data) {\n\t\t\t\t\tvar maybe = JSON.parse(response.data);\n\t\t\t\t\tif ('object' === (typeof maybe === 'undefined' ? 'undefined' : _typeof(maybe))) {\n\t\t\t\t\t\tr = maybe;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tr = response.data;\n\t\t\t\t}\n\t\t\t\tcontext.commit('forms', r.forms);\n\t\t\t\tcontext.commit('apiKeys', r.apiKeys);\n\t\t\t\tcontext.commit('accountId', r.account_id);\n\t\t\t\tcontext.commit('plan', r.plan);\n\t\t\t\tcontext.commit('logLevel', r.logLevel);\n\t\t\t\tcontext.commit('enhancedDelivery', r.enhancedDelivery);\n\t\t\t\tcontext.commit('formScreen', r.hasOwnProperty('formScreen') ? r.formScreen : __WEBPACK_IMPORTED_MODULE_2__util_wpConfig__[\"a\" /* default */].formScreen);\n\t\t\t\tresolve(response);\n\t\t\t}, function (error) {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t});\n\t},\n\tsaveAccount: function saveAccount(context) {\n\t\tvar key = context.state.account.apiKeys.public;\n\t\tif (key && 'string' === typeof key) {\n\t\t\tkey = key.trim();\n\t\t}\n\t\tvar secret = context.state.account.apiKeys.secret;\n\t\tif (secret && 'string' === typeof secret) {\n\t\t\tsecret = secret.trim();\n\t\t}\n\n\t\treturn __WEBPACK_IMPORTED_MODULE_0__util_API__[\"a\" /* localAPI */].post('', {\n\t\t\taccountId: context.state.account.id,\n\t\t\tapiKey: key,\n\t\t\tapiSecret: secret,\n\t\t\tenhancedDelivery: context.state.settings.enhancedDelivery,\n\t\t\tplan: context.state.account.plan,\n\t\t\tforms: context.state.forms,\n\t\t\tlogLevel: context.state.settings.logLevel\n\t\t}).then(function (r) {\n\t\t\tif (r.data.hasOwnProperty('_cfAlertMessage')) {\n\t\t\t\tcontext.dispatch('updateMainAlert', _cfAlertMessage);\n\t\t\t} else {\n\t\t\t\tcontext.dispatch('updateMainAlert', {\n\t\t\t\t\tmessage: context.state.strings.saved,\n\t\t\t\t\tshow: true,\n\t\t\t\t\tsuccess: true,\n\t\t\t\t\tfade: 1500\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t},\n\ttestConnection: function testConnection(_ref) {\n\t\tvar commit = _ref.commit,\n\t\t state = _ref.state;\n\n\t\treturn new Promise(function (resolve, reject) {\n\t\t\tif (state.account.apiKeys.public && state.account.apiKeys.secret) {\n\t\t\t\treturn __WEBPACK_IMPORTED_MODULE_0__util_API__[\"b\" /* appAPI */].get(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_urlString__[\"a\" /* urlString */])({\n\t\t\t\t\tpublic: state.account.apiKeys.public,\n\t\t\t\t\ttoken: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__util_API__[\"c\" /* appToken */])(state.account.apiKeys)\n\t\t\t\t}, '/account/verify')).then(function (r) {\n\t\t\t\t\tstate.account.plan = r.plan;\n\t\t\t\t\tstate.account.id = r.id;\n\t\t\t\t\tstate.connected = true;\n\t\t\t\t\tcommit('connected', true);\n\t\t\t\t\tresolve(r);\n\t\t\t\t}, function (error) {\n\t\t\t\t\treject(error);\n\t\t\t\t});\n\t\t\t} else {\n\t\t\t\treject('Not Connected');\n\t\t\t}\n\t\t});\n\t},\n\tgetLayouts: function getLayouts(_ref2) {\n\t\tvar commit = _ref2.commit,\n\t\t state = _ref2.state;\n\n\t\tif (state.connected) {\n\t\t\treturn __WEBPACK_IMPORTED_MODULE_0__util_API__[\"b\" /* appAPI */].get(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1__util_urlString__[\"a\" /* urlString */])({\n\t\t\t\tsimple: true,\n\t\t\t\tpublic: state.account.apiKeys.public,\n\t\t\t\ttoken: state.account.apiKeys.token\n\t\t\t}, '/layouts/list')).then(function (r) {\n\t\t\t\tcommit('layouts', r.data);\n\t\t\t}, function (e) {\n\t\t\t\tconsole.log(e);\n\t\t\t});\n\t\t}\n\t},\n\n\t/**\n * Set the main alert -- status.\n *\n * Using this over mutation mainAlert, which this uses, is you can send a number of milliseconds in alert.fade and it will removed in that number of milliseconds\n *\n * @since 1.0.0\n *\n * @param {*} context\n * @param {Object} alert Commit payload\n */\n\tupdateMainAlert: function updateMainAlert(context, alert) {\n\t\tvar fade = alert.hasOwnProperty('fade') && !isNaN(alert.fade) ? alert.fade : 0;\n\t\tif (fade) {\n\t\t\t//OMG(s) window scope.\n\t\t\twindow.setTimeout(function () {\n\t\t\t\tcontext.dispatch('closeMainAlert');\n\t\t\t}, fade);\n\t\t}\n\t\tcontext.commit('mainAlert', alert);\n\t},\n\n\t/**\n * Make mainAlert clode\n *\n * @since 1.0.0\n *\n * @param context\n */\n\tcloseMainAlert: function closeMainAlert(context) {\n\t\tcontext.dispatch('updateMainAlert', {\n\t\t\tshow: false\n\t\t});\n\t}\n};\n\n/***/ }),\n/* 117 */\n/* exports provided: GETTERS */\n/* exports used: GETTERS */\n/*!*********************************!*\\\n !*** ./client/store/getters.js ***!\n \\*********************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__util_utils__ = __webpack_require__(/*! ./util/utils */ 28);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return GETTERS; });\n\n\nvar GETTERS = {\n\tpublicKey: function publicKey(state) {\n\t\treturn state.account.apiKeys.public;\n\t},\n\tsecretKey: function secretKey(state) {\n\t\treturn state.account.apiKeys.secret;\n\t},\n\tapiKeys: function apiKeys(state) {\n\t\treturn state.account.apiKeys;\n\t},\n\thi: function hi(state) {\n\t\treturn 'Roy';\n\t},\n\tgetSetting: function getSetting(state) {\n\t\treturn function (setting, _default) {\n\t\t\tif (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__util_utils__[\"a\" /* objHasProp */])(state.settings, setting)) {\n\t\t\t\treturn state.settings[setting];\n\t\t\t}\n\t\t\treturn _default;\n\t\t};\n\t},\n\tgetFormsById: function getFormsById(state, getters) {\n\t\treturn function (id) {\n\t\t\treturn state.forms.find(function (form) {\n\t\t\t\treturn form.form_id === id;\n\t\t\t});\n\t\t};\n\t},\n\n\tenhancedDelivery: function enhancedDelivery(state) {\n\t\treturn state.settings.enhancedDelivery;\n\t},\n\tlogLevels: function logLevels(state) {\n\t\treturn state.logLevels;\n\t},\n\tlogLevel: function logLevel(state) {\n\t\treturn state.settings.logLevel;\n\t},\n\tconnected: function connected(state) {\n\t\treturn state.connected;\n\t},\n\tformScreen: function formScreen(state) {\n\t\treturn state.formScreen;\n\t},\n\tstrings: function strings(state) {\n\t\treturn state.strings;\n\t},\n\tmainAlert: function mainAlert(state) {\n\t\treturn state.mainAlert;\n\t}\n};\n\n/***/ }),\n/* 118 */\n/* exports provided: MUTATIONS */\n/* exports used: MUTATIONS */\n/*!***********************************!*\\\n !*** ./client/store/mutations.js ***!\n \\***********************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isboolean__ = __webpack_require__(/*! lodash.isboolean */ 192);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isboolean___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isboolean__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return MUTATIONS; });\n\nvar MUTATIONS = {\n\tpublicKey: function publicKey(state, value) {\n\t\tstate.account.apiKeys.public = value;\n\t},\n\tsecretKey: function secretKey(state, value) {\n\t\tstate.account.apiKeys.secret = value;\n\t},\n\tapiKeys: function apiKeys(state, obj) {\n\t\tstate.account.apiKeys.public = obj.public;\n\t\tstate.account.apiKeys.secret = obj.secret;\n\t\tstate.account.apiKeys.token = obj.token;\n\t},\n\taccountId: function accountId(state, value) {\n\t\tstate.account.id = value;\n\t},\n\tplan: function plan(state, value) {\n\t\tstate.account.plan = value;\n\t},\n\tloading: function loading(state) {\n\t\tstate.loading = !state.loading;\n\t},\n\tforms: function forms(state, value) {\n\t\tstate.forms = value;\n\t},\n\tlogLevels: function logLevels(state, value) {\n\t\tstate.logLevels = value;\n\t},\n\tconnected: function connected(state, value) {\n\t\tstate.connected = value;\n\t},\n\tlayouts: function layouts(state, value) {\n\t\tstate.layouts = value;\n\t},\n\tform: function form(state, value) {\n\t\tvar index = state.forms.findIndex(function (form) {\n\t\t\treturn form.form_id === value.form_id;\n\t\t});\n\t\tif (-1 < index) {\n\t\t\tstate.forms[index] = value;\n\t\t}\n\t},\n\tlogLevel: function logLevel(state, value) {\n\t\tstate.settings.logLevel = value;\n\t},\n\tenhancedDelivery: function enhancedDelivery(state, value) {\n\t\tif ('on' == value) {\n\t\t\tvalue = true;\n\t\t}\n\t\tstate.settings.enhancedDelivery = value;\n\t},\n\tformScreen: function formScreen(state, value) {\n\t\tstate.formScreen = value;\n\t},\n\n\t/**\n * Change the main alert\n *\n * @since 1.0.0\n *\n * @param {Object} state\n * @param {Object} value Value to set. success - boolean. show -- boolean. message -- string\n */\n\tmainAlert: function mainAlert(state, value) {\n\t\tstate.mainAlert = {\n\t\t\tsuccess: value.hasOwnProperty('success') ? value.success : false,\n\t\t\tmessage: value.hasOwnProperty('message') ? value.message : '',\n\t\t\tshow: value.hasOwnProperty('show') ? value.show : false\n\t\t};\n\t\t//Notice, this doesn't except fade, fade isn't tracked. You want to set a fade time? Use updateMainAlert action!\n\t}\n};\n\n/***/ }),\n/* 119 */\n/* exports provided: accountSaver, formSaver */\n/* exports used: accountSaver, formSaver */\n/*!*********************************!*\\\n !*** ./client/store/plugins.js ***!\n \\*********************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce__ = __webpack_require__(/*! lodash.debounce */ 67);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_debounce__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return accountSaver; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return formSaver; });\nvar _this = this;\n\n\nvar accountSaver = function accountSaver(store) {\n\tstore.subscribe(function (mutation, state) {\n\t\tvar type = mutation.type;\n\t\tswitch (type) {\n\t\t\tcase 'apiKeys':\n\t\t\tcase 'secretKey':\n\t\t\tcase 'publicKey':\n\t\t\t\tconsole.log(state.connected, state.account.apiKeys.secret, state.account.apiKeys.public);\n\n\t\t\t\tif (!state.connected && state.account.apiKeys.secret && state.account.apiKeys.public) {\n\t\t\t\t\tconsole.log(state.connected, state.account.apiKeys.secret, state.account.apiKeys.public);\n\n\t\t\t\t\tstore.dispatch('testConnection');\n\t\t\t\t\tstore.dispatch('getLayouts');\n\t\t\t\t} else if (!state.account.apiKeys.public || !state.account.apiKeys.secret) {\n\t\t\t\t\tstore.commit('connected', 0);\n\t\t\t\t} else {\n\t\t\t\t\tstore.commit('connected', 0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'connected':\n\t\t\t\tif (state.connected) {\n\t\t\t\t\tstore.dispatch('getLayouts');\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t});\n};\n\n/**\n * Plugin to save account when form settings are changed\n *\n * @since 1.0.0\n *\n * @param {Object} store\n */\nvar formSaver = function formSaver(store) {\n\t/**\n * Debounced version of saveAccount() mutation\n * @since 1.0.0\n *\n * @type {Function}\n */\n\t_this.debounedFormMutation = __WEBPACK_IMPORTED_MODULE_0_lodash_debounce___default()(function () {\n\t\tstore.dispatch('saveAccount');\n\t}, 100);\n\n\t/**\n * When form setting is mutated trigger update\n *\n * @since 1.0.0\n */\n\tstore.subscribe(function (mutation, state) {\n\t\tif ('form' === mutation.type) {\n\t\t\t_this.debounedFormMutation();\n\t\t}\n\t});\n};\n\n/***/ }),\n/* 120 */\n/* exports provided: localAPI, appAPI, appToken */\n/* exports used: localAPI, appAPI, appToken */\n/*!**********************************!*\\\n !*** ./client/store/util/API.js ***!\n \\**********************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(/*! axios */ 97);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__wpConfig__ = __webpack_require__(/*! ./wpConfig */ 29);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1__ = __webpack_require__(/*! locutus/php/strings/sha1 */ 191);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__utils__ = __webpack_require__(/*! ./utils */ 28);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return localAPI; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"b\", function() { return appAPI; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"c\", function() { return appToken; });\n\n\n\n\n\nvar timeout = 30000;\nvar localAPI = __WEBPACK_IMPORTED_MODULE_0_axios___default.a.create({\n\tbaseURL: __WEBPACK_IMPORTED_MODULE_1__wpConfig__[\"a\" /* default */].localApiURL,\n\ttimeout: timeout,\n\theaders: { 'X-WP-Nonce': __WEBPACK_IMPORTED_MODULE_1__wpConfig__[\"a\" /* default */].localApiNonce }\n});\n\nvar appAPI = __WEBPACK_IMPORTED_MODULE_0_axios___default.a.create({\n\tbaseURL: __WEBPACK_IMPORTED_MODULE_1__wpConfig__[\"a\" /* default */].appURL,\n\ttimeout: timeout\n});\n\nvar appToken = function appToken(apiKeys) {\n\tif (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils__[\"a\" /* objHasProp */])(apiKeys, 'public') && __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__utils__[\"a\" /* objHasProp */])(apiKeys, 'secret')) {\n\t\tvar publicKey = apiKeys.public;\n\t\tvar secret = apiKeys.secret;\n\t\treturn __WEBPACK_IMPORTED_MODULE_2_locutus_php_strings_sha1___default()(publicKey + secret);\n\t}\n\treturn '';\n};\n\n/***/ }),\n/* 121 */\n/* exports provided: urlString */\n/* exports used: urlString */\n/*!****************************************!*\\\n !*** ./client/store/util/urlString.js ***!\n \\****************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"a\", function() { return urlString; });\nvar urlString = function urlString(data, endpoint) {\n\tvar str = \"\";\n\tfor (var key in data) {\n\t\tif (str != \"\") {\n\t\t\tstr += \"&\";\n\t\t}\n\t\tstr += key + \"=\" + data[key];\n\t}\n\treturn endpoint + '?' + str;\n};\n\n/***/ }),\n/* 122 */\n/* exports provided: default */\n/* all exports used */\n/*!********************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Account/Edit.vue ***!\n \\********************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\n\tcomputed: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"c\" /* mapGetters */])(['publicKey', 'secretKey', 'connected'])),\n\tmethods: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"d\" /* mapMutations */])(['publicKey', 'secretKey']), {\n\t\tpublicKeyChange: function publicKeyChange(ev) {\n\t\t\tthis.$store.commit('publicKey', ev.target.value);\n\t\t},\n\t\tsecretKeyChange: function secretKeyChange(ev) {\n\t\t\tthis.$store.commit('secretKey', ev.target.value);\n\t\t}\n\t})\n};\n\n/***/ }),\n/* 123 */\n/* exports provided: default */\n/* all exports used */\n/*!*******************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Elements/Field/Checkbox.vue ***!\n \\*******************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue__ = __webpack_require__(/*! ../Parts/Label/Label.vue */ 219);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue__ = __webpack_require__(/*! ../Parts/Input/Input.vue */ 218);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tcomponents: {\n\t\t_label: __WEBPACK_IMPORTED_MODULE_0__Parts_Label_Label_vue___default.a,\n\t\t_input: __WEBPACK_IMPORTED_MODULE_1__Parts_Input_Input_vue___default.a\n\t},\n\tprops: {\n\t\tidAttr: {\n\t\t\ttype: String,\n\t\t\trequire: true\n\t\t},\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tsetting: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tlabel: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t}\n\t}\n\n};\n\n/***/ }),\n/* 124 */\n/* exports provided: default */\n/* all exports used */\n/*!**********************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Elements/Parts/Input/Input.vue ***!\n \\**********************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tprops: {\n\t\tidAttr: {\n\t\t\ttype: String,\n\t\t\trequire: true\n\t\t},\n\t\tvalue: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\tsetting: {\n\t\t\ttype: String,\n\t\t\trequired: true\n\t\t},\n\t\ttype: {\n\t\t\ttype: String,\n\t\t\tdefault: 'text'\n\t\t}\n\t},\n\tmethods: {\n\t\thandle: function handle() {\n\t\t\tthis.$store.commit(this.setting, this.value);\n\t\t}\n\t}\n\n};\n\n/***/ }),\n/* 125 */\n/* exports provided: default */\n/* all exports used */\n/*!**********************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Elements/Parts/Label/Label.vue ***!\n \\**********************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tidAttr: {\n\t\ttype: String,\n\t\trequire: true\n\t},\n\tlabel: {\n\t\ttype: String,\n\t\trequired: true\n\t}\n};\n\n/***/ }),\n/* 126 */\n/* exports provided: default */\n/* all exports used */\n/*!******************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Elements/Status/Status.vue ***!\n \\******************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tprops: ['success', 'message', 'show'],\n\twatch: {\n\t\tshow: function show() {\n\t\t\tif (this.show) {\n\t\t\t\tthis.$el.className = \"cf-alert-wrap cf-show\";\n\t\t\t} else {\n\t\t\t\tthis.$el.className = \"cf-alert-wrap cf-hide\";\n\t\t\t}\n\t\t}\n\t}\n\n};\n\n/***/ }),\n/* 127 */\n/* exports provided: default */\n/* all exports used */\n/*!*************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/FormSettings/Form.vue ***!\n \\*************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox__ = __webpack_require__(/*! ../Elements/Field/Checkbox */ 217);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__store_util_utils__ = __webpack_require__(/*! ../../store/util/utils */ 28);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tcomponents: {\n\t\tcheckbox: __WEBPACK_IMPORTED_MODULE_1__Elements_Field_Checkbox___default.a\n\t},\n\tprops: ['form', 'layouts'],\n\tcomputed: {\n\t\tlayoutIdAttr: function layoutIdAttr() {\n\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t},\n\t\tpdfLayoutIdAttr: function pdfLayoutIdAttr() {\n\t\t\treturn 'cf-pro-layout-pdf-' + this.form.form_id;\n\t\t},\n\t\tattachPDFIdAttr: function attachPDFIdAttr() {\n\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t},\n\t\tlinkPDFIdAttr: function linkPDFIdAttr() {\n\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t},\n\t\tsendLocalIdAttr: function sendLocalIdAttr() {\n\t\t\treturn 'cf-pro-send-local-' + this.form.form_id;\n\t\t}\n\t},\n\tmethods: {\n\t\tcommitChange: function commitChange(what, value) {\n\t\t\tthis.form[what] = value;\n\t\t\tthis.$store.commit('form', this.form);\n\t\t},\n\t\tchangeLayout: function changeLayout(ev) {\n\t\t\tthis.commitChange(ev.target.value, 'layout');\n\t\t},\n\t\tchangePDFLayout: function changePDFLayout(ev) {\n\t\t\tthis.commitChange(ev.target.value, 'pdf_layout');\n\t\t},\n\t\tchangeAttachPDF: function changeAttachPDF(ev) {\n\t\t\tthis.commitChange(ev.target.value, 'attach_pdf');\n\t\t},\n\t\tchangeLinkPDF: function changeLinkPDF(ev) {\n\t\t\tthis.commitChange(ev.target.value, 'pdf_link');\n\t\t},\n\t\tchangeSendLocal: function changeSendLocal(ev) {\n\t\t\tthis.commitChange(ev.target.value, 'send_local');\n\t\t}\n\t}\n\n};\n\n/***/ }),\n/* 128 */\n/* exports provided: default */\n/* all exports used */\n/*!**************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/FormSettings/Forms.vue ***!\n \\**************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Form__ = __webpack_require__(/*! ./Form */ 84);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Form___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__Form__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_vuex__ = __webpack_require__(/*! vuex */ 5);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tcomponents: {\n\t\t'form-setting': __WEBPACK_IMPORTED_MODULE_0__Form___default.a\n\t},\n\tcomputed: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"b\" /* mapState */])({\n\t\tforms: function forms(state) {\n\t\t\treturn state.forms;\n\t\t},\n\t\tlayouts: function layouts(state) {\n\t\t\treturn state.layouts;\n\t\t}\n\t}),\n\tmethods: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_vuex__[\"a\" /* mapActions */])(['getLayouts'])),\n\tbeforeMount: function beforeMount() {\n\t\tthis.getLayouts();\n\t},\n\tdata: function data() {\n\t\treturn {\n\t\t\teditForm: 0,\n\t\t\tform: {}\n\t\t};\n\t},\n\n\twatch: {\n\t\teditForm: function editForm(v) {\n\t\t\tthis.form = this.$store.getters.getFormsById(v);\n\t\t}\n\t}\n\n};\n\n/***/ }),\n/* 129 */\n/* exports provided: default */\n/* all exports used */\n/*!****************************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/GeneralSettings/enhancedDelivery.vue ***!\n \\****************************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n computed: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"c\" /* mapGetters */])(['enhancedDelivery']), {\n deliveryValue: {\n get: function get() {\n return this.enhancedDelivery;\n },\n set: function set(value) {\n this.$store.commit('enhancedDelivery', value);\n }\n }\n })\n};\n\n/***/ }),\n/* 130 */\n/* exports provided: default */\n/* all exports used */\n/*!********************************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/GeneralSettings/logLevel.vue ***!\n \\********************************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n computed: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"c\" /* mapGetters */])(['logLevels', 'logLevel', 'strings']), {\n logLevelValue: {\n get: function get() {\n return this.logLevel;\n },\n set: function set(value) {\n this.$store.commit('logLevel', value);\n }\n }\n })\n};\n\n/***/ }),\n/* 131 */\n/* exports provided: default */\n/* all exports used */\n/*!*********************************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/components/Link/linkKeys.vue ***!\n \\*********************************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n//\n//\n//\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\n computed: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"c\" /* mapGetters */])(['strings']))\n\n};\n\n/***/ }),\n/* 132 */\n/* exports provided: default */\n/* all exports used */\n/*!***********************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/views/Settings.vue ***!\n \\***********************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__components_Account_display__ = __webpack_require__(/*! ../components/Account/display */ 115);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Account_Edit__ = __webpack_require__(/*! ../components/Account/Edit */ 216);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Account_Edit___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_Account_Edit__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms__ = __webpack_require__(/*! ../components/FormSettings/Forms */ 220);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery__ = __webpack_require__(/*! ../components/GeneralSettings/enhancedDelivery */ 221);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel__ = __webpack_require__(/*! ../components/GeneralSettings/logLevel */ 222);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue__ = __webpack_require__(/*! ../components/Elements/Status/Status.vue */ 83);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tcomponents: {\n\t\t'account-display': __WEBPACK_IMPORTED_MODULE_1__components_Account_display__[\"a\" /* default */],\n\t\t'account-edit': __WEBPACK_IMPORTED_MODULE_2__components_Account_Edit___default.a,\n\t\t'forms-settings': __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Forms___default.a,\n\t\t'delivery': __WEBPACK_IMPORTED_MODULE_4__components_GeneralSettings_enhancedDelivery___default.a,\n\t\t'logs': __WEBPACK_IMPORTED_MODULE_5__components_GeneralSettings_logLevel___default.a,\n\t\t'status': __WEBPACK_IMPORTED_MODULE_6__components_Elements_Status_Status_vue___default.a\n\t},\n\tcomputed: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"b\" /* mapState */])({\n\t\tloading: function loading(state) {\n\t\t\treturn state.loading;\n\t\t},\n\t\tconnected: function connected(state) {\n\t\t\treturn state.connected;\n\t\t},\n\t\tpublicKey: function publicKey(state) {\n\t\t\treturn state.account.apiKeys.public;\n\t\t},\n\t\tenhancedDelivery: function enhancedDelivery(state) {\n\t\t\treturn state.settings.enhancedDelivery;\n\t\t},\n\t\tlogLevel: function logLevel(state) {\n\t\t\treturn state.settings.logLevel;\n\t\t},\n\t\tmainAlert: function mainAlert(state) {\n\t\t\treturn state.mainAlert;\n\t\t}\n\t}),\n\tbeforeMount: function beforeMount() {\n\t\t[].forEach.call(document.querySelectorAll('.update-nag'), function (e) {\n\t\t\te.parentNode.removeChild(e);\n\t\t});\n\n\t\tthis.$store.dispatch('getAccount');\n\t},\n\n\tmethods: {\n\t\tsave: function save() {\n\t\t\tthis.$store.dispatch('saveAccount');\n\t\t}\n\t}\n};\n\n/***/ }),\n/* 133 */\n/* exports provided: default */\n/* all exports used */\n/*!******************************************************************************************************!*\\\n !*** ./~/babel-loader/lib!./~/vue-loader/lib/selector.js?type=script&index=0!./client/views/Tab.vue ***!\n \\******************************************************************************************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vuex__ = __webpack_require__(/*! vuex */ 5);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_debounce__ = __webpack_require__(/*! lodash.debounce */ 67);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_debounce___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_debounce__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status__ = __webpack_require__(/*! ../components/Elements/Status/Status */ 83);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue__ = __webpack_require__(/*! ../components/FormSettings/Form.vue */ 84);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue__ = __webpack_require__(/*! ../components/Link/linkKeys.vue */ 223);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue__);\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = {\n\tcomponents: {\n\t\t'form-setting': __WEBPACK_IMPORTED_MODULE_3__components_FormSettings_Form_vue___default.a,\n\t\t'link-keys': __WEBPACK_IMPORTED_MODULE_4__components_Link_linkKeys_vue___default.a,\n\t\t'status': __WEBPACK_IMPORTED_MODULE_2__components_Elements_Status_Status___default.a\n\t},\n\tmethods: Object.assign({}, __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"a\" /* mapActions */])(['getLayouts', 'getAccount', 'saveAccount'])),\n\tbeforeMount: function beforeMount() {\n\t\tvar _this = this;\n\n\t\tthis.getAccount().then(function () {\n\t\t\t_this.getLayouts();\n\t\t\t_this.form = _this.$store.getters.getFormsById(_this.formScreen);\n\t\t});\n\t},\n\n\tcomputed: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_vuex__[\"b\" /* mapState */])({\n\t\tlayouts: function layouts(state) {\n\t\t\treturn state.layouts;\n\t\t},\n\t\tconnected: function connected(state) {\n\t\t\treturn state.connected;\n\t\t},\n\t\tformScreen: function formScreen(state) {\n\t\t\treturn state.formScreen;\n\t\t},\n\t\tmainAlert: function mainAlert(state) {\n\t\t\treturn state.mainAlert;\n\t\t}\n\t}),\n\tdata: function data() {\n\t\treturn {\n\t\t\tform: {}\n\t\t};\n\t}\n};\n\n/***/ }),\n/* 134 */,\n/* 135 */,\n/* 136 */,\n/* 137 */,\n/* 138 */,\n/* 139 */,\n/* 140 */,\n/* 141 */,\n/* 142 */,\n/* 143 */,\n/* 144 */,\n/* 145 */,\n/* 146 */,\n/* 147 */,\n/* 148 */,\n/* 149 */,\n/* 150 */,\n/* 151 */,\n/* 152 */,\n/* 153 */,\n/* 154 */,\n/* 155 */,\n/* 156 */,\n/* 157 */,\n/* 158 */,\n/* 159 */,\n/* 160 */,\n/* 161 */,\n/* 162 */\n/* unknown exports provided */\n/* all exports used */\n/*!******************************************!*\\\n !*** ./~/diffie-hellman/lib/primes.json ***!\n \\******************************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"modp1\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff\"},\"modp2\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff\"},\"modp5\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff\"},\"modp14\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff\"},\"modp15\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff\"},\"modp16\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff\"},\"modp17\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff\"},\"modp18\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff\"}}\n\n/***/ }),\n/* 163 */,\n/* 164 */,\n/* 165 */,\n/* 166 */,\n/* 167 */,\n/* 168 */,\n/* 169 */,\n/* 170 */,\n/* 171 */,\n/* 172 */,\n/* 173 */,\n/* 174 */,\n/* 175 */,\n/* 176 */\n/* unknown exports provided */\n/* all exports used */\n/*!*********************************!*\\\n !*** ./~/elliptic/package.json ***!\n \\*********************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"_args\":[[\"elliptic@6.4.0\",\"/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client\"]],\"_development\":true,\"_from\":\"elliptic@6.4.0\",\"_id\":\"elliptic@6.4.0\",\"_inBundle\":false,\"_integrity\":\"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=\",\"_location\":\"/elliptic\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"elliptic@6.4.0\",\"name\":\"elliptic\",\"escapedName\":\"elliptic\",\"rawSpec\":\"6.4.0\",\"saveSpec\":null,\"fetchSpec\":\"6.4.0\"},\"_requiredBy\":[\"/browserify-sign\",\"/create-ecdh\"],\"_resolved\":\"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz\",\"_spec\":\"6.4.0\",\"_where\":\"/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client\",\"author\":{\"name\":\"Fedor Indutny\",\"email\":\"fedor@indutny.com\"},\"bugs\":{\"url\":\"https://github.com/indutny/elliptic/issues\"},\"dependencies\":{\"bn.js\":\"^4.4.0\",\"brorand\":\"^1.0.1\",\"hash.js\":\"^1.0.0\",\"hmac-drbg\":\"^1.0.0\",\"inherits\":\"^2.0.1\",\"minimalistic-assert\":\"^1.0.0\",\"minimalistic-crypto-utils\":\"^1.0.0\"},\"description\":\"EC cryptography\",\"devDependencies\":{\"brfs\":\"^1.4.3\",\"coveralls\":\"^2.11.3\",\"grunt\":\"^0.4.5\",\"grunt-browserify\":\"^5.0.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-connect\":\"^1.0.0\",\"grunt-contrib-copy\":\"^1.0.0\",\"grunt-contrib-uglify\":\"^1.0.1\",\"grunt-mocha-istanbul\":\"^3.0.1\",\"grunt-saucelabs\":\"^8.6.2\",\"istanbul\":\"^0.4.2\",\"jscs\":\"^2.9.0\",\"jshint\":\"^2.6.0\",\"mocha\":\"^2.1.0\"},\"files\":[\"lib\"],\"homepage\":\"https://github.com/indutny/elliptic\",\"keywords\":[\"EC\",\"Elliptic\",\"curve\",\"Cryptography\"],\"license\":\"MIT\",\"main\":\"lib/elliptic.js\",\"name\":\"elliptic\",\"repository\":{\"type\":\"git\",\"url\":\"git+ssh://git@github.com/indutny/elliptic.git\"},\"scripts\":{\"jscs\":\"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js\",\"jshint\":\"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js\",\"lint\":\"npm run jscs && npm run jshint\",\"test\":\"npm run lint && npm run unit\",\"unit\":\"istanbul test _mocha --reporter=spec test/index.js\",\"version\":\"grunt dist && git add dist/\"},\"version\":\"6.4.0\"}\n\n/***/ }),\n/* 177 */\n/* unknown exports provided */\n/*!*********************************************!*\\\n !*** ./client/components/Account/style.css ***!\n \\*********************************************/\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\nmodule.exports = {\"cf-pro-account-edit\":\"style__cf-pro-account-edit___6_kkC\"};\n\n/***/ }),\n/* 178 */\n/* unknown exports provided */\n/* all exports used */\n/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************!*\\\n !*** ./~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!./~/vue-style-loader!./~/css-loader?sourceMap&-autoprefixer!./~/vue-loader/lib/style-compiler?{\"id\":\"data-v-16fab070\",\"scoped\":false,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/views/Settings.vue ***!\n \\***********************************************************************************************************************************************************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 179 */\n/* unknown exports provided */\n/* all exports used */\n/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\\\n !*** ./~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!./~/vue-style-loader!./~/css-loader?sourceMap&-autoprefixer!./~/vue-loader/lib/style-compiler?{\"id\":\"data-v-a873166e\",\"scoped\":false,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/components/Account/Edit.vue ***!\n \\********************************************************************************************************************************************************************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 180 */\n/* unknown exports provided */\n/* all exports used */\n/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\\\n !*** ./~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!./~/vue-style-loader!./~/css-loader?sourceMap&-autoprefixer!./~/vue-loader/lib/style-compiler?{\"id\":\"data-v-b2ae9c58\",\"scoped\":false,\"hasInlineConfig\":false}!./~/vue-loader/lib/selector.js?type=styles&index=0!./client/components/Elements/Status/Status.vue ***!\n \\******************************************************************************************************************************************************************************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\n// removed by extract-text-webpack-plugin\n\n/***/ }),\n/* 181 */,\n/* 182 */,\n/* 183 */,\n/* 184 */,\n/* 185 */,\n/* 186 */,\n/* 187 */,\n/* 188 */,\n/* 189 */,\n/* 190 */,\n/* 191 */,\n/* 192 */,\n/* 193 */,\n/* 194 */\n/* unknown exports provided */\n/* all exports used */\n/*!*********************************!*\\\n !*** ./~/parse-asn1/aesid.json ***!\n \\*********************************/\n/***/ (function(module, exports) {\n\nmodule.exports = {\"2.16.840.1.101.3.4.1.1\":\"aes-128-ecb\",\"2.16.840.1.101.3.4.1.2\":\"aes-128-cbc\",\"2.16.840.1.101.3.4.1.3\":\"aes-128-ofb\",\"2.16.840.1.101.3.4.1.4\":\"aes-128-cfb\",\"2.16.840.1.101.3.4.1.21\":\"aes-192-ecb\",\"2.16.840.1.101.3.4.1.22\":\"aes-192-cbc\",\"2.16.840.1.101.3.4.1.23\":\"aes-192-ofb\",\"2.16.840.1.101.3.4.1.24\":\"aes-192-cfb\",\"2.16.840.1.101.3.4.1.41\":\"aes-256-ecb\",\"2.16.840.1.101.3.4.1.42\":\"aes-256-cbc\",\"2.16.840.1.101.3.4.1.43\":\"aes-256-ofb\",\"2.16.840.1.101.3.4.1.44\":\"aes-256-cfb\"}\n\n/***/ }),\n/* 195 */,\n/* 196 */,\n/* 197 */,\n/* 198 */,\n/* 199 */,\n/* 200 */,\n/* 201 */,\n/* 202 */,\n/* 203 */,\n/* 204 */,\n/* 205 */,\n/* 206 */,\n/* 207 */,\n/* 208 */,\n/* 209 */,\n/* 210 */,\n/* 211 */,\n/* 212 */,\n/* 213 */,\n/* 214 */,\n/* 215 */,\n/* 216 */\n/* unknown exports provided */\n/* exports used: default */\n/*!********************************************!*\\\n !*** ./client/components/Account/Edit.vue ***!\n \\********************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\n\n/* styles */\n__webpack_require__(/*! !../../../~/extract-text-webpack-plugin/loader.js?{\"omit\":1,\"remove\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../../~/vue-loader/lib/style-compiler/index?{\"id\":\"data-v-a873166e\",\"scoped\":false,\"hasInlineConfig\":false}!../../../~/vue-loader/lib/selector?type=styles&index=0!./Edit.vue */ 179)\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./Edit.vue */ 122),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-a873166e\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./Edit.vue */ 233),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 217 */\n/* unknown exports provided */\n/* exports used: default */\n/*!*******************************************************!*\\\n !*** ./client/components/Elements/Field/Checkbox.vue ***!\n \\*******************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../../~/vue-loader/lib/selector?type=script&index=0!./Checkbox.vue */ 123),\n /* template */\n __webpack_require__(/*! !../../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-2a9917a3\"}!../../../../~/vue-loader/lib/selector?type=template&index=0!./Checkbox.vue */ 230),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 218 */\n/* unknown exports provided */\n/* exports used: default */\n/*!**********************************************************!*\\\n !*** ./client/components/Elements/Parts/Input/Input.vue ***!\n \\**********************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../../../~/vue-loader/lib/selector?type=script&index=0!./Input.vue */ 124),\n /* template */\n __webpack_require__(/*! !../../../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-1106535b\"}!../../../../../~/vue-loader/lib/selector?type=template&index=0!./Input.vue */ 226),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 219 */\n/* unknown exports provided */\n/* exports used: default */\n/*!**********************************************************!*\\\n !*** ./client/components/Elements/Parts/Label/Label.vue ***!\n \\**********************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../../../~/vue-loader/lib/selector?type=script&index=0!./Label.vue */ 125),\n /* template */\n __webpack_require__(/*! !../../../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-2218dfa2\"}!../../../../../~/vue-loader/lib/selector?type=template&index=0!./Label.vue */ 228),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 220 */\n/* unknown exports provided */\n/* exports used: default */\n/*!**************************************************!*\\\n !*** ./client/components/FormSettings/Forms.vue ***!\n \\**************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./Forms.vue */ 128),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-28ee6bc4\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./Forms.vue */ 229),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 221 */\n/* unknown exports provided */\n/* exports used: default */\n/*!****************************************************************!*\\\n !*** ./client/components/GeneralSettings/enhancedDelivery.vue ***!\n \\****************************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./enhancedDelivery.vue */ 129),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-0ad2672a\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./enhancedDelivery.vue */ 224),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 222 */\n/* unknown exports provided */\n/* exports used: default */\n/*!********************************************************!*\\\n !*** ./client/components/GeneralSettings/logLevel.vue ***!\n \\********************************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./logLevel.vue */ 130),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-967240fe\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./logLevel.vue */ 232),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 223 */\n/* unknown exports provided */\n/* exports used: default */\n/*!*********************************************!*\\\n !*** ./client/components/Link/linkKeys.vue ***!\n \\*********************************************/\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Component = __webpack_require__(/*! ../../../~/vue-loader/lib/component-normalizer */ 8)(\n /* script */\n __webpack_require__(/*! !babel-loader!../../../~/vue-loader/lib/selector?type=script&index=0!./linkKeys.vue */ 131),\n /* template */\n __webpack_require__(/*! !../../../~/vue-loader/lib/template-compiler/index?{\"id\":\"data-v-698469d6\"}!../../../~/vue-loader/lib/selector?type=template&index=0!./linkKeys.vue */ 231),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n/***/ }),\n/* 224 */\n/* unknown exports provided */\n/* all exports used */\n/*!***********************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-0ad2672a\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/GeneralSettings/enhancedDelivery.vue ***!\n \\***********************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.deliveryValue),\n expression: \"deliveryValue\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": \"cf-pro-enhanced-delivery\",\n \"aria-describedby\": \"cf-pro-enhanced-delivery-desc\"\n },\n domProps: {\n \"checked\": Array.isArray(_vm.deliveryValue) ? _vm._i(_vm.deliveryValue, null) > -1 : (_vm.deliveryValue)\n },\n on: {\n \"__c\": function($event) {\n var $$a = _vm.deliveryValue,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.deliveryValue = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.deliveryValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.deliveryValue = $$c\n }\n }\n }\n }), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"cf-pro-enhanced-delivery\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tEnable Enhanced Delivery\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"description\",\n attrs: {\n \"id\": \"cf-pro-enhanced-delivery-desc\"\n }\n }, [_c('p', [_vm._v(\"If enabled, messages are sent via Caldera Forms Pro Servers\")]), _vm._v(\" \"), (_vm.enhancedDelivery) ? _c('ul', [_c('li', [_vm._v(\"Forms must use database entry tracking.\")]), _vm._v(\" \"), _c('li', [_vm._v(\"From Email setting will be used as the reply-to.\")])]) : _vm._e()])])])\n},staticRenderFns: []}\n\n/***/ }),\n/* 225 */\n/* unknown exports provided */\n/* all exports used */\n/*!*************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-0b88b150\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/views/Tab.vue ***!\n \\*************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-form-settings\"\n }\n }, [(_vm.connected) ? _c('div', [_c('form-setting', {\n attrs: {\n \"form\": _vm.form,\n \"layouts\": _vm.layouts\n }\n })], 1) : _vm._e(), _vm._v(\" \"), (!_vm.connected) ? _c('div', [_c('link-keys')], 1) : _vm._e(), _vm._v(\" \"), _c('div', {\n attrs: {\n \"id\": \"cf-pro-alert-wrap\"\n }\n }, [_c('status', {\n attrs: {\n \"message\": _vm.mainAlert.message,\n \"success\": _vm.mainAlert.success,\n \"show\": _vm.mainAlert.show\n }\n })], 1)])\n},staticRenderFns: []}\n\n/***/ }),\n/* 226 */\n/* unknown exports provided */\n/* all exports used */\n/*!*****************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-1106535b\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Parts/Input/Input.vue ***!\n \\*****************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('input', {\n attrs: {\n \"type\": _vm.type,\n \"id\": _vm.idAttr\n },\n on: {\n \"keyup\": function($event) {\n _vm.handle()\n },\n \"change\": function($event) {\n _vm.handle()\n }\n }\n })\n},staticRenderFns: []}\n\n/***/ }),\n/* 227 */\n/* unknown exports provided */\n/* all exports used */\n/*!******************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-16fab070\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/views/Settings.vue ***!\n \\******************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-message-settings\"\n }\n }, [_c('div', {\n attrs: {\n \"id\": \"cf-pro-message-setting-inner\"\n }\n }, [_c('div', {\n staticClass: \"caldera-editor-header\"\n }, [_c('ul', {\n staticClass: \"caldera-editor-header-nav\"\n }, [_vm._m(0), _vm._v(\" \"), (_vm.connected) ? _c('li', {\n staticClass: \"status good\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\tConnected\\n\\t\\t\\t\\t\")]) : _vm._e(), _vm._v(\" \"), (!_vm.connected) ? _c('li', {\n staticClass: \"status bad\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\tNot Connected\\n\\t\\t\\t\\t\")]) : _vm._e(), _vm._v(\" \"), _c('li', {\n staticClass: \"cf-pro-save\"\n }, [_c('input', {\n staticClass: \"button button-primary\",\n attrs: {\n \"type\": \"submit\",\n \"value\": \"Save\"\n },\n on: {\n \"click\": _vm.save\n }\n })]), _vm._v(\" \"), _c('li', {\n attrs: {\n \"id\": \"cf-pro-alert-wrap\"\n }\n }, [_c('status', {\n attrs: {\n \"message\": _vm.mainAlert.message,\n \"success\": _vm.mainAlert.success,\n \"show\": _vm.mainAlert.show\n }\n })], 1)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"cf-pro-settings\"\n }, [_c('div', [_c('tabs', {\n attrs: {\n \"options\": {\n useUrlFragment: false\n }\n }\n }, [_c('tab', {\n attrs: {\n \"name\": \"Account\"\n }\n }, [_c('account-edit')], 1), _vm._v(\" \"), _c('tab', {\n attrs: {\n \"name\": \"Form Settings\"\n }\n }, [(_vm.connected) ? _c('div', [_c('forms-settings')], 1) : _c('div', [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\tYou must connected to Caldera Forms Pro First\\n\\t\\t\\t\\t\\t\\t\")])]), _vm._v(\" \"), _c('tab', {\n attrs: {\n \"name\": \"Settings\"\n }\n }, [_c('delivery'), _vm._v(\" \"), _c('logs')], 1)], 1)], 1)])])])\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('li', {\n staticClass: \"caldera-editor-logo\"\n }, [_c('span', {\n staticClass: \"caldera-forms-name\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\tCaldera Forms Pro\\n\\t\\t\\t\\t\\t\")])])\n}]}\n\n/***/ }),\n/* 228 */\n/* unknown exports provided */\n/* all exports used */\n/*!*****************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2218dfa2\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Parts/Label/Label.vue ***!\n \\*****************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('label', {\n attrs: {\n \"for\": _vm.idAttr\n },\n domProps: {\n \"innerHTML\": _vm._s(_vm.label)\n }\n })\n},staticRenderFns: []}\n\n/***/ }),\n/* 229 */\n/* unknown exports provided */\n/* all exports used */\n/*!*********************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-28ee6bc4\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/FormSettings/Forms.vue ***!\n \\*********************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-form-setting-chooser\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tChoose Form\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.editForm),\n expression: \"editForm\"\n }],\n attrs: {\n \"id\": \"cf-pro-form-setting-chooser\"\n },\n on: {\n \"change\": function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.editForm = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.forms), function(form) {\n return _c('option', {\n domProps: {\n \"value\": form.form_id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\" + _vm._s(form.name) + \"\\n\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), (_vm.editForm) ? _c('div', [_c('form-setting', {\n attrs: {\n \"form\": _vm.form,\n \"layouts\": _vm.layouts\n }\n })], 1) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n/* 230 */\n/* unknown exports provided */\n/* all exports used */\n/*!**************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2a9917a3\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Field/Checkbox.vue ***!\n \\**************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.idAttr\n },\n domProps: {\n \"innerHTML\": _vm._s(_vm.label)\n }\n }), _vm._v(\" \"), _c('_input', {\n attrs: {\n \"type\": _vm.checkbox,\n \"idAttr\": _vm.idAttr,\n \"value\": _vm.value,\n \"setting\": _vm.setting\n }\n })], 1)\n},staticRenderFns: []}\n\n/***/ }),\n/* 231 */\n/* unknown exports provided */\n/* all exports used */\n/*!****************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-698469d6\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Link/linkKeys.vue ***!\n \\****************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('a', {\n attrs: {\n \"href\": _vm.strings.apiKeysViewLink,\n \"alt\": _vm.strings.apiKeysViewText,\n \"target\": \"_blank\"\n }\n }, [_vm._v(_vm._s(_vm.strings.apiKeysViewText))])\n},staticRenderFns: []}\n\n/***/ }),\n/* 232 */\n/* unknown exports provided */\n/* all exports used */\n/*!***************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-967240fe\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/GeneralSettings/logLevel.vue ***!\n \\***************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('div', {\n attrs: {\n \"aria-labelledby\": \"minLogLevelTitle\",\n \"aria-describedby\": \"minLogLevelInfo\"\n }\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-form-log-level-chooser\",\n \"id\": \"minLogLevelTitle\"\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.strings.minLogLevelTitle) + \"\\n \")]), _vm._v(\" \"), _c('p', {\n attrs: {\n \"id\": \"minLogLevelInfo\"\n }\n }, [_vm._v(_vm._s(_vm.strings.minLogLevelInfo))])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.logLevelValue),\n expression: \"logLevelValue\"\n }],\n attrs: {\n \"id\": \"cf-pro-form-log-level-chooser\"\n },\n on: {\n \"change\": function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.logLevelValue = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }\n }\n }, _vm._l((_vm.logLevels), function(level) {\n return _c('option', {\n directives: [{\n name: \"key\",\n rawName: \"v-key\",\n value: (level.number),\n expression: \"level.number\"\n }],\n domProps: {\n \"value\": level.number\n }\n }, [_vm._v(\"\\n \" + _vm._s(level.name) + \"\\n \")])\n }))])])])\n},staticRenderFns: []}\n\n/***/ }),\n/* 233 */\n/* unknown exports provided */\n/* all exports used */\n/*!***************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-a873166e\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Account/Edit.vue ***!\n \\***************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-account-edit\"\n }\n }, [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-api-public\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tPublic Key\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.publicKey),\n expression: \"publicKey\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"cf-pro-api-public\"\n },\n domProps: {\n \"value\": (_vm.publicKey)\n },\n on: {\n \"change\": _vm.publicKeyChange,\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.publicKey = $event.target.value\n }\n }\n })])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-api-secret\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tSecret Key\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.secretKey),\n expression: \"secretKey\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"cf-pro-api-secret\"\n },\n domProps: {\n \"value\": (_vm.secretKey)\n },\n on: {\n \"change\": _vm.secretKeyChange,\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.secretKey = $event.target.value\n }\n }\n })])]), _vm._v(\" \"), (!_vm.connected) ? _c('p', [_vm._v(\"\\n\\t\\tYou can find your API keys in your \"), _c('a', {\n attrs: {\n \"href\": \"https://app.calderaformspro.com/app#/account\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"\\n\\t\\tCaldera Forms Pro Account\\n\\t\")])]) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n/* 234 */\n/* unknown exports provided */\n/* all exports used */\n/*!*************************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-b2ae9c58\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Status/Status.vue ***!\n \\*************************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"cf-alert-wrap cf-hide\"\n }, [(_vm.show && _vm.success) ? _c('p', {\n staticClass: \"cf-alert cf-alert-success\"\n }, [_vm._v(\"\\n\\t\\t\" + _vm._s(_vm.message) + \"\\n\\t\")]) : _vm._e(), _vm._v(\" \"), (_vm.show && !_vm.success) ? _c('p', {\n staticClass: \"cf-alert cf-alert-warning\"\n }, [_vm._v(\"\\n\\t\\t\" + _vm._s(_vm.message) + \"\\n\\t\")]) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n/* 235 */\n/* unknown exports provided */\n/* all exports used */\n/*!********************************************************************************************************************************************************************!*\\\n !*** ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-d44e4582\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/FormSettings/Form.vue ***!\n \\********************************************************************************************************************************************************************/\n/***/ (function(module, exports) {\n\nmodule.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [(_vm.form.send_local != true) ? _c('label', {\n attrs: {\n \"for\": _vm.sendLocalIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tDisable enhanced delivery for this form\\n\\t\\t\")]) : _c('label', {\n attrs: {\n \"for\": _vm.sendLocalIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tEnhanced delivery is disabled for this form\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.send_local),\n expression: \"form.send_local\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.sendLocalIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.send_local) ? _vm._i(_vm.form.send_local, null) > -1 : (_vm.form.send_local)\n },\n on: {\n \"change\": _vm.changeSendLocal,\n \"__c\": function($event) {\n var $$a = _vm.form.send_local,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.send_local = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.send_local = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.send_local = $$c\n }\n }\n }\n })])]), _vm._v(\" \"), (_vm.form.send_local != true) ? _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.layoutIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tEmail Layout\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.layout),\n expression: \"form.layout\"\n }],\n attrs: {\n \"id\": _vm.layoutIdAttr\n },\n on: {\n \"change\": [function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.form.layout = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }, _vm.changeLayout]\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.layouts), function(option) {\n return _c('option', {\n domProps: {\n \"value\": option.id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\" + _vm._s(option.name) + \"\\n\\t\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.pdfLayoutIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tPDF Layout\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.pdf_layout),\n expression: \"form.pdf_layout\"\n }],\n attrs: {\n \"id\": _vm.pdfLayoutIdAttr\n },\n on: {\n \"change\": [function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.form.pdf_layout = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }, _vm.changePDFLayout]\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.layouts), function(option) {\n return _c('option', {\n domProps: {\n \"value\": option.id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\" + _vm._s(option.name) + \"\\n\\t\\t\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.attachPDFIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tAttach PDF To Main Mailer\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.attach_pdf),\n expression: \"form.attach_pdf\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.attachPDFIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.attach_pdf) ? _vm._i(_vm.form.attach_pdf, null) > -1 : (_vm.form.attach_pdf)\n },\n on: {\n \"change\": _vm.changeAttachPDF,\n \"__c\": function($event) {\n var $$a = _vm.form.attach_pdf,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.attach_pdf = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.attach_pdf = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.attach_pdf = $$c\n }\n }\n }\n })])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.attachPDFIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tAdd PDF Link\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.pdf_link),\n expression: \"form.pdf_link\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.attachPDFIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.pdf_link) ? _vm._i(_vm.form.pdf_link, null) > -1 : (_vm.form.pdf_link)\n },\n on: {\n \"change\": _vm.changeLinkPDF,\n \"__c\": function($event) {\n var $$a = _vm.form.pdf_link,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.pdf_link = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.pdf_link = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.pdf_link = $$c\n }\n }\n }\n })])])]) : _vm._e()])\n},staticRenderFns: []}\n\n/***/ }),\n/* 236 */,\n/* 237 */,\n/* 238 */\n/* unknown exports provided */\n/* all exports used */\n/*!************************!*\\\n !*** buffer (ignored) ***!\n \\************************/\n/***/ (function(module, exports) {\n\n/* (ignored) */\n\n/***/ }),\n/* 239 */\n/* unknown exports provided */\n/* all exports used */\n/*!************************!*\\\n !*** crypto (ignored) ***!\n \\************************/\n/***/ (function(module, exports) {\n\n/* (ignored) */\n\n/***/ }),\n/* 240 */\n/* unknown exports provided */\n/* all exports used */\n/*!**********************!*\\\n !*** util (ignored) ***!\n \\**********************/\n/***/ (function(module, exports) {\n\n/* (ignored) */\n\n/***/ }),\n/* 241 */\n/* exports provided: store */\n/* all exports used */\n/*!*************************!*\\\n !*** ./client/index.js ***!\n \\*************************/\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\nObject.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_vue__ = __webpack_require__(/*! vue */ 43);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__store__ = __webpack_require__(/*! ./store */ 85);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__views_Settings_vue__ = __webpack_require__(/*! ./views/Settings.vue */ 86);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__views_Settings_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__views_Settings_vue__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_tabs_component__ = __webpack_require__(/*! vue-tabs-component */ 88);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_vue_tabs_component___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_vue_tabs_component__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__views_Tab_vue__ = __webpack_require__(/*! ./views/Tab.vue */ 87);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__views_Tab_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__views_Tab_vue__);\n/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, \"store\", function() { return __WEBPACK_IMPORTED_MODULE_1__store__[\"a\"]; });\n\n\n\n\n\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].component('tabs', __WEBPACK_IMPORTED_MODULE_3_vue_tabs_component__[\"Tabs\"]);\n__WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */].component('tab', __WEBPACK_IMPORTED_MODULE_3_vue_tabs_component__[\"Tab\"]);\n\n//@TODO Remove this hack-ass way of selecting which app to run\n\nif (document.getElementById('cf-pro-app')) {\n\tvar mainSettingsApp = new __WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */]({\n\t\tel: '#cf-pro-app',\n\t\tstore: __WEBPACK_IMPORTED_MODULE_1__store__[\"a\" /* default */],\n\t\tcomponents: {\n\t\t\t'settings': __WEBPACK_IMPORTED_MODULE_2__views_Settings_vue___default.a\n\t\t},\n\t\trender: function render(h) {\n\t\t\treturn h('div', {\n\t\t\t\tattrs: {\n\t\t\t\t\tid: 'cf-pro-settings'\n\t\t\t\t}\n\t\t\t}, [h('settings')]);\n\t\t}\n\t});\n}\n\n//@TODO and this.\n\n\nif (document.getElementById('cf-pro-app-tab')) {\n\tvar tabApp = new __WEBPACK_IMPORTED_MODULE_0_vue__[\"a\" /* default */]({\n\t\tel: '#cf-pro-app-tab',\n\t\tstore: __WEBPACK_IMPORTED_MODULE_1__store__[\"a\" /* default */],\n\t\tcomponents: {\n\t\t\t'settings': __WEBPACK_IMPORTED_MODULE_4__views_Tab_vue___default.a\n\t\t},\n\t\trender: function render(h) {\n\t\t\treturn h('div', {\n\t\t\t\tattrs: {\n\t\t\t\t\tid: 'cf-pro-settings-tab'\n\t\t\t\t}\n\t\t\t}, [h('settings')]);\n\t\t}\n\t});\n}\n\n\n\n/***/ })\n]),[241]);\n\n\n// WEBPACK FOOTER //\n// client.ca043aad.js","export const isObject = function (value) {\n\t/**@TODO npm in just this function from lodash, beacuse the fact that I copypasted 3 lines of code is THE WORST THING EVER! https://github.com/lodash/lodash/blob/master/isObject.js **/\n\tconst type = typeof value;\n\treturn value != null && (type == 'object' || type == 'function');\n\t//Look - I added semicolons\n};\n\nexport const hasProp = function (maybeObj, prop) {\n\treturn isObject(maybeObj) && objHasProp(maybeObj,prop);\n};\n\nexport const objHasProp = function(obj,prop) {\n\treturn Object.prototype.hasOwnProperty.call(obj, prop);\n};\n\nexport const findForm = function(state,formId){\n\treturn state.forms.find(form =>\n\t\tform.form_id === formId\n\t);\n};\n\nexport const findFormOffset = function(state,formId){\n\treturn state.forms.findIndex(form => form.form_id === formId);\n};\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/util/utils.js","export default {\n\t/**\n\t * The URL for local site API\n\t *\n\t * @since 0.0.1\n\t *\n\t * @type {string}\n\t */\n\tlocalApiURL: CF_PRO_ADMIN.api.cf.url,\n\n\t/**\n\t * The nonce for local site API\n\t *\n\t * @since 0.0.1\n\t *\n\t * @type {string}\n\t */\n\tlocalApiNonce: CF_PRO_ADMIN.api.cf.nonce,\n\n\t/**\n\t * The URL for remote app API\n\t *\n\t * @since 0.0.1\n\t *\n\t * @type {string}\n\t */\n\tappURL: CF_PRO_ADMIN.api.cfPro.url,\n\n\t/**\n\t * The ID of the form whose edit screen we are on\n\t *\n\t * @since 1.0.0\n\t *\n\t * @type {string}\n\t */\n\tformScreen: CF_PRO_ADMIN.formScreen,\n\n\t/**\n\t * Translation and other strings.\n\t *\n\t * Created by \"strings\" index of generated in calderawp\\calderaforms\\pro\\admin\\scripts::data()\n\t *\n\t * @since 1.0.0\n\t *\n\t * @type {Object}\n\t */\n\tstrings: CF_PRO_ADMIN.strings,\n\n /**\n * Levels of Monolog logs\n *\n * Created by \"logLevels\" index of generated in calderawp\\calderaforms\\pro\\admin\\scripts::data()\n *\n * @since 1.5.9\n *\n * @type array\n */\n logLevels: CF_PRO_ADMIN.logLevels,\n\n};\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/util/wpConfig.js","module.exports = {\"aes-128-ecb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-192-ecb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-256-ecb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":0,\"mode\":\"ECB\",\"type\":\"block\"},\"aes-128-cbc\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-192-cbc\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-256-cbc\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes128\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes192\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes256\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CBC\",\"type\":\"block\"},\"aes-128-cfb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-192-cfb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-256-cfb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB\",\"type\":\"stream\"},\"aes-128-cfb8\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-192-cfb8\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-256-cfb8\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB8\",\"type\":\"stream\"},\"aes-128-cfb1\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-192-cfb1\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-256-cfb1\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CFB1\",\"type\":\"stream\"},\"aes-128-ofb\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-192-ofb\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-256-ofb\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"OFB\",\"type\":\"stream\"},\"aes-128-ctr\":{\"cipher\":\"AES\",\"key\":128,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-192-ctr\":{\"cipher\":\"AES\",\"key\":192,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-256-ctr\":{\"cipher\":\"AES\",\"key\":256,\"iv\":16,\"mode\":\"CTR\",\"type\":\"stream\"},\"aes-128-gcm\":{\"cipher\":\"AES\",\"key\":128,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"},\"aes-192-gcm\":{\"cipher\":\"AES\",\"key\":192,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"},\"aes-256-gcm\":{\"cipher\":\"AES\",\"key\":256,\"iv\":12,\"mode\":\"GCM\",\"type\":\"auth\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/browserify-aes/modes/list.json\n// module id = 56\n// module chunks = 1","module.exports = {\"sha224WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha224\",\"id\":\"302d300d06096086480165030402040500041c\"},\"RSA-SHA224\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha224\",\"id\":\"302d300d06096086480165030402040500041c\"},\"sha256WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha256\",\"id\":\"3031300d060960864801650304020105000420\"},\"RSA-SHA256\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha256\",\"id\":\"3031300d060960864801650304020105000420\"},\"sha384WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha384\",\"id\":\"3041300d060960864801650304020205000430\"},\"RSA-SHA384\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha384\",\"id\":\"3041300d060960864801650304020205000430\"},\"sha512WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"sha512\",\"id\":\"3051300d060960864801650304020305000440\"},\"RSA-SHA512\":{\"sign\":\"ecdsa/rsa\",\"hash\":\"sha512\",\"id\":\"3051300d060960864801650304020305000440\"},\"RSA-SHA1\":{\"sign\":\"rsa\",\"hash\":\"sha1\",\"id\":\"3021300906052b0e03021a05000414\"},\"ecdsa-with-SHA1\":{\"sign\":\"ecdsa\",\"hash\":\"sha1\",\"id\":\"\"},\"sha256\":{\"sign\":\"ecdsa\",\"hash\":\"sha256\",\"id\":\"\"},\"sha224\":{\"sign\":\"ecdsa\",\"hash\":\"sha224\",\"id\":\"\"},\"sha384\":{\"sign\":\"ecdsa\",\"hash\":\"sha384\",\"id\":\"\"},\"sha512\":{\"sign\":\"ecdsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-SHA\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA-SHA1\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA\":{\"sign\":\"dsa\",\"hash\":\"sha1\",\"id\":\"\"},\"DSA-WITH-SHA224\":{\"sign\":\"dsa\",\"hash\":\"sha224\",\"id\":\"\"},\"DSA-SHA224\":{\"sign\":\"dsa\",\"hash\":\"sha224\",\"id\":\"\"},\"DSA-WITH-SHA256\":{\"sign\":\"dsa\",\"hash\":\"sha256\",\"id\":\"\"},\"DSA-SHA256\":{\"sign\":\"dsa\",\"hash\":\"sha256\",\"id\":\"\"},\"DSA-WITH-SHA384\":{\"sign\":\"dsa\",\"hash\":\"sha384\",\"id\":\"\"},\"DSA-SHA384\":{\"sign\":\"dsa\",\"hash\":\"sha384\",\"id\":\"\"},\"DSA-WITH-SHA512\":{\"sign\":\"dsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-SHA512\":{\"sign\":\"dsa\",\"hash\":\"sha512\",\"id\":\"\"},\"DSA-RIPEMD160\":{\"sign\":\"dsa\",\"hash\":\"rmd160\",\"id\":\"\"},\"ripemd160WithRSA\":{\"sign\":\"rsa\",\"hash\":\"rmd160\",\"id\":\"3021300906052b2403020105000414\"},\"RSA-RIPEMD160\":{\"sign\":\"rsa\",\"hash\":\"rmd160\",\"id\":\"3021300906052b2403020105000414\"},\"md5WithRSAEncryption\":{\"sign\":\"rsa\",\"hash\":\"md5\",\"id\":\"3020300c06082a864886f70d020505000410\"},\"RSA-MD5\":{\"sign\":\"rsa\",\"hash\":\"md5\",\"id\":\"3020300c06082a864886f70d020505000410\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/browserify-sign/browser/algorithms.json\n// module id = 58\n// module chunks = 1","module.exports = {\"1.3.132.0.10\":\"secp256k1\",\"1.3.132.0.33\":\"p224\",\"1.2.840.10045.3.1.1\":\"p192\",\"1.2.840.10045.3.1.7\":\"p256\",\"1.3.132.0.34\":\"p384\",\"1.3.132.0.35\":\"p521\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/browserify-sign/browser/curves.json\n// module id = 59\n// module chunks = 1","\n/* styles */\nrequire(\"!!../../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"id\\\":\\\"data-v-b2ae9c58\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Status.vue\")\n\nvar Component = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Status.vue\"),\n /* template */\n require(\"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-b2ae9c58\\\"}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Status.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Elements/Status/Status.vue\n// module id = 83\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Form.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-d44e4582\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Form.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/FormSettings/Form.vue\n// module id = 84\n// module chunks = 1","import Vue from 'vue'\nimport Vuex from 'vuex'\n\nVue.use(Vuex);\n\nimport CFProConfig from './util/wpConfig'\n\nconst STATE = {\n\tloading: false,\n\tconnected: false,\n\tforms: [\n\t],\n\tsettings : {\n\t\tenhancedDelivery: false,\n\t\tgeneratePDFs: false,\n\t\tlogLevel: 250\n\t},\n\tlayouts : [\n\t\t{name:''}\n\t],\n\taccount: {\n\t\tplan: String,\n\t\tid: Number,\n\t\tapiKeys: {\n\t\t\tpublic: String,\n\t\t\tsecret: String,\n\t\t\ttoken: String\n\t\t}\n\t},\n\tstrings: CFProConfig.strings,\n\tmainAlert : {\n\t\tsuccess: false,\n\t\tmessage : '',\n\t\tshow: false\n\t},\n\tlogLevels: CFProConfig.logLevels\n};\n\n\nimport { MUTATIONS } from './mutations';\n\nimport { ACTIONS } from './actions';\n\nimport { GETTERS } from './getters';\n\n\nimport { accountSaver, formSaver } from './plugins';\n\nconst PLUGINS = [\n\taccountSaver,\n\tformSaver\n];\n\nconst store = new Vuex.Store({\n strict: false,\n plugins: PLUGINS,\n modules: {},\n state: STATE,\n getters: GETTERS,\n mutations: MUTATIONS,\n actions: ACTIONS\n});\n\n\nexport default store;\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/index.js","\n/* styles */\nrequire(\"!!../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../node_modules/vue-loader/lib/style-compiler/index?{\\\"id\\\":\\\"data-v-16fab070\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Settings.vue\")\n\nvar Component = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Settings.vue\"),\n /* template */\n require(\"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-16fab070\\\"}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Settings.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/views/Settings.vue\n// module id = 86\n// module chunks = 1","var Component = require(\"!../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../node_modules/vue-loader/lib/selector?type=script&index=0!./Tab.vue\"),\n /* template */\n require(\"!!../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0b88b150\\\"}!../../node_modules/vue-loader/lib/selector?type=template&index=0!./Tab.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/views/Tab.vue\n// module id = 87\n// module chunks = 1","import './style.css'\nimport { mapState } from 'vuex'\n\n\nexport default {\n render(h) {\n return (\n <div id=\"cf-pro-account\">\n <ul>\n <li>Public Key {this.publicKey}</li>\n <li>Secret Key {this.secretKey}</li>\n <li>Token {this.token}</li>\n </ul>\n </div>\n )\n },\n computed: mapState({\n token: state => state.account.apiKeys.token,\n publicKey: state => state.account.apiKeys.public,\n secretKey: state => state.account.apiKeys.secret,\n }),\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./client/components/Account/display.js","import { localAPI, appAPI, appToken } from './util/API';\nimport { urlString } from './util/urlString';\nimport CFProConfig from './util/wpConfig';\n\nexport const ACTIONS = {\n\tgetAccount(context){\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tlocalAPI.get().then(response => {\n\t\t\t\tvar r;\n\t\t\t\tif ('string' == typeof response.data) {\n\t\t\t\t\tconst maybe = JSON.parse(response.data);\n\t\t\t\t\tif ('object' === typeof maybe) {\n\t\t\t\t\t\tr = maybe;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tthrow new Exception;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tr = response.data;\n\t\t\t\t}\n\t\t\t\tcontext.commit('forms', r.forms);\n\t\t\t\tcontext.commit('apiKeys', r.apiKeys);\n\t\t\t\tcontext.commit('accountId', r.account_id);\n\t\t\t\tcontext.commit('plan', r.plan);\n \t\t\t\tcontext.commit('logLevel', r.logLevel);\n\t\t\t\tcontext.commit('enhancedDelivery', r.enhancedDelivery);\n\t\t\t\tcontext.commit('formScreen', r.hasOwnProperty( 'formScreen' ) ? r.formScreen : CFProConfig.formScreen );\n\t\t\t\tresolve(response);\n\t\t\t}, error => {\n\t\t\t\treject(error);\n\t\t\t});\n\t\t})\n\t},\n\tsaveAccount(context) {\n\t\tlet key = context.state.account.apiKeys.public;\n\t\tif( key && 'string' === typeof key ){\n\t\t\tkey = key.trim();\n\t\t}\n let secret = context.state.account.apiKeys.secret;\n if( secret && 'string' === typeof secret ){\n secret = secret.trim();\n }\n\n\t\treturn localAPI.post('', {\n\t\t\taccountId: context.state.account.id,\n\t\t\tapiKey: key,\n\t\t\tapiSecret: secret,\n\t\t\tenhancedDelivery: context.state.settings.enhancedDelivery,\n\t\t\tplan: context.state.account.plan,\n\t\t\tforms: context.state.forms,\n\t\t\tlogLevel: context.state.settings.logLevel\n\t\t}).then(r => {\n\t\t\tif( r.data.hasOwnProperty( '_cfAlertMessage' ) ){\n\t\t\t\tcontext.dispatch( 'updateMainAlert', _cfAlertMessage );\n\t\t\t}else{\n\t\t\t\tcontext.dispatch( 'updateMainAlert', {\n\t\t\t\t\tmessage: context.state.strings.saved,\n\t\t\t\t\tshow: true,\n\t\t\t\t\tsuccess: true,\n\t\t\t\t\tfade: 1500\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\t},\n\ttestConnection({commit, state}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tif (state.account.apiKeys.public && state.account.apiKeys.secret) {\n\t\t\t\treturn appAPI.get(\n\t\t\t\t\turlString(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tpublic: state.account.apiKeys.public,\n\t\t\t\t\t\t\ttoken: appToken( state.account.apiKeys ),\n\t\t\t\t\t\t},\n\t\t\t\t\t\t'/account/verify'\n\t\t\t\t\t)\n\t\t\t\t).then(r => {\n\t\t\t\t\t\tstate.account.plan = r.plan;\n\t\t\t\t\t\tstate.account.id = r.id;\n\t\t\t\t\t\tstate.connected = true;\n\t\t\t\t\t\tcommit( 'connected', true );\n\t\t\t\t\t\tresolve(r);\n\t\t\t\t\t},\n\t\t\t\t\terror => {\n\t\t\t\t\t\treject(error);\n\t\t\t\t\t});\n\n\t\t\t}else{\n\t\t\t\treject( 'Not Connected' );\n\t\t\t}\n\t\t});\n\n\t},\n\tgetLayouts({commit, state}) {\n\t\tif( state.connected ){\n\t\t\treturn appAPI.get(\n\t\t\t\turlString(\n\t\t\t\t\t{\n\t\t\t\t\t\tsimple: true,\n\t\t\t\t\t\tpublic: state.account.apiKeys.public,\n\t\t\t\t\t\ttoken: state.account.apiKeys.token,\n\t\t\t\t\t},\n\t\t\t\t\t'/layouts/list'\n\t\t\t\t)\n\t\t\t).then(\n\t\t\t\tr => {\n\t\t\t\t\tcommit( 'layouts', r.data );\n\t\t\t\t}, e => {\n\t\t\t\t\tconsole.log(e);\n\t\t\t\t}\n\t\t\t);\n\t\t}\n\t},\n\t/**\n\t * Set the main alert -- status.\n\t *\n\t * Using this over mutation mainAlert, which this uses, is you can send a number of milliseconds in alert.fade and it will removed in that number of milliseconds\n\t *\n\t * @since 1.0.0\n\t *\n\t * @param {*} context\n\t * @param {Object} alert Commit payload\n\t */\n\tupdateMainAlert(context, alert){\n\t\tconst fade = ( alert.hasOwnProperty( 'fade' ) && ! isNaN( alert.fade ) ) ? alert.fade : 0;\n\t\tif( fade ){\n\t\t\t//OMG(s) window scope.\n\t\t\twindow.setTimeout( () =>{\n\t\t\t\tcontext.dispatch( 'closeMainAlert' );\n\t\t\t}, fade );\n\t\t}\n\t\tcontext.commit('mainAlert',alert)\n\t},\n\t/**\n\t * Make mainAlert clode\n\t *\n\t * @since 1.0.0\n\t *\n\t * @param context\n\t */\n\tcloseMainAlert(context){\n\t\tcontext.dispatch( 'updateMainAlert', {\n\t\t\tshow:false,\n\t\t} );\n\t}\n};\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/actions.js","import { objHasProp, findForm } from './util/utils';\n\nexport const GETTERS = {\n\tpublicKey: state => {\n\t\treturn state.account.apiKeys.public;\n\t},\n\tsecretKey: state => {\n\t\treturn state.account.apiKeys.secret;\n\t},\n\tapiKeys: state => {\n\t\treturn state.account.apiKeys;\n\t},\n\thi: state => {\n\t\treturn 'Roy'\n\t},\n\tgetSetting: state => (setting,_default) => {\n\t\tif( objHasProp(state.settings, setting )){\n\t\t\treturn state.settings[setting];\n\t\t}\n\t\treturn _default;\n\t},\n\tgetFormsById: (state, getters) => (id) => {\n\t\treturn state.forms.find(form => form.form_id === id);\n\t},\n\n\tenhancedDelivery: state => {\n\t\treturn state.settings.enhancedDelivery;\n\t},\n\tlogLevels: state => {\n\t\treturn state.logLevels;\n\t},\n\tlogLevel: state => {\n\t\treturn state.settings.logLevel;\n\t},\n\tconnected: state => {\n\t\treturn state.connected;\n\t},\n\tformScreen: state => {\n\t\treturn state.formScreen;\n\t},\n\tstrings: state => {\n\t\treturn state.strings;\n\t},\n\tmainAlert: state => {\n\t\treturn state.mainAlert;\n\t}\n};\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/getters.js","import isBoolean from 'lodash.isboolean';\nexport const MUTATIONS = {\n\tpublicKey (state,value) {\n\t\tstate.account.apiKeys.public = value;\n\t},\n\tsecretKey (state,value) {\n\t\tstate.account.apiKeys.secret = value;\n\t},\n\tapiKeys (state,obj) {\n\t\tstate.account.apiKeys.public = obj.public;\n\t\tstate.account.apiKeys.secret = obj.secret;\n\t\tstate.account.apiKeys.token = obj.token;\n\t},\n\taccountId(state,value){\n\t\tstate.account.id = value;\n\t},\n\tplan(state,value){\n\t\tstate.account.plan = value;\n\t},\n\tloading(state){\n\t\tstate.loading = ! state.loading;\n\t},\n\tforms(state, value){\n\t\tstate.forms = value;\n\t},\n\tlogLevels(state, value){\n\t\tstate.logLevels = value;\n\t},\n\tconnected(state,value ){\n\t\tstate.connected = value;\n\t},\n\tlayouts(state,value){\n\t\tstate.layouts = value;\n\t},\n\tform(state,value){\n\t\tlet index = state.forms.findIndex(form => form.form_id === value.form_id);\n\t\tif( -1 < index ){\n\t\t\tstate.forms[index] = value;\n\t\t}\n\t},\n logLevel(state,value){\n\t\tstate.settings.logLevel = value;\n },\n\tenhancedDelivery(state,value){\n\t\tif( 'on' == value ){\n\t\t\tvalue = true;\n\t\t}\n\t\tstate.settings.enhancedDelivery = value;\n\t},\n\tformScreen(state,value){\n\t\tstate.formScreen = value;\n\t},\n\t/**\n\t * Change the main alert\n\t *\n\t * @since 1.0.0\n\t *\n\t * @param {Object} state\n\t * @param {Object} value Value to set. success - boolean. show -- boolean. message -- string\n\t */\n\tmainAlert(state,value){\n\t\tstate.mainAlert = {\n\t\t\tsuccess: value.hasOwnProperty( 'success' ) ? value.success : false,\n\t\t\tmessage: value.hasOwnProperty( 'message' ) ? value.message : '',\n\t\t\tshow: value.hasOwnProperty( 'show' ) ? value.show : false,\n\t\t};\n\t\t//Notice, this doesn't except fade, fade isn't tracked. You want to set a fade time? Use updateMainAlert action!\n\n\t}\n};\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/mutations.js","import debounce from 'lodash.debounce';\nexport const accountSaver = store => {\n\tstore.subscribe((mutation, state) => {\n\t\tconst type = mutation.type;\n\t\tswitch (type) {\n\t\t\tcase 'apiKeys' :\n\t\t\tcase 'secretKey':\n\t\t\tcase 'publicKey':\n\t\t\t\tconsole.log(state.connected, state.account.apiKeys.secret, state.account.apiKeys.public);\n\n\t\t\t\tif (!state.connected && state.account.apiKeys.secret && state.account.apiKeys.public) {\n console.log(state.connected, state.account.apiKeys.secret, state.account.apiKeys.public);\n\n store.dispatch('testConnection');\n\t\t\t\t\tstore.dispatch('getLayouts');\n\t\t\t\t} else if (!state.account.apiKeys.public || !state.account.apiKeys.secret) {\n\t\t\t\t\tstore.commit('connected', 0);\n\t\t\t\t} else {\n\t\t\t\t\tstore.commit('connected', 0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'connected' :\n\t\t\t\tif (state.connected) {\n\t\t\t\t\tstore.dispatch('getLayouts')\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\n\t})\n};\n\n/**\n * Plugin to save account when form settings are changed\n *\n * @since 1.0.0\n *\n * @param {Object} store\n */\nexport const formSaver = store => {\n\t/**\n\t * Debounced version of saveAccount() mutation\n\t * @since 1.0.0\n\t *\n\t * @type {Function}\n\t */\n\tthis.debounedFormMutation = debounce(\n\t\tfunction(){\n\t\t\tstore.dispatch( 'saveAccount' );\n\t\t}, 100\n\t);\n\n\t/**\n\t * When form setting is mutated trigger update\n\t *\n\t * @since 1.0.0\n\t */\n\tstore.subscribe((mutation, state) => {\n\t\tif( 'form' === mutation.type ){\n\t\t\tthis.debounedFormMutation();\n\t\t}\n\n\t})\n};\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/plugins.js","import axios from 'axios';\nimport CFProConfig from './wpConfig';\nimport sha1 from 'locutus/php/strings/sha1';\nimport { objHasProp, hasProp } from './utils'\n\nconst timeout = 30000;\nexport const localAPI = axios.create({\n\tbaseURL: CFProConfig.localApiURL,\n\ttimeout: timeout,\n\theaders: {'X-WP-Nonce': CFProConfig.localApiNonce}\n});\n\nexport const appAPI = axios.create({\n\tbaseURL: CFProConfig.appURL,\n\ttimeout: timeout,\n});\n\nexport const appToken = function (apiKeys) {\n\tif( objHasProp(apiKeys,'public') && objHasProp(apiKeys,'secret')){\n\t\tlet publicKey = apiKeys.public;\n\t\tlet secret = apiKeys.secret;\n\t\treturn sha1( publicKey + secret);\n\t}\n\treturn '';\n\n\n};\n\n\n// WEBPACK FOOTER //\n// ./client/store/util/API.js","export const urlString = function (data, endpoint) {\n\tvar str = \"\";\n\tfor (var key in data) {\n\t\tif (str != \"\") {\n\t\t\tstr += \"&\";\n\t\t}\n\t\tstr += key + \"=\" + data[key];\n\t}\n\treturn endpoint + '?' + str;\n};\n\n\n\n// WEBPACK FOOTER //\n// ./client/store/util/urlString.js","<template>\n\t<div id=\"cf-pro-account-edit\">\n\t\t<div class=\"caldera-config-group\">\n\t\t\t<label for=\"cf-pro-api-public\">\n\t\t\t\tPublic Key\n\t\t\t</label>\n\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t<input\n\t\t\t\t\t\ttype=\"text\"\n\t\t\t\t\t\tv-model=\"publicKey\"\n\t\t\t\t\t\tid=\"cf-pro-api-public\"\n\t\t\t\t\t\t@change=\"publicKeyChange\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<div class=\"caldera-config-group\">\n\t\t\t<label for=\"cf-pro-api-secret\">\n\t\t\t\tSecret Key\n\t\t\t</label>\n\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t<input\n\t\t\t\t\ttype=\"text\"\n\t\t\t\t\tv-model=\"secretKey\"\n\t\t\t\t\tid=\"cf-pro-api-secret\"\n\t\t\t\t\t@change=\"secretKeyChange\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\n\t\t<p v-if=\"! connected\">\n\t\t\tYou can find your API keys in your <a href=\"https://app.calderaformspro.com/app#/account\" target=\"_blank\">\n\t\t\tCaldera Forms Pro Account\n\t\t</a>\n\t\t</p>\n\t</div>\n</template>\n<script>\n\timport { mapGetters,mapMutations } from 'vuex'\n\texport default{\n\n\t\tcomputed: {\n\t\t\t...mapGetters([\n\t\t\t\t'publicKey',\n\t\t\t\t'secretKey',\n\t\t\t\t'connected'\n\t\t\t])\n\t\t},\n\t\tmethods: {\n\t\t\t...mapMutations([\n\t\t\t\t'publicKey',\n\t\t\t\t'secretKey',\n\t\t\t]),\n\t\t\tpublicKeyChange(ev){\n this.$store.commit('publicKey',ev.target.value);\n\t\t\t},\n\t\t\tsecretKeyChange(ev){\n\t\t\t\tthis.$store.commit('secretKey',ev.target.value);\n\t\t\t}\n\t\t}\n\t}\n</script>\n<style>\n\t@import \"./style.css\";\n</style>\n\n\n// WEBPACK FOOTER //\n// Edit.vue?0995a470","<template>\n\t<div class=\"caldera-config-group\">\n\n\t\t<label v-bind:for=\"idAttr\" v-html=\"label\">\n\t\t</label>\n\t\t<_input\n\t\t\t:type=\"checkbox\"\n\t\t\t:idAttr=\"idAttr\"\n\t\t\t:value=\"value\"\n\t\t\t:setting=\"setting\"\n\t\t/>\n\n\t</div>\n</template>\n<script>\n\timport Label from '../Parts/Label/Label.vue';\n\timport Input from '../Parts/Input/Input.vue'\n\texport default{\n\t\tcomponents: {\n\t\t\t_label: Label,\n\t\t\t_input: Input\n\t\t},\n\t\tprops: {\n\t\t\tidAttr: {\n\t\t\t\ttype: String,\n\t\t\t\trequire: true\n\t\t\t},\n\t\t\tvalue:{\n\t\t\t\ttype:String,\n\t\t\t\trequired: true\n\t\t\t},\n\t\t\tsetting:{\n\t\t\t\ttype:String,\n\t\t\t\trequired: true\n\t\t\t},\n\t\t\tlabel:{\n\t\t\t\ttype:String,\n\t\t\t\trequired: true\n\t\t\t},\n\t\t},\n\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Checkbox.vue?34f7250e","<template>\n\t<input\n\t\t\tv-bind:type=\"type\"\n\t\t\tv-bind:id=\"idAttr\"\n\t\t\t@keyup=\"handle()\"\n\t\t\t@change=\"handle()\"\n\t/>\n\t<!--\t\t\tv-model=\"value\"-->\n</template>\n<script>\n\texport default{\n\t\tprops: {\n\t\t\tidAttr: {\n\t\t\t\ttype: String,\n\t\t\t\trequire: true\n\t\t\t},\n\t\t\tvalue:{\n\t\t\t\ttype:String,\n\t\t\t\trequired: true\n\t\t\t},\n\t\t\tsetting:{\n\t\t\t\ttype:String,\n\t\t\t\trequired: true\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'text'\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\thandle(){\n\t\t\t\tthis.$store.commit(this.setting,this.value);\n\t\t\t}\n\t\t},\n\n\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Input.vue?6944ebf0","<template>\n\t<label v-bind:for=\"idAttr\" v-html=\"label\">\n\t</label>\n</template>\n<script>\n\texport default{\n\t\tidAttr: {\n\t\t\ttype: String,\n\t\t\trequire: true\n\t\t},\n\t\tlabel:{\n\t\t\ttype:String,\n\t\t\trequired: true\n\t\t},\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Label.vue?5a1f1299","<template>\n\t<div class=\"cf-alert-wrap cf-hide\">\n\t\t<p class=\"cf-alert cf-alert-success\" v-if=\"show && success\">\n\t\t\t{{message}}\n\t\t</p>\n\t\t<p class=\"cf-alert cf-alert-warning\" v-if=\"show && ! success\">\n\t\t\t{{message}}\n\t\t</p>\n\t</div>\n</template>\n<script>\nexport default {\n\tprops: [\n\t\t'success',\n\t\t'message',\n\t\t'show'\n\t],\n\twatch : {\n\t\tshow: function () {\n\t\t\tif( this.show ){\n\t\t\t\tthis.$el.className = \"cf-alert-wrap cf-show\";\n\t\t\t}else{\n\t\t\t\tthis.$el.className = \"cf-alert-wrap cf-hide\";\n\t\t\t}\n\t\t}\n\t}\n\n}\n</script>\n<style>\n\t.cf-alert {\n\t\tdisplay: inline-block;\n\t\tpadding: 4px;\n\t\tborder-radius: 4px;\n\t}\n\t.cf-alert-success {\n\t\tbackground: #a3bf61;\n\t\tcolor: #fff;\n\t}\n\t.cf-alert-error {\n\t\tbackground: #ff0000;\n\t\tcolor: #fff;\n\t}\n\n\t.cf-alert-wrap{\n\t\tmargin-top: -5px;\n\t}\n\n\t.cf-alert p {\n\t\tpadding: 0;\n\t}\n</style>\n\n\n// WEBPACK FOOTER //\n// Status.vue?356c271a","<template>\n\t<div>\n\t\t<div class=\"caldera-config-group\">\n\t\t\t<label v-if=\"form.send_local != true\" v-bind:for=\"sendLocalIdAttr\">\n\t\t\t\t\tDisable enhanced delivery for this form\n\t\t\t</label>\n\t\t\t<label v-else v-bind:for=\"sendLocalIdAttr\">\n\t\t\t\t\tEnhanced delivery is disabled for this form\n\t\t\t</label>\n\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t<input\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\tv-model=\"form.send_local\"\n\t\t\t\t\t\tv-bind:id=\"sendLocalIdAttr\"\n\t\t\t\t\t\t@change=\"changeSendLocal\"\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t\t<div v-if=\"form.send_local != true\">\n\t\t\t<div class=\"caldera-config-group\">\n\t\t\t\t<label v-bind:for=\"layoutIdAttr\">\n\t\t\t\t\tEmail Layout\n\t\t\t\t</label>\n\t\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t\t<select\n\t\t\t\t\t\tv-bind:id=\"layoutIdAttr\"\n\t\t\t\t\t\tv-model=\"form.layout\"\n\t\t\t\t\t\t@change=\"changeLayout\"\n\t\t\t\t\t>\n\t\t\t\t\t\t<option></option>\n\t\t\t\t\t\t<option v-for=\"option in layouts\" v-bind:value=\"option.id\">\n\t\t\t\t\t\t\t{{ option.name }}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t</select>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"caldera-config-group\">\n\t\t\t\t<label v-bind:for=\"pdfLayoutIdAttr\">\n\t\t\t\t\tPDF Layout\n\t\t\t\t</label>\n\t\t\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t\t\t<select\n\t\t\t\t\t\t\t\tv-bind:id=\"pdfLayoutIdAttr\"\n\t\t\t\t\t\t\t\tv-model=\"form.pdf_layout\"\n\t\t\t\t\t\t\t\t@change=\"changePDFLayout\"\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<option></option>\n\t\t\t\t\t\t\t<option v-for=\"option in layouts\" v-bind:value=\"option.id\">\n\t\t\t\t\t\t\t\t{{ option.name }}\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"caldera-config-group\">\n\t\t\t\t<label v-bind:for=\"attachPDFIdAttr\">\n\t\t\t\t\tAttach PDF To Main Mailer\n\t\t\t\t</label>\n\t\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\tv-model=\"form.attach_pdf\"\n\t\t\t\t\t\tv-bind:id=\"attachPDFIdAttr\"\n\t\t\t\t\t\t@change=\"changeAttachPDF\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class=\"caldera-config-group\">\n\t\t\t\t<label v-bind:for=\"attachPDFIdAttr\">\n\t\t\t\t\tAdd PDF Link\n\t\t\t\t</label>\n\t\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\t\tv-model=\"form.pdf_link\"\n\t\t\t\t\t\tv-bind:id=\"attachPDFIdAttr\"\n\t\t\t\t\t\t@change=\"changeLinkPDF\"\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n<script>\n\timport { mapState } from 'vuex'\n\timport Checkbox from '../Elements/Field/Checkbox';\n\timport { findForm } from '../../store/util/utils';\n\n\texport default{\n\t\tcomponents :{\n\t\t\tcheckbox: Checkbox\n\t\t},\n\t\tprops : [ 'form', 'layouts' ],\n\t\tcomputed :{\n\t\t\tlayoutIdAttr(){\n\t\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t\t},\n\t\t\tpdfLayoutIdAttr(){\n\t\t\t\treturn 'cf-pro-layout-pdf-' + this.form.form_id;\n\t\t\t},\n\t\t\tattachPDFIdAttr(){\n\t\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t\t},\n\t\t\tlinkPDFIdAttr(){\n\t\t\t\treturn 'cf-pro-layout-' + this.form.form_id;\n\t\t\t},\n sendLocalIdAttr(){\n return 'cf-pro-send-local-' + this.form.form_id;\n },\n\t\t},\n\t\tmethods:{\n\t\t\tcommitChange(what,value){\n\t\t\t\tthis.form[what] = value;\n\t\t\t\tthis.$store.commit( 'form', this.form );\n\t\t\t},\n\t\t\tchangeLayout(ev){\n\t\t\t\tthis.commitChange(ev.target.value,'layout');\n\t\t\t},\n\t\t\tchangePDFLayout(ev){\n\t\t\t\tthis.commitChange(ev.target.value,'pdf_layout');\n\t\t\t},\n\t\t\tchangeAttachPDF(ev){\n\t\t\t\tthis.commitChange(ev.target.value,'attach_pdf');\n\t\t\t},\n\t\t\tchangeLinkPDF(ev){\n\t\t\t\tthis.commitChange(ev.target.value,'pdf_link');\n\t\t\t},\n changeSendLocal(ev){\n this.commitChange(ev.target.value,'send_local');\n }\n\t\t}\n\n\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Form.vue?7a94102f","<template>\n\t<div>\n\t\t<div class=\"caldera-config-group\">\n\t\t\t<label for=\"cf-pro-form-setting-chooser\">\n\t\t\t\tChoose Form\n\t\t\t</label>\n\t\t\t<div class=\"caldera-config-field\">\n\t\t\t\t<select\n\t\t\t\t\tid=\"cf-pro-form-setting-chooser\"\n\t\t\t\t\tv-model=\"editForm\"\n\t\t\t\t>\n\t\t\t\t\t<option></option>\n\t\t\t\t\t<option v-for=\"form in forms\" v-bind:value=\"form.form_id\">\n\t\t\t\t\t\t{{ form.name }}\n\t\t\t\t\t</option>\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t</div>\n\n\n\t\t<div v-if=\"editForm\">\n\t\t\t<form-setting\n\t\t\t\t:form=\"form\"\n\t\t\t\t:layouts=\"layouts\"\n\t\t\t>\n\t\t\t</form-setting>\n\t\t</div>\n\t</div>\n\n\n</template>\n<script>\n\timport Form from './Form';\n\timport { mapState } from 'vuex';\n\timport { mapGetters } from 'vuex'\n\timport { mapActions } from 'vuex'\n\texport default{\n\t\tcomponents:{\n\t\t\t'form-setting': Form\n\t\t},\n\t\tcomputed: mapState({\n\t\t\tforms: state => state.forms,\n\t\t\tlayouts: state => state.layouts,\n\t\t}),\n\t\tmethods: {\n\t\t\t...mapActions([\n\t\t\t\t'getLayouts'\n\t\t\t]),\n\t\t},\n\t\tbeforeMount(){\n\t\t\tthis.getLayouts();\n\t\t},\n\t\tdata(){\n\t\t\treturn{\n\t\t\t\teditForm: 0,\n\t\t\t\tform: {}\n\t\t\t}\n\t\t},\n\t\twatch: {\n\t\t\teditForm(v){\n\t\t\t\tthis.form = this.$store.getters.getFormsById(v);\n\t\t\t}\n\t\t}\n\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Forms.vue?3865799d","<template>\n\t<div class=\"caldera-config-group\">\n\t\t<div class=\"caldera-config-field\">\n\t\t\t<input\n\t\t\t\t\ttype=\"checkbox\"\n\t\t\t\t\tv-model='deliveryValue'\n\t\t\t\t\tid=\"cf-pro-enhanced-delivery\"\n\t\t\t\t\taria-describedby=\"cf-pro-enhanced-delivery-desc\"\n\t\t\t/>\n\t\t\t<label for=\"cf-pro-enhanced-delivery\">\n\t\t\t\tEnable Enhanced Delivery\n\t\t\t</label>\n\t\t\t<div class=\"description\" id=\"cf-pro-enhanced-delivery-desc\">\n\t\t\t\t<p>If enabled, messages are sent via Caldera Forms Pro Servers</p>\n\t\t\t\t<ul v-if=\"enhancedDelivery\">\n\t\t\t\t\t<li>Forms must use database entry tracking.</li>\n\t\t\t\t\t<li>From Email setting will be used as the reply-to.</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n<script>\n\timport { mapGetters } from 'vuex';\n\n\texport default {\n computed: {\n ...mapGetters([\n 'enhancedDelivery'\n ]),\n deliveryValue: {\n get() {\n return this.enhancedDelivery;\n },\n set(value) {\n this.$store.commit('enhancedDelivery', value);\n }\n }\n },\n }\n</script>\n\n\n// WEBPACK FOOTER //\n// enhancedDelivery.vue?3dab0983","<template>\n <div>\n <div class=\"caldera-config-group\">\n <div aria-labelledby=\"minLogLevelTitle\" aria-describedby=\"minLogLevelInfo\">\n <label for=\"cf-pro-form-log-level-chooser\" id=\"minLogLevelTitle\">\n {{ strings.minLogLevelTitle }}\n </label>\n <p id=\"minLogLevelInfo\">{{ strings.minLogLevelInfo}}</p>\n </div>\n <div class=\"caldera-config-field\">\n <select\n id=\"cf-pro-form-log-level-chooser\"\n v-model=\"logLevelValue\"\n >\n <option v-for=\"level in logLevels\" v-bind:value=\"level.number\" v-key=\"level.number\">\n {{ level.name }}\n </option>\n\n </select>\n </div>\n </div>\n </div>\n\n</template>\n<script>\n import { mapGetters } from 'vuex';\n\n export default{\n computed : {\n ...mapGetters([\n 'logLevels',\n 'logLevel',\n 'strings'\n ]),\n logLevelValue: {\n get() {\n return this.logLevel;\n },\n set(value) {\n this.$store.commit('logLevel', value);\n }\n },\n },\n }\n\n</script>\n\n\n// WEBPACK FOOTER //\n// logLevel.vue?5bfc5662","<template>\n <a v-bind:href=\"strings.apiKeysViewLink\" :alt=\"strings.apiKeysViewText\" target=\"_blank\">{{ strings.apiKeysViewText }}</a>\n</template>\n<script>\n import { mapGetters } from 'vuex'\n\n export default{\n\n computed :{\n ...mapGetters([\n 'strings'\n ])\n },\n\n }\n</script>\n\n\n\n// WEBPACK FOOTER //\n// linkKeys.vue?528979b5","<template>\n\t<div id=\"cf-pro-message-settings\">\n\t\t<div id=\"cf-pro-message-setting-inner\">\n\t\t\t<div class=\"caldera-editor-header\">\n\t\t\t\t<ul class=\"caldera-editor-header-nav\">\n\t\t\t\t\t<li class=\"caldera-editor-logo\">\n\t\t\t\t\t\t<span class=\"caldera-forms-name\">\n\t\t\t\t\t\t\tCaldera Forms Pro\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li class=\"status good\" v-if=\"connected\">\n\t\t\t\t\t\tConnected\n\t\t\t\t\t</li>\n\t\t\t\t\t<li class=\"status bad\" v-if=\"!connected\">\n\t\t\t\t\t\tNot Connected\n\t\t\t\t\t</li>\n\t\t\t\t\t<li class=\"cf-pro-save\">\n\t\t\t\t\t\t<input type=\"submit\" class=\"button button-primary\" value=\"Save\" @click=\"save\"/>\n\t\t\t\t\t</li>\n\t\t\t\t\t<li id=\"cf-pro-alert-wrap\">\n\t\t\t\t\t\t<status\n\t\t\t\t\t\t\t:message=\"mainAlert.message\"\n\t\t\t\t\t\t\t:success=\"mainAlert.success\"\n\t\t\t\t\t\t\t:show=\"mainAlert.show\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t</status>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t\t<div class=\"cf-pro-settings\" v-cloak>\n\t\t\t\t<div>\n\t\t\t\t\t<tabs :options=\"{ useUrlFragment: false }\">\n\t\t\t\t\t\t<tab name=\"Account\">\n\t\t\t\t\t\t\t<account-edit></account-edit>\n\t\t\t\t\t\t</tab>\n\t\t\t\t\t\t<tab name=\"Form Settings\">\n\t\t\t\t\t\t\t<div v-if=\"connected\">\n\t\t\t\t\t\t\t\t<forms-settings></forms-settings>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div v-else>\n\t\t\t\t\t\t\t\tYou must connected to Caldera Forms Pro First\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</tab>\n\t\t\t\t\t\t<tab name=\"Settings\">\n\t\t\t\t\t\t\t<delivery></delivery>\n\t\t\t\t\t\t\t<logs></logs>\n\t\t\t\t\t\t</tab>\n\t\t\t\t\t</tabs>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</template>\n<script>\n\timport { mapState, mapGetters, mapActions, mapMutations } from 'vuex';\n\timport AccountDisplay from '../components/Account/display';\n\timport AccountEdit from '../components/Account/Edit';\n\timport FormsSettings from '../components/FormSettings/Forms';\n\timport enhancedDelivery from '../components/GeneralSettings/enhancedDelivery';\n import logLevel from '../components/GeneralSettings/logLevel';\n\timport Status from '../components/Elements/Status/Status.vue'\n\texport default{\n\t\tcomponents :{\n\t\t\t'account-display': AccountDisplay,\n\t\t\t'account-edit' : AccountEdit,\n\t\t\t'forms-settings' : FormsSettings,\n\t\t\t'delivery' : enhancedDelivery,\n 'logs' : logLevel,\n\t\t\t'status' : Status\n\t\t},\n\t\tcomputed: mapState({\n\t\t\tloading: state => state.loading,\n\t\t\tconnected: state => state.connected,\n\t\t\tpublicKey: state => state.account.apiKeys.public,\n\t\t\tenhancedDelivery: state => state.settings.enhancedDelivery,\n logLevel: state => state.settings.logLevel,\n\t\t\tmainAlert: state => state.mainAlert\n\t\t}),\n\t\tbeforeMount(){\n\t\t\t[].forEach.call(document.querySelectorAll('.update-nag'),function(e){\n\t\t\t\te.parentNode.removeChild(e);\n\t\t\t});\n\n\t\t\tthis.$store.dispatch( 'getAccount' );\n\t\t},\n\t\tmethods:{\n\t\t\tsave(){\n\t\t\t\tthis.$store.dispatch( 'saveAccount' );\n\t\t\t}\n\t\t}\n\t}\n</script>\n<style>\n\t[v-cloak] {\n\t\tdisplay: none;\n\t\tvisibility: hidden;\n\t}\n\n\t.cf-pro-settings {\n\t\tmargin-top: 50px;\n\t}\n\n\t.cf-pro-save input.button {\n\t\tmargin: 10px;\n\t}\n\n\tli.status {\n\t\tpadding: 14px !important;\n\t\tcolor: white;\n\t}\n\n\tli.status.good {\n\t\tbackground-color: #0b7a6f;\n\t}\n\n\tli.status.bad {\n\t\tbackground-color: red;\n\t}\n\n\n\t.tabs-component-panels,ul.tabs-component-tabs {\n\t\tfloat: left;\n\t\tdisplay:inline-block\n\t}\n\n\t.tabs-component-panels{\n\t\tpadding: 1rem;\n\t\tfont-size: 1rem;\n\t}\n\tul.tabs-component-tabs{\n\t\tbackground: #0b7a6f;\n\n\t}\n\tli.tabs-component-tab {\n\t\tmargin-bottom: 0;\n\t\tborder-bottom: thin solid white;\n\t\tpadding: 0;\n\t}\n\tli.tabs-component-tab:last-child() {\n\t\tborder-bottom: none;\n\t }\n\tli.tabs-component-tab a{\n\t\tdisplay: block;\n\t\twidth: 69%;\n\t\tcolor: white;\n\t\tfont-size: 1rem;\n\t\tpadding: 1rem 1.4rem;\n\t\ttext-decoration: none;\n\t\ttext-align: center;\n\t}\n\tli.tabs-component-tab.is-active{\n\t\tbackground-color: #ff7e30;\n\t}\n\n\t.tabs-component-panels section:nth-child(3) .caldera-config-group {\n\t\tmargin: 0 1rem 0;\n\t}\n\t.tabs-component-panels section:nth-child(3) label {\n\t\tdisplay: inline;\n\t\tmargin: 0;\n\t}\n\n</style>\n\n\n// WEBPACK FOOTER //\n// Settings.vue?3500228d","<template>\n\t<div id=\"cf-pro-form-settings\">\n\t\t<div v-if=\"connected\">\n\t\t\t<form-setting :form=\"form\" :layouts=\"layouts\"></form-setting>\n\t\t</div>\n\t\t<div v-if=\"!connected\">\n\t\t\t<link-keys></link-keys>\n\t\t</div>\n\t\t<div id=\"cf-pro-alert-wrap\">\n\t\t\t<status\n\t\t\t\t\t:message=\"mainAlert.message\"\n\t\t\t\t\t:success=\"mainAlert.success\"\n\t\t\t\t\t:show=\"mainAlert.show\"\n\t\t\t>\n\t\t\t</status>\n\t\t</div>\n\t</div>\n</template>\n<script>\n\n\timport { mapState } from 'vuex'\n\timport { mapActions } from 'vuex'\n\timport debounce from 'lodash.debounce';\n\timport Status from '../components/Elements/Status/Status';\n\timport formSetting from '../components/FormSettings/Form.vue';\n import linkKeys from '../components/Link/linkKeys.vue';\n\n\texport default{\n\t\tcomponents: {\n\t\t\t'form-setting' : formSetting,\n 'link-keys' : linkKeys,\n\t\t\t'status' : Status\n\t\t},\n\t\tmethods: {\n\t\t\t...mapActions([\n\t\t\t\t'getLayouts',\n\t\t\t\t'getAccount',\n\t\t\t\t'saveAccount'\n\t\t\t]),\n\t\t},\n\t\tbeforeMount(){\n\t\t\tthis.getAccount().then( () => {\n\t\t\t\tthis.getLayouts();\n\t\t\t\tthis.form = this.$store.getters.getFormsById( this.formScreen );\n\t\t\t});\n\n\t\t},\n\t\tcomputed: mapState({\n\t\t\tlayouts: state => state.layouts,\n\t\t\tconnected: state => state.connected,\n\t\t\tformScreen: state => state.formScreen,\n\t\t\tmainAlert: state => state.mainAlert\n\t\t}),\n\t\tdata(){\n\t\t\treturn{\n\t\t\t\tform: {},\n\t\t\t}\n\t\t}\n\n\n\t}\n</script>\n\n\n// WEBPACK FOOTER //\n// Tab.vue?9f2b6b52","module.exports = {\"modp1\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff\"},\"modp2\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff\"},\"modp5\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff\"},\"modp14\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff\"},\"modp15\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff\"},\"modp16\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff\"},\"modp17\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff\"},\"modp18\":{\"gen\":\"02\",\"prime\":\"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff\"}}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/diffie-hellman/lib/primes.json\n// module id = 162\n// module chunks = 1","module.exports = {\"_args\":[[\"elliptic@6.4.0\",\"/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client\"]],\"_development\":true,\"_from\":\"elliptic@6.4.0\",\"_id\":\"elliptic@6.4.0\",\"_inBundle\":false,\"_integrity\":\"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=\",\"_location\":\"/elliptic\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"version\",\"registry\":true,\"raw\":\"elliptic@6.4.0\",\"name\":\"elliptic\",\"escapedName\":\"elliptic\",\"rawSpec\":\"6.4.0\",\"saveSpec\":null,\"fetchSpec\":\"6.4.0\"},\"_requiredBy\":[\"/browserify-sign\",\"/create-ecdh\"],\"_resolved\":\"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz\",\"_spec\":\"6.4.0\",\"_where\":\"/Users/josh/sites/caldera-dev/wp-content/plugins/caldera-forms/includes/cf-pro-client\",\"author\":{\"name\":\"Fedor Indutny\",\"email\":\"fedor@indutny.com\"},\"bugs\":{\"url\":\"https://github.com/indutny/elliptic/issues\"},\"dependencies\":{\"bn.js\":\"^4.4.0\",\"brorand\":\"^1.0.1\",\"hash.js\":\"^1.0.0\",\"hmac-drbg\":\"^1.0.0\",\"inherits\":\"^2.0.1\",\"minimalistic-assert\":\"^1.0.0\",\"minimalistic-crypto-utils\":\"^1.0.0\"},\"description\":\"EC cryptography\",\"devDependencies\":{\"brfs\":\"^1.4.3\",\"coveralls\":\"^2.11.3\",\"grunt\":\"^0.4.5\",\"grunt-browserify\":\"^5.0.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-connect\":\"^1.0.0\",\"grunt-contrib-copy\":\"^1.0.0\",\"grunt-contrib-uglify\":\"^1.0.1\",\"grunt-mocha-istanbul\":\"^3.0.1\",\"grunt-saucelabs\":\"^8.6.2\",\"istanbul\":\"^0.4.2\",\"jscs\":\"^2.9.0\",\"jshint\":\"^2.6.0\",\"mocha\":\"^2.1.0\"},\"files\":[\"lib\"],\"homepage\":\"https://github.com/indutny/elliptic\",\"keywords\":[\"EC\",\"Elliptic\",\"curve\",\"Cryptography\"],\"license\":\"MIT\",\"main\":\"lib/elliptic.js\",\"name\":\"elliptic\",\"repository\":{\"type\":\"git\",\"url\":\"git+ssh://git@github.com/indutny/elliptic.git\"},\"scripts\":{\"jscs\":\"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js\",\"jshint\":\"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js\",\"lint\":\"npm run jscs && npm run jshint\",\"test\":\"npm run lint && npm run unit\",\"unit\":\"istanbul test _mocha --reporter=spec test/index.js\",\"version\":\"grunt dist && git add dist/\"},\"version\":\"6.4.0\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/elliptic/package.json\n// module id = 176\n// module chunks = 1","// removed by extract-text-webpack-plugin\nmodule.exports = {\"cf-pro-account-edit\":\"style__cf-pro-account-edit___6_kkC\"};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Account/style.css\n// module id = 177\n// module chunks = 1","module.exports = {\"2.16.840.1.101.3.4.1.1\":\"aes-128-ecb\",\"2.16.840.1.101.3.4.1.2\":\"aes-128-cbc\",\"2.16.840.1.101.3.4.1.3\":\"aes-128-ofb\",\"2.16.840.1.101.3.4.1.4\":\"aes-128-cfb\",\"2.16.840.1.101.3.4.1.21\":\"aes-192-ecb\",\"2.16.840.1.101.3.4.1.22\":\"aes-192-cbc\",\"2.16.840.1.101.3.4.1.23\":\"aes-192-ofb\",\"2.16.840.1.101.3.4.1.24\":\"aes-192-cfb\",\"2.16.840.1.101.3.4.1.41\":\"aes-256-ecb\",\"2.16.840.1.101.3.4.1.42\":\"aes-256-cbc\",\"2.16.840.1.101.3.4.1.43\":\"aes-256-ofb\",\"2.16.840.1.101.3.4.1.44\":\"aes-256-cfb\"}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/parse-asn1/aesid.json\n// module id = 194\n// module chunks = 1","\n/* styles */\nrequire(\"!!../../../node_modules/extract-text-webpack-plugin/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?sourceMap&-autoprefixer!../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"id\\\":\\\"data-v-a873166e\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./Edit.vue\")\n\nvar Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Edit.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-a873166e\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Edit.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Account/Edit.vue\n// module id = 216\n// module chunks = 1","var Component = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Checkbox.vue\"),\n /* template */\n require(\"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2a9917a3\\\"}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Checkbox.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Elements/Field/Checkbox.vue\n// module id = 217\n// module chunks = 1","var Component = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Input.vue\"),\n /* template */\n require(\"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-1106535b\\\"}!../../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Input.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Elements/Parts/Input/Input.vue\n// module id = 218\n// module chunks = 1","var Component = require(\"!../../../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Label.vue\"),\n /* template */\n require(\"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2218dfa2\\\"}!../../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Label.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Elements/Parts/Label/Label.vue\n// module id = 219\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./Forms.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-28ee6bc4\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./Forms.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/FormSettings/Forms.vue\n// module id = 220\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./enhancedDelivery.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-0ad2672a\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./enhancedDelivery.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/GeneralSettings/enhancedDelivery.vue\n// module id = 221\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./logLevel.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-967240fe\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./logLevel.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/GeneralSettings/logLevel.vue\n// module id = 222\n// module chunks = 1","var Component = require(\"!../../../node_modules/vue-loader/lib/component-normalizer\")(\n /* script */\n require(\"!!babel-loader!../../../node_modules/vue-loader/lib/selector?type=script&index=0!./linkKeys.vue\"),\n /* template */\n require(\"!!../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-698469d6\\\"}!../../../node_modules/vue-loader/lib/selector?type=template&index=0!./linkKeys.vue\"),\n /* scopeId */\n null,\n /* cssModules */\n null\n)\n\nmodule.exports = Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./client/components/Link/linkKeys.vue\n// module id = 223\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.deliveryValue),\n expression: \"deliveryValue\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": \"cf-pro-enhanced-delivery\",\n \"aria-describedby\": \"cf-pro-enhanced-delivery-desc\"\n },\n domProps: {\n \"checked\": Array.isArray(_vm.deliveryValue) ? _vm._i(_vm.deliveryValue, null) > -1 : (_vm.deliveryValue)\n },\n on: {\n \"__c\": function($event) {\n var $$a = _vm.deliveryValue,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.deliveryValue = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.deliveryValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.deliveryValue = $$c\n }\n }\n }\n }), _vm._v(\" \"), _c('label', {\n attrs: {\n \"for\": \"cf-pro-enhanced-delivery\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tEnable Enhanced Delivery\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"description\",\n attrs: {\n \"id\": \"cf-pro-enhanced-delivery-desc\"\n }\n }, [_c('p', [_vm._v(\"If enabled, messages are sent via Caldera Forms Pro Servers\")]), _vm._v(\" \"), (_vm.enhancedDelivery) ? _c('ul', [_c('li', [_vm._v(\"Forms must use database entry tracking.\")]), _vm._v(\" \"), _c('li', [_vm._v(\"From Email setting will be used as the reply-to.\")])]) : _vm._e()])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-0ad2672a\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/GeneralSettings/enhancedDelivery.vue\n// module id = 224\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-form-settings\"\n }\n }, [(_vm.connected) ? _c('div', [_c('form-setting', {\n attrs: {\n \"form\": _vm.form,\n \"layouts\": _vm.layouts\n }\n })], 1) : _vm._e(), _vm._v(\" \"), (!_vm.connected) ? _c('div', [_c('link-keys')], 1) : _vm._e(), _vm._v(\" \"), _c('div', {\n attrs: {\n \"id\": \"cf-pro-alert-wrap\"\n }\n }, [_c('status', {\n attrs: {\n \"message\": _vm.mainAlert.message,\n \"success\": _vm.mainAlert.success,\n \"show\": _vm.mainAlert.show\n }\n })], 1)])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-0b88b150\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/views/Tab.vue\n// module id = 225\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('input', {\n attrs: {\n \"type\": _vm.type,\n \"id\": _vm.idAttr\n },\n on: {\n \"keyup\": function($event) {\n _vm.handle()\n },\n \"change\": function($event) {\n _vm.handle()\n }\n }\n })\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-1106535b\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Parts/Input/Input.vue\n// module id = 226\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-message-settings\"\n }\n }, [_c('div', {\n attrs: {\n \"id\": \"cf-pro-message-setting-inner\"\n }\n }, [_c('div', {\n staticClass: \"caldera-editor-header\"\n }, [_c('ul', {\n staticClass: \"caldera-editor-header-nav\"\n }, [_vm._m(0), _vm._v(\" \"), (_vm.connected) ? _c('li', {\n staticClass: \"status good\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\tConnected\\n\\t\\t\\t\\t\")]) : _vm._e(), _vm._v(\" \"), (!_vm.connected) ? _c('li', {\n staticClass: \"status bad\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\tNot Connected\\n\\t\\t\\t\\t\")]) : _vm._e(), _vm._v(\" \"), _c('li', {\n staticClass: \"cf-pro-save\"\n }, [_c('input', {\n staticClass: \"button button-primary\",\n attrs: {\n \"type\": \"submit\",\n \"value\": \"Save\"\n },\n on: {\n \"click\": _vm.save\n }\n })]), _vm._v(\" \"), _c('li', {\n attrs: {\n \"id\": \"cf-pro-alert-wrap\"\n }\n }, [_c('status', {\n attrs: {\n \"message\": _vm.mainAlert.message,\n \"success\": _vm.mainAlert.success,\n \"show\": _vm.mainAlert.show\n }\n })], 1)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"cf-pro-settings\"\n }, [_c('div', [_c('tabs', {\n attrs: {\n \"options\": {\n useUrlFragment: false\n }\n }\n }, [_c('tab', {\n attrs: {\n \"name\": \"Account\"\n }\n }, [_c('account-edit')], 1), _vm._v(\" \"), _c('tab', {\n attrs: {\n \"name\": \"Form Settings\"\n }\n }, [(_vm.connected) ? _c('div', [_c('forms-settings')], 1) : _c('div', [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\tYou must connected to Caldera Forms Pro First\\n\\t\\t\\t\\t\\t\\t\")])]), _vm._v(\" \"), _c('tab', {\n attrs: {\n \"name\": \"Settings\"\n }\n }, [_c('delivery'), _vm._v(\" \"), _c('logs')], 1)], 1)], 1)])])])\n},staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('li', {\n staticClass: \"caldera-editor-logo\"\n }, [_c('span', {\n staticClass: \"caldera-forms-name\"\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\tCaldera Forms Pro\\n\\t\\t\\t\\t\\t\")])])\n}]}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-16fab070\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/views/Settings.vue\n// module id = 227\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('label', {\n attrs: {\n \"for\": _vm.idAttr\n },\n domProps: {\n \"innerHTML\": _vm._s(_vm.label)\n }\n })\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2218dfa2\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Parts/Label/Label.vue\n// module id = 228\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-form-setting-chooser\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tChoose Form\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.editForm),\n expression: \"editForm\"\n }],\n attrs: {\n \"id\": \"cf-pro-form-setting-chooser\"\n },\n on: {\n \"change\": function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.editForm = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.forms), function(form) {\n return _c('option', {\n domProps: {\n \"value\": form.form_id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\" + _vm._s(form.name) + \"\\n\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), (_vm.editForm) ? _c('div', [_c('form-setting', {\n attrs: {\n \"form\": _vm.form,\n \"layouts\": _vm.layouts\n }\n })], 1) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-28ee6bc4\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/FormSettings/Forms.vue\n// module id = 229\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.idAttr\n },\n domProps: {\n \"innerHTML\": _vm._s(_vm.label)\n }\n }), _vm._v(\" \"), _c('_input', {\n attrs: {\n \"type\": _vm.checkbox,\n \"idAttr\": _vm.idAttr,\n \"value\": _vm.value,\n \"setting\": _vm.setting\n }\n })], 1)\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-2a9917a3\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Field/Checkbox.vue\n// module id = 230\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('a', {\n attrs: {\n \"href\": _vm.strings.apiKeysViewLink,\n \"alt\": _vm.strings.apiKeysViewText,\n \"target\": \"_blank\"\n }\n }, [_vm._v(_vm._s(_vm.strings.apiKeysViewText))])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-698469d6\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Link/linkKeys.vue\n// module id = 231\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('div', {\n attrs: {\n \"aria-labelledby\": \"minLogLevelTitle\",\n \"aria-describedby\": \"minLogLevelInfo\"\n }\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-form-log-level-chooser\",\n \"id\": \"minLogLevelTitle\"\n }\n }, [_vm._v(\"\\n \" + _vm._s(_vm.strings.minLogLevelTitle) + \"\\n \")]), _vm._v(\" \"), _c('p', {\n attrs: {\n \"id\": \"minLogLevelInfo\"\n }\n }, [_vm._v(_vm._s(_vm.strings.minLogLevelInfo))])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.logLevelValue),\n expression: \"logLevelValue\"\n }],\n attrs: {\n \"id\": \"cf-pro-form-log-level-chooser\"\n },\n on: {\n \"change\": function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.logLevelValue = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }\n }\n }, _vm._l((_vm.logLevels), function(level) {\n return _c('option', {\n directives: [{\n name: \"key\",\n rawName: \"v-key\",\n value: (level.number),\n expression: \"level.number\"\n }],\n domProps: {\n \"value\": level.number\n }\n }, [_vm._v(\"\\n \" + _vm._s(level.name) + \"\\n \")])\n }))])])])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-967240fe\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/GeneralSettings/logLevel.vue\n// module id = 232\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n attrs: {\n \"id\": \"cf-pro-account-edit\"\n }\n }, [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-api-public\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tPublic Key\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.publicKey),\n expression: \"publicKey\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"cf-pro-api-public\"\n },\n domProps: {\n \"value\": (_vm.publicKey)\n },\n on: {\n \"change\": _vm.publicKeyChange,\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.publicKey = $event.target.value\n }\n }\n })])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": \"cf-pro-api-secret\"\n }\n }, [_vm._v(\"\\n\\t\\t\\tSecret Key\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.secretKey),\n expression: \"secretKey\"\n }],\n attrs: {\n \"type\": \"text\",\n \"id\": \"cf-pro-api-secret\"\n },\n domProps: {\n \"value\": (_vm.secretKey)\n },\n on: {\n \"change\": _vm.secretKeyChange,\n \"input\": function($event) {\n if ($event.target.composing) { return; }\n _vm.secretKey = $event.target.value\n }\n }\n })])]), _vm._v(\" \"), (!_vm.connected) ? _c('p', [_vm._v(\"\\n\\t\\tYou can find your API keys in your \"), _c('a', {\n attrs: {\n \"href\": \"https://app.calderaformspro.com/app#/account\",\n \"target\": \"_blank\"\n }\n }, [_vm._v(\"\\n\\t\\tCaldera Forms Pro Account\\n\\t\")])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-a873166e\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Account/Edit.vue\n// module id = 233\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', {\n staticClass: \"cf-alert-wrap cf-hide\"\n }, [(_vm.show && _vm.success) ? _c('p', {\n staticClass: \"cf-alert cf-alert-success\"\n }, [_vm._v(\"\\n\\t\\t\" + _vm._s(_vm.message) + \"\\n\\t\")]) : _vm._e(), _vm._v(\" \"), (_vm.show && !_vm.success) ? _c('p', {\n staticClass: \"cf-alert cf-alert-warning\"\n }, [_vm._v(\"\\n\\t\\t\" + _vm._s(_vm.message) + \"\\n\\t\")]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-b2ae9c58\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/Elements/Status/Status.vue\n// module id = 234\n// module chunks = 1","module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;\n return _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [(_vm.form.send_local != true) ? _c('label', {\n attrs: {\n \"for\": _vm.sendLocalIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tDisable enhanced delivery for this form\\n\\t\\t\")]) : _c('label', {\n attrs: {\n \"for\": _vm.sendLocalIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tEnhanced delivery is disabled for this form\\n\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.send_local),\n expression: \"form.send_local\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.sendLocalIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.send_local) ? _vm._i(_vm.form.send_local, null) > -1 : (_vm.form.send_local)\n },\n on: {\n \"change\": _vm.changeSendLocal,\n \"__c\": function($event) {\n var $$a = _vm.form.send_local,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.send_local = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.send_local = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.send_local = $$c\n }\n }\n }\n })])]), _vm._v(\" \"), (_vm.form.send_local != true) ? _c('div', [_c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.layoutIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tEmail Layout\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.layout),\n expression: \"form.layout\"\n }],\n attrs: {\n \"id\": _vm.layoutIdAttr\n },\n on: {\n \"change\": [function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.form.layout = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }, _vm.changeLayout]\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.layouts), function(option) {\n return _c('option', {\n domProps: {\n \"value\": option.id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\" + _vm._s(option.name) + \"\\n\\t\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.pdfLayoutIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tPDF Layout\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('select', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.pdf_layout),\n expression: \"form.pdf_layout\"\n }],\n attrs: {\n \"id\": _vm.pdfLayoutIdAttr\n },\n on: {\n \"change\": [function($event) {\n var $$selectedVal = Array.prototype.filter.call($event.target.options, function(o) {\n return o.selected\n }).map(function(o) {\n var val = \"_value\" in o ? o._value : o.value;\n return val\n });\n _vm.form.pdf_layout = $event.target.multiple ? $$selectedVal : $$selectedVal[0]\n }, _vm.changePDFLayout]\n }\n }, [_c('option'), _vm._v(\" \"), _vm._l((_vm.layouts), function(option) {\n return _c('option', {\n domProps: {\n \"value\": option.id\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\t\\t\\t\\t\" + _vm._s(option.name) + \"\\n\\t\\t\\t\\t\\t\\t\")])\n })], 2)])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.attachPDFIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tAttach PDF To Main Mailer\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.attach_pdf),\n expression: \"form.attach_pdf\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.attachPDFIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.attach_pdf) ? _vm._i(_vm.form.attach_pdf, null) > -1 : (_vm.form.attach_pdf)\n },\n on: {\n \"change\": _vm.changeAttachPDF,\n \"__c\": function($event) {\n var $$a = _vm.form.attach_pdf,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.attach_pdf = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.attach_pdf = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.attach_pdf = $$c\n }\n }\n }\n })])]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-group\"\n }, [_c('label', {\n attrs: {\n \"for\": _vm.attachPDFIdAttr\n }\n }, [_vm._v(\"\\n\\t\\t\\t\\tAdd PDF Link\\n\\t\\t\\t\")]), _vm._v(\" \"), _c('div', {\n staticClass: \"caldera-config-field\"\n }, [_c('input', {\n directives: [{\n name: \"model\",\n rawName: \"v-model\",\n value: (_vm.form.pdf_link),\n expression: \"form.pdf_link\"\n }],\n attrs: {\n \"type\": \"checkbox\",\n \"id\": _vm.attachPDFIdAttr\n },\n domProps: {\n \"checked\": Array.isArray(_vm.form.pdf_link) ? _vm._i(_vm.form.pdf_link, null) > -1 : (_vm.form.pdf_link)\n },\n on: {\n \"change\": _vm.changeLinkPDF,\n \"__c\": function($event) {\n var $$a = _vm.form.pdf_link,\n $$el = $event.target,\n $$c = $$el.checked ? (true) : (false);\n if (Array.isArray($$a)) {\n var $$v = null,\n $$i = _vm._i($$a, $$v);\n if ($$el.checked) {\n $$i < 0 && (_vm.form.pdf_link = $$a.concat([$$v]))\n } else {\n $$i > -1 && (_vm.form.pdf_link = $$a.slice(0, $$i).concat($$a.slice($$i + 1)))\n }\n } else {\n _vm.form.pdf_link = $$c\n }\n }\n }\n })])])]) : _vm._e()])\n},staticRenderFns: []}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./~/vue-loader/lib/template-compiler?{\"id\":\"data-v-d44e4582\"}!./~/vue-loader/lib/selector.js?type=template&index=0!./client/components/FormSettings/Form.vue\n// module id = 235\n// module chunks = 1","import Vue from 'vue'\nimport store from './store'\nimport SettingsView from './views/Settings.vue';\nimport {Tabs, Tab} from 'vue-tabs-component';\n\n\nVue.component('tabs', Tabs);\nVue.component('tab', Tab);\n\n//@TODO Remove this hack-ass way of selecting which app to run\n\nif( document.getElementById( 'cf-pro-app' ) ){\n\tconst mainSettingsApp = new Vue({\n\t\tel: '#cf-pro-app',\n\t\tstore,\n\t\tcomponents: {\n\t\t\t'settings': SettingsView\n\t\t},\n\t\trender(h) {\n\t\t\treturn h(\n\t\t\t\t'div',\n\t\t\t\t{\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\tid: 'cf-pro-settings'\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t[\n\t\t\t\t\th( 'settings')\n\t\t\t\t]\n\t\t\t)\n\t\t}\n\n\t});\n}\n\n//@TODO and this.\nimport FormTab from './views/Tab.vue';\n\nif( document.getElementById( 'cf-pro-app-tab' ) ){\n\tconst tabApp = new Vue({\n\t\tel: '#cf-pro-app-tab',\n\t\tstore,\n\t\tcomponents: {\n\t\t\t'settings': FormTab\n\t\t},\n\t\trender(h) {\n\t\t\treturn h(\n\t\t\t\t'div',\n\t\t\t\t{\n\t\t\t\t\tattrs: {\n\t\t\t\t\t\tid: 'cf-pro-settings-tab'\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t[\n\t\t\t\t\th( 'settings')\n\t\t\t\t]\n\t\t\t)\n\t\t}\n\t});\n}\n\n\n\nexport { store }\n\n\n\n// WEBPACK FOOTER //\n// ./client/index.js"],"sourceRoot":""}
|
includes/cf-pro-client/dist/client.js
ADDED
@@ -0,0 +1,3510 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/******/ (function(modules) { // webpackBootstrap
|
2 |
+
/******/ function hotDisposeChunk(chunkId) {
|
3 |
+
/******/ delete installedChunks[chunkId];
|
4 |
+
/******/ }
|
5 |
+
/******/ var parentHotUpdateCallback = this["webpackHotUpdate"];
|
6 |
+
/******/ this["webpackHotUpdate"] =
|
7 |
+
/******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars
|
8 |
+
/******/ hotAddUpdateChunk(chunkId, moreModules);
|
9 |
+
/******/ if(parentHotUpdateCallback) parentHotUpdateCallback(chunkId, moreModules);
|
10 |
+
/******/ } ;
|
11 |
+
/******/
|
12 |
+
/******/ function hotDownloadUpdateChunk(chunkId) { // eslint-disable-line no-unused-vars
|
13 |
+
/******/ var head = document.getElementsByTagName("head")[0];
|
14 |
+
/******/ var script = document.createElement("script");
|
15 |
+
/******/ script.type = "text/javascript";
|
16 |
+
/******/ script.charset = "utf-8";
|
17 |
+
/******/ script.src = __webpack_require__.p + "" + chunkId + "." + hotCurrentHash + ".hot-update.js";
|
18 |
+
/******/ head.appendChild(script);
|
19 |
+
/******/ }
|
20 |
+
/******/
|
21 |
+
/******/ function hotDownloadManifest() { // eslint-disable-line no-unused-vars
|
22 |
+
/******/ return new Promise(function(resolve, reject) {
|
23 |
+
/******/ if(typeof XMLHttpRequest === "undefined")
|
24 |
+
/******/ return reject(new Error("No browser support"));
|
25 |
+
/******/ try {
|
26 |
+
/******/ var request = new XMLHttpRequest();
|
27 |
+
/******/ var requestPath = __webpack_require__.p + "" + hotCurrentHash + ".hot-update.json";
|
28 |
+
/******/ request.open("GET", requestPath, true);
|
29 |
+
/******/ request.timeout = 10000;
|
30 |
+
/******/ request.send(null);
|
31 |
+
/******/ } catch(err) {
|
32 |
+
/******/ return reject(err);
|
33 |
+
/******/ }
|
34 |
+
/******/ request.onreadystatechange = function() {
|
35 |
+
/******/ if(request.readyState !== 4) return;
|
36 |
+
/******/ if(request.status === 0) {
|
37 |
+
/******/ // timeout
|
38 |
+
/******/ reject(new Error("Manifest request to " + requestPath + " timed out."));
|
39 |
+
/******/ } else if(request.status === 404) {
|
40 |
+
/******/ // no update available
|
41 |
+
/******/ resolve();
|
42 |
+
/******/ } else if(request.status !== 200 && request.status !== 304) {
|
43 |
+
/******/ // other failure
|
44 |
+
/******/ reject(new Error("Manifest request to " + requestPath + " failed."));
|
45 |
+
/******/ } else {
|
46 |
+
/******/ // success
|
47 |
+
/******/ try {
|
48 |
+
/******/ var update = JSON.parse(request.responseText);
|
49 |
+
/******/ } catch(e) {
|
50 |
+
/******/ reject(e);
|
51 |
+
/******/ return;
|
52 |
+
/******/ }
|
53 |
+
/******/ resolve(update);
|
54 |
+
/******/ }
|
55 |
+
/******/ };
|
56 |
+
/******/ });
|
57 |
+
/******/ }
|
58 |
+
/******/
|
59 |
+
/******/
|
60 |
+
/******/
|
61 |
+
/******/ var hotApplyOnUpdate = true;
|
62 |
+
/******/ var hotCurrentHash = "cb1efff36ae0ebaf9c6d"; // eslint-disable-line no-unused-vars
|
63 |
+
/******/ var hotCurrentModuleData = {};
|
64 |
+
/******/ var hotMainModule = true; // eslint-disable-line no-unused-vars
|
65 |
+
/******/ var hotCurrentParents = []; // eslint-disable-line no-unused-vars
|
66 |
+
/******/ var hotCurrentParentsTemp = []; // eslint-disable-line no-unused-vars
|
67 |
+
/******/
|
68 |
+
/******/ function hotCreateRequire(moduleId) { // eslint-disable-line no-unused-vars
|
69 |
+
/******/ var me = installedModules[moduleId];
|
70 |
+
/******/ if(!me) return __webpack_require__;
|
71 |
+
/******/ var fn = function(request) {
|
72 |
+
/******/ if(me.hot.active) {
|
73 |
+
/******/ if(installedModules[request]) {
|
74 |
+
/******/ if(installedModules[request].parents.indexOf(moduleId) < 0)
|
75 |
+
/******/ installedModules[request].parents.push(moduleId);
|
76 |
+
/******/ } else hotCurrentParents = [moduleId];
|
77 |
+
/******/ if(me.children.indexOf(request) < 0)
|
78 |
+
/******/ me.children.push(request);
|
79 |
+
/******/ } else {
|
80 |
+
/******/ console.warn("[HMR] unexpected require(" + request + ") from disposed module " + moduleId);
|
81 |
+
/******/ hotCurrentParents = [];
|
82 |
+
/******/ }
|
83 |
+
/******/ hotMainModule = false;
|
84 |
+
/******/ return __webpack_require__(request);
|
85 |
+
/******/ };
|
86 |
+
/******/ var ObjectFactory = function ObjectFactory(name) {
|
87 |
+
/******/ return {
|
88 |
+
/******/ configurable: true,
|
89 |
+
/******/ enumerable: true,
|
90 |
+
/******/ get: function() {
|
91 |
+
/******/ return __webpack_require__[name];
|
92 |
+
/******/ },
|
93 |
+
/******/ set: function(value) {
|
94 |
+
/******/ __webpack_require__[name] = value;
|
95 |
+
/******/ }
|
96 |
+
/******/ };
|
97 |
+
/******/ };
|
98 |
+
/******/ for(var name in __webpack_require__) {
|
99 |
+
/******/ if(Object.prototype.hasOwnProperty.call(__webpack_require__, name)) {
|
100 |
+
/******/ Object.defineProperty(fn, name, ObjectFactory(name));
|
101 |
+
/******/ }
|
102 |
+
/******/ }
|
103 |
+
/******/ Object.defineProperty(fn, "e", {
|
104 |
+
/******/ enumerable: true,
|
105 |
+
/******/ value: function(chunkId) {
|
106 |
+
/******/ if(hotStatus === "ready")
|
107 |
+
/******/ hotSetStatus("prepare");
|
108 |
+
/******/ hotChunksLoading++;
|
109 |
+
/******/ return __webpack_require__.e(chunkId).then(finishChunkLoading, function(err) {
|
110 |
+
/******/ finishChunkLoading();
|
111 |
+
/******/ throw err;
|
112 |
+
/******/ });
|
113 |
+
/******/
|
114 |
+
/******/ function finishChunkLoading() {
|
115 |
+
/******/ hotChunksLoading--;
|
116 |
+
/******/ if(hotStatus === "prepare") {
|
117 |
+
/******/ if(!hotWaitingFilesMap[chunkId]) {
|
118 |
+
/******/ hotEnsureUpdateChunk(chunkId);
|
119 |
+
/******/ }
|
120 |
+
/******/ if(hotChunksLoading === 0 && hotWaitingFiles === 0) {
|
121 |
+
/******/ hotUpdateDownloaded();
|
122 |
+
/******/ }
|
123 |
+
/******/ }
|
124 |
+
/******/ }
|
125 |
+
/******/ }
|
126 |
+
/******/ });
|
127 |
+
/******/ return fn;
|
128 |
+
/******/ }
|
129 |
+
/******/
|
130 |
+
/******/ function hotCreateModule(moduleId) { // eslint-disable-line no-unused-vars
|
131 |
+
/******/ var hot = {
|
132 |
+
/******/ // private stuff
|
133 |
+
/******/ _acceptedDependencies: {},
|
134 |
+
/******/ _declinedDependencies: {},
|
135 |
+
/******/ _selfAccepted: false,
|
136 |
+
/******/ _selfDeclined: false,
|
137 |
+
/******/ _disposeHandlers: [],
|
138 |
+
/******/ _main: hotMainModule,
|
139 |
+
/******/
|
140 |
+
/******/ // Module API
|
141 |
+
/******/ active: true,
|
142 |
+
/******/ accept: function(dep, callback) {
|
143 |
+
/******/ if(typeof dep === "undefined")
|
144 |
+
/******/ hot._selfAccepted = true;
|
145 |
+
/******/ else if(typeof dep === "function")
|
146 |
+
/******/ hot._selfAccepted = dep;
|
147 |
+
/******/ else if(typeof dep === "object")
|
148 |
+
/******/ for(var i = 0; i < dep.length; i++)
|
149 |
+
/******/ hot._acceptedDependencies[dep[i]] = callback || function() {};
|
150 |
+
/******/ else
|
151 |
+
/******/ hot._acceptedDependencies[dep] = callback || function() {};
|
152 |
+
/******/ },
|
153 |
+
/******/ decline: function(dep) {
|
154 |
+
/******/ if(typeof dep === "undefined")
|
155 |
+
/******/ hot._selfDeclined = true;
|
156 |
+
/******/ else if(typeof dep === "object")
|
157 |
+
/******/ for(var i = 0; i < dep.length; i++)
|
158 |
+
/******/ hot._declinedDependencies[dep[i]] = true;
|
159 |
+
/******/ else
|
160 |
+
/******/ hot._declinedDependencies[dep] = true;
|
161 |
+
/******/ },
|
162 |
+
/******/ dispose: function(callback) {
|
163 |
+
/******/ hot._disposeHandlers.push(callback);
|
164 |
+
/******/ },
|
165 |
+
/******/ addDisposeHandler: function(callback) {
|
166 |
+
/******/ hot._disposeHandlers.push(callback);
|
167 |
+
/******/ },
|
168 |
+
/******/ removeDisposeHandler: function(callback) {
|
169 |
+
/******/ var idx = hot._disposeHandlers.indexOf(callback);
|
170 |
+
/******/ if(idx >= 0) hot._disposeHandlers.splice(idx, 1);
|
171 |
+
/******/ },
|
172 |
+
/******/
|
173 |
+
/******/ // Management API
|
174 |
+
/******/ check: hotCheck,
|
175 |
+
/******/ apply: hotApply,
|
176 |
+
/******/ status: function(l) {
|
177 |
+
/******/ if(!l) return hotStatus;
|
178 |
+
/******/ hotStatusHandlers.push(l);
|
179 |
+
/******/ },
|
180 |
+
/******/ addStatusHandler: function(l) {
|
181 |
+
/******/ hotStatusHandlers.push(l);
|
182 |
+
/******/ },
|
183 |
+
/******/ removeStatusHandler: function(l) {
|
184 |
+
/******/ var idx = hotStatusHandlers.indexOf(l);
|
185 |
+
/******/ if(idx >= 0) hotStatusHandlers.splice(idx, 1);
|
186 |
+
/******/ },
|
187 |
+
/******/
|
188 |
+
/******/ //inherit from previous dispose call
|
189 |
+
/******/ data: hotCurrentModuleData[moduleId]
|
190 |
+
/******/ };
|
191 |
+
/******/ hotMainModule = true;
|
192 |
+
/******/ return hot;
|
193 |
+
/******/ }
|
194 |
+
/******/
|
195 |
+
/******/ var hotStatusHandlers = [];
|
196 |
+
/******/ var hotStatus = "idle";
|
197 |
+
/******/
|
198 |
+
/******/ function hotSetStatus(newStatus) {
|
199 |
+
/******/ hotStatus = newStatus;
|
200 |
+
/******/ for(var i = 0; i < hotStatusHandlers.length; i++)
|
201 |
+
/******/ hotStatusHandlers[i].call(null, newStatus);
|
202 |
+
/******/ }
|
203 |
+
/******/
|
204 |
+
/******/ // while downloading
|
205 |
+
/******/ var hotWaitingFiles = 0;
|
206 |
+
/******/ var hotChunksLoading = 0;
|
207 |
+
/******/ var hotWaitingFilesMap = {};
|
208 |
+
/******/ var hotRequestedFilesMap = {};
|
209 |
+
/******/ var hotAvailableFilesMap = {};
|
210 |
+
/******/ var hotDeferred;
|
211 |
+
/******/
|
212 |
+
/******/ // The update info
|
213 |
+
/******/ var hotUpdate, hotUpdateNewHash;
|
214 |
+
/******/
|
215 |
+
/******/ function toModuleId(id) {
|
216 |
+
/******/ var isNumber = (+id) + "" === id;
|
217 |
+
/******/ return isNumber ? +id : id;
|
218 |
+
/******/ }
|
219 |
+
/******/
|
220 |
+
/******/ function hotCheck(apply) {
|
221 |
+
/******/ if(hotStatus !== "idle") throw new Error("check() is only allowed in idle status");
|
222 |
+
/******/ hotApplyOnUpdate = apply;
|
223 |
+
/******/ hotSetStatus("check");
|
224 |
+
/******/ return hotDownloadManifest().then(function(update) {
|
225 |
+
/******/ if(!update) {
|
226 |
+
/******/ hotSetStatus("idle");
|
227 |
+
/******/ return null;
|
228 |
+
/******/ }
|
229 |
+
/******/
|
230 |
+
/******/ hotRequestedFilesMap = {};
|
231 |
+
/******/ hotWaitingFilesMap = {};
|
232 |
+
/******/ hotAvailableFilesMap = update.c;
|
233 |
+
/******/ hotUpdateNewHash = update.h;
|
234 |
+
/******/
|
235 |
+
/******/ hotSetStatus("prepare");
|
236 |
+
/******/ var promise = new Promise(function(resolve, reject) {
|
237 |
+
/******/ hotDeferred = {
|
238 |
+
/******/ resolve: resolve,
|
239 |
+
/******/ reject: reject
|
240 |
+
/******/ };
|
241 |
+
/******/ });
|
242 |
+
/******/ hotUpdate = {};
|
243 |
+
/******/ var chunkId = 0;
|
244 |
+
/******/ { // eslint-disable-line no-lone-blocks
|
245 |
+
/******/ /*globals chunkId */
|
246 |
+
/******/ hotEnsureUpdateChunk(chunkId);
|
247 |
+
/******/ }
|
248 |
+
/******/ if(hotStatus === "prepare" && hotChunksLoading === 0 && hotWaitingFiles === 0) {
|
249 |
+
/******/ hotUpdateDownloaded();
|
250 |
+
/******/ }
|
251 |
+
/******/ return promise;
|
252 |
+
/******/ });
|
253 |
+
/******/ }
|
254 |
+
/******/
|
255 |
+
/******/ function hotAddUpdateChunk(chunkId, moreModules) { // eslint-disable-line no-unused-vars
|
256 |
+
/******/ if(!hotAvailableFilesMap[chunkId] || !hotRequestedFilesMap[chunkId])
|
257 |
+
/******/ return;
|
258 |
+
/******/ hotRequestedFilesMap[chunkId] = false;
|
259 |
+
/******/ for(var moduleId in moreModules) {
|
260 |
+
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
261 |
+
/******/ hotUpdate[moduleId] = moreModules[moduleId];
|
262 |
+
/******/ }
|
263 |
+
/******/ }
|
264 |
+
/******/ if(--hotWaitingFiles === 0 && hotChunksLoading === 0) {
|
265 |
+
/******/ hotUpdateDownloaded();
|
266 |
+
/******/ }
|
267 |
+
/******/ }
|
268 |
+
/******/
|
269 |
+
/******/ function hotEnsureUpdateChunk(chunkId) {
|
270 |
+
/******/ if(!hotAvailableFilesMap[chunkId]) {
|
271 |
+
/******/ hotWaitingFilesMap[chunkId] = true;
|
272 |
+
/******/ } else {
|
273 |
+
/******/ hotRequestedFilesMap[chunkId] = true;
|
274 |
+
/******/ hotWaitingFiles++;
|
275 |
+
/******/ hotDownloadUpdateChunk(chunkId);
|
276 |
+
/******/ }
|
277 |
+
/******/ }
|
278 |
+
/******/
|
279 |
+
/******/ function hotUpdateDownloaded() {
|
280 |
+
/******/ hotSetStatus("ready");
|
281 |
+
/******/ var deferred = hotDeferred;
|
282 |
+
/******/ hotDeferred = null;
|
283 |
+
/******/ if(!deferred) return;
|
284 |
+
/******/ if(hotApplyOnUpdate) {
|
285 |
+
/******/ hotApply(hotApplyOnUpdate).then(function(result) {
|
286 |
+
/******/ deferred.resolve(result);
|
287 |
+
/******/ }, function(err) {
|
288 |
+
/******/ deferred.reject(err);
|
289 |
+
/******/ });
|
290 |
+
/******/ } else {
|
291 |
+
/******/ var outdatedModules = [];
|
292 |
+
/******/ for(var id in hotUpdate) {
|
293 |
+
/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
|
294 |
+
/******/ outdatedModules.push(toModuleId(id));
|
295 |
+
/******/ }
|
296 |
+
/******/ }
|
297 |
+
/******/ deferred.resolve(outdatedModules);
|
298 |
+
/******/ }
|
299 |
+
/******/ }
|
300 |
+
/******/
|
301 |
+
/******/ function hotApply(options) {
|
302 |
+
/******/ if(hotStatus !== "ready") throw new Error("apply() is only allowed in ready status");
|
303 |
+
/******/ options = options || {};
|
304 |
+
/******/
|
305 |
+
/******/ var cb;
|
306 |
+
/******/ var i;
|
307 |
+
/******/ var j;
|
308 |
+
/******/ var module;
|
309 |
+
/******/ var moduleId;
|
310 |
+
/******/
|
311 |
+
/******/ function getAffectedStuff(updateModuleId) {
|
312 |
+
/******/ var outdatedModules = [updateModuleId];
|
313 |
+
/******/ var outdatedDependencies = {};
|
314 |
+
/******/
|
315 |
+
/******/ var queue = outdatedModules.slice().map(function(id) {
|
316 |
+
/******/ return {
|
317 |
+
/******/ chain: [id],
|
318 |
+
/******/ id: id
|
319 |
+
/******/ };
|
320 |
+
/******/ });
|
321 |
+
/******/ while(queue.length > 0) {
|
322 |
+
/******/ var queueItem = queue.pop();
|
323 |
+
/******/ var moduleId = queueItem.id;
|
324 |
+
/******/ var chain = queueItem.chain;
|
325 |
+
/******/ module = installedModules[moduleId];
|
326 |
+
/******/ if(!module || module.hot._selfAccepted)
|
327 |
+
/******/ continue;
|
328 |
+
/******/ if(module.hot._selfDeclined) {
|
329 |
+
/******/ return {
|
330 |
+
/******/ type: "self-declined",
|
331 |
+
/******/ chain: chain,
|
332 |
+
/******/ moduleId: moduleId
|
333 |
+
/******/ };
|
334 |
+
/******/ }
|
335 |
+
/******/ if(module.hot._main) {
|
336 |
+
/******/ return {
|
337 |
+
/******/ type: "unaccepted",
|
338 |
+
/******/ chain: chain,
|
339 |
+
/******/ moduleId: moduleId
|
340 |
+
/******/ };
|
341 |
+
/******/ }
|
342 |
+
/******/ for(var i = 0; i < module.parents.length; i++) {
|
343 |
+
/******/ var parentId = module.parents[i];
|
344 |
+
/******/ var parent = installedModules[parentId];
|
345 |
+
/******/ if(!parent) continue;
|
346 |
+
/******/ if(parent.hot._declinedDependencies[moduleId]) {
|
347 |
+
/******/ return {
|
348 |
+
/******/ type: "declined",
|
349 |
+
/******/ chain: chain.concat([parentId]),
|
350 |
+
/******/ moduleId: moduleId,
|
351 |
+
/******/ parentId: parentId
|
352 |
+
/******/ };
|
353 |
+
/******/ }
|
354 |
+
/******/ if(outdatedModules.indexOf(parentId) >= 0) continue;
|
355 |
+
/******/ if(parent.hot._acceptedDependencies[moduleId]) {
|
356 |
+
/******/ if(!outdatedDependencies[parentId])
|
357 |
+
/******/ outdatedDependencies[parentId] = [];
|
358 |
+
/******/ addAllToSet(outdatedDependencies[parentId], [moduleId]);
|
359 |
+
/******/ continue;
|
360 |
+
/******/ }
|
361 |
+
/******/ delete outdatedDependencies[parentId];
|
362 |
+
/******/ outdatedModules.push(parentId);
|
363 |
+
/******/ queue.push({
|
364 |
+
/******/ chain: chain.concat([parentId]),
|
365 |
+
/******/ id: parentId
|
366 |
+
/******/ });
|
367 |
+
/******/ }
|
368 |
+
/******/ }
|
369 |
+
/******/
|
370 |
+
/******/ return {
|
371 |
+
/******/ type: "accepted",
|
372 |
+
/******/ moduleId: updateModuleId,
|
373 |
+
/******/ outdatedModules: outdatedModules,
|
374 |
+
/******/ outdatedDependencies: outdatedDependencies
|
375 |
+
/******/ };
|
376 |
+
/******/ }
|
377 |
+
/******/
|
378 |
+
/******/ function addAllToSet(a, b) {
|
379 |
+
/******/ for(var i = 0; i < b.length; i++) {
|
380 |
+
/******/ var item = b[i];
|
381 |
+
/******/ if(a.indexOf(item) < 0)
|
382 |
+
/******/ a.push(item);
|
383 |
+
/******/ }
|
384 |
+
/******/ }
|
385 |
+
/******/
|
386 |
+
/******/ // at begin all updates modules are outdated
|
387 |
+
/******/ // the "outdated" status can propagate to parents if they don't accept the children
|
388 |
+
/******/ var outdatedDependencies = {};
|
389 |
+
/******/ var outdatedModules = [];
|
390 |
+
/******/ var appliedUpdate = {};
|
391 |
+
/******/
|
392 |
+
/******/ var warnUnexpectedRequire = function warnUnexpectedRequire() {
|
393 |
+
/******/ console.warn("[HMR] unexpected require(" + result.moduleId + ") to disposed module");
|
394 |
+
/******/ };
|
395 |
+
/******/
|
396 |
+
/******/ for(var id in hotUpdate) {
|
397 |
+
/******/ if(Object.prototype.hasOwnProperty.call(hotUpdate, id)) {
|
398 |
+
/******/ moduleId = toModuleId(id);
|
399 |
+
/******/ var result;
|
400 |
+
/******/ if(hotUpdate[id]) {
|
401 |
+
/******/ result = getAffectedStuff(moduleId);
|
402 |
+
/******/ } else {
|
403 |
+
/******/ result = {
|
404 |
+
/******/ type: "disposed",
|
405 |
+
/******/ moduleId: id
|
406 |
+
/******/ };
|
407 |
+
/******/ }
|
408 |
+
/******/ var abortError = false;
|
409 |
+
/******/ var doApply = false;
|
410 |
+
/******/ var doDispose = false;
|
411 |
+
/******/ var chainInfo = "";
|
412 |
+
/******/ if(result.chain) {
|
413 |
+
/******/ chainInfo = "\nUpdate propagation: " + result.chain.join(" -> ");
|
414 |
+
/******/ }
|
415 |
+
/******/ switch(result.type) {
|
416 |
+
/******/ case "self-declined":
|
417 |
+
/******/ if(options.onDeclined)
|
418 |
+
/******/ options.onDeclined(result);
|
419 |
+
/******/ if(!options.ignoreDeclined)
|
420 |
+
/******/ abortError = new Error("Aborted because of self decline: " + result.moduleId + chainInfo);
|
421 |
+
/******/ break;
|
422 |
+
/******/ case "declined":
|
423 |
+
/******/ if(options.onDeclined)
|
424 |
+
/******/ options.onDeclined(result);
|
425 |
+
/******/ if(!options.ignoreDeclined)
|
426 |
+
/******/ abortError = new Error("Aborted because of declined dependency: " + result.moduleId + " in " + result.parentId + chainInfo);
|
427 |
+
/******/ break;
|
428 |
+
/******/ case "unaccepted":
|
429 |
+
/******/ if(options.onUnaccepted)
|
430 |
+
/******/ options.onUnaccepted(result);
|
431 |
+
/******/ if(!options.ignoreUnaccepted)
|
432 |
+
/******/ abortError = new Error("Aborted because " + moduleId + " is not accepted" + chainInfo);
|
433 |
+
/******/ break;
|
434 |
+
/******/ case "accepted":
|
435 |
+
/******/ if(options.onAccepted)
|
436 |
+
/******/ options.onAccepted(result);
|
437 |
+
/******/ doApply = true;
|
438 |
+
/******/ break;
|
439 |
+
/******/ case "disposed":
|
440 |
+
/******/ if(options.onDisposed)
|
441 |
+
/******/ options.onDisposed(result);
|
442 |
+
/******/ doDispose = true;
|
443 |
+
/******/ break;
|
444 |
+
/******/ default:
|
445 |
+
/******/ throw new Error("Unexception type " + result.type);
|
446 |
+
/******/ }
|
447 |
+
/******/ if(abortError) {
|
448 |
+
/******/ hotSetStatus("abort");
|
449 |
+
/******/ return Promise.reject(abortError);
|
450 |
+
/******/ }
|
451 |
+
/******/ if(doApply) {
|
452 |
+
/******/ appliedUpdate[moduleId] = hotUpdate[moduleId];
|
453 |
+
/******/ addAllToSet(outdatedModules, result.outdatedModules);
|
454 |
+
/******/ for(moduleId in result.outdatedDependencies) {
|
455 |
+
/******/ if(Object.prototype.hasOwnProperty.call(result.outdatedDependencies, moduleId)) {
|
456 |
+
/******/ if(!outdatedDependencies[moduleId])
|
457 |
+
/******/ outdatedDependencies[moduleId] = [];
|
458 |
+
/******/ addAllToSet(outdatedDependencies[moduleId], result.outdatedDependencies[moduleId]);
|
459 |
+
/******/ }
|
460 |
+
/******/ }
|
461 |
+
/******/ }
|
462 |
+
/******/ if(doDispose) {
|
463 |
+
/******/ addAllToSet(outdatedModules, [result.moduleId]);
|
464 |
+
/******/ appliedUpdate[moduleId] = warnUnexpectedRequire;
|
465 |
+
/******/ }
|
466 |
+
/******/ }
|
467 |
+
/******/ }
|
468 |
+
/******/
|
469 |
+
/******/ // Store self accepted outdated modules to require them later by the module system
|
470 |
+
/******/ var outdatedSelfAcceptedModules = [];
|
471 |
+
/******/ for(i = 0; i < outdatedModules.length; i++) {
|
472 |
+
/******/ moduleId = outdatedModules[i];
|
473 |
+
/******/ if(installedModules[moduleId] && installedModules[moduleId].hot._selfAccepted)
|
474 |
+
/******/ outdatedSelfAcceptedModules.push({
|
475 |
+
/******/ module: moduleId,
|
476 |
+
/******/ errorHandler: installedModules[moduleId].hot._selfAccepted
|
477 |
+
/******/ });
|
478 |
+
/******/ }
|
479 |
+
/******/
|
480 |
+
/******/ // Now in "dispose" phase
|
481 |
+
/******/ hotSetStatus("dispose");
|
482 |
+
/******/ Object.keys(hotAvailableFilesMap).forEach(function(chunkId) {
|
483 |
+
/******/ if(hotAvailableFilesMap[chunkId] === false) {
|
484 |
+
/******/ hotDisposeChunk(chunkId);
|
485 |
+
/******/ }
|
486 |
+
/******/ });
|
487 |
+
/******/
|
488 |
+
/******/ var idx;
|
489 |
+
/******/ var queue = outdatedModules.slice();
|
490 |
+
/******/ while(queue.length > 0) {
|
491 |
+
/******/ moduleId = queue.pop();
|
492 |
+
/******/ module = installedModules[moduleId];
|
493 |
+
/******/ if(!module) continue;
|
494 |
+
/******/
|
495 |
+
/******/ var data = {};
|
496 |
+
/******/
|
497 |
+
/******/ // Call dispose handlers
|
498 |
+
/******/ var disposeHandlers = module.hot._disposeHandlers;
|
499 |
+
/******/ for(j = 0; j < disposeHandlers.length; j++) {
|
500 |
+
/******/ cb = disposeHandlers[j];
|
501 |
+
/******/ cb(data);
|
502 |
+
/******/ }
|
503 |
+
/******/ hotCurrentModuleData[moduleId] = data;
|
504 |
+
/******/
|
505 |
+
/******/ // disable module (this disables requires from this module)
|
506 |
+
/******/ module.hot.active = false;
|
507 |
+
/******/
|
508 |
+
/******/ // remove module from cache
|
509 |
+
/******/ delete installedModules[moduleId];
|
510 |
+
/******/
|
511 |
+
/******/ // remove "parents" references from all children
|
512 |
+
/******/ for(j = 0; j < module.children.length; j++) {
|
513 |
+
/******/ var child = installedModules[module.children[j]];
|
514 |
+
/******/ if(!child) continue;
|
515 |
+
/******/ idx = child.parents.indexOf(moduleId);
|
516 |
+
/******/ if(idx >= 0) {
|
517 |
+
/******/ child.parents.splice(idx, 1);
|
518 |
+
/******/ }
|
519 |
+
/******/ }
|
520 |
+
/******/ }
|
521 |
+
/******/
|
522 |
+
/******/ // remove outdated dependency from module children
|
523 |
+
/******/ var dependency;
|
524 |
+
/******/ var moduleOutdatedDependencies;
|
525 |
+
/******/ for(moduleId in outdatedDependencies) {
|
526 |
+
/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
|
527 |
+
/******/ module = installedModules[moduleId];
|
528 |
+
/******/ if(module) {
|
529 |
+
/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
|
530 |
+
/******/ for(j = 0; j < moduleOutdatedDependencies.length; j++) {
|
531 |
+
/******/ dependency = moduleOutdatedDependencies[j];
|
532 |
+
/******/ idx = module.children.indexOf(dependency);
|
533 |
+
/******/ if(idx >= 0) module.children.splice(idx, 1);
|
534 |
+
/******/ }
|
535 |
+
/******/ }
|
536 |
+
/******/ }
|
537 |
+
/******/ }
|
538 |
+
/******/
|
539 |
+
/******/ // Not in "apply" phase
|
540 |
+
/******/ hotSetStatus("apply");
|
541 |
+
/******/
|
542 |
+
/******/ hotCurrentHash = hotUpdateNewHash;
|
543 |
+
/******/
|
544 |
+
/******/ // insert new code
|
545 |
+
/******/ for(moduleId in appliedUpdate) {
|
546 |
+
/******/ if(Object.prototype.hasOwnProperty.call(appliedUpdate, moduleId)) {
|
547 |
+
/******/ modules[moduleId] = appliedUpdate[moduleId];
|
548 |
+
/******/ }
|
549 |
+
/******/ }
|
550 |
+
/******/
|
551 |
+
/******/ // call accept handlers
|
552 |
+
/******/ var error = null;
|
553 |
+
/******/ for(moduleId in outdatedDependencies) {
|
554 |
+
/******/ if(Object.prototype.hasOwnProperty.call(outdatedDependencies, moduleId)) {
|
555 |
+
/******/ module = installedModules[moduleId];
|
556 |
+
/******/ moduleOutdatedDependencies = outdatedDependencies[moduleId];
|
557 |
+
/******/ var callbacks = [];
|
558 |
+
/******/ for(i = 0; i < moduleOutdatedDependencies.length; i++) {
|
559 |
+
/******/ dependency = moduleOutdatedDependencies[i];
|
560 |
+
/******/ cb = module.hot._acceptedDependencies[dependency];
|
561 |
+
/******/ if(callbacks.indexOf(cb) >= 0) continue;
|
562 |
+
/******/ callbacks.push(cb);
|
563 |
+
/******/ }
|
564 |
+
/******/ for(i = 0; i < callbacks.length; i++) {
|
565 |
+
/******/ cb = callbacks[i];
|
566 |
+
/******/ try {
|
567 |
+
/******/ cb(moduleOutdatedDependencies);
|
568 |
+
/******/ } catch(err) {
|
569 |
+
/******/ if(options.onErrored) {
|
570 |
+
/******/ options.onErrored({
|
571 |
+
/******/ type: "accept-errored",
|
572 |
+
/******/ moduleId: moduleId,
|
573 |
+
/******/ dependencyId: moduleOutdatedDependencies[i],
|
574 |
+
/******/ error: err
|
575 |
+
/******/ });
|
576 |
+
/******/ }
|
577 |
+
/******/ if(!options.ignoreErrored) {
|
578 |
+
/******/ if(!error)
|
579 |
+
/******/ error = err;
|
580 |
+
/******/ }
|
581 |
+
/******/ }
|
582 |
+
/******/ }
|
583 |
+
/******/ }
|
584 |
+
/******/ }
|
585 |
+
/******/
|
586 |
+
/******/ // Load self accepted modules
|
587 |
+
/******/ for(i = 0; i < outdatedSelfAcceptedModules.length; i++) {
|
588 |
+
/******/ var item = outdatedSelfAcceptedModules[i];
|
589 |
+
/******/ moduleId = item.module;
|
590 |
+
/******/ hotCurrentParents = [moduleId];
|
591 |
+
/******/ try {
|
592 |
+
/******/ __webpack_require__(moduleId);
|
593 |
+
/******/ } catch(err) {
|
594 |
+
/******/ if(typeof item.errorHandler === "function") {
|
595 |
+
/******/ try {
|
596 |
+
/******/ item.errorHandler(err);
|
597 |
+
/******/ } catch(err2) {
|
598 |
+
/******/ if(options.onErrored) {
|
599 |
+
/******/ options.onErrored({
|
600 |
+
/******/ type: "self-accept-error-handler-errored",
|
601 |
+
/******/ moduleId: moduleId,
|
602 |
+
/******/ error: err2,
|
603 |
+
/******/ orginalError: err
|
604 |
+
/******/ });
|
605 |
+
/******/ }
|
606 |
+
/******/ if(!options.ignoreErrored) {
|
607 |
+
/******/ if(!error)
|
608 |
+
/******/ error = err2;
|
609 |
+
/******/ }
|
610 |
+
/******/ if(!error)
|
611 |
+
/******/ error = err;
|
612 |
+
/******/ }
|
613 |
+
/******/ } else {
|
614 |
+
/******/ if(options.onErrored) {
|
615 |
+
/******/ options.onErrored({
|
616 |
+
/******/ type: "self-accept-errored",
|
617 |
+
/******/ moduleId: moduleId,
|
618 |
+
/******/ error: err
|
619 |
+
/******/ });
|
620 |
+
/******/ }
|
621 |
+
/******/ if(!options.ignoreErrored) {
|
622 |
+
/******/ if(!error)
|
623 |
+
/******/ error = err;
|
624 |
+
/******/ }
|
625 |
+
/******/ }
|
626 |
+
/******/ }
|
627 |
+
/******/ }
|
628 |
+
/******/
|
629 |
+
/******/ // handle errors in accept handlers and self accepted module load
|
630 |
+
/******/ if(error) {
|
631 |
+
/******/ hotSetStatus("fail");
|
632 |
+
/******/ return Promise.reject(error);
|
633 |
+
/******/ }
|
634 |
+
/******/
|
635 |
+
/******/ hotSetStatus("idle");
|
636 |
+
/******/ return Promise.resolve(outdatedModules);
|
637 |
+
/******/ }
|
638 |
+
/******/
|
639 |
+
/******/ // The module cache
|
640 |
+
/******/ var installedModules = {};
|
641 |
+
/******/
|
642 |
+
/******/ // The require function
|
643 |
+
/******/ function __webpack_require__(moduleId) {
|
644 |
+
/******/
|
645 |
+
/******/ // Check if module is in cache
|
646 |
+
/******/ if(installedModules[moduleId])
|
647 |
+
/******/ return installedModules[moduleId].exports;
|
648 |
+
/******/
|
649 |
+
/******/ // Create a new module (and put it into the cache)
|
650 |
+
/******/ var module = installedModules[moduleId] = {
|
651 |
+
/******/ i: moduleId,
|
652 |
+
/******/ l: false,
|
653 |
+
/******/ exports: {},
|
654 |
+
/******/ hot: hotCreateModule(moduleId),
|
655 |
+
/******/ parents: (hotCurrentParentsTemp = hotCurrentParents, hotCurrentParents = [], hotCurrentParentsTemp),
|
656 |
+
/******/ children: []
|
657 |
+
/******/ };
|
658 |
+
/******/
|
659 |
+
/******/ // Execute the module function
|
660 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
661 |
+
/******/
|
662 |
+
/******/ // Flag the module as loaded
|
663 |
+
/******/ module.l = true;
|
664 |
+
/******/
|
665 |
+
/******/ // Return the exports of the module
|
666 |
+
/******/ return module.exports;
|
667 |
+
/******/ }
|
668 |
+
/******/
|
669 |
+
/******/
|
670 |
+
/******/ // expose the modules object (__webpack_modules__)
|
671 |
+
/******/ __webpack_require__.m = modules;
|
672 |
+
/******/
|
673 |
+
/******/ // expose the module cache
|
674 |
+
/******/ __webpack_require__.c = installedModules;
|
675 |
+
/******/
|
676 |
+
/******/ // identity function for calling harmony imports with the correct context
|
677 |
+
/******/ __webpack_require__.i = function(value) { return value; };
|
678 |
+
/******/
|
679 |
+
/******/ // define getter function for harmony exports
|
680 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
681 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
682 |
+
/******/ Object.defineProperty(exports, name, {
|
683 |
+
/******/ configurable: false,
|
684 |
+
/******/ enumerable: true,
|
685 |
+
/******/ get: getter
|
686 |
+
/******/ });
|
687 |
+
/******/ }
|
688 |
+
/******/ };
|
689 |
+
/******/
|
690 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
691 |
+
/******/ __webpack_require__.n = function(module) {
|
692 |
+
/******/ var getter = module && module.__esModule ?
|
693 |
+
/******/ function getDefault() { return module['default']; } :
|
694 |
+
/******/ function getModuleExports() { return module; };
|
695 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
696 |
+
/******/ return getter;
|
697 |
+
/******/ };
|
698 |
+
/******/
|
699 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
700 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
701 |
+
/******/
|
702 |
+
/******/ // __webpack_public_path__
|
703 |
+
/******/ __webpack_require__.p = "/";
|
704 |
+
/******/
|
705 |
+
/******/ // __webpack_hash__
|
706 |
+
/******/ __webpack_require__.h = function() { return hotCurrentHash; };
|
707 |
+
/******/
|
708 |
+
/******/ // Load entry module and return exports
|
709 |
+
/******/ return hotCreateRequire(244)(__webpack_require__.s = 244);
|
710 |
+
/******/ })
|
711 |
+
/************************************************************************/
|
712 |
+
/******/ ([
|
713 |
+
/* 0 */
|
714 |
+
/* unknown exports provided */
|
715 |
+
/* all exports used */
|
716 |
+
/*!****************************************!*\
|
717 |
+
!*** ./~/inherits/inherits_browser.js ***!
|
718 |
+
\****************************************/
|
719 |
+
/***/ (function(module, exports) {
|
720 |
+
|
721 |
+
eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvaW5oZXJpdHMvaW5oZXJpdHNfYnJvd3Nlci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMO0FBQ0EsQ0FBQztBQUNEO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiIwLmpzIiwic291cmNlc0NvbnRlbnQiOlsiaWYgKHR5cGVvZiBPYmplY3QuY3JlYXRlID09PSAnZnVuY3Rpb24nKSB7XG4gIC8vIGltcGxlbWVudGF0aW9uIGZyb20gc3RhbmRhcmQgbm9kZS5qcyAndXRpbCcgbW9kdWxlXG4gIG1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gaW5oZXJpdHMoY3Rvciwgc3VwZXJDdG9yKSB7XG4gICAgY3Rvci5zdXBlcl8gPSBzdXBlckN0b3JcbiAgICBjdG9yLnByb3RvdHlwZSA9IE9iamVjdC5jcmVhdGUoc3VwZXJDdG9yLnByb3RvdHlwZSwge1xuICAgICAgY29uc3RydWN0b3I6IHtcbiAgICAgICAgdmFsdWU6IGN0b3IsXG4gICAgICAgIGVudW1lcmFibGU6IGZhbHNlLFxuICAgICAgICB3cml0YWJsZTogdHJ1ZSxcbiAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlXG4gICAgICB9XG4gICAgfSk7XG4gIH07XG59IGVsc2Uge1xuICAvLyBvbGQgc2Nob29sIHNoaW0gZm9yIG9sZCBicm93c2Vyc1xuICBtb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIGluaGVyaXRzKGN0b3IsIHN1cGVyQ3Rvcikge1xuICAgIGN0b3Iuc3VwZXJfID0gc3VwZXJDdG9yXG4gICAgdmFyIFRlbXBDdG9yID0gZnVuY3Rpb24gKCkge31cbiAgICBUZW1wQ3Rvci5wcm90b3R5cGUgPSBzdXBlckN0b3IucHJvdG90eXBlXG4gICAgY3Rvci5wcm90b3R5cGUgPSBuZXcgVGVtcEN0b3IoKVxuICAgIGN0b3IucHJvdG90eXBlLmNvbnN0cnVjdG9yID0gY3RvclxuICB9XG59XG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vaW5oZXJpdHMvaW5oZXJpdHNfYnJvd3Nlci5qc1xuLy8gbW9kdWxlIGlkID0gMFxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwic291cmNlUm9vdCI6IiJ9");
|
722 |
+
|
723 |
+
/***/ }),
|
724 |
+
/* 1 */
|
725 |
+
/* unknown exports provided */
|
726 |
+
/* all exports used */
|
727 |
+
/*!***************************!*\
|
728 |
+
!*** ./~/buffer/index.js ***!
|
729 |
+
\***************************/
|
730 |
+
/***/ (function(module, exports, __webpack_require__) {
|
731 |
+
|
732 |
+
"use strict";
|
733 |
+
eval("/* WEBPACK VAR INJECTION */(function(global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>\n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(/*! base64-js */ 139)\nvar ieee754 = __webpack_require__(/*! ieee754 */ 189)\nvar isArray = __webpack_require__(/*! isarray */ 71)\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return '<Buffer ' + str + '>'\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../webpack/buildin/global.js */ 12)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvYnVmZmVyL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E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XG4gICAgaGkgPSBjID4+IDhcbiAgICBsbyA9IGMgJSAyNTZcbiAgICBieXRlQXJyYXkucHVzaChsbylcbiAgICBieXRlQXJyYXkucHVzaChoaSlcbiAgfVxuXG4gIHJldHVybiBieXRlQXJyYXlcbn1cblxuZnVuY3Rpb24gYmFzZTY0VG9CeXRlcyAoc3RyKSB7XG4gIHJldHVybiBiYXNlNjQudG9CeXRlQXJyYXkoYmFzZTY0Y2xlYW4oc3RyKSlcbn1cblxuZnVuY3Rpb24gYmxpdEJ1ZmZlciAoc3JjLCBkc3QsIG9mZnNldCwgbGVuZ3RoKSB7XG4gIGZvciAodmFyIGkgPSAwOyBpIDwgbGVuZ3RoOyArK2kpIHtcbiAgICBpZiAoKGkgKyBvZmZzZXQgPj0gZHN0Lmxlbmd0aCkgfHwgKGkgPj0gc3JjLmxlbmd0aCkpIGJyZWFrXG4gICAgZHN0W2kgKyBvZmZzZXRdID0gc3JjW2ldXG4gIH1cbiAgcmV0dXJuIGlcbn1cblxuZnVuY3Rpb24gaXNuYW4gKHZhbCkge1xuICByZXR1cm4gdmFsICE9PSB2YWwgLy8gZXNsaW50LWRpc2FibGUtbGluZSBuby1zZWxmLWNvbXBhcmVcbn1cblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vfi9idWZmZXIvaW5kZXguanNcbi8vIG1vZHVsZSBpZCA9IDFcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sInNvdXJjZVJvb3QiOiIifQ==");
|
734 |
+
|
735 |
+
/***/ }),
|
736 |
+
/* 2 */
|
737 |
+
/* unknown exports provided */
|
738 |
+
/* all exports used */
|
739 |
+
/*!***************************************!*\
|
740 |
+
!*** ./~/vue-hot-reload-api/index.js ***!
|
741 |
+
\***************************************/
|
742 |
+
/***/ (function(module, exports) {
|
743 |
+
|
744 |
+
eval("var Vue // late bind\nvar version\nvar map = window.__VUE_HOT_MAP__ = Object.create(null)\nvar installed = false\nvar isBrowserify = false\nvar initHookName = 'beforeCreate'\n\nexports.install = function (vue, browserify) {\n if (installed) return\n installed = true\n\n Vue = vue.__esModule ? vue.default : vue\n version = Vue.version.split('.').map(Number)\n isBrowserify = browserify\n\n // compat with < 2.0.0-alpha.7\n if (Vue.config._lifecycleHooks.indexOf('init') > -1) {\n initHookName = 'init'\n }\n\n exports.compatible = version[0] >= 2\n if (!exports.compatible) {\n console.warn(\n '[HMR] You are using a version of vue-hot-reload-api that is ' +\n 'only compatible with Vue.js core ^2.0.0.'\n )\n return\n }\n}\n\n/**\n * Create a record for a hot module, which keeps track of its constructor\n * and instances\n *\n * @param {String} id\n * @param {Object} options\n */\n\nexports.createRecord = function (id, options) {\n var Ctor = null\n if (typeof options === 'function') {\n Ctor = options\n options = Ctor.options\n }\n makeOptionsHot(id, options)\n map[id] = {\n Ctor: Vue.extend(options),\n instances: []\n }\n}\n\n/**\n * Make a Component options object hot.\n *\n * @param {String} id\n * @param {Object} options\n */\n\nfunction makeOptionsHot (id, options) {\n injectHook(options, initHookName, function () {\n map[id].instances.push(this)\n })\n injectHook(options, 'beforeDestroy', function () {\n var instances = map[id].instances\n instances.splice(instances.indexOf(this), 1)\n })\n}\n\n/**\n * Inject a hook to a hot reloadable component so that\n * we can keep track of it.\n *\n * @param {Object} options\n * @param {String} name\n * @param {Function} hook\n */\n\nfunction injectHook (options, name, hook) {\n var existing = options[name]\n options[name] = existing\n ? Array.isArray(existing)\n ? existing.concat(hook)\n : [existing, hook]\n : [hook]\n}\n\nfunction tryWrap (fn) {\n return function (id, arg) {\n try { fn(id, arg) } catch (e) {\n console.error(e)\n console.warn('Something went wrong during Vue component hot-reload. Full reload required.')\n }\n }\n}\n\nexports.rerender = tryWrap(function (id, options) {\n var record = map[id]\n if (!options) {\n record.instances.slice().forEach(function (instance) {\n instance.$forceUpdate()\n })\n return\n }\n if (typeof options === 'function') {\n options = options.options\n }\n record.Ctor.options.render = options.render\n record.Ctor.options.staticRenderFns = options.staticRenderFns\n record.instances.slice().forEach(function (instance) {\n instance.$options.render = options.render\n instance.$options.staticRenderFns = options.staticRenderFns\n instance._staticTrees = [] // reset static trees\n instance.$forceUpdate()\n })\n})\n\nexports.reload = tryWrap(function (id, options) {\n var record = map[id]\n if (options) {\n if (typeof options === 'function') {\n options = options.options\n }\n makeOptionsHot(id, options)\n if (version[1] < 2) {\n // preserve pre 2.2 behavior for global mixin handling\n record.Ctor.extendOptions = options\n }\n var newCtor = record.Ctor.super.extend(options)\n record.Ctor.options = newCtor.options\n record.Ctor.cid = newCtor.cid\n record.Ctor.prototype = newCtor.prototype\n if (newCtor.release) {\n // temporary global mixin strategy used in < 2.0.0-alpha.6\n newCtor.release()\n }\n }\n record.instances.slice().forEach(function (instance) {\n if (instance.$vnode && instance.$vnode.context) {\n instance.$vnode.context.$forceUpdate()\n } else {\n console.warn('Root or manually mounted instance modified. Full reload required.')\n }\n })\n})\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvdnVlLWhvdC1yZWxvYWQtYXBpL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLFdBQVcsT0FBTztBQUNsQixXQUFXLE9BQU87QUFDbEI7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ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gICBpZiAobmV3Q3Rvci5yZWxlYXNlKSB7XG4gICAgICAvLyB0ZW1wb3JhcnkgZ2xvYmFsIG1peGluIHN0cmF0ZWd5IHVzZWQgaW4gPCAyLjAuMC1hbHBoYS42XG4gICAgICBuZXdDdG9yLnJlbGVhc2UoKVxuICAgIH1cbiAgfVxuICByZWNvcmQuaW5zdGFuY2VzLnNsaWNlKCkuZm9yRWFjaChmdW5jdGlvbiAoaW5zdGFuY2UpIHtcbiAgICBpZiAoaW5zdGFuY2UuJHZub2RlICYmIGluc3RhbmNlLiR2bm9kZS5jb250ZXh0KSB7XG4gICAgICBpbnN0YW5jZS4kdm5vZGUuY29udGV4dC4kZm9yY2VVcGRhdGUoKVxuICAgIH0gZWxzZSB7XG4gICAgICBjb25zb2xlLndhcm4oJ1Jvb3Qgb3IgbWFudWFsbHkgbW91bnRlZCBpbnN0YW5jZSBtb2RpZmllZC4gRnVsbCByZWxvYWQgcmVxdWlyZWQuJylcbiAgICB9XG4gIH0pXG59KVxuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L3Z1ZS1ob3QtcmVsb2FkLWFwaS9pbmRleC5qc1xuLy8gbW9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwic291cmNlUm9vdCI6IiJ9");
|
745 |
+
|
746 |
+
/***/ }),
|
747 |
+
/* 3 */
|
748 |
+
/* unknown exports provided */
|
749 |
+
/* all exports used */
|
750 |
+
/*!***************************!*\
|
751 |
+
!*** ./~/bn.js/lib/bn.js ***!
|
752 |
+
\***************************/
|
753 |
+
/***/ (function(module, exports, __webpack_require__) {
|
754 |
+
|
755 |
+
eval("/* WEBPACK VAR INJECTION */(function(module) {(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n Buffer = __webpack_require__(/*! buffer */ 241).Buffer;\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n }\n\n if (base === 16) {\n this._parseHex(number, start);\n } else {\n this._parseBase(number, base, start);\n }\n\n if (number[0] === '-') {\n this.negative = 1;\n }\n\n this.strip();\n\n if (endian !== 'le') return;\n\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex (str, start, end) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r <<= 4;\n\n // 'a' - 'f'\n if (c >= 49 && c <= 54) {\n r |= c - 49 + 0xa;\n\n // 'A' - 'F'\n } else if (c >= 17 && c <= 22) {\n r |= c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r |= c & 0xf;\n }\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n // Scan 24-bit chunks and add them to the number\n var off = 0;\n for (i = number.length - 6, j = 0; i >= start; i -= 6) {\n w = parseHex(number, i, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n // NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n if (i + 6 !== start) {\n w = parseHex(number, start, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n }\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '<BN-R: ' : '<BN: ') + this.toString(16) + '>';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n r.strip();\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(/*! ./../../webpack/buildin/module.js */ 240)(module)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvYm4uanMvbGliL2JuLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLEdBQUc7QUFDSDtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0EsR0FBRztBQUNIOztBQUVBO0FBQ0E7QUFDQTtBQUNB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b3V0ID0gd29yZCArIG91dDtcbiAgICAgICAgfVxuICAgICAgICBvZmYgKz0gMjtcbiAgICAgICAgaWYgKG9mZiA+PSAyNikge1xuICAgICAgICAgIG9mZiAtPSAyNjtcbiAgICAgICAgICBpLS07XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICAgIGlmIChjYXJyeSAhPT0gMCkge1xuICAgICAgICBvdXQgPSBjYXJyeS50b1N0cmluZygxNikgKyBvdXQ7XG4gICAgICB9XG4gICAgICB3aGlsZSAob3V0Lmxlbmd0aCAlIHBhZGRpbmcgIT09IDApIHtcbiAgICAgICAgb3V0ID0gJzAnICsgb3V0O1xuICAgICAgfVxuICAgICAgaWYgKHRoaXMubmVnYXRpdmUgIT09IDApIHtcbiAgICAgICAgb3V0ID0gJy0nICsgb3V0O1xuICAgICAgfVxuICAgICAgcmV0dXJuIG91dDtcbiAgICB9XG5cbiAgICBpZiAoYmFzZSA9PT0gKGJhc2UgfCAwKSAmJiBiYXNlID49IDIgJiYgYmFzZSA8PSAzNikge1xuICAgICAgLy8gdmFyIGdyb3VwU2l6ZSA9IE1hdGguZmxvb3IoQk4ud29yZFNpemUgKiBNYXRoLkxOMiAvIE1hdGgubG9nKGJhc2UpKTtcbiAgICAgIHZhciBncm91cFNpemUgPSBncm91cFNpemVzW2Jhc2VdO1xuICAgICAgLy8gdmFyIGdyb3VwQmFzZSA9IE1hdGgucG93KGJhc2UsIGdyb3VwU2l6ZSk7XG4gICAgICB2YXIgZ3JvdXBCYXNlID0gZ3JvdXBCYXNlc1tiYXNlXTtcbiAgICAgIG91dCA9ICcnO1xuICAgICAgdmFyIGMgPSB0aGlzLmNsb25lKCk7XG4gICAgICBjLm5lZ2F0aXZlID0gMDtcbiAgICAgIHdoaWxlICghYy5pc1plcm8oKSkge1xuICAgICAgICB2YXIgciA9IGMubW9kbihncm91cEJhc2UpLnRvU3RyaW5nKGJhc2UpO1xuICAgICAgICBjID0gYy5pZGl2bihncm91cEJhc2UpO1xuXG4gICAgIC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291bnRCaXRzICh3KSB7XG4gICAgICB2YXIgdCA9IHc7XG4gICAgICB2YXIgciA9IDA7XG4gICAgICBpZiAodCA+PSAweDEwMDApIHtcbiAgICAgICAgciArPSAxMztcbiAgICAgICAgdCA+Pj49IDEzO1xuICAgICAgfVxuICAgICAgaWYgKHQgPj0gMHg0MCkge1xuICAgICAgICByICs9IDc7XG4gICAgICAgIHQgPj4+PSA3O1xuICAgICAgfVxuICAgICAgaWYgKHQgPj0gMHg4KSB7XG4gICAgICAgIHIgKz0gNDtcbiAgICAgICAgdCA+Pj49IDQ7XG4gICAgICB9XG4gICAgICBpZiAodCA+PSAweDAyKSB7XG4gICAgICAgIHIgKz0gMjtcbiAgICAgICAgdCA+Pj49IDI7XG4gICAgICB9XG4gICAgICByZXR1cm4gciArIHQ7XG4gICAgfTtcbiAgfVxuXG4gIEJOLnByb3RvdHlwZS5femVyb0JpdHMgPSBmdW5jdGlvbiBfemVyb0JpdHMgKHcpIHtcbiAgICAvLyBTaG9ydC1jdXRcbiAgICBpZiAodyA9PT0gMCkgcmV0dXJuIDI2O1xuXG4gICAgdmFyIHQgPSB3O1xuICAgIHZhciByID0gMDtcbiAgICBpZiAoKHQgJiAweDFmZmYpID09PSAwKSB7XG4gICAgICByICs9IDEzO1xuICAgICAgdCA+Pj49IDEzO1xuICAgIH1cbiAgICBpZiAoKHQgJiAweDdmKSA9PT0gMCkge1xuICAgICAgciArPSA3O1xuICAgICAgdCA+Pj49IDc7XG4gICAgfVxuICAgIGlmICgodCAmIDB4ZikgPT09IDApIHtcbiAgICAgIHIgKz0gNDtcbiAgICAgIHQgPj4+PSA0O1xuICAgIH1cbiAgICBpZiAoKHQgJiAweDMpID09PSAwKSB7XG4gICAgICByICs9IDI7XG4gICAgICB0ID4+Pj0gMjtcbiAgICB9XG4gICAgaWYgKCh0ICYgMHgxKSA9PT0gMCkge1xuICAgICAgcisrO1xuICAgIH1cbiAgICByZXR1cm4gcjtcbiAgfTtcblxuICAvLyBSZXR1cm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AgICAgIHZhciByID0gdGhpcy5pYWRkKG51bSk7XG4gICAgICBudW0ubmVnYXRpdmUgPSAxO1xuICAgICAgcmV0dXJuIHIuX25vcm1TaWduKCk7XG5cbiAgICAvLyAtdGhpcyAtIG51bSA9IC0odGhpcyArIG51bSlcbiAgICB9IGVsc2UgaWYgKHRoaXMubmVnYXRpdmUgIT09IDApIHtcbiAgICAgIHRoaXMubmVnYXRpdmUgPSAwO1xuICAgICAgdGhpcy5pYWRkKG51bSk7XG4gICAgICB0aGlzLm5lZ2F0aXZlID0gMTtcbiAgICAgIHJldHVybiB0aGlzLl9ub3JtU2lnbigpO1xuICAgIH1cblxuICAgIC8vIEF0IHRoaXMgcG9pbnQgYm90aCBudW1iZXJzIGFyZSBwb3NpdGl2ZVxuICAgIHZhciBjbXAgPSB0aGlzLmNtcChudW0pO1xuXG4gICAgLy8gT3B0aW1pemF0aW9uIC0gemVyb2lmeVxuICAgIGlmIChjbXAgPT09IDApIHtcbiAgICAgIHRoaXMubmVnYXRpdmUgPSAwO1xuICAgICAgdGhpcy5sZW5ndGggPSAxO1xuICAgICAgdGhpcy53b3Jkc1swXSA9IDA7XG4gICAgICByZXR1cm4gdGhpcztcbiAgICB9XG5cbiAgICAvLyBhID4gYlxuICAgIHZhciBhLCBiO1xuICAgIGlmIChjbXAgPiAwKSB7XG4gICAgICBhID0gdGhpcztcbiAgICAgIGIgPSBudW07XG4gICAgfSBlbHNlIHtcbiAgICAgIGEgPSBudW07XG4gICAgICBiID0gdGhpcztcbiAgICB9XG5cbiAgICB2YXIgY2FycnkgPSAwO1xuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgYi5sZW5ndGg7IGkrKykge1xuICAgICAgciA9IChhLndvcmRzW2ldIHwgMCkgLSAoYi53b3Jkc1tpXSB8IDApICsgY2Fycnk7XG4gICAgICBjYXJyeSA9IHIgPj4gMjY7XG4gICAgICB0aGlzLndvcmRzW2ldID0gciAmIDB4M2ZmZmZmZjtcbiAgICB9XG4gICAgZm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iAgICB9XG4gIH07XG5cbiAgRkZUTS5wcm90b3R5cGUudHJhbnNmb3JtID0gZnVuY3Rpb24gdHJhbnNmb3JtIChyd3MsIGl3cywgcnR3cywgaXR3cywgTiwgcmJ0KSB7XG4gICAgdGhpcy5wZXJtdXRlKHJidCwgcndzLCBpd3MsIHJ0d3MsIGl0d3MsIE4pO1xuXG4gICAgZm9yICh2YXIgcyA9IDE7IHMgPCBOOyBzIDw8PSAxKSB7XG4gICAgICB2YXIgbCA9IHMgPDwgMTtcblxuICAgICAgdmFyIHJ0d2RmID0gTWF0aC5jb3MoMiAqIE1hdGguUEkgLyBsKTtcbiAgICAgIHZhciBpdHdkZiA9IE1hdGguc2luKDIgKiBNYXRoLlBJIC8gbCk7XG5cbiAgICAgIGZvciAodmFyIHAgPSAwOyBwIDwgTjsgcCArPSBsKSB7XG4gICAgICAgIHZhciBydHdkZl8gPSBydHdkZjtcbiAgICAgICAgdmFyIGl0d2RmXyA9IGl0d2RmO1xuXG4gICAgICAgIGZvciAodmFyIGogPSAwOyBqIDwgczsgaisrKSB7XG4gICAgICAgICAgdmFyIHJlID0gcnR3c1twICsgal07XG4gICAgICAgICAgdmFyIGllID0gaXR3c1twICsgal07XG5cbiAgICAgICAgICB2YXIgcm8gPSBydHdzW3AgKyBqICsgc107XG4gICAgICAgICAgdmFyIGlvID0gaXR3c1twICsgaiArIHNdO1xuXG4gICAgICAgICAgdmFyIHJ4ID0gcnR3ZGZfICogcm8gLSBpdHdkZl8gKiBpbztcblxuICAgICAgICAgIGlvID0gcnR3ZGZfICogaW8gKyBpdHdkZl8gKiBybztcbiAgICAgICAgICBybyA9IHJ4O1xuXG4gICAgICAgICAgcnR3c1twICsgal0gPSByZSArIHJvO1xuICAgICAgICAgIGl0d3NbcCArIGpdID0gaWUgKyBpbztcblxuICAgICAgICAgIHJ0d3NbcCArIGogKyBzXSA9IHJlIC0gcm87XG4gICAgICAgICAgaXR3c1twICsgaiArIHNdID0gaWUgLSBpbztcblxuICAgIC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aWYgKGkgPiAwKSB7XG4gICAgICAgIHguaXVzaHJuKGkpO1xuICAgICAgICB3aGlsZSAoaS0tID4gMCkge1xuICAgICAgICAgIGlmIChBLmlzT2RkKCkgfHwgQi5pc09kZCgpKSB7XG4gICAgICAgICAgICBBLmlhZGQoeXApO1xuICAgICAgICAgICAgQi5pc3ViKHhwKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBBLml1c2hybigxKTtcbiAgICAgICAgICBCLml1c2hybigxKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBmb3IgKHZhciBqID0gMCwgam0gPSAxOyAoeS53b3Jkc1swXSAmIGptKSA9PT0gMCAmJiBqIDwgMjY7ICsraiwgam0gPDw9IDEpO1xuICAgICAgaWYgKGogPiAwKSB7XG4gICAgICAgIHkuaXVzaHJuKGopO1xuICAgICAgICB3aGlsZSAoai0tID4gMCkge1xuICAgICAgICAgIGlmIChDLmlzT2RkKCkgfHwgRC5pc09kZCgpKSB7XG4gICAgICAgICAgICBDLmlhZGQoeXApO1xuICAgICAgICAgICAgRC5pc3ViKHhwKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBDLml1c2hybigxKTtcbiAgICAgICAgICBELml1c2hybigxKTtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBpZiAoeC5jbXAoeSkgPj0gMCkge1xuICAgICAgICB4LmlzdWIoeSk7XG4gICAgICAgIEEuaXN1YihDKTtcbiAgICAgICAgQi5pc3ViKEQpO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgeS5pc3ViKHgpO1xuICAgICAgICBDLmlzdWIoQSk7XG4gICAgICAgIEQuaXN1YihCKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4ge1xuICAgICAgYTogQyxcbiAgICAgIGI6IEQsXG4gICAgICBnY2Q6IHkuaXVzaGxuKGcpXG4gICAgfTtcbiAgfTtcblxuICAvLyBUaGlzIGlzIHJlZHVjZWQgaW5jYXJuYXRpb24gb2YgdG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XG5cbiAgICAgICAgaWYgKGJpdCA9PT0gMCAmJiBjdXJyZW50ID09PSAwKSB7XG4gICAgICAgICAgY3VycmVudExlbiA9IDA7XG4gICAgICAgICAgY29udGludWU7XG4gICAgICAgIH1cblxuICAgICAgICBjdXJyZW50IDw8PSAxO1xuICAgICAgICBjdXJyZW50IHw9IGJpdDtcbiAgICAgICAgY3VycmVudExlbisrO1xuICAgICAgICBpZiAoY3VycmVudExlbiAhPT0gd2luZG93U2l6ZSAmJiAoaSAhPT0gMCB8fCBqICE9PSAwKSkgY29udGludWU7XG5cbiAgICAgICAgcmVzID0gdGhpcy5tdWwocmVzLCB3bmRbY3VycmVudF0pO1xuICAgICAgICBjdXJyZW50TGVuID0gMDtcbiAgICAgICAgY3VycmVudCA9IDA7XG4gICAgICB9XG4gICAgICBzdGFydCA9IDI2O1xuICAgIH1cblxuICAgIHJldHVybiByZXM7XG4gIH07XG5cbiAgUmVkLnByb3RvdHlwZS5jb252ZXJ0VG8gPSBmdW5jdGlvbiBjb252ZXJ0VG8gKG51bSkge1xuICAgIHZhciByID0gbnVtLnVtb2QodGhpcy5tKTtcblxuICAgIHJldHVybiByID09PSBudW0gPyByLmNsb25lKCkgOiByO1xuICB9O1xuXG4gIFJlZC5wcm90b3R5cGUuY29udmVydEZyb20gPSBmdW5jdGlvbiBjb252ZXJ0RnJvbSAobnVtKSB7XG4gICAgdmFyIHJlcyA9IG51bS5jbG9uZSgpO1xuICAgIHJlcy5yZWQgPSBudWxsO1xuICAgIHJldHVybiByZXM7XG4gIH07XG5cbiAgLy9cbiAgLy8gTW9udGdvbWVyeSBtZXRob2QgZW5naW5lXG4gIC8vXG5cbiAgQk4ubW9udCA9IGZ1bmN0aW9uIG1vbnQgKG51bSkge1xuICAgIHJldHVybiBuZXcgTW9udChudW0pO1xuICB9O1xuXG4gIGZ1bmN0aW9uIE1vbnQgKG0pIHtcbiAgICBSZWQuY2FsbCh0aGlzLCBtKTtcblxuICAgIHRoaXMuc2hpZnQgPS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l4yID0gKEFeLTEgKiBSXi0xKSAqIFJeMiA9IEFeLTEgKiBSXG4gICAgdmFyIHJlcyA9IHRoaXMuaW1vZChhLl9pbnZtcCh0aGlzLm0pLm11bCh0aGlzLnIyKSk7XG4gICAgcmV0dXJuIHJlcy5fZm9yY2VSZWQodGhpcyk7XG4gIH07XG59KSh0eXBlb2YgbW9kdWxlID09PSAndW5kZWZpbmVkJyB8fCBtb2R1bGUsIHRoaXMpO1xuXG5cblxuLy8vLy8vLy8vLy8vLy8vLy8vXG4vLyBXRUJQQUNLIEZPT1RFUlxuLy8gLi9+L2JuLmpzL2xpYi9ibi5qc1xuLy8gbW9kdWxlIGlkID0gM1xuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwic291cmNlUm9vdCI6IiJ9");
|
756 |
+
|
757 |
+
/***/ }),
|
758 |
+
/* 4 */
|
759 |
+
/* unknown exports provided */
|
760 |
+
/* all exports used */
|
761 |
+
/*!********************************!*\
|
762 |
+
!*** ./~/safe-buffer/index.js ***!
|
763 |
+
\********************************/
|
764 |
+
/***/ (function(module, exports, __webpack_require__) {
|
765 |
+
|
766 |
+
eval("/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(/*! buffer */ 1)\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvc2FmZS1idWZmZXIvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxDQUFDO0FBQ0Q7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxLQUFLO0FBQ0w7QUFDQTtBQUNBLEdBQUc7QUFDSDtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwiZmlsZSI6IjQuanMiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGl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EZPT1RFUlxuLy8gLi9+L3NhZmUtYnVmZmVyL2luZGV4LmpzXG4vLyBtb2R1bGUgaWQgPSA0XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJzb3VyY2VSb290IjoiIn0=");
|
767 |
+
|
768 |
+
/***/ }),
|
769 |
+
/* 5 */
|
770 |
+
/* unknown exports provided */
|
771 |
+
/* all exports used */
|
772 |
+
/*!************************************!*\
|
773 |
+
!*** ./~/elliptic/lib/elliptic.js ***!
|
774 |
+
\************************************/
|
775 |
+
/***/ (function(module, exports, __webpack_require__) {
|
776 |
+
|
777 |
+
"use strict";
|
778 |
+
eval("\n\nvar elliptic = exports;\n\nelliptic.version = __webpack_require__(/*! ../package.json */ 181).version;\nelliptic.utils = __webpack_require__(/*! ./elliptic/utils */ 180);\nelliptic.rand = __webpack_require__(/*! brorand */ 58);\nelliptic.curve = __webpack_require__(/*! ./elliptic/curve */ 25);\nelliptic.curves = __webpack_require__(/*! ./elliptic/curves */ 172);\n\n// Protocols\nelliptic.ec = __webpack_require__(/*! ./elliptic/ec */ 173);\nelliptic.eddsa = __webpack_require__(/*! ./elliptic/eddsa */ 176);\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9ybXMvaW5jbHVkZXMvY2YtcHJvLWNsaWVudC9ub2RlX21vZHVsZXMvZWxsaXB0aWMvbGliL2VsbGlwdGljLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBIiwiZmlsZSI6IjUuanMiLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIHN0cmljdCc7XG5cbnZhciBlbGxpcHRpYyA9IGV4cG9ydHM7XG5cbmVsbGlwdGljLnZlcnNpb24gPSByZXF1aXJlKCcuLi9wYWNrYWdlLmpzb24nKS52ZXJzaW9uO1xuZWxsaXB0aWMudXRpbHMgPSByZXF1aXJlKCcuL2VsbGlwdGljL3V0aWxzJyk7XG5lbGxpcHRpYy5yYW5kID0gcmVxdWlyZSgnYnJvcmFuZCcpO1xuZWxsaXB0aWMuY3VydmUgPSByZXF1aXJlKCcuL2VsbGlwdGljL2N1cnZlJyk7XG5lbGxpcHRpYy5jdXJ2ZXMgPSByZXF1aXJlKCcuL2VsbGlwdGljL2N1cnZlcycpO1xuXG4vLyBQcm90b2NvbHNcbmVsbGlwdGljLmVjID0gcmVxdWlyZSgnLi9lbGxpcHRpYy9lYycpO1xuZWxsaXB0aWMuZWRkc2EgPSByZXF1aXJlKCcuL2VsbGlwdGljL2VkZHNhJyk7XG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vZWxsaXB0aWMvbGliL2VsbGlwdGljLmpzXG4vLyBtb2R1bGUgaWQgPSA1XG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJzb3VyY2VSb290IjoiIn0=");
|
779 |
+
|
780 |
+
/***/ }),
|
781 |
+
/* 6 */
|
782 |
+
/* exports provided: default */
|
783 |
+
/* all exports used */
|
784 |
+
/*!***************************************!*\
|
785 |
+
!*** ./~/vue/dist/vue.runtime.esm.js ***!
|
786 |
+
\***************************************/
|
787 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
788 |
+
|
789 |
+
"use strict";
|
790 |
+
eval("/* WEBPACK VAR INJECTION */(function(global) {Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/*!\n * Vue.js v2.4.4\n * (c) 2014-2017 Evan You\n * Released under the MIT License.\n */\n/* */\n\n// these helpers produces better vm code in JS engines due to their\n// explicitness and function inlining\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nvar _toString = Object.prototype.toString;\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(val);\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert a input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if a attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,is');\n\n/**\n * Remove an item from an array\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether the object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase()\n});\n\n/**\n * Simple bind, faster than native\n */\nfunction bind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n // record original fn length\n boundFn._length = fn.length;\n return boundFn\n}\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/**\n * Return same value\n */\nvar identity = function (_) { return _; };\n\n/**\n * Generate a static keys string from compiler modules.\n */\n\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated'\n];\n\n/* */\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: \"development\" !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: \"development\" !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n});\n\n/* */\n\nvar emptyObject = Object.freeze({});\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = /[^\\w.$]/;\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar formatComponentName = (null); // work around flow check\n\nif (true) {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return '<Root>'\n }\n var name = typeof vm === 'string'\n ? vm\n : typeof vm === 'function' && vm.options\n ? vm.options.name\n : vm._isVue\n ? vm.$options.name || vm.$options._componentTag\n : vm.name;\n\n var file = vm._isVue && vm.$options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"<Anonymous>\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n var generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (config.errorHandler) {\n config.errorHandler.call(null, err, vm, info);\n } else {\n if (true) {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if (inBrowser && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n }\n}\n\n/* */\n/* globals MutationObserver */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = UA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\n\n// Firefox has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\n/**\n * Defer a task to execute it asynchronously.\n */\nvar nextTick = (function () {\n var callbacks = [];\n var pending = false;\n var timerFunc;\n\n function nextTickHandler () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n }\n\n // the nextTick behavior leverages the microtask queue, which can be accessed\n // via either native Promise.then or MutationObserver.\n // MutationObserver has wider support, however it is seriously bugged in\n // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n // completely stops working after triggering a few times... so, if native\n // Promise is available, we will use it:\n /* istanbul ignore if */\n if (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n var logError = function (err) { console.error(err); };\n timerFunc = function () {\n p.then(nextTickHandler).catch(logError);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n } else if (!isIE && typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n )) {\n // use MutationObserver where native Promise is not available,\n // e.g. PhantomJS, iOS7, Android 4.4\n var counter = 1;\n var observer = new MutationObserver(nextTickHandler);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n } else {\n // fallback to setTimeout\n /* istanbul ignore next */\n timerFunc = function () {\n setTimeout(nextTickHandler, 0);\n };\n }\n\n return function queueNextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve, reject) {\n _resolve = resolve;\n })\n }\n }\n})();\n\nvar _Set;\n/* istanbul ignore if */\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = (function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\n\nvar uid$1 = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid$1++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);[\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n]\n.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * By default, when a reactive property is set, the new value is\n * also converted to become reactive. However when passing down props,\n * we don't want to force conversion because the value may be a nested value\n * under a frozen data structure. Converting it would defeat the optimization.\n */\nvar observerState = {\n shouldConvert: true\n};\n\n/**\n * Observer class that are attached to each observed\n * object. Once attached, the observer converts target\n * object's property keys into getter/setters that\n * collect dependencies and dispatches updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i], obj[keys[i]]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value)) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n observerState.shouldConvert &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (\"development\" !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (hasOwn(target, key)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"development\" !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n \"development\" !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (true) {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this) : parentVal\n )\n }\n } else if (parentVal || childVal) {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm)\n : parentVal;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n \"development\" !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn.call(this, parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (parentVal, childVal) {\n var res = Object.create(parentVal || null);\n return childVal\n ? extend(res, childVal)\n : res\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (parentVal, childVal) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key in childVal) {\n var parent = ret[key];\n var child = childVal[key];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (parentVal, childVal) {\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n var lower = key.toLowerCase();\n if (isBuiltInTag(lower) || config.isReservedTag(lower)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + key\n );\n }\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (true) {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options) {\n var inject = options.inject;\n if (Array.isArray(inject)) {\n var normalized = options.inject = {};\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = inject[i];\n }\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (true) {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child);\n normalizeInject(child);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (\"development\" !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // handle boolean props\n if (isType(Boolean, prop.type)) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {\n value = true;\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldConvert = observerState.shouldConvert;\n observerState.shouldConvert = true;\n observe(value);\n observerState.shouldConvert = prevShouldConvert;\n }\n if (true) {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (\"development\" !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n 'Invalid prop: type check failed for prop \"' + name + '\".' +\n ' Expected ' + expectedTypes.map(capitalize).join(', ') +\n ', got ' + Object.prototype.toString.call(value).slice(8, -1) + '.',\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n var t = typeof value;\n valid = t === expectedType.toLowerCase();\n // for primitive wrapper objects\n if (!valid && t === 'object') {\n valid = value instanceof type;\n }\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isType (type, fn) {\n if (!Array.isArray(fn)) {\n return getType(fn) === getType(type)\n }\n for (var i = 0, len = fn.length; i < len; i++) {\n if (getType(fn[i]) === getType(type)) {\n return true\n }\n }\n /* istanbul ignore next */\n return false\n}\n\n/* */\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (true) {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n \"referenced during render. Make sure to declare reactive data \" +\n \"properties in the data option.\",\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' &&\n Proxy.toString().match(/native code/);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\nvar mark;\nvar measure;\n\nif (true) {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.functionalContext = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: {} };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode, deep) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.isCloned = true;\n if (deep && vnode.children) {\n cloned.children = cloneVNodes(vnode.children);\n }\n return cloned\n}\n\nfunction cloneVNodes (vnodes, deep) {\n var len = vnodes.length;\n var res = new Array(len);\n for (var i = 0; i < len; i++) {\n res[i] = cloneVNode(vnodes[i], deep);\n }\n return res\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n var plain = !(passive || once$$1 || capture);\n return {\n name: name,\n plain: plain,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\n// #6552\nfunction prioritizePlainEvents (a, b) {\n return a.plain ? -1 : b.plain ? 1 : 0\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, cur, old, event;\n var toAdd = [];\n var hasModifier = false;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (!event.plain) { hasModifier = true; }\n if (isUndef(cur)) {\n \"development\" !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n event.handler = cur;\n toAdd.push(event);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n if (toAdd.length) {\n if (hasModifier) { toAdd.sort(prioritizePlainEvents); }\n for (var i = 0; i < toAdd.length; i++) {\n var event$1 = toAdd[i];\n add(event$1.name, event$1.handler, event$1.once, event$1.capture, event$1.passive);\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (true) {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array<VNode>. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g. <template>, <slot>, v-for, or when the children is provided by user\n// with hand-written render functions / JSX. In such cases a full normalization\n// is needed to cater to all possible types of children values.\nfunction normalizeChildren (children) {\n return isPrimitive(children)\n ? [createTextVNode(children)]\n : Array.isArray(children)\n ? normalizeArrayChildren(children)\n : undefined\n}\n\nfunction isTextNode (node) {\n return isDef(node) && isDef(node.text) && isFalse(node.isComment)\n}\n\nfunction normalizeArrayChildren (children, nestedIndex) {\n var res = [];\n var i, c, last;\n for (i = 0; i < children.length; i++) {\n c = children[i];\n if (isUndef(c) || typeof c === 'boolean') { continue }\n last = res[res.length - 1];\n // nested\n if (Array.isArray(c)) {\n res.push.apply(res, normalizeArrayChildren(c, ((nestedIndex || '') + \"_\" + i)));\n } else if (isPrimitive(c)) {\n if (isTextNode(last)) {\n // merge adjacent text nodes\n // this is necessary for SSR hydration because text nodes are\n // essentially merged when rendered to HTML strings\n (last).text += String(c);\n } else if (c !== '') {\n // convert primitive to vnode\n res.push(createTextVNode(c));\n }\n } else {\n if (isTextNode(c) && isTextNode(last)) {\n // merge adjacent text nodes\n res[res.length - 1] = createTextVNode(last.text + c.text);\n } else {\n // default key for nested array children (likely generated by v-for)\n if (isTrue(children._isVList) &&\n isDef(c.tag) &&\n isUndef(c.key) &&\n isDef(nestedIndex)) {\n c.key = \"__vlist\" + nestedIndex + \"_\" + i + \"__\";\n }\n res.push(c);\n }\n }\n }\n return res\n}\n\n/* */\n\nfunction ensureCtor (comp, base) {\n if (comp.__esModule && comp.default) {\n comp = comp.default;\n }\n return isObject(comp)\n ? base.extend(comp)\n : comp\n}\n\nfunction createAsyncPlaceholder (\n factory,\n data,\n context,\n children,\n tag\n) {\n var node = createEmptyVNode();\n node.asyncFactory = factory;\n node.asyncMeta = { data: data, context: context, children: children, tag: tag };\n return node\n}\n\nfunction resolveAsyncComponent (\n factory,\n baseCtor,\n context\n) {\n if (isTrue(factory.error) && isDef(factory.errorComp)) {\n return factory.errorComp\n }\n\n if (isDef(factory.resolved)) {\n return factory.resolved\n }\n\n if (isTrue(factory.loading) && isDef(factory.loadingComp)) {\n return factory.loadingComp\n }\n\n if (isDef(factory.contexts)) {\n // already pending\n factory.contexts.push(context);\n } else {\n var contexts = factory.contexts = [context];\n var sync = true;\n\n var forceRender = function () {\n for (var i = 0, l = contexts.length; i < l; i++) {\n contexts[i].$forceUpdate();\n }\n };\n\n var resolve = once(function (res) {\n // cache resolved\n factory.resolved = ensureCtor(res, baseCtor);\n // invoke callbacks only if this is not a synchronous resolve\n // (async resolves are shimmed as synchronous during SSR)\n if (!sync) {\n forceRender();\n }\n });\n\n var reject = once(function (reason) {\n \"development\" !== 'production' && warn(\n \"Failed to resolve async component: \" + (String(factory)) +\n (reason ? (\"\\nReason: \" + reason) : '')\n );\n if (isDef(factory.errorComp)) {\n factory.error = true;\n forceRender();\n }\n });\n\n var res = factory(resolve, reject);\n\n if (isObject(res)) {\n if (typeof res.then === 'function') {\n // () => Promise\n if (isUndef(factory.resolved)) {\n res.then(resolve, reject);\n }\n } else if (isDef(res.component) && typeof res.component.then === 'function') {\n res.component.then(resolve, reject);\n\n if (isDef(res.error)) {\n factory.errorComp = ensureCtor(res.error, baseCtor);\n }\n\n if (isDef(res.loading)) {\n factory.loadingComp = ensureCtor(res.loading, baseCtor);\n if (res.delay === 0) {\n factory.loading = true;\n } else {\n setTimeout(function () {\n if (isUndef(factory.resolved) && isUndef(factory.error)) {\n factory.loading = true;\n forceRender();\n }\n }, res.delay || 200);\n }\n }\n\n if (isDef(res.timeout)) {\n setTimeout(function () {\n if (isUndef(factory.resolved)) {\n reject(\n true\n ? (\"timeout (\" + (res.timeout) + \"ms)\")\n : null\n );\n }\n }, res.timeout);\n }\n }\n }\n\n sync = false;\n // return in case resolved synchronously\n return factory.loading\n ? factory.loadingComp\n : factory.resolved\n }\n}\n\n/* */\n\nfunction isAsyncPlaceholder (node) {\n return node.isComment && node.asyncFactory\n}\n\n/* */\n\nfunction getFirstComponentChild (children) {\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; i++) {\n var c = children[i];\n if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {\n return c\n }\n }\n }\n}\n\n/* */\n\n/* */\n\nfunction initEvents (vm) {\n vm._events = Object.create(null);\n vm._hasHookEvent = false;\n // init parent attached events\n var listeners = vm.$options._parentListeners;\n if (listeners) {\n updateComponentListeners(vm, listeners);\n }\n}\n\nvar target;\n\nfunction add (event, fn, once$$1) {\n if (once$$1) {\n target.$once(event, fn);\n } else {\n target.$on(event, fn);\n }\n}\n\nfunction remove$1 (event, fn) {\n target.$off(event, fn);\n}\n\nfunction updateComponentListeners (\n vm,\n listeners,\n oldListeners\n) {\n target = vm;\n updateListeners(listeners, oldListeners || {}, add, remove$1, vm);\n}\n\nfunction eventsMixin (Vue) {\n var hookRE = /^hook:/;\n Vue.prototype.$on = function (event, fn) {\n var this$1 = this;\n\n var vm = this;\n if (Array.isArray(event)) {\n for (var i = 0, l = event.length; i < l; i++) {\n this$1.$on(event[i], fn);\n }\n } else {\n (vm._events[event] || (vm._events[event] = [])).push(fn);\n // optimize hook:event cost by using a boolean flag marked at registration\n // instead of a hash lookup\n if (hookRE.test(event)) {\n vm._hasHookEvent = true;\n }\n }\n return vm\n };\n\n Vue.prototype.$once = function (event, fn) {\n var vm = this;\n function on () {\n vm.$off(event, on);\n fn.apply(vm, arguments);\n }\n on.fn = fn;\n vm.$on(event, on);\n return vm\n };\n\n Vue.prototype.$off = function (event, fn) {\n var this$1 = this;\n\n var vm = this;\n // all\n if (!arguments.length) {\n vm._events = Object.create(null);\n return vm\n }\n // array of events\n if (Array.isArray(event)) {\n for (var i = 0, l = event.length; i < l; i++) {\n this$1.$off(event[i], fn);\n }\n return vm\n }\n // specific event\n var cbs = vm._events[event];\n if (!cbs) {\n return vm\n }\n if (arguments.length === 1) {\n vm._events[event] = null;\n return vm\n }\n if (fn) {\n // specific handler\n var cb;\n var i$1 = cbs.length;\n while (i$1--) {\n cb = cbs[i$1];\n if (cb === fn || cb.fn === fn) {\n cbs.splice(i$1, 1);\n break\n }\n }\n }\n return vm\n };\n\n Vue.prototype.$emit = function (event) {\n var vm = this;\n if (true) {\n var lowerCaseEvent = event.toLowerCase();\n if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {\n tip(\n \"Event \\\"\" + lowerCaseEvent + \"\\\" is emitted in component \" +\n (formatComponentName(vm)) + \" but the handler is registered for \\\"\" + event + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and you cannot use \" +\n \"v-on to listen to camelCase events when using in-DOM templates. \" +\n \"You should probably use \\\"\" + (hyphenate(event)) + \"\\\" instead of \\\"\" + event + \"\\\".\"\n );\n }\n }\n var cbs = vm._events[event];\n if (cbs) {\n cbs = cbs.length > 1 ? toArray(cbs) : cbs;\n var args = toArray(arguments, 1);\n for (var i = 0, l = cbs.length; i < l; i++) {\n try {\n cbs[i].apply(vm, args);\n } catch (e) {\n handleError(e, vm, (\"event handler for \\\"\" + event + \"\\\"\"));\n }\n }\n }\n return vm\n };\n}\n\n/* */\n\n/**\n * Runtime helper for resolving raw children VNodes into a slot object.\n */\nfunction resolveSlots (\n children,\n context\n) {\n var slots = {};\n if (!children) {\n return slots\n }\n var defaultSlot = [];\n for (var i = 0, l = children.length; i < l; i++) {\n var child = children[i];\n var data = child.data;\n // remove slot attribute if the node is resolved as a Vue slot node\n if (data && data.attrs && data.attrs.slot) {\n delete data.attrs.slot;\n }\n // named slots should only be respected if the vnode was rendered in the\n // same context.\n if ((child.context === context || child.functionalContext === context) &&\n data && data.slot != null\n ) {\n var name = child.data.slot;\n var slot = (slots[name] || (slots[name] = []));\n if (child.tag === 'template') {\n slot.push.apply(slot, child.children);\n } else {\n slot.push(child);\n }\n } else {\n defaultSlot.push(child);\n }\n }\n // ignore whitespace\n if (!defaultSlot.every(isWhitespace)) {\n slots.default = defaultSlot;\n }\n return slots\n}\n\nfunction isWhitespace (node) {\n return node.isComment || node.text === ' '\n}\n\nfunction resolveScopedSlots (\n fns, // see flow/vnode\n res\n) {\n res = res || {};\n for (var i = 0; i < fns.length; i++) {\n if (Array.isArray(fns[i])) {\n resolveScopedSlots(fns[i], res);\n } else {\n res[fns[i].key] = fns[i].fn;\n }\n }\n return res\n}\n\n/* */\n\nvar activeInstance = null;\nvar isUpdatingChildComponent = false;\n\nfunction initLifecycle (vm) {\n var options = vm.$options;\n\n // locate first non-abstract parent\n var parent = options.parent;\n if (parent && !options.abstract) {\n while (parent.$options.abstract && parent.$parent) {\n parent = parent.$parent;\n }\n parent.$children.push(vm);\n }\n\n vm.$parent = parent;\n vm.$root = parent ? parent.$root : vm;\n\n vm.$children = [];\n vm.$refs = {};\n\n vm._watcher = null;\n vm._inactive = null;\n vm._directInactive = false;\n vm._isMounted = false;\n vm._isDestroyed = false;\n vm._isBeingDestroyed = false;\n}\n\nfunction lifecycleMixin (Vue) {\n Vue.prototype._update = function (vnode, hydrating) {\n var vm = this;\n if (vm._isMounted) {\n callHook(vm, 'beforeUpdate');\n }\n var prevEl = vm.$el;\n var prevVnode = vm._vnode;\n var prevActiveInstance = activeInstance;\n activeInstance = vm;\n vm._vnode = vnode;\n // Vue.prototype.__patch__ is injected in entry points\n // based on the rendering backend used.\n if (!prevVnode) {\n // initial render\n vm.$el = vm.__patch__(\n vm.$el, vnode, hydrating, false /* removeOnly */,\n vm.$options._parentElm,\n vm.$options._refElm\n );\n // no need for the ref nodes after initial patch\n // this prevents keeping a detached DOM tree in memory (#5851)\n vm.$options._parentElm = vm.$options._refElm = null;\n } else {\n // updates\n vm.$el = vm.__patch__(prevVnode, vnode);\n }\n activeInstance = prevActiveInstance;\n // update __vue__ reference\n if (prevEl) {\n prevEl.__vue__ = null;\n }\n if (vm.$el) {\n vm.$el.__vue__ = vm;\n }\n // if parent is an HOC, update its $el as well\n if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {\n vm.$parent.$el = vm.$el;\n }\n // updated hook is called by the scheduler to ensure that children are\n // updated in a parent's updated hook.\n };\n\n Vue.prototype.$forceUpdate = function () {\n var vm = this;\n if (vm._watcher) {\n vm._watcher.update();\n }\n };\n\n Vue.prototype.$destroy = function () {\n var vm = this;\n if (vm._isBeingDestroyed) {\n return\n }\n callHook(vm, 'beforeDestroy');\n vm._isBeingDestroyed = true;\n // remove self from parent\n var parent = vm.$parent;\n if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {\n remove(parent.$children, vm);\n }\n // teardown watchers\n if (vm._watcher) {\n vm._watcher.teardown();\n }\n var i = vm._watchers.length;\n while (i--) {\n vm._watchers[i].teardown();\n }\n // remove reference from data ob\n // frozen object may not have observer.\n if (vm._data.__ob__) {\n vm._data.__ob__.vmCount--;\n }\n // call the last hook...\n vm._isDestroyed = true;\n // invoke destroy hooks on current rendered tree\n vm.__patch__(vm._vnode, null);\n // fire destroyed hook\n callHook(vm, 'destroyed');\n // turn off all instance listeners.\n vm.$off();\n // remove __vue__ reference\n if (vm.$el) {\n vm.$el.__vue__ = null;\n }\n };\n}\n\nfunction mountComponent (\n vm,\n el,\n hydrating\n) {\n vm.$el = el;\n if (!vm.$options.render) {\n vm.$options.render = createEmptyVNode;\n if (true) {\n /* istanbul ignore if */\n if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||\n vm.$options.el || el) {\n warn(\n 'You are using the runtime-only build of Vue where the template ' +\n 'compiler is not available. Either pre-compile the templates into ' +\n 'render functions, or use the compiler-included build.',\n vm\n );\n } else {\n warn(\n 'Failed to mount component: template or render function not defined.',\n vm\n );\n }\n }\n }\n callHook(vm, 'beforeMount');\n\n var updateComponent;\n /* istanbul ignore if */\n if (\"development\" !== 'production' && config.performance && mark) {\n updateComponent = function () {\n var name = vm._name;\n var id = vm._uid;\n var startTag = \"vue-perf-start:\" + id;\n var endTag = \"vue-perf-end:\" + id;\n\n mark(startTag);\n var vnode = vm._render();\n mark(endTag);\n measure((name + \" render\"), startTag, endTag);\n\n mark(startTag);\n vm._update(vnode, hydrating);\n mark(endTag);\n measure((name + \" patch\"), startTag, endTag);\n };\n } else {\n updateComponent = function () {\n vm._update(vm._render(), hydrating);\n };\n }\n\n vm._watcher = new Watcher(vm, updateComponent, noop);\n hydrating = false;\n\n // manually mounted instance, call mounted on self\n // mounted is called for render-created child components in its inserted hook\n if (vm.$vnode == null) {\n vm._isMounted = true;\n callHook(vm, 'mounted');\n }\n return vm\n}\n\nfunction updateChildComponent (\n vm,\n propsData,\n listeners,\n parentVnode,\n renderChildren\n) {\n if (true) {\n isUpdatingChildComponent = true;\n }\n\n // determine whether component has slot children\n // we need to do this before overwriting $options._renderChildren\n var hasChildren = !!(\n renderChildren || // has new static slots\n vm.$options._renderChildren || // has old static slots\n parentVnode.data.scopedSlots || // has new scoped slots\n vm.$scopedSlots !== emptyObject // has old scoped slots\n );\n\n vm.$options._parentVnode = parentVnode;\n vm.$vnode = parentVnode; // update vm's placeholder node without re-render\n\n if (vm._vnode) { // update child tree's parent\n vm._vnode.parent = parentVnode;\n }\n vm.$options._renderChildren = renderChildren;\n\n // update $attrs and $listeners hash\n // these are also reactive so they may trigger child update if the child\n // used them during render\n vm.$attrs = (parentVnode.data && parentVnode.data.attrs) || emptyObject;\n vm.$listeners = listeners || emptyObject;\n\n // update props\n if (propsData && vm.$options.props) {\n observerState.shouldConvert = false;\n var props = vm._props;\n var propKeys = vm.$options._propKeys || [];\n for (var i = 0; i < propKeys.length; i++) {\n var key = propKeys[i];\n props[key] = validateProp(key, vm.$options.props, propsData, vm);\n }\n observerState.shouldConvert = true;\n // keep a copy of raw propsData\n vm.$options.propsData = propsData;\n }\n\n // update listeners\n if (listeners) {\n var oldListeners = vm.$options._parentListeners;\n vm.$options._parentListeners = listeners;\n updateComponentListeners(vm, listeners, oldListeners);\n }\n // resolve slots + force update if has children\n if (hasChildren) {\n vm.$slots = resolveSlots(renderChildren, parentVnode.context);\n vm.$forceUpdate();\n }\n\n if (true) {\n isUpdatingChildComponent = false;\n }\n}\n\nfunction isInInactiveTree (vm) {\n while (vm && (vm = vm.$parent)) {\n if (vm._inactive) { return true }\n }\n return false\n}\n\nfunction activateChildComponent (vm, direct) {\n if (direct) {\n vm._directInactive = false;\n if (isInInactiveTree(vm)) {\n return\n }\n } else if (vm._directInactive) {\n return\n }\n if (vm._inactive || vm._inactive === null) {\n vm._inactive = false;\n for (var i = 0; i < vm.$children.length; i++) {\n activateChildComponent(vm.$children[i]);\n }\n callHook(vm, 'activated');\n }\n}\n\nfunction deactivateChildComponent (vm, direct) {\n if (direct) {\n vm._directInactive = true;\n if (isInInactiveTree(vm)) {\n return\n }\n }\n if (!vm._inactive) {\n vm._inactive = true;\n for (var i = 0; i < vm.$children.length; i++) {\n deactivateChildComponent(vm.$children[i]);\n }\n callHook(vm, 'deactivated');\n }\n}\n\nfunction callHook (vm, hook) {\n var handlers = vm.$options[hook];\n if (handlers) {\n for (var i = 0, j = handlers.length; i < j; i++) {\n try {\n handlers[i].call(vm);\n } catch (e) {\n handleError(e, vm, (hook + \" hook\"));\n }\n }\n }\n if (vm._hasHookEvent) {\n vm.$emit('hook:' + hook);\n }\n}\n\n/* */\n\n\nvar MAX_UPDATE_COUNT = 100;\n\nvar queue = [];\nvar activatedChildren = [];\nvar has = {};\nvar circular = {};\nvar waiting = false;\nvar flushing = false;\nvar index = 0;\n\n/**\n * Reset the scheduler's state.\n */\nfunction resetSchedulerState () {\n index = queue.length = activatedChildren.length = 0;\n has = {};\n if (true) {\n circular = {};\n }\n waiting = flushing = false;\n}\n\n/**\n * Flush both queues and run the watchers.\n */\nfunction flushSchedulerQueue () {\n flushing = true;\n var watcher, id;\n\n // Sort queue before flush.\n // This ensures that:\n // 1. Components are updated from parent to child. (because parent is always\n // created before the child)\n // 2. A component's user watchers are run before its render watcher (because\n // user watchers are created before the render watcher)\n // 3. If a component is destroyed during a parent component's watcher run,\n // its watchers can be skipped.\n queue.sort(function (a, b) { return a.id - b.id; });\n\n // do not cache length because more watchers might be pushed\n // as we run existing watchers\n for (index = 0; index < queue.length; index++) {\n watcher = queue[index];\n id = watcher.id;\n has[id] = null;\n watcher.run();\n // in dev build, check and stop circular updates.\n if (\"development\" !== 'production' && has[id] != null) {\n circular[id] = (circular[id] || 0) + 1;\n if (circular[id] > MAX_UPDATE_COUNT) {\n warn(\n 'You may have an infinite update loop ' + (\n watcher.user\n ? (\"in watcher with expression \\\"\" + (watcher.expression) + \"\\\"\")\n : \"in a component render function.\"\n ),\n watcher.vm\n );\n break\n }\n }\n }\n\n // keep copies of post queues before resetting state\n var activatedQueue = activatedChildren.slice();\n var updatedQueue = queue.slice();\n\n resetSchedulerState();\n\n // call component updated and activated hooks\n callActivatedHooks(activatedQueue);\n callUpdatedHooks(updatedQueue);\n\n // devtool hook\n /* istanbul ignore if */\n if (devtools && config.devtools) {\n devtools.emit('flush');\n }\n}\n\nfunction callUpdatedHooks (queue) {\n var i = queue.length;\n while (i--) {\n var watcher = queue[i];\n var vm = watcher.vm;\n if (vm._watcher === watcher && vm._isMounted) {\n callHook(vm, 'updated');\n }\n }\n}\n\n/**\n * Queue a kept-alive component that was activated during patch.\n * The queue will be processed after the entire tree has been patched.\n */\nfunction queueActivatedComponent (vm) {\n // setting _inactive to false here so that a render function can\n // rely on checking whether it's in an inactive tree (e.g. router-view)\n vm._inactive = false;\n activatedChildren.push(vm);\n}\n\nfunction callActivatedHooks (queue) {\n for (var i = 0; i < queue.length; i++) {\n queue[i]._inactive = true;\n activateChildComponent(queue[i], true /* true */);\n }\n}\n\n/**\n * Push a watcher into the watcher queue.\n * Jobs with duplicate IDs will be skipped unless it's\n * pushed when the queue is being flushed.\n */\nfunction queueWatcher (watcher) {\n var id = watcher.id;\n if (has[id] == null) {\n has[id] = true;\n if (!flushing) {\n queue.push(watcher);\n } else {\n // if already flushing, splice the watcher based on its id\n // if already past its id, it will be run next immediately.\n var i = queue.length - 1;\n while (i > index && queue[i].id > watcher.id) {\n i--;\n }\n queue.splice(i + 1, 0, watcher);\n }\n // queue the flush\n if (!waiting) {\n waiting = true;\n nextTick(flushSchedulerQueue);\n }\n }\n}\n\n/* */\n\nvar uid$2 = 0;\n\n/**\n * A watcher parses an expression, collects dependencies,\n * and fires callback when the expression value changes.\n * This is used for both the $watch() api and directives.\n */\nvar Watcher = function Watcher (\n vm,\n expOrFn,\n cb,\n options\n) {\n this.vm = vm;\n vm._watchers.push(this);\n // options\n if (options) {\n this.deep = !!options.deep;\n this.user = !!options.user;\n this.lazy = !!options.lazy;\n this.sync = !!options.sync;\n } else {\n this.deep = this.user = this.lazy = this.sync = false;\n }\n this.cb = cb;\n this.id = ++uid$2; // uid for batching\n this.active = true;\n this.dirty = this.lazy; // for lazy watchers\n this.deps = [];\n this.newDeps = [];\n this.depIds = new _Set();\n this.newDepIds = new _Set();\n this.expression = true\n ? expOrFn.toString()\n : '';\n // parse expression for getter\n if (typeof expOrFn === 'function') {\n this.getter = expOrFn;\n } else {\n this.getter = parsePath(expOrFn);\n if (!this.getter) {\n this.getter = function () {};\n \"development\" !== 'production' && warn(\n \"Failed watching path: \\\"\" + expOrFn + \"\\\" \" +\n 'Watcher only accepts simple dot-delimited paths. ' +\n 'For full control, use a function instead.',\n vm\n );\n }\n }\n this.value = this.lazy\n ? undefined\n : this.get();\n};\n\n/**\n * Evaluate the getter, and re-collect dependencies.\n */\nWatcher.prototype.get = function get () {\n pushTarget(this);\n var value;\n var vm = this.vm;\n try {\n value = this.getter.call(vm, vm);\n } catch (e) {\n if (this.user) {\n handleError(e, vm, (\"getter for watcher \\\"\" + (this.expression) + \"\\\"\"));\n } else {\n throw e\n }\n } finally {\n // \"touch\" every property so they are all tracked as\n // dependencies for deep watching\n if (this.deep) {\n traverse(value);\n }\n popTarget();\n this.cleanupDeps();\n }\n return value\n};\n\n/**\n * Add a dependency to this directive.\n */\nWatcher.prototype.addDep = function addDep (dep) {\n var id = dep.id;\n if (!this.newDepIds.has(id)) {\n this.newDepIds.add(id);\n this.newDeps.push(dep);\n if (!this.depIds.has(id)) {\n dep.addSub(this);\n }\n }\n};\n\n/**\n * Clean up for dependency collection.\n */\nWatcher.prototype.cleanupDeps = function cleanupDeps () {\n var this$1 = this;\n\n var i = this.deps.length;\n while (i--) {\n var dep = this$1.deps[i];\n if (!this$1.newDepIds.has(dep.id)) {\n dep.removeSub(this$1);\n }\n }\n var tmp = this.depIds;\n this.depIds = this.newDepIds;\n this.newDepIds = tmp;\n this.newDepIds.clear();\n tmp = this.deps;\n this.deps = this.newDeps;\n this.newDeps = tmp;\n this.newDeps.length = 0;\n};\n\n/**\n * Subscriber interface.\n * Will be called when a dependency changes.\n */\nWatcher.prototype.update = function update () {\n /* istanbul ignore else */\n if (this.lazy) {\n this.dirty = true;\n } else if (this.sync) {\n this.run();\n } else {\n queueWatcher(this);\n }\n};\n\n/**\n * Scheduler job interface.\n * Will be called by the scheduler.\n */\nWatcher.prototype.run = function run () {\n if (this.active) {\n var value = this.get();\n if (\n value !== this.value ||\n // Deep watchers and watchers on Object/Arrays should fire even\n // when the value is the same, because the value may\n // have mutated.\n isObject(value) ||\n this.deep\n ) {\n // set new value\n var oldValue = this.value;\n this.value = value;\n if (this.user) {\n try {\n this.cb.call(this.vm, value, oldValue);\n } catch (e) {\n handleError(e, this.vm, (\"callback for watcher \\\"\" + (this.expression) + \"\\\"\"));\n }\n } else {\n this.cb.call(this.vm, value, oldValue);\n }\n }\n }\n};\n\n/**\n * Evaluate the value of the watcher.\n * This only gets called for lazy watchers.\n */\nWatcher.prototype.evaluate = function evaluate () {\n this.value = this.get();\n this.dirty = false;\n};\n\n/**\n * Depend on all deps collected by this watcher.\n */\nWatcher.prototype.depend = function depend () {\n var this$1 = this;\n\n var i = this.deps.length;\n while (i--) {\n this$1.deps[i].depend();\n }\n};\n\n/**\n * Remove self from all dependencies' subscriber list.\n */\nWatcher.prototype.teardown = function teardown () {\n var this$1 = this;\n\n if (this.active) {\n // remove self from vm's watcher list\n // this is a somewhat expensive operation so we skip it\n // if the vm is being destroyed.\n if (!this.vm._isBeingDestroyed) {\n remove(this.vm._watchers, this);\n }\n var i = this.deps.length;\n while (i--) {\n this$1.deps[i].removeSub(this$1);\n }\n this.active = false;\n }\n};\n\n/**\n * Recursively traverse an object to evoke all converted\n * getters, so that every nested property inside the object\n * is collected as a \"deep\" dependency.\n */\nvar seenObjects = new _Set();\nfunction traverse (val) {\n seenObjects.clear();\n _traverse(val, seenObjects);\n}\n\nfunction _traverse (val, seen) {\n var i, keys;\n var isA = Array.isArray(val);\n if ((!isA && !isObject(val)) || !Object.isExtensible(val)) {\n return\n }\n if (val.__ob__) {\n var depId = val.__ob__.dep.id;\n if (seen.has(depId)) {\n return\n }\n seen.add(depId);\n }\n if (isA) {\n i = val.length;\n while (i--) { _traverse(val[i], seen); }\n } else {\n keys = Object.keys(val);\n i = keys.length;\n while (i--) { _traverse(val[keys[i]], seen); }\n }\n}\n\n/* */\n\nvar sharedPropertyDefinition = {\n enumerable: true,\n configurable: true,\n get: noop,\n set: noop\n};\n\nfunction proxy (target, sourceKey, key) {\n sharedPropertyDefinition.get = function proxyGetter () {\n return this[sourceKey][key]\n };\n sharedPropertyDefinition.set = function proxySetter (val) {\n this[sourceKey][key] = val;\n };\n Object.defineProperty(target, key, sharedPropertyDefinition);\n}\n\nfunction initState (vm) {\n vm._watchers = [];\n var opts = vm.$options;\n if (opts.props) { initProps(vm, opts.props); }\n if (opts.methods) { initMethods(vm, opts.methods); }\n if (opts.data) {\n initData(vm);\n } else {\n observe(vm._data = {}, true /* asRootData */);\n }\n if (opts.computed) { initComputed(vm, opts.computed); }\n if (opts.watch && opts.watch !== nativeWatch) {\n initWatch(vm, opts.watch);\n }\n}\n\nfunction checkOptionType (vm, name) {\n var option = vm.$options[name];\n if (!isPlainObject(option)) {\n warn(\n (\"component option \\\"\" + name + \"\\\" should be an object.\"),\n vm\n );\n }\n}\n\nfunction initProps (vm, propsOptions) {\n var propsData = vm.$options.propsData || {};\n var props = vm._props = {};\n // cache prop keys so that future props updates can iterate using Array\n // instead of dynamic object key enumeration.\n var keys = vm.$options._propKeys = [];\n var isRoot = !vm.$parent;\n // root instance props should be converted\n observerState.shouldConvert = isRoot;\n var loop = function ( key ) {\n keys.push(key);\n var value = validateProp(key, propsOptions, propsData, vm);\n /* istanbul ignore else */\n if (true) {\n if (isReservedAttribute(key) || config.isReservedAttr(key)) {\n warn(\n (\"\\\"\" + key + \"\\\" is a reserved attribute and cannot be used as component prop.\"),\n vm\n );\n }\n defineReactive$$1(props, key, value, function () {\n if (vm.$parent && !isUpdatingChildComponent) {\n warn(\n \"Avoid mutating a prop directly since the value will be \" +\n \"overwritten whenever the parent component re-renders. \" +\n \"Instead, use a data or computed property based on the prop's \" +\n \"value. Prop being mutated: \\\"\" + key + \"\\\"\",\n vm\n );\n }\n });\n } else {\n defineReactive$$1(props, key, value);\n }\n // static props are already proxied on the component's prototype\n // during Vue.extend(). We only need to proxy props defined at\n // instantiation here.\n if (!(key in vm)) {\n proxy(vm, \"_props\", key);\n }\n };\n\n for (var key in propsOptions) loop( key );\n observerState.shouldConvert = true;\n}\n\nfunction initData (vm) {\n var data = vm.$options.data;\n data = vm._data = typeof data === 'function'\n ? getData(data, vm)\n : data || {};\n if (!isPlainObject(data)) {\n data = {};\n \"development\" !== 'production' && warn(\n 'data functions should return an object:\\n' +\n 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',\n vm\n );\n }\n // proxy data on instance\n var keys = Object.keys(data);\n var props = vm.$options.props;\n var methods = vm.$options.methods;\n var i = keys.length;\n while (i--) {\n var key = keys[i];\n if (true) {\n if (methods && hasOwn(methods, key)) {\n warn(\n (\"Method \\\"\" + key + \"\\\" has already been defined as a data property.\"),\n vm\n );\n }\n }\n if (props && hasOwn(props, key)) {\n \"development\" !== 'production' && warn(\n \"The data property \\\"\" + key + \"\\\" is already declared as a prop. \" +\n \"Use prop default value instead.\",\n vm\n );\n } else if (!isReserved(key)) {\n proxy(vm, \"_data\", key);\n }\n }\n // observe data\n observe(data, true /* asRootData */);\n}\n\nfunction getData (data, vm) {\n try {\n return data.call(vm)\n } catch (e) {\n handleError(e, vm, \"data()\");\n return {}\n }\n}\n\nvar computedWatcherOptions = { lazy: true };\n\nfunction initComputed (vm, computed) {\n \"development\" !== 'production' && checkOptionType(vm, 'computed');\n var watchers = vm._computedWatchers = Object.create(null);\n // computed properties are just getters during SSR\n var isSSR = isServerRendering();\n\n for (var key in computed) {\n var userDef = computed[key];\n var getter = typeof userDef === 'function' ? userDef : userDef.get;\n if (\"development\" !== 'production' && getter == null) {\n warn(\n (\"Getter is missing for computed property \\\"\" + key + \"\\\".\"),\n vm\n );\n }\n\n if (!isSSR) {\n // create internal watcher for the computed property.\n watchers[key] = new Watcher(\n vm,\n getter || noop,\n noop,\n computedWatcherOptions\n );\n }\n\n // component-defined computed properties are already defined on the\n // component prototype. We only need to define computed properties defined\n // at instantiation here.\n if (!(key in vm)) {\n defineComputed(vm, key, userDef);\n } else if (true) {\n if (key in vm.$data) {\n warn((\"The computed property \\\"\" + key + \"\\\" is already defined in data.\"), vm);\n } else if (vm.$options.props && key in vm.$options.props) {\n warn((\"The computed property \\\"\" + key + \"\\\" is already defined as a prop.\"), vm);\n }\n }\n }\n}\n\nfunction defineComputed (\n target,\n key,\n userDef\n) {\n var shouldCache = !isServerRendering();\n if (typeof userDef === 'function') {\n sharedPropertyDefinition.get = shouldCache\n ? createComputedGetter(key)\n : userDef;\n sharedPropertyDefinition.set = noop;\n } else {\n sharedPropertyDefinition.get = userDef.get\n ? shouldCache && userDef.cache !== false\n ? createComputedGetter(key)\n : userDef.get\n : noop;\n sharedPropertyDefinition.set = userDef.set\n ? userDef.set\n : noop;\n }\n if (\"development\" !== 'production' &&\n sharedPropertyDefinition.set === noop) {\n sharedPropertyDefinition.set = function () {\n warn(\n (\"Computed property \\\"\" + key + \"\\\" was assigned to but it has no setter.\"),\n this\n );\n };\n }\n Object.defineProperty(target, key, sharedPropertyDefinition);\n}\n\nfunction createComputedGetter (key) {\n return function computedGetter () {\n var watcher = this._computedWatchers && this._computedWatchers[key];\n if (watcher) {\n if (watcher.dirty) {\n watcher.evaluate();\n }\n if (Dep.target) {\n watcher.depend();\n }\n return watcher.value\n }\n }\n}\n\nfunction initMethods (vm, methods) {\n \"development\" !== 'production' && checkOptionType(vm, 'methods');\n var props = vm.$options.props;\n for (var key in methods) {\n if (true) {\n if (methods[key] == null) {\n warn(\n \"Method \\\"\" + key + \"\\\" has an undefined value in the component definition. \" +\n \"Did you reference the function correctly?\",\n vm\n );\n }\n if (props && hasOwn(props, key)) {\n warn(\n (\"Method \\\"\" + key + \"\\\" has already been defined as a prop.\"),\n vm\n );\n }\n if ((key in vm) && isReserved(key)) {\n warn(\n \"Method \\\"\" + key + \"\\\" conflicts with an existing Vue instance method. \" +\n \"Avoid defining component methods that start with _ or $.\"\n );\n }\n }\n vm[key] = methods[key] == null ? noop : bind(methods[key], vm);\n }\n}\n\nfunction initWatch (vm, watch) {\n \"development\" !== 'production' && checkOptionType(vm, 'watch');\n for (var key in watch) {\n var handler = watch[key];\n if (Array.isArray(handler)) {\n for (var i = 0; i < handler.length; i++) {\n createWatcher(vm, key, handler[i]);\n }\n } else {\n createWatcher(vm, key, handler);\n }\n }\n}\n\nfunction createWatcher (\n vm,\n keyOrFn,\n handler,\n options\n) {\n if (isPlainObject(handler)) {\n options = handler;\n handler = handler.handler;\n }\n if (typeof handler === 'string') {\n handler = vm[handler];\n }\n return vm.$watch(keyOrFn, handler, options)\n}\n\nfunction stateMixin (Vue) {\n // flow somehow has problems with directly declared definition object\n // when using Object.defineProperty, so we have to procedurally build up\n // the object here.\n var dataDef = {};\n dataDef.get = function () { return this._data };\n var propsDef = {};\n propsDef.get = function () { return this._props };\n if (true) {\n dataDef.set = function (newData) {\n warn(\n 'Avoid replacing instance root $data. ' +\n 'Use nested data properties instead.',\n this\n );\n };\n propsDef.set = function () {\n warn(\"$props is readonly.\", this);\n };\n }\n Object.defineProperty(Vue.prototype, '$data', dataDef);\n Object.defineProperty(Vue.prototype, '$props', propsDef);\n\n Vue.prototype.$set = set;\n Vue.prototype.$delete = del;\n\n Vue.prototype.$watch = function (\n expOrFn,\n cb,\n options\n ) {\n var vm = this;\n if (isPlainObject(cb)) {\n return createWatcher(vm, expOrFn, cb, options)\n }\n options = options || {};\n options.user = true;\n var watcher = new Watcher(vm, expOrFn, cb, options);\n if (options.immediate) {\n cb.call(vm, watcher.value);\n }\n return function unwatchFn () {\n watcher.teardown();\n }\n };\n}\n\n/* */\n\nfunction initProvide (vm) {\n var provide = vm.$options.provide;\n if (provide) {\n vm._provided = typeof provide === 'function'\n ? provide.call(vm)\n : provide;\n }\n}\n\nfunction initInjections (vm) {\n var result = resolveInject(vm.$options.inject, vm);\n if (result) {\n observerState.shouldConvert = false;\n Object.keys(result).forEach(function (key) {\n /* istanbul ignore else */\n if (true) {\n defineReactive$$1(vm, key, result[key], function () {\n warn(\n \"Avoid mutating an injected value directly since the changes will be \" +\n \"overwritten whenever the provided component re-renders. \" +\n \"injection being mutated: \\\"\" + key + \"\\\"\",\n vm\n );\n });\n } else {\n defineReactive$$1(vm, key, result[key]);\n }\n });\n observerState.shouldConvert = true;\n }\n}\n\nfunction resolveInject (inject, vm) {\n if (inject) {\n // inject is :any because flow is not smart enough to figure out cached\n var result = Object.create(null);\n var keys = hasSymbol\n ? Reflect.ownKeys(inject).filter(function (key) {\n /* istanbul ignore next */\n return Object.getOwnPropertyDescriptor(inject, key).enumerable\n })\n : Object.keys(inject);\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var provideKey = inject[key];\n var source = vm;\n while (source) {\n if (source._provided && provideKey in source._provided) {\n result[key] = source._provided[provideKey];\n break\n }\n source = source.$parent;\n }\n if (\"development\" !== 'production' && !source) {\n warn((\"Injection \\\"\" + key + \"\\\" not found\"), vm);\n }\n }\n return result\n }\n}\n\n/* */\n\nfunction createFunctionalComponent (\n Ctor,\n propsData,\n data,\n context,\n children\n) {\n var props = {};\n var propOptions = Ctor.options.props;\n if (isDef(propOptions)) {\n for (var key in propOptions) {\n props[key] = validateProp(key, propOptions, propsData || emptyObject);\n }\n } else {\n if (isDef(data.attrs)) { mergeProps(props, data.attrs); }\n if (isDef(data.props)) { mergeProps(props, data.props); }\n }\n // ensure the createElement function in functional components\n // gets a unique context - this is necessary for correct named slot check\n var _context = Object.create(context);\n var h = function (a, b, c, d) { return createElement(_context, a, b, c, d, true); };\n var vnode = Ctor.options.render.call(null, h, {\n data: data,\n props: props,\n children: children,\n parent: context,\n listeners: data.on || emptyObject,\n injections: resolveInject(Ctor.options.inject, context),\n slots: function () { return resolveSlots(children, context); }\n });\n if (vnode instanceof VNode) {\n vnode.functionalContext = context;\n vnode.functionalOptions = Ctor.options;\n if (data.slot) {\n (vnode.data || (vnode.data = {})).slot = data.slot;\n }\n }\n return vnode\n}\n\nfunction mergeProps (to, from) {\n for (var key in from) {\n to[camelize(key)] = from[key];\n }\n}\n\n/* */\n\n// hooks to be invoked on component VNodes during patch\nvar componentVNodeHooks = {\n init: function init (\n vnode,\n hydrating,\n parentElm,\n refElm\n ) {\n if (!vnode.componentInstance || vnode.componentInstance._isDestroyed) {\n var child = vnode.componentInstance = createComponentInstanceForVnode(\n vnode,\n activeInstance,\n parentElm,\n refElm\n );\n child.$mount(hydrating ? vnode.elm : undefined, hydrating);\n } else if (vnode.data.keepAlive) {\n // kept-alive components, treat as a patch\n var mountedNode = vnode; // work around flow\n componentVNodeHooks.prepatch(mountedNode, mountedNode);\n }\n },\n\n prepatch: function prepatch (oldVnode, vnode) {\n var options = vnode.componentOptions;\n var child = vnode.componentInstance = oldVnode.componentInstance;\n updateChildComponent(\n child,\n options.propsData, // updated props\n options.listeners, // updated listeners\n vnode, // new parent vnode\n options.children // new children\n );\n },\n\n insert: function insert (vnode) {\n var context = vnode.context;\n var componentInstance = vnode.componentInstance;\n if (!componentInstance._isMounted) {\n componentInstance._isMounted = true;\n callHook(componentInstance, 'mounted');\n }\n if (vnode.data.keepAlive) {\n if (context._isMounted) {\n // vue-router#1212\n // During updates, a kept-alive component's child components may\n // change, so directly walking the tree here may call activated hooks\n // on incorrect children. Instead we push them into a queue which will\n // be processed after the whole patch process ended.\n queueActivatedComponent(componentInstance);\n } else {\n activateChildComponent(componentInstance, true /* direct */);\n }\n }\n },\n\n destroy: function destroy (vnode) {\n var componentInstance = vnode.componentInstance;\n if (!componentInstance._isDestroyed) {\n if (!vnode.data.keepAlive) {\n componentInstance.$destroy();\n } else {\n deactivateChildComponent(componentInstance, true /* direct */);\n }\n }\n }\n};\n\nvar hooksToMerge = Object.keys(componentVNodeHooks);\n\nfunction createComponent (\n Ctor,\n data,\n context,\n children,\n tag\n) {\n if (isUndef(Ctor)) {\n return\n }\n\n var baseCtor = context.$options._base;\n\n // plain options object: turn it into a constructor\n if (isObject(Ctor)) {\n Ctor = baseCtor.extend(Ctor);\n }\n\n // if at this stage it's not a constructor or an async component factory,\n // reject.\n if (typeof Ctor !== 'function') {\n if (true) {\n warn((\"Invalid Component definition: \" + (String(Ctor))), context);\n }\n return\n }\n\n // async component\n var asyncFactory;\n if (isUndef(Ctor.cid)) {\n asyncFactory = Ctor;\n Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);\n if (Ctor === undefined) {\n // return a placeholder node for async component, which is rendered\n // as a comment node but preserves all the raw information for the node.\n // the information will be used for async server-rendering and hydration.\n return createAsyncPlaceholder(\n asyncFactory,\n data,\n context,\n children,\n tag\n )\n }\n }\n\n data = data || {};\n\n // resolve constructor options in case global mixins are applied after\n // component constructor creation\n resolveConstructorOptions(Ctor);\n\n // transform component v-model data into props & events\n if (isDef(data.model)) {\n transformModel(Ctor.options, data);\n }\n\n // extract props\n var propsData = extractPropsFromVNodeData(data, Ctor, tag);\n\n // functional component\n if (isTrue(Ctor.options.functional)) {\n return createFunctionalComponent(Ctor, propsData, data, context, children)\n }\n\n // extract listeners, since these needs to be treated as\n // child component listeners instead of DOM listeners\n var listeners = data.on;\n // replace with listeners with .native modifier\n // so it gets processed during parent component patch.\n data.on = data.nativeOn;\n\n if (isTrue(Ctor.options.abstract)) {\n // abstract components do not keep anything\n // other than props & listeners & slot\n\n // work around flow\n var slot = data.slot;\n data = {};\n if (slot) {\n data.slot = slot;\n }\n }\n\n // merge component management hooks onto the placeholder node\n mergeHooks(data);\n\n // return a placeholder vnode\n var name = Ctor.options.name || tag;\n var vnode = new VNode(\n (\"vue-component-\" + (Ctor.cid) + (name ? (\"-\" + name) : '')),\n data, undefined, undefined, undefined, context,\n { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },\n asyncFactory\n );\n return vnode\n}\n\nfunction createComponentInstanceForVnode (\n vnode, // we know it's MountedComponentVNode but flow doesn't\n parent, // activeInstance in lifecycle state\n parentElm,\n refElm\n) {\n var vnodeComponentOptions = vnode.componentOptions;\n var options = {\n _isComponent: true,\n parent: parent,\n propsData: vnodeComponentOptions.propsData,\n _componentTag: vnodeComponentOptions.tag,\n _parentVnode: vnode,\n _parentListeners: vnodeComponentOptions.listeners,\n _renderChildren: vnodeComponentOptions.children,\n _parentElm: parentElm || null,\n _refElm: refElm || null\n };\n // check inline-template render functions\n var inlineTemplate = vnode.data.inlineTemplate;\n if (isDef(inlineTemplate)) {\n options.render = inlineTemplate.render;\n options.staticRenderFns = inlineTemplate.staticRenderFns;\n }\n return new vnodeComponentOptions.Ctor(options)\n}\n\nfunction mergeHooks (data) {\n if (!data.hook) {\n data.hook = {};\n }\n for (var i = 0; i < hooksToMerge.length; i++) {\n var key = hooksToMerge[i];\n var fromParent = data.hook[key];\n var ours = componentVNodeHooks[key];\n data.hook[key] = fromParent ? mergeHook$1(ours, fromParent) : ours;\n }\n}\n\nfunction mergeHook$1 (one, two) {\n return function (a, b, c, d) {\n one(a, b, c, d);\n two(a, b, c, d);\n }\n}\n\n// transform component v-model info (value and callback) into\n// prop and event handler respectively.\nfunction transformModel (options, data) {\n var prop = (options.model && options.model.prop) || 'value';\n var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;\n var on = data.on || (data.on = {});\n if (isDef(on[event])) {\n on[event] = [data.model.callback].concat(on[event]);\n } else {\n on[event] = data.model.callback;\n }\n}\n\n/* */\n\nvar SIMPLE_NORMALIZE = 1;\nvar ALWAYS_NORMALIZE = 2;\n\n// wrapper function for providing a more flexible interface\n// without getting yelled at by flow\nfunction createElement (\n context,\n tag,\n data,\n children,\n normalizationType,\n alwaysNormalize\n) {\n if (Array.isArray(data) || isPrimitive(data)) {\n normalizationType = children;\n children = data;\n data = undefined;\n }\n if (isTrue(alwaysNormalize)) {\n normalizationType = ALWAYS_NORMALIZE;\n }\n return _createElement(context, tag, data, children, normalizationType)\n}\n\nfunction _createElement (\n context,\n tag,\n data,\n children,\n normalizationType\n) {\n if (isDef(data) && isDef((data).__ob__)) {\n \"development\" !== 'production' && warn(\n \"Avoid using observed data object as vnode data: \" + (JSON.stringify(data)) + \"\\n\" +\n 'Always create fresh vnode data objects in each render!',\n context\n );\n return createEmptyVNode()\n }\n // object syntax in v-bind\n if (isDef(data) && isDef(data.is)) {\n tag = data.is;\n }\n if (!tag) {\n // in case of component :is set to falsy value\n return createEmptyVNode()\n }\n // warn against non-primitive key\n if (\"development\" !== 'production' &&\n isDef(data) && isDef(data.key) && !isPrimitive(data.key)\n ) {\n warn(\n 'Avoid using non-primitive value as key, ' +\n 'use string/number value instead.',\n context\n );\n }\n // support single function children as default scoped slot\n if (Array.isArray(children) &&\n typeof children[0] === 'function'\n ) {\n data = data || {};\n data.scopedSlots = { default: children[0] };\n children.length = 0;\n }\n if (normalizationType === ALWAYS_NORMALIZE) {\n children = normalizeChildren(children);\n } else if (normalizationType === SIMPLE_NORMALIZE) {\n children = simpleNormalizeChildren(children);\n }\n var vnode, ns;\n if (typeof tag === 'string') {\n var Ctor;\n ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);\n if (config.isReservedTag(tag)) {\n // platform built-in elements\n vnode = new VNode(\n config.parsePlatformTagName(tag), data, children,\n undefined, undefined, context\n );\n } else if (isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {\n // component\n vnode = createComponent(Ctor, data, context, children, tag);\n } else {\n // unknown or unlisted namespaced elements\n // check at runtime because it may get assigned a namespace when its\n // parent normalizes children\n vnode = new VNode(\n tag, data, children,\n undefined, undefined, context\n );\n }\n } else {\n // direct component options / constructor\n vnode = createComponent(tag, data, context, children);\n }\n if (isDef(vnode)) {\n if (ns) { applyNS(vnode, ns); }\n return vnode\n } else {\n return createEmptyVNode()\n }\n}\n\nfunction applyNS (vnode, ns) {\n vnode.ns = ns;\n if (vnode.tag === 'foreignObject') {\n // use default namespace inside foreignObject\n return\n }\n if (isDef(vnode.children)) {\n for (var i = 0, l = vnode.children.length; i < l; i++) {\n var child = vnode.children[i];\n if (isDef(child.tag) && isUndef(child.ns)) {\n applyNS(child, ns);\n }\n }\n }\n}\n\n/* */\n\n/**\n * Runtime helper for rendering v-for lists.\n */\nfunction renderList (\n val,\n render\n) {\n var ret, i, l, keys, key;\n if (Array.isArray(val) || typeof val === 'string') {\n ret = new Array(val.length);\n for (i = 0, l = val.length; i < l; i++) {\n ret[i] = render(val[i], i);\n }\n } else if (typeof val === 'number') {\n ret = new Array(val);\n for (i = 0; i < val; i++) {\n ret[i] = render(i + 1, i);\n }\n } else if (isObject(val)) {\n keys = Object.keys(val);\n ret = new Array(keys.length);\n for (i = 0, l = keys.length; i < l; i++) {\n key = keys[i];\n ret[i] = render(val[key], key, i);\n }\n }\n if (isDef(ret)) {\n (ret)._isVList = true;\n }\n return ret\n}\n\n/* */\n\n/**\n * Runtime helper for rendering <slot>\n */\nfunction renderSlot (\n name,\n fallback,\n props,\n bindObject\n) {\n var scopedSlotFn = this.$scopedSlots[name];\n if (scopedSlotFn) { // scoped slot\n props = props || {};\n if (bindObject) {\n props = extend(extend({}, bindObject), props);\n }\n return scopedSlotFn(props) || fallback\n } else {\n var slotNodes = this.$slots[name];\n // warn duplicate slot usage\n if (slotNodes && \"development\" !== 'production') {\n slotNodes._rendered && warn(\n \"Duplicate presence of slot \\\"\" + name + \"\\\" found in the same render tree \" +\n \"- this will likely cause render errors.\",\n this\n );\n slotNodes._rendered = true;\n }\n return slotNodes || fallback\n }\n}\n\n/* */\n\n/**\n * Runtime helper for resolving filters\n */\nfunction resolveFilter (id) {\n return resolveAsset(this.$options, 'filters', id, true) || identity\n}\n\n/* */\n\n/**\n * Runtime helper for checking keyCodes from config.\n */\nfunction checkKeyCodes (\n eventKeyCode,\n key,\n builtInAlias\n) {\n var keyCodes = config.keyCodes[key] || builtInAlias;\n if (Array.isArray(keyCodes)) {\n return keyCodes.indexOf(eventKeyCode) === -1\n } else {\n return keyCodes !== eventKeyCode\n }\n}\n\n/* */\n\n/**\n * Runtime helper for merging v-bind=\"object\" into a VNode's data.\n */\nfunction bindObjectProps (\n data,\n tag,\n value,\n asProp,\n isSync\n) {\n if (value) {\n if (!isObject(value)) {\n \"development\" !== 'production' && warn(\n 'v-bind without argument expects an Object or Array value',\n this\n );\n } else {\n if (Array.isArray(value)) {\n value = toObject(value);\n }\n var hash;\n var loop = function ( key ) {\n if (\n key === 'class' ||\n key === 'style' ||\n isReservedAttribute(key)\n ) {\n hash = data;\n } else {\n var type = data.attrs && data.attrs.type;\n hash = asProp || config.mustUseProp(tag, type, key)\n ? data.domProps || (data.domProps = {})\n : data.attrs || (data.attrs = {});\n }\n if (!(key in hash)) {\n hash[key] = value[key];\n\n if (isSync) {\n var on = data.on || (data.on = {});\n on[(\"update:\" + key)] = function ($event) {\n value[key] = $event;\n };\n }\n }\n };\n\n for (var key in value) loop( key );\n }\n }\n return data\n}\n\n/* */\n\n/**\n * Runtime helper for rendering static trees.\n */\nfunction renderStatic (\n index,\n isInFor\n) {\n var tree = this._staticTrees[index];\n // if has already-rendered static tree and not inside v-for,\n // we can reuse the same tree by doing a shallow clone.\n if (tree && !isInFor) {\n return Array.isArray(tree)\n ? cloneVNodes(tree)\n : cloneVNode(tree)\n }\n // otherwise, render a fresh tree.\n tree = this._staticTrees[index] =\n this.$options.staticRenderFns[index].call(this._renderProxy);\n markStatic(tree, (\"__static__\" + index), false);\n return tree\n}\n\n/**\n * Runtime helper for v-once.\n * Effectively it means marking the node as static with a unique key.\n */\nfunction markOnce (\n tree,\n index,\n key\n) {\n markStatic(tree, (\"__once__\" + index + (key ? (\"_\" + key) : \"\")), true);\n return tree\n}\n\nfunction markStatic (\n tree,\n key,\n isOnce\n) {\n if (Array.isArray(tree)) {\n for (var i = 0; i < tree.length; i++) {\n if (tree[i] && typeof tree[i] !== 'string') {\n markStaticNode(tree[i], (key + \"_\" + i), isOnce);\n }\n }\n } else {\n markStaticNode(tree, key, isOnce);\n }\n}\n\nfunction markStaticNode (node, key, isOnce) {\n node.isStatic = true;\n node.key = key;\n node.isOnce = isOnce;\n}\n\n/* */\n\nfunction bindObjectListeners (data, value) {\n if (value) {\n if (!isPlainObject(value)) {\n \"development\" !== 'production' && warn(\n 'v-on without argument expects an Object value',\n this\n );\n } else {\n var on = data.on = data.on ? extend({}, data.on) : {};\n for (var key in value) {\n var existing = on[key];\n var ours = value[key];\n on[key] = existing ? [].concat(ours, existing) : ours;\n }\n }\n }\n return data\n}\n\n/* */\n\nfunction initRender (vm) {\n vm._vnode = null; // the root of the child tree\n vm._staticTrees = null;\n var parentVnode = vm.$vnode = vm.$options._parentVnode; // the placeholder node in parent tree\n var renderContext = parentVnode && parentVnode.context;\n vm.$slots = resolveSlots(vm.$options._renderChildren, renderContext);\n vm.$scopedSlots = emptyObject;\n // bind the createElement fn to this instance\n // so that we get proper render context inside it.\n // args order: tag, data, children, normalizationType, alwaysNormalize\n // internal version is used by render functions compiled from templates\n vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };\n // normalization is always applied for the public version, used in\n // user-written render functions.\n vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };\n\n // $attrs & $listeners are exposed for easier HOC creation.\n // they need to be reactive so that HOCs using them are always updated\n var parentData = parentVnode && parentVnode.data;\n\n /* istanbul ignore else */\n if (true) {\n defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {\n !isUpdatingChildComponent && warn(\"$attrs is readonly.\", vm);\n }, true);\n defineReactive$$1(vm, '$listeners', vm.$options._parentListeners || emptyObject, function () {\n !isUpdatingChildComponent && warn(\"$listeners is readonly.\", vm);\n }, true);\n } else {\n defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, null, true);\n defineReactive$$1(vm, '$listeners', vm.$options._parentListeners || emptyObject, null, true);\n }\n}\n\nfunction renderMixin (Vue) {\n Vue.prototype.$nextTick = function (fn) {\n return nextTick(fn, this)\n };\n\n Vue.prototype._render = function () {\n var vm = this;\n var ref = vm.$options;\n var render = ref.render;\n var staticRenderFns = ref.staticRenderFns;\n var _parentVnode = ref._parentVnode;\n\n if (vm._isMounted) {\n // if the parent didn't update, the slot nodes will be the ones from\n // last render. They need to be cloned to ensure \"freshness\" for this render.\n for (var key in vm.$slots) {\n var slot = vm.$slots[key];\n if (slot._rendered) {\n vm.$slots[key] = cloneVNodes(slot, true /* deep */);\n }\n }\n }\n\n vm.$scopedSlots = (_parentVnode && _parentVnode.data.scopedSlots) || emptyObject;\n\n if (staticRenderFns && !vm._staticTrees) {\n vm._staticTrees = [];\n }\n // set parent vnode. this allows render functions to have access\n // to the data on the placeholder node.\n vm.$vnode = _parentVnode;\n // render self\n var vnode;\n try {\n vnode = render.call(vm._renderProxy, vm.$createElement);\n } catch (e) {\n handleError(e, vm, \"render function\");\n // return error render result,\n // or previous vnode to prevent render error causing blank component\n /* istanbul ignore else */\n if (true) {\n vnode = vm.$options.renderError\n ? vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e)\n : vm._vnode;\n } else {\n vnode = vm._vnode;\n }\n }\n // return empty vnode in case the render function errored out\n if (!(vnode instanceof VNode)) {\n if (\"development\" !== 'production' && Array.isArray(vnode)) {\n warn(\n 'Multiple root nodes returned from render function. Render function ' +\n 'should return a single root node.',\n vm\n );\n }\n vnode = createEmptyVNode();\n }\n // set parent\n vnode.parent = _parentVnode;\n return vnode\n };\n\n // internal render helpers.\n // these are exposed on the instance prototype to reduce generated render\n // code size.\n Vue.prototype._o = markOnce;\n Vue.prototype._n = toNumber;\n Vue.prototype._s = toString;\n Vue.prototype._l = renderList;\n Vue.prototype._t = renderSlot;\n Vue.prototype._q = looseEqual;\n Vue.prototype._i = looseIndexOf;\n Vue.prototype._m = renderStatic;\n Vue.prototype._f = resolveFilter;\n Vue.prototype._k = checkKeyCodes;\n Vue.prototype._b = bindObjectProps;\n Vue.prototype._v = createTextVNode;\n Vue.prototype._e = createEmptyVNode;\n Vue.prototype._u = resolveScopedSlots;\n Vue.prototype._g = bindObjectListeners;\n}\n\n/* */\n\nvar uid = 0;\n\nfunction initMixin (Vue) {\n Vue.prototype._init = function (options) {\n var vm = this;\n // a uid\n vm._uid = uid++;\n\n var startTag, endTag;\n /* istanbul ignore if */\n if (\"development\" !== 'production' && config.performance && mark) {\n startTag = \"vue-perf-init:\" + (vm._uid);\n endTag = \"vue-perf-end:\" + (vm._uid);\n mark(startTag);\n }\n\n // a flag to avoid this being observed\n vm._isVue = true;\n // merge options\n if (options && options._isComponent) {\n // optimize internal component instantiation\n // since dynamic options merging is pretty slow, and none of the\n // internal component options needs special treatment.\n initInternalComponent(vm, options);\n } else {\n vm.$options = mergeOptions(\n resolveConstructorOptions(vm.constructor),\n options || {},\n vm\n );\n }\n /* istanbul ignore else */\n if (true) {\n initProxy(vm);\n } else {\n vm._renderProxy = vm;\n }\n // expose real self\n vm._self = vm;\n initLifecycle(vm);\n initEvents(vm);\n initRender(vm);\n callHook(vm, 'beforeCreate');\n initInjections(vm); // resolve injections before data/props\n initState(vm);\n initProvide(vm); // resolve provide after data/props\n callHook(vm, 'created');\n\n /* istanbul ignore if */\n if (\"development\" !== 'production' && config.performance && mark) {\n vm._name = formatComponentName(vm, false);\n mark(endTag);\n measure(((vm._name) + \" init\"), startTag, endTag);\n }\n\n if (vm.$options.el) {\n vm.$mount(vm.$options.el);\n }\n };\n}\n\nfunction initInternalComponent (vm, options) {\n var opts = vm.$options = Object.create(vm.constructor.options);\n // doing this because it's faster than dynamic enumeration.\n opts.parent = options.parent;\n opts.propsData = options.propsData;\n opts._parentVnode = options._parentVnode;\n opts._parentListeners = options._parentListeners;\n opts._renderChildren = options._renderChildren;\n opts._componentTag = options._componentTag;\n opts._parentElm = options._parentElm;\n opts._refElm = options._refElm;\n if (options.render) {\n opts.render = options.render;\n opts.staticRenderFns = options.staticRenderFns;\n }\n}\n\nfunction resolveConstructorOptions (Ctor) {\n var options = Ctor.options;\n if (Ctor.super) {\n var superOptions = resolveConstructorOptions(Ctor.super);\n var cachedSuperOptions = Ctor.superOptions;\n if (superOptions !== cachedSuperOptions) {\n // super option changed,\n // need to resolve new options.\n Ctor.superOptions = superOptions;\n // check if there are any late-modified/attached options (#4976)\n var modifiedOptions = resolveModifiedOptions(Ctor);\n // update base extend options\n if (modifiedOptions) {\n extend(Ctor.extendOptions, modifiedOptions);\n }\n options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);\n if (options.name) {\n options.components[options.name] = Ctor;\n }\n }\n }\n return options\n}\n\nfunction resolveModifiedOptions (Ctor) {\n var modified;\n var latest = Ctor.options;\n var extended = Ctor.extendOptions;\n var sealed = Ctor.sealedOptions;\n for (var key in latest) {\n if (latest[key] !== sealed[key]) {\n if (!modified) { modified = {}; }\n modified[key] = dedupe(latest[key], extended[key], sealed[key]);\n }\n }\n return modified\n}\n\nfunction dedupe (latest, extended, sealed) {\n // compare latest and sealed to ensure lifecycle hooks won't be duplicated\n // between merges\n if (Array.isArray(latest)) {\n var res = [];\n sealed = Array.isArray(sealed) ? sealed : [sealed];\n extended = Array.isArray(extended) ? extended : [extended];\n for (var i = 0; i < latest.length; i++) {\n // push original options and not sealed options to exclude duplicated options\n if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {\n res.push(latest[i]);\n }\n }\n return res\n } else {\n return latest\n }\n}\n\nfunction Vue$3 (options) {\n if (\"development\" !== 'production' &&\n !(this instanceof Vue$3)\n ) {\n warn('Vue is a constructor and should be called with the `new` keyword');\n }\n this._init(options);\n}\n\ninitMixin(Vue$3);\nstateMixin(Vue$3);\neventsMixin(Vue$3);\nlifecycleMixin(Vue$3);\nrenderMixin(Vue$3);\n\n/* */\n\nfunction initUse (Vue) {\n Vue.use = function (plugin) {\n var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));\n if (installedPlugins.indexOf(plugin) > -1) {\n return this\n }\n\n // additional parameters\n var args = toArray(arguments, 1);\n args.unshift(this);\n if (typeof plugin.install === 'function') {\n plugin.install.apply(plugin, args);\n } else if (typeof plugin === 'function') {\n plugin.apply(null, args);\n }\n installedPlugins.push(plugin);\n return this\n };\n}\n\n/* */\n\nfunction initMixin$1 (Vue) {\n Vue.mixin = function (mixin) {\n this.options = mergeOptions(this.options, mixin);\n return this\n };\n}\n\n/* */\n\nfunction initExtend (Vue) {\n /**\n * Each instance constructor, including Vue, has a unique\n * cid. This enables us to create wrapped \"child\n * constructors\" for prototypal inheritance and cache them.\n */\n Vue.cid = 0;\n var cid = 1;\n\n /**\n * Class inheritance\n */\n Vue.extend = function (extendOptions) {\n extendOptions = extendOptions || {};\n var Super = this;\n var SuperId = Super.cid;\n var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});\n if (cachedCtors[SuperId]) {\n return cachedCtors[SuperId]\n }\n\n var name = extendOptions.name || Super.options.name;\n if (true) {\n if (!/^[a-zA-Z][\\w-]*$/.test(name)) {\n warn(\n 'Invalid component name: \"' + name + '\". Component names ' +\n 'can only contain alphanumeric characters and the hyphen, ' +\n 'and must start with a letter.'\n );\n }\n }\n\n var Sub = function VueComponent (options) {\n this._init(options);\n };\n Sub.prototype = Object.create(Super.prototype);\n Sub.prototype.constructor = Sub;\n Sub.cid = cid++;\n Sub.options = mergeOptions(\n Super.options,\n extendOptions\n );\n Sub['super'] = Super;\n\n // For props and computed properties, we define the proxy getters on\n // the Vue instances at extension time, on the extended prototype. This\n // avoids Object.defineProperty calls for each instance created.\n if (Sub.options.props) {\n initProps$1(Sub);\n }\n if (Sub.options.computed) {\n initComputed$1(Sub);\n }\n\n // allow further extension/mixin/plugin usage\n Sub.extend = Super.extend;\n Sub.mixin = Super.mixin;\n Sub.use = Super.use;\n\n // create asset registers, so extended classes\n // can have their private assets too.\n ASSET_TYPES.forEach(function (type) {\n Sub[type] = Super[type];\n });\n // enable recursive self-lookup\n if (name) {\n Sub.options.components[name] = Sub;\n }\n\n // keep a reference to the super options at extension time.\n // later at instantiation we can check if Super's options have\n // been updated.\n Sub.superOptions = Super.options;\n Sub.extendOptions = extendOptions;\n Sub.sealedOptions = extend({}, Sub.options);\n\n // cache constructor\n cachedCtors[SuperId] = Sub;\n return Sub\n };\n}\n\nfunction initProps$1 (Comp) {\n var props = Comp.options.props;\n for (var key in props) {\n proxy(Comp.prototype, \"_props\", key);\n }\n}\n\nfunction initComputed$1 (Comp) {\n var computed = Comp.options.computed;\n for (var key in computed) {\n defineComputed(Comp.prototype, key, computed[key]);\n }\n}\n\n/* */\n\nfunction initAssetRegisters (Vue) {\n /**\n * Create asset registration methods.\n */\n ASSET_TYPES.forEach(function (type) {\n Vue[type] = function (\n id,\n definition\n ) {\n if (!definition) {\n return this.options[type + 's'][id]\n } else {\n /* istanbul ignore if */\n if (true) {\n if (type === 'component' && config.isReservedTag(id)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + id\n );\n }\n }\n if (type === 'component' && isPlainObject(definition)) {\n definition.name = definition.name || id;\n definition = this.options._base.extend(definition);\n }\n if (type === 'directive' && typeof definition === 'function') {\n definition = { bind: definition, update: definition };\n }\n this.options[type + 's'][id] = definition;\n return definition\n }\n };\n });\n}\n\n/* */\n\nvar patternTypes = [String, RegExp, Array];\n\nfunction getComponentName (opts) {\n return opts && (opts.Ctor.options.name || opts.tag)\n}\n\nfunction matches (pattern, name) {\n if (Array.isArray(pattern)) {\n return pattern.indexOf(name) > -1\n } else if (typeof pattern === 'string') {\n return pattern.split(',').indexOf(name) > -1\n } else if (isRegExp(pattern)) {\n return pattern.test(name)\n }\n /* istanbul ignore next */\n return false\n}\n\nfunction pruneCache (cache, current, filter) {\n for (var key in cache) {\n var cachedNode = cache[key];\n if (cachedNode) {\n var name = getComponentName(cachedNode.componentOptions);\n if (name && !filter(name)) {\n if (cachedNode !== current) {\n pruneCacheEntry(cachedNode);\n }\n cache[key] = null;\n }\n }\n }\n}\n\nfunction pruneCacheEntry (vnode) {\n if (vnode) {\n vnode.componentInstance.$destroy();\n }\n}\n\nvar KeepAlive = {\n name: 'keep-alive',\n abstract: true,\n\n props: {\n include: patternTypes,\n exclude: patternTypes\n },\n\n created: function created () {\n this.cache = Object.create(null);\n },\n\n destroyed: function destroyed () {\n var this$1 = this;\n\n for (var key in this$1.cache) {\n pruneCacheEntry(this$1.cache[key]);\n }\n },\n\n watch: {\n include: function include (val) {\n pruneCache(this.cache, this._vnode, function (name) { return matches(val, name); });\n },\n exclude: function exclude (val) {\n pruneCache(this.cache, this._vnode, function (name) { return !matches(val, name); });\n }\n },\n\n render: function render () {\n var vnode = getFirstComponentChild(this.$slots.default);\n var componentOptions = vnode && vnode.componentOptions;\n if (componentOptions) {\n // check pattern\n var name = getComponentName(componentOptions);\n if (name && (\n (this.include && !matches(this.include, name)) ||\n (this.exclude && matches(this.exclude, name))\n )) {\n return vnode\n }\n var key = vnode.key == null\n // same constructor may get registered as different local components\n // so cid alone is not enough (#3269)\n ? componentOptions.Ctor.cid + (componentOptions.tag ? (\"::\" + (componentOptions.tag)) : '')\n : vnode.key;\n if (this.cache[key]) {\n vnode.componentInstance = this.cache[key].componentInstance;\n } else {\n this.cache[key] = vnode;\n }\n vnode.data.keepAlive = true;\n }\n return vnode\n }\n};\n\nvar builtInComponents = {\n KeepAlive: KeepAlive\n};\n\n/* */\n\nfunction initGlobalAPI (Vue) {\n // config\n var configDef = {};\n configDef.get = function () { return config; };\n if (true) {\n configDef.set = function () {\n warn(\n 'Do not replace the Vue.config object, set individual fields instead.'\n );\n };\n }\n Object.defineProperty(Vue, 'config', configDef);\n\n // exposed util methods.\n // NOTE: these are not considered part of the public API - avoid relying on\n // them unless you are aware of the risk.\n Vue.util = {\n warn: warn,\n extend: extend,\n mergeOptions: mergeOptions,\n defineReactive: defineReactive$$1\n };\n\n Vue.set = set;\n Vue.delete = del;\n Vue.nextTick = nextTick;\n\n Vue.options = Object.create(null);\n ASSET_TYPES.forEach(function (type) {\n Vue.options[type + 's'] = Object.create(null);\n });\n\n // this is used to identify the \"base\" constructor to extend all plain-object\n // components with in Weex's multi-instance scenarios.\n Vue.options._base = Vue;\n\n extend(Vue.options.components, builtInComponents);\n\n initUse(Vue);\n initMixin$1(Vue);\n initExtend(Vue);\n initAssetRegisters(Vue);\n}\n\ninitGlobalAPI(Vue$3);\n\nObject.defineProperty(Vue$3.prototype, '$isServer', {\n get: isServerRendering\n});\n\nObject.defineProperty(Vue$3.prototype, '$ssrContext', {\n get: function get () {\n /* istanbul ignore next */\n return this.$vnode && this.$vnode.ssrContext\n }\n});\n\nVue$3.version = '2.4.4';\n\n/* */\n\n// these are reserved for web because they are directly compiled away\n// during template compilation\nvar isReservedAttr = makeMap('style,class');\n\n// attributes that should be using props for binding\nvar acceptValue = makeMap('input,textarea,option,select,progress');\nvar mustUseProp = function (tag, type, attr) {\n return (\n (attr === 'value' && acceptValue(tag)) && type !== 'button' ||\n (attr === 'selected' && tag === 'option') ||\n (attr === 'checked' && tag === 'input') ||\n (attr === 'muted' && tag === 'video')\n )\n};\n\nvar isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');\n\nvar isBooleanAttr = makeMap(\n 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +\n 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +\n 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +\n 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +\n 'required,reversed,scoped,seamless,selected,sortable,translate,' +\n 'truespeed,typemustmatch,visible'\n);\n\nvar xlinkNS = 'http://www.w3.org/1999/xlink';\n\nvar isXlink = function (name) {\n return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'\n};\n\nvar getXlinkProp = function (name) {\n return isXlink(name) ? name.slice(6, name.length) : ''\n};\n\nvar isFalsyAttrValue = function (val) {\n return val == null || val === false\n};\n\n/* */\n\nfunction genClassForVnode (vnode) {\n var data = vnode.data;\n var parentNode = vnode;\n var childNode = vnode;\n while (isDef(childNode.componentInstance)) {\n childNode = childNode.componentInstance._vnode;\n if (childNode.data) {\n data = mergeClassData(childNode.data, data);\n }\n }\n while (isDef(parentNode = parentNode.parent)) {\n if (parentNode.data) {\n data = mergeClassData(data, parentNode.data);\n }\n }\n return renderClass(data.staticClass, data.class)\n}\n\nfunction mergeClassData (child, parent) {\n return {\n staticClass: concat(child.staticClass, parent.staticClass),\n class: isDef(child.class)\n ? [child.class, parent.class]\n : parent.class\n }\n}\n\nfunction renderClass (\n staticClass,\n dynamicClass\n) {\n if (isDef(staticClass) || isDef(dynamicClass)) {\n return concat(staticClass, stringifyClass(dynamicClass))\n }\n /* istanbul ignore next */\n return ''\n}\n\nfunction concat (a, b) {\n return a ? b ? (a + ' ' + b) : a : (b || '')\n}\n\nfunction stringifyClass (value) {\n if (Array.isArray(value)) {\n return stringifyArray(value)\n }\n if (isObject(value)) {\n return stringifyObject(value)\n }\n if (typeof value === 'string') {\n return value\n }\n /* istanbul ignore next */\n return ''\n}\n\nfunction stringifyArray (value) {\n var res = '';\n var stringified;\n for (var i = 0, l = value.length; i < l; i++) {\n if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {\n if (res) { res += ' '; }\n res += stringified;\n }\n }\n return res\n}\n\nfunction stringifyObject (value) {\n var res = '';\n for (var key in value) {\n if (value[key]) {\n if (res) { res += ' '; }\n res += key;\n }\n }\n return res\n}\n\n/* */\n\nvar namespaceMap = {\n svg: 'http://www.w3.org/2000/svg',\n math: 'http://www.w3.org/1998/Math/MathML'\n};\n\nvar isHTMLTag = makeMap(\n 'html,body,base,head,link,meta,style,title,' +\n 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +\n 'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +\n 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +\n 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +\n 'embed,object,param,source,canvas,script,noscript,del,ins,' +\n 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +\n 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +\n 'output,progress,select,textarea,' +\n 'details,dialog,menu,menuitem,summary,' +\n 'content,element,shadow,template,blockquote,iframe,tfoot'\n);\n\n// this map is intentionally selective, only covering SVG elements that may\n// contain child elements.\nvar isSVG = makeMap(\n 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +\n 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +\n 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',\n true\n);\n\n\n\nvar isReservedTag = function (tag) {\n return isHTMLTag(tag) || isSVG(tag)\n};\n\nfunction getTagNamespace (tag) {\n if (isSVG(tag)) {\n return 'svg'\n }\n // basic support for MathML\n // note it doesn't support other MathML elements being component roots\n if (tag === 'math') {\n return 'math'\n }\n}\n\nvar unknownElementCache = Object.create(null);\nfunction isUnknownElement (tag) {\n /* istanbul ignore if */\n if (!inBrowser) {\n return true\n }\n if (isReservedTag(tag)) {\n return false\n }\n tag = tag.toLowerCase();\n /* istanbul ignore if */\n if (unknownElementCache[tag] != null) {\n return unknownElementCache[tag]\n }\n var el = document.createElement(tag);\n if (tag.indexOf('-') > -1) {\n // http://stackoverflow.com/a/28210364/1070244\n return (unknownElementCache[tag] = (\n el.constructor === window.HTMLUnknownElement ||\n el.constructor === window.HTMLElement\n ))\n } else {\n return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))\n }\n}\n\nvar isTextInputType = makeMap('text,number,password,search,email,tel,url');\n\n/* */\n\n/**\n * Query an element selector if it's not an element already.\n */\nfunction query (el) {\n if (typeof el === 'string') {\n var selected = document.querySelector(el);\n if (!selected) {\n \"development\" !== 'production' && warn(\n 'Cannot find element: ' + el\n );\n return document.createElement('div')\n }\n return selected\n } else {\n return el\n }\n}\n\n/* */\n\nfunction createElement$1 (tagName, vnode) {\n var elm = document.createElement(tagName);\n if (tagName !== 'select') {\n return elm\n }\n // false or null will remove the attribute but undefined will not\n if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {\n elm.setAttribute('multiple', 'multiple');\n }\n return elm\n}\n\nfunction createElementNS (namespace, tagName) {\n return document.createElementNS(namespaceMap[namespace], tagName)\n}\n\nfunction createTextNode (text) {\n return document.createTextNode(text)\n}\n\nfunction createComment (text) {\n return document.createComment(text)\n}\n\nfunction insertBefore (parentNode, newNode, referenceNode) {\n parentNode.insertBefore(newNode, referenceNode);\n}\n\nfunction removeChild (node, child) {\n node.removeChild(child);\n}\n\nfunction appendChild (node, child) {\n node.appendChild(child);\n}\n\nfunction parentNode (node) {\n return node.parentNode\n}\n\nfunction nextSibling (node) {\n return node.nextSibling\n}\n\nfunction tagName (node) {\n return node.tagName\n}\n\nfunction setTextContent (node, text) {\n node.textContent = text;\n}\n\nfunction setAttribute (node, key, val) {\n node.setAttribute(key, val);\n}\n\n\nvar nodeOps = Object.freeze({\n\tcreateElement: createElement$1,\n\tcreateElementNS: createElementNS,\n\tcreateTextNode: createTextNode,\n\tcreateComment: createComment,\n\tinsertBefore: insertBefore,\n\tremoveChild: removeChild,\n\tappendChild: appendChild,\n\tparentNode: parentNode,\n\tnextSibling: nextSibling,\n\ttagName: tagName,\n\tsetTextContent: setTextContent,\n\tsetAttribute: setAttribute\n});\n\n/* */\n\nvar ref = {\n create: function create (_, vnode) {\n registerRef(vnode);\n },\n update: function update (oldVnode, vnode) {\n if (oldVnode.data.ref !== vnode.data.ref) {\n registerRef(oldVnode, true);\n registerRef(vnode);\n }\n },\n destroy: function destroy (vnode) {\n registerRef(vnode, true);\n }\n};\n\nfunction registerRef (vnode, isRemoval) {\n var key = vnode.data.ref;\n if (!key) { return }\n\n var vm = vnode.context;\n var ref = vnode.componentInstance || vnode.elm;\n var refs = vm.$refs;\n if (isRemoval) {\n if (Array.isArray(refs[key])) {\n remove(refs[key], ref);\n } else if (refs[key] === ref) {\n refs[key] = undefined;\n }\n } else {\n if (vnode.data.refInFor) {\n if (!Array.isArray(refs[key])) {\n refs[key] = [ref];\n } else if (refs[key].indexOf(ref) < 0) {\n // $flow-disable-line\n refs[key].push(ref);\n }\n } else {\n refs[key] = ref;\n }\n }\n}\n\n/**\n * Virtual DOM patching algorithm based on Snabbdom by\n * Simon Friis Vindum (@paldepind)\n * Licensed under the MIT License\n * https://github.com/paldepind/snabbdom/blob/master/LICENSE\n *\n * modified by Evan You (@yyx990803)\n *\n * Not type-checking this because this file is perf-critical and the cost\n * of making flow understand it is not worth it.\n */\n\nvar emptyNode = new VNode('', {}, []);\n\nvar hooks = ['create', 'activate', 'update', 'remove', 'destroy'];\n\nfunction sameVnode (a, b) {\n return (\n a.key === b.key && (\n (\n a.tag === b.tag &&\n a.isComment === b.isComment &&\n isDef(a.data) === isDef(b.data) &&\n sameInputType(a, b)\n ) || (\n isTrue(a.isAsyncPlaceholder) &&\n a.asyncFactory === b.asyncFactory &&\n isUndef(b.asyncFactory.error)\n )\n )\n )\n}\n\nfunction sameInputType (a, b) {\n if (a.tag !== 'input') { return true }\n var i;\n var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;\n var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;\n return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)\n}\n\nfunction createKeyToOldIdx (children, beginIdx, endIdx) {\n var i, key;\n var map = {};\n for (i = beginIdx; i <= endIdx; ++i) {\n key = children[i].key;\n if (isDef(key)) { map[key] = i; }\n }\n return map\n}\n\nfunction createPatchFunction (backend) {\n var i, j;\n var cbs = {};\n\n var modules = backend.modules;\n var nodeOps = backend.nodeOps;\n\n for (i = 0; i < hooks.length; ++i) {\n cbs[hooks[i]] = [];\n for (j = 0; j < modules.length; ++j) {\n if (isDef(modules[j][hooks[i]])) {\n cbs[hooks[i]].push(modules[j][hooks[i]]);\n }\n }\n }\n\n function emptyNodeAt (elm) {\n return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)\n }\n\n function createRmCb (childElm, listeners) {\n function remove$$1 () {\n if (--remove$$1.listeners === 0) {\n removeNode(childElm);\n }\n }\n remove$$1.listeners = listeners;\n return remove$$1\n }\n\n function removeNode (el) {\n var parent = nodeOps.parentNode(el);\n // element may have already been removed due to v-html / v-text\n if (isDef(parent)) {\n nodeOps.removeChild(parent, el);\n }\n }\n\n var inPre = 0;\n function createElm (vnode, insertedVnodeQueue, parentElm, refElm, nested) {\n vnode.isRootInsert = !nested; // for transition enter check\n if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {\n return\n }\n\n var data = vnode.data;\n var children = vnode.children;\n var tag = vnode.tag;\n if (isDef(tag)) {\n if (true) {\n if (data && data.pre) {\n inPre++;\n }\n if (\n !inPre &&\n !vnode.ns &&\n !(config.ignoredElements.length && config.ignoredElements.indexOf(tag) > -1) &&\n config.isUnknownElement(tag)\n ) {\n warn(\n 'Unknown custom element: <' + tag + '> - did you ' +\n 'register the component correctly? For recursive components, ' +\n 'make sure to provide the \"name\" option.',\n vnode.context\n );\n }\n }\n vnode.elm = vnode.ns\n ? nodeOps.createElementNS(vnode.ns, tag)\n : nodeOps.createElement(tag, vnode);\n setScope(vnode);\n\n /* istanbul ignore if */\n {\n createChildren(vnode, children, insertedVnodeQueue);\n if (isDef(data)) {\n invokeCreateHooks(vnode, insertedVnodeQueue);\n }\n insert(parentElm, vnode.elm, refElm);\n }\n\n if (\"development\" !== 'production' && data && data.pre) {\n inPre--;\n }\n } else if (isTrue(vnode.isComment)) {\n vnode.elm = nodeOps.createComment(vnode.text);\n insert(parentElm, vnode.elm, refElm);\n } else {\n vnode.elm = nodeOps.createTextNode(vnode.text);\n insert(parentElm, vnode.elm, refElm);\n }\n }\n\n function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\n var i = vnode.data;\n if (isDef(i)) {\n var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;\n if (isDef(i = i.hook) && isDef(i = i.init)) {\n i(vnode, false /* hydrating */, parentElm, refElm);\n }\n // after calling the init hook, if the vnode is a child component\n // it should've created a child instance and mounted it. the child\n // component also has set the placeholder vnode's elm.\n // in that case we can just return the element and be done.\n if (isDef(vnode.componentInstance)) {\n initComponent(vnode, insertedVnodeQueue);\n if (isTrue(isReactivated)) {\n reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);\n }\n return true\n }\n }\n }\n\n function initComponent (vnode, insertedVnodeQueue) {\n if (isDef(vnode.data.pendingInsert)) {\n insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);\n vnode.data.pendingInsert = null;\n }\n vnode.elm = vnode.componentInstance.$el;\n if (isPatchable(vnode)) {\n invokeCreateHooks(vnode, insertedVnodeQueue);\n setScope(vnode);\n } else {\n // empty component root.\n // skip all element-related modules except for ref (#3455)\n registerRef(vnode);\n // make sure to invoke the insert hook\n insertedVnodeQueue.push(vnode);\n }\n }\n\n function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {\n var i;\n // hack for #4339: a reactivated component with inner transition\n // does not trigger because the inner node's created hooks are not called\n // again. It's not ideal to involve module-specific logic in here but\n // there doesn't seem to be a better way to do it.\n var innerNode = vnode;\n while (innerNode.componentInstance) {\n innerNode = innerNode.componentInstance._vnode;\n if (isDef(i = innerNode.data) && isDef(i = i.transition)) {\n for (i = 0; i < cbs.activate.length; ++i) {\n cbs.activate[i](emptyNode, innerNode);\n }\n insertedVnodeQueue.push(innerNode);\n break\n }\n }\n // unlike a newly created component,\n // a reactivated keep-alive component doesn't insert itself\n insert(parentElm, vnode.elm, refElm);\n }\n\n function insert (parent, elm, ref$$1) {\n if (isDef(parent)) {\n if (isDef(ref$$1)) {\n if (ref$$1.parentNode === parent) {\n nodeOps.insertBefore(parent, elm, ref$$1);\n }\n } else {\n nodeOps.appendChild(parent, elm);\n }\n }\n }\n\n function createChildren (vnode, children, insertedVnodeQueue) {\n if (Array.isArray(children)) {\n for (var i = 0; i < children.length; ++i) {\n createElm(children[i], insertedVnodeQueue, vnode.elm, null, true);\n }\n } else if (isPrimitive(vnode.text)) {\n nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(vnode.text));\n }\n }\n\n function isPatchable (vnode) {\n while (vnode.componentInstance) {\n vnode = vnode.componentInstance._vnode;\n }\n return isDef(vnode.tag)\n }\n\n function invokeCreateHooks (vnode, insertedVnodeQueue) {\n for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {\n cbs.create[i$1](emptyNode, vnode);\n }\n i = vnode.data.hook; // Reuse variable\n if (isDef(i)) {\n if (isDef(i.create)) { i.create(emptyNode, vnode); }\n if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }\n }\n }\n\n // set scope id attribute for scoped CSS.\n // this is implemented as a special case to avoid the overhead\n // of going through the normal attribute patching process.\n function setScope (vnode) {\n var i;\n var ancestor = vnode;\n while (ancestor) {\n if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {\n nodeOps.setAttribute(vnode.elm, i, '');\n }\n ancestor = ancestor.parent;\n }\n // for slot content they should also get the scopeId from the host instance.\n if (isDef(i = activeInstance) &&\n i !== vnode.context &&\n isDef(i = i.$options._scopeId)\n ) {\n nodeOps.setAttribute(vnode.elm, i, '');\n }\n }\n\n function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {\n for (; startIdx <= endIdx; ++startIdx) {\n createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm);\n }\n }\n\n function invokeDestroyHook (vnode) {\n var i, j;\n var data = vnode.data;\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }\n for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }\n }\n if (isDef(i = vnode.children)) {\n for (j = 0; j < vnode.children.length; ++j) {\n invokeDestroyHook(vnode.children[j]);\n }\n }\n }\n\n function removeVnodes (parentElm, vnodes, startIdx, endIdx) {\n for (; startIdx <= endIdx; ++startIdx) {\n var ch = vnodes[startIdx];\n if (isDef(ch)) {\n if (isDef(ch.tag)) {\n removeAndInvokeRemoveHook(ch);\n invokeDestroyHook(ch);\n } else { // Text node\n removeNode(ch.elm);\n }\n }\n }\n }\n\n function removeAndInvokeRemoveHook (vnode, rm) {\n if (isDef(rm) || isDef(vnode.data)) {\n var i;\n var listeners = cbs.remove.length + 1;\n if (isDef(rm)) {\n // we have a recursively passed down rm callback\n // increase the listeners count\n rm.listeners += listeners;\n } else {\n // directly removing\n rm = createRmCb(vnode.elm, listeners);\n }\n // recursively invoke hooks on child component root node\n if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {\n removeAndInvokeRemoveHook(i, rm);\n }\n for (i = 0; i < cbs.remove.length; ++i) {\n cbs.remove[i](vnode, rm);\n }\n if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {\n i(vnode, rm);\n } else {\n rm();\n }\n } else {\n removeNode(vnode.elm);\n }\n }\n\n function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {\n var oldStartIdx = 0;\n var newStartIdx = 0;\n var oldEndIdx = oldCh.length - 1;\n var oldStartVnode = oldCh[0];\n var oldEndVnode = oldCh[oldEndIdx];\n var newEndIdx = newCh.length - 1;\n var newStartVnode = newCh[0];\n var newEndVnode = newCh[newEndIdx];\n var oldKeyToIdx, idxInOld, elmToMove, refElm;\n\n // removeOnly is a special flag used only by <transition-group>\n // to ensure removed elements stay in correct relative positions\n // during leaving transitions\n var canMove = !removeOnly;\n\n while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {\n if (isUndef(oldStartVnode)) {\n oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left\n } else if (isUndef(oldEndVnode)) {\n oldEndVnode = oldCh[--oldEndIdx];\n } else if (sameVnode(oldStartVnode, newStartVnode)) {\n patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);\n oldStartVnode = oldCh[++oldStartIdx];\n newStartVnode = newCh[++newStartIdx];\n } else if (sameVnode(oldEndVnode, newEndVnode)) {\n patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);\n oldEndVnode = oldCh[--oldEndIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right\n patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);\n canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));\n oldStartVnode = oldCh[++oldStartIdx];\n newEndVnode = newCh[--newEndIdx];\n } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left\n patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);\n canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);\n oldEndVnode = oldCh[--oldEndIdx];\n newStartVnode = newCh[++newStartIdx];\n } else {\n if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }\n idxInOld = isDef(newStartVnode.key)\n ? oldKeyToIdx[newStartVnode.key]\n : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);\n if (isUndef(idxInOld)) { // New element\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);\n } else {\n elmToMove = oldCh[idxInOld];\n /* istanbul ignore if */\n if (\"development\" !== 'production' && !elmToMove) {\n warn(\n 'It seems there are duplicate keys that is causing an update error. ' +\n 'Make sure each v-for item has a unique key.'\n );\n }\n if (sameVnode(elmToMove, newStartVnode)) {\n patchVnode(elmToMove, newStartVnode, insertedVnodeQueue);\n oldCh[idxInOld] = undefined;\n canMove && nodeOps.insertBefore(parentElm, elmToMove.elm, oldStartVnode.elm);\n } else {\n // same key but different element. treat as new element\n createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm);\n }\n }\n newStartVnode = newCh[++newStartIdx];\n }\n }\n if (oldStartIdx > oldEndIdx) {\n refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;\n addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);\n } else if (newStartIdx > newEndIdx) {\n removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);\n }\n }\n\n function findIdxInOld (node, oldCh, start, end) {\n for (var i = start; i < end; i++) {\n var c = oldCh[i];\n if (isDef(c) && sameVnode(node, c)) { return i }\n }\n }\n\n function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {\n if (oldVnode === vnode) {\n return\n }\n\n var elm = vnode.elm = oldVnode.elm;\n\n if (isTrue(oldVnode.isAsyncPlaceholder)) {\n if (isDef(vnode.asyncFactory.resolved)) {\n hydrate(oldVnode.elm, vnode, insertedVnodeQueue);\n } else {\n vnode.isAsyncPlaceholder = true;\n }\n return\n }\n\n // reuse element for static trees.\n // note we only do this if the vnode is cloned -\n // if the new node is not cloned it means the render functions have been\n // reset by the hot-reload-api and we need to do a proper re-render.\n if (isTrue(vnode.isStatic) &&\n isTrue(oldVnode.isStatic) &&\n vnode.key === oldVnode.key &&\n (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))\n ) {\n vnode.componentInstance = oldVnode.componentInstance;\n return\n }\n\n var i;\n var data = vnode.data;\n if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {\n i(oldVnode, vnode);\n }\n\n var oldCh = oldVnode.children;\n var ch = vnode.children;\n if (isDef(data) && isPatchable(vnode)) {\n for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }\n if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }\n }\n if (isUndef(vnode.text)) {\n if (isDef(oldCh) && isDef(ch)) {\n if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }\n } else if (isDef(ch)) {\n if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }\n addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);\n } else if (isDef(oldCh)) {\n removeVnodes(elm, oldCh, 0, oldCh.length - 1);\n } else if (isDef(oldVnode.text)) {\n nodeOps.setTextContent(elm, '');\n }\n } else if (oldVnode.text !== vnode.text) {\n nodeOps.setTextContent(elm, vnode.text);\n }\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }\n }\n }\n\n function invokeInsertHook (vnode, queue, initial) {\n // delay insert hooks for component root nodes, invoke them after the\n // element is really inserted\n if (isTrue(initial) && isDef(vnode.parent)) {\n vnode.parent.data.pendingInsert = queue;\n } else {\n for (var i = 0; i < queue.length; ++i) {\n queue[i].data.hook.insert(queue[i]);\n }\n }\n }\n\n var bailed = false;\n // list of modules that can skip create hook during hydration because they\n // are already rendered on the client or has no need for initialization\n var isRenderedModule = makeMap('attrs,style,class,staticClass,staticStyle,key');\n\n // Note: this is a browser-only function so we can assume elms are DOM nodes.\n function hydrate (elm, vnode, insertedVnodeQueue) {\n if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {\n vnode.elm = elm;\n vnode.isAsyncPlaceholder = true;\n return true\n }\n if (true) {\n if (!assertNodeMatch(elm, vnode)) {\n return false\n }\n }\n vnode.elm = elm;\n var tag = vnode.tag;\n var data = vnode.data;\n var children = vnode.children;\n if (isDef(data)) {\n if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }\n if (isDef(i = vnode.componentInstance)) {\n // child component. it should have hydrated its own tree.\n initComponent(vnode, insertedVnodeQueue);\n return true\n }\n }\n if (isDef(tag)) {\n if (isDef(children)) {\n // empty element, allow client to pick up and populate children\n if (!elm.hasChildNodes()) {\n createChildren(vnode, children, insertedVnodeQueue);\n } else {\n // v-html and domProps: innerHTML\n if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {\n if (i !== elm.innerHTML) {\n /* istanbul ignore if */\n if (\"development\" !== 'production' &&\n typeof console !== 'undefined' &&\n !bailed\n ) {\n bailed = true;\n console.warn('Parent: ', elm);\n console.warn('server innerHTML: ', i);\n console.warn('client innerHTML: ', elm.innerHTML);\n }\n return false\n }\n } else {\n // iterate and compare children lists\n var childrenMatch = true;\n var childNode = elm.firstChild;\n for (var i$1 = 0; i$1 < children.length; i$1++) {\n if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue)) {\n childrenMatch = false;\n break\n }\n childNode = childNode.nextSibling;\n }\n // if childNode is not null, it means the actual childNodes list is\n // longer than the virtual children list.\n if (!childrenMatch || childNode) {\n /* istanbul ignore if */\n if (\"development\" !== 'production' &&\n typeof console !== 'undefined' &&\n !bailed\n ) {\n bailed = true;\n console.warn('Parent: ', elm);\n console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);\n }\n return false\n }\n }\n }\n }\n if (isDef(data)) {\n for (var key in data) {\n if (!isRenderedModule(key)) {\n invokeCreateHooks(vnode, insertedVnodeQueue);\n break\n }\n }\n }\n } else if (elm.data !== vnode.text) {\n elm.data = vnode.text;\n }\n return true\n }\n\n function assertNodeMatch (node, vnode) {\n if (isDef(vnode.tag)) {\n return (\n vnode.tag.indexOf('vue-component') === 0 ||\n vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())\n )\n } else {\n return node.nodeType === (vnode.isComment ? 8 : 3)\n }\n }\n\n return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {\n if (isUndef(vnode)) {\n if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }\n return\n }\n\n var isInitialPatch = false;\n var insertedVnodeQueue = [];\n\n if (isUndef(oldVnode)) {\n // empty mount (likely as component), create new root element\n isInitialPatch = true;\n createElm(vnode, insertedVnodeQueue, parentElm, refElm);\n } else {\n var isRealElement = isDef(oldVnode.nodeType);\n if (!isRealElement && sameVnode(oldVnode, vnode)) {\n // patch existing root node\n patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);\n } else {\n if (isRealElement) {\n // mounting to a real element\n // check if this is server-rendered content and if we can perform\n // a successful hydration.\n if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {\n oldVnode.removeAttribute(SSR_ATTR);\n hydrating = true;\n }\n if (isTrue(hydrating)) {\n if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {\n invokeInsertHook(vnode, insertedVnodeQueue, true);\n return oldVnode\n } else if (true) {\n warn(\n 'The client-side rendered virtual DOM tree is not matching ' +\n 'server-rendered content. This is likely caused by incorrect ' +\n 'HTML markup, for example nesting block-level elements inside ' +\n '<p>, or missing <tbody>. Bailing hydration and performing ' +\n 'full client-side render.'\n );\n }\n }\n // either not server-rendered, or hydration failed.\n // create an empty node and replace it\n oldVnode = emptyNodeAt(oldVnode);\n }\n // replacing existing element\n var oldElm = oldVnode.elm;\n var parentElm$1 = nodeOps.parentNode(oldElm);\n createElm(\n vnode,\n insertedVnodeQueue,\n // extremely rare edge case: do not insert if old element is in a\n // leaving transition. Only happens when combining transition +\n // keep-alive + HOCs. (#4590)\n oldElm._leaveCb ? null : parentElm$1,\n nodeOps.nextSibling(oldElm)\n );\n\n if (isDef(vnode.parent)) {\n // component root element replaced.\n // update parent placeholder node element, recursively\n var ancestor = vnode.parent;\n var patchable = isPatchable(vnode);\n while (ancestor) {\n for (var i = 0; i < cbs.destroy.length; ++i) {\n cbs.destroy[i](ancestor);\n }\n ancestor.elm = vnode.elm;\n if (patchable) {\n for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {\n cbs.create[i$1](emptyNode, ancestor);\n }\n // #6513\n // invoke insert hooks that may have been merged by create hooks.\n // e.g. for directives that uses the \"inserted\" hook.\n var insert = ancestor.data.hook.insert;\n if (insert.merged) {\n // start at index 1 to avoid re-invoking component mounted hook\n for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {\n insert.fns[i$2]();\n }\n }\n }\n ancestor = ancestor.parent;\n }\n }\n\n if (isDef(parentElm$1)) {\n removeVnodes(parentElm$1, [oldVnode], 0, 0);\n } else if (isDef(oldVnode.tag)) {\n invokeDestroyHook(oldVnode);\n }\n }\n }\n\n invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);\n return vnode.elm\n }\n}\n\n/* */\n\nvar directives = {\n create: updateDirectives,\n update: updateDirectives,\n destroy: function unbindDirectives (vnode) {\n updateDirectives(vnode, emptyNode);\n }\n};\n\nfunction updateDirectives (oldVnode, vnode) {\n if (oldVnode.data.directives || vnode.data.directives) {\n _update(oldVnode, vnode);\n }\n}\n\nfunction _update (oldVnode, vnode) {\n var isCreate = oldVnode === emptyNode;\n var isDestroy = vnode === emptyNode;\n var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);\n var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);\n\n var dirsWithInsert = [];\n var dirsWithPostpatch = [];\n\n var key, oldDir, dir;\n for (key in newDirs) {\n oldDir = oldDirs[key];\n dir = newDirs[key];\n if (!oldDir) {\n // new directive, bind\n callHook$1(dir, 'bind', vnode, oldVnode);\n if (dir.def && dir.def.inserted) {\n dirsWithInsert.push(dir);\n }\n } else {\n // existing directive, update\n dir.oldValue = oldDir.value;\n callHook$1(dir, 'update', vnode, oldVnode);\n if (dir.def && dir.def.componentUpdated) {\n dirsWithPostpatch.push(dir);\n }\n }\n }\n\n if (dirsWithInsert.length) {\n var callInsert = function () {\n for (var i = 0; i < dirsWithInsert.length; i++) {\n callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);\n }\n };\n if (isCreate) {\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', callInsert);\n } else {\n callInsert();\n }\n }\n\n if (dirsWithPostpatch.length) {\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'postpatch', function () {\n for (var i = 0; i < dirsWithPostpatch.length; i++) {\n callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);\n }\n });\n }\n\n if (!isCreate) {\n for (key in oldDirs) {\n if (!newDirs[key]) {\n // no longer present, unbind\n callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);\n }\n }\n }\n}\n\nvar emptyModifiers = Object.create(null);\n\nfunction normalizeDirectives$1 (\n dirs,\n vm\n) {\n var res = Object.create(null);\n if (!dirs) {\n return res\n }\n var i, dir;\n for (i = 0; i < dirs.length; i++) {\n dir = dirs[i];\n if (!dir.modifiers) {\n dir.modifiers = emptyModifiers;\n }\n res[getRawDirName(dir)] = dir;\n dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);\n }\n return res\n}\n\nfunction getRawDirName (dir) {\n return dir.rawName || ((dir.name) + \".\" + (Object.keys(dir.modifiers || {}).join('.')))\n}\n\nfunction callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {\n var fn = dir.def && dir.def[hook];\n if (fn) {\n try {\n fn(vnode.elm, dir, vnode, oldVnode, isDestroy);\n } catch (e) {\n handleError(e, vnode.context, (\"directive \" + (dir.name) + \" \" + hook + \" hook\"));\n }\n }\n}\n\nvar baseModules = [\n ref,\n directives\n];\n\n/* */\n\nfunction updateAttrs (oldVnode, vnode) {\n var opts = vnode.componentOptions;\n if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {\n return\n }\n if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {\n return\n }\n var key, cur, old;\n var elm = vnode.elm;\n var oldAttrs = oldVnode.data.attrs || {};\n var attrs = vnode.data.attrs || {};\n // clone observed objects, as the user probably wants to mutate it\n if (isDef(attrs.__ob__)) {\n attrs = vnode.data.attrs = extend({}, attrs);\n }\n\n for (key in attrs) {\n cur = attrs[key];\n old = oldAttrs[key];\n if (old !== cur) {\n setAttr(elm, key, cur);\n }\n }\n // #4391: in IE9, setting type can reset value for input[type=radio]\n /* istanbul ignore if */\n if (isIE9 && attrs.value !== oldAttrs.value) {\n setAttr(elm, 'value', attrs.value);\n }\n for (key in oldAttrs) {\n if (isUndef(attrs[key])) {\n if (isXlink(key)) {\n elm.removeAttributeNS(xlinkNS, getXlinkProp(key));\n } else if (!isEnumeratedAttr(key)) {\n elm.removeAttribute(key);\n }\n }\n }\n}\n\nfunction setAttr (el, key, value) {\n if (isBooleanAttr(key)) {\n // set attribute for blank value\n // e.g. <option disabled>Select one</option>\n if (isFalsyAttrValue(value)) {\n el.removeAttribute(key);\n } else {\n // technically allowfullscreen is a boolean attribute for <iframe>,\n // but Flash expects a value of \"true\" when used on <embed> tag\n value = key === 'allowfullscreen' && el.tagName === 'EMBED'\n ? 'true'\n : key;\n el.setAttribute(key, value);\n }\n } else if (isEnumeratedAttr(key)) {\n el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');\n } else if (isXlink(key)) {\n if (isFalsyAttrValue(value)) {\n el.removeAttributeNS(xlinkNS, getXlinkProp(key));\n } else {\n el.setAttributeNS(xlinkNS, key, value);\n }\n } else {\n if (isFalsyAttrValue(value)) {\n el.removeAttribute(key);\n } else {\n el.setAttribute(key, value);\n }\n }\n}\n\nvar attrs = {\n create: updateAttrs,\n update: updateAttrs\n};\n\n/* */\n\nfunction updateClass (oldVnode, vnode) {\n var el = vnode.elm;\n var data = vnode.data;\n var oldData = oldVnode.data;\n if (\n isUndef(data.staticClass) &&\n isUndef(data.class) && (\n isUndef(oldData) || (\n isUndef(oldData.staticClass) &&\n isUndef(oldData.class)\n )\n )\n ) {\n return\n }\n\n var cls = genClassForVnode(vnode);\n\n // handle transition classes\n var transitionClass = el._transitionClasses;\n if (isDef(transitionClass)) {\n cls = concat(cls, stringifyClass(transitionClass));\n }\n\n // set the class\n if (cls !== el._prevClass) {\n el.setAttribute('class', cls);\n el._prevClass = cls;\n }\n}\n\nvar klass = {\n create: updateClass,\n update: updateClass\n};\n\n/* */\n\nvar validDivisionCharRE = /[\\w).+\\-_$\\]]/;\n\n\n\nfunction wrapFilter (exp, filter) {\n var i = filter.indexOf('(');\n if (i < 0) {\n // _f: resolveFilter\n return (\"_f(\\\"\" + filter + \"\\\")(\" + exp + \")\")\n } else {\n var name = filter.slice(0, i);\n var args = filter.slice(i + 1);\n return (\"_f(\\\"\" + name + \"\\\")(\" + exp + \",\" + args)\n }\n}\n\n/* */\n\n/* */\n\n/**\n * Cross-platform code generation for component v-model\n */\n\n\n/**\n * Cross-platform codegen helper for generating v-model value assignment code.\n */\n\n\n/**\n * parse directive model to do the array update transform. a[idx] = val => $$a.splice($$idx, 1, val)\n *\n * for loop possible cases:\n *\n * - test\n * - test[idx]\n * - test[test1[idx]]\n * - test[\"a\"][idx]\n * - xxx.test[a[a].test1[idx]]\n * - test.xxx.a[\"asa\"][test1[idx]]\n *\n */\n\nvar str;\nvar index$1;\n\n/* */\n\n// in some cases, the event used has to be determined at runtime\n// so we used some reserved tokens during compile.\nvar RANGE_TOKEN = '__r';\nvar CHECKBOX_RADIO_TOKEN = '__c';\n\n/* */\n\n// normalize v-model event tokens that can only be determined at runtime.\n// it's important to place the event as the first in the array because\n// the whole point is ensuring the v-model callback gets called before\n// user-attached handlers.\nfunction normalizeEvents (on) {\n var event;\n /* istanbul ignore if */\n if (isDef(on[RANGE_TOKEN])) {\n // IE input[type=range] only supports `change` event\n event = isIE ? 'change' : 'input';\n on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);\n delete on[RANGE_TOKEN];\n }\n if (isDef(on[CHECKBOX_RADIO_TOKEN])) {\n // Chrome fires microtasks in between click/change, leads to #4521\n event = isChrome ? 'click' : 'change';\n on[event] = [].concat(on[CHECKBOX_RADIO_TOKEN], on[event] || []);\n delete on[CHECKBOX_RADIO_TOKEN];\n }\n}\n\nvar target$1;\n\nfunction add$1 (\n event,\n handler,\n once$$1,\n capture,\n passive\n) {\n if (once$$1) {\n var oldHandler = handler;\n var _target = target$1; // save current target element in closure\n handler = function (ev) {\n var res = arguments.length === 1\n ? oldHandler(ev)\n : oldHandler.apply(null, arguments);\n if (res !== null) {\n remove$2(event, handler, capture, _target);\n }\n };\n }\n target$1.addEventListener(\n event,\n handler,\n supportsPassive\n ? { capture: capture, passive: passive }\n : capture\n );\n}\n\nfunction remove$2 (\n event,\n handler,\n capture,\n _target\n) {\n (_target || target$1).removeEventListener(event, handler, capture);\n}\n\nfunction updateDOMListeners (oldVnode, vnode) {\n if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {\n return\n }\n var on = vnode.data.on || {};\n var oldOn = oldVnode.data.on || {};\n target$1 = vnode.elm;\n normalizeEvents(on);\n updateListeners(on, oldOn, add$1, remove$2, vnode.context);\n}\n\nvar events = {\n create: updateDOMListeners,\n update: updateDOMListeners\n};\n\n/* */\n\nfunction updateDOMProps (oldVnode, vnode) {\n if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {\n return\n }\n var key, cur;\n var elm = vnode.elm;\n var oldProps = oldVnode.data.domProps || {};\n var props = vnode.data.domProps || {};\n // clone observed objects, as the user probably wants to mutate it\n if (isDef(props.__ob__)) {\n props = vnode.data.domProps = extend({}, props);\n }\n\n for (key in oldProps) {\n if (isUndef(props[key])) {\n elm[key] = '';\n }\n }\n for (key in props) {\n cur = props[key];\n // ignore children if the node has textContent or innerHTML,\n // as these will throw away existing DOM nodes and cause removal errors\n // on subsequent patches (#3360)\n if (key === 'textContent' || key === 'innerHTML') {\n if (vnode.children) { vnode.children.length = 0; }\n if (cur === oldProps[key]) { continue }\n }\n\n if (key === 'value') {\n // store value as _value as well since\n // non-string values will be stringified\n elm._value = cur;\n // avoid resetting cursor position when value is the same\n var strCur = isUndef(cur) ? '' : String(cur);\n if (shouldUpdateValue(elm, vnode, strCur)) {\n elm.value = strCur;\n }\n } else {\n elm[key] = cur;\n }\n }\n}\n\n// check platforms/web/util/attrs.js acceptValue\n\n\nfunction shouldUpdateValue (\n elm,\n vnode,\n checkVal\n) {\n return (!elm.composing && (\n vnode.tag === 'option' ||\n isDirty(elm, checkVal) ||\n isInputChanged(elm, checkVal)\n ))\n}\n\nfunction isDirty (elm, checkVal) {\n // return true when textbox (.number and .trim) loses focus and its value is\n // not equal to the updated value\n var notInFocus = true;\n // #6157\n // work around IE bug when accessing document.activeElement in an iframe\n try { notInFocus = document.activeElement !== elm; } catch (e) {}\n return notInFocus && elm.value !== checkVal\n}\n\nfunction isInputChanged (elm, newVal) {\n var value = elm.value;\n var modifiers = elm._vModifiers; // injected by v-model runtime\n if (isDef(modifiers) && modifiers.number) {\n return toNumber(value) !== toNumber(newVal)\n }\n if (isDef(modifiers) && modifiers.trim) {\n return value.trim() !== newVal.trim()\n }\n return value !== newVal\n}\n\nvar domProps = {\n create: updateDOMProps,\n update: updateDOMProps\n};\n\n/* */\n\nvar parseStyleText = cached(function (cssText) {\n var res = {};\n var listDelimiter = /;(?![^(]*\\))/g;\n var propertyDelimiter = /:(.+)/;\n cssText.split(listDelimiter).forEach(function (item) {\n if (item) {\n var tmp = item.split(propertyDelimiter);\n tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());\n }\n });\n return res\n});\n\n// merge static and dynamic style data on the same vnode\nfunction normalizeStyleData (data) {\n var style = normalizeStyleBinding(data.style);\n // static style is pre-processed into an object during compilation\n // and is always a fresh object, so it's safe to merge into it\n return data.staticStyle\n ? extend(data.staticStyle, style)\n : style\n}\n\n// normalize possible array / string values into Object\nfunction normalizeStyleBinding (bindingStyle) {\n if (Array.isArray(bindingStyle)) {\n return toObject(bindingStyle)\n }\n if (typeof bindingStyle === 'string') {\n return parseStyleText(bindingStyle)\n }\n return bindingStyle\n}\n\n/**\n * parent component style should be after child's\n * so that parent component's style could override it\n */\nfunction getStyle (vnode, checkChild) {\n var res = {};\n var styleData;\n\n if (checkChild) {\n var childNode = vnode;\n while (childNode.componentInstance) {\n childNode = childNode.componentInstance._vnode;\n if (childNode.data && (styleData = normalizeStyleData(childNode.data))) {\n extend(res, styleData);\n }\n }\n }\n\n if ((styleData = normalizeStyleData(vnode.data))) {\n extend(res, styleData);\n }\n\n var parentNode = vnode;\n while ((parentNode = parentNode.parent)) {\n if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {\n extend(res, styleData);\n }\n }\n return res\n}\n\n/* */\n\nvar cssVarRE = /^--/;\nvar importantRE = /\\s*!important$/;\nvar setProp = function (el, name, val) {\n /* istanbul ignore if */\n if (cssVarRE.test(name)) {\n el.style.setProperty(name, val);\n } else if (importantRE.test(val)) {\n el.style.setProperty(name, val.replace(importantRE, ''), 'important');\n } else {\n var normalizedName = normalize(name);\n if (Array.isArray(val)) {\n // Support values array created by autoprefixer, e.g.\n // {display: [\"-webkit-box\", \"-ms-flexbox\", \"flex\"]}\n // Set them one by one, and the browser will only set those it can recognize\n for (var i = 0, len = val.length; i < len; i++) {\n el.style[normalizedName] = val[i];\n }\n } else {\n el.style[normalizedName] = val;\n }\n }\n};\n\nvar vendorNames = ['Webkit', 'Moz', 'ms'];\n\nvar emptyStyle;\nvar normalize = cached(function (prop) {\n emptyStyle = emptyStyle || document.createElement('div').style;\n prop = camelize(prop);\n if (prop !== 'filter' && (prop in emptyStyle)) {\n return prop\n }\n var capName = prop.charAt(0).toUpperCase() + prop.slice(1);\n for (var i = 0; i < vendorNames.length; i++) {\n var name = vendorNames[i] + capName;\n if (name in emptyStyle) {\n return name\n }\n }\n});\n\nfunction updateStyle (oldVnode, vnode) {\n var data = vnode.data;\n var oldData = oldVnode.data;\n\n if (isUndef(data.staticStyle) && isUndef(data.style) &&\n isUndef(oldData.staticStyle) && isUndef(oldData.style)\n ) {\n return\n }\n\n var cur, name;\n var el = vnode.elm;\n var oldStaticStyle = oldData.staticStyle;\n var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};\n\n // if static style exists, stylebinding already merged into it when doing normalizeStyleData\n var oldStyle = oldStaticStyle || oldStyleBinding;\n\n var style = normalizeStyleBinding(vnode.data.style) || {};\n\n // store normalized style under a different key for next diff\n // make sure to clone it if it's reactive, since the user likely wants\n // to mutate it.\n vnode.data.normalizedStyle = isDef(style.__ob__)\n ? extend({}, style)\n : style;\n\n var newStyle = getStyle(vnode, true);\n\n for (name in oldStyle) {\n if (isUndef(newStyle[name])) {\n setProp(el, name, '');\n }\n }\n for (name in newStyle) {\n cur = newStyle[name];\n if (cur !== oldStyle[name]) {\n // ie9 setting to null has no effect, must use empty string\n setProp(el, name, cur == null ? '' : cur);\n }\n }\n}\n\nvar style = {\n create: updateStyle,\n update: updateStyle\n};\n\n/* */\n\n/**\n * Add class with compatibility for SVG since classList is not supported on\n * SVG elements in IE\n */\nfunction addClass (el, cls) {\n /* istanbul ignore if */\n if (!cls || !(cls = cls.trim())) {\n return\n }\n\n /* istanbul ignore else */\n if (el.classList) {\n if (cls.indexOf(' ') > -1) {\n cls.split(/\\s+/).forEach(function (c) { return el.classList.add(c); });\n } else {\n el.classList.add(cls);\n }\n } else {\n var cur = \" \" + (el.getAttribute('class') || '') + \" \";\n if (cur.indexOf(' ' + cls + ' ') < 0) {\n el.setAttribute('class', (cur + cls).trim());\n }\n }\n}\n\n/**\n * Remove class with compatibility for SVG since classList is not supported on\n * SVG elements in IE\n */\nfunction removeClass (el, cls) {\n /* istanbul ignore if */\n if (!cls || !(cls = cls.trim())) {\n return\n }\n\n /* istanbul ignore else */\n if (el.classList) {\n if (cls.indexOf(' ') > -1) {\n cls.split(/\\s+/).forEach(function (c) { return el.classList.remove(c); });\n } else {\n el.classList.remove(cls);\n }\n if (!el.classList.length) {\n el.removeAttribute('class');\n }\n } else {\n var cur = \" \" + (el.getAttribute('class') || '') + \" \";\n var tar = ' ' + cls + ' ';\n while (cur.indexOf(tar) >= 0) {\n cur = cur.replace(tar, ' ');\n }\n cur = cur.trim();\n if (cur) {\n el.setAttribute('class', cur);\n } else {\n el.removeAttribute('class');\n }\n }\n}\n\n/* */\n\nfunction resolveTransition (def$$1) {\n if (!def$$1) {\n return\n }\n /* istanbul ignore else */\n if (typeof def$$1 === 'object') {\n var res = {};\n if (def$$1.css !== false) {\n extend(res, autoCssTransition(def$$1.name || 'v'));\n }\n extend(res, def$$1);\n return res\n } else if (typeof def$$1 === 'string') {\n return autoCssTransition(def$$1)\n }\n}\n\nvar autoCssTransition = cached(function (name) {\n return {\n enterClass: (name + \"-enter\"),\n enterToClass: (name + \"-enter-to\"),\n enterActiveClass: (name + \"-enter-active\"),\n leaveClass: (name + \"-leave\"),\n leaveToClass: (name + \"-leave-to\"),\n leaveActiveClass: (name + \"-leave-active\")\n }\n});\n\nvar hasTransition = inBrowser && !isIE9;\nvar TRANSITION = 'transition';\nvar ANIMATION = 'animation';\n\n// Transition property/event sniffing\nvar transitionProp = 'transition';\nvar transitionEndEvent = 'transitionend';\nvar animationProp = 'animation';\nvar animationEndEvent = 'animationend';\nif (hasTransition) {\n /* istanbul ignore if */\n if (window.ontransitionend === undefined &&\n window.onwebkittransitionend !== undefined\n ) {\n transitionProp = 'WebkitTransition';\n transitionEndEvent = 'webkitTransitionEnd';\n }\n if (window.onanimationend === undefined &&\n window.onwebkitanimationend !== undefined\n ) {\n animationProp = 'WebkitAnimation';\n animationEndEvent = 'webkitAnimationEnd';\n }\n}\n\n// binding to window is necessary to make hot reload work in IE in strict mode\nvar raf = inBrowser && window.requestAnimationFrame\n ? window.requestAnimationFrame.bind(window)\n : setTimeout;\n\nfunction nextFrame (fn) {\n raf(function () {\n raf(fn);\n });\n}\n\nfunction addTransitionClass (el, cls) {\n var transitionClasses = el._transitionClasses || (el._transitionClasses = []);\n if (transitionClasses.indexOf(cls) < 0) {\n transitionClasses.push(cls);\n addClass(el, cls);\n }\n}\n\nfunction removeTransitionClass (el, cls) {\n if (el._transitionClasses) {\n remove(el._transitionClasses, cls);\n }\n removeClass(el, cls);\n}\n\nfunction whenTransitionEnds (\n el,\n expectedType,\n cb\n) {\n var ref = getTransitionInfo(el, expectedType);\n var type = ref.type;\n var timeout = ref.timeout;\n var propCount = ref.propCount;\n if (!type) { return cb() }\n var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;\n var ended = 0;\n var end = function () {\n el.removeEventListener(event, onEnd);\n cb();\n };\n var onEnd = function (e) {\n if (e.target === el) {\n if (++ended >= propCount) {\n end();\n }\n }\n };\n setTimeout(function () {\n if (ended < propCount) {\n end();\n }\n }, timeout + 1);\n el.addEventListener(event, onEnd);\n}\n\nvar transformRE = /\\b(transform|all)(,|$)/;\n\nfunction getTransitionInfo (el, expectedType) {\n var styles = window.getComputedStyle(el);\n var transitionDelays = styles[transitionProp + 'Delay'].split(', ');\n var transitionDurations = styles[transitionProp + 'Duration'].split(', ');\n var transitionTimeout = getTimeout(transitionDelays, transitionDurations);\n var animationDelays = styles[animationProp + 'Delay'].split(', ');\n var animationDurations = styles[animationProp + 'Duration'].split(', ');\n var animationTimeout = getTimeout(animationDelays, animationDurations);\n\n var type;\n var timeout = 0;\n var propCount = 0;\n /* istanbul ignore if */\n if (expectedType === TRANSITION) {\n if (transitionTimeout > 0) {\n type = TRANSITION;\n timeout = transitionTimeout;\n propCount = transitionDurations.length;\n }\n } else if (expectedType === ANIMATION) {\n if (animationTimeout > 0) {\n type = ANIMATION;\n timeout = animationTimeout;\n propCount = animationDurations.length;\n }\n } else {\n timeout = Math.max(transitionTimeout, animationTimeout);\n type = timeout > 0\n ? transitionTimeout > animationTimeout\n ? TRANSITION\n : ANIMATION\n : null;\n propCount = type\n ? type === TRANSITION\n ? transitionDurations.length\n : animationDurations.length\n : 0;\n }\n var hasTransform =\n type === TRANSITION &&\n transformRE.test(styles[transitionProp + 'Property']);\n return {\n type: type,\n timeout: timeout,\n propCount: propCount,\n hasTransform: hasTransform\n }\n}\n\nfunction getTimeout (delays, durations) {\n /* istanbul ignore next */\n while (delays.length < durations.length) {\n delays = delays.concat(delays);\n }\n\n return Math.max.apply(null, durations.map(function (d, i) {\n return toMs(d) + toMs(delays[i])\n }))\n}\n\nfunction toMs (s) {\n return Number(s.slice(0, -1)) * 1000\n}\n\n/* */\n\nfunction enter (vnode, toggleDisplay) {\n var el = vnode.elm;\n\n // call leave callback now\n if (isDef(el._leaveCb)) {\n el._leaveCb.cancelled = true;\n el._leaveCb();\n }\n\n var data = resolveTransition(vnode.data.transition);\n if (isUndef(data)) {\n return\n }\n\n /* istanbul ignore if */\n if (isDef(el._enterCb) || el.nodeType !== 1) {\n return\n }\n\n var css = data.css;\n var type = data.type;\n var enterClass = data.enterClass;\n var enterToClass = data.enterToClass;\n var enterActiveClass = data.enterActiveClass;\n var appearClass = data.appearClass;\n var appearToClass = data.appearToClass;\n var appearActiveClass = data.appearActiveClass;\n var beforeEnter = data.beforeEnter;\n var enter = data.enter;\n var afterEnter = data.afterEnter;\n var enterCancelled = data.enterCancelled;\n var beforeAppear = data.beforeAppear;\n var appear = data.appear;\n var afterAppear = data.afterAppear;\n var appearCancelled = data.appearCancelled;\n var duration = data.duration;\n\n // activeInstance will always be the <transition> component managing this\n // transition. One edge case to check is when the <transition> is placed\n // as the root node of a child component. In that case we need to check\n // <transition>'s parent for appear check.\n var context = activeInstance;\n var transitionNode = activeInstance.$vnode;\n while (transitionNode && transitionNode.parent) {\n transitionNode = transitionNode.parent;\n context = transitionNode.context;\n }\n\n var isAppear = !context._isMounted || !vnode.isRootInsert;\n\n if (isAppear && !appear && appear !== '') {\n return\n }\n\n var startClass = isAppear && appearClass\n ? appearClass\n : enterClass;\n var activeClass = isAppear && appearActiveClass\n ? appearActiveClass\n : enterActiveClass;\n var toClass = isAppear && appearToClass\n ? appearToClass\n : enterToClass;\n\n var beforeEnterHook = isAppear\n ? (beforeAppear || beforeEnter)\n : beforeEnter;\n var enterHook = isAppear\n ? (typeof appear === 'function' ? appear : enter)\n : enter;\n var afterEnterHook = isAppear\n ? (afterAppear || afterEnter)\n : afterEnter;\n var enterCancelledHook = isAppear\n ? (appearCancelled || enterCancelled)\n : enterCancelled;\n\n var explicitEnterDuration = toNumber(\n isObject(duration)\n ? duration.enter\n : duration\n );\n\n if (\"development\" !== 'production' && explicitEnterDuration != null) {\n checkDuration(explicitEnterDuration, 'enter', vnode);\n }\n\n var expectsCSS = css !== false && !isIE9;\n var userWantsControl = getHookArgumentsLength(enterHook);\n\n var cb = el._enterCb = once(function () {\n if (expectsCSS) {\n removeTransitionClass(el, toClass);\n removeTransitionClass(el, activeClass);\n }\n if (cb.cancelled) {\n if (expectsCSS) {\n removeTransitionClass(el, startClass);\n }\n enterCancelledHook && enterCancelledHook(el);\n } else {\n afterEnterHook && afterEnterHook(el);\n }\n el._enterCb = null;\n });\n\n if (!vnode.data.show) {\n // remove pending leave element on enter by injecting an insert hook\n mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', function () {\n var parent = el.parentNode;\n var pendingNode = parent && parent._pending && parent._pending[vnode.key];\n if (pendingNode &&\n pendingNode.tag === vnode.tag &&\n pendingNode.elm._leaveCb\n ) {\n pendingNode.elm._leaveCb();\n }\n enterHook && enterHook(el, cb);\n });\n }\n\n // start enter transition\n beforeEnterHook && beforeEnterHook(el);\n if (expectsCSS) {\n addTransitionClass(el, startClass);\n addTransitionClass(el, activeClass);\n nextFrame(function () {\n addTransitionClass(el, toClass);\n removeTransitionClass(el, startClass);\n if (!cb.cancelled && !userWantsControl) {\n if (isValidDuration(explicitEnterDuration)) {\n setTimeout(cb, explicitEnterDuration);\n } else {\n whenTransitionEnds(el, type, cb);\n }\n }\n });\n }\n\n if (vnode.data.show) {\n toggleDisplay && toggleDisplay();\n enterHook && enterHook(el, cb);\n }\n\n if (!expectsCSS && !userWantsControl) {\n cb();\n }\n}\n\nfunction leave (vnode, rm) {\n var el = vnode.elm;\n\n // call enter callback now\n if (isDef(el._enterCb)) {\n el._enterCb.cancelled = true;\n el._enterCb();\n }\n\n var data = resolveTransition(vnode.data.transition);\n if (isUndef(data)) {\n return rm()\n }\n\n /* istanbul ignore if */\n if (isDef(el._leaveCb) || el.nodeType !== 1) {\n return\n }\n\n var css = data.css;\n var type = data.type;\n var leaveClass = data.leaveClass;\n var leaveToClass = data.leaveToClass;\n var leaveActiveClass = data.leaveActiveClass;\n var beforeLeave = data.beforeLeave;\n var leave = data.leave;\n var afterLeave = data.afterLeave;\n var leaveCancelled = data.leaveCancelled;\n var delayLeave = data.delayLeave;\n var duration = data.duration;\n\n var expectsCSS = css !== false && !isIE9;\n var userWantsControl = getHookArgumentsLength(leave);\n\n var explicitLeaveDuration = toNumber(\n isObject(duration)\n ? duration.leave\n : duration\n );\n\n if (\"development\" !== 'production' && isDef(explicitLeaveDuration)) {\n checkDuration(explicitLeaveDuration, 'leave', vnode);\n }\n\n var cb = el._leaveCb = once(function () {\n if (el.parentNode && el.parentNode._pending) {\n el.parentNode._pending[vnode.key] = null;\n }\n if (expectsCSS) {\n removeTransitionClass(el, leaveToClass);\n removeTransitionClass(el, leaveActiveClass);\n }\n if (cb.cancelled) {\n if (expectsCSS) {\n removeTransitionClass(el, leaveClass);\n }\n leaveCancelled && leaveCancelled(el);\n } else {\n rm();\n afterLeave && afterLeave(el);\n }\n el._leaveCb = null;\n });\n\n if (delayLeave) {\n delayLeave(performLeave);\n } else {\n performLeave();\n }\n\n function performLeave () {\n // the delayed leave may have already been cancelled\n if (cb.cancelled) {\n return\n }\n // record leaving element\n if (!vnode.data.show) {\n (el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;\n }\n beforeLeave && beforeLeave(el);\n if (expectsCSS) {\n addTransitionClass(el, leaveClass);\n addTransitionClass(el, leaveActiveClass);\n nextFrame(function () {\n addTransitionClass(el, leaveToClass);\n removeTransitionClass(el, leaveClass);\n if (!cb.cancelled && !userWantsControl) {\n if (isValidDuration(explicitLeaveDuration)) {\n setTimeout(cb, explicitLeaveDuration);\n } else {\n whenTransitionEnds(el, type, cb);\n }\n }\n });\n }\n leave && leave(el, cb);\n if (!expectsCSS && !userWantsControl) {\n cb();\n }\n }\n}\n\n// only used in dev mode\nfunction checkDuration (val, name, vnode) {\n if (typeof val !== 'number') {\n warn(\n \"<transition> explicit \" + name + \" duration is not a valid number - \" +\n \"got \" + (JSON.stringify(val)) + \".\",\n vnode.context\n );\n } else if (isNaN(val)) {\n warn(\n \"<transition> explicit \" + name + \" duration is NaN - \" +\n 'the duration expression might be incorrect.',\n vnode.context\n );\n }\n}\n\nfunction isValidDuration (val) {\n return typeof val === 'number' && !isNaN(val)\n}\n\n/**\n * Normalize a transition hook's argument length. The hook may be:\n * - a merged hook (invoker) with the original in .fns\n * - a wrapped component method (check ._length)\n * - a plain function (.length)\n */\nfunction getHookArgumentsLength (fn) {\n if (isUndef(fn)) {\n return false\n }\n var invokerFns = fn.fns;\n if (isDef(invokerFns)) {\n // invoker\n return getHookArgumentsLength(\n Array.isArray(invokerFns)\n ? invokerFns[0]\n : invokerFns\n )\n } else {\n return (fn._length || fn.length) > 1\n }\n}\n\nfunction _enter (_, vnode) {\n if (vnode.data.show !== true) {\n enter(vnode);\n }\n}\n\nvar transition = inBrowser ? {\n create: _enter,\n activate: _enter,\n remove: function remove$$1 (vnode, rm) {\n /* istanbul ignore else */\n if (vnode.data.show !== true) {\n leave(vnode, rm);\n } else {\n rm();\n }\n }\n} : {};\n\nvar platformModules = [\n attrs,\n klass,\n events,\n domProps,\n style,\n transition\n];\n\n/* */\n\n// the directive module should be applied last, after all\n// built-in modules have been applied.\nvar modules = platformModules.concat(baseModules);\n\nvar patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });\n\n/**\n * Not type checking this file because flow doesn't like attaching\n * properties to Elements.\n */\n\n/* istanbul ignore if */\nif (isIE9) {\n // http://www.matts411.com/post/internet-explorer-9-oninput/\n document.addEventListener('selectionchange', function () {\n var el = document.activeElement;\n if (el && el.vmodel) {\n trigger(el, 'input');\n }\n });\n}\n\nvar model$1 = {\n inserted: function inserted (el, binding, vnode) {\n if (vnode.tag === 'select') {\n setSelected(el, binding, vnode.context);\n el._vOptions = [].map.call(el.options, getValue);\n } else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {\n el._vModifiers = binding.modifiers;\n if (!binding.modifiers.lazy) {\n // Safari < 10.2 & UIWebView doesn't fire compositionend when\n // switching focus before confirming composition choice\n // this also fixes the issue where some browsers e.g. iOS Chrome\n // fires \"change\" instead of \"input\" on autocomplete.\n el.addEventListener('change', onCompositionEnd);\n if (!isAndroid) {\n el.addEventListener('compositionstart', onCompositionStart);\n el.addEventListener('compositionend', onCompositionEnd);\n }\n /* istanbul ignore if */\n if (isIE9) {\n el.vmodel = true;\n }\n }\n }\n },\n componentUpdated: function componentUpdated (el, binding, vnode) {\n if (vnode.tag === 'select') {\n setSelected(el, binding, vnode.context);\n // in case the options rendered by v-for have changed,\n // it's possible that the value is out-of-sync with the rendered options.\n // detect such cases and filter out values that no longer has a matching\n // option in the DOM.\n var prevOptions = el._vOptions;\n var curOptions = el._vOptions = [].map.call(el.options, getValue);\n if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {\n // trigger change event if\n // no matching option found for at least one value\n var needReset = el.multiple\n ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })\n : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);\n if (needReset) {\n trigger(el, 'change');\n }\n }\n }\n }\n};\n\nfunction setSelected (el, binding, vm) {\n actuallySetSelected(el, binding, vm);\n /* istanbul ignore if */\n if (isIE || isEdge) {\n setTimeout(function () {\n actuallySetSelected(el, binding, vm);\n }, 0);\n }\n}\n\nfunction actuallySetSelected (el, binding, vm) {\n var value = binding.value;\n var isMultiple = el.multiple;\n if (isMultiple && !Array.isArray(value)) {\n \"development\" !== 'production' && warn(\n \"<select multiple v-model=\\\"\" + (binding.expression) + \"\\\"> \" +\n \"expects an Array value for its binding, but got \" + (Object.prototype.toString.call(value).slice(8, -1)),\n vm\n );\n return\n }\n var selected, option;\n for (var i = 0, l = el.options.length; i < l; i++) {\n option = el.options[i];\n if (isMultiple) {\n selected = looseIndexOf(value, getValue(option)) > -1;\n if (option.selected !== selected) {\n option.selected = selected;\n }\n } else {\n if (looseEqual(getValue(option), value)) {\n if (el.selectedIndex !== i) {\n el.selectedIndex = i;\n }\n return\n }\n }\n }\n if (!isMultiple) {\n el.selectedIndex = -1;\n }\n}\n\nfunction hasNoMatchingOption (value, options) {\n return options.every(function (o) { return !looseEqual(o, value); })\n}\n\nfunction getValue (option) {\n return '_value' in option\n ? option._value\n : option.value\n}\n\nfunction onCompositionStart (e) {\n e.target.composing = true;\n}\n\nfunction onCompositionEnd (e) {\n // prevent triggering an input event for no reason\n if (!e.target.composing) { return }\n e.target.composing = false;\n trigger(e.target, 'input');\n}\n\nfunction trigger (el, type) {\n var e = document.createEvent('HTMLEvents');\n e.initEvent(type, true, true);\n el.dispatchEvent(e);\n}\n\n/* */\n\n// recursively search for possible transition defined inside the component root\nfunction locateNode (vnode) {\n return vnode.componentInstance && (!vnode.data || !vnode.data.transition)\n ? locateNode(vnode.componentInstance._vnode)\n : vnode\n}\n\nvar show = {\n bind: function bind (el, ref, vnode) {\n var value = ref.value;\n\n vnode = locateNode(vnode);\n var transition$$1 = vnode.data && vnode.data.transition;\n var originalDisplay = el.__vOriginalDisplay =\n el.style.display === 'none' ? '' : el.style.display;\n if (value && transition$$1) {\n vnode.data.show = true;\n enter(vnode, function () {\n el.style.display = originalDisplay;\n });\n } else {\n el.style.display = value ? originalDisplay : 'none';\n }\n },\n\n update: function update (el, ref, vnode) {\n var value = ref.value;\n var oldValue = ref.oldValue;\n\n /* istanbul ignore if */\n if (value === oldValue) { return }\n vnode = locateNode(vnode);\n var transition$$1 = vnode.data && vnode.data.transition;\n if (transition$$1) {\n vnode.data.show = true;\n if (value) {\n enter(vnode, function () {\n el.style.display = el.__vOriginalDisplay;\n });\n } else {\n leave(vnode, function () {\n el.style.display = 'none';\n });\n }\n } else {\n el.style.display = value ? el.__vOriginalDisplay : 'none';\n }\n },\n\n unbind: function unbind (\n el,\n binding,\n vnode,\n oldVnode,\n isDestroy\n ) {\n if (!isDestroy) {\n el.style.display = el.__vOriginalDisplay;\n }\n }\n};\n\nvar platformDirectives = {\n model: model$1,\n show: show\n};\n\n/* */\n\n// Provides transition support for a single element/component.\n// supports transition mode (out-in / in-out)\n\nvar transitionProps = {\n name: String,\n appear: Boolean,\n css: Boolean,\n mode: String,\n type: String,\n enterClass: String,\n leaveClass: String,\n enterToClass: String,\n leaveToClass: String,\n enterActiveClass: String,\n leaveActiveClass: String,\n appearClass: String,\n appearActiveClass: String,\n appearToClass: String,\n duration: [Number, String, Object]\n};\n\n// in case the child is also an abstract component, e.g. <keep-alive>\n// we want to recursively retrieve the real component to be rendered\nfunction getRealChild (vnode) {\n var compOptions = vnode && vnode.componentOptions;\n if (compOptions && compOptions.Ctor.options.abstract) {\n return getRealChild(getFirstComponentChild(compOptions.children))\n } else {\n return vnode\n }\n}\n\nfunction extractTransitionData (comp) {\n var data = {};\n var options = comp.$options;\n // props\n for (var key in options.propsData) {\n data[key] = comp[key];\n }\n // events.\n // extract listeners and pass them directly to the transition methods\n var listeners = options._parentListeners;\n for (var key$1 in listeners) {\n data[camelize(key$1)] = listeners[key$1];\n }\n return data\n}\n\nfunction placeholder (h, rawChild) {\n if (/\\d-keep-alive$/.test(rawChild.tag)) {\n return h('keep-alive', {\n props: rawChild.componentOptions.propsData\n })\n }\n}\n\nfunction hasParentTransition (vnode) {\n while ((vnode = vnode.parent)) {\n if (vnode.data.transition) {\n return true\n }\n }\n}\n\nfunction isSameChild (child, oldChild) {\n return oldChild.key === child.key && oldChild.tag === child.tag\n}\n\nvar Transition = {\n name: 'transition',\n props: transitionProps,\n abstract: true,\n\n render: function render (h) {\n var this$1 = this;\n\n var children = this.$options._renderChildren;\n if (!children) {\n return\n }\n\n // filter out text nodes (possible whitespaces)\n children = children.filter(function (c) { return c.tag || isAsyncPlaceholder(c); });\n /* istanbul ignore if */\n if (!children.length) {\n return\n }\n\n // warn multiple elements\n if (\"development\" !== 'production' && children.length > 1) {\n warn(\n '<transition> can only be used on a single element. Use ' +\n '<transition-group> for lists.',\n this.$parent\n );\n }\n\n var mode = this.mode;\n\n // warn invalid mode\n if (\"development\" !== 'production' &&\n mode && mode !== 'in-out' && mode !== 'out-in'\n ) {\n warn(\n 'invalid <transition> mode: ' + mode,\n this.$parent\n );\n }\n\n var rawChild = children[0];\n\n // if this is a component root node and the component's\n // parent container node also has transition, skip.\n if (hasParentTransition(this.$vnode)) {\n return rawChild\n }\n\n // apply transition data to child\n // use getRealChild() to ignore abstract components e.g. keep-alive\n var child = getRealChild(rawChild);\n /* istanbul ignore if */\n if (!child) {\n return rawChild\n }\n\n if (this._leaving) {\n return placeholder(h, rawChild)\n }\n\n // ensure a key that is unique to the vnode type and to this transition\n // component instance. This key will be used to remove pending leaving nodes\n // during entering.\n var id = \"__transition-\" + (this._uid) + \"-\";\n child.key = child.key == null\n ? child.isComment\n ? id + 'comment'\n : id + child.tag\n : isPrimitive(child.key)\n ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)\n : child.key;\n\n var data = (child.data || (child.data = {})).transition = extractTransitionData(this);\n var oldRawChild = this._vnode;\n var oldChild = getRealChild(oldRawChild);\n\n // mark v-show\n // so that the transition module can hand over the control to the directive\n if (child.data.directives && child.data.directives.some(function (d) { return d.name === 'show'; })) {\n child.data.show = true;\n }\n\n if (\n oldChild &&\n oldChild.data &&\n !isSameChild(child, oldChild) &&\n !isAsyncPlaceholder(oldChild)\n ) {\n // replace old child transition data with fresh one\n // important for dynamic transitions!\n var oldData = oldChild && (oldChild.data.transition = extend({}, data));\n // handle transition mode\n if (mode === 'out-in') {\n // return placeholder node and queue update when leave finishes\n this._leaving = true;\n mergeVNodeHook(oldData, 'afterLeave', function () {\n this$1._leaving = false;\n this$1.$forceUpdate();\n });\n return placeholder(h, rawChild)\n } else if (mode === 'in-out') {\n if (isAsyncPlaceholder(child)) {\n return oldRawChild\n }\n var delayedLeave;\n var performLeave = function () { delayedLeave(); };\n mergeVNodeHook(data, 'afterEnter', performLeave);\n mergeVNodeHook(data, 'enterCancelled', performLeave);\n mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });\n }\n }\n\n return rawChild\n }\n};\n\n/* */\n\n// Provides transition support for list items.\n// supports move transitions using the FLIP technique.\n\n// Because the vdom's children update algorithm is \"unstable\" - i.e.\n// it doesn't guarantee the relative positioning of removed elements,\n// we force transition-group to update its children into two passes:\n// in the first pass, we remove all nodes that need to be removed,\n// triggering their leaving transition; in the second pass, we insert/move\n// into the final desired state. This way in the second pass removed\n// nodes will remain where they should be.\n\nvar props = extend({\n tag: String,\n moveClass: String\n}, transitionProps);\n\ndelete props.mode;\n\nvar TransitionGroup = {\n props: props,\n\n render: function render (h) {\n var tag = this.tag || this.$vnode.data.tag || 'span';\n var map = Object.create(null);\n var prevChildren = this.prevChildren = this.children;\n var rawChildren = this.$slots.default || [];\n var children = this.children = [];\n var transitionData = extractTransitionData(this);\n\n for (var i = 0; i < rawChildren.length; i++) {\n var c = rawChildren[i];\n if (c.tag) {\n if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {\n children.push(c);\n map[c.key] = c\n ;(c.data || (c.data = {})).transition = transitionData;\n } else if (true) {\n var opts = c.componentOptions;\n var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;\n warn((\"<transition-group> children must be keyed: <\" + name + \">\"));\n }\n }\n }\n\n if (prevChildren) {\n var kept = [];\n var removed = [];\n for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {\n var c$1 = prevChildren[i$1];\n c$1.data.transition = transitionData;\n c$1.data.pos = c$1.elm.getBoundingClientRect();\n if (map[c$1.key]) {\n kept.push(c$1);\n } else {\n removed.push(c$1);\n }\n }\n this.kept = h(tag, null, kept);\n this.removed = removed;\n }\n\n return h(tag, null, children)\n },\n\n beforeUpdate: function beforeUpdate () {\n // force removing pass\n this.__patch__(\n this._vnode,\n this.kept,\n false, // hydrating\n true // removeOnly (!important, avoids unnecessary moves)\n );\n this._vnode = this.kept;\n },\n\n updated: function updated () {\n var children = this.prevChildren;\n var moveClass = this.moveClass || ((this.name || 'v') + '-move');\n if (!children.length || !this.hasMove(children[0].elm, moveClass)) {\n return\n }\n\n // we divide the work into three loops to avoid mixing DOM reads and writes\n // in each iteration - which helps prevent layout thrashing.\n children.forEach(callPendingCbs);\n children.forEach(recordPosition);\n children.forEach(applyTranslation);\n\n // force reflow to put everything in position\n var body = document.body;\n var f = body.offsetHeight; // eslint-disable-line\n\n children.forEach(function (c) {\n if (c.data.moved) {\n var el = c.elm;\n var s = el.style;\n addTransitionClass(el, moveClass);\n s.transform = s.WebkitTransform = s.transitionDuration = '';\n el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {\n if (!e || /transform$/.test(e.propertyName)) {\n el.removeEventListener(transitionEndEvent, cb);\n el._moveCb = null;\n removeTransitionClass(el, moveClass);\n }\n });\n }\n });\n },\n\n methods: {\n hasMove: function hasMove (el, moveClass) {\n /* istanbul ignore if */\n if (!hasTransition) {\n return false\n }\n /* istanbul ignore if */\n if (this._hasMove) {\n return this._hasMove\n }\n // Detect whether an element with the move class applied has\n // CSS transitions. Since the element may be inside an entering\n // transition at this very moment, we make a clone of it and remove\n // all other transition classes applied to ensure only the move class\n // is applied.\n var clone = el.cloneNode();\n if (el._transitionClasses) {\n el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });\n }\n addClass(clone, moveClass);\n clone.style.display = 'none';\n this.$el.appendChild(clone);\n var info = getTransitionInfo(clone);\n this.$el.removeChild(clone);\n return (this._hasMove = info.hasTransform)\n }\n }\n};\n\nfunction callPendingCbs (c) {\n /* istanbul ignore if */\n if (c.elm._moveCb) {\n c.elm._moveCb();\n }\n /* istanbul ignore if */\n if (c.elm._enterCb) {\n c.elm._enterCb();\n }\n}\n\nfunction recordPosition (c) {\n c.data.newPos = c.elm.getBoundingClientRect();\n}\n\nfunction applyTranslation (c) {\n var oldPos = c.data.pos;\n var newPos = c.data.newPos;\n var dx = oldPos.left - newPos.left;\n var dy = oldPos.top - newPos.top;\n if (dx || dy) {\n c.data.moved = true;\n var s = c.elm.style;\n s.transform = s.WebkitTransform = \"translate(\" + dx + \"px,\" + dy + \"px)\";\n s.transitionDuration = '0s';\n }\n}\n\nvar platformComponents = {\n Transition: Transition,\n TransitionGroup: TransitionGroup\n};\n\n/* */\n\n// install platform specific utils\nVue$3.config.mustUseProp = mustUseProp;\nVue$3.config.isReservedTag = isReservedTag;\nVue$3.config.isReservedAttr = isReservedAttr;\nVue$3.config.getTagNamespace = getTagNamespace;\nVue$3.config.isUnknownElement = isUnknownElement;\n\n// install platform runtime directives & components\nextend(Vue$3.options.directives, platformDirectives);\nextend(Vue$3.options.components, platformComponents);\n\n// install platform patch function\nVue$3.prototype.__patch__ = inBrowser ? patch : noop;\n\n// public mount method\nVue$3.prototype.$mount = function (\n el,\n hydrating\n) {\n el = el && inBrowser ? query(el) : undefined;\n return mountComponent(this, el, hydrating)\n};\n\n// devtools global hook\n/* istanbul ignore next */\nsetTimeout(function () {\n if (config.devtools) {\n if (devtools) {\n devtools.emit('init', Vue$3);\n } else if (\"development\" !== 'production' && isChrome) {\n console[console.info ? 'info' : 'log'](\n 'Download the Vue Devtools extension for a better development experience:\\n' +\n 'https://github.com/vuejs/vue-devtools'\n );\n }\n }\n if (\"development\" !== 'production' &&\n config.productionTip !== false &&\n inBrowser && typeof console !== 'undefined'\n ) {\n console[console.info ? 'info' : 'log'](\n \"You are running Vue in development mode.\\n\" +\n \"Make sure to turn on production mode when deploying for production.\\n\" +\n \"See more tips at https://vuejs.org/guide/deployment.html\"\n );\n }\n}, 0);\n\n/* */\n\n/* harmony default export */ __webpack_exports__[\"default\"] = Vue$3;\n\n/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(/*! ./../../webpack/buildin/global.js */ 12)))//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9qb3NoL3NpdGVzL2NmLWRldi93ZWIvd3AtY29udGVudC9wbHVnaW5zL0NhbGRlcmEtRm9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lbnQudGhlbihyZXNvbHZlLCByZWplY3QpO1xuXG4gICAgICAgIGlmIChpc0RlZihyZXMuZXJyb3IpKSB7XG4gICAgICAgICAgZmFjdG9yeS5lcnJvckNvbXAgPSBlbnN1cmVDdG9yKHJlcy5lcnJvciwgYmFzZUN0b3IpO1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKGlzRGVmKHJlcy5sb2FkaW5nKSkge1xuICAgICAgICAgIGZhY3RvcnkubG9hZGluZ0NvbXAgPSBlbnN1cmVDdG9yKHJlcy5sb2FkaW5nLCBiYXNlQ3Rvcik7XG4gICAgICAgICAgaWYgKHJlcy5kZWxheSA9PT0gMCkge1xuICAgICAgICAgICAgZmFjdG9yeS5sb2FkaW5nID0gdHJ1ZTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbiAoKSB7XG4gICAgICAgICAgICAgIGlmIChpc1VuZGVmKGZhY3RvcnkucmVzb2x2ZWQpICYmIGlzVW5kZWYoZmFjdG9yeS5lcnJvcikpIHtcbiAgICAgICAgICAgICAgICBmYWN0b3J5LmxvYWRpbmcgPSB0cnVlO1xuICAgICAgICAgICAgICAgIGZvcmNlUmVuZGVyKCk7XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0sIHJlcy5kZWxheSB8fCAyMDApO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChpc0RlZihyZXMudGltZW91dCkpIHtcbiAgICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uICgpIHtcbiAgICAgICAgICAgIGlmIChpc1VuZGVmKGZhY3RvcnkucmVzb2x2ZWQpKSB7XG4gICAgICAgICAgICAgIHJlamVjdChcbiAgICAgICAgICAgICAgICBwcm9jZXNzLmVudi5OT0RFX0VOViAhPT0gJ3Byb2R1Y3Rpb24nXG4gICAgICAgICAgICAgICAgICA/IChcInRpbWVvdXQgKFwiICsgKHJlcy50aW1lb3V0KSArIFwibXM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