Merge pull request #1421 from sveltejs/unmount-destroy

[WIP] Unmount nodes in destroy methods
pull/1422/head
Rich Harris 8 years ago committed by GitHub
commit dc8b0d6be1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,8 +34,6 @@ export default class Block {
intro: CodeBuilder; intro: CodeBuilder;
update: CodeBuilder; update: CodeBuilder;
outro: CodeBuilder; outro: CodeBuilder;
unmount: CodeBuilder;
detachRaw: CodeBuilder;
destroy: CodeBuilder; destroy: CodeBuilder;
}; };
@ -73,8 +71,6 @@ export default class Block {
intro: new CodeBuilder(), intro: new CodeBuilder(),
update: new CodeBuilder(), update: new CodeBuilder(),
outro: new CodeBuilder(), outro: new CodeBuilder(),
unmount: new CodeBuilder(),
detachRaw: new CodeBuilder(),
destroy: new CodeBuilder(), destroy: new CodeBuilder(),
}; };
@ -103,7 +99,8 @@ export default class Block {
name: string, name: string,
renderStatement: string, renderStatement: string,
claimStatement: string, claimStatement: string,
parentNode: string parentNode: string,
noDetach?: boolean
) { ) {
this.addVariable(name); this.addVariable(name);
this.builders.create.addLine(`${name} = ${renderStatement};`); this.builders.create.addLine(`${name} = ${renderStatement};`);
@ -111,10 +108,10 @@ export default class Block {
if (parentNode) { if (parentNode) {
this.builders.mount.addLine(`@appendNode(${name}, ${parentNode});`); this.builders.mount.addLine(`@appendNode(${name}, ${parentNode});`);
if (parentNode === 'document.head') this.builders.unmount.addLine(`@detachNode(${name});`); if (parentNode === 'document.head') this.builders.destroy.addLine(`@detachNode(${name});`);
} else { } else {
this.builders.mount.addLine(`@insertNode(${name}, #target, anchor);`); this.builders.mount.addLine(`@insertNode(${name}, #target, anchor);`);
this.builders.unmount.addLine(`@detachNode(${name});`); if (!noDetach) this.builders.destroy.addConditional('detach', `@detachNode(${name});`);
} }
} }
@ -161,9 +158,6 @@ export default class Block {
this.builders.mount.addLine(`${this.autofocus}.focus();`); this.builders.mount.addLine(`${this.autofocus}.focus();`);
} }
// minor hack we need to ensure that any {{{triples}}} are detached first
this.builders.unmount.addBlockAtStart(this.builders.detachRaw.toString());
const properties = new CodeBuilder(); const properties = new CodeBuilder();
let localKey; let localKey;
@ -280,21 +274,11 @@ export default class Block {
} }
} }
if (this.builders.unmount.isEmpty()) {
properties.addBlock(`u: @noop,`);
} else {
properties.addBlock(deindent`
${dev ? 'u: function unmount' : 'u'}() {
${this.builders.unmount}
},
`);
}
if (this.builders.destroy.isEmpty()) { if (this.builders.destroy.isEmpty()) {
properties.addBlock(`d: @noop`); properties.addBlock(`d: @noop`);
} else { } else {
properties.addBlock(deindent` properties.addBlock(deindent`
${dev ? 'd: function destroy' : 'd'}() { ${dev ? 'd: function destroy' : 'd'}(detach) {
${this.builders.destroy} ${this.builders.destroy}
} }
`); `);

@ -124,7 +124,7 @@ export default function dom(
? `@proto` ? `@proto`
: deindent` : deindent`
{ {
${['destroy', 'get', 'fire', 'on', 'set', '_set', '_mount', '_unmount', '_differs'] ${['destroy', 'get', 'fire', 'on', 'set', '_set', '_mount', '_differs']
.map(n => `${n}: @${n}`) .map(n => `${n}: @${n}`)
.join(',\n')} .join(',\n')}
}`; }`;
@ -304,10 +304,6 @@ export default function dom(
@assign(${name}.prototype, { @assign(${name}.prototype, {
_mount(target, anchor) { _mount(target, anchor) {
target.insertBefore(this, anchor); target.insertBefore(this, anchor);
},
_unmount() {
this.parentNode.removeChild(this);
} }
}); });

@ -167,12 +167,8 @@ export default class AwaitBlock extends Node {
`); `);
} }
block.builders.unmount.addBlock(deindent`
${info}.block.u();
`);
block.builders.destroy.addBlock(deindent` block.builders.destroy.addBlock(deindent`
${info}.block.d(); ${info}.block.d(${parentNode ? '' : 'detach'});
${info} = null; ${info} = null;
`); `);

@ -430,9 +430,7 @@ export default class Component extends Node {
`); `);
} }
if (!parentNode) block.builders.unmount.addLine(`if (${name}) ${name}._unmount();`); block.builders.destroy.addLine(`if (${name}) ${name}.destroy(${parentNode ? '' : 'detach'});`);
block.builders.destroy.addLine(`if (${name}) ${name}.destroy(false);`);
} else { } else {
const expression = this.name === 'svelte:self' const expression = this.name === 'svelte:self'
? compiler.name ? compiler.name
@ -477,10 +475,8 @@ export default class Component extends Node {
`); `);
} }
if (!parentNode) block.builders.unmount.addLine(`${name}._unmount();`);
block.builders.destroy.addLine(deindent` block.builders.destroy.addLine(deindent`
${name}.destroy(false); ${name}.destroy(${parentNode ? '' : 'detach'});
${this.ref && `if (#component.refs.${this.ref} === ${name}) #component.refs.${this.ref} = null;`} ${this.ref && `if (#component.refs.${this.ref} === ${name}) #component.refs.${this.ref} = null;`}
`); `);
} }

