@dcloudio/uni-debugger
Version:
uni-app debugger
1,555 lines (1,256 loc) • 120 kB
JavaScript
webpackJsonp([4],{
/***/ "./node_modules/bootstrap-vue/es/components/button/button.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = exports.BButton = exports.props = void 0;
var _vue = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/vue.js"));
var _vueFunctionalDataMerge = __webpack_require__("./node_modules/vue-functional-data-merge/dist/lib.esm.js");
var _pluckProps = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/pluck-props.js"));
var _array = __webpack_require__("./node_modules/bootstrap-vue/es/utils/array.js");
var _config = __webpack_require__("./node_modules/bootstrap-vue/es/utils/config.js");
var _dom = __webpack_require__("./node_modules/bootstrap-vue/es/utils/dom.js");
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
var _object = __webpack_require__("./node_modules/bootstrap-vue/es/utils/object.js");
var _link = __webpack_require__("./node_modules/bootstrap-vue/es/components/link/link.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// --- Constants --
var NAME = 'BButton';
var btnProps = {
block: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
size: {
type: String,
default: null
},
variant: {
type: String,
default: function _default() {
return (0, _config.getComponentConfig)(NAME, 'variant');
}
},
type: {
type: String,
default: 'button'
},
tag: {
type: String,
default: 'button'
},
pill: {
type: Boolean,
default: false
},
squared: {
type: Boolean,
default: false
},
pressed: {
// tri-state prop: true, false or null
// => on, off, not a toggle
type: Boolean,
default: null
}
};
var linkProps = (0, _link.propsFactory)();
delete linkProps.href.default;
delete linkProps.to.default;
var linkPropKeys = (0, _object.keys)(linkProps);
var props = _objectSpread({}, linkProps, btnProps); // --- Helper methods ---
// Focus handler for toggle buttons. Needs class of 'focus' when focused.
exports.props = props;
var handleFocus = function handleFocus(evt) {
if (evt.type === 'focusin') {
(0, _dom.addClass)(evt.target, 'focus');
} else if (evt.type === 'focusout') {
(0, _dom.removeClass)(evt.target, 'focus');
}
}; // Is the requested button a link?
var isLink = function isLink(props) {
// If tag prop is set to `a`, we use a b-link to get proper disabled handling
return Boolean(props.href || props.to || props.tag && String(props.tag).toLowerCase() === 'a');
}; // Is the button to be a toggle button?
var isToggle = function isToggle(props) {
return (0, _inspect.isBoolean)(props.pressed);
}; // Is the button "really" a button?
var isButton = function isButton(props) {
if (isLink(props)) {
return false;
} else if (props.tag && String(props.tag).toLowerCase() !== 'button') {
return false;
}
return true;
}; // Is the requested tag not a button or link?
var isNonStandardTag = function isNonStandardTag(props) {
return !isLink(props) && !isButton(props);
}; // Compute required classes (non static classes)
var computeClass = function computeClass(props) {
var _ref;
return ["btn-".concat(props.variant || (0, _config.getComponentConfig)(NAME, 'variant')), (_ref = {}, _defineProperty(_ref, "btn-".concat(props.size), Boolean(props.size)), _defineProperty(_ref, 'btn-block', props.block), _defineProperty(_ref, 'rounded-pill', props.pill), _defineProperty(_ref, 'rounded-0', props.squared && !props.pill), _defineProperty(_ref, "disabled", props.disabled), _defineProperty(_ref, "active", props.pressed), _ref)];
}; // Compute the link props to pass to b-link (if required)
var computeLinkProps = function computeLinkProps(props) {
return isLink(props) ? (0, _pluckProps.default)(linkPropKeys, props) : null;
}; // Compute the attributes for a button
var computeAttrs = function computeAttrs(props, data) {
var button = isButton(props);
var link = isLink(props);
var toggle = isToggle(props);
var nonStdTag = isNonStandardTag(props);
var role = data.attrs && data.attrs['role'] ? data.attrs['role'] : null;
var tabindex = data.attrs ? data.attrs['tabindex'] : null;
if (nonStdTag) {
tabindex = '0';
}
return {
// Type only used for "real" buttons
type: button && !link ? props.type : null,
// Disabled only set on "real" buttons
disabled: button ? props.disabled : null,
// We add a role of button when the tag is not a link or button for ARIA.
// Don't bork any role provided in data.attrs when isLink or isButton
role: nonStdTag ? 'button' : role,
// We set the aria-disabled state for non-standard tags
'aria-disabled': nonStdTag ? String(props.disabled) : null,
// For toggles, we need to set the pressed state for ARIA
'aria-pressed': toggle ? String(props.pressed) : null,
// autocomplete off is needed in toggle mode to prevent some browsers from
// remembering the previous setting when using the back button.
autocomplete: toggle ? 'off' : null,
// Tab index is used when the component is not a button.
// Links are tabbable, but don't allow disabled, while non buttons or links
// are not tabbable, so we mimic that functionality by disabling tabbing
// when disabled, and adding a tabindex of '0' to non buttons or non links.
tabindex: props.disabled && !button ? '-1' : tabindex
};
}; // @vue/component
var BButton =
/*#__PURE__*/
_vue.default.extend({
name: NAME,
functional: true,
props: props,
render: function render(h, _ref2) {
var props = _ref2.props,
data = _ref2.data,
listeners = _ref2.listeners,
children = _ref2.children;
var toggle = isToggle(props);
var link = isLink(props);
var on = {
click: function click(e) {
/* istanbul ignore if: blink/button disabled should handle this */
if (props.disabled && e instanceof Event) {
e.stopPropagation();
e.preventDefault();
} else if (toggle && listeners && listeners['update:pressed']) {
// Send .sync updates to any "pressed" prop (if .sync listeners)
// Concat will normalize the value to an array
// without double wrapping an array value in an array.
(0, _array.concat)(listeners['update:pressed']).forEach(function (fn) {
if ((0, _inspect.isFunction)(fn)) {
fn(!props.pressed);
}
});
}
}
};
if (toggle) {
on.focusin = handleFocus;
on.focusout = handleFocus;
}
var componentData = {
staticClass: 'btn',
class: computeClass(props),
props: computeLinkProps(props),
attrs: computeAttrs(props, data),
on: on
};
return h(link ? _link.BLink : props.tag, (0, _vueFunctionalDataMerge.mergeData)(data, componentData), children);
}
});
exports.BButton = BButton;
var _default2 = BButton;
exports.default = _default2;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/components/embed/embed.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = exports.BEmbed = exports.props = void 0;
var _vue = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/vue.js"));
var _vueFunctionalDataMerge = __webpack_require__("./node_modules/vue-functional-data-merge/dist/lib.esm.js");
var _array = __webpack_require__("./node_modules/bootstrap-vue/es/utils/array.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var props = {
type: {
type: String,
default: 'iframe',
validator: function validator(str) {
return (0, _array.arrayIncludes)(['iframe', 'embed', 'video', 'object', 'img', 'b-img', 'b-img-lazy'], str);
}
},
tag: {
type: String,
default: 'div'
},
aspect: {
type: String,
default: '16by9'
} // @vue/component
};
exports.props = props;
var BEmbed =
/*#__PURE__*/
_vue.default.extend({
name: 'BEmbed',
functional: true,
props: props,
render: function render(h, _ref) {
var props = _ref.props,
data = _ref.data,
children = _ref.children;
return h(props.tag, {
ref: data.ref,
staticClass: 'embed-responsive',
class: _defineProperty({}, "embed-responsive-".concat(props.aspect), Boolean(props.aspect))
}, [h(props.type, (0, _vueFunctionalDataMerge.mergeData)(data, {
ref: '',
staticClass: 'embed-responsive-item'
}), children)]);
}
});
exports.BEmbed = BEmbed;
var _default = BEmbed;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/components/form-select/form-select.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = exports.BFormSelect = void 0;
var _vue = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/vue.js"));
var _id = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/id.js"));
var _formOptions = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/form-options.js"));
var _form = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/form.js"));
var _formSize = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/form-size.js"));
var _formState = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/form-state.js"));
var _formCustom = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/form-custom.js"));
var _normalizeSlot = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/mixins/normalize-slot.js"));
var _array = __webpack_require__("./node_modules/bootstrap-vue/es/utils/array.js");
var _html = __webpack_require__("./node_modules/bootstrap-vue/es/utils/html.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
// @vue/component
var BFormSelect =
/*#__PURE__*/
_vue.default.extend({
name: 'BFormSelect',
mixins: [_id.default, _normalizeSlot.default, _form.default, _formSize.default, _formState.default, _formCustom.default, _formOptions.default],
model: {
prop: 'value',
event: 'input'
},
props: {
value: {// type: [Object, Array, String, Number, Boolean],
// default: undefined
},
multiple: {
type: Boolean,
default: false
},
selectSize: {
// Browsers default size to 0, which shows 4 rows in most browsers in multiple mode
// Size of 1 can bork out Firefox
type: Number,
default: 0
},
ariaInvalid: {
type: [Boolean, String],
default: false
}
},
data: function data() {
return {
localValue: this.value
};
},
computed: {
computedSelectSize: function computedSelectSize() {
// Custom selects with a size of zero causes the arrows to be hidden,
// so dont render the size attribute in this case
return !this.plain && this.selectSize === 0 ? null : this.selectSize;
},
inputClass: function inputClass() {
return [this.plain ? 'form-control' : 'custom-select', this.size && this.plain ? "form-control-".concat(this.size) : null, this.size && !this.plain ? "custom-select-".concat(this.size) : null, this.stateClass];
},
computedAriaInvalid: function computedAriaInvalid() {
if (this.ariaInvalid === true || this.ariaInvalid === 'true') {
return 'true';
}
return this.stateClass === 'is-invalid' ? 'true' : null;
}
},
watch: {
value: function value(newVal, oldVal) {
this.localValue = newVal;
},
localValue: function localValue(newVal, oldVal) {
this.$emit('input', this.localValue);
}
},
methods: {
focus: function focus() {
this.$refs.input.focus();
},
blur: function blur() {
this.$refs.input.blur();
}
},
render: function render(h) {
var _this = this;
var options = this.formOptions.map(function (option, index) {
return h('option', {
key: "option_".concat(index, "_opt"),
attrs: {
disabled: Boolean(option.disabled)
},
domProps: _objectSpread({}, (0, _html.htmlOrText)(option.html, option.text), {
value: option.value
})
});
});
return h('select', {
ref: 'input',
class: this.inputClass,
directives: [{
name: 'model',
rawName: 'v-model',
value: this.localValue,
expression: 'localValue'
}],
attrs: {
id: this.safeId(),
name: this.name,
form: this.form || null,
multiple: this.multiple || null,
size: this.computedSelectSize,
disabled: this.disabled,
required: this.required,
'aria-required': this.required ? 'true' : null,
'aria-invalid': this.computedAriaInvalid
},
on: {
change: function change(evt) {
var target = evt.target;
var selectedVal = (0, _array.from)(target.options).filter(function (o) {
return o.selected;
}).map(function (o) {
return '_value' in o ? o._value : o.value;
});
_this.localValue = target.multiple ? selectedVal : selectedVal[0];
_this.$nextTick(function () {
_this.$emit('change', _this.localValue);
});
}
}
}, [this.normalizeSlot('first'), options, this.normalizeSlot('default')]);
}
});
exports.BFormSelect = BFormSelect;
var _default = BFormSelect;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/components/link/link.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = exports.BLink = exports.omitLinkProps = exports.pickLinkProps = exports.props = exports.propsFactory = void 0;
var _vue = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/vue.js"));
var _vueFunctionalDataMerge = __webpack_require__("./node_modules/vue-functional-data-merge/dist/lib.esm.js");
var _array = __webpack_require__("./node_modules/bootstrap-vue/es/utils/array.js");
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
var _object = __webpack_require__("./node_modules/bootstrap-vue/es/utils/object.js");
var _router = __webpack_require__("./node_modules/bootstrap-vue/es/utils/router.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } }
/**
* The Link component is used in many other BV components.
* As such, sharing its props makes supporting all its features easier.
* However, some components need to modify the defaults for their own purpose.
* Prefer sharing a fresh copy of the props to ensure mutations
* do not affect other component references to the props.
*
* https://github.com/vuejs/vue-router/blob/dev/src/components/link.js
* @return {{}}
*/
var propsFactory = function propsFactory() {
return {
href: {
type: String,
default: null
},
rel: {
type: String,
default: null
},
target: {
type: String,
default: '_self'
},
active: {
type: Boolean,
default: false
},
disabled: {
type: Boolean,
default: false
},
// router-link specific props
to: {
type: [String, Object],
default: null
},
append: {
type: Boolean,
default: false
},
replace: {
type: Boolean,
default: false
},
event: {
type: [String, Array],
default: 'click'
},
activeClass: {
type: String // default: undefined
},
exact: {
type: Boolean,
default: false
},
exactActiveClass: {
type: String // default: undefined
},
routerTag: {
type: String,
default: 'a'
},
// nuxt-link specific prop(s)
noPrefetch: {
type: Boolean,
default: false
}
};
};
exports.propsFactory = propsFactory;
var props = propsFactory(); // Return a fresh copy of <b-link> props
// Containing only the specified prop(s)
exports.props = props;
var pickLinkProps = function pickLinkProps(propsToPick) {
var freshLinkProps = propsFactory(); // Normalize everything to array.
propsToPick = (0, _array.concat)(propsToPick);
return (0, _object.keys)(freshLinkProps).reduce(function (memo, prop) {
if ((0, _array.arrayIncludes)(propsToPick, prop)) {
memo[prop] = freshLinkProps[prop];
}
return memo;
}, {});
}; // Return a fresh copy of <b-link> props
// Keeping all but the specified omitting prop(s)
exports.pickLinkProps = pickLinkProps;
var omitLinkProps = function omitLinkProps(propsToOmit) {
var freshLinkProps = propsFactory(); // Normalize everything to array.
propsToOmit = (0, _array.concat)(propsToOmit);
return (0, _object.keys)(props).reduce(function (memo, prop) {
if (!(0, _array.arrayIncludes)(propsToOmit, prop)) {
memo[prop] = freshLinkProps[prop];
}
return memo;
}, {});
};
exports.omitLinkProps = omitLinkProps;
var clickHandlerFactory = function clickHandlerFactory(_ref) {
var disabled = _ref.disabled,
tag = _ref.tag,
href = _ref.href,
suppliedHandler = _ref.suppliedHandler,
parent = _ref.parent;
return function onClick(evt) {
var _arguments = arguments;
if (disabled && evt instanceof Event) {
// Stop event from bubbling up.
evt.stopPropagation(); // Kill the event loop attached to this specific EventTarget.
// Needed to prevent vue-router for doing its thing
evt.stopImmediatePropagation();
} else {
if ((0, _router.isRouterLink)(tag) && evt.currentTarget.__vue__) {
// Router links do not emit instance 'click' events, so we
// add in an $emit('click', evt) on it's vue instance
/* istanbul ignore next: difficult to test, but we know it works */
evt.currentTarget.__vue__.$emit('click', evt);
} // Call the suppliedHandler(s), if any provided
(0, _array.concat)(suppliedHandler).filter(function (h) {
return (0, _inspect.isFunction)(h);
}).forEach(function (handler) {
handler.apply(void 0, _toConsumableArray(_arguments));
});
parent.$root.$emit('clicked::link', evt);
}
if (!(0, _router.isRouterLink)(tag) && href === '#' || disabled) {
// Stop scroll-to-top behavior or navigation on regular links
// when href is just '#'
evt.preventDefault();
}
};
}; // @vue/component
var BLink =
/*#__PURE__*/
_vue.default.extend({
name: 'BLink',
functional: true,
props: propsFactory(),
render: function render(h, _ref2) {
var props = _ref2.props,
data = _ref2.data,
parent = _ref2.parent,
children = _ref2.children;
var tag = (0, _router.computeTag)(props, parent);
var rel = (0, _router.computeRel)(props);
var href = (0, _router.computeHref)(props, tag);
var eventType = (0, _router.isRouterLink)(tag) ? 'nativeOn' : 'on';
var suppliedHandler = (data[eventType] || {}).click;
var handlers = {
click: clickHandlerFactory({
tag: tag,
href: href,
disabled: props.disabled,
suppliedHandler: suppliedHandler,
parent: parent
})
};
var componentData = (0, _vueFunctionalDataMerge.mergeData)(data, {
class: {
active: props.active,
disabled: props.disabled
},
attrs: {
rel: rel,
target: props.target,
tabindex: props.disabled ? '-1' : data.attrs ? data.attrs.tabindex : null,
'aria-disabled': props.disabled ? 'true' : null
},
props: _objectSpread({}, props, {
tag: props.routerTag
})
}); // If href attribute exists on router-link (even undefined or null) it fails working on SSR
// So we explicitly add it here if needed (i.e. if computeHref() is truthy)
if (href) {
componentData.attrs.href = href;
} else {
// Ensure the prop HREF does not exist for router links
delete componentData.props.href;
} // We want to overwrite any click handler since our callback
// will invoke the user supplied handler if !props.disabled
componentData[eventType] = _objectSpread({}, componentData[eventType] || {}, handlers);
return h(tag, componentData, children);
}
});
exports.BLink = BLink;
var _default = BLink;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/form-custom.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
// @vue/component
var _default = {
props: {
plain: {
type: Boolean,
default: false
}
},
computed: {
custom: function custom() {
return !this.plain;
}
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/form-options.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _html = __webpack_require__("./node_modules/bootstrap-vue/es/utils/html.js");
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
var _object = __webpack_require__("./node_modules/bootstrap-vue/es/utils/object.js");
// @vue/component
var _default2 = {
props: {
options: {
type: [Array, Object],
default: function _default() {
return [];
}
},
valueField: {
type: String,
default: 'value'
},
textField: {
type: String,
default: 'text'
},
htmlField: {
type: String,
default: 'html'
},
disabledField: {
type: String,
default: 'disabled'
}
},
computed: {
formOptions: function formOptions() {
var options = this.options;
var valueField = this.valueField;
var textField = this.textField;
var htmlField = this.htmlField;
var disabledField = this.disabledField;
if ((0, _inspect.isArray)(options)) {
// Normalize flat-ish arrays to Array of Objects
return options.map(function (option) {
if ((0, _inspect.isPlainObject)(option)) {
var value = option[valueField];
var text = String(option[textField]);
return {
value: (0, _inspect.isUndefined)(value) ? text : value,
text: (0, _html.stripTags)(text),
html: option[htmlField],
disabled: Boolean(option[disabledField])
};
}
return {
value: option,
text: (0, _html.stripTags)(String(option)),
disabled: false
};
});
} else {
// options is Object
// Normalize Objects to Array of Objects
return (0, _object.keys)(options).map(function (key) {
var option = options[key] || {};
if ((0, _inspect.isPlainObject)(option)) {
var value = option[valueField];
var text = option[textField];
return {
value: (0, _inspect.isUndefined)(value) ? key : value,
text: (0, _inspect.isUndefined)(text) ? (0, _html.stripTags)(String(key)) : (0, _html.stripTags)(String(text)),
html: option[htmlField],
disabled: Boolean(option[disabledField])
};
}
return {
value: key,
text: (0, _html.stripTags)(String(option)),
disabled: false
};
});
}
}
}
};
exports.default = _default2;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/form-size.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
// @vue/component
var _default = {
props: {
size: {
type: String,
default: null
}
},
computed: {
sizeFormClass: function sizeFormClass() {
return [this.size ? "form-control-".concat(this.size) : null];
},
sizeBtnClass: function sizeBtnClass()
/* istanbul ignore next: don't think this is used */
{
return [this.size ? "btn-".concat(this.size) : null];
}
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/form-state.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
/* Form control contextual state class computation
*
* Returned class is either 'is-valid' or 'is-invalid' based on the 'state' prop
* state can be one of five values:
* - true or 'valid' for is-valid
* - false or 'invalid' for is-invalid
* - null (or empty string) for no contextual state
*/
// @vue/component
var _default = {
props: {
state: {
// true/'valid', false/'invalid', '',null
// The order must be String first, then Boolean!
type: [String, Boolean],
default: null
}
},
computed: {
computedState: function computedState() {
var state = this.state;
if (state === '') {
return null;
} else if (state === true || state === 'valid') {
return true;
} else if (state === false || state === 'invalid') {
return false;
}
return null;
},
stateClass: function stateClass() {
var state = this.computedState;
if (state === true) {
return 'is-valid';
} else if (state === false) {
return 'is-invalid';
}
return null;
}
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/form.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _dom = __webpack_require__("./node_modules/bootstrap-vue/es/utils/dom.js");
var SELECTOR = 'input, textarea, select'; // @vue/component
var _default = {
props: {
name: {
type: String // default: undefined
},
id: {
type: String // default: undefined
},
disabled: {
type: Boolean
},
required: {
type: Boolean,
default: false
},
form: {
type: String,
default: null
},
autofocus: {
type: Boolean,
default: false
}
},
mounted: function mounted() {
this.handleAutofocus();
},
activated: function activated()
/* istanbul ignore next */
{
this.handleAutofocus();
},
methods: {
handleAutofocus: function handleAutofocus() {
var _this = this;
this.$nextTick(function () {
(0, _dom.requestAF)(function () {
var el = _this.$el;
if (_this.autofocus && (0, _dom.isVisible)(el)) {
if (!(0, _dom.matches)(el, SELECTOR)) {
el = (0, _dom.select)(SELECTOR, el);
}
el && el.focus && el.focus();
}
});
});
}
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/id.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
/*
* SSR Safe Client Side ID attribute generation
* id's can only be generated client side, after mount.
* this._uid is not synched between server and client.
*/
// @vue/component
var _default = {
props: {
id: {
type: String,
default: null
}
},
data: function data() {
return {
localId_: null
};
},
computed: {
safeId: function safeId() {
// Computed property that returns a dynamic function for creating the ID.
// Reacts to changes in both .id and .localId_ And regens a new function
var id = this.id || this.localId_; // We return a function that accepts an optional suffix string
// So this computed prop looks and works like a method!!!
// But benefits from Vue's Computed prop caching
var fn = function fn(suffix) {
if (!id) {
return null;
}
suffix = String(suffix || '').replace(/\s+/g, '_');
return suffix ? id + '_' + suffix : id;
};
return fn;
}
},
mounted: function mounted() {
var _this = this;
// mounted only occurs client side
this.$nextTick(function () {
// Update dom with auto ID after dom loaded to prevent
// SSR hydration errors.
_this.localId_ = "__BVID__".concat(_this._uid);
});
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/mixins/normalize-slot.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _normalizeSlot2 = __webpack_require__("./node_modules/bootstrap-vue/es/utils/normalize-slot.js");
var _array = __webpack_require__("./node_modules/bootstrap-vue/es/utils/array.js");
var _default = {
methods: {
hasNormalizedSlot: function hasNormalizedSlot(name) {
// Returns true if the either a $scopedSlot or $slot exists with the specified name
return (0, _normalizeSlot2.hasNormalizedSlot)(name, this.$scopedSlots, this.$slots);
},
normalizeSlot: function normalizeSlot(name) {
var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
// Returns an array of rendered vNodes if slot found.
// Returns undefined if not found.
var vNodes = (0, _normalizeSlot2.normalizeSlot)(name, scope, this.$scopedSlots, this.$slots);
return vNodes ? (0, _array.concat)(vNodes) : vNodes;
}
}
};
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/html.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.htmlOrText = exports.stripTags = void 0;
var stripTagsRegex = /(<([^>]+)>)/gi; // Removes any thing that looks like an HTML tag from the supplied string
var stripTags = function stripTags() {
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
return String(text).replace(stripTagsRegex, '');
}; // Generate a domProps object for either innerHTML, textContent or nothing
exports.stripTags = stripTags;
var htmlOrText = function htmlOrText(innerHTML, textContent) {
return innerHTML ? {
innerHTML: innerHTML
} : textContent ? {
textContent: textContent
} : {};
};
exports.htmlOrText = htmlOrText;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/identity.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var identity = function identity(x) {
return x;
};
var _default = identity;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/normalize-slot.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = exports.normalizeSlot = exports.hasNormalizedSlot = void 0;
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
// Note for functional components:
// In functional components, `slots` is a function so it must be called
// first before passing to the below methods. `scopedSlots` is always an
// object and may be undefined (for Vue < 2.6.x)
/**
* Returns true if either scoped or unscoped named slot eists
*
* @param {String} name
* @param {Object} scopedSlots
* @param {Object} slots
* @returns {Array|undefined} vNodes
*/
var hasNormalizedSlot = function hasNormalizedSlot(name) {
var $scopedSlots = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var $slots = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
// Returns true if the either a $scopedSlot or $slot exists with the specified name
return Boolean($scopedSlots[name] || $slots[name]);
};
/**
* Returns vNodes for named slot either scoped or unscoped
*
* @param {String} name
* @param {String} scope
* @param {Object} scopedSlots
* @param {Object} slots
* @returns {Array|undefined} vNodes
*/
exports.hasNormalizedSlot = hasNormalizedSlot;
var normalizeSlot = function normalizeSlot(name) {
var scope = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
var $scopedSlots = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
var $slots = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
// Note: in Vue 2.6.x, all names slots are also scoped slots
var slot = $scopedSlots[name] || $slots[name];
return (0, _inspect.isFunction)(slot) ? slot(scope) : slot;
}; // Named exports
exports.normalizeSlot = normalizeSlot;
// Default export (backwards compatability)
var _default = normalizeSlot;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/pluck-props.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _identity = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/identity.js"));
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
var _object = __webpack_require__("./node_modules/bootstrap-vue/es/utils/object.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Given an array of properties or an object of property keys,
* plucks all the values off the target object, returning a new object
* that has props that reference the original prop values
*
* @param {{}|string[]} keysToPluck
* @param {{}} objToPluck
* @param {Function} transformFn
* @return {{}}
*/
var pluckProps = function pluckProps(keysToPluck, objToPluck) {
var transformFn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _identity.default;
return ((0, _inspect.isArray)(keysToPluck) ? keysToPluck.slice() : (0, _object.keys)(keysToPluck)).reduce(function (memo, prop) {
memo[transformFn(prop)] = objToPluck[prop];
return memo;
}, {});
};
var _default = pluckProps;
exports.default = _default;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/router.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.computeHref = exports.computeRel = exports.computeTag = exports.isRouterLink = exports.parseQuery = exports.stringifyQueryObj = void 0;
var _toString = _interopRequireDefault(__webpack_require__("./node_modules/bootstrap-vue/es/utils/to-string.js"));
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
var _object = __webpack_require__("./node_modules/bootstrap-vue/es/utils/object.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ANCHOR_TAG = 'a'; // Precompile RegExp
var commaRE = /%2C/g;
var encodeReserveRE = /[!'()*]/g; // Method to replace reserved chars
var encodeReserveReplacer = function encodeReserveReplacer(c) {
return '%' + c.charCodeAt(0).toString(16);
}; // Fixed encodeURIComponent which is more conformant to RFC3986:
// - escapes [!'()*]
// - preserve commas
var encode = function encode(str) {
return encodeURIComponent((0, _toString.default)(str)).replace(encodeReserveRE, encodeReserveReplacer).replace(commaRE, ',');
};
var decode = decodeURIComponent; // Stringifies an object of query parameters
// See: https://github.com/vuejs/vue-router/blob/dev/src/util/query.js
var stringifyQueryObj = function stringifyQueryObj(obj) {
if (!(0, _inspect.isPlainObject)(obj)) {
return '';
}
var query = (0, _object.keys)(obj).map(function (key) {
var val = obj[key];
if ((0, _inspect.isUndefined)(val)) {
return '';
} else if ((0, _inspect.isNull)(val)) {
return encode(key);
} else if ((0, _inspect.isArray)(val)) {
return val.reduce(function (results, val2) {
if ((0, _inspect.isNull)(val2)) {
results.push(encode(key));
} else if (!(0, _inspect.isUndefined)(val2)) {
// Faster than string interpolation
results.push(encode(key) + '=' + encode(val2));
}
return results;
}, []).join('&');
} // Faster than string interpolation
return encode(key) + '=' + encode(val);
})
/* must check for length, as we only want to filter empty strings, not things that look falsey! */
.filter(function (x) {
return x.length > 0;
}).join('&');
return query ? "?".concat(query) : '';
};
exports.stringifyQueryObj = stringifyQueryObj;
var parseQuery = function parseQuery(query) {
var parsed = {};
query = (0, _toString.default)(query).trim().replace(/^(\?|#|&)/, '');
if (!query) {
return parsed;
}
query.split('&').forEach(function (param) {
var parts = param.replace(/\+/g, ' ').split('=');
var key = decode(parts.shift());
var val = parts.length > 0 ? decode(parts.join('=')) : null;
if ((0, _inspect.isUndefined)(parsed[key])) {
parsed[key] = val;
} else if ((0, _inspect.isArray)(parsed[key])) {
parsed[key].push(val);
} else {
parsed[key] = [parsed[key], val];
}
});
return parsed;
};
exports.parseQuery = parseQuery;
var isRouterLink = function isRouterLink(tag) {
return tag !== ANCHOR_TAG;
};
exports.isRouterLink = isRouterLink;
var computeTag = function computeTag() {
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
to = _ref.to,
disabled = _ref.disabled;
var thisOrParent = arguments.length > 1 ? arguments[1] : undefined;
return thisOrParent.$router && to && !disabled ? thisOrParent.$nuxt ? 'nuxt-link' : 'router-link' : ANCHOR_TAG;
};
exports.computeTag = computeTag;
var computeRel = function computeRel() {
var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
target = _ref2.target,
rel = _ref2.rel;
if (target === '_blank' && (0, _inspect.isNull)(rel)) {
return 'noopener';
}
return rel || null;
};
exports.computeRel = computeRel;
var computeHref = function computeHref() {
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
href = _ref3.href,
to = _ref3.to;
var tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ANCHOR_TAG;
var fallback = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '#';
var toFallback = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '/';
// We've already checked the $router in computeTag(), so isRouterLink() indicates a live router.
// When deferring to Vue Router's router-link, don't use the href attribute at all.
// We return null, and then remove href from the attributes passed to router-link
if (isRouterLink(tag)) {
return null;
} // Return `href` when explicitly provided
if (href) {
return href;
} // Reconstruct `href` when `to` used, but no router
if (to) {
// Fallback to `to` prop (if `to` is a string)
if ((0, _inspect.isString)(to)) {
return to || toFallback;
} // Fallback to `to.path + to.query + to.hash` prop (if `to` is an object)
if ((0, _inspect.isPlainObject)(to) && (to.path || to.query || to.hash)) {
var path = (0, _toString.default)(to.path);
var query = stringifyQueryObj(to.query);
var hash = (0, _toString.default)(to.hash);
hash = !hash || hash.charAt(0) === '#' ? hash : "#".concat(hash);
return "".concat(path).concat(query).concat(hash) || toFallback;
}
} // If nothing is provided return the fallback
return fallback;
};
exports.computeHref = computeHref;
/***/ }),
/***/ "./node_modules/bootstrap-vue/es/utils/to-string.js":
/***/ (function(module, exports, __webpack_require__) {
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _inspect = __webpack_require__("./node_modules/bootstrap-vue/es/utils/inspect.js");
/**
* Convert a value to a string that can be rendered.
*/
var toString = function toString(val) {
var spaces = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
return (0, _inspect.isUndefined)(val) || (0, _inspect.isNull)(val) ? '' : (0, _inspect.isArray)(val) || (0, _inspect.isPlainObject)(val) && val.toString === Object.prototype.toString ? JSON.stringify(val, null, spaces) : String(val);
};
var _default = toString;
exports.default = _default;
/***/ }),
/***/ "./node_modules/css-loader/index.js?{\"minimize\":false,\"sourceMap\":false,\"importLoaders\":2}!./node_modules/postcss-loader/lib/index.js?{\"sourceMap\":false}!./node_modules/sass-loader/lib/loader.js?{\"sourceMap\":false}!./src/views/eval/eval.scss":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("./node_modules/css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, "", ""]);
// exports
/***/ }),
/***/ "./node_modules/reflect-metadata/Reflect.js":
/***/ (function(module, exports, __webpack_require__) {
/* WEBPACK VAR INJECTION */(function(process, global) {/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var Reflect;
(function (Reflect) {
// Metadata Proposal
// https://rbuckton.github.io/reflect-metadata/
(function (factory) {
var root = typeof global === "object" ? global :
typeof self === "object" ? self :
typeof this === "object" ? this :
Function("return this;")();
var exporter = makeExporter(Reflect);
if (typeof root.Reflect === "undefined") {
root.Reflect = Reflect;
}
else {
exporter = makeExporter(root.Reflect, exporter);
}
factory(exporter);
function makeExporter(target, previous) {
return function (key, value) {
if (typeof target[key] !== "function") {
Object.defineProperty(target, key, { configurable: true, writable: true, value: value });
}
if (previous)
previous(key, value);
};
}
})(function (exporter) {
var hasOwn = Object.prototype.hasOwnProperty;
// feature test for Symbol support
var supportsSymbol = typeof Symbol === "function";
var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive";
var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator";
var supportsCreate = typeof Object.create === "function"; // feature test for Object.create support
var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support
var downLevel = !supportsCreate && !supportsProto;
var HashMap = {
// create an object in dictionary mode (a.k.a. "slow" mode in v8)
create: supportsCreate
? function () { return MakeDictionary(Object.create(null)); }
: supportsProto
? function () { return MakeDictionary({ __proto__: null }); }
: function () { return MakeDictionary({}); },
has: downLevel
? function (map, key) { return hasOwn.call(map, key); }
: function (map, key) { return key in map; },
get: downLevel
? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; }
: function (map, key) { return map[key]; },
};
// Load global or shim versions of Map, Set, and WeakMap
var functionPrototype = Object.getPrototypeOf(Function);
var usePolyfill = typeof process === "object" && Object({"ENV":"production","NODE_ENV":"production","DEBUG_MODE":false,"API_KEY":"XXXX-XXXXX-XXXX-XXXX"}) && Object({"ENV":"production","NODE_ENV":"production","DEBUG_MODE":false,"API_KEY":"XXXX-XXXXX-XXXX-XXXX"})["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true";
var _Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill();
var _Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill();
var _WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill();
// [[Metadata]] internal slot
// https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots
var Metadata = new _WeakMap();
/**
* Applies a set of decorators to a property of a target object.
* @param decorators An array of decorators.
* @param target The target object.
* @param propertyKey (Optional) The property key to decorate.
* @param attributes (Optional) The property descriptor for the target key.
* @remarks Decorators are applied in reverse order.
* @example
*
* class Example {
* // property declarations are not part of ES6, though they are valid in TypeScript:
* // static staticProperty;
* // property;
*
* constructor(p) { }
* static staticMethod(p) { }
* method(p) { }
* }
*
* // constructor
* Example = Reflect.decorate(decoratorsArray, Example);
*
* // property (on constructor)
* Reflect.decorate(decoratorsArray, Example, "staticProperty");
*
* // property (on prototype)
* Reflect.decorate(decoratorsArray, Example.prototype, "property");
*
* // method (on constructor)
* Object.defineProperty(Example, "staticMethod",
* Reflect.decorate(decoratorsArray, Example, "staticMethod",
* Object.getOwnPropertyDe