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AAQ,qCACD,CACT,EAEA,OAAO,QAAQ,gBAAkB","file":"/npm/vue-loader@15.9.8/lib/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-loader@15.9.8/lib/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const path = require('path')\nconst hash = require('hash-sum')\nconst qs = require('querystring')\nconst plugin = require('./plugin')\nconst selectBlock = require('./select')\nconst loaderUtils = require('loader-utils')\nconst { attrsToQuery } = require('./codegen/utils')\nconst { parse } = require('@vue/component-compiler-utils')\nconst genStylesCode = require('./codegen/styleInjection')\nconst { genHotReloadCode } = require('./codegen/hotReload')\nconst genCustomBlocksCode = require('./codegen/customBlocks')\nconst componentNormalizerPath = require.resolve('./runtime/componentNormalizer')\nconst { NS } = require('./plugin')\n\nlet errorEmitted = false\n\nfunction loadTemplateCompiler (loaderContext) {\n  try {\n    return require('vue-template-compiler')\n  } catch (e) {\n    if (/version mismatch/.test(e.toString())) {\n      loaderContext.emitError(e)\n    } else {\n      loaderContext.emitError(new Error(\n        `[vue-loader] vue-template-compiler must be installed as a peer dependency, ` +\n        `or a compatible compiler implementation must be passed via options.`\n      ))\n    }\n  }\n}\n\nmodule.exports = function (source) {\n  const loaderContext = this\n\n  if (!errorEmitted && !loaderContext['thread-loader'] && !loaderContext[NS]) {\n    loaderContext.emitError(new Error(\n      `vue-loader was used without the corresponding plugin. ` +\n      `Make sure to include VueLoaderPlugin in your webpack config.`\n    ))\n    errorEmitted = true\n  }\n\n  const stringifyRequest = r => loaderUtils.stringifyRequest(loaderContext, r)\n\n  const {\n    target,\n    request,\n    minimize,\n    sourceMap,\n    rootContext,\n    resourcePath,\n    resourceQuery = ''\n  } = loaderContext\n\n  const rawQuery = resourceQuery.slice(1)\n  const inheritQuery = `&${rawQuery}`\n  const incomingQuery = qs.parse(rawQuery)\n  const options = loaderUtils.getOptions(loaderContext) || {}\n\n  const isServer = target === 'node'\n  const isShadow = !!options.shadowMode\n  const isProduction = options.productionMode || minimize || process.env.NODE_ENV === 'production'\n  const filename = path.basename(resourcePath)\n  const context = rootContext || process.cwd()\n  const sourceRoot = path.dirname(path.relative(context, resourcePath))\n\n  const descriptor = parse({\n    source,\n    compiler: options.compiler || loadTemplateCompiler(loaderContext),\n    filename,\n    sourceRoot,\n    needMap: sourceMap\n  })\n\n  // if the query has a type field, this is a language block request\n  // e.g. foo.vue?type=template&id=xxxxx\n  // and we will return early\n  if (incomingQuery.type) {\n    return selectBlock(\n      descriptor,\n      loaderContext,\n      incomingQuery,\n      !!options.appendExtension\n    )\n  }\n\n  // module id for scoped CSS & hot-reload\n  const rawShortFilePath = path\n    .relative(context, resourcePath)\n    .replace(/^(\\.\\.[\\/\\\\])+/, '')\n\n  const shortFilePath = rawShortFilePath.replace(/\\\\/g, '/') + resourceQuery\n\n  const id = hash(\n    isProduction\n      ? (shortFilePath + '\\n' + source.replace(/\\r\\n/g, '\\n'))\n      : shortFilePath\n  )\n\n  // feature information\n  const hasScoped = descriptor.styles.some(s => s.scoped)\n  const hasFunctional = descriptor.template && descriptor.template.attrs.functional\n  const needsHotReload = (\n    !isServer &&\n    !isProduction &&\n    (descriptor.script || descriptor.template) &&\n    options.hotReload !== false\n  )\n\n  // template\n  let templateImport = `var render, staticRenderFns`\n  let templateRequest\n  if (descriptor.template) {\n    const src = descriptor.template.src || resourcePath\n    const idQuery = `&id=${id}`\n    const scopedQuery = hasScoped ? `&scoped=true` : ``\n    const attrsQuery = attrsToQuery(descriptor.template.attrs)\n    const query = `?vue&type=template${idQuery}${scopedQuery}${attrsQuery}${inheritQuery}`\n    const request = templateRequest = stringifyRequest(src + query)\n    templateImport = `import { render, staticRenderFns } from ${request}`\n  }\n\n  // script\n  let scriptImport = `var script = {}`\n  if (descriptor.script) {\n    const src = descriptor.script.src || resourcePath\n    const attrsQuery = attrsToQuery(descriptor.script.attrs, 'js')\n    const query = `?vue&type=script${attrsQuery}${inheritQuery}`\n    const request = stringifyRequest(src + query)\n    scriptImport = (\n      `import script from ${request}\\n` +\n      `export * from ${request}` // support named exports\n    )\n  }\n\n  // styles\n  let stylesCode = ``\n  if (descriptor.styles.length) {\n    stylesCode = genStylesCode(\n      loaderContext,\n      descriptor.styles,\n      id,\n      resourcePath,\n      stringifyRequest,\n      needsHotReload,\n      isServer || isShadow // needs explicit injection?\n    )\n  }\n\n  let code = `\n${templateImport}\n${scriptImport}\n${stylesCode}\n\n/* normalize component */\nimport normalizer from ${stringifyRequest(`!${componentNormalizerPath}`)}\nvar component = normalizer(\n  script,\n  render,\n  staticRenderFns,\n  ${hasFunctional ? `true` : `false`},\n  ${/injectStyles/.test(stylesCode) ? `injectStyles` : `null`},\n  ${hasScoped ? JSON.stringify(id) : `null`},\n  ${isServer ? JSON.stringify(hash(request)) : `null`}\n  ${isShadow ? `,true` : ``}\n)\n  `.trim() + `\\n`\n\n  if (descriptor.customBlocks && descriptor.customBlocks.length) {\n    code += genCustomBlocksCode(\n      descriptor.customBlocks,\n      resourcePath,\n      resourceQuery,\n      stringifyRequest\n    )\n  }\n\n  if (needsHotReload) {\n    code += `\\n` + genHotReloadCode(id, hasFunctional, templateRequest)\n  }\n\n  // Expose filename. This is used by the devtools and Vue runtime warnings.\n  if (!isProduction) {\n    // Expose the file's full path in development, so that it can be opened\n    // from the devtools.\n    code += `\\ncomponent.options.__file = ${JSON.stringify(rawShortFilePath.replace(/\\\\/g, '/'))}`\n  } else if (options.exposeFilename) {\n    // Libraries can opt-in to expose their components' filenames in production builds.\n    // For security reasons, only expose the file's basename in production.\n    code += `\\ncomponent.options.__file = ${JSON.stringify(filename)}`\n  }\n\n  code += `\\nexport default component.exports`\n  return code\n}\n\nmodule.exports.VueLoaderPlugin = plugin\n"]}