@plaidev/karte-action-sdk 1.1.268-29151748.f54dfcfb → 1.1.269-29151822.663827f4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { get, writable } from "svelte/store";
2
2
  import { afterUpdate as afterUpdate$1, beforeUpdate as beforeUpdate$1, createEventDispatcher, getContext, onDestroy as onDestroy$1, onMount as onMount$1, setContext, tick as tick$1 } from "svelte";
3
+ import { HtmlTag, SvelteComponent, add_render_callback, append, append_styles, assign, attr, binding_callbacks, check_outros, component_subscribe, construct_svelte_component, create_component, create_in_transition, create_slot, destroy_component, destroy_each, detach, element, empty, get_all_dirty_from_scope, get_slot_changes, get_spread_update, group_outros, init, insert, is_function, listen, mount_component, noop, null_to_empty, prevent_default, run_all, safe_not_equal, set_attributes, set_custom_element_data_map, set_data, set_store_value, set_style, space, src_url_equal, subscribe, svg_element, text, toggle_class, transition_in, transition_out, update_slot_base } from "svelte/internal";
3
4
  import { cubicOut, elasticOut, linear } from "svelte/easing";
4
5
 
5
6
  //#region rolldown:runtime
@@ -248,14 +249,14 @@ function makeGoogleFontUrl(fonts$1, texts) {
248
249
  *
249
250
  * @internal
250
251
  */
251
- const h = (type, props, ...children$1) => {
252
+ const h = (type, props, ...children) => {
252
253
  const el = document.createElement(type);
253
254
  for (const key of Object.keys(props)) {
254
255
  const v = props[key];
255
256
  if (key === "style") Object.assign(el.style, v);
256
257
  else el.setAttribute(key, v);
257
258
  }
258
- for (const child of children$1) el.appendChild(child);
259
+ for (const child of children) el.appendChild(child);
259
260
  return el;
260
261
  };
261
262
 
@@ -2620,9 +2621,9 @@ function isEmpty(value) {
2620
2621
  function createInputRegisterer(formData$1) {
2621
2622
  const registerInput$1 = ({ name, statePath, validator = () => true, initialValue }) => {
2622
2623
  const writableValue = {
2623
- subscribe(run$1) {
2624
+ subscribe(run) {
2624
2625
  return formData$1.subscribe((formData$2) => {
2625
- run$1(formData$2[name]?.value);
2626
+ run(formData$2[name]?.value);
2626
2627
  });
2627
2628
  },
2628
2629
  set(value) {
@@ -2651,9 +2652,9 @@ function createInputRegisterer(formData$1) {
2651
2652
  });
2652
2653
  }
2653
2654
  };
2654
- const readableIsValid = { subscribe(run$1) {
2655
+ const readableIsValid = { subscribe(run) {
2655
2656
  return formData$1.subscribe((formData$2) => {
2656
- run$1(formData$2[name]?.isValid);
2657
+ run(formData$2[name]?.isValid);
2657
2658
  });
2658
2659
  } };
2659
2660
  if (isEmpty(get(writableValue))) writableValue.set(initialValue);
@@ -3023,8 +3024,8 @@ function getLocalStore(key) {
3023
3024
  return;
3024
3025
  }
3025
3026
  if (item.val === void 0) return;
3026
- const now$1 = new Date().getTime();
3027
- if (now$1 - item.last > item.expire) {
3027
+ const now = new Date().getTime();
3028
+ if (now - item.last > item.expire) {
3028
3029
  localStorage.removeItem(lsKey);
3029
3030
  return;
3030
3031
  }
@@ -3099,650 +3100,6 @@ const LAYOUT_COMPONENT_NAMES = [
3099
3100
  "StateItem"
3100
3101
  ];
3101
3102
 
3102
- //#endregion
3103
- //#region ../../node_modules/.pnpm/svelte@3.53.1/node_modules/svelte/internal/index.mjs
3104
- function noop() {}
3105
- const identity = (x) => x;
3106
- function assign(tar, src) {
3107
- for (const k in src) tar[k] = src[k];
3108
- return tar;
3109
- }
3110
- function run(fn) {
3111
- return fn();
3112
- }
3113
- function blank_object() {
3114
- return Object.create(null);
3115
- }
3116
- function run_all(fns) {
3117
- fns.forEach(run);
3118
- }
3119
- function is_function(thing) {
3120
- return typeof thing === "function";
3121
- }
3122
- function safe_not_equal(a, b) {
3123
- return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
3124
- }
3125
- let src_url_equal_anchor;
3126
- function src_url_equal(element_src, url) {
3127
- if (!src_url_equal_anchor) src_url_equal_anchor = document.createElement("a");
3128
- src_url_equal_anchor.href = url;
3129
- return element_src === src_url_equal_anchor.href;
3130
- }
3131
- function is_empty(obj) {
3132
- return Object.keys(obj).length === 0;
3133
- }
3134
- function subscribe(store, ...callbacks) {
3135
- if (store == null) return noop;
3136
- const unsub = store.subscribe(...callbacks);
3137
- return unsub.unsubscribe ? () => unsub.unsubscribe() : unsub;
3138
- }
3139
- function component_subscribe(component, store, callback$5) {
3140
- component.$$.on_destroy.push(subscribe(store, callback$5));
3141
- }
3142
- function create_slot(definition, ctx, $$scope, fn) {
3143
- if (definition) {
3144
- const slot_ctx = get_slot_context(definition, ctx, $$scope, fn);
3145
- return definition[0](slot_ctx);
3146
- }
3147
- }
3148
- function get_slot_context(definition, ctx, $$scope, fn) {
3149
- return definition[1] && fn ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) : $$scope.ctx;
3150
- }
3151
- function get_slot_changes(definition, $$scope, dirty, fn) {
3152
- if (definition[2] && fn) {
3153
- const lets = definition[2](fn(dirty));
3154
- if ($$scope.dirty === void 0) return lets;
3155
- if (typeof lets === "object") {
3156
- const merged = [];
3157
- const len = Math.max($$scope.dirty.length, lets.length);
3158
- for (let i = 0; i < len; i += 1) merged[i] = $$scope.dirty[i] | lets[i];
3159
- return merged;
3160
- }
3161
- return $$scope.dirty | lets;
3162
- }
3163
- return $$scope.dirty;
3164
- }
3165
- function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) {
3166
- if (slot_changes) {
3167
- const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn);
3168
- slot.p(slot_context, slot_changes);
3169
- }
3170
- }
3171
- function get_all_dirty_from_scope($$scope) {
3172
- if ($$scope.ctx.length > 32) {
3173
- const dirty = [];
3174
- const length = $$scope.ctx.length / 32;
3175
- for (let i = 0; i < length; i++) dirty[i] = -1;
3176
- return dirty;
3177
- }
3178
- return -1;
3179
- }
3180
- function null_to_empty(value) {
3181
- return value == null ? "" : value;
3182
- }
3183
- function set_store_value(store, ret, value) {
3184
- store.set(value);
3185
- return ret;
3186
- }
3187
- const is_client = typeof window !== "undefined";
3188
- let now = is_client ? () => window.performance.now() : () => Date.now();
3189
- let raf = is_client ? (cb) => requestAnimationFrame(cb) : noop;
3190
- const tasks = new Set();
3191
- function run_tasks(now$1) {
3192
- tasks.forEach((task) => {
3193
- if (!task.c(now$1)) {
3194
- tasks.delete(task);
3195
- task.f();
3196
- }
3197
- });
3198
- if (tasks.size !== 0) raf(run_tasks);
3199
- }
3200
- /**
3201
- * Creates a new task that runs on each raf frame
3202
- * until it returns a falsy value or is aborted
3203
- */
3204
- function loop(callback$5) {
3205
- let task;
3206
- if (tasks.size === 0) raf(run_tasks);
3207
- return {
3208
- promise: new Promise((fulfill) => {
3209
- tasks.add(task = {
3210
- c: callback$5,
3211
- f: fulfill
3212
- });
3213
- }),
3214
- abort() {
3215
- tasks.delete(task);
3216
- }
3217
- };
3218
- }
3219
- let is_hydrating = false;
3220
- function start_hydrating() {
3221
- is_hydrating = true;
3222
- }
3223
- function end_hydrating() {
3224
- is_hydrating = false;
3225
- }
3226
- function append(target, node) {
3227
- target.appendChild(node);
3228
- }
3229
- function append_styles(target, style_sheet_id, styles) {
3230
- const append_styles_to = get_root_for_style(target);
3231
- if (!append_styles_to.getElementById(style_sheet_id)) {
3232
- const style = element("style");
3233
- style.id = style_sheet_id;
3234
- style.textContent = styles;
3235
- append_stylesheet(append_styles_to, style);
3236
- }
3237
- }
3238
- function get_root_for_style(node) {
3239
- if (!node) return document;
3240
- const root = node.getRootNode ? node.getRootNode() : node.ownerDocument;
3241
- if (root && root.host) return root;
3242
- return node.ownerDocument;
3243
- }
3244
- function append_empty_stylesheet(node) {
3245
- const style_element = element("style");
3246
- append_stylesheet(get_root_for_style(node), style_element);
3247
- return style_element.sheet;
3248
- }
3249
- function append_stylesheet(node, style) {
3250
- append(node.head || node, style);
3251
- return style.sheet;
3252
- }
3253
- function insert(target, node, anchor) {
3254
- target.insertBefore(node, anchor || null);
3255
- }
3256
- function detach(node) {
3257
- if (node.parentNode) node.parentNode.removeChild(node);
3258
- }
3259
- function destroy_each(iterations, detaching) {
3260
- for (let i = 0; i < iterations.length; i += 1) if (iterations[i]) iterations[i].d(detaching);
3261
- }
3262
- function element(name) {
3263
- return document.createElement(name);
3264
- }
3265
- function svg_element(name) {
3266
- return document.createElementNS("http://www.w3.org/2000/svg", name);
3267
- }
3268
- function text(data) {
3269
- return document.createTextNode(data);
3270
- }
3271
- function space() {
3272
- return text(" ");
3273
- }
3274
- function empty() {
3275
- return text("");
3276
- }
3277
- function listen(node, event, handler, options) {
3278
- node.addEventListener(event, handler, options);
3279
- return () => node.removeEventListener(event, handler, options);
3280
- }
3281
- function prevent_default(fn) {
3282
- return function(event) {
3283
- event.preventDefault();
3284
- return fn.call(this, event);
3285
- };
3286
- }
3287
- function attr(node, attribute, value) {
3288
- if (value == null) node.removeAttribute(attribute);
3289
- else if (node.getAttribute(attribute) !== value) node.setAttribute(attribute, value);
3290
- }
3291
- function set_attributes(node, attributes) {
3292
- const descriptors = Object.getOwnPropertyDescriptors(node.__proto__);
3293
- for (const key in attributes) if (attributes[key] == null) node.removeAttribute(key);
3294
- else if (key === "style") node.style.cssText = attributes[key];
3295
- else if (key === "__value") node.value = node[key] = attributes[key];
3296
- else if (descriptors[key] && descriptors[key].set) node[key] = attributes[key];
3297
- else attr(node, key, attributes[key]);
3298
- }
3299
- function set_custom_element_data_map(node, data_map) {
3300
- Object.keys(data_map).forEach((key) => {
3301
- set_custom_element_data(node, key, data_map[key]);
3302
- });
3303
- }
3304
- function set_custom_element_data(node, prop, value) {
3305
- if (prop in node) node[prop] = typeof node[prop] === "boolean" && value === "" ? true : value;
3306
- else attr(node, prop, value);
3307
- }
3308
- function children(element$1) {
3309
- return Array.from(element$1.childNodes);
3310
- }
3311
- function set_data(text$1, data) {
3312
- data = "" + data;
3313
- if (text$1.wholeText !== data) text$1.data = data;
3314
- }
3315
- function set_style(node, key, value, important) {
3316
- if (value === null) node.style.removeProperty(key);
3317
- else node.style.setProperty(key, value, important ? "important" : "");
3318
- }
3319
- function toggle_class(element$1, name, toggle) {
3320
- element$1.classList[toggle ? "add" : "remove"](name);
3321
- }
3322
- function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
3323
- const e = document.createEvent("CustomEvent");
3324
- e.initCustomEvent(type, bubbles, cancelable, detail);
3325
- return e;
3326
- }
3327
- var HtmlTag = class {
3328
- constructor(is_svg = false) {
3329
- this.is_svg = false;
3330
- this.is_svg = is_svg;
3331
- this.e = this.n = null;
3332
- }
3333
- c(html) {
3334
- this.h(html);
3335
- }
3336
- m(html, target, anchor = null) {
3337
- if (!this.e) {
3338
- if (this.is_svg) this.e = svg_element(target.nodeName);
3339
- else this.e = element(target.nodeName);
3340
- this.t = target;
3341
- this.c(html);
3342
- }
3343
- this.i(anchor);
3344
- }
3345
- h(html) {
3346
- this.e.innerHTML = html;
3347
- this.n = Array.from(this.e.childNodes);
3348
- }
3349
- i(anchor) {
3350
- for (let i = 0; i < this.n.length; i += 1) insert(this.t, this.n[i], anchor);
3351
- }
3352
- p(html) {
3353
- this.d();
3354
- this.h(html);
3355
- this.i(this.a);
3356
- }
3357
- d() {
3358
- this.n.forEach(detach);
3359
- }
3360
- };
3361
- function construct_svelte_component(component, props) {
3362
- return new component(props);
3363
- }
3364
- const managed_styles = new Map();
3365
- let active = 0;
3366
- function hash(str) {
3367
- let hash$1 = 5381;
3368
- let i = str.length;
3369
- while (i--) hash$1 = (hash$1 << 5) - hash$1 ^ str.charCodeAt(i);
3370
- return hash$1 >>> 0;
3371
- }
3372
- function create_style_information(doc, node) {
3373
- const info$1 = {
3374
- stylesheet: append_empty_stylesheet(node),
3375
- rules: {}
3376
- };
3377
- managed_styles.set(doc, info$1);
3378
- return info$1;
3379
- }
3380
- function create_rule(node, a, b, duration, delay, ease, fn, uid = 0) {
3381
- const step = 16.666 / duration;
3382
- let keyframes = "{\n";
3383
- for (let p = 0; p <= 1; p += step) {
3384
- const t = a + (b - a) * ease(p);
3385
- keyframes += p * 100 + `%{${fn(t, 1 - t)}}\n`;
3386
- }
3387
- const rule = keyframes + `100% {${fn(b, 1 - b)}}\n}`;
3388
- const name = `__svelte_${hash(rule)}_${uid}`;
3389
- const doc = get_root_for_style(node);
3390
- const { stylesheet, rules } = managed_styles.get(doc) || create_style_information(doc, node);
3391
- if (!rules[name]) {
3392
- rules[name] = true;
3393
- stylesheet.insertRule(`@keyframes ${name} ${rule}`, stylesheet.cssRules.length);
3394
- }
3395
- const animation = node.style.animation || "";
3396
- node.style.animation = `${animation ? `${animation}, ` : ""}${name} ${duration}ms linear ${delay}ms 1 both`;
3397
- active += 1;
3398
- return name;
3399
- }
3400
- function delete_rule(node, name) {
3401
- const previous = (node.style.animation || "").split(", ");
3402
- const next = previous.filter(name ? (anim) => anim.indexOf(name) < 0 : (anim) => anim.indexOf("__svelte") === -1);
3403
- const deleted = previous.length - next.length;
3404
- if (deleted) {
3405
- node.style.animation = next.join(", ");
3406
- active -= deleted;
3407
- if (!active) clear_rules();
3408
- }
3409
- }
3410
- function clear_rules() {
3411
- raf(() => {
3412
- if (active) return;
3413
- managed_styles.forEach((info$1) => {
3414
- const { ownerNode } = info$1.stylesheet;
3415
- if (ownerNode) detach(ownerNode);
3416
- });
3417
- managed_styles.clear();
3418
- });
3419
- }
3420
- let current_component;
3421
- function set_current_component(component) {
3422
- current_component = component;
3423
- }
3424
- const dirty_components = [];
3425
- const binding_callbacks = [];
3426
- const render_callbacks = [];
3427
- const flush_callbacks = [];
3428
- const resolved_promise = Promise.resolve();
3429
- let update_scheduled = false;
3430
- function schedule_update() {
3431
- if (!update_scheduled) {
3432
- update_scheduled = true;
3433
- resolved_promise.then(flush);
3434
- }
3435
- }
3436
- function add_render_callback(fn) {
3437
- render_callbacks.push(fn);
3438
- }
3439
- const seen_callbacks = new Set();
3440
- let flushidx = 0;
3441
- function flush() {
3442
- const saved_component = current_component;
3443
- do {
3444
- while (flushidx < dirty_components.length) {
3445
- const component = dirty_components[flushidx];
3446
- flushidx++;
3447
- set_current_component(component);
3448
- update(component.$$);
3449
- }
3450
- set_current_component(null);
3451
- dirty_components.length = 0;
3452
- flushidx = 0;
3453
- while (binding_callbacks.length) binding_callbacks.pop()();
3454
- for (let i = 0; i < render_callbacks.length; i += 1) {
3455
- const callback$5 = render_callbacks[i];
3456
- if (!seen_callbacks.has(callback$5)) {
3457
- seen_callbacks.add(callback$5);
3458
- callback$5();
3459
- }
3460
- }
3461
- render_callbacks.length = 0;
3462
- } while (dirty_components.length);
3463
- while (flush_callbacks.length) flush_callbacks.pop()();
3464
- update_scheduled = false;
3465
- seen_callbacks.clear();
3466
- set_current_component(saved_component);
3467
- }
3468
- function update($$) {
3469
- if ($$.fragment !== null) {
3470
- $$.update();
3471
- run_all($$.before_update);
3472
- const dirty = $$.dirty;
3473
- $$.dirty = [-1];
3474
- $$.fragment && $$.fragment.p($$.ctx, dirty);
3475
- $$.after_update.forEach(add_render_callback);
3476
- }
3477
- }
3478
- let promise;
3479
- function wait() {
3480
- if (!promise) {
3481
- promise = Promise.resolve();
3482
- promise.then(() => {
3483
- promise = null;
3484
- });
3485
- }
3486
- return promise;
3487
- }
3488
- function dispatch(node, direction, kind) {
3489
- node.dispatchEvent(custom_event(`${direction ? "intro" : "outro"}${kind}`));
3490
- }
3491
- const outroing = new Set();
3492
- let outros;
3493
- function group_outros() {
3494
- outros = {
3495
- r: 0,
3496
- c: [],
3497
- p: outros
3498
- };
3499
- }
3500
- function check_outros() {
3501
- if (!outros.r) run_all(outros.c);
3502
- outros = outros.p;
3503
- }
3504
- function transition_in(block, local) {
3505
- if (block && block.i) {
3506
- outroing.delete(block);
3507
- block.i(local);
3508
- }
3509
- }
3510
- function transition_out(block, local, detach$1, callback$5) {
3511
- if (block && block.o) {
3512
- if (outroing.has(block)) return;
3513
- outroing.add(block);
3514
- outros.c.push(() => {
3515
- outroing.delete(block);
3516
- if (callback$5) {
3517
- if (detach$1) block.d(1);
3518
- callback$5();
3519
- }
3520
- });
3521
- block.o(local);
3522
- } else if (callback$5) callback$5();
3523
- }
3524
- const null_transition = { duration: 0 };
3525
- function create_in_transition(node, fn, params) {
3526
- let config = fn(node, params);
3527
- let running = false;
3528
- let animation_name;
3529
- let task;
3530
- let uid = 0;
3531
- function cleanup() {
3532
- if (animation_name) delete_rule(node, animation_name);
3533
- }
3534
- function go() {
3535
- const { delay = 0, duration = 300, easing = identity, tick: tick$2 = noop, css } = config || null_transition;
3536
- if (css) animation_name = create_rule(node, 0, 1, duration, delay, easing, css, uid++);
3537
- tick$2(0, 1);
3538
- const start_time = now() + delay;
3539
- const end_time = start_time + duration;
3540
- if (task) task.abort();
3541
- running = true;
3542
- add_render_callback(() => dispatch(node, true, "start"));
3543
- task = loop((now$1) => {
3544
- if (running) {
3545
- if (now$1 >= end_time) {
3546
- tick$2(1, 0);
3547
- dispatch(node, true, "end");
3548
- cleanup();
3549
- return running = false;
3550
- }
3551
- if (now$1 >= start_time) {
3552
- const t = easing((now$1 - start_time) / duration);
3553
- tick$2(t, 1 - t);
3554
- }
3555
- }
3556
- return running;
3557
- });
3558
- }
3559
- let started = false;
3560
- return {
3561
- start() {
3562
- if (started) return;
3563
- started = true;
3564
- delete_rule(node);
3565
- if (is_function(config)) {
3566
- config = config();
3567
- wait().then(go);
3568
- } else go();
3569
- },
3570
- invalidate() {
3571
- started = false;
3572
- },
3573
- end() {
3574
- if (running) {
3575
- cleanup();
3576
- running = false;
3577
- }
3578
- }
3579
- };
3580
- }
3581
- const globals = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : global;
3582
- function get_spread_update(levels, updates) {
3583
- const update$1 = {};
3584
- const to_null_out = {};
3585
- const accounted_for = { $$scope: 1 };
3586
- let i = levels.length;
3587
- while (i--) {
3588
- const o = levels[i];
3589
- const n = updates[i];
3590
- if (n) {
3591
- for (const key in o) if (!(key in n)) to_null_out[key] = 1;
3592
- for (const key in n) if (!accounted_for[key]) {
3593
- update$1[key] = n[key];
3594
- accounted_for[key] = 1;
3595
- }
3596
- levels[i] = n;
3597
- } else for (const key in o) accounted_for[key] = 1;
3598
- }
3599
- for (const key in to_null_out) if (!(key in update$1)) update$1[key] = void 0;
3600
- return update$1;
3601
- }
3602
- function create_component(block) {
3603
- block && block.c();
3604
- }
3605
- function mount_component(component, target, anchor, customElement) {
3606
- const { fragment, after_update } = component.$$;
3607
- fragment && fragment.m(target, anchor);
3608
- if (!customElement) add_render_callback(() => {
3609
- const new_on_destroy = component.$$.on_mount.map(run).filter(is_function);
3610
- if (component.$$.on_destroy) component.$$.on_destroy.push(...new_on_destroy);
3611
- else run_all(new_on_destroy);
3612
- component.$$.on_mount = [];
3613
- });
3614
- after_update.forEach(add_render_callback);
3615
- }
3616
- function destroy_component(component, detaching) {
3617
- const $$ = component.$$;
3618
- if ($$.fragment !== null) {
3619
- run_all($$.on_destroy);
3620
- $$.fragment && $$.fragment.d(detaching);
3621
- $$.on_destroy = $$.fragment = null;
3622
- $$.ctx = [];
3623
- }
3624
- }
3625
- function make_dirty(component, i) {
3626
- if (component.$$.dirty[0] === -1) {
3627
- dirty_components.push(component);
3628
- schedule_update();
3629
- component.$$.dirty.fill(0);
3630
- }
3631
- component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
3632
- }
3633
- function init(component, options, instance$96, create_fragment$96, not_equal, props, append_styles$1, dirty = [-1]) {
3634
- const parent_component = current_component;
3635
- set_current_component(component);
3636
- const $$ = component.$$ = {
3637
- fragment: null,
3638
- ctx: [],
3639
- props,
3640
- update: noop,
3641
- not_equal,
3642
- bound: blank_object(),
3643
- on_mount: [],
3644
- on_destroy: [],
3645
- on_disconnect: [],
3646
- before_update: [],
3647
- after_update: [],
3648
- context: new Map(options.context || (parent_component ? parent_component.$$.context : [])),
3649
- callbacks: blank_object(),
3650
- dirty,
3651
- skip_bound: false,
3652
- root: options.target || parent_component.$$.root
3653
- };
3654
- append_styles$1 && append_styles$1($$.root);
3655
- let ready = false;
3656
- $$.ctx = instance$96 ? instance$96(component, options.props || {}, (i, ret, ...rest) => {
3657
- const value = rest.length ? rest[0] : ret;
3658
- if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
3659
- if (!$$.skip_bound && $$.bound[i]) $$.bound[i](value);
3660
- if (ready) make_dirty(component, i);
3661
- }
3662
- return ret;
3663
- }) : [];
3664
- $$.update();
3665
- ready = true;
3666
- run_all($$.before_update);
3667
- $$.fragment = create_fragment$96 ? create_fragment$96($$.ctx) : false;
3668
- if (options.target) {
3669
- if (options.hydrate) {
3670
- start_hydrating();
3671
- const nodes = children(options.target);
3672
- $$.fragment && $$.fragment.l(nodes);
3673
- nodes.forEach(detach);
3674
- } else $$.fragment && $$.fragment.c();
3675
- if (options.intro) transition_in(component.$$.fragment);
3676
- mount_component(component, options.target, options.anchor, options.customElement);
3677
- end_hydrating();
3678
- flush();
3679
- }
3680
- set_current_component(parent_component);
3681
- }
3682
- let SvelteElement;
3683
- if (typeof HTMLElement === "function") SvelteElement = class extends HTMLElement {
3684
- constructor() {
3685
- super();
3686
- this.attachShadow({ mode: "open" });
3687
- }
3688
- connectedCallback() {
3689
- const { on_mount } = this.$$;
3690
- this.$$.on_disconnect = on_mount.map(run).filter(is_function);
3691
- for (const key in this.$$.slotted) this.appendChild(this.$$.slotted[key]);
3692
- }
3693
- attributeChangedCallback(attr$1, _oldValue, newValue) {
3694
- this[attr$1] = newValue;
3695
- }
3696
- disconnectedCallback() {
3697
- run_all(this.$$.on_disconnect);
3698
- }
3699
- $destroy() {
3700
- destroy_component(this, 1);
3701
- this.$destroy = noop;
3702
- }
3703
- $on(type, callback$5) {
3704
- if (!is_function(callback$5)) return noop;
3705
- const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
3706
- callbacks.push(callback$5);
3707
- return () => {
3708
- const index = callbacks.indexOf(callback$5);
3709
- if (index !== -1) callbacks.splice(index, 1);
3710
- };
3711
- }
3712
- $set($$props) {
3713
- if (this.$$set && !is_empty($$props)) {
3714
- this.$$.skip_bound = true;
3715
- this.$$set($$props);
3716
- this.$$.skip_bound = false;
3717
- }
3718
- }
3719
- };
3720
- /**
3721
- * Base class for Svelte components. Used when dev=false.
3722
- */
3723
- var SvelteComponent = class {
3724
- $destroy() {
3725
- destroy_component(this, 1);
3726
- this.$destroy = noop;
3727
- }
3728
- $on(type, callback$5) {
3729
- if (!is_function(callback$5)) return noop;
3730
- const callbacks = this.$$.callbacks[type] || (this.$$.callbacks[type] = []);
3731
- callbacks.push(callback$5);
3732
- return () => {
3733
- const index = callbacks.indexOf(callback$5);
3734
- if (index !== -1) callbacks.splice(index, 1);
3735
- };
3736
- }
3737
- $set($$props) {
3738
- if (this.$$set && !is_empty($$props)) {
3739
- this.$$.skip_bound = true;
3740
- this.$$set($$props);
3741
- this.$$.skip_bound = false;
3742
- }
3743
- }
3744
- };
3745
-
3746
3103
  //#endregion
3747
3104
  //#region src/components/Header.svelte
3748
3105
  function create_if_block$19(ctx) {
@@ -4350,8 +3707,8 @@ function create_fragment$92(ctx) {
4350
3707
  function instance$92($$self, $$props, $$invalidate) {
4351
3708
  let { backgroundOverlay = false } = $$props;
4352
3709
  let { class: className = void 0 } = $$props;
4353
- const dispatch$1 = createEventDispatcher();
4354
- const click_handler = () => dispatch$1("click");
3710
+ const dispatch = createEventDispatcher();
3711
+ const click_handler = () => dispatch("click");
4355
3712
  $$self.$$set = ($$props$1) => {
4356
3713
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
4357
3714
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
@@ -4359,7 +3716,7 @@ function instance$92($$self, $$props, $$invalidate) {
4359
3716
  return [
4360
3717
  backgroundOverlay,
4361
3718
  className,
4362
- dispatch$1,
3719
+ dispatch,
4363
3720
  click_handler
4364
3721
  ];
4365
3722
  }
@@ -7054,7 +6411,7 @@ function instance$80($$self, $$props, $$invalidate) {
7054
6411
  let { iv_load_policy = 1 } = $$props;
7055
6412
  let { list = "" } = $$props;
7056
6413
  let { listType = "" } = $$props;
7057
- let { loop: loop$1 = false } = $$props;
6414
+ let { loop = false } = $$props;
7058
6415
  let { modestbranding = false } = $$props;
7059
6416
  let { origin = "" } = $$props;
7060
6417
  let { playlist = "" } = $$props;
@@ -7135,7 +6492,7 @@ function instance$80($$self, $$props, $$invalidate) {
7135
6492
  enablejsapi: _bton(enablejsapi),
7136
6493
  fs: _bton(fs),
7137
6494
  iv_load_policy,
7138
- loop: _bton(loop$1),
6495
+ loop: _bton(loop),
7139
6496
  modestbranding: _bton(modestbranding),
7140
6497
  playsinline: _bton(playsinline),
7141
6498
  rel: _bton(rel)
@@ -7149,7 +6506,7 @@ function instance$80($$self, $$props, $$invalidate) {
7149
6506
  _setValue(playerVars, "origin", origin);
7150
6507
  _setValue(playerVars, "playlist", playlist);
7151
6508
  _setValue(playerVars, "widget_referrer", widget_referrer);
7152
- if (loop$1) {
6509
+ if (loop) {
7153
6510
  if (!playlist) playerVars.playlist = videoId;
7154
6511
  }
7155
6512
  if (end >= 0) playerVars.end = end;
@@ -7202,7 +6559,7 @@ function instance$80($$self, $$props, $$invalidate) {
7202
6559
  if ("iv_load_policy" in $$props$1) $$invalidate(14, iv_load_policy = $$props$1.iv_load_policy);
7203
6560
  if ("list" in $$props$1) $$invalidate(15, list = $$props$1.list);
7204
6561
  if ("listType" in $$props$1) $$invalidate(16, listType = $$props$1.listType);
7205
- if ("loop" in $$props$1) $$invalidate(17, loop$1 = $$props$1.loop);
6562
+ if ("loop" in $$props$1) $$invalidate(17, loop = $$props$1.loop);
7206
6563
  if ("modestbranding" in $$props$1) $$invalidate(18, modestbranding = $$props$1.modestbranding);
7207
6564
  if ("origin" in $$props$1) $$invalidate(19, origin = $$props$1.origin);
7208
6565
  if ("playlist" in $$props$1) $$invalidate(20, playlist = $$props$1.playlist);
@@ -7231,7 +6588,7 @@ function instance$80($$self, $$props, $$invalidate) {
7231
6588
  iv_load_policy,
7232
6589
  list,
7233
6590
  listType,
7234
- loop$1,
6591
+ loop,
7235
6592
  modestbranding,
7236
6593
  origin,
7237
6594
  playlist,
@@ -7325,7 +6682,7 @@ function instance$79($$self, $$props, $$invalidate) {
7325
6682
  let { videoId = "201239468" } = $$props;
7326
6683
  let { sendEvent = true } = $$props;
7327
6684
  let { autoplay = false } = $$props;
7328
- let { loop: loop$1 = false } = $$props;
6685
+ let { loop = false } = $$props;
7329
6686
  let { mute = false } = $$props;
7330
6687
  let { _style = "" } = $$props;
7331
6688
  if (!window.Vimeo) {
@@ -7382,7 +6739,7 @@ function instance$79($$self, $$props, $$invalidate) {
7382
6739
  const playerOptions = {
7383
6740
  id: videoId,
7384
6741
  autoplay,
7385
- loop: loop$1
6742
+ loop
7386
6743
  };
7387
6744
  player = new window.Vimeo.Player(domRef, playerOptions);
7388
6745
  player.on("play", onStart$1);
@@ -7411,7 +6768,7 @@ function instance$79($$self, $$props, $$invalidate) {
7411
6768
  if ("videoId" in $$props$1) $$invalidate(2, videoId = $$props$1.videoId);
7412
6769
  if ("sendEvent" in $$props$1) $$invalidate(3, sendEvent = $$props$1.sendEvent);
7413
6770
  if ("autoplay" in $$props$1) $$invalidate(4, autoplay = $$props$1.autoplay);
7414
- if ("loop" in $$props$1) $$invalidate(5, loop$1 = $$props$1.loop);
6771
+ if ("loop" in $$props$1) $$invalidate(5, loop = $$props$1.loop);
7415
6772
  if ("mute" in $$props$1) $$invalidate(6, mute = $$props$1.mute);
7416
6773
  if ("_style" in $$props$1) $$invalidate(0, _style = $$props$1._style);
7417
6774
  };
@@ -7421,7 +6778,7 @@ function instance$79($$self, $$props, $$invalidate) {
7421
6778
  videoId,
7422
6779
  sendEvent,
7423
6780
  autoplay,
7424
- loop$1,
6781
+ loop,
7425
6782
  mute,
7426
6783
  div0_binding
7427
6784
  ];
@@ -9611,7 +8968,7 @@ function instance$70($$self, $$props, $$invalidate) {
9611
8968
  let getNavigationItemInnerStyle;
9612
8969
  let navigationStyle;
9613
8970
  let { $$slots: slots = {}, $$scope } = $$props;
9614
- let { loop: loop$1 = false } = $$props;
8971
+ let { loop = false } = $$props;
9615
8972
  let { _style = "" } = $$props;
9616
8973
  let { nextButton = {
9617
8974
  type: "icon",
@@ -9648,7 +9005,7 @@ function instance$70($$self, $$props, $$invalidate) {
9648
9005
  edgeDirectionOffset: "0px"
9649
9006
  } } = $$props;
9650
9007
  let items = [];
9651
- const dispatch$1 = createEventDispatcher();
9008
+ const dispatch = createEventDispatcher();
9652
9009
  setContext("SLIDE", {
9653
9010
  registerItem: ({ onBeforeSlide, onMount: onMount$2, onResize }) => {
9654
9011
  const id = new Date().getTime().toString();
@@ -9712,7 +9069,7 @@ function instance$70($$self, $$props, $$invalidate) {
9712
9069
  else if (items.length - 1 < slideIndex) slideIndex = items.length - 1;
9713
9070
  $$invalidate(29, transitioning = true);
9714
9071
  $$invalidate(28, slidePosition = containerWidth * calcPositionIndex(shiftCount, slideIndex, items.length));
9715
- dispatch$1("change", { nextIndex: slideIndex });
9072
+ dispatch("change", { nextIndex: slideIndex });
9716
9073
  $$invalidate(27, currentSlideId = slideIndex);
9717
9074
  });
9718
9075
  }
@@ -9808,7 +9165,7 @@ function instance$70($$self, $$props, $$invalidate) {
9808
9165
  handleResize();
9809
9166
  });
9810
9167
  containerElementResizeObserver.observe(containerElement);
9811
- dispatch$1("mount", { itemsCount: items.length });
9168
+ dispatch("mount", { itemsCount: items.length });
9812
9169
  return () => {
9813
9170
  containerElement.removeEventListener("mousedown", handleMouseDown);
9814
9171
  containerElement.removeEventListener("mousemove", handleMouseMove);
@@ -9857,7 +9214,7 @@ function instance$70($$self, $$props, $$invalidate) {
9857
9214
  }
9858
9215
  const click_handler = (i) => set(i);
9859
9216
  $$self.$$set = ($$props$1) => {
9860
- if ("loop" in $$props$1) $$invalidate(18, loop$1 = $$props$1.loop);
9217
+ if ("loop" in $$props$1) $$invalidate(18, loop = $$props$1.loop);
9861
9218
  if ("_style" in $$props$1) $$invalidate(0, _style = $$props$1._style);
9862
9219
  if ("nextButton" in $$props$1) $$invalidate(19, nextButton = $$props$1.nextButton);
9863
9220
  if ("nextButtonContainerStyle" in $$props$1) $$invalidate(20, nextButtonContainerStyle = $$props$1.nextButtonContainerStyle);
@@ -9872,7 +9229,7 @@ function instance$70($$self, $$props, $$invalidate) {
9872
9229
  $$self.$$.update = () => {
9873
9230
  if ($$self.$$.dirty[0] & 268435456) $: $$invalidate(14, slideStyle = slidePosition != null ? `left: ${slidePosition}px;` : "");
9874
9231
  if ($$self.$$.dirty[0] & 536870912) $: $$invalidate(13, slideClass = ["slide", !isPreview() && transitioning ? "transition" : ""].join(" "));
9875
- if ($$self.$$.dirty[0] & 262146) $: $$invalidate(30, _loop = items.length >= 3 ? loop$1 : false);
9232
+ if ($$self.$$.dirty[0] & 262146) $: $$invalidate(30, _loop = items.length >= 3 ? loop : false);
9876
9233
  if ($$self.$$.dirty[0] & 1207959552) $: $$invalidate(12, isVisiblePrevButton = _loop || currentSlideId > 0);
9877
9234
  if ($$self.$$.dirty[0] & 1207959554) $: $$invalidate(11, isVisibleNextButton = _loop || currentSlideId < items.length - 1);
9878
9235
  if ($$self.$$.dirty[0] & 4194304) $: $$invalidate(10, prevIconStyle = prevButton.type === "icon" ? `height: ${prevButton.size}; fill: ${prevButton.color};` : "");
@@ -9915,7 +9272,7 @@ background-color: ${i === currentSlideId ? navigationButton.colorActive : naviga
9915
9272
  prev,
9916
9273
  next,
9917
9274
  set,
9918
- loop$1,
9275
+ loop,
9919
9276
  nextButton,
9920
9277
  nextButtonContainerStyle,
9921
9278
  nextButtonEdgePosition,
@@ -16407,10 +15764,10 @@ function instance$19($$self, $$props, $$invalidate) {
16407
15764
  if ((moved > 10 || moved < -10) && !isDragging) isDragging = true;
16408
15765
  };
16409
15766
  const handleTouchmove = (e) => {
16410
- const now$1 = performance.now();
16411
- if (now$1 - lastFrame < THROTTLE) return;
15767
+ const now = performance.now();
15768
+ if (now - lastFrame < THROTTLE) return;
16412
15769
  move(startX - e.touches[0].clientX);
16413
- lastFrame = now$1;
15770
+ lastFrame = now;
16414
15771
  };
16415
15772
  const handleTouchend = () => {
16416
15773
  if (movedX >= 32) toNext();
@@ -17460,8 +16817,8 @@ function create_fragment$14(ctx) {
17460
16817
  function instance$14($$self, $$props, $$invalidate) {
17461
16818
  let { backgroundOverlay = false } = $$props;
17462
16819
  let { class: className = void 0 } = $$props;
17463
- const dispatch$1 = createEventDispatcher();
17464
- const click_handler = () => dispatch$1("click");
16820
+ const dispatch = createEventDispatcher();
16821
+ const click_handler = () => dispatch("click");
17465
16822
  $$self.$$set = ($$props$1) => {
17466
16823
  if ("backgroundOverlay" in $$props$1) $$invalidate(0, backgroundOverlay = $$props$1.backgroundOverlay);
17467
16824
  if ("class" in $$props$1) $$invalidate(1, className = $$props$1.class);
@@ -17469,7 +16826,7 @@ function instance$14($$self, $$props, $$invalidate) {
17469
16826
  return [
17470
16827
  backgroundOverlay,
17471
16828
  className,
17472
- dispatch$1,
16829
+ dispatch,
17473
16830
  click_handler
17474
16831
  ];
17475
16832
  }