@ -213,8 +213,7 @@ export default class EachBlock extends Node {
${each_block_else}.c(); ${each_block_else}.c();
${each_block_else}.${mountOrIntro}(${initialMountNode}, ${anchor}); ${each_block_else}.${mountOrIntro}(${initialMountNode}, ${anchor});
} else if (${each_block_else}) { } else if (${each_block_else}) {
${each_block_else}.u(); ${each_block_else}.d(1);
${each_block_else}.d();
${each_block_else} = null; ${each_block_else} = null;
} }
`); `);
@ -222,8 +221,7 @@ export default class EachBlock extends Node {
block.builders.update.addBlock(deindent` block.builders.update.addBlock(deindent`
if (${this.each_block_value}.${length}) { if (${this.each_block_value}.${length}) {
if (${each_block_else}) { if (${each_block_else}) {
${each_block_else}.u(); ${each_block_else}.d(1);
${each_block_else}.d();
${each_block_else} = null; ${each_block_else} = null;
} }
} else if (!${each_block_else}) { } else if (!${each_block_else}) {
@ -234,12 +232,8 @@ export default class EachBlock extends Node {
`); `);
} }
block.builders.unmount.addLine(
`if (${each_block_else}) ${each_block_else}.u()`
);
block.builders.destroy.addBlock(deindent` block.builders.destroy.addBlock(deindent`
if (${each_block_else}) ${each_block_else}.d(); if (${each_block_else}) ${each_block_else}.d(${parentNode ? '' : 'detach'});
`); `);
} }
@ -322,14 +316,8 @@ export default class EachBlock extends Node {
${blocks} = @updateKeyedEach(${blocks}, #component, changed, ${get_key}, ${dynamic ? '1' : '0'}, ctx, ${this.each_block_value}, ${lookup}, ${updateMountNode}, ${String(this.block.hasOutroMethod)}, ${create_each_block}, "${mountOrIntro}", ${anchor}, ${this.get_each_context}); ${blocks} = @updateKeyedEach(${blocks}, #component, changed, ${get_key}, ${dynamic ? '1' : '0'}, ctx, ${this.each_block_value}, ${lookup}, ${updateMountNode}, ${String(this.block.hasOutroMethod)}, ${create_each_block}, "${mountOrIntro}", ${anchor}, ${this.get_each_context});
`); `);
if (!parentNode) {
block.builders.unmount.addBlock(deindent`
for (#i = 0; #i < ${blocks}.length; #i += 1) ${blocks}[#i].u();
`);
}
block.builders.destroy.addBlock(deindent` block.builders.destroy.addBlock(deindent`
for (#i = 0; #i < ${blocks}.length; #i += 1) ${blocks}[#i].d(); for (#i = 0; #i < ${blocks}.length; #i += 1) ${blocks}[#i].d(${parentNode ? '' : 'detach'});
`); `);
} }
@ -424,8 +412,7 @@ export default class EachBlock extends Node {
function ${outro}(i) { function ${outro}(i) {
if (${iterations}[i]) { if (${iterations}[i]) {
${iterations}[i].o(function() { ${iterations}[i].o(function() {
${iterations}[i].u(); ${iterations}[i].d(1);
${iterations}[i].d();
${iterations}[i] = null; ${iterations}[i] = null;
}); });
} }
@ -435,8 +422,7 @@ export default class EachBlock extends Node {
` `
: deindent` : deindent`
for (; #i < ${iterations}.length; #i += 1) { for (; #i < ${iterations}.length; #i += 1) {
${iterations}[#i].u(); ${iterations}[#i].d(1);
${iterations}[#i].d();
} }
${iterations}.length = ${this.each_block_value}.${length}; ${iterations}.length = ${this.each_block_value}.${length};
`; `;
@ -456,13 +442,7 @@ export default class EachBlock extends Node {
`); `);
} }
block.builders.unmount.addBlock(deindent` block.builders.destroy.addBlock(`@destroyEach(${iterations}, detach);`);
for (var #i = 0; #i < ${iterations}.length; #i += 1) {
${iterations}[#i].u();
}
`);
block.builders.destroy.addBlock(`@destroyEach(${iterations});`);
} }
remount(name: string) { remount(name: string) {

@ -291,14 +291,14 @@ export default class Element extends Node {
); );
if (initialMountNode === 'document.head') { if (initialMountNode === 'document.head') {
block.builders.unmount.addLine(`@detachNode(${name});`); block.builders.destroy.addLine(`@detachNode(${name});`);
} }
} else { } else {
block.builders.mount.addLine(`@insertNode(${name}, #target, anchor);`); block.builders.mount.addLine(`@insertNode(${name}, #target, anchor);`);
// TODO we eventually need to consider what happens to elements // TODO we eventually need to consider what happens to elements
// that belong to the same outgroup as an outroing element... // that belong to the same outgroup as an outroing element...
block.builders.unmount.addLine(`@detachNode(${name});`); block.builders.destroy.addConditional('detach', `@detachNode(${name});`);
} }
// TODO move this into a class as well? // TODO move this into a class as well?
@ -503,7 +503,7 @@ export default class Element extends Node {
`${resize_listener} = @addResizeListener(${this.var}, ${handler});` `${resize_listener} = @addResizeListener(${this.var}, ${handler});`
); );
block.builders.unmount.addLine( block.builders.destroy.addLine(
`${resize_listener}.cancel();` `${resize_listener}.cancel();`
); );
} else { } else {

@ -192,13 +192,11 @@ export default class IfBlock extends Node {
const changeBlock = deindent` const changeBlock = deindent`
${hasElse ${hasElse
? deindent` ? deindent`
${name}.u(); ${name}.d(1);
${name}.d();
` `
: deindent` : deindent`
if (${name}) { if (${name}) {
${name}.u(); ${name}.d(1);
${name}.d();
}`} }`}
${name} = ${current_block_type_and}${current_block_type}(#component, ctx); ${name} = ${current_block_type_and}${current_block_type}(#component, ctx);
${if_name}${name}.c(); ${if_name}${name}.c();
@ -221,9 +219,7 @@ export default class IfBlock extends Node {
`); `);
} }
block.builders.unmount.addLine(`${if_name}${name}.u();`); block.builders.destroy.addLine(`${if_name}${name}.d(${parentNode ? '' : 'detach'});`);
block.builders.destroy.addLine(`${if_name}${name}.d();`);
} }
// if any of the siblings have outros, we need to keep references to the blocks // if any of the siblings have outros, we need to keep references to the blocks
@ -288,8 +284,7 @@ export default class IfBlock extends Node {
const destroyOldBlock = deindent` const destroyOldBlock = deindent`
${name}.o(function() { ${name}.o(function() {
${if_blocks}[ ${previous_block_index} ].u(); ${if_blocks}[ ${previous_block_index} ].d(1);
${if_blocks}[ ${previous_block_index} ].d();
${if_blocks}[ ${previous_block_index} ] = null; ${if_blocks}[ ${previous_block_index} ] = null;
}); });
`; `;
@ -343,8 +338,7 @@ export default class IfBlock extends Node {
block.builders.destroy.addLine(deindent` block.builders.destroy.addLine(deindent`
${if_current_block_type_index}{ ${if_current_block_type_index}{
${if_blocks}[${current_block_type_index}].u(); ${if_blocks}[${current_block_type_index}].d(${parentNode ? '' : 'detach'});
${if_blocks}[${current_block_type_index}].d();
} }
`); `);
} }
@ -413,14 +407,12 @@ export default class IfBlock extends Node {
const exit = branch.hasOutroMethod const exit = branch.hasOutroMethod
? deindent` ? deindent`
${name}.o(function() { ${name}.o(function() {
${name}.u(); ${name}.d(1);
${name}.d();
${name} = null; ${name} = null;
}); });
` `
: deindent` : deindent`
${name}.u(); ${name}.d(1);
${name}.d();
${name} = null; ${name} = null;
`; `;
@ -432,9 +424,7 @@ export default class IfBlock extends Node {
} }
`); `);
block.builders.unmount.addLine(`${if_name}${name}.u();`); block.builders.destroy.addLine(`${if_name}${name}.d(${parentNode ? '' : 'detach'});`);
block.builders.destroy.addLine(`${if_name}${name}.d();`);
} }
getBranches( getBranches(

@ -56,7 +56,8 @@ export default class RawMustacheTag extends Tag {
anchorBefore, anchorBefore,
`@createElement('noscript')`, `@createElement('noscript')`,
parentNodes && `@createElement('noscript')`, parentNodes && `@createElement('noscript')`,
parentNode parentNode,
true
); );
} }
@ -76,7 +77,12 @@ export default class RawMustacheTag extends Tag {
} }
block.builders.mount.addLine(insert(init)); block.builders.mount.addLine(insert(init));
block.builders.detachRaw.addBlock(detach);
if (!parentNode) {
block.builders.destroy.addConditional('detach', needsAnchorBefore
? `${detach}\n@detachNode(${anchorBefore});`
: detach);
}
if (needsAnchorAfter && anchorBefore !== 'null') { if (needsAnchorAfter && anchorBefore !== 'null') {
// ...otherwise it should go afterwards // ...otherwise it should go afterwards

@ -55,13 +55,12 @@ export default class Slot extends Element {
if (needsAnchorAfter) block.addVariable(anchorAfter); if (needsAnchorAfter) block.addVariable(anchorAfter);
let mountBefore = block.builders.mount.toString(); let mountBefore = block.builders.mount.toString();
let unmountBefore = block.builders.unmount.toString(); let destroyBefore = block.builders.destroy.toString();
block.builders.create.pushCondition(`!${content_name}`); block.builders.create.pushCondition(`!${content_name}`);
block.builders.hydrate.pushCondition(`!${content_name}`); block.builders.hydrate.pushCondition(`!${content_name}`);
block.builders.mount.pushCondition(`!${content_name}`); block.builders.mount.pushCondition(`!${content_name}`);
block.builders.update.pushCondition(`!${content_name}`); block.builders.update.pushCondition(`!${content_name}`);
block.builders.unmount.pushCondition(`!${content_name}`);
block.builders.destroy.pushCondition(`!${content_name}`); block.builders.destroy.pushCondition(`!${content_name}`);
this.children.forEach((child: Node) => { this.children.forEach((child: Node) => {
@ -72,7 +71,6 @@ export default class Slot extends Element {
block.builders.hydrate.popCondition(); block.builders.hydrate.popCondition();
block.builders.mount.popCondition(); block.builders.mount.popCondition();
block.builders.update.popCondition(); block.builders.update.popCondition();
block.builders.unmount.popCondition();
block.builders.destroy.popCondition(); block.builders.destroy.popCondition();
const mountLeadin = block.builders.mount.toString() !== mountBefore const mountLeadin = block.builders.mount.toString() !== mountBefore
@ -101,30 +99,30 @@ export default class Slot extends Element {
// so that it can be reinserted later // so that it can be reinserted later
// TODO so that this can work with public API, component._slotted should // TODO so that this can work with public API, component._slotted should
// be all fragments, derived from options.slots. Not === options.slots // be all fragments, derived from options.slots. Not === options.slots
const unmountLeadin = block.builders.unmount.toString() !== unmountBefore const unmountLeadin = block.builders.destroy.toString() !== destroyBefore
? `else` ? `else`
: `if (${content_name})`; : `if (${content_name})`;
if (anchorBefore === 'null' && anchorAfter === 'null') { if (anchorBefore === 'null' && anchorAfter === 'null') {
block.builders.unmount.addBlock(deindent` block.builders.destroy.addBlock(deindent`
${unmountLeadin} { ${unmountLeadin} {
@reinsertChildren(${parentNode}, ${content_name}); @reinsertChildren(${parentNode}, ${content_name});
} }
`); `);
} else if (anchorBefore === 'null') { } else if (anchorBefore === 'null') {
block.builders.unmount.addBlock(deindent` block.builders.destroy.addBlock(deindent`
${unmountLeadin} { ${unmountLeadin} {
@reinsertBefore(${anchorAfter}, ${content_name}); @reinsertBefore(${anchorAfter}, ${content_name});
} }
`); `);
} else if (anchorAfter === 'null') { } else if (anchorAfter === 'null') {
block.builders.unmount.addBlock(deindent` block.builders.destroy.addBlock(deindent`
${unmountLeadin} { ${unmountLeadin} {
@reinsertAfter(${anchorBefore}, ${content_name}); @reinsertAfter(${anchorBefore}, ${content_name});
} }
`); `);
} else { } else {
block.builders.unmount.addBlock(deindent` block.builders.destroy.addBlock(deindent`
${unmountLeadin} { ${unmountLeadin} {
@reinsertBetween(${anchorBefore}, ${anchorAfter}, ${content_name}); @reinsertBetween(${anchorBefore}, ${anchorAfter}, ${content_name});
@detachNode(${anchorBefore}); @detachNode(${anchorBefore});

@ -15,14 +15,12 @@ export function handlePromise(promise, info) {
if (info.blocks) { if (info.blocks) {
info.blocks.forEach((block, i) => { info.blocks.forEach((block, i) => {
if (i !== index && block) block.o(() => { if (i !== index && block) block.o(() => {
block.u(); block.d(1);
block.d();
info.blocks[i] = null; info.blocks[i] = null;
}); });
}); });
} else { } else {
info.block.u(); info.block.d(1);
info.block.d();
} }
block.c(); block.c();

@ -47,9 +47,9 @@ export function reinsertBefore(after, target) {
while (parent.firstChild !== after) target.appendChild(parent.firstChild); while (parent.firstChild !== after) target.appendChild(parent.firstChild);
} }
export function destroyEach(iterations) { export function destroyEach(iterations, detach) {
for (var i = 0; i < iterations.length; i += 1) { for (var i = 0; i < iterations.length; i += 1) {
if (iterations[i]) iterations[i].d(); if (iterations[i]) iterations[i].d(detach);
} }
} }

@ -17,8 +17,7 @@ export function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -133,10 +132,6 @@ export function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
export function _unmount() {
if (this._fragment) this._fragment.u();
}
export var PENDING = {}; export var PENDING = {};
export var SUCCESS = {}; export var SUCCESS = {};
export var FAILURE = {}; export var FAILURE = {};
@ -154,7 +149,6 @@ export var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -167,6 +161,5 @@ export var protoDev = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };

@ -1,6 +1,5 @@
export function destroyBlock(block, lookup) { export function destroyBlock(block, lookup) {
block.u(); block.d(1);
block.d();
lookup[block.key] = null; lookup[block.key] = null;
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -16,11 +16,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -57,16 +57,11 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
assign(Main.prototype, { assign(Main.prototype, {
_mount(target, anchor) { _mount(target, anchor) {
target.insertBefore(this, anchor); target.insertBefore(this, anchor);
},
_unmount() {
this.parentNode.removeChild(this);
} }
}); });
@ -107,8 +102,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -180,10 +174,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: function unmount() { d: function destroy(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -46,7 +46,6 @@ assign(Main.prototype, {
set: setDev, set: setDev,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -158,10 +157,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }
@ -175,8 +170,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
import Widget from './Widget.html'; import Widget from './Widget.html';
@ -20,12 +20,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
widget._unmount(); widget.destroy(detach);
},
d() {
widget.destroy(false);
} }
}; };
} }
@ -62,7 +58,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -93,8 +88,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -166,10 +160,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1 +1 @@
{"version":3,"file":"Main.js","sources":["../src/Main.html"],"sourcesContent":["<Widget/>\n\n<script>\n\timport Widget from './Widget.html';\n\n\texport default {\n\t\tcomponents: {\n\t\t\tWidget\n\t\t}\n\t};\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} {"version":3,"file":"Main.js","sources":["../src/Main.html"],"sourcesContent":["<Widget/>\n\n<script>\n\timport Widget from './Widget.html';\n\n\texport default {\n\t\tcomponents: {\n\t\t\tWidget\n\t\t}\n\t};\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

@ -1,4 +1,4 @@
/* src/Widget.html generated by Svelte v2.3.0 */ /* src/Widget.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Widget.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1 +1 @@
{"version":3,"file":"Widget.js","sources":["../src/Widget.html"],"sourcesContent":["<p>widget</p>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} {"version":3,"file":"Widget.js","sources":["../src/Widget.html"],"sourcesContent":["<p>widget</p>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
import Widget from './widget/Widget.html'; import Widget from './widget/Widget.html';
@ -20,12 +20,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
widget._unmount(); widget.destroy(detach);
},
d() {
widget.destroy(false);
} }
}; };
} }
@ -62,7 +58,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -93,8 +88,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -166,10 +160,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/widget/Widget.html generated by Svelte v2.3.0 */ /* src/widget/Widget.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Widget.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
import Widget from './Widget.html'; import Widget from './Widget.html';
@ -20,12 +20,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
widget._unmount(); widget.destroy(detach);
},
d() {
widget.destroy(false);
} }
}; };
} }
@ -62,7 +58,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -93,8 +88,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -166,10 +160,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/Widget.html generated by Svelte v2.3.0 */ /* src/Widget.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Widget.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
var Main = (function(answer) { "use strict"; var Main = (function(answer) { "use strict";
answer = (answer && answer.__esModule) ? answer["default"] : answer; answer = (answer && answer.__esModule) ? answer["default"] : answer;
@ -30,11 +30,11 @@ var Main = (function(answer) { "use strict";
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -58,7 +58,6 @@ var Main = (function(answer) { "use strict";
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -84,8 +83,6 @@ var Main = (function(answer) { "use strict";
node.parentNode.removeChild(node); node.parentNode.removeChild(node);
} }
function noop() {}
function init(component, options) { function init(component, options) {
component._handlers = blankObject(); component._handlers = blankObject();
component._bind = options._bind; component._bind = options._bind;
@ -105,8 +102,7 @@ var Main = (function(answer) { "use strict";
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -178,14 +174,12 @@ var Main = (function(answer) { "use strict";
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }
function noop() {}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }
@ -171,4 +165,4 @@ function callAll(fns) {
while (fns && fns.length) fns.shift()(); while (fns && fns.length) fns.shift()();
} }
export default Main; export default Main;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFpbi5qcyIsInNvdXJjZXMiOlsiLi4vc3JjL01haW4uaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8cD5IZWxsbyB3b3JsZCE8L3A+XG5cbjxzY3JpcHQ+XG5cdGV4cG9ydCBkZWZhdWx0IHtcblx0XHRvbnJlbmRlciAoKSB7XG5cdFx0XHRjb25zb2xlLmxvZyggJ2hlcmUnICk7XG5cdFx0fVxuXHR9O1xuPC9zY3JpcHQ+Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0= //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWFpbi5qcyIsInNvdXJjZXMiOlsiLi4vc3JjL01haW4uaHRtbCJdLCJzb3VyY2VzQ29udGVudCI6WyI8cD5IZWxsbyB3b3JsZCE8L3A+XG5cbjxzY3JpcHQ+XG5cdGV4cG9ydCBkZWZhdWx0IHtcblx0XHRvbnJlbmRlciAoKSB7XG5cdFx0XHRjb25zb2xlLmxvZyggJ2hlcmUnICk7XG5cdFx0fVxuXHR9O1xuPC9zY3JpcHQ+Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7In0=

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var p; var p;
@ -15,11 +15,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -43,7 +43,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -82,8 +81,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -155,10 +153,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }

@ -1 +1 @@
{"version":3,"file":"Main.js","sources":["../src/Main.html"],"sourcesContent":["<p>Hello world!</p>\n\n<script>\n\texport default {\n\t\tonrender () {\n\t\t\tconsole.log( 'here' );\n\t\t}\n\t};\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} {"version":3,"file":"Main.js","sources":["../src/Main.html"],"sourcesContent":["<p>Hello world!</p>\n\n<script>\n\texport default {\n\t\tonrender () {\n\t\t\tconsole.log( 'here' );\n\t\t}\n\t};\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}

@ -1,4 +1,4 @@
/* src/Main.html generated by Svelte v2.3.0 */ /* src/Main.html generated by Svelte v2.4.4 */
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var h1, text, text_1; var h1, text, text_1;
@ -22,11 +22,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(h1); detachNode(h1);
}, }
}
d: noop
}; };
} }
@ -53,7 +53,6 @@ assign(Main.prototype, {
set: set, set: set,
_set: _set, _set: _set,
_mount: _mount, _mount: _mount,
_unmount: _unmount,
_differs: _differs _differs: _differs
}); });
@ -79,8 +78,6 @@ function detachNode(node) {
node.parentNode.removeChild(node); node.parentNode.removeChild(node);
} }
function noop() {}
function init(component, options) { function init(component, options) {
component._handlers = blankObject(); component._handlers = blankObject();
component._bind = options._bind; component._bind = options._bind;
@ -104,8 +101,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -177,14 +173,12 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
function _differs(a, b) { function _differs(a, b) {
return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function');
} }
function noop() {}
function blankObject() { function blankObject() {
return Object.create(null); return Object.create(null);
} }

@ -26,8 +26,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -116,10 +115,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -129,7 +124,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -167,11 +161,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(a); detachNode(a);
}, }
d() {
if (typeof link_action.destroy === 'function') link_action.destroy.call(component); if (typeof link_action.destroy === 'function') link_action.destroy.call(component);
} }
}; };

@ -34,11 +34,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(a); detachNode(a);
}, }
d() {
if (typeof link_action.destroy === 'function') link_action.destroy.call(component); if (typeof link_action.destroy === 'function') link_action.destroy.call(component);
} }
}; };

