reponsive.a5b1628c.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. // modules are defined as an array
  2. // [ module function, map of requires ]
  3. //
  4. // map of requires is short require name -> numeric require
  5. //
  6. // anything defined in a previous bundle is accessed via the
  7. // orig method which is the require for previous bundles
  8. parcelRequire = (function (modules, cache, entry, globalName) {
  9. // Save the require from previous bundle to this closure if any
  10. var previousRequire = typeof parcelRequire === 'function' && parcelRequire;
  11. var nodeRequire = typeof require === 'function' && require;
  12. function newRequire(name, jumped) {
  13. if (!cache[name]) {
  14. if (!modules[name]) {
  15. // if we cannot find the module within our internal map or
  16. // cache jump to the current global require ie. the last bundle
  17. // that was added to the page.
  18. var currentRequire = typeof parcelRequire === 'function' && parcelRequire;
  19. if (!jumped && currentRequire) {
  20. return currentRequire(name, true);
  21. }
  22. // If there are other bundles on this page the require from the
  23. // previous one is saved to 'previousRequire'. Repeat this as
  24. // many times as there are bundles until the module is found or
  25. // we exhaust the require chain.
  26. if (previousRequire) {
  27. return previousRequire(name, true);
  28. }
  29. // Try the node require function if it exists.
  30. if (nodeRequire && typeof name === 'string') {
  31. return nodeRequire(name);
  32. }
  33. var err = new Error('Cannot find module \'' + name + '\'');
  34. err.code = 'MODULE_NOT_FOUND';
  35. throw err;
  36. }
  37. localRequire.resolve = resolve;
  38. localRequire.cache = {};
  39. var module = cache[name] = new newRequire.Module(name);
  40. modules[name][0].call(module.exports, localRequire, module, module.exports, this);
  41. }
  42. return cache[name].exports;
  43. function localRequire(x){
  44. return newRequire(localRequire.resolve(x));
  45. }
  46. function resolve(x){
  47. return modules[name][1][x] || x;
  48. }
  49. }
  50. function Module(moduleName) {
  51. this.id = moduleName;
  52. this.bundle = newRequire;
  53. this.exports = {};
  54. }
  55. newRequire.isParcelRequire = true;
  56. newRequire.Module = Module;
  57. newRequire.modules = modules;
  58. newRequire.cache = cache;
  59. newRequire.parent = previousRequire;
  60. newRequire.register = function (id, exports) {
  61. modules[id] = [function (require, module) {
  62. module.exports = exports;
  63. }, {}];
  64. };
  65. var error;
  66. for (var i = 0; i < entry.length; i++) {
  67. try {
  68. newRequire(entry[i]);
  69. } catch (e) {
  70. // Save first error but execute all entries
  71. if (!error) {
  72. error = e;
  73. }
  74. }
  75. }
  76. if (entry.length) {
  77. // Expose entry point to Node, AMD or browser globals
  78. // Based on https://github.com/ForbesLindesay/umd/blob/master/template.js
  79. var mainExports = newRequire(entry[entry.length - 1]);
  80. // CommonJS
  81. if (typeof exports === "object" && typeof module !== "undefined") {
  82. module.exports = mainExports;
  83. // RequireJS
  84. } else if (typeof define === "function" && define.amd) {
  85. define(function () {
  86. return mainExports;
  87. });
  88. // <script>
  89. } else if (globalName) {
  90. this[globalName] = mainExports;
  91. }
  92. }
  93. // Override the current require with this new one
  94. parcelRequire = newRequire;
  95. if (error) {
  96. // throw error from earlier, _after updating parcelRequire_
  97. throw error;
  98. }
  99. return newRequire;
  100. })({"node_modules/parcel/src/builtins/bundle-url.js":[function(require,module,exports) {
  101. var bundleURL = null;
  102. function getBundleURLCached() {
  103. if (!bundleURL) {
  104. bundleURL = getBundleURL();
  105. }
  106. return bundleURL;
  107. }
  108. function getBundleURL() {
  109. // Attempt to find the URL of the current script and use that as the base URL
  110. try {
  111. throw new Error();
  112. } catch (err) {
  113. var matches = ('' + err.stack).match(/(https?|file|ftp|chrome-extension|moz-extension):\/\/[^)\n]+/g);
  114. if (matches) {
  115. return getBaseURL(matches[0]);
  116. }
  117. }
  118. return '/';
  119. }
  120. function getBaseURL(url) {
  121. return ('' + url).replace(/^((?:https?|file|ftp|chrome-extension|moz-extension):\/\/.+)\/[^/]+$/, '$1') + '/';
  122. }
  123. exports.getBundleURL = getBundleURLCached;
  124. exports.getBaseURL = getBaseURL;
  125. },{}],"node_modules/parcel/src/builtins/css-loader.js":[function(require,module,exports) {
  126. var bundle = require('./bundle-url');
  127. function updateLink(link) {
  128. var newLink = link.cloneNode();
  129. newLink.onload = function () {
  130. link.remove();
  131. };
  132. newLink.href = link.href.split('?')[0] + '?' + Date.now();
  133. link.parentNode.insertBefore(newLink, link.nextSibling);
  134. }
  135. var cssTimeout = null;
  136. function reloadCSS() {
  137. if (cssTimeout) {
  138. return;
  139. }
  140. cssTimeout = setTimeout(function () {
  141. var links = document.querySelectorAll('link[rel="stylesheet"]');
  142. for (var i = 0; i < links.length; i++) {
  143. if (bundle.getBaseURL(links[i].href) === bundle.getBundleURL()) {
  144. updateLink(links[i]);
  145. }
  146. }
  147. cssTimeout = null;
  148. }, 50);
  149. }
  150. module.exports = reloadCSS;
  151. },{"./bundle-url":"node_modules/parcel/src/builtins/bundle-url.js"}],"styles/reponsive.css":[function(require,module,exports) {
  152. var reloadCSS = require('_css_loader');
  153. module.hot.dispose(reloadCSS);
  154. module.hot.accept(reloadCSS);
  155. },{"_css_loader":"node_modules/parcel/src/builtins/css-loader.js"}],"node_modules/parcel/src/builtins/hmr-runtime.js":[function(require,module,exports) {
  156. var global = arguments[3];
  157. var OVERLAY_ID = '__parcel__error__overlay__';
  158. var OldModule = module.bundle.Module;
  159. function Module(moduleName) {
  160. OldModule.call(this, moduleName);
  161. this.hot = {
  162. data: module.bundle.hotData,
  163. _acceptCallbacks: [],
  164. _disposeCallbacks: [],
  165. accept: function (fn) {
  166. this._acceptCallbacks.push(fn || function () {});
  167. },
  168. dispose: function (fn) {
  169. this._disposeCallbacks.push(fn);
  170. }
  171. };
  172. module.bundle.hotData = null;
  173. }
  174. module.bundle.Module = Module;
  175. var checkedAssets, assetsToAccept;
  176. var parent = module.bundle.parent;
  177. if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
  178. var hostname = "" || location.hostname;
  179. var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
  180. var ws = new WebSocket(protocol + '://' + hostname + ':' + "53056" + '/');
  181. ws.onmessage = function (event) {
  182. checkedAssets = {};
  183. assetsToAccept = [];
  184. var data = JSON.parse(event.data);
  185. if (data.type === 'update') {
  186. var handled = false;
  187. data.assets.forEach(function (asset) {
  188. if (!asset.isNew) {
  189. var didAccept = hmrAcceptCheck(global.parcelRequire, asset.id);
  190. if (didAccept) {
  191. handled = true;
  192. }
  193. }
  194. }); // Enable HMR for CSS by default.
  195. handled = handled || data.assets.every(function (asset) {
  196. return asset.type === 'css' && asset.generated.js;
  197. });
  198. if (handled) {
  199. console.clear();
  200. data.assets.forEach(function (asset) {
  201. hmrApply(global.parcelRequire, asset);
  202. });
  203. assetsToAccept.forEach(function (v) {
  204. hmrAcceptRun(v[0], v[1]);
  205. });
  206. } else if (location.reload) {
  207. // `location` global exists in a web worker context but lacks `.reload()` function.
  208. location.reload();
  209. }
  210. }
  211. if (data.type === 'reload') {
  212. ws.close();
  213. ws.onclose = function () {
  214. location.reload();
  215. };
  216. }
  217. if (data.type === 'error-resolved') {
  218. console.log('[parcel] ✨ Error resolved');
  219. removeErrorOverlay();
  220. }
  221. if (data.type === 'error') {
  222. console.error('[parcel] 🚨 ' + data.error.message + '\n' + data.error.stack);
  223. removeErrorOverlay();
  224. var overlay = createErrorOverlay(data);
  225. document.body.appendChild(overlay);
  226. }
  227. };
  228. }
  229. function removeErrorOverlay() {
  230. var overlay = document.getElementById(OVERLAY_ID);
  231. if (overlay) {
  232. overlay.remove();
  233. }
  234. }
  235. function createErrorOverlay(data) {
  236. var overlay = document.createElement('div');
  237. overlay.id = OVERLAY_ID; // html encode message and stack trace
  238. var message = document.createElement('div');
  239. var stackTrace = document.createElement('pre');
  240. message.innerText = data.error.message;
  241. stackTrace.innerText = data.error.stack;
  242. overlay.innerHTML = '<div style="background: black; font-size: 16px; color: white; position: fixed; height: 100%; width: 100%; top: 0px; left: 0px; padding: 30px; opacity: 0.85; font-family: Menlo, Consolas, monospace; z-index: 9999;">' + '<span style="background: red; padding: 2px 4px; border-radius: 2px;">ERROR</span>' + '<span style="top: 2px; margin-left: 5px; position: relative;">🚨</span>' + '<div style="font-size: 18px; font-weight: bold; margin-top: 20px;">' + message.innerHTML + '</div>' + '<pre>' + stackTrace.innerHTML + '</pre>' + '</div>';
  243. return overlay;
  244. }
  245. function getParents(bundle, id) {
  246. var modules = bundle.modules;
  247. if (!modules) {
  248. return [];
  249. }
  250. var parents = [];
  251. var k, d, dep;
  252. for (k in modules) {
  253. for (d in modules[k][1]) {
  254. dep = modules[k][1][d];
  255. if (dep === id || Array.isArray(dep) && dep[dep.length - 1] === id) {
  256. parents.push(k);
  257. }
  258. }
  259. }
  260. if (bundle.parent) {
  261. parents = parents.concat(getParents(bundle.parent, id));
  262. }
  263. return parents;
  264. }
  265. function hmrApply(bundle, asset) {
  266. var modules = bundle.modules;
  267. if (!modules) {
  268. return;
  269. }
  270. if (modules[asset.id] || !bundle.parent) {
  271. var fn = new Function('require', 'module', 'exports', asset.generated.js);
  272. asset.isNew = !modules[asset.id];
  273. modules[asset.id] = [fn, asset.deps];
  274. } else if (bundle.parent) {
  275. hmrApply(bundle.parent, asset);
  276. }
  277. }
  278. function hmrAcceptCheck(bundle, id) {
  279. var modules = bundle.modules;
  280. if (!modules) {
  281. return;
  282. }
  283. if (!modules[id] && bundle.parent) {
  284. return hmrAcceptCheck(bundle.parent, id);
  285. }
  286. if (checkedAssets[id]) {
  287. return;
  288. }
  289. checkedAssets[id] = true;
  290. var cached = bundle.cache[id];
  291. assetsToAccept.push([bundle, id]);
  292. if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
  293. return true;
  294. }
  295. return getParents(global.parcelRequire, id).some(function (id) {
  296. return hmrAcceptCheck(global.parcelRequire, id);
  297. });
  298. }
  299. function hmrAcceptRun(bundle, id) {
  300. var cached = bundle.cache[id];
  301. bundle.hotData = {};
  302. if (cached) {
  303. cached.hot.data = bundle.hotData;
  304. }
  305. if (cached && cached.hot && cached.hot._disposeCallbacks.length) {
  306. cached.hot._disposeCallbacks.forEach(function (cb) {
  307. cb(bundle.hotData);
  308. });
  309. }
  310. delete bundle.cache[id];
  311. bundle(id);
  312. cached = bundle.cache[id];
  313. if (cached && cached.hot && cached.hot._acceptCallbacks.length) {
  314. cached.hot._acceptCallbacks.forEach(function (cb) {
  315. cb();
  316. });
  317. return true;
  318. }
  319. }
  320. },{}]},{},["node_modules/parcel/src/builtins/hmr-runtime.js"], null)
  321. //# sourceMappingURL=/reponsive.a5b1628c.js.map