This commit is contained in:
burningtree 2023-02-27 06:03:31 +00:00
parent e70879e354
commit f2911fa23c
29 changed files with 82661 additions and 2614 deletions

View file

@ -534,6 +534,7 @@ footer a:hover,
} }
.button{ .button{
cursor: pointer;
border-width: 1px; border-width: 1px;
--tw-border-opacity: 1; --tw-border-opacity: 1;
border-color: rgb(0 0 0 / var(--tw-border-opacity)); border-color: rgb(0 0 0 / var(--tw-border-opacity));
@ -547,7 +548,7 @@ footer a:hover,
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
} }
.button:hover{ .button:hover, .button-inactive{
border-width: 1px; border-width: 1px;
--tw-border-opacity: 1; --tw-border-opacity: 1;
border-color: rgb(255 255 255 / var(--tw-border-opacity)); border-color: rgb(255 255 255 / var(--tw-border-opacity));
@ -557,6 +558,39 @@ footer a:hover,
color: rgb(255 255 255 / var(--tw-text-opacity)); color: rgb(255 255 255 / var(--tw-text-opacity));
} }
.button:hover.button-inactive{
cursor: default;
--tw-border-opacity: 1;
border-color: rgb(75 85 99 / var(--tw-border-opacity));
--tw-text-opacity: 1;
color: rgb(75 85 99 / var(--tw-text-opacity));
}
.button-inverse{
cursor: pointer;
border-width: 1px;
--tw-border-opacity: 1;
border-color: rgb(0 0 0 / var(--tw-border-opacity));
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
padding-left: 0.75rem;
padding-right: 0.75rem;
padding-top: 0.375rem;
padding-bottom: 0.375rem;
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.button-inverse:hover{
border-width: 1px;
--tw-border-opacity: 1;
border-color: rgb(0 0 0 / var(--tw-border-opacity));
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity));
}
.section-header{ .section-header{
margin-bottom: 2rem; margin-bottom: 2rem;
padding-top: 2.5rem; padding-top: 2.5rem;
@ -574,6 +608,20 @@ footer a:hover,
} }
} }
.section-subheader{
margin-bottom: 1rem;
font-size: 1.875rem;
line-height: 2.25rem;
font-weight: 700;
}
@media (min-width: 768px){
.section-subheader{
margin-bottom: 2rem;
}
}
.text-mild{ .text-mild{
color: rgb(255 255 255 / 0.7); color: rgb(255 255 255 / 0.7);
} }
@ -617,6 +665,11 @@ table.table-custom{
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
} }
.eligible .table-custom th{
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity));
}
.table-custom tbody tr:hover td, .table-custom tbody tr:hover td,
.table-custom tbody tr:hover td span{ .table-custom tbody tr:hover td span{
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
@ -668,6 +721,11 @@ table.table-custom{
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
} }
.eligible .text-mild{
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity));
}
.fixed{ .fixed{
position: fixed; position: fixed;
} }
@ -680,6 +738,10 @@ table.table-custom{
z-index: 40; z-index: 40;
} }
.m-auto{
margin: auto;
}
.mx-0{ .mx-0{
margin-left: 0px; margin-left: 0px;
margin-right: 0px; margin-right: 0px;
@ -733,10 +795,18 @@ table.table-custom{
margin-right: 0.25rem; margin-right: 0.25rem;
} }
.mr-6{
margin-right: 1.5rem;
}
.mt-10{ .mt-10{
margin-top: 2.5rem; margin-top: 2.5rem;
} }
.mt-16{
margin-top: 4rem;
}
.mt-2{ .mt-2{
margin-top: 0.5rem; margin-top: 0.5rem;
} }
@ -801,6 +871,10 @@ table.table-custom{
width: 66.666667%; width: 66.666667%;
} }
.w-28{
width: 7rem;
}
.w-32{ .w-32{
width: 8rem; width: 8rem;
} }
@ -865,6 +939,11 @@ table.table-custom{
border-width: 1px; border-width: 1px;
} }
.border-gray-600{
--tw-border-opacity: 1;
border-color: rgb(75 85 99 / var(--tw-border-opacity));
}
.bg-\[\#0d1117\]{ .bg-\[\#0d1117\]{
--tw-bg-opacity: 1; --tw-bg-opacity: 1;
background-color: rgb(13 17 23 / var(--tw-bg-opacity)); background-color: rgb(13 17 23 / var(--tw-bg-opacity));
@ -949,6 +1028,10 @@ table.table-custom{
padding-bottom: 8rem; padding-bottom: 8rem;
} }
.pb-8{
padding-bottom: 2rem;
}
.pt-0{ .pt-0{
padding-top: 0px; padding-top: 0px;
} }
@ -1024,6 +1107,11 @@ table.table-custom{
color: rgb(0 0 0 / var(--tw-text-opacity)); color: rgb(0 0 0 / var(--tw-text-opacity));
} }
.text-gray-600{
--tw-text-opacity: 1;
color: rgb(75 85 99 / var(--tw-text-opacity));
}
.text-white{ .text-white{
--tw-text-opacity: 1; --tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity)); color: rgb(255 255 255 / var(--tw-text-opacity));
@ -1124,6 +1212,10 @@ table.table-custom{
width: 66.666667%; width: 66.666667%;
} }
.md\:w-4\/5{
width: 80%;
}
.md\:grid-cols-2{ .md\:grid-cols-2{
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
} }
@ -1159,9 +1251,25 @@ table.table-custom{
margin-right: 2rem; margin-right: 2rem;
} }
.lg\:flex{
display: flex;
}
.lg\:w-2\/3{
width: 66.666667%;
}
.lg\:w-40{
width: 10rem;
}
.lg\:grid-cols-2{ .lg\:grid-cols-2{
grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-columns: repeat(2, minmax(0, 1fr));
} }
.lg\:text-left{
text-align: left;
}
} }
@media (min-width: 1280px){ @media (min-width: 1280px){
@ -1170,6 +1278,10 @@ table.table-custom{
margin-bottom: 0px; margin-bottom: 0px;
} }
.xl\:block{
display: block;
}
.xl\:inline-block{ .xl\:inline-block{
display: inline-block; display: inline-block;
} }
@ -1182,6 +1294,10 @@ table.table-custom{
width: 50%; width: 50%;
} }
.xl\:w-2\/3{
width: 66.666667%;
}
.xl\:w-36{ .xl\:w-36{
width: 9rem; width: 9rem;
} }

View file