@ -58,8 +58,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -148,10 +147,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -161,7 +156,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -188,12 +182,13 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
div_resize_listener.cancel(); }
},
d: noop div_resize_listener.cancel();
}
}; };
} }

@ -22,12 +22,13 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
div_resize_listener.cancel(); }
},
d: noop div_resize_listener.cancel();
}
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -124,10 +123,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -137,7 +132,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -174,11 +168,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createElement, createText, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { appendNode, assign, createElement, createText, detachNode, init, insertNode, proto } from "svelte/shared.js";
function data() { function data() {
return { foo: 42 } return { foo: 42 }
@ -33,11 +33,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -104,10 +103,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -117,7 +112,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -144,12 +138,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -22,12 +22,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -108,10 +107,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -121,7 +116,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -148,12 +142,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -22,12 +22,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -108,10 +107,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -121,7 +116,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -148,12 +142,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -22,12 +22,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -104,10 +103,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -117,7 +112,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -144,12 +138,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -22,12 +22,8 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
nested._unmount(); nested.destroy(detach);
},
d() {
nested.destroy(false);
} }
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -104,10 +103,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -117,7 +112,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -140,8 +134,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -18,8 +18,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -161,11 +155,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -23,11 +23,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -26,8 +26,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -116,10 +115,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -129,7 +124,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -151,11 +145,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }
@ -189,10 +183,6 @@ assign(SvelteComponent.prototype, proto);
assign(SvelteComponent.prototype, { assign(SvelteComponent.prototype, {
_mount(target, anchor) { _mount(target, anchor) {
target.insertBefore(this, anchor); target.insertBefore(this, anchor);
},
_unmount() {
this.parentNode.removeChild(this);
} }
}); });

