shuffle things around slightly

pull/1359/head
Rich Harris 8 years ago
parent ca65638bf1
commit 6cb91559ef

@ -357,7 +357,6 @@ export default function dom(
customElements.define("${generator.tag}", ${name}); customElements.define("${generator.tag}", ${name});
`); `);
} else { } else {
// TODO assign non-function-expression methods
builder.addBlock(deindent` builder.addBlock(deindent`
class ${name} extends @Component { class ${name} extends @Component {
constructor(options) { constructor(options) {

@ -0,0 +1,46 @@
import { _differsImmutable } from './utils.js';
export function blankObject() {
return Object.create(null);
}
export class Base {
constructor() {
this._handlers = blankObject();
}
fire(eventName, data) {
const handlers = eventName in this._handlers && this._handlers[eventName].slice();
if (!handlers) return;
for (let i = 0; i < handlers.length; i += 1) {
const handler = handlers[i];
if (!handler.__calling) {
handler.__calling = true;
handler.call(this, data);
handler.__calling = false;
}
}
}
get() {
return this._state;
}
on(eventName, handler) {
const handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler);
return {
cancel: function() {
const index = handlers.indexOf(handler);
if (~index) handlers.splice(index, 1);
}
};
}
_differs(a, b) {
return _differsImmutable(a, b) || ((a && typeof a === 'object') || typeof a === 'function');
}
}

@ -0,0 +1,107 @@
import { Base } from './Base.js';
import { assign, callAll, noop } from './utils.js';
export class Component extends Base {
constructor(options) {
super();
this._init(options);
}
destroy(detach) {
this.destroy = noop;
this.fire('destroy');
this.set = this.get = noop;
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
}
set(newState) {
this._set(assign({}, newState));
if (this.root._lock) return;
this.root._lock = true;
callAll(this.root._beforecreate);
callAll(this.root._oncreate);
callAll(this.root._aftercreate);
this.root._lock = false;
}
_init(options) {
this._bind = options._bind;
this._slotted = options.slots || {};
this.options = options;
this.root = options.root || this;
this.store = this.root.store || options.store;
if (!options.root) {
this._oncreate = [];
this._beforecreate = [];
this._aftercreate = [];
}
this.refs = {};
this.slots = {};
}
_set(newState) {
const previous = this._state;
const changed = {};
let dirty = false;
for (var key in newState) {
if (this._differs(newState[key], previous[key])) changed[key] = dirty = 1;
}
if (!dirty) return;
this._state = assign(assign({}, previous), newState);
this._recompute(changed, this._state);
if (this._bind) this._bind(changed, this._state);
if (this._fragment) {
this.fire("state", { changed, current: this._state, previous });
this._fragment.p(changed, this._state);
this.fire("update", { changed, current: this._state, previous });
}
}
_mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
}
_recompute() {}
_unmount() {
if (this._fragment) this._fragment.u();
}
}
export class ComponentDev extends Component {
constructor(options) {
if (!options || (!options.target && !options.root)) {
throw new Error(`'target' is a required option`);
}
super(options);
}
destroy(detach) {
super.destroy(detach);
this.destroy = () => {
console.warn('Component was already destroyed');
};
}
set(newState) {
if (typeof newState !== 'object') {
throw new Error(`${this._debugName}.set was called without an object of data key-values to update.`);
}
this._checkReadOnly(newState);
super.set(newState);
}
_checkReadOnly() {}
}

@ -0,0 +1,5 @@
class SvelteElement extends HTMLElement {
constructor(options) {
}
}

@ -5,7 +5,7 @@ const acorn = require('acorn');
const declarations = {}; const declarations = {};
fs.readdirSync(__dirname).forEach(file => { fs.readdirSync(__dirname).forEach(file => {
if (!/^[a-z\-]+\.js$/.test(file)) return; if (!/^[a-z\-]+\.js$/i.test(file)) return;
const source = fs.readFileSync(path.join(__dirname, file), 'utf-8'); const source = fs.readFileSync(path.join(__dirname, file), 'utf-8');
const ast = acorn.parse(source, { const ast = acorn.parse(source, {

@ -5,177 +5,5 @@ export * from './keyed-each.js';
export * from './spread.js'; export * from './spread.js';
export * from './transitions.js'; export * from './transitions.js';
export * from './utils.js'; export * from './utils.js';
export * from './Base.js';
export function blankObject() { export * from './Component.js';
return Object.create(null);
}
export class Base {
constructor() {
this._handlers = blankObject();
}
fire(eventName, data) {
const handlers = eventName in this._handlers && this._handlers[eventName].slice();
if (!handlers) return;
for (let i = 0; i < handlers.length; i += 1) {
const handler = handlers[i];
if (!handler.__calling) {
handler.__calling = true;
handler.call(this, data);
handler.__calling = false;
}
}
}
get() {
return this._state;
}
on(eventName, handler) {
const handlers = this._handlers[eventName] || (this._handlers[eventName] = []);
handlers.push(handler);
return {
cancel: function() {
const index = handlers.indexOf(handler);
if (~index) handlers.splice(index, 1);
}
};
}
_differs(a, b) {
return _differsImmutable(a, b) || ((a && typeof a === 'object') || typeof a === 'function');
}
}
export class Component extends Base {
constructor(options) {
super();
this._init(options);
}
destroy(detach) {
this.destroy = noop;
this.fire('destroy');
this.set = this.get = noop;
if (detach !== false) this._fragment.u();
this._fragment.d();
this._fragment = this._state = null;
}
set(newState) {
this._set(assign({}, newState));
if (this.root._lock) return;
this.root._lock = true;
callAll(this.root._beforecreate);
callAll(this.root._oncreate);
callAll(this.root._aftercreate);
this.root._lock = false;
}
_init(options) {
this._bind = options._bind;
this._slotted = options.slots || {};
this.options = options;
this.root = options.root || this;
this.store = this.root.store || options.store;
if (!options.root) {
this._oncreate = [];
this._beforecreate = [];
this._aftercreate = [];
}
this.refs = {};
this.slots = {};
}
_set(newState) {
const previous = this._state;
const changed = {};
let dirty = false;
for (var key in newState) {
if (this._differs(newState[key], previous[key])) changed[key] = dirty = 1;
}
if (!dirty) return;
this._state = assign(assign({}, previous), newState);
this._recompute(changed, this._state);
if (this._bind) this._bind(changed, this._state);
if (this._fragment) {
this.fire("state", { changed, current: this._state, previous });
this._fragment.p(changed, this._state);
this.fire("update", { changed, current: this._state, previous });
}
}
_mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
}
_recompute() {}
_unmount() {
if (this._fragment) this._fragment.u();
}
}
export class ComponentDev extends Component {
constructor(options) {
if (!options || (!options.target && !options.root)) {
throw new Error(`'target' is a required option`);
}
super(options);
}
destroy(detach) {
super.destroy(detach);
this.destroy = () => {
console.warn('Component was already destroyed');
};
}
set(newState) {
if (typeof newState !== 'object') {
throw new Error(`${this._debugName}.set was called without an object of data key-values to update.`);
}
this._checkReadOnly(newState);
super.set(newState);
}
_checkReadOnly() {}
}
export function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
export function run(fn) {
fn();
}
export function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
export function isPromise(value) {
return value && typeof value.then === 'function';
}
export var PENDING = {};
export var SUCCESS = {};
export var FAILURE = {};
export function removeFromStore() {
this.store._remove(this);
}

@ -4,3 +4,27 @@ export function assign(tar, src) {
for (var k in src) tar[k] = src[k]; for (var k in src) tar[k] = src[k];
return tar; return tar;
} }
export function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
export function run(fn) {
fn();
}
export function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
export function isPromise(value) {
return value && typeof value.then === 'function';
}
export var PENDING = {};
export var SUCCESS = {};
export var FAILURE = {};
export function removeFromStore() {
this.store._remove(this);
}

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -139,14 +147,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function link(node) { function link(node) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -147,14 +155,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function data() { function data() {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
var Nested = window.Nested; var Nested = window.Nested;

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
var Nested = window.Nested; var Nested = window.Nested;

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
var Nested = window.Nested; var Nested = window.Nested;

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function a({ x }) { function a({ x }) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function add_css() { function add_css() {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -139,14 +147,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -157,14 +165,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function data_1() { function data_1() {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -175,14 +183,6 @@ class ComponentDev extends Component {
_checkReadOnly() {} _checkReadOnly() {}
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function bar({ foo }) { function bar({ foo }) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -147,14 +155,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -147,14 +155,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -159,14 +167,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -139,14 +147,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function foo( node, callback ) { function foo( node, callback ) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -139,14 +147,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -143,14 +151,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -151,14 +159,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -145,14 +153,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -155,14 +163,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function foo() { function foo() {

@ -7,6 +7,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function insertNode(node, target, anchor) { function insertNode(node, target, anchor) {
target.insertBefore(node, anchor); target.insertBefore(node, anchor);
} }
@ -141,14 +149,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function setup(Component$$1) { function setup(Component$$1) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -147,14 +155,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }
@ -127,14 +135,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -151,14 +159,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

@ -5,6 +5,14 @@ function assign(tar, src) {
return tar; return tar;
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
function appendNode(node, target) { function appendNode(node, target) {
target.appendChild(node); target.appendChild(node);
} }
@ -147,14 +155,6 @@ class Component extends Base {
} }
} }
function _differsImmutable(a, b) {
return a != a ? b == b : a !== b;
}
function callAll(fns) {
while (fns && fns.length) fns.shift()();
}
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
function create_main_fragment(component, state) { function create_main_fragment(component, state) {

Loading…
Cancel
Save