Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
dmail committed Oct 10, 2023
1 parent 1589eb5 commit affb737
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 373 deletions.
213 changes: 76 additions & 137 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
<link rel="preload" href="/other/roboto_v27_latin_regular.woff2?v=fda7bb73" as="font" type="font/woff2" crossorigin="">
<!-- <link rel="preload" href="./main.css" as="script" crossorigin /> -->
<link rel="preload" href="/other/logo.png?v=467b6542" as="image">
<link rel="preload" href="/js/main.nomodule.js?v=95095163" as="script">
<link rel="preload" href="/js/main.nomodule.js?v=76ef0a68" as="script">
<link rel="preload" href="/css/app.css?v=a0c28051" as="style">
<link rel="preload" href="/js/app.nomodule.js?v=7bae98f8" as="script">
<link rel="preload" href="/js/vendors.nomodule.js?v=33fc6de7" as="script">
<link rel="preload" href="/js/app.nomodule.js?v=60565a03" as="script">
<link rel="preload" href="/js/vendors.nomodule.js?v=6f517833" as="script">
<script>
;(function() {
var __versionMappings__ = {
"/js/main.nomodule.js": "/js/main.nomodule.js?v=95095163",
"/js/vendors.nomodule.js": "/js/vendors.nomodule.js?v=33fc6de7",
"/js/main.nomodule.js": "/js/main.nomodule.js?v=76ef0a68",
"/js/vendors.nomodule.js": "/js/vendors.nomodule.js?v=6f517833",
"/other/roboto_v27_latin_regular.woff2": "/other/roboto_v27_latin_regular.woff2?v=fda7bb73",
"/js/app.nomodule.js": "/js/app.nomodule.js?v=7bae98f8",
"/js/app.nomodule.js": "/js/app.nomodule.js?v=60565a03",
"/css/app.css": "/css/app.css?v=a0c28051",
"/js/jsenv_service_worker.js": "/js/jsenv_service_worker.js?v=90994b80",
"/other/logo.png": "/other/logo.png?v=467b6542"
Expand All @@ -38,39 +38,6 @@
};
})();
</script><script>
function _typeof2(obj) {
"@babel/helpers - typeof";

return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
}, _typeof2(obj);
}
// https://mathiasbynens.be/notes/globalthis

/* eslint-disable no-redeclare */
/* global globalThis */
var globalObject;
if ((typeof globalThis === "undefined" ? "undefined" : _typeof2(globalThis)) === "object") {
globalObject = globalThis;
} else {
if (_typeof2(this) === "object") {
globalObject = this;
} else {
// eslint-disable-next-line no-extend-native
Object.defineProperty(Object.prototype, "__global__", {
get: function get() {
return this;
},
configurable: true
});
// eslint-disable-next-line no-undef
globalObject = __global__;
delete Object.prototype.__global__;
}
globalObject.globalThis = globalObject;
}
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define([], factory);
Expand All @@ -86,104 +53,6 @@
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function () {
"use strict";

// eslint-disable-next-line consistent-return
var arrayWithHoles = function arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
};

/* @minVersion 7.0.0-beta.0 */

function _iterableToArrayLimit(arr, i) {
// this is an expanded form of \`for...of\` that properly supports abrupt completions of
// iterators etc. variable names have been minimised to reduce the size of this massive
// helper. sometimes spec compliance is annoying :(
//
// _n = _iteratorNormalCompletion
// _d = _didIteratorError
// _e = _iteratorError
// _i = _iterator
// _s = _step
// _x = _next
// _r = _return

var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
if (_i == null) return;
var _arr = [];
var _n = true;
var _d = false;
var _s, _e, _x, _r;
try {
_x = (_i = _i.call(arr)).next;
if (i === 0) {
if (Object(_i) !== _i) return;
_n = false;
} else {
for (; !(_n = (_s = _x.call(_i)).done); _n = true) {
_arr.push(_s.value);
if (_arr.length === i) break;
}
}
} catch (err) {
_d = true;
_e = err;
} finally {
try {
if (!_n && _i["return"] != null) {
_r = _i["return"]();
// eslint-disable-next-line no-unsafe-finally
if (Object(_r) !== _r) return;
}
} finally {
// eslint-disable-next-line no-unsafe-finally
if (_d) throw _e;
}
}
return _arr;
}