@ -17,11 +17,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }
@ -55,10 +55,6 @@ assign(SvelteComponent.prototype, proto);
assign(SvelteComponent.prototype, { assign(SvelteComponent.prototype, {
_mount(target, anchor) { _mount(target, anchor) {
target.insertBefore(this, anchor); target.insertBefore(this, anchor);
},
_unmount() {
this.parentNode.removeChild(this);
} }
}); });

@ -17,9 +17,9 @@ function detachNode(node) {
node.parentNode.removeChild(node); node.parentNode.removeChild(node);
} }
function destroyEach(iterations) { function destroyEach(iterations, detach) {
for (var i = 0; i < iterations.length; i += 1) { for (var i = 0; i < iterations.length; i += 1) {
if (iterations[i]) iterations[i].d(); if (iterations[i]) iterations[i].d(detach);
} }
} }
@ -44,8 +44,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -134,10 +133,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -147,7 +142,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -198,23 +192,18 @@ function create_main_fragment(component, ctx) {
} }
for (; i < each_blocks.length; i += 1) { for (; i < each_blocks.length; i += 1) {
each_blocks[i].u(); each_blocks[i].d(1);
each_blocks[i].d();
} }
each_blocks.length = each_value.length; each_blocks.length = each_value.length;
} }
}, },
u() { d(detach) {
for (var i = 0; i < each_blocks.length; i += 1) { destroyEach(each_blocks, detach);
each_blocks[i].u();
}
if (detach) {
detachNode(each_anchor); detachNode(each_anchor);
}, }
d() {
destroyEach(each_blocks);
} }
}; };
} }
@ -240,11 +229,11 @@ function create_each_block(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(span); detachNode(span);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createComment, createElement, createText, destroyEach, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { appendNode, assign, createComment, createElement, createText, destroyEach, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var each_anchor; var each_anchor;
@ -46,23 +46,18 @@ function create_main_fragment(component, ctx) {
} }
for (; i < each_blocks.length; i += 1) { for (; i < each_blocks.length; i += 1) {
each_blocks[i].u(); each_blocks[i].d(1);
each_blocks[i].d();
} }
each_blocks.length = each_value.length; each_blocks.length = each_value.length;
} }
}, },
u() { d(detach) {
for (var i = 0; i < each_blocks.length; i += 1) { destroyEach(each_blocks, detach);
each_blocks[i].u();
}
if (detach) {
detachNode(each_anchor); detachNode(each_anchor);
}, }
d() {
destroyEach(each_blocks);
} }
}; };
} }
@ -88,11 +83,11 @@ function create_each_block(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(span); detachNode(span);
}, }
}
d: noop
}; };
} }