@ -1,5 +1,5 @@
import { _ } from "./_layout-ec1eec0a.js"; import { _ } from "./_layout-dfbe38de.js";
import { default as default2 } from "../components/pages/_layout.svelte-095ba0b3.js"; import { default as default2 } from "../components/pages/_layout.svelte-5826ee12.js";
export { export {
default2 as component, default2 as component,
_ as universal _ as universal

View file

@ -1,4 +1,4 @@
import { default as default2 } from "../components/error.svelte-dfa3fa2b.js"; import { default as default2 } from "../components/error.svelte-0198a771.js";
export { export {
default2 as component default2 as component
}; };

View file

@ -1,4 +0,0 @@
import { default as default2 } from "../components/pages/_page.svelte-5005bd11.js";
export {
default2 as component
};

View file

@ -0,0 +1,4 @@
import { P } from "./_page-229a63fb.js";
export {
P as component
};

View file

@ -77,6 +77,9 @@ const data = {
ticketsNote: "Tickets will go on sale in late February 2023.", ticketsNote: "Tickets will go on sale in late February 2023.",
ticketing: false, ticketing: false,
ticketingUrl: "https://tickets.web3privacy.info/w3ps1/", ticketingUrl: "https://tickets.web3privacy.info/w3ps1/",
ticketBasePrice: 99,
ticketsDiscountForm: "https://attend.web3privacy.info",
ticketsDiscounts: "We also offer discounts for other groups such as active open-source contributors to privacy protocols, privacy (lunarpunk) advocates, full-time students, attendees from OECD low income countries, independent developers, etc. Feel free to request your special discount using the form:\n",
tickets: [ tickets: [
{ {
title: "All-day Access", title: "All-day Access",
@ -88,7 +91,7 @@ const data = {
"Networking drinks with speakers & attendees", "Networking drinks with speakers & attendees",
"#Lunarpunk party" "#Lunarpunk party"
], ],
hint: "[Apply for a discount →](https://attend.web3privacy.info)<br />(as independent developer, student, privacy advocate, open-source contributor..)\n" hint: "Discounts: We offer various discounts up to 100%, see below\n"
}, },
{ {
title: "#Lunarpunk Party", title: "#Lunarpunk Party",
@ -301,11 +304,15 @@ const data = {
title: "Workshops IV." title: "Workshops IV."
} }
] ]
} },
badgesApiUrl: "https://badges-pretix-voucher-api.web3privacy.info"
}; };
async function load({ params, url, fetch }) { async function load({ params, url, fetch }) {
const resp = await fetch(data.badgesApiUrl + "/badges");
const badges = await resp.json();
return { return {
config: data config: data,
badges
}; };
} }
const _layout = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ const _layout = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,107 @@
var dijkstraExports = {};
var dijkstra = {
get exports() {
return dijkstraExports;
},
set exports(v) {
dijkstraExports = v;
}
};
(function(module) {
var dijkstra2 = {
single_source_shortest_paths: function(graph, s, d) {
var predecessors = {};
var costs = {};
costs[s] = 0;
var open = dijkstra2.PriorityQueue.make();
open.push(s, 0);
var closest, u, v, cost_of_s_to_u, adjacent_nodes, cost_of_e, cost_of_s_to_u_plus_cost_of_e, cost_of_s_to_v, first_visit;
while (!open.empty()) {
closest = open.pop();
u = closest.value;
cost_of_s_to_u = closest.cost;
adjacent_nodes = graph[u] || {};
for (v in adjacent_nodes) {
if (adjacent_nodes.hasOwnProperty(v)) {
cost_of_e = adjacent_nodes[v];
cost_of_s_to_u_plus_cost_of_e = cost_of_s_to_u + cost_of_e;
cost_of_s_to_v = costs[v];
first_visit = typeof costs[v] === "undefined";
if (first_visit || cost_of_s_to_v > cost_of_s_to_u_plus_cost_of_e) {
costs[v] = cost_of_s_to_u_plus_cost_of_e;
open.push(v, cost_of_s_to_u_plus_cost_of_e);
predecessors[v] = u;
}
}
}
}
if (typeof d !== "undefined" && typeof costs[d] === "undefined") {
var msg = ["Could not find a path from ", s, " to ", d, "."].join("");
throw new Error(msg);
}
return predecessors;
},
extract_shortest_path_from_predecessor_list: function(predecessors, d) {
var nodes = [];
var u = d;
while (u) {
nodes.push(u);
predecessors[u];
u = predecessors[u];
}
nodes.reverse();
return nodes;
},
find_path: function(graph, s, d) {
var predecessors = dijkstra2.single_source_shortest_paths(graph, s, d);
return dijkstra2.extract_shortest_path_from_predecessor_list(
predecessors,
d
);
},
/**
* A very naive priority queue implementation.
*/
PriorityQueue: {
make: function(opts) {
var T = dijkstra2.PriorityQueue, t = {}, key;
opts = opts || {};
for (key in T) {
if (T.hasOwnProperty(key)) {
t[key] = T[key];
}
}
t.queue = [];
t.sorter = opts.sorter || T.default_sorter;
return t;
},
default_sorter: function(a, b) {
return a.cost - b.cost;
},
/**
* Add a new item to the queue and ensure the highest priority element
* is at the front of the queue.
*/
push: function(value, cost) {
var item = { value, cost };
this.queue.push(item);
this.queue.sort(this.sorter);
},
/**
* Return the highest priority element in the queue.
*/
pop: function() {
return this.queue.shift();
},
empty: function() {
return this.queue.length === 0;
}
}
};
{
module.exports = dijkstra2;
}
})(dijkstra);
export {
dijkstraExports as d
};

View file