/* eslint-disable no-eq-null, eqeqeq */
function arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
var arr2 = new Array(len);
for (var i = 0; i < len; i++) arr2[i] = arr[i];
return arr2;
}

/* eslint-disable consistent-return */
function unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
}
var nonIterableRest = function nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
};
var _slicedToArray = function _slicedToArray(arr, i) {
return arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
};
var nativeTypeOf = function nativeTypeOf(obj) {
return _typeof2(obj);
};
var customTypeOf = function customTypeOf(obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
};
var _typeof = typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol" ? nativeTypeOf : customTypeOf;

/*
* This file is a modified version of https://github.com/systemjs/systemjs/blob/main/dist/s.js
* with the following changes:
*
* - Code can use aync/await, const, etc because this file is compiled (see dist/s.js)
* - Can use document.currentScript because we don't support IE
* - auto import inline System.register
* - auto import first System.register in web workers
* - queing events in web workers
* - no support for importmap because jsenv don't need it
*/

function _await(value, then, direct) {
if (direct) {
return then ? then(value) : value;
Expand Down Expand Up @@ -229,6 +98,76 @@
}
return result;
}
function _slicedToArray(arr, i) {
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
}
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
}
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e,
n,
i,
u,
a = [],
f = !0,
o = !1;
try {
if (i = (t = t.call(r)).next, 0 === l) {
if (Object(t) !== t) return;
f = !1;
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
} catch (r) {
o = !0, n = r;
} finally {
try {
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
function _typeof(o) {
"@babel/helpers - typeof";

return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, _typeof(o);
}
/*
* This file is a modified version of https://github.com/systemjs/systemjs/blob/main/dist/s.js
* with the following changes:
*
* - Code can use aync/await, const, etc because this file is compiled (see dist/s.js)
* - Can use document.currentScript because we don't support IE
* - auto import inline System.register
* - auto import first System.register in web workers
* - queing events in web workers
* - no support for importmap because jsenv don't need it
*/

(function () {
/* eslint-env browser */

Expand Down
11 changes: 7 additions & 4 deletions dist/js/app.nomodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ System.register([__v__("/js/vendors.nomodule.js")], function (_export, _context)

var addToHomescreen, pwaLogger, createServiceWorkerFacade, initAddToHomeScreen, swFacade, initServiceWorker, installServiceWorkerUpdateUI, greet, appNode, render;
return {
setters: [function (_t) {
addToHomescreen = _t.addToHomescreen;
pwaLogger = _t.pwaLogger;
createServiceWorkerFacade = _t.createServiceWorkerFacade;
setters: [function (_vendorsJs) {
addToHomescreen = _vendorsJs.addToHomescreen;
pwaLogger = _vendorsJs.pwaLogger;
createServiceWorkerFacade = _vendorsJs.createServiceWorkerFacade;
}],
execute: function () {
initAddToHomeScreen = appNode => {
Expand All @@ -26,6 +26,9 @@ System.register([__v__("/js/vendors.nomodule.js")], function (_export, _context)
});
swFacade = createServiceWorkerFacade();
initServiceWorker = appNode => {
if (!window.navigator.serviceWorker) {
return;
}
// wait a bit that browser is less busy to register the service worker
const callLater = window.requestIdleCallback || requestAnimationFrame;
callLater(() => {
Expand Down
2 changes: 1 addition & 1 deletion dist/js/main.nomodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ System.register([__v__("/js/vendors.nomodule.js")], function (_export, _context)

var inlineContent, stylesheet, appJsPromise, appCssPromise, appRemainingDepsPromise, app;
return {
setters: [function (_i) {}],
setters: [function (_vendorsJs) {}],
execute: async function () {
inlineContent = new __InlineContent__('@font-face {\n font-family: Roboto;\n font-style: normal;\n font-weight: 400;\n src: local(Roboto), url('+__v__("/other/roboto_v27_latin_regular.woff2")+') format("woff2");\n font-display: swap;\n}\n', {
type: "text/css"
Expand Down
Loading

0 comments on commit affb737

Please sign in to comment.