@ -19,8 +19,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -109,10 +108,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -122,7 +117,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -146,8 +140,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -20,8 +20,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -142,10 +141,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var protoDev = { var protoDev = {
destroy: destroyDev, destroy: destroyDev,
get, get,
@ -155,7 +150,6 @@ var protoDev = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -193,11 +187,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u: function unmount() { d: function destroy$$1(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createElement, createText, detachNode, init, insertNode, noop, protoDev } from "svelte/shared.js"; import { appendNode, assign, createElement, createText, detachNode, init, insertNode, protoDev } from "svelte/shared.js";
function bar({ foo }) { function bar({ foo }) {
return foo * 2; return foo * 2;
@ -33,11 +33,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u: function unmount() { d: function destroy(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -163,13 +157,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, createText, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { assign, createElement, createText, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div, text, div_1; var div, text, div_1;
@ -25,13 +25,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -124,10 +123,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -137,7 +132,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -167,13 +161,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, createText, detachNode, init, insertNode, noop, proto, setAttribute } from "svelte/shared.js"; import { assign, createElement, createText, detachNode, init, insertNode, proto, setAttribute } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div, text, div_1; var div, text, div_1;
@ -25,13 +25,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -124,10 +123,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -137,7 +132,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -167,11 +161,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(svg); detachNode(svg);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createSvgElement, detachNode, init, insertNode, noop, proto, setAttribute } from "svelte/shared.js"; import { appendNode, assign, createSvgElement, detachNode, init, insertNode, proto, setAttribute } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var svg, g, g_1; var svg, g, g_1;
@ -25,11 +25,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(svg); detachNode(svg);
}, }
}
d: noop
}; };
} }