@ -1,4 +1,4 @@
import { o as onMount, S as SvelteComponent, i as init, s as safe_not_equal, e as empty, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, O as compute_rest_props, P as assign, Q as exclude_internal_props, M as destroy_each, x as create_component, y as claim_component, z as mount_component, R as get_spread_update, T as get_spread_object, A as destroy_component, w as construct_svelte_component, a as space, c as claim_space, q as text, r as claim_text, u as set_data, C as noop, U as getContext, D as create_slot, k as element, l as claim_element, m as children, n as attr, J as update_slot_base, K as get_all_dirty_from_scope, L as get_slot_changes, G as src_url_equal, H as append_hydration, V as HtmlTagHydration, W as claim_html_tag, X as createEventDispatcher, Y as setContext } from "./index-a23f1e07.js"; import { o as onMount, S as SvelteComponent, i as init, s as safe_not_equal, e as empty, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, O as compute_rest_props, P as assign, Q as exclude_internal_props, M as destroy_each, x as create_component, y as claim_component, z as mount_component, R as get_spread_update, T as get_spread_object, A as destroy_component, w as construct_svelte_component, a as space, c as claim_space, q as text, r as claim_text, u as set_data, C as noop, U as getContext, D as create_slot, k as element, l as claim_element, m as children, n as attr, J as update_slot_base, K as get_all_dirty_from_scope, L as get_slot_changes, G as src_url_equal, H as append_hydration, V as HtmlTagHydration, W as claim_html_tag, X as createEventDispatcher, Y as setContext } from "./index-88d77172.js";
function supressWarnings() { function supressWarnings() {
const origWarn = console.warn; const origWarn = console.warn;
console.warn = (message) => { console.warn = (message) => {

View file

@ -0,0 +1,25 @@
import { _ as __vitePreload } from "./preload-helper-f8376bb0.js";
import { k, W, a as a$1 } from "./_page-229a63fb.js";
var s = Object.defineProperty, a = Object.getOwnPropertySymbols, c = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable, i = (o, e, t) => e in o ? s(o, e, { enumerable: true, configurable: true, writable: true, value: t }) : o[e] = t, b = (o, e) => {
for (var t in e || (e = {}))
c.call(e, t) && i(o, t, e[t]);
if (a)
for (var t of a(e))
d.call(e, t) && i(o, t, e[t]);
return o;
};
class f {
constructor(e) {
this.openModal = k.open, this.closeModal = k.close, this.subscribeModal = k.subscribe, this.setTheme = W.setThemeConfig, W.setConfig(b({ enableStandaloneMode: true }, e)), this.initUi();
}
async initUi() {
if (typeof window < "u") {
await __vitePreload(() => import("./index-ca3f364f.js"), true ? ["./index-ca3f364f.js","./_page-229a63fb.js","./index-88d77172.js","./helpers-c3e656fe.js","./singletons-0b808b86.js","./preload-helper-f8376bb0.js","./dijkstra-cb1f074b.js"] : void 0, import.meta.url);
const e = document.createElement("w3m-modal");
document.body.insertAdjacentElement("beforeend", e), a$1.setIsUiLoaded(true);
}
}
}
export {
f as Web3Modal
};

View file

@ -749,6 +749,7 @@ class SvelteComponent {
} }
} }
export { export {
head_selector as $,
destroy_component as A, destroy_component as A,
tick as B, tick as B,
noop as C, noop as C,
@ -775,7 +776,7 @@ export {
createEventDispatcher as X, createEventDispatcher as X,
setContext as Y, setContext as Y,
component_subscribe as Z, component_subscribe as Z,
head_selector as _, is_function as _,
space as a, space as a,
insert_hydration as b, insert_hydration as b,
claim_space as c, claim_space as c,

View file

@ -0,0 +1,993 @@
import { t as tslibExports, e as eventsExports } from "./tslib-90322880.js";
import { e as commonjsGlobal, j as getDefaultExportFromCjs } from "./_page-229a63fb.js";
const PARSE_ERROR = "PARSE_ERROR";
const INVALID_REQUEST = "INVALID_REQUEST";
const METHOD_NOT_FOUND = "METHOD_NOT_FOUND";
const INVALID_PARAMS = "INVALID_PARAMS";
const INTERNAL_ERROR = "INTERNAL_ERROR";
const SERVER_ERROR = "SERVER_ERROR";
const RESERVED_ERROR_CODES = [-32700, -32600, -32601, -32602, -32603];
const STANDARD_ERROR_MAP = {
[PARSE_ERROR]: { code: -32700, message: "Parse error" },
[INVALID_REQUEST]: { code: -32600, message: "Invalid Request" },
[METHOD_NOT_FOUND]: { code: -32601, message: "Method not found" },
[INVALID_PARAMS]: { code: -32602, message: "Invalid params" },
[INTERNAL_ERROR]: { code: -32603, message: "Internal error" },
[SERVER_ERROR]: { code: -32e3, message: "Server error" }
};
const DEFAULT_ERROR = SERVER_ERROR;
function isReservedErrorCode(code) {
return RESERVED_ERROR_CODES.includes(code);
}
function getError(type) {
if (!Object.keys(STANDARD_ERROR_MAP).includes(type)) {
return STANDARD_ERROR_MAP[DEFAULT_ERROR];
}
return STANDARD_ERROR_MAP[type];
}
function getErrorByCode(code) {
const match = Object.values(STANDARD_ERROR_MAP).find((e) => e.code === code);
if (!match) {
return STANDARD_ERROR_MAP[DEFAULT_ERROR];
}
return match;
}
function parseConnectionError(e, url, type) {
return e.message.includes("getaddrinfo ENOTFOUND") || e.message.includes("connect ECONNREFUSED") ? new Error(`Unavailable ${type} RPC url at ${url}`) : e;
}
var cjs = {};
var crypto = {};
var hasRequiredCrypto;
function requireCrypto() {
if (hasRequiredCrypto)
return crypto;
hasRequiredCrypto = 1;
Object.defineProperty(crypto, "__esModule", { value: true });
crypto.isBrowserCryptoAvailable = crypto.getSubtleCrypto = crypto.getBrowerCrypto = void 0;
function getBrowerCrypto() {
return (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.crypto) || (commonjsGlobal === null || commonjsGlobal === void 0 ? void 0 : commonjsGlobal.msCrypto) || {};
}
crypto.getBrowerCrypto = getBrowerCrypto;
function getSubtleCrypto() {
const browserCrypto = getBrowerCrypto();
return browserCrypto.subtle || browserCrypto.webkitSubtle;
}
crypto.getSubtleCrypto = getSubtleCrypto;
function isBrowserCryptoAvailable() {
return !!getBrowerCrypto() && !!getSubtleCrypto();
}
crypto.isBrowserCryptoAvailable = isBrowserCryptoAvailable;
return crypto;
}
var env = {};
var hasRequiredEnv;
function requireEnv() {
if (hasRequiredEnv)
return env;
hasRequiredEnv = 1;
Object.defineProperty(env, "__esModule", { value: true });
env.isBrowser = env.isNode = env.isReactNative = void 0;
function isReactNative() {
return typeof document === "undefined" && typeof navigator !== "undefined" && navigator.product === "ReactNative";
}
env.isReactNative = isReactNative;
function isNode() {
return typeof process !== "undefined" && typeof process.versions !== "undefined" && typeof process.versions.node !== "undefined";
}
env.isNode = isNode;
function isBrowser() {
return !isReactNative() && !isNode();
}
env.isBrowser = isBrowser;
return env;
}
(function(exports) {
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = tslibExports;
tslib_1.__exportStar(requireCrypto(), exports);
tslib_1.__exportStar(requireEnv(), exports);
})(cjs);
function payloadId() {
const date = Date.now() * Math.pow(10, 3);
const extra = Math.floor(Math.random() * Math.pow(10, 3));
return date + extra;
}
function formatJsonRpcRequest(method, params, id) {
return {
id: id || payloadId(),
jsonrpc: "2.0",
method,
params
};
}
function formatJsonRpcResult(id, result) {
return {
id,
jsonrpc: "2.0",
result
};
}
function formatJsonRpcError(id, error, data) {
return {
id,
jsonrpc: "2.0",
error: formatErrorMessage(error, data)
};
}
function formatErrorMessage(error, data) {
if (typeof error === "undefined") {
return getError(INTERNAL_ERROR);
}
if (typeof error === "string") {
error = Object.assign(Object.assign({}, getError(SERVER_ERROR)), { message: error });
}
if (typeof data !== "undefined") {
error.data = data;
}
if (isReservedErrorCode(error.code)) {
error = getErrorByCode(error.code);
}
return error;
}
class IEvents {
}
class IJsonRpcConnection extends IEvents {
constructor(opts) {
super();
}
}
class IBaseJsonRpcProvider extends IEvents {
constructor() {
super();
}
}
class IJsonRpcProvider extends IBaseJsonRpcProvider {
constructor(connection) {
super();
}
}
const HTTP_REGEX = "^https?:";
const WS_REGEX = "^wss?:";
function getUrlProtocol(url) {
const matches = url.match(new RegExp(/^\w+:/, "gi"));
if (!matches || !matches.length)
return;
return matches[0];
}
function matchRegexProtocol(url, regex) {
const protocol = getUrlProtocol(url);
if (typeof protocol === "undefined")
return false;
return new RegExp(regex).test(protocol);
}
function isHttpUrl(url) {
return matchRegexProtocol(url, HTTP_REGEX);
}
function isWsUrl(url) {
return matchRegexProtocol(url, WS_REGEX);
}
function isLocalhostUrl(url) {
return new RegExp("wss?://localhost(:d{2,5})?").test(url);
}
function isJsonRpcPayload(payload) {
return typeof payload === "object" && "id" in payload && "jsonrpc" in payload && payload.jsonrpc === "2.0";
}
function isJsonRpcRequest(payload) {
return isJsonRpcPayload(payload) && "method" in payload;
}
function isJsonRpcResponse(payload) {
return isJsonRpcPayload(payload) && (isJsonRpcResult(payload) || isJsonRpcError(payload));
}
function isJsonRpcResult(payload) {
return "result" in payload;
}
function isJsonRpcError(payload) {
return "error" in payload;
}
class JsonRpcProvider extends IJsonRpcProvider {
constructor(connection) {
super(connection);
this.events = new eventsExports.EventEmitter();
this.hasRegisteredEventListeners = false;
this.connection = this.setConnection(connection);
if (this.connection.connected) {
this.registerEventListeners();
}
}
async connect(connection = this.connection) {
await this.open(connection);
}
async disconnect() {
await this.close();
}
on(event, listener) {
this.events.on(event, listener);
}
once(event, listener) {
this.events.once(event, listener);
}
off(event, listener) {
this.events.off(event, listener);
}
removeListener(event, listener) {
this.events.removeListener(event, listener);
}
async request(request, context) {
return this.requestStrict(formatJsonRpcRequest(request.method, request.params || []), context);
}
async requestStrict(request, context) {
return new Promise(async (resolve, reject) => {
if (!this.connection.connected) {
try {
await this.open();
} catch (e) {
reject(e);
}
}
this.events.on(`${request.id}`, (response) => {
if (isJsonRpcError(response)) {
reject(response.error);
} else {
resolve(response.result);
}
});
try {
await this.connection.send(request, context);
} catch (e) {
reject(e);
}
});
}
setConnection(connection = this.connection) {
return connection;
}
onPayload(payload) {
this.events.emit("payload", payload);
if (isJsonRpcResponse(payload)) {
this.events.emit(`${payload.id}`, payload);
} else {
this.events.emit("message", {
type: payload.method,
data: payload.params
});
}
}
async open(connection = this.connection) {
if (this.connection === connection && this.connection.connected)
return;
if (this.connection.connected)
this.close();
if (typeof connection === "string") {
await this.connection.open(connection);
connection = this.connection;
}
this.connection = this.setConnection(connection);
await this.connection.open();
this.registerEventListeners();
this.events.emit("connect");
}
async close() {
await this.connection.close();
}
registerEventListeners() {
if (this.hasRegisteredEventListeners)
return;
this.connection.on("payload", (payload) => this.onPayload(payload));
this.connection.on("close", () => this.events.emit("disconnect"));
this.connection.on("error", (error) => this.events.emit("error", error));
this.hasRegisteredEventListeners = true;
}
}
var browserPonyfillExports = {};
var browserPonyfill = {
get exports() {
return browserPonyfillExports;
},
set exports(v) {
browserPonyfillExports = v;
}
};
(function(module, exports) {
var global = typeof self !== "undefined" ? self : commonjsGlobal;
var __self__ = function() {
function F() {
this.fetch = false;
this.DOMException = global.DOMException;
}
F.prototype = global;
return new F();
}();
(function(self2) {
(function(exports2) {
var support = {
searchParams: "URLSearchParams" in self2,
iterable: "Symbol" in self2 && "iterator" in Symbol,
blob: "FileReader" in self2 && "Blob" in self2 && function() {
try {
new Blob();
return true;
} catch (e) {
return false;
}
}(),
formData: "FormData" in self2,
arrayBuffer: "ArrayBuffer" in self2
};
function isDataView(obj) {
return obj && DataView.prototype.isPrototypeOf(obj);
}
if (support.arrayBuffer) {
var viewClasses = [
"[object Int8Array]",
"[object Uint8Array]",
"[object Uint8ClampedArray]",
"[object Int16Array]",
"[object Uint16Array]",
"[object Int32Array]",
"[object Uint32Array]",
"[object Float32Array]",
"[object Float64Array]"
];
var isArrayBufferView = ArrayBuffer.isView || function(obj) {
return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1;
};
}
function normalizeName(name) {
if (typeof name !== "string") {
name = String(name);
}
if (/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(name)) {
throw new TypeError("Invalid character in header field name");
}
return name.toLowerCase();
}
function normalizeValue(value) {
if (typeof value !== "string") {
value = String(value);
}
return value;
}
function iteratorFor(items) {
var iterator = {
next: function() {
var value = items.shift();
return { done: value === void 0, value };
}
};
if (support.iterable) {
iterator[Symbol.iterator] = function() {
return iterator;
};
}
return iterator;
}
function Headers(headers) {
this.map = {};
if (headers instanceof Headers) {
headers.forEach(function(value, name) {
this.append(name, value);
}, this);
} else if (Array.isArray(headers)) {
headers.forEach(function(header) {
this.append(header[0], header[1]);
}, this);
} else if (headers) {
Object.getOwnPropertyNames(headers).forEach(function(name) {
this.append(name, headers[name]);
}, this);
}
}
Headers.prototype.append = function(name, value) {
name = normalizeName(name);
value = normalizeValue(value);
var oldValue = this.map[name];
this.map[name] = oldValue ? oldValue + ", " + value : value;
};
Headers.prototype["delete"] = function(name) {
delete this.map[normalizeName(name)];
};
Headers.prototype.get = function(name) {
name = normalizeName(name);
return this.has(name) ? this.map[name] : null;
};
Headers.prototype.has = function(name) {
return this.map.hasOwnProperty(normalizeName(name));
};
Headers.prototype.set = function(name, value) {
this.map[normalizeName(name)] = normalizeValue(value);
};
Headers.prototype.forEach = function(callback, thisArg) {
for (var name in this.map) {
if (this.map.hasOwnProperty(name)) {
callback.call(thisArg, this.map[name], name, this);
}
}
};
Headers.prototype.keys = function() {
var items = [];
this.forEach(function(value, name) {
items.push(name);
});
return iteratorFor(items);
};
Headers.prototype.values = function() {
var items = [];
this.forEach(function(value) {
items.push(value);
});
return iteratorFor(items);
};
Headers.prototype.entries = function() {
var items = [];
this.forEach(function(value, name) {
items.push([name, value]);
});
return iteratorFor(items);
};
if (support.iterable) {
Headers.prototype[Symbol.iterator] = Headers.prototype.entries;
}
function consumed(body) {
if (body.bodyUsed) {
return Promise.reject(new TypeError("Already read"));
}
body.bodyUsed = true;
}
function fileReaderReady(reader) {
return new Promise(function(resolve, reject) {
reader.onload = function() {
resolve(reader.result);
};
reader.onerror = function() {
reject(reader.error);
};
});
}
function readBlobAsArrayBuffer(blob) {
var reader = new FileReader();
var promise = fileReaderReady(reader);
reader.readAsArrayBuffer(blob);
return promise;
}
function readBlobAsText(blob) {
var reader = new FileReader();
var promise = fileReaderReady(reader);
reader.readAsText(blob);
return promise;
}
function readArrayBufferAsText(buf) {
var view = new Uint8Array(buf);
var chars = new Array(view.length);
for (var i = 0; i < view.length; i++) {
chars[i] = String.fromCharCode(view[i]);
}
return chars.join("");
}
function bufferClone(buf) {
if (buf.slice) {
return buf.slice(0);
} else {
var view = new Uint8Array(buf.byteLength);
view.set(new Uint8Array(buf));
return view.buffer;
}
}
function Body() {
this.bodyUsed = false;
this._initBody = function(body) {
this._bodyInit = body;
if (!body) {
this._bodyText = "";
} else if (typeof body === "string") {
this._bodyText = body;
} else if (support.blob && Blob.prototype.isPrototypeOf(body)) {
this._bodyBlob = body;
} else if (support.formData && FormData.prototype.isPrototypeOf(body)) {
this._bodyFormData = body;
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
this._bodyText = body.toString();
} else if (support.arrayBuffer && support.blob && isDataView(body)) {
this._bodyArrayBuffer = bufferClone(body.buffer);
this._bodyInit = new Blob([this._bodyArrayBuffer]);
} else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {
this._bodyArrayBuffer = bufferClone(body);
} else {
this._bodyText = body = Object.prototype.toString.call(body);
}
if (!this.headers.get("content-type")) {
if (typeof body === "string") {
this.headers.set("content-type", "text/plain;charset=UTF-8");
} else if (this._bodyBlob && this._bodyBlob.type) {
this.headers.set("content-type", this._bodyBlob.type);
} else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {
this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8");
}
}
};
if (support.blob) {
this.blob = function() {
var rejected = consumed(this);
if (rejected) {
return rejected;
}
if (this._bodyBlob) {
return Promise.resolve(this._bodyBlob);
} else if (this._bodyArrayBuffer) {
return Promise.resolve(new Blob([this._bodyArrayBuffer]));
} else if (this._bodyFormData) {
throw new Error("could not read FormData body as blob");
} else {
return Promise.resolve(new Blob([this._bodyText]));
}
};
this.arrayBuffer = function() {
if (this._bodyArrayBuffer) {
return consumed(this) || Promise.resolve(this._bodyArrayBuffer);
} else {
return this.blob().then(readBlobAsArrayBuffer);
}
};
}
this.text = function() {
var rejected = consumed(this);
if (rejected) {
return rejected;
}
if (this._bodyBlob) {
return readBlobAsText(this._bodyBlob);
} else if (this._bodyArrayBuffer) {
return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer));
} else if (this._bodyFormData) {
throw new Error("could not read FormData body as text");
} else {
return Promise.resolve(this._bodyText);
}
};
if (support.formData) {
this.formData = function() {
return this.text().then(decode2);
};
}
this.json = function() {
return this.text().then(JSON.parse);
};
return this;
}
var methods = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"];
function normalizeMethod(method) {
var upcased = method.toUpperCase();
return methods.indexOf(upcased) > -1 ? upcased : method;
}
function Request(input, options) {
options = options || {};
var body = options.body;
if (input instanceof Request) {
if (input.bodyUsed) {
throw new TypeError("Already read");
}
this.url = input.url;
this.credentials = input.credentials;
if (!options.headers) {
this.headers = new Headers(input.headers);
}
this.method = input.method;
this.mode = input.mode;
this.signal = input.signal;
if (!body && input._bodyInit != null) {
body = input._bodyInit;
input.bodyUsed = true;
}
} else {
this.url = String(input);
}
this.credentials = options.credentials || this.credentials || "same-origin";
if (options.headers || !this.headers) {
this.headers = new Headers(options.headers);
}
this.method = normalizeMethod(options.method || this.method || "GET");
this.mode = options.mode || this.mode || null;
this.signal = options.signal || this.signal;
this.referrer = null;
if ((this.method === "GET" || this.method === "HEAD") && body) {
throw new TypeError("Body not allowed for GET or HEAD requests");
}
this._initBody(body);
}
Request.prototype.clone = function() {
return new Request(this, { body: this._bodyInit });
};
function decode2(body) {
var form = new FormData();
body.trim().split("&").forEach(function(bytes) {
if (bytes) {
var split = bytes.split("=");
var name = split.shift().replace(/\+/g, " ");
var value = split.join("=").replace(/\+/g, " ");
form.append(decodeURIComponent(name), decodeURIComponent(value));
}
});
return form;
}
function parseHeaders(rawHeaders) {
var headers = new Headers();
var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, " ");
preProcessedHeaders.split(/\r?\n/).forEach(function(line) {
var parts = line.split(":");
var key = parts.shift().trim();
if (key) {
var value = parts.join(":").trim();
headers.append(key, value);
}
});
return headers;
}
Body.call(Request.prototype);
function Response(bodyInit, options) {
if (!options) {
options = {};
}
this.type = "default";
this.status = options.status === void 0 ? 200 : options.status;
this.ok = this.status >= 200 && this.status < 300;
this.statusText = "statusText" in options ? options.statusText : "OK";
this.headers = new Headers(options.headers);
this.url = options.url || "";
this._initBody(bodyInit);
}
Body.call(Response.prototype);
Response.prototype.clone = function() {
return new Response(this._bodyInit, {
status: this.status,
statusText: this.statusText,
headers: new Headers(this.headers),
url: this.url
});
};
Response.error = function() {
var response = new Response(null, { status: 0, statusText: "" });
response.type = "error";
return response;
};
var redirectStatuses = [301, 302, 303, 307, 308];
Response.redirect = function(url, status) {
if (redirectStatuses.indexOf(status) === -1) {
throw new RangeError("Invalid status code");
}
return new Response(null, { status, headers: { location: url } });
};
exports2.DOMException = self2.DOMException;
try {
new exports2.DOMException();
} catch (err) {
exports2.DOMException = function(message, name) {
this.message = message;
this.name = name;
var error = Error(message);
this.stack = error.stack;
};
exports2.DOMException.prototype = Object.create(Error.prototype);
exports2.DOMException.prototype.constructor = exports2.DOMException;
}
function fetch2(input, init) {
return new Promise(function(resolve, reject) {
var request = new Request(input, init);
if (request.signal && request.signal.aborted) {
return reject(new exports2.DOMException("Aborted", "AbortError"));
}
var xhr = new XMLHttpRequest();
function abortXhr() {
xhr.abort();
}
xhr.onload = function() {
var options = {
status: xhr.status,
statusText: xhr.statusText,
headers: parseHeaders(xhr.getAllResponseHeaders() || "")
};
options.url = "responseURL" in xhr ? xhr.responseURL : options.headers.get("X-Request-URL");
var body = "response" in xhr ? xhr.response : xhr.responseText;
resolve(new Response(body, options));
};
xhr.onerror = function() {
reject(new TypeError("Network request failed"));
};
xhr.ontimeout = function() {
reject(new TypeError("Network request failed"));
};
xhr.onabort = function() {
reject(new exports2.DOMException("Aborted", "AbortError"));
};
xhr.open(request.method, request.url, true);
if (request.credentials === "include") {
xhr.withCredentials = true;
} else if (request.credentials === "omit") {
xhr.withCredentials = false;
}
if ("responseType" in xhr && support.blob) {
xhr.responseType = "blob";
}
request.headers.forEach(function(value, name) {
xhr.setRequestHeader(name, value);
});
if (request.signal) {
request.signal.addEventListener("abort", abortXhr);
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
request.signal.removeEventListener("abort", abortXhr);
}
};
}
xhr.send(typeof request._bodyInit === "undefined" ? null : request._bodyInit);
});
}
fetch2.polyfill = true;
if (!self2.fetch) {
self2.fetch = fetch2;
self2.Headers = Headers;
self2.Request = Request;
self2.Response = Response;
}
exports2.Headers = Headers;
exports2.Request = Request;
exports2.Response = Response;
exports2.fetch = fetch2;
Object.defineProperty(exports2, "__esModule", { value: true });
return exports2;
})({});
})(__self__);
__self__.fetch.ponyfill = true;
delete __self__.fetch.polyfill;
var ctx = __self__;
exports = ctx.fetch;
exports.default = ctx.fetch;
exports.fetch = ctx.fetch;
exports.Headers = ctx.Headers;
exports.Request = ctx.Request;
exports.Response = ctx.Response;
module.exports = exports;
})(browserPonyfill, browserPonyfillExports);
const fetch = /* @__PURE__ */ getDefaultExportFromCjs(browserPonyfillExports);
function safeJsonParse(value) {
if (typeof value !== "string") {
throw new Error(`Cannot safe json parse value of type ${typeof value}`);
}
try {
return JSON.parse(value);
} catch (_a) {
return value;
}
}
function safeJsonStringify(value) {
return typeof value === "string" ? value : JSON.stringify(value);
}
const DEFAULT_HTTP_HEADERS = {
Accept: "application/json",
"Content-Type": "application/json"
};
const DEFAULT_HTTP_METHOD = "POST";
const DEFAULT_FETCH_OPTS = {
headers: DEFAULT_HTTP_HEADERS,
method: DEFAULT_HTTP_METHOD
};
const EVENT_EMITTER_MAX_LISTENERS_DEFAULT = 10;
class HttpConnection {
constructor(url) {
this.url = url;
this.events = new eventsExports.EventEmitter();
this.isAvailable = false;
this.registering = false;
if (!isHttpUrl(url)) {
throw new Error(`Provided URL is not compatible with HTTP connection: ${url}`);
}
this.url = url;
}
get connected() {
return this.isAvailable;
}
get connecting() {
return this.registering;
}
on(event, listener) {
this.events.on(event, listener);
}
once(event, listener) {
this.events.once(event, listener);
}
off(event, listener) {
this.events.off(event, listener);
}
removeListener(event, listener) {
this.events.removeListener(event, listener);
}
async open(url = this.url) {
await this.register(url);
}
async close() {
if (!this.isAvailable) {
throw new Error("Connection already closed");
}
this.onClose();
}
async send(payload, context) {
if (!this.isAvailable) {
await this.register();
}
try {
const body = safeJsonStringify(payload);
const res = await fetch(this.url, Object.assign(Object.assign({}, DEFAULT_FETCH_OPTS), { body }));
const data = await res.json();
this.onPayload({ data });
} catch (e) {
this.onError(payload.id, e);
}
}
async register(url = this.url) {
if (!isHttpUrl(url)) {
throw new Error(`Provided URL is not compatible with HTTP connection: ${url}`);
}
if (this.registering) {
const currentMaxListeners = this.events.getMaxListeners();
if (this.events.listenerCount("register_error") >= currentMaxListeners || this.events.listenerCount("open") >= currentMaxListeners) {
this.events.setMaxListeners(currentMaxListeners + 1);
}
return new Promise((resolve, reject) => {
this.events.once("register_error", (error) => {
this.resetMaxListeners();
reject(error);
});
this.events.once("open", () => {
this.resetMaxListeners();
if (typeof this.isAvailable === "undefined") {
return reject(new Error("HTTP connection is missing or invalid"));
}
resolve();
});
});
}
this.url = url;
this.registering = true;
try {
const body = safeJsonStringify({ id: 1, jsonrpc: "2.0", method: "test", params: [] });
await fetch(url, Object.assign(Object.assign({}, DEFAULT_FETCH_OPTS), { body }));
this.onOpen();
} catch (e) {
const error = this.parseError(e);
this.events.emit("register_error", error);
this.onClose();
throw error;
}
}
onOpen() {
this.isAvailable = true;
this.registering = false;
this.events.emit("open");
}
onClose() {
this.isAvailable = false;
this.registering = false;
this.events.emit("close");
}
onPayload(e) {
if (typeof e.data === "undefined")
return;
const payload = typeof e.data === "string" ? safeJsonParse(e.data) : e.data;
this.events.emit("payload", payload);
}
onError(id, e) {
const error = this.parseError(e);
const message = error.message || error.toString();
const payload = formatJsonRpcError(id, message);
this.events.emit("payload", payload);
}
parseError(e, url = this.url) {
return parseConnectionError(e, url, "HTTP");
}
resetMaxListeners() {
if (this.events.getMaxListeners() > EVENT_EMITTER_MAX_LISTENERS_DEFAULT) {
this.events.setMaxListeners(EVENT_EMITTER_MAX_LISTENERS_DEFAULT);
}
}
}
var strictUriEncode = (str) => encodeURIComponent(str).replace(/[!'()*]/g, (x) => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);
var token = "%[a-f0-9]{2}";
var singleMatcher = new RegExp("(" + token + ")|([^%]+?)", "gi");
var multiMatcher = new RegExp("(" + token + ")+", "gi");
function decodeComponents(components, split) {
try {
return [decodeURIComponent(components.join(""))];
} catch (err) {
}
if (components.length === 1) {
return components;
}
split = split || 1;
var left = components.slice(0, split);
var right = components.slice(split);
return Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));
}
function decode(input) {
try {
return decodeURIComponent(input);
} catch (err) {
var tokens = input.match(singleMatcher) || [];
for (var i = 1; i < tokens.length; i++) {
input = decodeComponents(tokens, i).join("");
tokens = input.match(singleMatcher) || [];
}
return input;
}
}
function customDecodeURIComponent(input) {
var replaceMap = {
"%FE%FF": "<22><>",
"%FF%FE": "<22><>"
};
var match = multiMatcher.exec(input);
while (match) {
try {
replaceMap[match[0]] = decodeURIComponent(match[0]);
} catch (err) {
var result = decode(match[0]);
if (result !== match[0]) {
replaceMap[match[0]] = result;
}
}
match = multiMatcher.exec(input);
}
replaceMap["%C2"] = "<22>";
var entries = Object.keys(replaceMap);
for (var i = 0; i < entries.length; i++) {
var key = entries[i];
input = input.replace(new RegExp(key, "g"), replaceMap[key]);
}
return input;
}
var decodeUriComponent = function(encodedURI) {
if (typeof encodedURI !== "string") {
throw new TypeError("Expected `encodedURI` to be of type `string`, got `" + typeof encodedURI + "`");
}
try {
encodedURI = encodedURI.replace(/\+/g, " ");
return decodeURIComponent(encodedURI);
} catch (err) {
return customDecodeURIComponent(encodedURI);
}
};
var splitOnFirst = (string, separator) => {
if (!(typeof string === "string" && typeof separator === "string")) {
throw new TypeError("Expected the arguments to be of type `string`");
}
if (separator === "") {
return [string];
}
const separatorIndex = string.indexOf(separator);
if (separatorIndex === -1) {
return [string];
}
return [
string.slice(0, separatorIndex),
string.slice(separatorIndex + separator.length)
];
};
export {
HttpConnection as H,
IJsonRpcConnection as I,
JsonRpcProvider as J,
strictUriEncode as a,
safeJsonStringify as b,
cjs as c,
decodeUriComponent as d,
isLocalhostUrl as e,
formatJsonRpcError as f,
safeJsonParse as g,
parseConnectionError as h,
isWsUrl as i,
isJsonRpcRequest as j,
formatJsonRpcResult as k,
isJsonRpcResult as l,
isJsonRpcError as m,
isJsonRpcResponse as n,
formatJsonRpcRequest as o,
payloadId as p,
splitOnFirst as s
};

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,47 @@
const scriptRel = "modulepreload";
const assetsURL = function(dep, importerUrl) {
return new URL(dep, importerUrl).href;
};
const seen = {};
const __vitePreload = function preload(baseModule, deps, importerUrl) {
if (!deps || deps.length === 0) {
return baseModule();
}
const links = document.getElementsByTagName("link");
return Promise.all(deps.map((dep) => {
dep = assetsURL(dep, importerUrl);
if (dep in seen)
return;
seen[dep] = true;
const isCss = dep.endsWith(".css");
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
const isBaseRelative = !!importerUrl;
if (isBaseRelative) {
for (let i = links.length - 1; i >= 0; i--) {
const link2 = links[i];
if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
return;
}
}
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
return;
}
const link = document.createElement("link");
link.rel = isCss ? "stylesheet" : scriptRel;
if (!isCss) {
link.as = "script";
link.crossOrigin = "";
}
link.href = dep;
document.head.appendChild(link);
if (isCss) {
return new Promise((res, rej) => {
link.addEventListener("load", res);
link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
});
}
})).then(() => baseModule());
};
export {
__vitePreload as _
};

