|
|
@ -37,6 +37,10 @@ function createComment() {
|
|
|
|
return document.createComment('');
|
|
|
|
return document.createComment('');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function blankObject() {
|
|
|
|
|
|
|
|
return Object.create(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function destroy(detach) {
|
|
|
|
function destroy(detach) {
|
|
|
|
this.destroy = noop;
|
|
|
|
this.destroy = noop;
|
|
|
|
this.fire('destroy');
|
|
|
|
this.fire('destroy');
|
|
|
@ -72,10 +76,6 @@ function dispatchObservers(component, group, changed, newState, oldState) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function get(key) {
|
|
|
|
|
|
|
|
return key ? this._state[key] : this._state;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function fire(eventName, data) {
|
|
|
|
function fire(eventName, data) {
|
|
|
|
var handlers =
|
|
|
|
var handlers =
|
|
|
|
eventName in this._handlers && this._handlers[eventName].slice();
|
|
|
|
eventName in this._handlers && this._handlers[eventName].slice();
|
|
|
@ -86,6 +86,20 @@ function fire(eventName, data) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function get(key) {
|
|
|
|
|
|
|
|
return key ? this._state[key] : this._state;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function init(component, options) {
|
|
|
|
|
|
|
|
component.options = options;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
component._observers = { pre: blankObject(), post: blankObject() };
|
|
|
|
|
|
|
|
component._handlers = blankObject();
|
|
|
|
|
|
|
|
component._root = options._root || component;
|
|
|
|
|
|
|
|
component._yield = options._yield;
|
|
|
|
|
|
|
|
component._bind = options._bind;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function observe(key, callback, options) {
|
|
|
|
function observe(key, callback, options) {
|
|
|
|
var group = options && options.defer
|
|
|
|
var group = options && options.defer
|
|
|
|
? this._observers.post
|
|
|
|
? this._observers.post
|
|
|
@ -175,7 +189,7 @@ var proto = {
|
|
|
|
_unmount: _unmount
|
|
|
|
_unmount: _unmount
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* generated by Svelte v1.39.2 */
|
|
|
|
/* generated by Svelte v1.39.3 */
|
|
|
|
|
|
|
|
|
|
|
|
function create_main_fragment(state, component) {
|
|
|
|
function create_main_fragment(state, component) {
|
|
|
|
var div, text, p, text_1, text_2, text_3, text_4, p_1, text_5, text_6, text_8, if_block_4_anchor;
|
|
|
|
var div, text, p, text_1, text_2, text_3, text_4, p_1, text_5, text_6, text_8, if_block_4_anchor;
|
|
|
@ -430,20 +444,9 @@ function create_if_block_4(state, component) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function SvelteComponent(options) {
|
|
|
|
function SvelteComponent(options) {
|
|
|
|
this.options = options;
|
|
|
|
init(this, options);
|
|
|
|
this._state = options.data || {};
|
|
|
|
this._state = options.data || {};
|
|
|
|
|
|
|
|
|
|
|
|
this._observers = {
|
|
|
|
|
|
|
|
pre: Object.create(null),
|
|
|
|
|
|
|
|
post: Object.create(null)
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._handlers = Object.create(null);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._root = options._root || this;
|
|
|
|
|
|
|
|
this._yield = options._yield;
|
|
|
|
|
|
|
|
this._bind = options._bind;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this._fragment = create_main_fragment(this._state, this);
|
|
|
|
this._fragment = create_main_fragment(this._state, this);
|
|
|
|
|
|
|
|
|
|
|
|
if (options.target) {
|
|
|
|
if (options.target) {
|
|
|
|