@ -23,9 +23,9 @@ function detachAfter(before) {
} }
} }
function destroyEach(iterations) { function destroyEach(iterations, detach) {
for (var i = 0; i < iterations.length; i += 1) { for (var i = 0; i < iterations.length; i += 1) {
if (iterations[i]) iterations[i].d(); if (iterations[i]) iterations[i].d(detach);
} }
} }
@ -46,8 +46,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -136,10 +135,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -149,7 +144,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -204,8 +198,7 @@ function create_main_fragment(component, ctx) {
} }
for (; i < each_blocks.length; i += 1) { for (; i < each_blocks.length; i += 1) {
each_blocks[i].u(); each_blocks[i].d(1);
each_blocks[i].d();
} }
each_blocks.length = each_value.length; each_blocks.length = each_value.length;
} }
@ -215,17 +208,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
for (var i = 0; i < each_blocks.length; i += 1) { destroyEach(each_blocks, detach);
each_blocks[i].u();
}
if (detach) {
detachNode(text); detachNode(text);
detachNode(p); detachNode(p);
}, }
d() {
destroyEach(each_blocks);
} }
}; };
} }
@ -281,13 +270,11 @@ function create_each_block(component, ctx) {
} }
}, },
u() { d(detach) {
detachAfter(raw_before); if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createElement, createText, destroyEach, detachAfter, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { appendNode, assign, createElement, createText, destroyEach, detachAfter, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var text, p, text_1; var text, p, text_1;
@ -50,8 +50,7 @@ function create_main_fragment(component, ctx) {
} }
for (; i < each_blocks.length; i += 1) { for (; i < each_blocks.length; i += 1) {
each_blocks[i].u(); each_blocks[i].d(1);
each_blocks[i].d();
} }
each_blocks.length = each_value.length; each_blocks.length = each_value.length;
} }
@ -61,17 +60,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
for (var i = 0; i < each_blocks.length; i += 1) { destroyEach(each_blocks, detach);
each_blocks[i].u();
}
if (detach) {
detachNode(text); detachNode(text);
detachNode(p); detachNode(p);
}, }
d() {
destroyEach(each_blocks);
} }
}; };
} }
@ -127,13 +122,11 @@ function create_each_block(component, ctx) {
} }
}, },
u() { d(detach) {
detachAfter(raw_before); if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -26,8 +26,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -116,10 +115,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -129,7 +124,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -165,11 +159,11 @@ function create_main_fragment(component, ctx) {
}, },
u() { d(detach) {
if (detach) {
detachNode(button); detachNode(button);
}, }
d() {
foo_handler.destroy(); foo_handler.destroy();
} }
}; };

@ -32,11 +32,11 @@ function create_main_fragment(component, ctx) {
}, },
u() { d(detach) {
if (detach) {
detachNode(button); detachNode(button);
}, }
d() {
foo_handler.destroy(); foo_handler.destroy();
} }
}; };

@ -26,8 +26,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -116,10 +115,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -129,7 +124,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -155,12 +149,10 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
detachNode(meta); detachNode(meta);
detachNode(meta_1); detachNode(meta_1);
}, }
d: noop
}; };
} }

@ -21,12 +21,10 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
detachNode(meta); detachNode(meta);
detachNode(meta_1); detachNode(meta_1);
}, }
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -163,21 +157,18 @@ function create_main_fragment(component, ctx) {
p(changed, ctx) { p(changed, ctx) {
if (current_block_type !== (current_block_type = select_block_type(ctx))) { if (current_block_type !== (current_block_type = select_block_type(ctx))) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = current_block_type(component, ctx); if_block = current_block_type(component, ctx);
if_block.c(); if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor); if_block.m(if_block_anchor.parentNode, if_block_anchor);
} }
}, },
u() { d(detach) {
if_block.u(); if_block.d(detach);
if (detach) {
detachNode(if_block_anchor); detachNode(if_block_anchor);
}, }
d() {
if_block.d();
} }
}; };
} }
@ -196,11 +187,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -218,11 +209,11 @@ function create_if_block_1(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createComment, createElement, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { assign, createComment, createElement, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var if_block_anchor; var if_block_anchor;
@ -25,21 +25,18 @@ function create_main_fragment(component, ctx) {
p(changed, ctx) { p(changed, ctx) {
if (current_block_type !== (current_block_type = select_block_type(ctx))) { if (current_block_type !== (current_block_type = select_block_type(ctx))) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = current_block_type(component, ctx); if_block = current_block_type(component, ctx);
if_block.c(); if_block.c();
if_block.m(if_block_anchor.parentNode, if_block_anchor); if_block.m(if_block_anchor.parentNode, if_block_anchor);
} }
}, },
u() { d(detach) {
if_block.u(); if_block.d(detach);
if (detach) {
detachNode(if_block_anchor); detachNode(if_block_anchor);
}, }
d() {
if_block.d();
} }
}; };
} }
@ -58,11 +55,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -80,11 +77,11 @@ function create_if_block_1(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -163,19 +157,16 @@ function create_main_fragment(component, ctx) {
if_block.m(if_block_anchor.parentNode, if_block_anchor); if_block.m(if_block_anchor.parentNode, if_block_anchor);
} }
} else if (if_block) { } else if (if_block) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = null; if_block = null;
} }
}, },
u() { d(detach) {
if (if_block) if_block.u(); if (if_block) if_block.d(detach);
if (detach) {
detachNode(if_block_anchor); detachNode(if_block_anchor);
}, }
d() {
if (if_block) if_block.d();
} }
}; };
} }
@ -194,11 +185,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createComment, createElement, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { assign, createComment, createElement, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var if_block_anchor; var if_block_anchor;
@ -25,19 +25,16 @@ function create_main_fragment(component, ctx) {
if_block.m(if_block_anchor.parentNode, if_block_anchor); if_block.m(if_block_anchor.parentNode, if_block_anchor);
} }
} else if (if_block) { } else if (if_block) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = null; if_block = null;
} }
}, },
u() { d(detach) {
if (if_block) if_block.u(); if (if_block) if_block.d(detach);
if (detach) {
detachNode(if_block_anchor); detachNode(if_block_anchor);
}, }
d() {
if (if_block) if_block.d();
} }
}; };
} }
@ -56,11 +53,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -163,11 +157,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, detachNode, init, insertNode, noop, proto, setStyle } from "svelte/shared.js"; import { assign, createElement, detachNode, init, insertNode, proto, setStyle } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div; var div;
@ -25,11 +25,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -158,11 +152,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, detachNode, init, insertNode, noop, proto, setStyle } from "svelte/shared.js"; import { assign, createElement, detachNode, init, insertNode, proto, setStyle } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div; var div;
@ -20,11 +20,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -158,11 +152,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, detachNode, init, insertNode, noop, proto, setStyle } from "svelte/shared.js"; import { assign, createElement, detachNode, init, insertNode, proto, setStyle } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div; var div;
@ -20,11 +20,11 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
}, }
}
d: noop
}; };
} }