View file

@ -1,4 +1,4 @@
import { C as noop, s as safe_not_equal } from "./index-a23f1e07.js"; import { C as noop, s as safe_not_equal } from "./index-88d77172.js";
const subscriber_queue = []; const subscriber_queue = [];
function writable(value, start = noop) { function writable(value, start = noop) {
let stop; let stop;
@ -225,5 +225,6 @@ export {
set_assets as j, set_assets as j,
set_version as k, set_version as k,
client as l, client as l,
stores as s stores as s,
writable as w
}; };

View file

@ -0,0 +1,791 @@
import { e as commonjsGlobal } from "./_page-229a63fb.js";
var eventsExports = {};
var events = {
get exports() {
return eventsExports;
},
set exports(v) {
eventsExports = v;
}
};
var R = typeof Reflect === "object" ? Reflect : null;
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
return Function.prototype.apply.call(target, receiver, args);
};
var ReflectOwnKeys;
if (R && typeof R.ownKeys === "function") {
ReflectOwnKeys = R.ownKeys;
} else if (Object.getOwnPropertySymbols) {
ReflectOwnKeys = function ReflectOwnKeys2(target) {
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
};
} else {
ReflectOwnKeys = function ReflectOwnKeys2(target) {
return Object.getOwnPropertyNames(target);
};
}
function ProcessEmitWarning(warning) {
if (console && console.warn)
console.warn(warning);
}
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
return value !== value;
};
function EventEmitter() {
EventEmitter.init.call(this);
}
events.exports = EventEmitter;
eventsExports.once = once2;
EventEmitter.EventEmitter = EventEmitter;
EventEmitter.prototype._events = void 0;
EventEmitter.prototype._eventsCount = 0;
EventEmitter.prototype._maxListeners = void 0;
var defaultMaxListeners = 10;
function checkListener(listener) {
if (typeof listener !== "function") {
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
}
}
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
enumerable: true,
get: function() {
return defaultMaxListeners;
},
set: function(arg) {
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
}
defaultMaxListeners = arg;
}
});
EventEmitter.init = function() {
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
this._events = /* @__PURE__ */ Object.create(null);
this._eventsCount = 0;
}
this._maxListeners = this._maxListeners || void 0;
};
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
}
this._maxListeners = n;
return this;
};
function _getMaxListeners(that) {
if (that._maxListeners === void 0)
return EventEmitter.defaultMaxListeners;
return that._maxListeners;
}
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
return _getMaxListeners(this);
};
EventEmitter.prototype.emit = function emit(type) {
var args = [];
for (var i = 1; i < arguments.length; i++)
args.push(arguments[i]);
var doError = type === "error";
var events2 = this._events;
if (events2 !== void 0)
doError = doError && events2.error === void 0;
else if (!doError)
return false;
if (doError) {
var er;
if (args.length > 0)
er = args[0];
if (er instanceof Error) {
throw er;
}
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
err.context = er;
throw err;
}
var handler = events2[type];
if (handler === void 0)
return false;
if (typeof handler === "function") {
ReflectApply(handler, this, args);
} else {
var len = handler.length;
var listeners2 = arrayClone(handler, len);
for (var i = 0; i < len; ++i)
ReflectApply(listeners2[i], this, args);
}
return true;
};
function _addListener(target, type, listener, prepend) {
var m;
var events2;
var existing;
checkListener(listener);
events2 = target._events;
if (events2 === void 0) {
events2 = target._events = /* @__PURE__ */ Object.create(null);
target._eventsCount = 0;
} else {
if (events2.newListener !== void 0) {
target.emit(
"newListener",
type,
listener.listener ? listener.listener : listener
);
events2 = target._events;
}
existing = events2[type];
}
if (existing === void 0) {
existing = events2[type] = listener;
++target._eventsCount;
} else {
if (typeof existing === "function") {
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
} else if (prepend) {
existing.unshift(listener);
} else {
existing.push(listener);
}
m = _getMaxListeners(target);
if (m > 0 && existing.length > m && !existing.warned) {
existing.warned = true;
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
w.name = "MaxListenersExceededWarning";
w.emitter = target;
w.type = type;
w.count = existing.length;
ProcessEmitWarning(w);
}
}
return target;
}
EventEmitter.prototype.addListener = function addListener(type, listener) {
return _addListener(this, type, listener, false);
};
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
return _addListener(this, type, listener, true);
};
function onceWrapper() {
if (!this.fired) {
this.target.removeListener(this.type, this.wrapFn);
this.fired = true;
if (arguments.length === 0)
return this.listener.call(this.target);
return this.listener.apply(this.target, arguments);
}
}
function _onceWrap(target, type, listener) {
var state = { fired: false, wrapFn: void 0, target, type, listener };
var wrapped = onceWrapper.bind(state);
wrapped.listener = listener;
state.wrapFn = wrapped;
return wrapped;
}
EventEmitter.prototype.once = function once(type, listener) {
checkListener(listener);
this.on(type, _onceWrap(this, type, listener));
return this;
};
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
checkListener(listener);
this.prependListener(type, _onceWrap(this, type, listener));
return this;
};
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
var list, events2, position, i, originalListener;
checkListener(listener);
events2 = this._events;
if (events2 === void 0)
return this;
list = events2[type];
if (list === void 0)
return this;
if (list === listener || list.listener === listener) {
if (--this._eventsCount === 0)
this._events = /* @__PURE__ */ Object.create(null);
else {
delete events2[type];
if (events2.removeListener)
this.emit("removeListener", type, list.listener || listener);
}
} else if (typeof list !== "function") {
position = -1;
for (i = list.length - 1; i >= 0; i--) {
if (list[i] === listener || list[i].listener === listener) {
originalListener = list[i].listener;
position = i;
break;
}
}
if (position < 0)
return this;
if (position === 0)
list.shift();
else {
spliceOne(list, position);
}
if (list.length === 1)
events2[type] = list[0];
if (events2.removeListener !== void 0)
this.emit("removeListener", type, originalListener || listener);
}
return this;
};
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
var listeners2, events2, i;
events2 = this._events;
if (events2 === void 0)
return this;
if (events2.removeListener === void 0) {
if (arguments.length === 0) {
this._events = /* @__PURE__ */ Object.create(null);
this._eventsCount = 0;
} else if (events2[type] !== void 0) {
if (--this._eventsCount === 0)
this._events = /* @__PURE__ */ Object.create(null);
else
delete events2[type];
}
return this;
}
if (arguments.length === 0) {
var keys = Object.keys(events2);
var key;
for (i = 0; i < keys.length; ++i) {
key = keys[i];
if (key === "removeListener")
continue;
this.removeAllListeners(key);
}
this.removeAllListeners("removeListener");
this._events = /* @__PURE__ */ Object.create(null);
this._eventsCount = 0;
return this;
}
listeners2 = events2[type];
if (typeof listeners2 === "function") {
this.removeListener(type, listeners2);
} else if (listeners2 !== void 0) {
for (i = listeners2.length - 1; i >= 0; i--) {
this.removeListener(type, listeners2[i]);
}
}
return this;
};
function _listeners(target, type, unwrap) {
var events2 = target._events;
if (events2 === void 0)
return [];
var evlistener = events2[type];
if (evlistener === void 0)
return [];
if (typeof evlistener === "function")
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
}
EventEmitter.prototype.listeners = function listeners(type) {
return _listeners(this, type, true);
};
EventEmitter.prototype.rawListeners = function rawListeners(type) {
return _listeners(this, type, false);
};
EventEmitter.listenerCount = function(emitter, type) {
if (typeof emitter.listenerCount === "function") {
return emitter.listenerCount(type);
} else {
return listenerCount.call(emitter, type);
}
};
EventEmitter.prototype.listenerCount = listenerCount;
function listenerCount(type) {
var events2 = this._events;
if (events2 !== void 0) {
var evlistener = events2[type];
if (typeof evlistener === "function") {
return 1;
} else if (evlistener !== void 0) {
return evlistener.length;
}
}
return 0;
}
EventEmitter.prototype.eventNames = function eventNames() {
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
};
function arrayClone(arr, n) {
var copy = new Array(n);
for (var i = 0; i < n; ++i)
copy[i] = arr[i];
return copy;
}
function spliceOne(list, index) {
for (; index + 1 < list.length; index++)
list[index] = list[index + 1];
list.pop();
}
function unwrapListeners(arr) {
var ret = new Array(arr.length);
for (var i = 0; i < ret.length; ++i) {
ret[i] = arr[i].listener || arr[i];
}
return ret;
}
function once2(emitter, name) {
return new Promise(function(resolve, reject) {
function errorListener(err) {
emitter.removeListener(name, resolver);
reject(err);
}
function resolver() {
if (typeof emitter.removeListener === "function") {
emitter.removeListener("error", errorListener);
}
resolve([].slice.call(arguments));
}
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
if (name !== "error") {
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
}
});
}
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
if (typeof emitter.on === "function") {
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
}
}
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
if (typeof emitter.on === "function") {
if (flags.once) {
emitter.once(name, listener);
} else {
emitter.on(name, listener);
}
} else if (typeof emitter.addEventListener === "function") {
emitter.addEventListener(name, function wrapListener(arg) {
if (flags.once) {
emitter.removeEventListener(name, wrapListener);
}
listener(arg);
});
} else {
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
}
}
var tslibExports = {};
var tslib = {
get exports() {
return tslibExports;
},
set exports(v) {
tslibExports = v;
}
};
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
(function(module) {
var __extends;
var __assign;
var __rest;
var __decorate;
var __param;
var __metadata;
var __awaiter;
var __generator;
var __exportStar;
var __values;
var __read;
var __spread;
var __spreadArrays;
var __await;
var __asyncGenerator;
var __asyncDelegator;
var __asyncValues;
var __makeTemplateObject;
var __importStar;
var __importDefault;
var __classPrivateFieldGet;
var __classPrivateFieldSet;
var __createBinding;
(function(factory) {
var root = typeof commonjsGlobal === "object" ? commonjsGlobal : typeof self === "object" ? self : typeof this === "object" ? this : {};
{
factory(createExporter(root, createExporter(module.exports)));
}
function createExporter(exports, previous) {
if (exports !== root) {
if (typeof Object.create === "function") {
Object.defineProperty(exports, "__esModule", { value: true });
} else {
exports.__esModule = true;
}
}
return function(id, v) {
return exports[id] = previous ? previous(id, v) : v;
};
}
})(function(exporter) {
var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b)
if (b.hasOwnProperty(p))
d[p] = b[p];
};
__extends = function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
__rest = function(s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
__decorate = function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (var i = decorators.length - 1; i >= 0; i--)
if (d = decorators[i])
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
__param = function(paramIndex, decorator) {
return function(target, key) {
decorator(target, key, paramIndex);
};
};
__metadata = function(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
return Reflect.metadata(metadataKey, metadataValue);
};
__awaiter = function(thisArg, _arguments, P, generator) {
function adopt(value) {
return value instanceof P ? value : new P(function(resolve) {
resolve(value);
});
}
return new (P || (P = Promise))(function(resolve, reject) {
function fulfilled(value) {
try {
step(generator.next(value));
} catch (e) {
reject(e);
}
}
function rejected(value) {
try {
step(generator["throw"](value));
} catch (e) {
reject(e);
}
}
function step(result) {
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
}
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
__generator = function(thisArg, body) {
var _ = { label: 0, sent: function() {
if (t[0] & 1)
throw t[1];
return t[1];
}, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
return this;
}), g;
function verb(n) {
return function(v) {
return step([n, v]);
};
}
function step(op) {
if (f)
throw new TypeError("Generator is already executing.");
while (_)
try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
return t;
if (y = 0, t)
op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return { value: op[1], done: false };
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2])
_.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
} catch (e) {
op = [6, e];
y = 0;
} finally {
f = t = 0;
}
if (op[0] & 5)
throw op[1];
return { value: op[0] ? op[1] : void 0, done: true };
}
};
__createBinding = function(o, m, k, k2) {
if (k2 === void 0)
k2 = k;
o[k2] = m[k];
};
__exportStar = function(m, exports) {
for (var p in m)
if (p !== "default" && !exports.hasOwnProperty(p))
exports[p] = m[p];
};
__values = function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m)
return m.call(o);
if (o && typeof o.length === "number")
return {
next: function() {
if (o && i >= o.length)
o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
__read = function(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
} catch (error) {
e = { error };
} finally {
try {
if (r && !r.done && (m = i["return"]))
m.call(i);
} finally {
if (e)
throw e.error;
}
}
return ar;
};
__spread = function() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
};
__spreadArrays = function() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
};
__await = function(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
};
__asyncGenerator = function(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator)
throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
return this;
}, i;
function verb(n) {
if (g[n])
i[n] = function(v) {
return new Promise(function(a, b) {
q.push([n, v, a, b]) > 1 || resume(n, v);
});
};
}
function resume(n, v) {
try {
step(g[n](v));
} catch (e) {
settle(q[0][3], e);
}
}
function step(r) {
r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r);
}
function fulfill(value) {
resume("next", value);
}
function reject(value) {
resume("throw", value);
}
function settle(f, v) {
if (f(v), q.shift(), q.length)
resume(q[0][0], q[0][1]);
}
};
__asyncDelegator = function(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function(e) {
throw e;
}), verb("return"), i[Symbol.iterator] = function() {
return this;
}, i;
function verb(n, f) {
i[n] = o[n] ? function(v) {
return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v;
} : f;
}
};
__asyncValues = function(o) {
if (!Symbol.asyncIterator)
throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() {
return this;
}, i);
function verb(n) {
i[n] = o[n] && function(v) {
return new Promise(function(resolve, reject) {
v = o[n](v), settle(resolve, reject, v.done, v.value);
});
};
}
function settle(resolve, reject, d, v) {
Promise.resolve(v).then(function(v2) {
resolve({ value: v2, done: d });
}, reject);
}
};
__makeTemplateObject = function(cooked, raw) {
if (Object.defineProperty) {
Object.defineProperty(cooked, "raw", { value: raw });
} else {
cooked.raw = raw;
}
return cooked;
};
__importStar = function(mod) {
if (mod && mod.__esModule)
return mod;
var result = {};
if (mod != null) {
for (var k in mod)
if (Object.hasOwnProperty.call(mod, k))
result[k] = mod[k];
}
result["default"] = mod;
return result;
};
__importDefault = function(mod) {
return mod && mod.__esModule ? mod : { "default": mod };
};
__classPrivateFieldGet = function(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
};
__classPrivateFieldSet = function(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
};
exporter("__extends", __extends);
exporter("__assign", __assign);
exporter("__rest", __rest);
exporter("__decorate", __decorate);
exporter("__param", __param);
exporter("__metadata", __metadata);
exporter("__awaiter", __awaiter);
exporter("__generator", __generator);
exporter("__exportStar", __exportStar);
exporter("__createBinding", __createBinding);
exporter("__values", __values);
exporter("__read", __read);
exporter("__spread", __spread);
exporter("__spreadArrays", __spreadArrays);
exporter("__await", __await);
exporter("__asyncGenerator", __asyncGenerator);
exporter("__asyncDelegator", __asyncDelegator);
exporter("__asyncValues", __asyncValues);
exporter("__makeTemplateObject", __makeTemplateObject);
exporter("__importStar", __importStar);
exporter("__importDefault", __importDefault);
exporter("__classPrivateFieldGet", __classPrivateFieldGet);
exporter("__classPrivateFieldSet", __classPrivateFieldSet);
});
})(tslib);
export {
eventsExports as e,
tslibExports as t
};

