You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cac-fronted/node_modules/.cache/babel-loader/3397f5c334cb15dccda45d84ebe...

1 line
23 KiB
JSON

2 years ago
{"ast":null,"code":"require(\"core-js/modules/es.array.push.js\");\nvar Vue; // late bind\nvar version;\nvar map = Object.create(null);\nif (typeof window !== 'undefined') {\n window.__VUE_HOT_MAP__ = map;\n}\nvar installed = false;\nvar isBrowserify = false;\nvar initHookName = 'beforeCreate';\nexports.install = function (vue, browserify) {\n if (installed) {\n return;\n }\n installed = true;\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 exports.compatible = version[0] >= 2;\n if (!exports.compatible) {\n console.warn('[HMR] You are using a version of vue-hot-reload-api that is ' + 'only compatible with Vue.js core ^2.0.0.');\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 if (map[id]) {\n return;\n }\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: Ctor,\n options: options,\n instances: []\n };\n};\n\n/**\n * Check if module is recorded\n *\n * @param {String} id\n */\n\nexports.isRecorded = function (id) {\n return typeof map[id] !== 'undefined';\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 if (options.functional) {\n var render = options.render;\n options.render = function (h, ctx) {\n var instances = map[id].instances;\n if (ctx && instances.indexOf(ctx.parent) < 0) {\n instances.push(ctx.parent);\n }\n return render(h, ctx);\n };\n } else {\n injectHook(options, initHookName, function () {\n var record = map[id];\n if (!record.Ctor) {\n record.Ctor = this.constructor;\n }\n record.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/**\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 ? Array.isArray(existing) ? existing.concat(hook) : [existing, hook] : [hook];\n}\nfunction tryWrap(fn) {\n return function (id, arg) {\n try {\n fn(id, arg);\n } catch (e) {\n console.error(e);\n console.warn('Something went wrong during Vue component hot-reload. Full reload required.');\n }\n };\n}\nfunction updateOptions(oldOptions, newOptions) {\n for (var key in oldOptions) {\n if (!(key in newOptions)) {\n delete oldOptions[key];\n }\n }\n for (var key$1 in newOptions) {\n oldOptions[key$1] = newOptions[key$1];\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 if (record.Ctor) {\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 // reset static trees\n // pre 2.5, all static trees are cached together on the instance\n if (instance._staticTrees) {\n instance._staticTrees = [];\n }\n // 2.5.0\n if (Array.isArray(record.Ctor.options.cached)) {\n record.Ctor.options.cached