@ -30,8 +30,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -120,10 +119,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -133,7 +128,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -167,13 +161,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { assign, createElement, createText, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { assign, createElement, createText, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div, text, div_1, div_1_style_value; var div, text, div_1, div_1_style_value;
@ -29,13 +29,13 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
detachNode(text); detachNode(text);
detachNode(div_1); detachNode(div_1);
}, }
}
d: noop
}; };
} }

@ -38,8 +38,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -128,10 +127,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -141,7 +136,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -171,11 +165,11 @@ function create_main_fragment(component, ctx) {
input.checked = ctx.foo; input.checked = ctx.foo;
}, },
u() { d(detach) {
if (detach) {
detachNode(input); detachNode(input);
}, }
d() {
removeListener(input, "change", input_change_handler); removeListener(input, "change", input_change_handler);
} }
}; };

@ -25,11 +25,11 @@ function create_main_fragment(component, ctx) {
input.checked = ctx.foo; input.checked = ctx.foo;
}, },
u() { d(detach) {
if (detach) {
detachNode(input); detachNode(input);
}, }
d() {
removeListener(input, "change", input_change_handler); removeListener(input, "change", input_change_handler);
} }
}; };

@ -32,8 +32,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -122,10 +121,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -135,7 +130,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -156,11 +150,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(input); detachNode(input);
}, }
}
d: noop
}; };
} }

@ -16,11 +16,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(input); detachNode(input);
}, }
}
d: noop
}; };
} }

@ -42,8 +42,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -132,10 +131,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -145,7 +140,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -214,11 +208,11 @@ function create_main_fragment(component, ctx) {
if (!audio_updating && !isNaN(ctx.volume)) audio.volume = ctx.volume; if (!audio_updating && !isNaN(ctx.volume)) audio.volume = ctx.volume;
}, },
u() { d(detach) {
if (detach) {
detachNode(audio); detachNode(audio);
}, }
d() {
removeListener(audio, "timeupdate", audio_timeupdate_handler); removeListener(audio, "timeupdate", audio_timeupdate_handler);
removeListener(audio, "durationchange", audio_durationchange_handler); removeListener(audio, "durationchange", audio_durationchange_handler);
removeListener(audio, "play", audio_play_pause_handler); removeListener(audio, "play", audio_play_pause_handler);

@ -64,11 +64,11 @@ function create_main_fragment(component, ctx) {
if (!audio_updating && !isNaN(ctx.volume)) audio.volume = ctx.volume; if (!audio_updating && !isNaN(ctx.volume)) audio.volume = ctx.volume;
}, },
u() { d(detach) {
if (detach) {
detachNode(audio); detachNode(audio);
}, }
d() {
removeListener(audio, "timeupdate", audio_timeupdate_handler); removeListener(audio, "timeupdate", audio_timeupdate_handler);
removeListener(audio, "durationchange", audio_durationchange_handler); removeListener(audio, "durationchange", audio_durationchange_handler);
removeListener(audio, "play", audio_play_pause_handler); removeListener(audio, "play", audio_play_pause_handler);

@ -28,8 +28,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -118,10 +117,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -131,7 +126,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -165,15 +159,13 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
imported._unmount(); imported.destroy(detach);
if (detach) {
detachNode(text); detachNode(text);
nonimported._unmount(); }
},
d() { nonimported.destroy(detach);
imported.destroy(false);
nonimported.destroy(false);
} }
}; };
} }

@ -30,15 +30,13 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
imported._unmount(); imported.destroy(detach);
if (detach) {
detachNode(text); detachNode(text);
nonimported._unmount(); }
},
d() { nonimported.destroy(detach);
imported.destroy(false);
nonimported.destroy(false);
} }
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -104,10 +103,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -117,7 +112,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -148,8 +142,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -26,8 +26,6 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u: noop,
d: noop d: noop
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -124,10 +123,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -137,7 +132,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -161,11 +155,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(svg); detachNode(svg);
}, }
}
d: noop
}; };
} }

@ -19,11 +19,11 @@ function create_main_fragment(component, ctx) {
p: noop, p: noop,
u() { d(detach) {
if (detach) {
detachNode(svg); detachNode(svg);
}, }
}
d: noop
}; };
} }

@ -14,8 +14,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -104,10 +103,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -117,7 +112,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -139,8 +133,6 @@ function create_main_fragment(component, ctx) {
} }
}, },
u: noop,
d: noop d: noop
}; };
} }

@ -17,8 +17,6 @@ function create_main_fragment(component, ctx) {
} }
}, },
u: noop,
d: noop d: noop
}; };
} }

