{"version":3,"file":"8207.96b572d851ee6e77.js","sources":["webpack://storefronts/./node_modules/url-join/lib/url-join.js"],"sourcesContent":["(function (name, context, definition) {\n  if (typeof module !== 'undefined' && module.exports) module.exports = definition();\n  else if (typeof define === 'function' && define.amd) define(definition);\n  else context[name] = definition();\n})('urljoin', this, function () {\n\n  function normalize (str, options) {\n\n    // make sure protocol is followed by two slashes\n    str = str.replace(/:\\//g, '://');\n\n    // remove consecutive slashes\n    str = str.replace(/([^:\\s])\\/+/g, '$1/');\n\n    // remove trailing slash before parameters or hash\n    str = str.replace(/\\/(\\?|&|#[^!])/g, '$1');\n\n    // replace ? in parameters with &\n    str = str.replace(/(\\?.+)\\?/g, '$1&');\n\n    return str;\n  }\n\n  return function () {\n    var input = arguments;\n    var options = {};\n\n    if (typeof arguments[0] === 'object') {\n      // new syntax with array and options\n      input = arguments[0];\n      options = arguments[1] || {};\n    }\n\n    var joined = [].slice.call(input, 0).join('/');\n    return normalize(joined, options);\n  };\n\n});\n"],"names":["definition","str","input","arguments","options","module","define","context"],"mappings":"sGAA0BA,EAAAA,EAIN,WAmBlB,OAAO,WACL,IAlBkBC,EAkBdC,EAAQC,UACRC,EAAU,CAAC,EASf,MAP4B,UAAxB,OAAOD,SAAS,CAAC,EAAE,GAErBD,EAAQC,SAAS,CAAC,EAAE,CACVA,SAAS,CAAC,EAAE,EAZlBF,AAHAA,AAHAA,AAHAA,AAwBO,EAAE,CAAC,KAAK,CAAC,IAAI,CAACC,EAAO,GAAG,IAAI,CAAC,KAxBhC,OAAO,CAAC,OAAQ,OAGhB,OAAO,CAAC,eAAgB,OAGxB,OAAO,CAAC,kBAAmB,MAG3B,OAAO,CAAC,YAAa,MAiBjC,CAEF,EApCuCG,EAAO,OAAO,CAAEA,EAAO,OAAO,CAAGL,IAC7D,AAAkB,YAAlB,OAAOM,QAAyBA,OAAO,GAAG,CAAEA,OAAON,GACvDO,AACO,IAAI,CAAf,OADiB,CAAGP,G"}