View file

@ -1,5 +1,5 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, b as insert_hydration, H as append_hydration, u as set_data, C as noop, Z as component_subscribe } from "../chunks/index-a23f1e07.js"; import { S as SvelteComponent, i as init, s as safe_not_equal, k as element, q as text, a as space, l as claim_element, m as children, r as claim_text, h as detach, c as claim_space, b as insert_hydration, H as append_hydration, u as set_data, C as noop, Z as component_subscribe } from "../chunks/index-88d77172.js";
import { s as stores } from "../chunks/singletons-a9453c75.js"; import { s as stores } from "../chunks/singletons-0b808b86.js";
const getStores = () => { const getStores = () => {
const stores$1 = stores; const stores$1 = stores;
return { return {

View file

@ -1,5 +1,5 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, k as element, a as space, q as text, E as svg_element, x as create_component, l as claim_element, m as children, h as detach, c as claim_space, r as claim_text, F as claim_svg_element, y as claim_component, G as src_url_equal, n as attr, b as insert_hydration, H as append_hydration, z as mount_component, I as listen, u as set_data, J as update_slot_base, K as get_all_dirty_from_scope, L as get_slot_changes, f as transition_in, t as transition_out, d as check_outros, M as destroy_each, A as destroy_component, N as run_all, o as onMount, C as noop, g as group_outros } from "../../chunks/index-a23f1e07.js"; import { S as SvelteComponent, i as init, s as safe_not_equal, D as create_slot, k as element, a as space, q as text, E as svg_element, x as create_component, l as claim_element, m as children, h as detach, c as claim_space, r as claim_text, F as claim_svg_element, y as claim_component, G as src_url_equal, n as attr, b as insert_hydration, H as append_hydration, z as mount_component, I as listen, u as set_data, J as update_slot_base, K as get_all_dirty_from_scope, L as get_slot_changes, f as transition_in, t as transition_out, d as check_outros, M as destroy_each, A as destroy_component, N as run_all, o as onMount, C as noop, g as group_outros } from "../../chunks/index-88d77172.js";
import { S as SvelteMarkdown, a as animateText, h as handleAnchorClick, b as animateSection } from "../../chunks/helpers-27ee569e.js"; import { S as SvelteMarkdown, a as animateText, h as handleAnchorClick, b as animateSection } from "../../chunks/helpers-c3e656fe.js";
const app = ""; const app = "";
function get_each_context(ctx, list, i) { function get_each_context(ctx, list, i) {
const child_ctx = ctx.slice(); const child_ctx = ctx.slice();

View file

@ -0,0 +1,6 @@
import "../../chunks/index-88d77172.js";
import "../../chunks/helpers-c3e656fe.js";
import { P } from "../../chunks/_page-229a63fb.js";
export {
P as default
};

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
import { l } from "../../chunks/_layout-dfbe38de.js";
export {
l as load
};

View file

@ -1,4 +0,0 @@
import { l } from "../../chunks/_layout-ec1eec0a.js";
export {
l as load
};

View file

@ -1,5 +1,6 @@
import { S as SvelteComponent, i as init, s as safe_not_equal, a as space, e as empty, c as claim_space, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, j as afterUpdate, o as onMount, k as element, l as claim_element, m as children, n as attr, p as set_style, q as text, r as claim_text, u as set_data, v as binding_callbacks, w as construct_svelte_component, x as create_component, y as claim_component, z as mount_component, A as destroy_component, B as tick } from "./chunks/index-a23f1e07.js"; import { S as SvelteComponent, i as init, s as safe_not_equal, a as space, e as empty, c as claim_space, b as insert_hydration, g as group_outros, t as transition_out, d as check_outros, f as transition_in, h as detach, j as afterUpdate, o as onMount, k as element, l as claim_element, m as children, n as attr, p as set_style, q as text, r as claim_text, u as set_data, v as binding_callbacks, w as construct_svelte_component, x as create_component, y as claim_component, z as mount_component, A as destroy_component, B as tick } from "./chunks/index-88d77172.js";
import { S as SCROLL_KEY, a as SNAPSHOT_KEY, I as INDEX_KEY, g as get_base_uri, f as find_anchor, b as get_link_info, c as get_router_options, s as stores, i as is_external_url, d as scroll_state, e as base, P as PRELOAD_PRIORITIES, h as init$1, j as set_assets, k as set_version } from "./chunks/singletons-a9453c75.js"; import { S as SCROLL_KEY, a as SNAPSHOT_KEY, I as INDEX_KEY, g as get_base_uri, f as find_anchor, b as get_link_info, c as get_router_options, s as stores, i as is_external_url, d as scroll_state, e as base, P as PRELOAD_PRIORITIES, h as init$1, j as set_assets, k as set_version } from "./chunks/singletons-0b808b86.js";
import { _ as __vitePreload } from "./chunks/preload-helper-f8376bb0.js";
function normalize_path(path, trailing_slash) { function normalize_path(path, trailing_slash) {
if (path === "/" || trailing_slash === "ignore") if (path === "/" || trailing_slash === "ignore")
return path; return path;
@ -854,55 +855,11 @@ class Root extends SvelteComponent {
}); });
} }
} }
const scriptRel = "modulepreload";
const assetsURL = function(dep, importerUrl) {
return new URL(dep, importerUrl).href;
};
const seen = {};
const __vitePreload = function preload(baseModule, deps, importerUrl) {
if (!deps || deps.length === 0) {
return baseModule();
}
const links = document.getElementsByTagName("link");
return Promise.all(deps.map((dep) => {
dep = assetsURL(dep, importerUrl);
if (dep in seen)
return;
seen[dep] = true;
const isCss = dep.endsWith(".css");
const cssSelector = isCss ? '[rel="stylesheet"]' : "";
const isBaseRelative = !!importerUrl;
if (isBaseRelative) {
for (let i = links.length - 1; i >= 0; i--) {
const link2 = links[i];
if (link2.href === dep && (!isCss || link2.rel === "stylesheet")) {
return;
}
}
} else if (document.querySelector(`link[href="${dep}"]${cssSelector}`)) {
return;
}
const link = document.createElement("link");
link.rel = isCss ? "stylesheet" : scriptRel;
if (!isCss) {
link.as = "script";
link.crossOrigin = "";
}
link.href = dep;
document.head.appendChild(link);
if (isCss) {
return new Promise((res, rej) => {
link.addEventListener("load", res);
link.addEventListener("error", () => rej(new Error(`Unable to preload CSS for ${dep}`)));
});
}
})).then(() => baseModule());
};
const matchers = {}; const matchers = {};
const nodes = [ const nodes = [
() => __vitePreload(() => import("./chunks/0-3e0a209e.js"), true ? ["./chunks/0-3e0a209e.js","./chunks/_layout-ec1eec0a.js","./components/pages/_layout.svelte-095ba0b3.js","./chunks/index-a23f1e07.js","./chunks/helpers-27ee569e.js","./assets/_layout-ec57f635.css"] : void 0, import.meta.url), () => __vitePreload(() => import("./chunks/0-2867edeb.js"), true ? ["./chunks/0-2867edeb.js","./chunks/_layout-dfbe38de.js","./components/pages/_layout.svelte-5826ee12.js","./chunks/index-88d77172.js","./chunks/helpers-c3e656fe.js","./assets/_layout-4081ed0a.css"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/1-0968ece7.js"), true ? ["./chunks/1-0968ece7.js","./components/error.svelte-dfa3fa2b.js","./chunks/index-a23f1e07.js","./chunks/singletons-a9453c75.js"] : void 0, import.meta.url), () => __vitePreload(() => import("./chunks/1-8bc57e9d.js"), true ? ["./chunks/1-8bc57e9d.js","./components/error.svelte-0198a771.js","./chunks/index-88d77172.js","./chunks/singletons-0b808b86.js"] : void 0, import.meta.url),
() => __vitePreload(() => import("./chunks/2-1ec84c46.js"), true ? ["./chunks/2-1ec84c46.js","./components/pages/_page.svelte-5005bd11.js","./chunks/index-a23f1e07.js","./chunks/helpers-27ee569e.js","./chunks/singletons-a9453c75.js"] : void 0, import.meta.url) () => __vitePreload(() => import("./chunks/2-5d88d014.js"), true ? ["./chunks/2-5d88d014.js","./chunks/_page-229a63fb.js","./chunks/index-88d77172.js","./chunks/helpers-c3e656fe.js","./chunks/singletons-0b808b86.js","./chunks/preload-helper-f8376bb0.js"] : void 0, import.meta.url)
]; ];
const server_loads = []; const server_loads = [];
const dictionary = { const dictionary = {
@ -1854,11 +1811,11 @@ function create_client({ target }) {
); );
clearTimeout(mousemove_timeout); clearTimeout(mousemove_timeout);
mousemove_timeout = setTimeout(() => { mousemove_timeout = setTimeout(() => {
preload2(target2, 2); preload(target2, 2);
}, 20); }, 20);
}); });
function tap(event) { function tap(event) {
preload2( preload(
/** @type {Element} */ /** @type {Element} */
event.composedPath()[0], event.composedPath()[0],
1 1
@ -1882,7 +1839,7 @@ function create_client({ target }) {
}, },
{ threshold: 0 } { threshold: 0 }
); );
function preload2(element2, priority) { function preload(element2, priority) {
const a = find_anchor(element2, container); const a = find_anchor(element2, container);
if (!a) if (!a)
return; return;

View file

@ -1 +1 @@
{"version":"1677159126530"} {"version":"1677477796022"}

View file

@ -79,6 +79,9 @@
"ticketsNote": "Tickets will go on sale in late February 2023.", "ticketsNote": "Tickets will go on sale in late February 2023.",
"ticketing": false, "ticketing": false,
"ticketingUrl": "https://tickets.web3privacy.info/w3ps1/", "ticketingUrl": "https://tickets.web3privacy.info/w3ps1/",
"ticketBasePrice": 99,
"ticketsDiscountForm": "https://attend.web3privacy.info",
"ticketsDiscounts": "We also offer discounts for other groups such as active open-source contributors to privacy protocols, privacy (lunarpunk) advocates, full-time students, attendees from OECD low income countries, independent developers, etc. Feel free to request your special discount using the form:\n",
"tickets": [ "tickets": [
{ {
"title": "All-day Access", "title": "All-day Access",
@ -90,7 +93,7 @@
"Networking drinks with speakers & attendees", "Networking drinks with speakers & attendees",
"#Lunarpunk party" "#Lunarpunk party"
], ],
"hint": "[Apply for a discount →](https://attend.web3privacy.info)<br />(as independent developer, student, privacy advocate, open-source contributor..)\n" "hint": "Discounts: We offer various discounts up to 100%, see below\n"
}, },
{ {
"title": "#Lunarpunk Party", "title": "#Lunarpunk Party",
@ -311,5 +314,6 @@
"title": "Workshops IV." "title": "Workshops IV."
} }
] ]
} },
"badgesApiUrl": "https://badges-pretix-voucher-api.web3privacy.info"
} }

File diff suppressed because one or more lines are too long