@ -38,8 +38,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -128,10 +127,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -141,7 +136,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -207,8 +201,7 @@ function create_main_fragment(component, ctx) {
if_block.m(div, text); if_block.m(div, text);
} }
} else if (if_block) { } else if (if_block) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = null; if_block = null;
} }
@ -219,8 +212,7 @@ function create_main_fragment(component, ctx) {
if_block_1.m(div, text_3); if_block_1.m(div, text_3);
} }
} else if (if_block_1) { } else if (if_block_1) {
if_block_1.u(); if_block_1.d(1);
if_block_1.d();
if_block_1 = null; if_block_1 = null;
} }
@ -231,8 +223,7 @@ function create_main_fragment(component, ctx) {
if_block_2.m(div, text_4); if_block_2.m(div, text_4);
} }
} else if (if_block_2) { } else if (if_block_2) {
if_block_2.u(); if_block_2.d(1);
if_block_2.d();
if_block_2 = null; if_block_2 = null;
} }
@ -243,8 +234,7 @@ function create_main_fragment(component, ctx) {
if_block_3.m(div, null); if_block_3.m(div, null);
} }
} else if (if_block_3) { } else if (if_block_3) {
if_block_3.u(); if_block_3.d(1);
if_block_3.d();
if_block_3 = null; if_block_3 = null;
} }
@ -255,29 +245,28 @@ function create_main_fragment(component, ctx) {
if_block_4.m(if_block_4_anchor.parentNode, if_block_4_anchor); if_block_4.m(if_block_4_anchor.parentNode, if_block_4_anchor);
} }
} else if (if_block_4) { } else if (if_block_4) {
if_block_4.u(); if_block_4.d(1);
if_block_4.d();
if_block_4 = null; if_block_4 = null;
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
if (if_block) if_block.u(); }
if (if_block_1) if_block_1.u();
if (if_block_2) if_block_2.u();
if (if_block_3) if_block_3.u();
detachNode(text_8);
if (if_block_4) if_block_4.u();
detachNode(if_block_4_anchor);
},
d() {
if (if_block) if_block.d(); if (if_block) if_block.d();
if (if_block_1) if_block_1.d(); if (if_block_1) if_block_1.d();
if (if_block_2) if_block_2.d(); if (if_block_2) if_block_2.d();
if (if_block_3) if_block_3.d(); if (if_block_3) if_block_3.d();
if (if_block_4) if_block_4.d(); if (detach) {
detachNode(text_8);
}
if (if_block_4) if_block_4.d(detach);
if (detach) {
detachNode(if_block_4_anchor);
}
} }
}; };
} }
@ -296,11 +285,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -318,11 +307,11 @@ function create_if_block_1(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -340,11 +329,11 @@ function create_if_block_2(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -362,11 +351,11 @@ function create_if_block_3(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -384,11 +373,11 @@ function create_if_block_4(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -1,5 +1,5 @@
/* generated by Svelte vX.Y.Z */ /* generated by Svelte vX.Y.Z */
import { appendNode, assign, createComment, createElement, createText, detachNode, init, insertNode, noop, proto } from "svelte/shared.js"; import { appendNode, assign, createComment, createElement, createText, detachNode, init, insertNode, proto } from "svelte/shared.js";
function create_main_fragment(component, ctx) { function create_main_fragment(component, ctx) {
var div, text, p, text_2, text_3, text_4, p_1, text_6, text_8, if_block_4_anchor; var div, text, p, text_2, text_3, text_4, p_1, text_6, text_8, if_block_4_anchor;
@ -61,8 +61,7 @@ function create_main_fragment(component, ctx) {
if_block.m(div, text); if_block.m(div, text);
} }
} else if (if_block) { } else if (if_block) {
if_block.u(); if_block.d(1);
if_block.d();
if_block = null; if_block = null;
} }
@ -73,8 +72,7 @@ function create_main_fragment(component, ctx) {
if_block_1.m(div, text_3); if_block_1.m(div, text_3);
} }
} else if (if_block_1) { } else if (if_block_1) {
if_block_1.u(); if_block_1.d(1);
if_block_1.d();
if_block_1 = null; if_block_1 = null;
} }
@ -85,8 +83,7 @@ function create_main_fragment(component, ctx) {
if_block_2.m(div, text_4); if_block_2.m(div, text_4);
} }
} else if (if_block_2) { } else if (if_block_2) {
if_block_2.u(); if_block_2.d(1);
if_block_2.d();
if_block_2 = null; if_block_2 = null;
} }
@ -97,8 +94,7 @@ function create_main_fragment(component, ctx) {
if_block_3.m(div, null); if_block_3.m(div, null);
} }
} else if (if_block_3) { } else if (if_block_3) {
if_block_3.u(); if_block_3.d(1);
if_block_3.d();
if_block_3 = null; if_block_3 = null;
} }
@ -109,29 +105,28 @@ function create_main_fragment(component, ctx) {
if_block_4.m(if_block_4_anchor.parentNode, if_block_4_anchor); if_block_4.m(if_block_4_anchor.parentNode, if_block_4_anchor);
} }
} else if (if_block_4) { } else if (if_block_4) {
if_block_4.u(); if_block_4.d(1);
if_block_4.d();
if_block_4 = null; if_block_4 = null;
} }
}, },
u() { d(detach) {
if (detach) {
detachNode(div); detachNode(div);
if (if_block) if_block.u(); }
if (if_block_1) if_block_1.u();
if (if_block_2) if_block_2.u();
if (if_block_3) if_block_3.u();
detachNode(text_8);
if (if_block_4) if_block_4.u();
detachNode(if_block_4_anchor);
},
d() {
if (if_block) if_block.d(); if (if_block) if_block.d();
if (if_block_1) if_block_1.d(); if (if_block_1) if_block_1.d();
if (if_block_2) if_block_2.d(); if (if_block_2) if_block_2.d();
if (if_block_3) if_block_3.d(); if (if_block_3) if_block_3.d();
if (if_block_4) if_block_4.d(); if (detach) {
detachNode(text_8);
}
if (if_block_4) if_block_4.d(detach);
if (detach) {
detachNode(if_block_4_anchor);
}
} }
}; };
} }
@ -150,11 +145,11 @@ function create_if_block(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -172,11 +167,11 @@ function create_if_block_1(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -194,11 +189,11 @@ function create_if_block_2(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -216,11 +211,11 @@ function create_if_block_3(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }
@ -238,11 +233,11 @@ function create_if_block_4(component, ctx) {
insertNode(p, target, anchor); insertNode(p, target, anchor);
}, },
u() { d(detach) {
if (detach) {
detachNode(p); detachNode(p);
}, }
}
d: noop
}; };
} }

@ -34,8 +34,7 @@ function destroy(detach) {
this.fire('destroy'); this.fire('destroy');
this.set = noop; this.set = noop;
if (detach !== false) this._fragment.u(); this._fragment.d(detach !== false);
this._fragment.d();
this._fragment = null; this._fragment = null;
this._state = {}; this._state = {};
} }
@ -124,10 +123,6 @@ function _mount(target, anchor) {
this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null); this._fragment[this._fragment.i ? 'i' : 'm'](target, anchor || null);
} }
function _unmount() {
if (this._fragment) this._fragment.u();
}
var proto = { var proto = {
destroy, destroy,
get, get,
@ -137,7 +132,6 @@ var proto = {
_recompute: noop, _recompute: noop,
_set, _set,
_mount, _mount,
_unmount,
_differs _differs
}; };
@ -185,12 +179,12 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
detachNode(p);
},
d() {
window.removeEventListener("scroll", onwindowscroll); window.removeEventListener("scroll", onwindowscroll);
if (detach) {
detachNode(p);
}
} }
}; };
} }

@ -43,12 +43,12 @@ function create_main_fragment(component, ctx) {
} }
}, },
u() { d(detach) {
detachNode(p);
},
d() {
window.removeEventListener("scroll", onwindowscroll); window.removeEventListener("scroll", onwindowscroll);
if (detach) {
detachNode(p);
}
} }
}; };
} }

@ -1,11 +1,11 @@
{#if show} {#if show}
{#await thePromise} {#await thePromise}
<p>loading...</p> <p>loading...</p>
{:then theValue} {:then theValue}
<p>the value is {theValue}</p> <p>the value is {theValue}</p>
{:catch theError} {:catch theError}
<p>oh no! {theError.message}</p> <p>oh no! {theError.message}</p>
{/await} {/await}
{:else} {:else}
<p>Else</p> <p>Else</p>
{/if} {/if}

Loading…
Cancel
Save