photo-sphere-viewer.min.bf28a8e3.map 3.3 KB

1
  1. {"version":3,"sources":["../../../.npm-global/lib/node_modules/parcel-bundler/src/builtins/bundle-url.js","../../../.npm-global/lib/node_modules/parcel-bundler/src/builtins/css-loader.js"],"names":["bundleURL","getBundleURLCached","getBundleURL","Error","err","matches","stack","match","getBaseURL","url","replace","exports","bundle","require","updateLink","link","newLink","cloneNode","onload","remove","href","split","Date","now","parentNode","insertBefore","nextSibling","cssTimeout","reloadCSS","setTimeout","links","document","querySelectorAll","i","length","module"],"mappings":"AAAA,ACAA,IDAIA,ACAAY,SAASC,GDAG,IAAhB,CCAqB,cAAR,CAAb;ADCA,SAASZ,kBAAT,GAA8B;AAC5B,ACAF,MDAM,CAACD,ECAEc,ODAP,EAAgB,CCAlB,CAAoBC,IAApB,EAA0B;ADCtBf,ACAF,MAAIgB,UDAUd,ACAAa,KAAKE,SDAjB,ACAY,EAAd;ADCC,ACADD,UAAQE,MAAR,GAAiB,YAAY;AAC3BH,SAAKI,MAAL;ADCF,ACAC,GAFD,MDEOnB,SAAP;AACD,ACACgB,UAAQI,IAAR,GAAeL,KAAKK,IAAL,CAAUC,KAAV,CAAgB,GAAhB,EAAqB,CAArB,IAA0B,GAA1B,GAAgCC,KAAKC,GAAL,EAA/C;AACAR,OAAKS,UAAL,CAAgBC,YAAhB,CAA6BT,OAA7B,EAAsCD,KAAKW,WAA3C;ADCF,ACAC,SDAQxB,YAAT,GAAwB;AACtB;AACA,ACAF,IAAIyB,EDAE,WCAW,IAAjB;ADCI,ACAJ,SAASC,CDAC,IAAIzB,ICAd,CDAU,EAAN,ACAiB;ADClB,ACAD,GDFA,CAEE,ECAEwB,KDAKvB,GAAP,EAAY,ACAd,EAAgB;ADCd,ACAA,QDAIC,UAAU,CAAC,KAAKD,IAAIE,KAAV,EAAiBC,KAAjB,CAAuB,gCAAvB,CAAd;AACA,ACAD,QDAKF,OAAJ,EAAa;AACX,aAAOG,WAAWH,QAAQ,CAAR,CAAX,CAAP;AACD,ACAHsB,eAAaE,WAAW,YAAY;ADCnC,ACAC,QAAIC,QAAQC,SAASC,gBAAT,CAA0B,wBAA1B,CAAZ;AACA,SAAK,IAAIC,IAAI,CAAb,EAAgBA,IAAIH,MAAMI,MAA1B,EAAkCD,GAAlC,EAAuC;ADCzC,ACAI,SDAG,CCACrB,EDAR,KCAeJ,UAAP,CAAkBsB,MAAMG,CAAN,EAASb,IAA3B,MAAqCR,OAAOV,YAAP,EAAzC,EAAgE;ADCrE,ACAOY,mBAAWgB,MAAMG,CAAN,CAAX;AACD;ADCP,ACAK,SDAIzB,UAAT,CAAoBC,GAApB,EAAyB;AACvB,SAAO,CAAC,KAAKA,GAAN,EAAWC,OAAX,CAAmB,uCAAnB,EAA4D,IAA5D,IAAoE,GAA3E;AACD,ACAGiB,iBAAa,IAAb;AACD,GATY,EASV,EATU,CAAb;ADUFhB,ACAC,QDAOT,YAAR,GAAuBD,kBAAvB;AACAU,QAAQH,UAAR,GAAqBA,UAArB;ACCA2B,OAAOxB,OAAP,GAAiBiB,SAAjB","file":"photo-sphere-viewer.min.bf28a8e3.map","sourceRoot":"..","sourcesContent":["var bundleURL = null;\nfunction getBundleURLCached() {\n if (!bundleURL) {\n bundleURL = getBundleURL();\n }\n\n return bundleURL;\n}\n\nfunction getBundleURL() {\n // Attempt to find the URL of the current script and use that as the base URL\n try {\n throw new Error;\n } catch (err) {\n var matches = ('' + err.stack).match(/(https?|file|ftp):\\/\\/[^)\\n]+/g);\n if (matches) {\n return getBaseURL(matches[0]);\n }\n }\n\n return '/';\n}\n\nfunction getBaseURL(url) {\n return ('' + url).replace(/^((?:https?|file|ftp):\\/\\/.+)\\/[^/]+$/, '$1') + '/';\n}\n\nexports.getBundleURL = getBundleURLCached;\nexports.getBaseURL = getBaseURL;\n","var bundle = require('./bundle-url');\n\nfunction updateLink(link) {\n var newLink = link.cloneNode();\n newLink.onload = function () {\n link.remove();\n };\n newLink.href = link.href.split('?')[0] + '?' + Date.now();\n link.parentNode.insertBefore(newLink, link.nextSibling);\n}\n\nvar cssTimeout = null;\nfunction reloadCSS() {\n if (cssTimeout) {\n return;\n }\n\n cssTimeout = setTimeout(function () {\n var links = document.querySelectorAll('link[rel=\"stylesheet\"]');\n for (var i = 0; i < links.length; i++) {\n if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {\n updateLink(links[i]);\n }\n }\n\n cssTimeout = null;\n }, 50);\n}\n\nmodule.exports = reloadCSS;\n"]}