sample-cross-fx 1.8.3-beta.7865 → 1.8.3-beta.7909
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/{index.736be3.js → index.30c0a3.js} +1256 -524
- package/app/{index.736be3.js.map → index.30c0a3.js.map} +1 -1
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +21 -21
|
@@ -64765,7 +64765,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
64765
64765
|
|
|
64766
64766
|
|
|
64767
64767
|
function fillDependencies(deps) {
|
|
64768
|
-
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.
|
|
64768
|
+
deps['sample-cross-fx']={};deps["@angular/common"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/common@16.2.9"]=_node_modules_angular_common_fesm2022_common_mjs__WEBPACK_IMPORTED_MODULE_19__;deps["@angular/compiler"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/compiler@16.2.9"]=_node_modules_angular_compiler_fesm2022_compiler_mjs__WEBPACK_IMPORTED_MODULE_0__;deps["@angular/core"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/core@16.2.9"]=_node_modules_angular_core_fesm2022_core_mjs__WEBPACK_IMPORTED_MODULE_20__;deps["@angular/platform-browser"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser@16.2.9"]=_node_modules_angular_platform_browser_fesm2022_platform_browser_mjs__WEBPACK_IMPORTED_MODULE_21__;deps["@angular/platform-browser-dynamic"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@angular/platform-browser-dynamic@16.2.9"]=_node_modules_angular_platform_browser_dynamic_fesm2022_platform_browser_dynamic_mjs__WEBPACK_IMPORTED_MODULE_22__;deps["@webcomponents/webcomponentsjs"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["@webcomponents/webcomponentsjs@2.6.0"]=_node_modules_webcomponents_webcomponentsjs_webcomponents_bundle_js__WEBPACK_IMPORTED_MODULE_1__;deps["angular"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["angular@1.8.3"]=_node_modules_angular_index_js__WEBPACK_IMPORTED_MODULE_2__;deps["aurelia-framework"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-framework@1.4.1"]=_node_modules_aurelia_framework_dist_native_modules_aurelia_framework_js__WEBPACK_IMPORTED_MODULE_3__;deps["aurelia-templating-binding"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-binding@1.6.0"]=_samples_sample_cross_fx_node_modules_aurelia_templating_binding_dist_native_modules_aurelia_templating_binding_js__WEBPACK_IMPORTED_MODULE_4__;deps["aurelia-templating-resources"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-templating-resources@1.14.3"]=_samples_sample_cross_fx_node_modules_aurelia_templating_resources_dist_native_modules_aurelia_templating_resources_js__WEBPACK_IMPORTED_MODULE_5__;deps["aurelia-pal-browser"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-pal-browser@1.8.1"]=_node_modules_aurelia_pal_browser_dist_es2015_aurelia_pal_browser_js__WEBPACK_IMPORTED_MODULE_6__;deps["aurelia-event-aggregator"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-event-aggregator@1.0.3"]=_node_modules_aurelia_event_aggregator_dist_native_modules_aurelia_event_aggregator_js__WEBPACK_IMPORTED_MODULE_7__;deps["aurelia-history-browser"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["aurelia-history-browser@1.4.0"]=_node_modules_aurelia_history_browser_dist_native_modules_aurelia_history_browser_js__WEBPACK_IMPORTED_MODULE_8__;deps["hyperapp"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["hyperapp@1.2.10"]=_node_modules_hyperapp_src_index_js__WEBPACK_IMPORTED_MODULE_9__;deps["inferno"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno@7.4.11"]=_node_modules_inferno_index_esm_js__WEBPACK_IMPORTED_MODULE_10__;deps["inferno-create-element"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["inferno-create-element@7.4.11"]=_node_modules_inferno_create_element_dist_index_esm_js__WEBPACK_IMPORTED_MODULE_11__;deps["mithril"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["mithril@2.2.2"]=_samples_sample_cross_fx_node_modules_mithril_index_js__WEBPACK_IMPORTED_MODULE_12__;deps["lit-element"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["lit-element@2.5.1"]=_node_modules_lit_element_lit_element_js__WEBPACK_IMPORTED_MODULE_13__;deps["solid-js"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js@1.9.4"]=_node_modules_solid_js_dist_dev_js__WEBPACK_IMPORTED_MODULE_23__;deps["solid-js/web"]=_node_modules_solid_js_web_dist_dev_js__WEBPACK_IMPORTED_MODULE_24__;deps["piral-ng/common"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng/common@1.8.3-beta.7909"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng@1.8.3-beta.7909"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["preact"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["preact@10.18.1"]=_node_modules_preact_dist_preact_module_js__WEBPACK_IMPORTED_MODULE_14__;deps["riot"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["riot@4.14.0"]=_node_modules_riot_riot_esm_js__WEBPACK_IMPORTED_MODULE_15__;deps["rxjs"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["rxjs@7.5.6"]=_node_modules_rxjs_dist_esm5_index_js__WEBPACK_IMPORTED_MODULE_26__;deps["vue"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["vue@2.7.14"]=_node_modules_vue_dist_vue_runtime_esm_js__WEBPACK_IMPORTED_MODULE_27__;deps["zone.js"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["zone.js@0.13.3"]=_node_modules_zone_js_fesm2015_zone_js__WEBPACK_IMPORTED_MODULE_16__;deps["tslib"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["tslib@2.5.2"]=_node_modules_tslib_tslib_es6_js__WEBPACK_IMPORTED_MODULE_28__;deps["react"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react@18.2.0"]=_node_modules_react_index_js__WEBPACK_IMPORTED_MODULE_17__;deps["react-dom"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-dom@18.2.0"]=/*#__PURE__*/ (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache || (_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18___namespace_cache = __webpack_require__.t(_node_modules_react_dom_index_js__WEBPACK_IMPORTED_MODULE_18__, 2)));deps["react-router"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router@5.3.4"]=_node_modules_react_router_esm_react_router_js__WEBPACK_IMPORTED_MODULE_29__;deps["react-router-dom"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__;deps["react-router-dom@5.3.4"]=_node_modules_react_router_dom_esm_react_router_dom_js__WEBPACK_IMPORTED_MODULE_30__
|
|
64769
64769
|
}
|
|
64770
64770
|
|
|
64771
64771
|
|
|
@@ -136617,9 +136617,15 @@ if (typeof window !== 'undefined' && 'customElements' in window) {
|
|
|
136617
136617
|
get name() {
|
|
136618
136618
|
return this.getAttribute('name');
|
|
136619
136619
|
}
|
|
136620
|
+
set name(value) {
|
|
136621
|
+
this.setAttribute('name', value);
|
|
136622
|
+
}
|
|
136620
136623
|
get origin() {
|
|
136621
136624
|
return this.getAttribute('origin');
|
|
136622
136625
|
}
|
|
136626
|
+
set origin(value) {
|
|
136627
|
+
this.setAttribute('origin', value);
|
|
136628
|
+
}
|
|
136623
136629
|
connectedCallback() {
|
|
136624
136630
|
(0,_app_codegen__WEBPACK_IMPORTED_MODULE_3__.applyStyle)(this);
|
|
136625
136631
|
this.deferEvent('add-component');
|
|
@@ -138261,12 +138267,12 @@ function installPiralDebug(options) {
|
|
|
138261
138267
|
debug: debugApiVersion,
|
|
138262
138268
|
instance: {
|
|
138263
138269
|
name: "sample-cross-fx",
|
|
138264
|
-
version: "1.8.3-beta.
|
|
138270
|
+
version: "1.8.3-beta.7909",
|
|
138265
138271
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/web,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
138266
138272
|
},
|
|
138267
138273
|
build: {
|
|
138268
|
-
date: "2025-
|
|
138269
|
-
cli: "1.8.3-beta.
|
|
138274
|
+
date: "2025-03-11T20:17:12.402Z",
|
|
138275
|
+
cli: "1.8.3-beta.7909",
|
|
138270
138276
|
compat: "1"
|
|
138271
138277
|
}
|
|
138272
138278
|
};
|
|
@@ -223675,9 +223681,11 @@ function enqueue(taskQueue, task) {
|
|
|
223675
223681
|
let m = 0;
|
|
223676
223682
|
let n = taskQueue.length - 1;
|
|
223677
223683
|
while (m <= n) {
|
|
223678
|
-
const k = n + m >> 1;
|
|
223684
|
+
const k = (n + m) >> 1;
|
|
223679
223685
|
const cmp = task.expirationTime - taskQueue[k].expirationTime;
|
|
223680
|
-
if (cmp > 0) m = k + 1;
|
|
223686
|
+
if (cmp > 0) m = k + 1;
|
|
223687
|
+
else if (cmp < 0) n = k - 1;
|
|
223688
|
+
else return k;
|
|
223681
223689
|
}
|
|
223682
223690
|
return m;
|
|
223683
223691
|
}
|
|
@@ -223739,21 +223747,35 @@ function workLoop(hasTimeRemaining, initialTime) {
|
|
|
223739
223747
|
|
|
223740
223748
|
const sharedConfig = {
|
|
223741
223749
|
context: undefined,
|
|
223742
|
-
registry: undefined
|
|
223750
|
+
registry: undefined,
|
|
223751
|
+
effects: undefined,
|
|
223752
|
+
done: false,
|
|
223753
|
+
getContextId() {
|
|
223754
|
+
return getContextId(this.context.count);
|
|
223755
|
+
},
|
|
223756
|
+
getNextContextId() {
|
|
223757
|
+
return getContextId(this.context.count++);
|
|
223758
|
+
}
|
|
223743
223759
|
};
|
|
223760
|
+
function getContextId(count) {
|
|
223761
|
+
const num = String(count),
|
|
223762
|
+
len = num.length - 1;
|
|
223763
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
223764
|
+
}
|
|
223744
223765
|
function setHydrateContext(context) {
|
|
223745
223766
|
sharedConfig.context = context;
|
|
223746
223767
|
}
|
|
223747
223768
|
function nextHydrateContext() {
|
|
223748
223769
|
return {
|
|
223749
223770
|
...sharedConfig.context,
|
|
223750
|
-
id:
|
|
223771
|
+
id: sharedConfig.getNextContextId(),
|
|
223751
223772
|
count: 0
|
|
223752
223773
|
};
|
|
223753
223774
|
}
|
|
223754
223775
|
|
|
223755
223776
|
const equalFn = (a, b) => a === b;
|
|
223756
223777
|
const $PROXY = Symbol("solid-proxy");
|
|
223778
|
+
const SUPPORTS_PROXY = typeof Proxy === "function";
|
|
223757
223779
|
const $TRACK = Symbol("solid-track");
|
|
223758
223780
|
const $DEVCOMP = Symbol("solid-dev-component");
|
|
223759
223781
|
const signalOptions = {
|
|
@@ -223773,35 +223795,40 @@ const NO_INIT = {};
|
|
|
223773
223795
|
var Owner = null;
|
|
223774
223796
|
let Transition = null;
|
|
223775
223797
|
let Scheduler = null;
|
|
223776
|
-
let
|
|
223798
|
+
let ExternalSourceConfig = null;
|
|
223777
223799
|
let Listener = null;
|
|
223778
223800
|
let Updates = null;
|
|
223779
223801
|
let Effects = null;
|
|
223780
223802
|
let ExecCount = 0;
|
|
223781
223803
|
const DevHooks = {
|
|
223782
223804
|
afterUpdate: null,
|
|
223783
|
-
afterCreateOwner: null
|
|
223805
|
+
afterCreateOwner: null,
|
|
223806
|
+
afterCreateSignal: null
|
|
223784
223807
|
};
|
|
223785
|
-
const [transPending, setTransPending] = /*@__PURE__*/createSignal(false);
|
|
223786
223808
|
function createRoot(fn, detachedOwner) {
|
|
223787
223809
|
const listener = Listener,
|
|
223788
223810
|
owner = Owner,
|
|
223789
223811
|
unowned = fn.length === 0,
|
|
223790
223812
|
current = detachedOwner === undefined ? owner : detachedOwner,
|
|
223791
|
-
root = unowned
|
|
223792
|
-
|
|
223793
|
-
|
|
223794
|
-
|
|
223795
|
-
|
|
223796
|
-
|
|
223797
|
-
|
|
223798
|
-
|
|
223799
|
-
|
|
223800
|
-
|
|
223801
|
-
|
|
223802
|
-
|
|
223803
|
-
|
|
223804
|
-
|
|
223813
|
+
root = unowned
|
|
223814
|
+
? {
|
|
223815
|
+
owned: null,
|
|
223816
|
+
cleanups: null,
|
|
223817
|
+
context: null,
|
|
223818
|
+
owner: null
|
|
223819
|
+
}
|
|
223820
|
+
: {
|
|
223821
|
+
owned: null,
|
|
223822
|
+
cleanups: null,
|
|
223823
|
+
context: current ? current.context : null,
|
|
223824
|
+
owner: current
|
|
223825
|
+
},
|
|
223826
|
+
updateFn = unowned
|
|
223827
|
+
? () =>
|
|
223828
|
+
fn(() => {
|
|
223829
|
+
throw new Error("Dispose method must be an explicit argument to createRoot function");
|
|
223830
|
+
})
|
|
223831
|
+
: () => fn(() => untrack(() => cleanNode(root)));
|
|
223805
223832
|
DevHooks.afterCreateOwner && DevHooks.afterCreateOwner(root);
|
|
223806
223833
|
Owner = root;
|
|
223807
223834
|
Listener = null;
|
|
@@ -223820,29 +223847,33 @@ function createSignal(value, options) {
|
|
|
223820
223847
|
observerSlots: null,
|
|
223821
223848
|
comparator: options.equals || undefined
|
|
223822
223849
|
};
|
|
223823
|
-
|
|
223850
|
+
{
|
|
223824
223851
|
if (options.name) s.name = options.name;
|
|
223825
|
-
|
|
223852
|
+
if (DevHooks.afterCreateSignal) DevHooks.afterCreateSignal(s);
|
|
223853
|
+
if (!options.internal) registerGraph(s);
|
|
223826
223854
|
}
|
|
223827
223855
|
const setter = value => {
|
|
223828
223856
|
if (typeof value === "function") {
|
|
223829
|
-
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
|
|
223857
|
+
if (Transition && Transition.running && Transition.sources.has(s)) value = value(s.tValue);
|
|
223858
|
+
else value = value(s.value);
|
|
223830
223859
|
}
|
|
223831
223860
|
return writeSignal(s, value);
|
|
223832
223861
|
};
|
|
223833
223862
|
return [readSignal.bind(s), setter];
|
|
223834
223863
|
}
|
|
223835
223864
|
function createComputed(fn, value, options) {
|
|
223836
|
-
const c = createComputation(fn, value, true, STALE, options
|
|
223837
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223865
|
+
const c = createComputation(fn, value, true, STALE, options);
|
|
223866
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223867
|
+
else updateComputation(c);
|
|
223838
223868
|
}
|
|
223839
223869
|
function createRenderEffect(fn, value, options) {
|
|
223840
|
-
const c = createComputation(fn, value, false, STALE, options
|
|
223841
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223870
|
+
const c = createComputation(fn, value, false, STALE, options);
|
|
223871
|
+
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
223872
|
+
else updateComputation(c);
|
|
223842
223873
|
}
|
|
223843
223874
|
function createEffect(fn, value, options) {
|
|
223844
223875
|
runEffects = runUserEffects;
|
|
223845
|
-
const c = createComputation(fn, value, false, STALE, options
|
|
223876
|
+
const c = createComputation(fn, value, false, STALE, options),
|
|
223846
223877
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
223847
223878
|
if (s) c.suspense = s;
|
|
223848
223879
|
if (!options || !options.render) c.user = true;
|
|
@@ -223850,10 +223881,16 @@ function createEffect(fn, value, options) {
|
|
|
223850
223881
|
}
|
|
223851
223882
|
function createReaction(onInvalidate, options) {
|
|
223852
223883
|
let fn;
|
|
223853
|
-
const c = createComputation(
|
|
223854
|
-
|
|
223855
|
-
|
|
223856
|
-
|
|
223884
|
+
const c = createComputation(
|
|
223885
|
+
() => {
|
|
223886
|
+
fn ? fn() : untrack(onInvalidate);
|
|
223887
|
+
fn = undefined;
|
|
223888
|
+
},
|
|
223889
|
+
undefined,
|
|
223890
|
+
false,
|
|
223891
|
+
0,
|
|
223892
|
+
options
|
|
223893
|
+
),
|
|
223857
223894
|
s = SuspenseContext && useContext(SuspenseContext);
|
|
223858
223895
|
if (s) c.suspense = s;
|
|
223859
223896
|
c.user = true;
|
|
@@ -223864,7 +223901,7 @@ function createReaction(onInvalidate, options) {
|
|
|
223864
223901
|
}
|
|
223865
223902
|
function createMemo(fn, value, options) {
|
|
223866
223903
|
options = options ? Object.assign({}, signalOptions, options) : signalOptions;
|
|
223867
|
-
const c = createComputation(fn, value, true, 0, options
|
|
223904
|
+
const c = createComputation(fn, value, true, 0, options);
|
|
223868
223905
|
c.observers = null;
|
|
223869
223906
|
c.observerSlots = null;
|
|
223870
223907
|
c.comparator = options.equals || undefined;
|
|
@@ -223881,21 +223918,21 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223881
223918
|
let source;
|
|
223882
223919
|
let fetcher;
|
|
223883
223920
|
let options;
|
|
223884
|
-
if (
|
|
223885
|
-
source = true;
|
|
223886
|
-
fetcher = pSource;
|
|
223887
|
-
options = pFetcher || {};
|
|
223888
|
-
} else {
|
|
223921
|
+
if (typeof pFetcher === "function") {
|
|
223889
223922
|
source = pSource;
|
|
223890
223923
|
fetcher = pFetcher;
|
|
223891
223924
|
options = pOptions || {};
|
|
223925
|
+
} else {
|
|
223926
|
+
source = true;
|
|
223927
|
+
fetcher = pSource;
|
|
223928
|
+
options = pFetcher || {};
|
|
223892
223929
|
}
|
|
223893
223930
|
let pr = null,
|
|
223894
223931
|
initP = NO_INIT,
|
|
223895
223932
|
id = null,
|
|
223896
223933
|
loadedUnderTransition = false,
|
|
223897
223934
|
scheduled = false,
|
|
223898
|
-
resolved =
|
|
223935
|
+
resolved = "initialValue" in options,
|
|
223899
223936
|
dynamic = typeof source === "function" && createMemo(source);
|
|
223900
223937
|
const contexts = new Set(),
|
|
223901
223938
|
[value, setValue] = (options.storage || createSignal)(options.initialValue),
|
|
@@ -223905,17 +223942,20 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223905
223942
|
}),
|
|
223906
223943
|
[state, setState] = createSignal(resolved ? "ready" : "unresolved");
|
|
223907
223944
|
if (sharedConfig.context) {
|
|
223908
|
-
id =
|
|
223909
|
-
|
|
223910
|
-
|
|
223945
|
+
id = sharedConfig.getNextContextId();
|
|
223946
|
+
if (options.ssrLoadFrom === "initial") initP = options.initialValue;
|
|
223947
|
+
else if (sharedConfig.load && sharedConfig.has(id)) initP = sharedConfig.load(id);
|
|
223911
223948
|
}
|
|
223912
223949
|
function loadEnd(p, v, error, key) {
|
|
223913
223950
|
if (pr === p) {
|
|
223914
223951
|
pr = null;
|
|
223915
223952
|
key !== undefined && (resolved = true);
|
|
223916
|
-
if ((p === initP || v === initP) && options.onHydrated)
|
|
223917
|
-
|
|
223918
|
-
|
|
223953
|
+
if ((p === initP || v === initP) && options.onHydrated)
|
|
223954
|
+
queueMicrotask(() =>
|
|
223955
|
+
options.onHydrated(key, {
|
|
223956
|
+
value: v
|
|
223957
|
+
})
|
|
223958
|
+
);
|
|
223919
223959
|
initP = NO_INIT;
|
|
223920
223960
|
if (Transition && p && loadedUnderTransition) {
|
|
223921
223961
|
Transition.promises.delete(p);
|
|
@@ -223946,7 +223986,8 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223946
223986
|
createComputed(() => {
|
|
223947
223987
|
track();
|
|
223948
223988
|
if (pr) {
|
|
223949
|
-
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
223989
|
+
if (c.resolved && Transition && loadedUnderTransition) Transition.promises.add(pr);
|
|
223990
|
+
else if (!contexts.has(c)) {
|
|
223950
223991
|
c.increment();
|
|
223951
223992
|
contexts.add(c);
|
|
223952
223993
|
}
|
|
@@ -223965,26 +224006,35 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
223965
224006
|
return;
|
|
223966
224007
|
}
|
|
223967
224008
|
if (Transition && pr) Transition.promises.delete(pr);
|
|
223968
|
-
const p =
|
|
223969
|
-
|
|
223970
|
-
|
|
223971
|
-
|
|
224009
|
+
const p =
|
|
224010
|
+
initP !== NO_INIT
|
|
224011
|
+
? initP
|
|
224012
|
+
: untrack(() =>
|
|
224013
|
+
fetcher(lookup, {
|
|
224014
|
+
value: value(),
|
|
224015
|
+
refetching
|
|
224016
|
+
})
|
|
224017
|
+
);
|
|
223972
224018
|
if (!isPromise(p)) {
|
|
223973
224019
|
loadEnd(pr, p, undefined, lookup);
|
|
223974
224020
|
return p;
|
|
223975
224021
|
}
|
|
224022
|
+
pr = p;
|
|
223976
224023
|
if ("value" in p) {
|
|
223977
|
-
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
|
|
224024
|
+
if (p.status === "success") loadEnd(pr, p.value, undefined, lookup);
|
|
224025
|
+
else loadEnd(pr, undefined, castError(p.value), lookup);
|
|
223978
224026
|
return p;
|
|
223979
224027
|
}
|
|
223980
|
-
pr = p;
|
|
223981
224028
|
scheduled = true;
|
|
223982
|
-
queueMicrotask(() => scheduled = false);
|
|
224029
|
+
queueMicrotask(() => (scheduled = false));
|
|
223983
224030
|
runUpdates(() => {
|
|
223984
224031
|
setState(resolved ? "refreshing" : "pending");
|
|
223985
224032
|
trigger();
|
|
223986
224033
|
}, false);
|
|
223987
|
-
return p.then(
|
|
224034
|
+
return p.then(
|
|
224035
|
+
v => loadEnd(p, v, undefined, lookup),
|
|
224036
|
+
e => loadEnd(p, undefined, castError(e), lookup)
|
|
224037
|
+
);
|
|
223988
224038
|
}
|
|
223989
224039
|
Object.defineProperties(read, {
|
|
223990
224040
|
state: {
|
|
@@ -224008,60 +224058,92 @@ function createResource(pSource, pFetcher, pOptions) {
|
|
|
224008
224058
|
}
|
|
224009
224059
|
}
|
|
224010
224060
|
});
|
|
224011
|
-
if (dynamic) createComputed(() => load(false));
|
|
224012
|
-
|
|
224013
|
-
|
|
224014
|
-
|
|
224015
|
-
|
|
224061
|
+
if (dynamic) createComputed(() => load(false));
|
|
224062
|
+
else load(false);
|
|
224063
|
+
return [
|
|
224064
|
+
read,
|
|
224065
|
+
{
|
|
224066
|
+
refetch: load,
|
|
224067
|
+
mutate: setValue
|
|
224068
|
+
}
|
|
224069
|
+
];
|
|
224016
224070
|
}
|
|
224017
224071
|
function createDeferred(source, options) {
|
|
224018
224072
|
let t,
|
|
224019
224073
|
timeout = options ? options.timeoutMs : undefined;
|
|
224020
|
-
const node = createComputation(
|
|
224021
|
-
|
|
224022
|
-
|
|
224023
|
-
|
|
224024
|
-
|
|
224025
|
-
|
|
224026
|
-
|
|
224074
|
+
const node = createComputation(
|
|
224075
|
+
() => {
|
|
224076
|
+
if (!t || !t.fn)
|
|
224077
|
+
t = requestCallback(
|
|
224078
|
+
() => setDeferred(() => node.value),
|
|
224079
|
+
timeout !== undefined
|
|
224080
|
+
? {
|
|
224081
|
+
timeout
|
|
224082
|
+
}
|
|
224083
|
+
: undefined
|
|
224084
|
+
);
|
|
224085
|
+
return source();
|
|
224086
|
+
},
|
|
224087
|
+
undefined,
|
|
224088
|
+
true
|
|
224089
|
+
);
|
|
224090
|
+
const [deferred, setDeferred] = createSignal(
|
|
224091
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
224092
|
+
options
|
|
224093
|
+
);
|
|
224027
224094
|
updateComputation(node);
|
|
224028
|
-
setDeferred(() =>
|
|
224095
|
+
setDeferred(() =>
|
|
224096
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
224097
|
+
);
|
|
224029
224098
|
return deferred;
|
|
224030
224099
|
}
|
|
224031
224100
|
function createSelector(source, fn = equalFn, options) {
|
|
224032
224101
|
const subs = new Map();
|
|
224033
|
-
const node = createComputation(
|
|
224034
|
-
|
|
224035
|
-
|
|
224036
|
-
for (const
|
|
224037
|
-
|
|
224038
|
-
|
|
224039
|
-
|
|
224040
|
-
|
|
224041
|
-
|
|
224042
|
-
|
|
224102
|
+
const node = createComputation(
|
|
224103
|
+
p => {
|
|
224104
|
+
const v = source();
|
|
224105
|
+
for (const [key, val] of subs.entries())
|
|
224106
|
+
if (fn(key, v) !== fn(key, p)) {
|
|
224107
|
+
for (const c of val.values()) {
|
|
224108
|
+
c.state = STALE;
|
|
224109
|
+
if (c.pure) Updates.push(c);
|
|
224110
|
+
else Effects.push(c);
|
|
224111
|
+
}
|
|
224112
|
+
}
|
|
224113
|
+
return v;
|
|
224114
|
+
},
|
|
224115
|
+
undefined,
|
|
224116
|
+
true,
|
|
224117
|
+
STALE,
|
|
224118
|
+
options
|
|
224119
|
+
);
|
|
224043
224120
|
updateComputation(node);
|
|
224044
224121
|
return key => {
|
|
224045
224122
|
const listener = Listener;
|
|
224046
224123
|
if (listener) {
|
|
224047
224124
|
let l;
|
|
224048
|
-
if (l = subs.get(key)) l.add(listener);
|
|
224125
|
+
if ((l = subs.get(key))) l.add(listener);
|
|
224126
|
+
else subs.set(key, (l = new Set([listener])));
|
|
224049
224127
|
onCleanup(() => {
|
|
224050
224128
|
l.delete(listener);
|
|
224051
224129
|
!l.size && subs.delete(key);
|
|
224052
224130
|
});
|
|
224053
224131
|
}
|
|
224054
|
-
return fn(
|
|
224132
|
+
return fn(
|
|
224133
|
+
key,
|
|
224134
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value
|
|
224135
|
+
);
|
|
224055
224136
|
};
|
|
224056
224137
|
}
|
|
224057
224138
|
function batch(fn) {
|
|
224058
224139
|
return runUpdates(fn, false);
|
|
224059
224140
|
}
|
|
224060
224141
|
function untrack(fn) {
|
|
224061
|
-
if (Listener === null) return fn();
|
|
224142
|
+
if (!ExternalSourceConfig && Listener === null) return fn();
|
|
224062
224143
|
const listener = Listener;
|
|
224063
224144
|
Listener = null;
|
|
224064
224145
|
try {
|
|
224146
|
+
if (ExternalSourceConfig) return ExternalSourceConfig.untrack(fn);
|
|
224065
224147
|
return fn();
|
|
224066
224148
|
} finally {
|
|
224067
224149
|
Listener = listener;
|
|
@@ -224079,7 +224161,7 @@ function on(deps, fn, options) {
|
|
|
224079
224161
|
} else input = deps();
|
|
224080
224162
|
if (defer) {
|
|
224081
224163
|
defer = false;
|
|
224082
|
-
return
|
|
224164
|
+
return prevValue;
|
|
224083
224165
|
}
|
|
224084
224166
|
const result = untrack(() => fn(input, prevInput, prevValue));
|
|
224085
224167
|
prevInput = input;
|
|
@@ -224090,7 +224172,10 @@ function onMount(fn) {
|
|
|
224090
224172
|
createEffect(() => untrack(fn));
|
|
224091
224173
|
}
|
|
224092
224174
|
function onCleanup(fn) {
|
|
224093
|
-
if (Owner === null)
|
|
224175
|
+
if (Owner === null)
|
|
224176
|
+
console.warn("cleanups created outside a `createRoot` or `render` will never be run");
|
|
224177
|
+
else if (Owner.cleanups === null) Owner.cleanups = [fn];
|
|
224178
|
+
else Owner.cleanups.push(fn);
|
|
224094
224179
|
return fn;
|
|
224095
224180
|
}
|
|
224096
224181
|
function catchError(fn, handler) {
|
|
@@ -224144,15 +224229,17 @@ function startTransition(fn) {
|
|
|
224144
224229
|
Owner = o;
|
|
224145
224230
|
let t;
|
|
224146
224231
|
if (Scheduler || SuspenseContext) {
|
|
224147
|
-
t =
|
|
224148
|
-
|
|
224149
|
-
|
|
224150
|
-
|
|
224151
|
-
|
|
224152
|
-
|
|
224153
|
-
|
|
224154
|
-
|
|
224155
|
-
|
|
224232
|
+
t =
|
|
224233
|
+
Transition ||
|
|
224234
|
+
(Transition = {
|
|
224235
|
+
sources: new Set(),
|
|
224236
|
+
effects: [],
|
|
224237
|
+
promises: new Set(),
|
|
224238
|
+
disposed: new Set(),
|
|
224239
|
+
queue: new Set(),
|
|
224240
|
+
running: true
|
|
224241
|
+
});
|
|
224242
|
+
t.done || (t.done = new Promise(res => (t.resolve = res)));
|
|
224156
224243
|
t.running = true;
|
|
224157
224244
|
}
|
|
224158
224245
|
runUpdates(fn, false);
|
|
@@ -224160,6 +224247,7 @@ function startTransition(fn) {
|
|
|
224160
224247
|
return t ? t.done : undefined;
|
|
224161
224248
|
});
|
|
224162
224249
|
}
|
|
224250
|
+
const [transPending, setTransPending] = /*@__PURE__*/ createSignal(false);
|
|
224163
224251
|
function useTransition() {
|
|
224164
224252
|
return [transPending, startTransition];
|
|
224165
224253
|
}
|
|
@@ -224168,12 +224256,18 @@ function resumeEffects(e) {
|
|
|
224168
224256
|
e.length = 0;
|
|
224169
224257
|
}
|
|
224170
224258
|
function devComponent(Comp, props) {
|
|
224171
|
-
const c = createComputation(
|
|
224172
|
-
|
|
224173
|
-
|
|
224174
|
-
|
|
224175
|
-
|
|
224176
|
-
|
|
224259
|
+
const c = createComputation(
|
|
224260
|
+
() =>
|
|
224261
|
+
untrack(() => {
|
|
224262
|
+
Object.assign(Comp, {
|
|
224263
|
+
[$DEVCOMP]: true
|
|
224264
|
+
});
|
|
224265
|
+
return Comp(props);
|
|
224266
|
+
}),
|
|
224267
|
+
undefined,
|
|
224268
|
+
true,
|
|
224269
|
+
0
|
|
224270
|
+
);
|
|
224177
224271
|
c.props = props;
|
|
224178
224272
|
c.observers = null;
|
|
224179
224273
|
c.observerSlots = null;
|
|
@@ -224184,7 +224278,8 @@ function devComponent(Comp, props) {
|
|
|
224184
224278
|
}
|
|
224185
224279
|
function registerGraph(value) {
|
|
224186
224280
|
if (!Owner) return;
|
|
224187
|
-
if (Owner.sourceMap) Owner.sourceMap.push(value);
|
|
224281
|
+
if (Owner.sourceMap) Owner.sourceMap.push(value);
|
|
224282
|
+
else Owner.sourceMap = [value];
|
|
224188
224283
|
value.graph = Owner;
|
|
224189
224284
|
}
|
|
224190
224285
|
function createContext(defaultValue, options) {
|
|
@@ -224196,13 +224291,16 @@ function createContext(defaultValue, options) {
|
|
|
224196
224291
|
};
|
|
224197
224292
|
}
|
|
224198
224293
|
function useContext(context) {
|
|
224199
|
-
|
|
224294
|
+
let value;
|
|
224295
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined
|
|
224296
|
+
? value
|
|
224297
|
+
: context.defaultValue;
|
|
224200
224298
|
}
|
|
224201
224299
|
function children(fn) {
|
|
224202
224300
|
const children = createMemo(fn);
|
|
224203
224301
|
const memo = createMemo(() => resolveChildren(children()), undefined, {
|
|
224204
224302
|
name: "children"
|
|
224205
|
-
})
|
|
224303
|
+
});
|
|
224206
224304
|
memo.toArray = () => {
|
|
224207
224305
|
const c = memo();
|
|
224208
224306
|
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
@@ -224213,28 +224311,35 @@ let SuspenseContext;
|
|
|
224213
224311
|
function getSuspenseContext() {
|
|
224214
224312
|
return SuspenseContext || (SuspenseContext = createContext());
|
|
224215
224313
|
}
|
|
224216
|
-
function enableExternalSource(factory) {
|
|
224217
|
-
if (
|
|
224218
|
-
const oldFactory =
|
|
224219
|
-
|
|
224220
|
-
|
|
224221
|
-
|
|
224222
|
-
|
|
224223
|
-
|
|
224224
|
-
|
|
224225
|
-
|
|
224226
|
-
|
|
224227
|
-
|
|
224228
|
-
|
|
224314
|
+
function enableExternalSource(factory, untrack = fn => fn()) {
|
|
224315
|
+
if (ExternalSourceConfig) {
|
|
224316
|
+
const { factory: oldFactory, untrack: oldUntrack } = ExternalSourceConfig;
|
|
224317
|
+
ExternalSourceConfig = {
|
|
224318
|
+
factory: (fn, trigger) => {
|
|
224319
|
+
const oldSource = oldFactory(fn, trigger);
|
|
224320
|
+
const source = factory(x => oldSource.track(x), trigger);
|
|
224321
|
+
return {
|
|
224322
|
+
track: x => source.track(x),
|
|
224323
|
+
dispose() {
|
|
224324
|
+
source.dispose();
|
|
224325
|
+
oldSource.dispose();
|
|
224326
|
+
}
|
|
224327
|
+
};
|
|
224328
|
+
},
|
|
224329
|
+
untrack: fn => oldUntrack(() => untrack(fn))
|
|
224229
224330
|
};
|
|
224230
224331
|
} else {
|
|
224231
|
-
|
|
224332
|
+
ExternalSourceConfig = {
|
|
224333
|
+
factory,
|
|
224334
|
+
untrack
|
|
224335
|
+
};
|
|
224232
224336
|
}
|
|
224233
224337
|
}
|
|
224234
224338
|
function readSignal() {
|
|
224235
224339
|
const runningTransition = Transition && Transition.running;
|
|
224236
224340
|
if (this.sources && (runningTransition ? this.tState : this.state)) {
|
|
224237
|
-
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
224341
|
+
if ((runningTransition ? this.tState : this.state) === STALE) updateComputation(this);
|
|
224342
|
+
else {
|
|
224238
224343
|
const updates = Updates;
|
|
224239
224344
|
Updates = null;
|
|
224240
224345
|
runUpdates(() => lookUpstream(this), false);
|
|
@@ -224262,11 +224367,12 @@ function readSignal() {
|
|
|
224262
224367
|
return this.value;
|
|
224263
224368
|
}
|
|
224264
224369
|
function writeSignal(node, value, isComp) {
|
|
224265
|
-
let current =
|
|
224370
|
+
let current =
|
|
224371
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value;
|
|
224266
224372
|
if (!node.comparator || !node.comparator(current, value)) {
|
|
224267
224373
|
if (Transition) {
|
|
224268
224374
|
const TransitionRunning = Transition.running;
|
|
224269
|
-
if (TransitionRunning || !isComp && Transition.sources.has(node)) {
|
|
224375
|
+
if (TransitionRunning || (!isComp && Transition.sources.has(node))) {
|
|
224270
224376
|
Transition.sources.add(node);
|
|
224271
224377
|
node.tValue = value;
|
|
224272
224378
|
}
|
|
@@ -224279,10 +224385,12 @@ function writeSignal(node, value, isComp) {
|
|
|
224279
224385
|
const TransitionRunning = Transition && Transition.running;
|
|
224280
224386
|
if (TransitionRunning && Transition.disposed.has(o)) continue;
|
|
224281
224387
|
if (TransitionRunning ? !o.tState : !o.state) {
|
|
224282
|
-
if (o.pure) Updates.push(o);
|
|
224388
|
+
if (o.pure) Updates.push(o);
|
|
224389
|
+
else Effects.push(o);
|
|
224283
224390
|
if (o.observers) markDownstream(o);
|
|
224284
224391
|
}
|
|
224285
|
-
if (!TransitionRunning) o.state = STALE;
|
|
224392
|
+
if (!TransitionRunning) o.state = STALE;
|
|
224393
|
+
else o.tState = STALE;
|
|
224286
224394
|
}
|
|
224287
224395
|
if (Updates.length > 10e5) {
|
|
224288
224396
|
Updates = [];
|
|
@@ -224297,11 +224405,12 @@ function writeSignal(node, value, isComp) {
|
|
|
224297
224405
|
function updateComputation(node) {
|
|
224298
224406
|
if (!node.fn) return;
|
|
224299
224407
|
cleanNode(node);
|
|
224300
|
-
const
|
|
224301
|
-
|
|
224302
|
-
|
|
224303
|
-
|
|
224304
|
-
|
|
224408
|
+
const time = ExecCount;
|
|
224409
|
+
runComputation(
|
|
224410
|
+
node,
|
|
224411
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
224412
|
+
time
|
|
224413
|
+
);
|
|
224305
224414
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
224306
224415
|
queueMicrotask(() => {
|
|
224307
224416
|
runUpdates(() => {
|
|
@@ -224312,11 +224421,12 @@ function updateComputation(node) {
|
|
|
224312
224421
|
}, false);
|
|
224313
224422
|
});
|
|
224314
224423
|
}
|
|
224315
|
-
Listener = listener;
|
|
224316
|
-
Owner = owner;
|
|
224317
224424
|
}
|
|
224318
224425
|
function runComputation(node, value, time) {
|
|
224319
224426
|
let nextValue;
|
|
224427
|
+
const owner = Owner,
|
|
224428
|
+
listener = Listener;
|
|
224429
|
+
Listener = Owner = node;
|
|
224320
224430
|
try {
|
|
224321
224431
|
nextValue = node.fn(value);
|
|
224322
224432
|
} catch (err) {
|
|
@@ -224333,6 +224443,9 @@ function runComputation(node, value, time) {
|
|
|
224333
224443
|
}
|
|
224334
224444
|
node.updatedAt = time + 1;
|
|
224335
224445
|
return handleError(err);
|
|
224446
|
+
} finally {
|
|
224447
|
+
Listener = listener;
|
|
224448
|
+
Owner = owner;
|
|
224336
224449
|
}
|
|
224337
224450
|
if (!node.updatedAt || node.updatedAt <= time) {
|
|
224338
224451
|
if (node.updatedAt != null && "observers" in node) {
|
|
@@ -224362,22 +224475,26 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
224362
224475
|
c.state = 0;
|
|
224363
224476
|
c.tState = state;
|
|
224364
224477
|
}
|
|
224365
|
-
if (Owner === null)
|
|
224478
|
+
if (Owner === null)
|
|
224479
|
+
console.warn("computations created outside a `createRoot` or `render` will never be disposed");
|
|
224480
|
+
else if (Owner !== UNOWNED) {
|
|
224366
224481
|
if (Transition && Transition.running && Owner.pure) {
|
|
224367
|
-
if (!Owner.tOwned) Owner.tOwned = [c];
|
|
224482
|
+
if (!Owner.tOwned) Owner.tOwned = [c];
|
|
224483
|
+
else Owner.tOwned.push(c);
|
|
224368
224484
|
} else {
|
|
224369
|
-
if (!Owner.owned) Owner.owned = [c];
|
|
224485
|
+
if (!Owner.owned) Owner.owned = [c];
|
|
224486
|
+
else Owner.owned.push(c);
|
|
224370
224487
|
}
|
|
224371
224488
|
}
|
|
224372
224489
|
if (options && options.name) c.name = options.name;
|
|
224373
|
-
if (
|
|
224490
|
+
if (ExternalSourceConfig && c.fn) {
|
|
224374
224491
|
const [track, trigger] = createSignal(undefined, {
|
|
224375
224492
|
equals: false
|
|
224376
224493
|
});
|
|
224377
|
-
const ordinary =
|
|
224494
|
+
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
224378
224495
|
onCleanup(() => ordinary.dispose());
|
|
224379
224496
|
const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
|
|
224380
|
-
const inTransition =
|
|
224497
|
+
const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
|
|
224381
224498
|
c.fn = x => {
|
|
224382
224499
|
track();
|
|
224383
224500
|
return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
|
|
@@ -224419,7 +224536,8 @@ function runUpdates(fn, init) {
|
|
|
224419
224536
|
if (Updates) return fn();
|
|
224420
224537
|
let wait = false;
|
|
224421
224538
|
if (!init) Updates = [];
|
|
224422
|
-
if (Effects) wait = true;
|
|
224539
|
+
if (Effects) wait = true;
|
|
224540
|
+
else Effects = [];
|
|
224423
224541
|
ExecCount++;
|
|
224424
224542
|
try {
|
|
224425
224543
|
const res = fn();
|
|
@@ -224433,7 +224551,8 @@ function runUpdates(fn, init) {
|
|
|
224433
224551
|
}
|
|
224434
224552
|
function completeUpdates(wait) {
|
|
224435
224553
|
if (Updates) {
|
|
224436
|
-
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
224554
|
+
if (Scheduler && Transition && Transition.running) scheduleQueue(Updates);
|
|
224555
|
+
else runQueue(Updates);
|
|
224437
224556
|
Updates = null;
|
|
224438
224557
|
}
|
|
224439
224558
|
if (wait) return;
|
|
@@ -224473,7 +224592,8 @@ function completeUpdates(wait) {
|
|
|
224473
224592
|
}
|
|
224474
224593
|
const e = Effects;
|
|
224475
224594
|
Effects = null;
|
|
224476
|
-
if (e.length) runUpdates(() => runEffects(e), false);
|
|
224595
|
+
if (e.length) runUpdates(() => runEffects(e), false);
|
|
224596
|
+
else DevHooks.afterUpdate && DevHooks.afterUpdate();
|
|
224477
224597
|
if (res) res();
|
|
224478
224598
|
}
|
|
224479
224599
|
function runQueue(queue) {
|
|
@@ -224501,31 +224621,35 @@ function runUserEffects(queue) {
|
|
|
224501
224621
|
userLength = 0;
|
|
224502
224622
|
for (i = 0; i < queue.length; i++) {
|
|
224503
224623
|
const e = queue[i];
|
|
224504
|
-
if (!e.user) runTop(e);
|
|
224624
|
+
if (!e.user) runTop(e);
|
|
224625
|
+
else queue[userLength++] = e;
|
|
224505
224626
|
}
|
|
224506
224627
|
if (sharedConfig.context) {
|
|
224507
224628
|
if (sharedConfig.count) {
|
|
224508
224629
|
sharedConfig.effects || (sharedConfig.effects = []);
|
|
224509
224630
|
sharedConfig.effects.push(...queue.slice(0, userLength));
|
|
224510
224631
|
return;
|
|
224511
|
-
} else if (sharedConfig.effects) {
|
|
224512
|
-
queue = [...sharedConfig.effects, ...queue];
|
|
224513
|
-
userLength += sharedConfig.effects.length;
|
|
224514
|
-
delete sharedConfig.effects;
|
|
224515
224632
|
}
|
|
224516
224633
|
setHydrateContext();
|
|
224517
224634
|
}
|
|
224635
|
+
if (sharedConfig.effects && (sharedConfig.done || !sharedConfig.count)) {
|
|
224636
|
+
queue = [...sharedConfig.effects, ...queue];
|
|
224637
|
+
userLength += sharedConfig.effects.length;
|
|
224638
|
+
delete sharedConfig.effects;
|
|
224639
|
+
}
|
|
224518
224640
|
for (i = 0; i < userLength; i++) runTop(queue[i]);
|
|
224519
224641
|
}
|
|
224520
224642
|
function lookUpstream(node, ignore) {
|
|
224521
224643
|
const runningTransition = Transition && Transition.running;
|
|
224522
|
-
if (runningTransition) node.tState = 0;
|
|
224644
|
+
if (runningTransition) node.tState = 0;
|
|
224645
|
+
else node.state = 0;
|
|
224523
224646
|
for (let i = 0; i < node.sources.length; i += 1) {
|
|
224524
224647
|
const source = node.sources[i];
|
|
224525
224648
|
if (source.sources) {
|
|
224526
224649
|
const state = runningTransition ? source.tState : source.state;
|
|
224527
224650
|
if (state === STALE) {
|
|
224528
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
224651
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
224652
|
+
runTop(source);
|
|
224529
224653
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
224530
224654
|
}
|
|
224531
224655
|
}
|
|
@@ -224535,8 +224659,10 @@ function markDownstream(node) {
|
|
|
224535
224659
|
for (let i = 0; i < node.observers.length; i += 1) {
|
|
224536
224660
|
const o = node.observers[i];
|
|
224537
224661
|
if (runningTransition ? !o.tState : !o.state) {
|
|
224538
|
-
if (runningTransition) o.tState = PENDING;
|
|
224539
|
-
|
|
224662
|
+
if (runningTransition) o.tState = PENDING;
|
|
224663
|
+
else o.state = PENDING;
|
|
224664
|
+
if (o.pure) Updates.push(o);
|
|
224665
|
+
else Effects.push(o);
|
|
224540
224666
|
o.observers && markDownstream(o);
|
|
224541
224667
|
}
|
|
224542
224668
|
}
|
|
@@ -224559,11 +224685,11 @@ function cleanNode(node) {
|
|
|
224559
224685
|
}
|
|
224560
224686
|
}
|
|
224561
224687
|
}
|
|
224688
|
+
if (node.tOwned) {
|
|
224689
|
+
for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
|
|
224690
|
+
delete node.tOwned;
|
|
224691
|
+
}
|
|
224562
224692
|
if (Transition && Transition.running && node.pure) {
|
|
224563
|
-
if (node.tOwned) {
|
|
224564
|
-
for (i = node.tOwned.length - 1; i >= 0; i--) cleanNode(node.tOwned[i]);
|
|
224565
|
-
delete node.tOwned;
|
|
224566
|
-
}
|
|
224567
224693
|
reset(node, true);
|
|
224568
224694
|
} else if (node.owned) {
|
|
224569
224695
|
for (i = node.owned.length - 1; i >= 0; i--) cleanNode(node.owned[i]);
|
|
@@ -224573,7 +224699,8 @@ function cleanNode(node) {
|
|
|
224573
224699
|
for (i = node.cleanups.length - 1; i >= 0; i--) node.cleanups[i]();
|
|
224574
224700
|
node.cleanups = null;
|
|
224575
224701
|
}
|
|
224576
|
-
if (Transition && Transition.running) node.tState = 0;
|
|
224702
|
+
if (Transition && Transition.running) node.tState = 0;
|
|
224703
|
+
else node.state = 0;
|
|
224577
224704
|
delete node.sourceMap;
|
|
224578
224705
|
}
|
|
224579
224706
|
function reset(node, top) {
|
|
@@ -224595,19 +224722,21 @@ function runErrors(err, fns, owner) {
|
|
|
224595
224722
|
try {
|
|
224596
224723
|
for (const f of fns) f(err);
|
|
224597
224724
|
} catch (e) {
|
|
224598
|
-
handleError(e, owner && owner.owner || null);
|
|
224725
|
+
handleError(e, (owner && owner.owner) || null);
|
|
224599
224726
|
}
|
|
224600
224727
|
}
|
|
224601
224728
|
function handleError(err, owner = Owner) {
|
|
224602
224729
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
224603
224730
|
const error = castError(err);
|
|
224604
224731
|
if (!fns) throw error;
|
|
224605
|
-
if (Effects)
|
|
224606
|
-
|
|
224607
|
-
|
|
224608
|
-
|
|
224609
|
-
|
|
224610
|
-
|
|
224732
|
+
if (Effects)
|
|
224733
|
+
Effects.push({
|
|
224734
|
+
fn() {
|
|
224735
|
+
runErrors(error, fns, owner);
|
|
224736
|
+
},
|
|
224737
|
+
state: STALE
|
|
224738
|
+
});
|
|
224739
|
+
else runErrors(error, fns, owner);
|
|
224611
224740
|
}
|
|
224612
224741
|
function resolveChildren(children) {
|
|
224613
224742
|
if (typeof children === "function" && !children.length) return resolveChildren(children());
|
|
@@ -224624,19 +224753,26 @@ function resolveChildren(children) {
|
|
|
224624
224753
|
function createProvider(id, options) {
|
|
224625
224754
|
return function provider(props) {
|
|
224626
224755
|
let res;
|
|
224627
|
-
createRenderEffect(
|
|
224628
|
-
|
|
224629
|
-
|
|
224630
|
-
|
|
224631
|
-
|
|
224632
|
-
|
|
224633
|
-
|
|
224756
|
+
createRenderEffect(
|
|
224757
|
+
() =>
|
|
224758
|
+
(res = untrack(() => {
|
|
224759
|
+
Owner.context = {
|
|
224760
|
+
...Owner.context,
|
|
224761
|
+
[id]: props.value
|
|
224762
|
+
};
|
|
224763
|
+
return children(() => props.children);
|
|
224764
|
+
})),
|
|
224765
|
+
undefined,
|
|
224766
|
+
options
|
|
224767
|
+
);
|
|
224634
224768
|
return res;
|
|
224635
224769
|
};
|
|
224636
224770
|
}
|
|
224637
224771
|
function onError(fn) {
|
|
224638
224772
|
ERROR || (ERROR = Symbol("error"));
|
|
224639
|
-
if (Owner === null)
|
|
224773
|
+
if (Owner === null)
|
|
224774
|
+
console.warn("error handlers created outside a `createRoot` or `render` will never be run");
|
|
224775
|
+
else if (Owner.context === null || !Owner.context[ERROR]) {
|
|
224640
224776
|
Owner.context = {
|
|
224641
224777
|
...Owner.context,
|
|
224642
224778
|
[ERROR]: [fn]
|
|
@@ -224665,7 +224801,8 @@ function observable(input) {
|
|
|
224665
224801
|
if (!(observer instanceof Object) || observer == null) {
|
|
224666
224802
|
throw new TypeError("Expected the observer to be an object.");
|
|
224667
224803
|
}
|
|
224668
|
-
const handler =
|
|
224804
|
+
const handler =
|
|
224805
|
+
typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
|
|
224669
224806
|
if (!handler) {
|
|
224670
224807
|
return {
|
|
224671
224808
|
unsubscribe() {}
|
|
@@ -224696,7 +224833,7 @@ function from(producer) {
|
|
|
224696
224833
|
});
|
|
224697
224834
|
if ("subscribe" in producer) {
|
|
224698
224835
|
const unsub = producer.subscribe(v => set(() => v));
|
|
224699
|
-
onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
|
|
224836
|
+
onCleanup(() => ("unsubscribe" in unsub ? unsub.unsubscribe() : unsub()));
|
|
224700
224837
|
} else {
|
|
224701
224838
|
const clean = producer(set);
|
|
224702
224839
|
onCleanup(clean);
|
|
@@ -224717,20 +224854,12 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224717
224854
|
onCleanup(() => dispose(disposers));
|
|
224718
224855
|
return () => {
|
|
224719
224856
|
let newItems = list() || [],
|
|
224857
|
+
newLen = newItems.length,
|
|
224720
224858
|
i,
|
|
224721
224859
|
j;
|
|
224722
224860
|
newItems[$TRACK];
|
|
224723
224861
|
return untrack(() => {
|
|
224724
|
-
let
|
|
224725
|
-
newIndices,
|
|
224726
|
-
newIndicesNext,
|
|
224727
|
-
temp,
|
|
224728
|
-
tempdisposers,
|
|
224729
|
-
tempIndexes,
|
|
224730
|
-
start,
|
|
224731
|
-
end,
|
|
224732
|
-
newEnd,
|
|
224733
|
-
item;
|
|
224862
|
+
let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
|
|
224734
224863
|
if (newLen === 0) {
|
|
224735
224864
|
if (len !== 0) {
|
|
224736
224865
|
dispose(disposers);
|
|
@@ -224748,8 +224877,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224748
224877
|
});
|
|
224749
224878
|
len = 1;
|
|
224750
224879
|
}
|
|
224751
|
-
}
|
|
224752
|
-
else if (len === 0) {
|
|
224880
|
+
} else if (len === 0) {
|
|
224753
224881
|
mapped = new Array(newLen);
|
|
224754
224882
|
for (j = 0; j < newLen; j++) {
|
|
224755
224883
|
items[j] = newItems[j];
|
|
@@ -224760,8 +224888,16 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224760
224888
|
temp = new Array(newLen);
|
|
224761
224889
|
tempdisposers = new Array(newLen);
|
|
224762
224890
|
indexes && (tempIndexes = new Array(newLen));
|
|
224763
|
-
for (
|
|
224764
|
-
|
|
224891
|
+
for (
|
|
224892
|
+
start = 0, end = Math.min(len, newLen);
|
|
224893
|
+
start < end && items[start] === newItems[start];
|
|
224894
|
+
start++
|
|
224895
|
+
);
|
|
224896
|
+
for (
|
|
224897
|
+
end = len - 1, newEnd = newLen - 1;
|
|
224898
|
+
end >= start && newEnd >= start && items[end] === newItems[newEnd];
|
|
224899
|
+
end--, newEnd--
|
|
224900
|
+
) {
|
|
224765
224901
|
temp[newEnd] = mapped[end];
|
|
224766
224902
|
tempdisposers[newEnd] = disposers[end];
|
|
224767
224903
|
indexes && (tempIndexes[newEnd] = indexes[end]);
|
|
@@ -224795,7 +224931,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224795
224931
|
}
|
|
224796
224932
|
} else mapped[j] = createRoot(mapper);
|
|
224797
224933
|
}
|
|
224798
|
-
mapped = mapped.slice(0, len = newLen);
|
|
224934
|
+
mapped = mapped.slice(0, (len = newLen));
|
|
224799
224935
|
items = newItems.slice(0);
|
|
224800
224936
|
}
|
|
224801
224937
|
return mapped;
|
|
@@ -224805,7 +224941,7 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
224805
224941
|
if (indexes) {
|
|
224806
224942
|
const [s, set] = createSignal(j, {
|
|
224807
224943
|
name: "index"
|
|
224808
|
-
})
|
|
224944
|
+
});
|
|
224809
224945
|
indexes[j] = set;
|
|
224810
224946
|
return mapFn(newItems[j], s);
|
|
224811
224947
|
}
|
|
@@ -224822,10 +224958,11 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224822
224958
|
i;
|
|
224823
224959
|
onCleanup(() => dispose(disposers));
|
|
224824
224960
|
return () => {
|
|
224825
|
-
const newItems = list() || []
|
|
224961
|
+
const newItems = list() || [],
|
|
224962
|
+
newLen = newItems.length;
|
|
224826
224963
|
newItems[$TRACK];
|
|
224827
224964
|
return untrack(() => {
|
|
224828
|
-
if (
|
|
224965
|
+
if (newLen === 0) {
|
|
224829
224966
|
if (len !== 0) {
|
|
224830
224967
|
dispose(disposers);
|
|
224831
224968
|
disposers = [];
|
|
@@ -224851,7 +224988,7 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224851
224988
|
mapped = [];
|
|
224852
224989
|
len = 0;
|
|
224853
224990
|
}
|
|
224854
|
-
for (i = 0; i <
|
|
224991
|
+
for (i = 0; i < newLen; i++) {
|
|
224855
224992
|
if (i < items.length && items[i] !== newItems[i]) {
|
|
224856
224993
|
signals[i](() => newItems[i]);
|
|
224857
224994
|
} else if (i >= items.length) {
|
|
@@ -224861,15 +224998,15 @@ function indexArray(list, mapFn, options = {}) {
|
|
|
224861
224998
|
for (; i < items.length; i++) {
|
|
224862
224999
|
disposers[i]();
|
|
224863
225000
|
}
|
|
224864
|
-
len = signals.length = disposers.length =
|
|
225001
|
+
len = signals.length = disposers.length = newLen;
|
|
224865
225002
|
items = newItems.slice(0);
|
|
224866
|
-
return mapped = mapped.slice(0, len);
|
|
225003
|
+
return (mapped = mapped.slice(0, len));
|
|
224867
225004
|
});
|
|
224868
225005
|
function mapper(disposer) {
|
|
224869
225006
|
disposers[i] = disposer;
|
|
224870
225007
|
const [s, set] = createSignal(newItems[i], {
|
|
224871
225008
|
name: "value"
|
|
224872
|
-
})
|
|
225009
|
+
});
|
|
224873
225010
|
signals[i] = set;
|
|
224874
225011
|
return mapFn(s, i);
|
|
224875
225012
|
}
|
|
@@ -224885,7 +225022,7 @@ function createComponent(Comp, props) {
|
|
|
224885
225022
|
if (sharedConfig.context) {
|
|
224886
225023
|
const c = sharedConfig.context;
|
|
224887
225024
|
setHydrateContext(nextHydrateContext());
|
|
224888
|
-
const r = devComponent(Comp, props || {})
|
|
225025
|
+
const r = devComponent(Comp, props || {});
|
|
224889
225026
|
setHydrateContext(c);
|
|
224890
225027
|
return r;
|
|
224891
225028
|
}
|
|
@@ -224934,112 +225071,131 @@ function mergeProps(...sources) {
|
|
|
224934
225071
|
let proxy = false;
|
|
224935
225072
|
for (let i = 0; i < sources.length; i++) {
|
|
224936
225073
|
const s = sources[i];
|
|
224937
|
-
proxy = proxy || !!s && $PROXY in s;
|
|
224938
|
-
sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
|
|
225074
|
+
proxy = proxy || (!!s && $PROXY in s);
|
|
225075
|
+
sources[i] = typeof s === "function" ? ((proxy = true), createMemo(s)) : s;
|
|
224939
225076
|
}
|
|
224940
|
-
if (proxy) {
|
|
224941
|
-
return new Proxy(
|
|
224942
|
-
|
|
224943
|
-
|
|
224944
|
-
|
|
224945
|
-
|
|
224946
|
-
|
|
224947
|
-
|
|
224948
|
-
|
|
224949
|
-
|
|
224950
|
-
|
|
225077
|
+
if (SUPPORTS_PROXY && proxy) {
|
|
225078
|
+
return new Proxy(
|
|
225079
|
+
{
|
|
225080
|
+
get(property) {
|
|
225081
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
225082
|
+
const v = resolveSource(sources[i])[property];
|
|
225083
|
+
if (v !== undefined) return v;
|
|
225084
|
+
}
|
|
225085
|
+
},
|
|
225086
|
+
has(property) {
|
|
225087
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
225088
|
+
if (property in resolveSource(sources[i])) return true;
|
|
225089
|
+
}
|
|
225090
|
+
return false;
|
|
225091
|
+
},
|
|
225092
|
+
keys() {
|
|
225093
|
+
const keys = [];
|
|
225094
|
+
for (let i = 0; i < sources.length; i++)
|
|
225095
|
+
keys.push(...Object.keys(resolveSource(sources[i])));
|
|
225096
|
+
return [...new Set(keys)];
|
|
224951
225097
|
}
|
|
224952
|
-
return false;
|
|
224953
225098
|
},
|
|
224954
|
-
|
|
224955
|
-
|
|
224956
|
-
for (let i = 0; i < sources.length; i++) keys.push(...Object.keys(resolveSource(sources[i])));
|
|
224957
|
-
return [...new Set(keys)];
|
|
224958
|
-
}
|
|
224959
|
-
}, propTraps);
|
|
225099
|
+
propTraps
|
|
225100
|
+
);
|
|
224960
225101
|
}
|
|
224961
|
-
const target = {};
|
|
224962
225102
|
const sourcesMap = {};
|
|
224963
|
-
const defined =
|
|
225103
|
+
const defined = Object.create(null);
|
|
224964
225104
|
for (let i = sources.length - 1; i >= 0; i--) {
|
|
224965
225105
|
const source = sources[i];
|
|
224966
225106
|
if (!source) continue;
|
|
224967
225107
|
const sourceKeys = Object.getOwnPropertyNames(source);
|
|
224968
|
-
for (let i =
|
|
225108
|
+
for (let i = sourceKeys.length - 1; i >= 0; i--) {
|
|
224969
225109
|
const key = sourceKeys[i];
|
|
224970
225110
|
if (key === "__proto__" || key === "constructor") continue;
|
|
224971
225111
|
const desc = Object.getOwnPropertyDescriptor(source, key);
|
|
224972
|
-
if (!defined
|
|
224973
|
-
|
|
224974
|
-
|
|
224975
|
-
|
|
224976
|
-
|
|
224977
|
-
|
|
224978
|
-
|
|
224979
|
-
|
|
224980
|
-
|
|
224981
|
-
|
|
224982
|
-
target[key] = desc.value;
|
|
224983
|
-
}
|
|
225112
|
+
if (!defined[key]) {
|
|
225113
|
+
defined[key] = desc.get
|
|
225114
|
+
? {
|
|
225115
|
+
enumerable: true,
|
|
225116
|
+
configurable: true,
|
|
225117
|
+
get: resolveSources.bind((sourcesMap[key] = [desc.get.bind(source)]))
|
|
225118
|
+
}
|
|
225119
|
+
: desc.value !== undefined
|
|
225120
|
+
? desc
|
|
225121
|
+
: undefined;
|
|
224984
225122
|
} else {
|
|
224985
225123
|
const sources = sourcesMap[key];
|
|
224986
225124
|
if (sources) {
|
|
224987
|
-
if (desc.get)
|
|
224988
|
-
|
|
224989
|
-
|
|
224990
|
-
sources.push(() => desc.value);
|
|
224991
|
-
}
|
|
224992
|
-
} else if (target[key] === undefined) target[key] = desc.value;
|
|
225125
|
+
if (desc.get) sources.push(desc.get.bind(source));
|
|
225126
|
+
else if (desc.value !== undefined) sources.push(() => desc.value);
|
|
225127
|
+
}
|
|
224993
225128
|
}
|
|
224994
225129
|
}
|
|
224995
225130
|
}
|
|
225131
|
+
const target = {};
|
|
225132
|
+
const definedKeys = Object.keys(defined);
|
|
225133
|
+
for (let i = definedKeys.length - 1; i >= 0; i--) {
|
|
225134
|
+
const key = definedKeys[i],
|
|
225135
|
+
desc = defined[key];
|
|
225136
|
+
if (desc && desc.get) Object.defineProperty(target, key, desc);
|
|
225137
|
+
else target[key] = desc ? desc.value : undefined;
|
|
225138
|
+
}
|
|
224996
225139
|
return target;
|
|
224997
225140
|
}
|
|
224998
225141
|
function splitProps(props, ...keys) {
|
|
224999
|
-
if ($PROXY in props) {
|
|
225142
|
+
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
225000
225143
|
const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
|
|
225001
225144
|
const res = keys.map(k => {
|
|
225002
|
-
return new Proxy(
|
|
225003
|
-
|
|
225004
|
-
|
|
225005
|
-
|
|
225006
|
-
|
|
225007
|
-
|
|
225145
|
+
return new Proxy(
|
|
225146
|
+
{
|
|
225147
|
+
get(property) {
|
|
225148
|
+
return k.includes(property) ? props[property] : undefined;
|
|
225149
|
+
},
|
|
225150
|
+
has(property) {
|
|
225151
|
+
return k.includes(property) && property in props;
|
|
225152
|
+
},
|
|
225153
|
+
keys() {
|
|
225154
|
+
return k.filter(property => property in props);
|
|
225155
|
+
}
|
|
225008
225156
|
},
|
|
225009
|
-
|
|
225010
|
-
|
|
225011
|
-
}
|
|
225012
|
-
}, propTraps);
|
|
225157
|
+
propTraps
|
|
225158
|
+
);
|
|
225013
225159
|
});
|
|
225014
|
-
res.push(
|
|
225015
|
-
|
|
225016
|
-
|
|
225017
|
-
|
|
225018
|
-
|
|
225019
|
-
|
|
225020
|
-
|
|
225021
|
-
|
|
225022
|
-
|
|
225023
|
-
|
|
225024
|
-
|
|
225160
|
+
res.push(
|
|
225161
|
+
new Proxy(
|
|
225162
|
+
{
|
|
225163
|
+
get(property) {
|
|
225164
|
+
return blocked.has(property) ? undefined : props[property];
|
|
225165
|
+
},
|
|
225166
|
+
has(property) {
|
|
225167
|
+
return blocked.has(property) ? false : property in props;
|
|
225168
|
+
},
|
|
225169
|
+
keys() {
|
|
225170
|
+
return Object.keys(props).filter(k => !blocked.has(k));
|
|
225171
|
+
}
|
|
225172
|
+
},
|
|
225173
|
+
propTraps
|
|
225174
|
+
)
|
|
225175
|
+
);
|
|
225025
225176
|
return res;
|
|
225026
225177
|
}
|
|
225027
225178
|
const otherObject = {};
|
|
225028
225179
|
const objects = keys.map(() => ({}));
|
|
225029
225180
|
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
225030
225181
|
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
225031
|
-
const isDefaultDesc =
|
|
225182
|
+
const isDefaultDesc =
|
|
225183
|
+
!desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable;
|
|
225032
225184
|
let blocked = false;
|
|
225033
225185
|
let objectIndex = 0;
|
|
225034
225186
|
for (const k of keys) {
|
|
225035
225187
|
if (k.includes(propName)) {
|
|
225036
225188
|
blocked = true;
|
|
225037
|
-
isDefaultDesc
|
|
225189
|
+
isDefaultDesc
|
|
225190
|
+
? (objects[objectIndex][propName] = desc.value)
|
|
225191
|
+
: Object.defineProperty(objects[objectIndex], propName, desc);
|
|
225038
225192
|
}
|
|
225039
225193
|
++objectIndex;
|
|
225040
225194
|
}
|
|
225041
225195
|
if (!blocked) {
|
|
225042
|
-
isDefaultDesc
|
|
225196
|
+
isDefaultDesc
|
|
225197
|
+
? (otherObject[propName] = desc.value)
|
|
225198
|
+
: Object.defineProperty(otherObject, propName, desc);
|
|
225043
225199
|
}
|
|
225044
225200
|
}
|
|
225045
225201
|
return [...objects, otherObject];
|
|
@@ -225054,7 +225210,7 @@ function lazy(fn) {
|
|
|
225054
225210
|
sharedConfig.count || (sharedConfig.count = 0);
|
|
225055
225211
|
sharedConfig.count++;
|
|
225056
225212
|
(p || (p = fn())).then(mod => {
|
|
225057
|
-
setHydrateContext(ctx);
|
|
225213
|
+
!sharedConfig.done && setHydrateContext(ctx);
|
|
225058
225214
|
sharedConfig.count--;
|
|
225059
225215
|
set(() => mod.default);
|
|
225060
225216
|
setHydrateContext();
|
|
@@ -225065,96 +225221,138 @@ function lazy(fn) {
|
|
|
225065
225221
|
comp = s;
|
|
225066
225222
|
}
|
|
225067
225223
|
let Comp;
|
|
225068
|
-
return createMemo(() =>
|
|
225069
|
-
|
|
225070
|
-
|
|
225071
|
-
|
|
225072
|
-
|
|
225073
|
-
|
|
225074
|
-
|
|
225075
|
-
|
|
225076
|
-
|
|
225077
|
-
|
|
225078
|
-
|
|
225224
|
+
return createMemo(() =>
|
|
225225
|
+
(Comp = comp())
|
|
225226
|
+
? untrack(() => {
|
|
225227
|
+
if (true)
|
|
225228
|
+
Object.assign(Comp, {
|
|
225229
|
+
[$DEVCOMP]: true
|
|
225230
|
+
});
|
|
225231
|
+
if (!ctx || sharedConfig.done) return Comp(props);
|
|
225232
|
+
const c = sharedConfig.context;
|
|
225233
|
+
setHydrateContext(ctx);
|
|
225234
|
+
const r = Comp(props);
|
|
225235
|
+
setHydrateContext(c);
|
|
225236
|
+
return r;
|
|
225237
|
+
})
|
|
225238
|
+
: ""
|
|
225239
|
+
);
|
|
225079
225240
|
};
|
|
225080
|
-
wrap.preload = () => p || ((p = fn()).then(mod => comp = () => mod.default), p);
|
|
225241
|
+
wrap.preload = () => p || ((p = fn()).then(mod => (comp = () => mod.default)), p);
|
|
225081
225242
|
return wrap;
|
|
225082
225243
|
}
|
|
225083
225244
|
let counter = 0;
|
|
225084
225245
|
function createUniqueId() {
|
|
225085
225246
|
const ctx = sharedConfig.context;
|
|
225086
|
-
return ctx ?
|
|
225247
|
+
return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
|
|
225087
225248
|
}
|
|
225088
225249
|
|
|
225089
|
-
const narrowedError = name =>
|
|
225250
|
+
const narrowedError = name =>
|
|
225251
|
+
`Attempting to access a stale value from <${name}> that could possibly be undefined. This may occur because you are reading the accessor returned from the component at a time where it has already been unmounted. We recommend cleaning up any stale timers or async, or reading from the initial condition.`;
|
|
225090
225252
|
function For(props) {
|
|
225091
225253
|
const fallback = "fallback" in props && {
|
|
225092
225254
|
fallback: () => props.fallback
|
|
225093
225255
|
};
|
|
225094
|
-
return createMemo(
|
|
225095
|
-
|
|
225096
|
-
|
|
225256
|
+
return createMemo(
|
|
225257
|
+
mapArray(() => props.each, props.children, fallback || undefined),
|
|
225258
|
+
undefined,
|
|
225259
|
+
{
|
|
225260
|
+
name: "value"
|
|
225261
|
+
}
|
|
225262
|
+
);
|
|
225097
225263
|
}
|
|
225098
225264
|
function Index(props) {
|
|
225099
225265
|
const fallback = "fallback" in props && {
|
|
225100
225266
|
fallback: () => props.fallback
|
|
225101
225267
|
};
|
|
225102
|
-
return createMemo(
|
|
225103
|
-
|
|
225104
|
-
|
|
225268
|
+
return createMemo(
|
|
225269
|
+
indexArray(() => props.each, props.children, fallback || undefined),
|
|
225270
|
+
undefined,
|
|
225271
|
+
{
|
|
225272
|
+
name: "value"
|
|
225273
|
+
}
|
|
225274
|
+
);
|
|
225105
225275
|
}
|
|
225106
225276
|
function Show(props) {
|
|
225107
225277
|
const keyed = props.keyed;
|
|
225108
225278
|
const condition = createMemo(() => props.when, undefined, {
|
|
225109
|
-
equals: (a, b) => keyed ? a === b : !a === !b,
|
|
225279
|
+
equals: (a, b) => (keyed ? a === b : !a === !b),
|
|
225110
225280
|
name: "condition"
|
|
225111
|
-
}
|
|
225112
|
-
return createMemo(
|
|
225113
|
-
|
|
225114
|
-
|
|
225115
|
-
|
|
225116
|
-
|
|
225117
|
-
|
|
225118
|
-
|
|
225119
|
-
|
|
225120
|
-
|
|
225121
|
-
|
|
225122
|
-
|
|
225123
|
-
|
|
225124
|
-
|
|
225125
|
-
|
|
225281
|
+
});
|
|
225282
|
+
return createMemo(
|
|
225283
|
+
() => {
|
|
225284
|
+
const c = condition();
|
|
225285
|
+
if (c) {
|
|
225286
|
+
const child = props.children;
|
|
225287
|
+
const fn = typeof child === "function" && child.length > 0;
|
|
225288
|
+
return fn
|
|
225289
|
+
? untrack(() =>
|
|
225290
|
+
child(
|
|
225291
|
+
keyed
|
|
225292
|
+
? c
|
|
225293
|
+
: () => {
|
|
225294
|
+
if (!untrack(condition)) throw narrowedError("Show");
|
|
225295
|
+
return props.when;
|
|
225296
|
+
}
|
|
225297
|
+
)
|
|
225298
|
+
)
|
|
225299
|
+
: child;
|
|
225300
|
+
}
|
|
225301
|
+
return props.fallback;
|
|
225302
|
+
},
|
|
225303
|
+
undefined,
|
|
225304
|
+
{
|
|
225305
|
+
name: "value"
|
|
225306
|
+
}
|
|
225307
|
+
);
|
|
225126
225308
|
}
|
|
225127
225309
|
function Switch(props) {
|
|
225128
225310
|
let keyed = false;
|
|
225129
|
-
const equals = (a, b) =>
|
|
225311
|
+
const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
|
|
225130
225312
|
const conditions = children(() => props.children),
|
|
225131
|
-
evalConditions = createMemo(
|
|
225132
|
-
|
|
225133
|
-
|
|
225134
|
-
|
|
225135
|
-
|
|
225136
|
-
|
|
225137
|
-
|
|
225138
|
-
|
|
225139
|
-
|
|
225140
|
-
|
|
225141
|
-
|
|
225142
|
-
|
|
225143
|
-
|
|
225144
|
-
|
|
225145
|
-
|
|
225146
|
-
|
|
225147
|
-
|
|
225148
|
-
|
|
225149
|
-
|
|
225150
|
-
|
|
225151
|
-
|
|
225152
|
-
|
|
225153
|
-
return
|
|
225154
|
-
|
|
225155
|
-
|
|
225156
|
-
|
|
225157
|
-
|
|
225313
|
+
evalConditions = createMemo(
|
|
225314
|
+
() => {
|
|
225315
|
+
let conds = conditions();
|
|
225316
|
+
if (!Array.isArray(conds)) conds = [conds];
|
|
225317
|
+
for (let i = 0; i < conds.length; i++) {
|
|
225318
|
+
const c = conds[i].when;
|
|
225319
|
+
if (c) {
|
|
225320
|
+
keyed = !!conds[i].keyed;
|
|
225321
|
+
return [i, c, conds[i]];
|
|
225322
|
+
}
|
|
225323
|
+
}
|
|
225324
|
+
return [-1];
|
|
225325
|
+
},
|
|
225326
|
+
undefined,
|
|
225327
|
+
{
|
|
225328
|
+
equals,
|
|
225329
|
+
name: "eval conditions"
|
|
225330
|
+
}
|
|
225331
|
+
);
|
|
225332
|
+
return createMemo(
|
|
225333
|
+
() => {
|
|
225334
|
+
const [index, when, cond] = evalConditions();
|
|
225335
|
+
if (index < 0) return props.fallback;
|
|
225336
|
+
const c = cond.children;
|
|
225337
|
+
const fn = typeof c === "function" && c.length > 0;
|
|
225338
|
+
return fn
|
|
225339
|
+
? untrack(() =>
|
|
225340
|
+
c(
|
|
225341
|
+
keyed
|
|
225342
|
+
? when
|
|
225343
|
+
: () => {
|
|
225344
|
+
if (untrack(evalConditions)[0] !== index) throw narrowedError("Match");
|
|
225345
|
+
return cond.when;
|
|
225346
|
+
}
|
|
225347
|
+
)
|
|
225348
|
+
)
|
|
225349
|
+
: c;
|
|
225350
|
+
},
|
|
225351
|
+
undefined,
|
|
225352
|
+
{
|
|
225353
|
+
name: "value"
|
|
225354
|
+
}
|
|
225355
|
+
);
|
|
225158
225356
|
}
|
|
225159
225357
|
function Match(props) {
|
|
225160
225358
|
return props;
|
|
@@ -225165,28 +225363,34 @@ function resetErrorBoundaries() {
|
|
|
225165
225363
|
}
|
|
225166
225364
|
function ErrorBoundary(props) {
|
|
225167
225365
|
let err;
|
|
225168
|
-
if (sharedConfig.context && sharedConfig.load)
|
|
225366
|
+
if (sharedConfig.context && sharedConfig.load)
|
|
225367
|
+
err = sharedConfig.load(sharedConfig.getContextId());
|
|
225169
225368
|
const [errored, setErrored] = createSignal(err, {
|
|
225170
225369
|
name: "errored"
|
|
225171
|
-
}
|
|
225370
|
+
});
|
|
225172
225371
|
Errors || (Errors = new Set());
|
|
225173
225372
|
Errors.add(setErrored);
|
|
225174
225373
|
onCleanup(() => Errors.delete(setErrored));
|
|
225175
|
-
return createMemo(
|
|
225176
|
-
|
|
225177
|
-
|
|
225178
|
-
|
|
225179
|
-
|
|
225180
|
-
|
|
225374
|
+
return createMemo(
|
|
225375
|
+
() => {
|
|
225376
|
+
let e;
|
|
225377
|
+
if ((e = errored())) {
|
|
225378
|
+
const f = props.fallback;
|
|
225379
|
+
if (typeof f !== "function" || f.length == 0) console.error(e);
|
|
225380
|
+
return typeof f === "function" && f.length ? untrack(() => f(e, () => setErrored())) : f;
|
|
225381
|
+
}
|
|
225382
|
+
return catchError(() => props.children, setErrored);
|
|
225383
|
+
},
|
|
225384
|
+
undefined,
|
|
225385
|
+
{
|
|
225386
|
+
name: "value"
|
|
225181
225387
|
}
|
|
225182
|
-
|
|
225183
|
-
}, undefined, {
|
|
225184
|
-
name: "value"
|
|
225185
|
-
} );
|
|
225388
|
+
);
|
|
225186
225389
|
}
|
|
225187
225390
|
|
|
225188
|
-
const suspenseListEquals = (a, b) =>
|
|
225189
|
-
|
|
225391
|
+
const suspenseListEquals = (a, b) =>
|
|
225392
|
+
a.showContent === b.showContent && a.showFallback === b.showFallback;
|
|
225393
|
+
const SuspenseListContext = /* #__PURE__ */ createContext();
|
|
225190
225394
|
function SuspenseList(props) {
|
|
225191
225395
|
let [wrapper, setWrapper] = createSignal(() => ({
|
|
225192
225396
|
inFallback: false
|
|
@@ -225197,51 +225401,51 @@ function SuspenseList(props) {
|
|
|
225197
225401
|
if (listContext) {
|
|
225198
225402
|
show = listContext.register(createMemo(() => wrapper()().inFallback));
|
|
225199
225403
|
}
|
|
225200
|
-
const resolved = createMemo(
|
|
225201
|
-
|
|
225202
|
-
|
|
225203
|
-
|
|
225204
|
-
showContent = true,
|
|
225205
|
-
|
|
225206
|
-
|
|
225207
|
-
|
|
225208
|
-
|
|
225209
|
-
|
|
225210
|
-
|
|
225211
|
-
const res = reg.map(() => ({
|
|
225212
|
-
showContent: all && showContent,
|
|
225213
|
-
showFallback
|
|
225214
|
-
}));
|
|
225215
|
-
res.inFallback = !all;
|
|
225216
|
-
return res;
|
|
225217
|
-
}
|
|
225218
|
-
let stop = false;
|
|
225219
|
-
let inFallback = prev.inFallback;
|
|
225220
|
-
const res = [];
|
|
225221
|
-
for (let i = 0, len = reg.length; i < len; i++) {
|
|
225222
|
-
const n = reverse ? len - i - 1 : i,
|
|
225223
|
-
s = reg[n]();
|
|
225224
|
-
if (!stop && !s) {
|
|
225225
|
-
res[n] = {
|
|
225226
|
-
showContent,
|
|
225404
|
+
const resolved = createMemo(
|
|
225405
|
+
prev => {
|
|
225406
|
+
const reveal = props.revealOrder,
|
|
225407
|
+
tail = props.tail,
|
|
225408
|
+
{ showContent = true, showFallback = true } = show ? show() : {},
|
|
225409
|
+
reg = registry(),
|
|
225410
|
+
reverse = reveal === "backwards";
|
|
225411
|
+
if (reveal === "together") {
|
|
225412
|
+
const all = reg.every(inFallback => !inFallback());
|
|
225413
|
+
const res = reg.map(() => ({
|
|
225414
|
+
showContent: all && showContent,
|
|
225227
225415
|
showFallback
|
|
225228
|
-
};
|
|
225229
|
-
|
|
225230
|
-
|
|
225231
|
-
if (next) inFallback = true;
|
|
225232
|
-
res[n] = {
|
|
225233
|
-
showContent: next,
|
|
225234
|
-
showFallback: !tail || next && tail === "collapsed" ? showFallback : false
|
|
225235
|
-
};
|
|
225236
|
-
stop = true;
|
|
225416
|
+
}));
|
|
225417
|
+
res.inFallback = !all;
|
|
225418
|
+
return res;
|
|
225237
225419
|
}
|
|
225420
|
+
let stop = false;
|
|
225421
|
+
let inFallback = prev.inFallback;
|
|
225422
|
+
const res = [];
|
|
225423
|
+
for (let i = 0, len = reg.length; i < len; i++) {
|
|
225424
|
+
const n = reverse ? len - i - 1 : i,
|
|
225425
|
+
s = reg[n]();
|
|
225426
|
+
if (!stop && !s) {
|
|
225427
|
+
res[n] = {
|
|
225428
|
+
showContent,
|
|
225429
|
+
showFallback
|
|
225430
|
+
};
|
|
225431
|
+
} else {
|
|
225432
|
+
const next = !stop;
|
|
225433
|
+
if (next) inFallback = true;
|
|
225434
|
+
res[n] = {
|
|
225435
|
+
showContent: next,
|
|
225436
|
+
showFallback: !tail || (next && tail === "collapsed") ? showFallback : false
|
|
225437
|
+
};
|
|
225438
|
+
stop = true;
|
|
225439
|
+
}
|
|
225440
|
+
}
|
|
225441
|
+
if (!stop) inFallback = false;
|
|
225442
|
+
res.inFallback = inFallback;
|
|
225443
|
+
return res;
|
|
225444
|
+
},
|
|
225445
|
+
{
|
|
225446
|
+
inFallback: false
|
|
225238
225447
|
}
|
|
225239
|
-
|
|
225240
|
-
res.inFallback = inFallback;
|
|
225241
|
-
return res;
|
|
225242
|
-
}, {
|
|
225243
|
-
inFallback: false
|
|
225244
|
-
});
|
|
225448
|
+
);
|
|
225245
225449
|
setWrapper(() => resolved);
|
|
225246
225450
|
return createComponent(SuspenseListContext.Provider, {
|
|
225247
225451
|
value: {
|
|
@@ -225283,25 +225487,30 @@ function Suspense(props) {
|
|
|
225283
225487
|
},
|
|
225284
225488
|
owner = getOwner();
|
|
225285
225489
|
if (sharedConfig.context && sharedConfig.load) {
|
|
225286
|
-
const key = sharedConfig.
|
|
225490
|
+
const key = sharedConfig.getContextId();
|
|
225287
225491
|
let ref = sharedConfig.load(key);
|
|
225288
|
-
if (ref
|
|
225492
|
+
if (ref) {
|
|
225493
|
+
if (typeof ref !== "object" || ref.status !== "success") p = ref;
|
|
225494
|
+
else sharedConfig.gather(key);
|
|
225495
|
+
}
|
|
225289
225496
|
if (p && p !== "$$f") {
|
|
225290
225497
|
const [s, set] = createSignal(undefined, {
|
|
225291
225498
|
equals: false
|
|
225292
225499
|
});
|
|
225293
225500
|
flicker = s;
|
|
225294
|
-
p.then(
|
|
225295
|
-
|
|
225296
|
-
|
|
225297
|
-
|
|
225298
|
-
|
|
225299
|
-
|
|
225300
|
-
|
|
225301
|
-
|
|
225302
|
-
|
|
225501
|
+
p.then(
|
|
225502
|
+
() => {
|
|
225503
|
+
if (sharedConfig.done) return set();
|
|
225504
|
+
sharedConfig.gather(key);
|
|
225505
|
+
setHydrateContext(ctx);
|
|
225506
|
+
set();
|
|
225507
|
+
setHydrateContext();
|
|
225508
|
+
},
|
|
225509
|
+
err => {
|
|
225510
|
+
error = err;
|
|
225511
|
+
set();
|
|
225303
225512
|
}
|
|
225304
|
-
|
|
225513
|
+
);
|
|
225305
225514
|
}
|
|
225306
225515
|
}
|
|
225307
225516
|
const listContext = useContext(SuspenseListContext);
|
|
@@ -225316,17 +225525,14 @@ function Suspense(props) {
|
|
|
225316
225525
|
ctx = sharedConfig.context;
|
|
225317
225526
|
if (flicker) {
|
|
225318
225527
|
flicker();
|
|
225319
|
-
return flicker = undefined;
|
|
225528
|
+
return (flicker = undefined);
|
|
225320
225529
|
}
|
|
225321
225530
|
if (ctx && p === "$$f") setHydrateContext();
|
|
225322
225531
|
const rendered = createMemo(() => props.children);
|
|
225323
225532
|
return createMemo(prev => {
|
|
225324
225533
|
const inFallback = store.inFallback(),
|
|
225325
|
-
{
|
|
225326
|
-
|
|
225327
|
-
showFallback = true
|
|
225328
|
-
} = show ? show() : {};
|
|
225329
|
-
if ((!inFallback || p && p !== "$$f") && showContent) {
|
|
225534
|
+
{ showContent = true, showFallback = true } = show ? show() : {};
|
|
225535
|
+
if ((!inFallback || (p && p !== "$$f")) && showContent) {
|
|
225330
225536
|
store.resolved = true;
|
|
225331
225537
|
dispose && dispose();
|
|
225332
225538
|
dispose = ctx = p = undefined;
|
|
@@ -225339,7 +225545,7 @@ function Suspense(props) {
|
|
|
225339
225545
|
dispose = disposer;
|
|
225340
225546
|
if (ctx) {
|
|
225341
225547
|
setHydrateContext({
|
|
225342
|
-
id: ctx.id + "
|
|
225548
|
+
id: ctx.id + "F",
|
|
225343
225549
|
count: 0
|
|
225344
225550
|
});
|
|
225345
225551
|
ctx = undefined;
|
|
@@ -225356,9 +225562,13 @@ const DEV = {
|
|
|
225356
225562
|
hooks: DevHooks,
|
|
225357
225563
|
writeSignal,
|
|
225358
225564
|
registerGraph
|
|
225359
|
-
}
|
|
225565
|
+
};
|
|
225360
225566
|
if (globalThis) {
|
|
225361
|
-
if (!globalThis.Solid$$) globalThis.Solid$$ = true;
|
|
225567
|
+
if (!globalThis.Solid$$) globalThis.Solid$$ = true;
|
|
225568
|
+
else
|
|
225569
|
+
console.warn(
|
|
225570
|
+
"You appear to have multiple instances of Solid. This can lead to unexpected behavior."
|
|
225571
|
+
);
|
|
225362
225572
|
}
|
|
225363
225573
|
|
|
225364
225574
|
|
|
@@ -225390,6 +225600,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225390
225600
|
/* harmony export */ NoHydration: () => (/* binding */ NoHydration),
|
|
225391
225601
|
/* harmony export */ Portal: () => (/* binding */ Portal),
|
|
225392
225602
|
/* harmony export */ Properties: () => (/* binding */ Properties),
|
|
225603
|
+
/* harmony export */ RequestContext: () => (/* binding */ RequestContext),
|
|
225393
225604
|
/* harmony export */ SVGElements: () => (/* binding */ SVGElements),
|
|
225394
225605
|
/* harmony export */ SVGNamespace: () => (/* binding */ SVGNamespace),
|
|
225395
225606
|
/* harmony export */ Show: () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.Show),
|
|
@@ -225414,6 +225625,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225414
225625
|
/* harmony export */ getNextMatch: () => (/* binding */ getNextMatch),
|
|
225415
225626
|
/* harmony export */ getOwner: () => (/* reexport safe */ solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner),
|
|
225416
225627
|
/* harmony export */ getPropAlias: () => (/* binding */ getPropAlias),
|
|
225628
|
+
/* harmony export */ getRequestEvent: () => (/* binding */ voidFn),
|
|
225417
225629
|
/* harmony export */ hydrate: () => (/* binding */ hydrate),
|
|
225418
225630
|
/* harmony export */ innerHTML: () => (/* binding */ innerHTML),
|
|
225419
225631
|
/* harmony export */ insert: () => (/* binding */ insert),
|
|
@@ -225429,6 +225641,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225429
225641
|
/* harmony export */ runHydrationEvents: () => (/* binding */ runHydrationEvents),
|
|
225430
225642
|
/* harmony export */ setAttribute: () => (/* binding */ setAttribute),
|
|
225431
225643
|
/* harmony export */ setAttributeNS: () => (/* binding */ setAttributeNS),
|
|
225644
|
+
/* harmony export */ setBoolAttribute: () => (/* binding */ setBoolAttribute),
|
|
225432
225645
|
/* harmony export */ setProperty: () => (/* binding */ setProperty),
|
|
225433
225646
|
/* harmony export */ spread: () => (/* binding */ spread),
|
|
225434
225647
|
/* harmony export */ ssr: () => (/* binding */ ssr),
|
|
@@ -225448,14 +225661,54 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
225448
225661
|
|
|
225449
225662
|
|
|
225450
225663
|
|
|
225451
|
-
const booleans = [
|
|
225452
|
-
|
|
225453
|
-
|
|
225454
|
-
|
|
225664
|
+
const booleans = [
|
|
225665
|
+
"allowfullscreen",
|
|
225666
|
+
"async",
|
|
225667
|
+
"autofocus",
|
|
225668
|
+
"autoplay",
|
|
225669
|
+
"checked",
|
|
225670
|
+
"controls",
|
|
225671
|
+
"default",
|
|
225672
|
+
"disabled",
|
|
225673
|
+
"formnovalidate",
|
|
225674
|
+
"hidden",
|
|
225675
|
+
"indeterminate",
|
|
225676
|
+
"inert",
|
|
225677
|
+
"ismap",
|
|
225678
|
+
"loop",
|
|
225679
|
+
"multiple",
|
|
225680
|
+
"muted",
|
|
225681
|
+
"nomodule",
|
|
225682
|
+
"novalidate",
|
|
225683
|
+
"open",
|
|
225684
|
+
"playsinline",
|
|
225685
|
+
"readonly",
|
|
225686
|
+
"required",
|
|
225687
|
+
"reversed",
|
|
225688
|
+
"seamless",
|
|
225689
|
+
"selected"
|
|
225690
|
+
];
|
|
225691
|
+
const Properties = /*#__PURE__*/ new Set([
|
|
225692
|
+
"className",
|
|
225693
|
+
"value",
|
|
225694
|
+
"readOnly",
|
|
225695
|
+
"formNoValidate",
|
|
225696
|
+
"isMap",
|
|
225697
|
+
"noModule",
|
|
225698
|
+
"playsInline",
|
|
225699
|
+
...booleans
|
|
225700
|
+
]);
|
|
225701
|
+
const ChildProperties = /*#__PURE__*/ new Set([
|
|
225702
|
+
"innerHTML",
|
|
225703
|
+
"textContent",
|
|
225704
|
+
"innerText",
|
|
225705
|
+
"children"
|
|
225706
|
+
]);
|
|
225707
|
+
const Aliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
225455
225708
|
className: "class",
|
|
225456
225709
|
htmlFor: "for"
|
|
225457
225710
|
});
|
|
225458
|
-
const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
225711
|
+
const PropAliases = /*#__PURE__*/ Object.assign(Object.create(null), {
|
|
225459
225712
|
class: "className",
|
|
225460
225713
|
formnovalidate: {
|
|
225461
225714
|
$: "formNoValidate",
|
|
@@ -225482,19 +225735,396 @@ const PropAliases = /*#__PURE__*/Object.assign(Object.create(null), {
|
|
|
225482
225735
|
});
|
|
225483
225736
|
function getPropAlias(prop, tagName) {
|
|
225484
225737
|
const a = PropAliases[prop];
|
|
225485
|
-
return typeof a === "object" ? a[tagName] ? a["$"] : undefined : a;
|
|
225486
|
-
}
|
|
225487
|
-
const DelegatedEvents = /*#__PURE__*/new Set([
|
|
225488
|
-
|
|
225489
|
-
"
|
|
225490
|
-
"
|
|
225491
|
-
"
|
|
225492
|
-
"
|
|
225738
|
+
return typeof a === "object" ? (a[tagName] ? a["$"] : undefined) : a;
|
|
225739
|
+
}
|
|
225740
|
+
const DelegatedEvents = /*#__PURE__*/ new Set([
|
|
225741
|
+
"beforeinput",
|
|
225742
|
+
"click",
|
|
225743
|
+
"dblclick",
|
|
225744
|
+
"contextmenu",
|
|
225745
|
+
"focusin",
|
|
225746
|
+
"focusout",
|
|
225747
|
+
"input",
|
|
225748
|
+
"keydown",
|
|
225749
|
+
"keyup",
|
|
225750
|
+
"mousedown",
|
|
225751
|
+
"mousemove",
|
|
225752
|
+
"mouseout",
|
|
225753
|
+
"mouseover",
|
|
225754
|
+
"mouseup",
|
|
225755
|
+
"pointerdown",
|
|
225756
|
+
"pointermove",
|
|
225757
|
+
"pointerout",
|
|
225758
|
+
"pointerover",
|
|
225759
|
+
"pointerup",
|
|
225760
|
+
"touchend",
|
|
225761
|
+
"touchmove",
|
|
225762
|
+
"touchstart"
|
|
225763
|
+
]);
|
|
225764
|
+
const SVGElements = /*#__PURE__*/ new Set([
|
|
225765
|
+
"altGlyph",
|
|
225766
|
+
"altGlyphDef",
|
|
225767
|
+
"altGlyphItem",
|
|
225768
|
+
"animate",
|
|
225769
|
+
"animateColor",
|
|
225770
|
+
"animateMotion",
|
|
225771
|
+
"animateTransform",
|
|
225772
|
+
"circle",
|
|
225773
|
+
"clipPath",
|
|
225774
|
+
"color-profile",
|
|
225775
|
+
"cursor",
|
|
225776
|
+
"defs",
|
|
225777
|
+
"desc",
|
|
225778
|
+
"ellipse",
|
|
225779
|
+
"feBlend",
|
|
225780
|
+
"feColorMatrix",
|
|
225781
|
+
"feComponentTransfer",
|
|
225782
|
+
"feComposite",
|
|
225783
|
+
"feConvolveMatrix",
|
|
225784
|
+
"feDiffuseLighting",
|
|
225785
|
+
"feDisplacementMap",
|
|
225786
|
+
"feDistantLight",
|
|
225787
|
+
"feDropShadow",
|
|
225788
|
+
"feFlood",
|
|
225789
|
+
"feFuncA",
|
|
225790
|
+
"feFuncB",
|
|
225791
|
+
"feFuncG",
|
|
225792
|
+
"feFuncR",
|
|
225793
|
+
"feGaussianBlur",
|
|
225794
|
+
"feImage",
|
|
225795
|
+
"feMerge",
|
|
225796
|
+
"feMergeNode",
|
|
225797
|
+
"feMorphology",
|
|
225798
|
+
"feOffset",
|
|
225799
|
+
"fePointLight",
|
|
225800
|
+
"feSpecularLighting",
|
|
225801
|
+
"feSpotLight",
|
|
225802
|
+
"feTile",
|
|
225803
|
+
"feTurbulence",
|
|
225804
|
+
"filter",
|
|
225805
|
+
"font",
|
|
225806
|
+
"font-face",
|
|
225807
|
+
"font-face-format",
|
|
225808
|
+
"font-face-name",
|
|
225809
|
+
"font-face-src",
|
|
225810
|
+
"font-face-uri",
|
|
225811
|
+
"foreignObject",
|
|
225812
|
+
"g",
|
|
225813
|
+
"glyph",
|
|
225814
|
+
"glyphRef",
|
|
225815
|
+
"hkern",
|
|
225816
|
+
"image",
|
|
225817
|
+
"line",
|
|
225818
|
+
"linearGradient",
|
|
225819
|
+
"marker",
|
|
225820
|
+
"mask",
|
|
225821
|
+
"metadata",
|
|
225822
|
+
"missing-glyph",
|
|
225823
|
+
"mpath",
|
|
225824
|
+
"path",
|
|
225825
|
+
"pattern",
|
|
225826
|
+
"polygon",
|
|
225827
|
+
"polyline",
|
|
225828
|
+
"radialGradient",
|
|
225829
|
+
"rect",
|
|
225830
|
+
"set",
|
|
225831
|
+
"stop",
|
|
225832
|
+
"svg",
|
|
225833
|
+
"switch",
|
|
225834
|
+
"symbol",
|
|
225835
|
+
"text",
|
|
225836
|
+
"textPath",
|
|
225837
|
+
"tref",
|
|
225838
|
+
"tspan",
|
|
225839
|
+
"use",
|
|
225840
|
+
"view",
|
|
225841
|
+
"vkern"
|
|
225842
|
+
]);
|
|
225493
225843
|
const SVGNamespace = {
|
|
225494
225844
|
xlink: "http://www.w3.org/1999/xlink",
|
|
225495
225845
|
xml: "http://www.w3.org/XML/1998/namespace"
|
|
225496
225846
|
};
|
|
225497
|
-
const DOMElements = /*#__PURE__*/new Set([
|
|
225847
|
+
const DOMElements = /*#__PURE__*/ new Set([
|
|
225848
|
+
"html",
|
|
225849
|
+
"base",
|
|
225850
|
+
"head",
|
|
225851
|
+
"link",
|
|
225852
|
+
"meta",
|
|
225853
|
+
"style",
|
|
225854
|
+
"title",
|
|
225855
|
+
"body",
|
|
225856
|
+
"address",
|
|
225857
|
+
"article",
|
|
225858
|
+
"aside",
|
|
225859
|
+
"footer",
|
|
225860
|
+
"header",
|
|
225861
|
+
"main",
|
|
225862
|
+
"nav",
|
|
225863
|
+
"section",
|
|
225864
|
+
"body",
|
|
225865
|
+
"blockquote",
|
|
225866
|
+
"dd",
|
|
225867
|
+
"div",
|
|
225868
|
+
"dl",
|
|
225869
|
+
"dt",
|
|
225870
|
+
"figcaption",
|
|
225871
|
+
"figure",
|
|
225872
|
+
"hr",
|
|
225873
|
+
"li",
|
|
225874
|
+
"ol",
|
|
225875
|
+
"p",
|
|
225876
|
+
"pre",
|
|
225877
|
+
"ul",
|
|
225878
|
+
"a",
|
|
225879
|
+
"abbr",
|
|
225880
|
+
"b",
|
|
225881
|
+
"bdi",
|
|
225882
|
+
"bdo",
|
|
225883
|
+
"br",
|
|
225884
|
+
"cite",
|
|
225885
|
+
"code",
|
|
225886
|
+
"data",
|
|
225887
|
+
"dfn",
|
|
225888
|
+
"em",
|
|
225889
|
+
"i",
|
|
225890
|
+
"kbd",
|
|
225891
|
+
"mark",
|
|
225892
|
+
"q",
|
|
225893
|
+
"rp",
|
|
225894
|
+
"rt",
|
|
225895
|
+
"ruby",
|
|
225896
|
+
"s",
|
|
225897
|
+
"samp",
|
|
225898
|
+
"small",
|
|
225899
|
+
"span",
|
|
225900
|
+
"strong",
|
|
225901
|
+
"sub",
|
|
225902
|
+
"sup",
|
|
225903
|
+
"time",
|
|
225904
|
+
"u",
|
|
225905
|
+
"var",
|
|
225906
|
+
"wbr",
|
|
225907
|
+
"area",
|
|
225908
|
+
"audio",
|
|
225909
|
+
"img",
|
|
225910
|
+
"map",
|
|
225911
|
+
"track",
|
|
225912
|
+
"video",
|
|
225913
|
+
"embed",
|
|
225914
|
+
"iframe",
|
|
225915
|
+
"object",
|
|
225916
|
+
"param",
|
|
225917
|
+
"picture",
|
|
225918
|
+
"portal",
|
|
225919
|
+
"source",
|
|
225920
|
+
"svg",
|
|
225921
|
+
"math",
|
|
225922
|
+
"canvas",
|
|
225923
|
+
"noscript",
|
|
225924
|
+
"script",
|
|
225925
|
+
"del",
|
|
225926
|
+
"ins",
|
|
225927
|
+
"caption",
|
|
225928
|
+
"col",
|
|
225929
|
+
"colgroup",
|
|
225930
|
+
"table",
|
|
225931
|
+
"tbody",
|
|
225932
|
+
"td",
|
|
225933
|
+
"tfoot",
|
|
225934
|
+
"th",
|
|
225935
|
+
"thead",
|
|
225936
|
+
"tr",
|
|
225937
|
+
"button",
|
|
225938
|
+
"datalist",
|
|
225939
|
+
"fieldset",
|
|
225940
|
+
"form",
|
|
225941
|
+
"input",
|
|
225942
|
+
"label",
|
|
225943
|
+
"legend",
|
|
225944
|
+
"meter",
|
|
225945
|
+
"optgroup",
|
|
225946
|
+
"option",
|
|
225947
|
+
"output",
|
|
225948
|
+
"progress",
|
|
225949
|
+
"select",
|
|
225950
|
+
"textarea",
|
|
225951
|
+
"details",
|
|
225952
|
+
"dialog",
|
|
225953
|
+
"menu",
|
|
225954
|
+
"summary",
|
|
225955
|
+
"details",
|
|
225956
|
+
"slot",
|
|
225957
|
+
"template",
|
|
225958
|
+
"acronym",
|
|
225959
|
+
"applet",
|
|
225960
|
+
"basefont",
|
|
225961
|
+
"bgsound",
|
|
225962
|
+
"big",
|
|
225963
|
+
"blink",
|
|
225964
|
+
"center",
|
|
225965
|
+
"content",
|
|
225966
|
+
"dir",
|
|
225967
|
+
"font",
|
|
225968
|
+
"frame",
|
|
225969
|
+
"frameset",
|
|
225970
|
+
"hgroup",
|
|
225971
|
+
"image",
|
|
225972
|
+
"keygen",
|
|
225973
|
+
"marquee",
|
|
225974
|
+
"menuitem",
|
|
225975
|
+
"nobr",
|
|
225976
|
+
"noembed",
|
|
225977
|
+
"noframes",
|
|
225978
|
+
"plaintext",
|
|
225979
|
+
"rb",
|
|
225980
|
+
"rtc",
|
|
225981
|
+
"shadow",
|
|
225982
|
+
"spacer",
|
|
225983
|
+
"strike",
|
|
225984
|
+
"tt",
|
|
225985
|
+
"xmp",
|
|
225986
|
+
"a",
|
|
225987
|
+
"abbr",
|
|
225988
|
+
"acronym",
|
|
225989
|
+
"address",
|
|
225990
|
+
"applet",
|
|
225991
|
+
"area",
|
|
225992
|
+
"article",
|
|
225993
|
+
"aside",
|
|
225994
|
+
"audio",
|
|
225995
|
+
"b",
|
|
225996
|
+
"base",
|
|
225997
|
+
"basefont",
|
|
225998
|
+
"bdi",
|
|
225999
|
+
"bdo",
|
|
226000
|
+
"bgsound",
|
|
226001
|
+
"big",
|
|
226002
|
+
"blink",
|
|
226003
|
+
"blockquote",
|
|
226004
|
+
"body",
|
|
226005
|
+
"br",
|
|
226006
|
+
"button",
|
|
226007
|
+
"canvas",
|
|
226008
|
+
"caption",
|
|
226009
|
+
"center",
|
|
226010
|
+
"cite",
|
|
226011
|
+
"code",
|
|
226012
|
+
"col",
|
|
226013
|
+
"colgroup",
|
|
226014
|
+
"content",
|
|
226015
|
+
"data",
|
|
226016
|
+
"datalist",
|
|
226017
|
+
"dd",
|
|
226018
|
+
"del",
|
|
226019
|
+
"details",
|
|
226020
|
+
"dfn",
|
|
226021
|
+
"dialog",
|
|
226022
|
+
"dir",
|
|
226023
|
+
"div",
|
|
226024
|
+
"dl",
|
|
226025
|
+
"dt",
|
|
226026
|
+
"em",
|
|
226027
|
+
"embed",
|
|
226028
|
+
"fieldset",
|
|
226029
|
+
"figcaption",
|
|
226030
|
+
"figure",
|
|
226031
|
+
"font",
|
|
226032
|
+
"footer",
|
|
226033
|
+
"form",
|
|
226034
|
+
"frame",
|
|
226035
|
+
"frameset",
|
|
226036
|
+
"head",
|
|
226037
|
+
"header",
|
|
226038
|
+
"hgroup",
|
|
226039
|
+
"hr",
|
|
226040
|
+
"html",
|
|
226041
|
+
"i",
|
|
226042
|
+
"iframe",
|
|
226043
|
+
"image",
|
|
226044
|
+
"img",
|
|
226045
|
+
"input",
|
|
226046
|
+
"ins",
|
|
226047
|
+
"kbd",
|
|
226048
|
+
"keygen",
|
|
226049
|
+
"label",
|
|
226050
|
+
"legend",
|
|
226051
|
+
"li",
|
|
226052
|
+
"link",
|
|
226053
|
+
"main",
|
|
226054
|
+
"map",
|
|
226055
|
+
"mark",
|
|
226056
|
+
"marquee",
|
|
226057
|
+
"menu",
|
|
226058
|
+
"menuitem",
|
|
226059
|
+
"meta",
|
|
226060
|
+
"meter",
|
|
226061
|
+
"nav",
|
|
226062
|
+
"nobr",
|
|
226063
|
+
"noembed",
|
|
226064
|
+
"noframes",
|
|
226065
|
+
"noscript",
|
|
226066
|
+
"object",
|
|
226067
|
+
"ol",
|
|
226068
|
+
"optgroup",
|
|
226069
|
+
"option",
|
|
226070
|
+
"output",
|
|
226071
|
+
"p",
|
|
226072
|
+
"param",
|
|
226073
|
+
"picture",
|
|
226074
|
+
"plaintext",
|
|
226075
|
+
"portal",
|
|
226076
|
+
"pre",
|
|
226077
|
+
"progress",
|
|
226078
|
+
"q",
|
|
226079
|
+
"rb",
|
|
226080
|
+
"rp",
|
|
226081
|
+
"rt",
|
|
226082
|
+
"rtc",
|
|
226083
|
+
"ruby",
|
|
226084
|
+
"s",
|
|
226085
|
+
"samp",
|
|
226086
|
+
"script",
|
|
226087
|
+
"section",
|
|
226088
|
+
"select",
|
|
226089
|
+
"shadow",
|
|
226090
|
+
"slot",
|
|
226091
|
+
"small",
|
|
226092
|
+
"source",
|
|
226093
|
+
"spacer",
|
|
226094
|
+
"span",
|
|
226095
|
+
"strike",
|
|
226096
|
+
"strong",
|
|
226097
|
+
"style",
|
|
226098
|
+
"sub",
|
|
226099
|
+
"summary",
|
|
226100
|
+
"sup",
|
|
226101
|
+
"table",
|
|
226102
|
+
"tbody",
|
|
226103
|
+
"td",
|
|
226104
|
+
"template",
|
|
226105
|
+
"textarea",
|
|
226106
|
+
"tfoot",
|
|
226107
|
+
"th",
|
|
226108
|
+
"thead",
|
|
226109
|
+
"time",
|
|
226110
|
+
"title",
|
|
226111
|
+
"tr",
|
|
226112
|
+
"track",
|
|
226113
|
+
"tt",
|
|
226114
|
+
"u",
|
|
226115
|
+
"ul",
|
|
226116
|
+
"var",
|
|
226117
|
+
"video",
|
|
226118
|
+
"wbr",
|
|
226119
|
+
"xmp",
|
|
226120
|
+
"input",
|
|
226121
|
+
"h1",
|
|
226122
|
+
"h2",
|
|
226123
|
+
"h3",
|
|
226124
|
+
"h4",
|
|
226125
|
+
"h5",
|
|
226126
|
+
"h6"
|
|
226127
|
+
]);
|
|
225498
226128
|
|
|
225499
226129
|
function reconcileArrays(parentNode, a, b) {
|
|
225500
226130
|
let bLength = b.length,
|
|
@@ -225515,7 +226145,7 @@ function reconcileArrays(parentNode, a, b) {
|
|
|
225515
226145
|
bEnd--;
|
|
225516
226146
|
}
|
|
225517
226147
|
if (aEnd === aStart) {
|
|
225518
|
-
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
226148
|
+
const node = bEnd < bLength ? (bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart]) : after;
|
|
225519
226149
|
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
225520
226150
|
} else if (bEnd === bStart) {
|
|
225521
226151
|
while (aStart < aEnd) {
|
|
@@ -225555,25 +226185,37 @@ function reconcileArrays(parentNode, a, b) {
|
|
|
225555
226185
|
|
|
225556
226186
|
const $$EVENTS = "_$DX_DELEGATE";
|
|
225557
226187
|
function render(code, element, init, options = {}) {
|
|
226188
|
+
if (!element) {
|
|
226189
|
+
throw new Error(
|
|
226190
|
+
"The `element` passed to `render(..., element)` doesn't exist. Make sure `element` exists in the document."
|
|
226191
|
+
);
|
|
226192
|
+
}
|
|
225558
226193
|
let disposer;
|
|
225559
226194
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => {
|
|
225560
226195
|
disposer = dispose;
|
|
225561
|
-
element === document
|
|
226196
|
+
element === document
|
|
226197
|
+
? code()
|
|
226198
|
+
: insert(element, code(), element.firstChild ? null : undefined, init);
|
|
225562
226199
|
}, options.owner);
|
|
225563
226200
|
return () => {
|
|
225564
226201
|
disposer();
|
|
225565
226202
|
element.textContent = "";
|
|
225566
226203
|
};
|
|
225567
226204
|
}
|
|
225568
|
-
function template(html,
|
|
226205
|
+
function template(html, isImportNode, isSVG) {
|
|
225569
226206
|
let node;
|
|
225570
226207
|
const create = () => {
|
|
225571
|
-
if (
|
|
226208
|
+
if (isHydrating())
|
|
226209
|
+
throw new Error(
|
|
226210
|
+
"Failed attempt to create new DOM elements during hydration. Check that the libraries you are using support hydration."
|
|
226211
|
+
);
|
|
225572
226212
|
const t = document.createElement("template");
|
|
225573
226213
|
t.innerHTML = html;
|
|
225574
226214
|
return isSVG ? t.content.firstChild.firstChild : t.content.firstChild;
|
|
225575
226215
|
};
|
|
225576
|
-
const fn =
|
|
226216
|
+
const fn = isImportNode
|
|
226217
|
+
? () => (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.untrack)(() => document.importNode(node || (node = create()), true))
|
|
226218
|
+
: () => (node || (node = create())).cloneNode(true);
|
|
225577
226219
|
fn.cloneNode = fn;
|
|
225578
226220
|
return fn;
|
|
225579
226221
|
}
|
|
@@ -225594,19 +226236,27 @@ function clearDelegatedEvents(document = window.document) {
|
|
|
225594
226236
|
}
|
|
225595
226237
|
}
|
|
225596
226238
|
function setProperty(node, name, value) {
|
|
225597
|
-
|
|
226239
|
+
if (isHydrating(node)) return;
|
|
226240
|
+
node[name] = value;
|
|
225598
226241
|
}
|
|
225599
226242
|
function setAttribute(node, name, value) {
|
|
225600
|
-
if (
|
|
225601
|
-
if (value == null) node.removeAttribute(name);
|
|
226243
|
+
if (isHydrating(node)) return;
|
|
226244
|
+
if (value == null) node.removeAttribute(name);
|
|
226245
|
+
else node.setAttribute(name, value);
|
|
225602
226246
|
}
|
|
225603
226247
|
function setAttributeNS(node, namespace, name, value) {
|
|
225604
|
-
if (
|
|
225605
|
-
if (value == null) node.removeAttributeNS(namespace, name);
|
|
226248
|
+
if (isHydrating(node)) return;
|
|
226249
|
+
if (value == null) node.removeAttributeNS(namespace, name);
|
|
226250
|
+
else node.setAttributeNS(namespace, name, value);
|
|
226251
|
+
}
|
|
226252
|
+
function setBoolAttribute(node, name, value) {
|
|
226253
|
+
if (isHydrating(node)) return;
|
|
226254
|
+
value ? node.setAttribute(name, "") : node.removeAttribute(name);
|
|
225606
226255
|
}
|
|
225607
226256
|
function className(node, value) {
|
|
225608
|
-
if (
|
|
225609
|
-
if (value == null) node.removeAttribute("class");
|
|
226257
|
+
if (isHydrating(node)) return;
|
|
226258
|
+
if (value == null) node.removeAttribute("class");
|
|
226259
|
+
else node.className = value;
|
|
225610
226260
|
}
|
|
225611
226261
|
function addEventListener(node, name, handler, delegate) {
|
|
225612
226262
|
if (delegate) {
|
|
@@ -225616,8 +226266,8 @@ function addEventListener(node, name, handler, delegate) {
|
|
|
225616
226266
|
} else node[`$$${name}`] = handler;
|
|
225617
226267
|
} else if (Array.isArray(handler)) {
|
|
225618
226268
|
const handlerFn = handler[0];
|
|
225619
|
-
node.addEventListener(name, handler[0] = e => handlerFn.call(node, handler[1], e));
|
|
225620
|
-
} else node.addEventListener(name, handler);
|
|
226269
|
+
node.addEventListener(name, (handler[0] = e => handlerFn.call(node, handler[1], e)));
|
|
226270
|
+
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
225621
226271
|
}
|
|
225622
226272
|
function classList(node, value, prev = {}) {
|
|
225623
226273
|
const classKeys = Object.keys(value || {}),
|
|
@@ -225641,7 +226291,7 @@ function classList(node, value, prev = {}) {
|
|
|
225641
226291
|
function style(node, value, prev) {
|
|
225642
226292
|
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
225643
226293
|
const nodeStyle = node.style;
|
|
225644
|
-
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
226294
|
+
if (typeof value === "string") return (nodeStyle.cssText = value);
|
|
225645
226295
|
typeof prev === "string" && (nodeStyle.cssText = prev = undefined);
|
|
225646
226296
|
prev || (prev = {});
|
|
225647
226297
|
value || (value = {});
|
|
@@ -225662,9 +226312,11 @@ function style(node, value, prev) {
|
|
|
225662
226312
|
function spread(node, props = {}, isSVG, skipChildren) {
|
|
225663
226313
|
const prevProps = {};
|
|
225664
226314
|
if (!skipChildren) {
|
|
225665
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(
|
|
226315
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(
|
|
226316
|
+
() => (prevProps.children = insertExpression(node, props.children, prevProps.children))
|
|
226317
|
+
);
|
|
225666
226318
|
}
|
|
225667
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => props.ref && props.ref
|
|
226319
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => typeof props.ref === "function" && use(props.ref, node));
|
|
225668
226320
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => assign(node, props, isSVG, true, prevProps, true));
|
|
225669
226321
|
return prevProps;
|
|
225670
226322
|
}
|
|
@@ -225691,7 +226343,7 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
225691
226343
|
for (const prop in prevProps) {
|
|
225692
226344
|
if (!(prop in props)) {
|
|
225693
226345
|
if (prop === "children") continue;
|
|
225694
|
-
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef);
|
|
226346
|
+
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
|
|
225695
226347
|
}
|
|
225696
226348
|
}
|
|
225697
226349
|
for (const prop in props) {
|
|
@@ -225700,10 +226352,11 @@ function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = fals
|
|
|
225700
226352
|
continue;
|
|
225701
226353
|
}
|
|
225702
226354
|
const value = props[prop];
|
|
225703
|
-
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef);
|
|
226355
|
+
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
|
|
225704
226356
|
}
|
|
225705
226357
|
}
|
|
225706
226358
|
function hydrate$1(code, element, options = {}) {
|
|
226359
|
+
if (globalThis._$HY.done) return render(code, element, [...element.childNodes], options);
|
|
225707
226360
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = globalThis._$HY.completed;
|
|
225708
226361
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = globalThis._$HY.events;
|
|
225709
226362
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.load = id => globalThis._$HY.r[id];
|
|
@@ -225714,15 +226367,26 @@ function hydrate$1(code, element, options = {}) {
|
|
|
225714
226367
|
id: options.renderId || "",
|
|
225715
226368
|
count: 0
|
|
225716
226369
|
};
|
|
225717
|
-
|
|
225718
|
-
|
|
225719
|
-
|
|
225720
|
-
|
|
226370
|
+
try {
|
|
226371
|
+
gatherHydratable(element, options.renderId);
|
|
226372
|
+
return render(code, element, [...element.childNodes], options);
|
|
226373
|
+
} finally {
|
|
226374
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context = null;
|
|
226375
|
+
}
|
|
225721
226376
|
}
|
|
225722
226377
|
function getNextElement(template) {
|
|
225723
|
-
let node,
|
|
225724
|
-
|
|
225725
|
-
|
|
226378
|
+
let node,
|
|
226379
|
+
key,
|
|
226380
|
+
hydrating = isHydrating();
|
|
226381
|
+
if (!hydrating || !(node = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.get((key = getHydrationKey())))) {
|
|
226382
|
+
if (hydrating) {
|
|
226383
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done = true;
|
|
226384
|
+
throw new Error(
|
|
226385
|
+
`Hydration Mismatch. Unable to find DOM nodes for hydration key: ${key}\n${
|
|
226386
|
+
template ? template().outerHTML : ""
|
|
226387
|
+
}`
|
|
226388
|
+
);
|
|
226389
|
+
}
|
|
225726
226390
|
return template();
|
|
225727
226391
|
}
|
|
225728
226392
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed.add(node);
|
|
@@ -225737,11 +226401,12 @@ function getNextMarker(start) {
|
|
|
225737
226401
|
let end = start,
|
|
225738
226402
|
count = 0,
|
|
225739
226403
|
current = [];
|
|
225740
|
-
if (
|
|
226404
|
+
if (isHydrating(start)) {
|
|
225741
226405
|
while (end) {
|
|
225742
226406
|
if (end.nodeType === 8) {
|
|
225743
226407
|
const v = end.nodeValue;
|
|
225744
|
-
if (v === "$") count++;
|
|
226408
|
+
if (v === "$") count++;
|
|
226409
|
+
else if (v === "/") {
|
|
225745
226410
|
if (count === 0) return [end, current];
|
|
225746
226411
|
count--;
|
|
225747
226412
|
}
|
|
@@ -225755,29 +226420,35 @@ function getNextMarker(start) {
|
|
|
225755
226420
|
function runHydrationEvents() {
|
|
225756
226421
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued) {
|
|
225757
226422
|
queueMicrotask(() => {
|
|
225758
|
-
const {
|
|
225759
|
-
|
|
225760
|
-
events
|
|
225761
|
-
} = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
|
|
226423
|
+
const { completed, events } = solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig;
|
|
226424
|
+
if (!events) return;
|
|
225762
226425
|
events.queued = false;
|
|
225763
226426
|
while (events.length) {
|
|
225764
226427
|
const [el, e] = events[0];
|
|
225765
226428
|
if (!completed.has(el)) return;
|
|
225766
|
-
eventHandler(e);
|
|
225767
226429
|
events.shift();
|
|
226430
|
+
eventHandler(e);
|
|
226431
|
+
}
|
|
226432
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) {
|
|
226433
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events = _$HY.events = null;
|
|
226434
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.completed = _$HY.completed = null;
|
|
225768
226435
|
}
|
|
225769
226436
|
});
|
|
225770
226437
|
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.queued = true;
|
|
225771
226438
|
}
|
|
225772
226439
|
}
|
|
226440
|
+
function isHydrating(node) {
|
|
226441
|
+
return !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done && (!node || node.isConnected);
|
|
226442
|
+
}
|
|
225773
226443
|
function toPropertyName(name) {
|
|
225774
226444
|
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
225775
226445
|
}
|
|
225776
226446
|
function toggleClassKey(node, key, value) {
|
|
225777
226447
|
const classNames = key.trim().split(/\s+/);
|
|
225778
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
226448
|
+
for (let i = 0, nameLen = classNames.length; i < nameLen; i++)
|
|
226449
|
+
node.classList.toggle(classNames[i], value);
|
|
225779
226450
|
}
|
|
225780
|
-
function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
226451
|
+
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
225781
226452
|
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
225782
226453
|
if (prop === "style") return style(node, value, prev);
|
|
225783
226454
|
if (prop === "classList") return classList(node, value, prev);
|
|
@@ -225786,8 +226457,8 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
225786
226457
|
if (!skipRef) value(node);
|
|
225787
226458
|
} else if (prop.slice(0, 3) === "on:") {
|
|
225788
226459
|
const e = prop.slice(3);
|
|
225789
|
-
prev && node.removeEventListener(e, prev);
|
|
225790
|
-
value && node.addEventListener(e, value);
|
|
226460
|
+
prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
|
|
226461
|
+
value && node.addEventListener(e, value, typeof value !== "function" && value);
|
|
225791
226462
|
} else if (prop.slice(0, 10) === "oncapture:") {
|
|
225792
226463
|
const e = prop.slice(10);
|
|
225793
226464
|
prev && node.removeEventListener(e, prev, true);
|
|
@@ -225805,27 +226476,59 @@ function assignProp(node, prop, value, prev, isSVG, skipRef) {
|
|
|
225805
226476
|
}
|
|
225806
226477
|
} else if (prop.slice(0, 5) === "attr:") {
|
|
225807
226478
|
setAttribute(node, prop.slice(5), value);
|
|
225808
|
-
} else if (
|
|
226479
|
+
} else if (prop.slice(0, 5) === "bool:") {
|
|
226480
|
+
setBoolAttribute(node, prop.slice(5), value);
|
|
226481
|
+
} else if (
|
|
226482
|
+
(forceProp = prop.slice(0, 5) === "prop:") ||
|
|
226483
|
+
(isChildProp = ChildProperties.has(prop)) ||
|
|
226484
|
+
(!isSVG &&
|
|
226485
|
+
((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop)))) ||
|
|
226486
|
+
(isCE = node.nodeName.includes("-") || "is" in props)
|
|
226487
|
+
) {
|
|
225809
226488
|
if (forceProp) {
|
|
225810
226489
|
prop = prop.slice(5);
|
|
225811
226490
|
isProp = true;
|
|
225812
|
-
} else if (
|
|
225813
|
-
if (prop === "class" || prop === "className") className(node, value);
|
|
226491
|
+
} else if (isHydrating(node)) return value;
|
|
226492
|
+
if (prop === "class" || prop === "className") className(node, value);
|
|
226493
|
+
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
226494
|
+
else node[propAlias || prop] = value;
|
|
225814
226495
|
} else {
|
|
225815
226496
|
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
225816
|
-
if (ns) setAttributeNS(node, ns, prop, value);
|
|
226497
|
+
if (ns) setAttributeNS(node, ns, prop, value);
|
|
226498
|
+
else setAttribute(node, Aliases[prop] || prop, value);
|
|
225817
226499
|
}
|
|
225818
226500
|
return value;
|
|
225819
226501
|
}
|
|
225820
226502
|
function eventHandler(e) {
|
|
226503
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events) {
|
|
226504
|
+
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.events.find(([el, ev]) => ev === e)) return;
|
|
226505
|
+
}
|
|
226506
|
+
let node = e.target;
|
|
225821
226507
|
const key = `$$${e.type}`;
|
|
225822
|
-
|
|
225823
|
-
|
|
226508
|
+
const oriTarget = e.target;
|
|
226509
|
+
const oriCurrentTarget = e.currentTarget;
|
|
226510
|
+
const retarget = value =>
|
|
225824
226511
|
Object.defineProperty(e, "target", {
|
|
225825
226512
|
configurable: true,
|
|
225826
|
-
value
|
|
226513
|
+
value
|
|
225827
226514
|
});
|
|
225828
|
-
|
|
226515
|
+
const handleNode = () => {
|
|
226516
|
+
const handler = node[key];
|
|
226517
|
+
if (handler && !node.disabled) {
|
|
226518
|
+
const data = node[`${key}Data`];
|
|
226519
|
+
data !== undefined ? handler.call(node, data, e) : handler.call(node, e);
|
|
226520
|
+
if (e.cancelBubble) return;
|
|
226521
|
+
}
|
|
226522
|
+
node.host &&
|
|
226523
|
+
typeof node.host !== "string" &&
|
|
226524
|
+
!node.host._$host &&
|
|
226525
|
+
node.contains(e.target) &&
|
|
226526
|
+
retarget(node.host);
|
|
226527
|
+
return true;
|
|
226528
|
+
};
|
|
226529
|
+
const walkUpTree = () => {
|
|
226530
|
+
while (handleNode() && (node = node._$host || node.parentNode || node.host));
|
|
226531
|
+
};
|
|
225829
226532
|
Object.defineProperty(e, "currentTarget", {
|
|
225830
226533
|
configurable: true,
|
|
225831
226534
|
get() {
|
|
@@ -225833,23 +226536,33 @@ function eventHandler(e) {
|
|
|
225833
226536
|
}
|
|
225834
226537
|
});
|
|
225835
226538
|
if (solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done) solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.done = _$HY.done = true;
|
|
225836
|
-
|
|
225837
|
-
const
|
|
225838
|
-
|
|
225839
|
-
|
|
225840
|
-
|
|
225841
|
-
if (
|
|
226539
|
+
if (e.composedPath) {
|
|
226540
|
+
const path = e.composedPath();
|
|
226541
|
+
retarget(path[0]);
|
|
226542
|
+
for (let i = 0; i < path.length - 2; i++) {
|
|
226543
|
+
node = path[i];
|
|
226544
|
+
if (!handleNode()) break;
|
|
226545
|
+
if (node._$host) {
|
|
226546
|
+
node = node._$host;
|
|
226547
|
+
walkUpTree();
|
|
226548
|
+
break;
|
|
226549
|
+
}
|
|
226550
|
+
if (node.parentNode === oriCurrentTarget) {
|
|
226551
|
+
break;
|
|
226552
|
+
}
|
|
225842
226553
|
}
|
|
225843
|
-
|
|
225844
|
-
|
|
226554
|
+
} else walkUpTree();
|
|
226555
|
+
retarget(oriTarget);
|
|
225845
226556
|
}
|
|
225846
226557
|
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
225847
|
-
|
|
226558
|
+
const hydrating = isHydrating(parent);
|
|
226559
|
+
if (hydrating) {
|
|
225848
226560
|
!current && (current = [...parent.childNodes]);
|
|
225849
226561
|
let cleaned = [];
|
|
225850
226562
|
for (let i = 0; i < current.length; i++) {
|
|
225851
226563
|
const node = current[i];
|
|
225852
|
-
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
226564
|
+
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
226565
|
+
else cleaned.push(node);
|
|
225853
226566
|
}
|
|
225854
226567
|
current = cleaned;
|
|
225855
226568
|
}
|
|
@@ -225857,14 +226570,17 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225857
226570
|
if (value === current) return current;
|
|
225858
226571
|
const t = typeof value,
|
|
225859
226572
|
multi = marker !== undefined;
|
|
225860
|
-
parent = multi && current[0] && current[0].parentNode || parent;
|
|
226573
|
+
parent = (multi && current[0] && current[0].parentNode) || parent;
|
|
225861
226574
|
if (t === "string" || t === "number") {
|
|
225862
|
-
if (
|
|
225863
|
-
if (t === "number")
|
|
226575
|
+
if (hydrating) return current;
|
|
226576
|
+
if (t === "number") {
|
|
226577
|
+
value = value.toString();
|
|
226578
|
+
if (value === current) return current;
|
|
226579
|
+
}
|
|
225864
226580
|
if (multi) {
|
|
225865
226581
|
let node = current[0];
|
|
225866
226582
|
if (node && node.nodeType === 3) {
|
|
225867
|
-
node.data = value;
|
|
226583
|
+
node.data !== value && (node.data = value);
|
|
225868
226584
|
} else node = document.createTextNode(value);
|
|
225869
226585
|
current = cleanChildren(parent, current, marker, node);
|
|
225870
226586
|
} else {
|
|
@@ -225873,7 +226589,7 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225873
226589
|
} else current = parent.textContent = value;
|
|
225874
226590
|
}
|
|
225875
226591
|
} else if (value == null || t === "boolean") {
|
|
225876
|
-
if (
|
|
226592
|
+
if (hydrating) return current;
|
|
225877
226593
|
current = cleanChildren(parent, current, marker);
|
|
225878
226594
|
} else if (t === "function") {
|
|
225879
226595
|
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => {
|
|
@@ -225886,16 +226602,17 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225886
226602
|
const array = [];
|
|
225887
226603
|
const currentArray = current && Array.isArray(current);
|
|
225888
226604
|
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
225889
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => current = insertExpression(parent, array, current, marker, true));
|
|
226605
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRenderEffect)(() => (current = insertExpression(parent, array, current, marker, true)));
|
|
225890
226606
|
return () => current;
|
|
225891
226607
|
}
|
|
225892
|
-
if (
|
|
226608
|
+
if (hydrating) {
|
|
225893
226609
|
if (!array.length) return current;
|
|
225894
|
-
if (marker === undefined) return [...parent.childNodes];
|
|
226610
|
+
if (marker === undefined) return (current = [...parent.childNodes]);
|
|
225895
226611
|
let node = array[0];
|
|
225896
|
-
|
|
226612
|
+
if (node.parentNode !== parent) return current;
|
|
226613
|
+
const nodes = [node];
|
|
225897
226614
|
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
225898
|
-
return current = nodes;
|
|
226615
|
+
return (current = nodes);
|
|
225899
226616
|
}
|
|
225900
226617
|
if (array.length === 0) {
|
|
225901
226618
|
current = cleanChildren(parent, current, marker);
|
|
@@ -225910,9 +226627,9 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
|
225910
226627
|
}
|
|
225911
226628
|
current = array;
|
|
225912
226629
|
} else if (value.nodeType) {
|
|
225913
|
-
if (
|
|
226630
|
+
if (hydrating && value.parentNode) return (current = multi ? [value] : value);
|
|
225914
226631
|
if (Array.isArray(current)) {
|
|
225915
|
-
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
226632
|
+
if (multi) return (current = cleanChildren(parent, current, marker, value));
|
|
225916
226633
|
cleanChildren(parent, current, null, value);
|
|
225917
226634
|
} else if (current == null || current === "" || !parent.firstChild) {
|
|
225918
226635
|
parent.appendChild(value);
|
|
@@ -225925,23 +226642,30 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
|
225925
226642
|
let dynamic = false;
|
|
225926
226643
|
for (let i = 0, len = array.length; i < len; i++) {
|
|
225927
226644
|
let item = array[i],
|
|
225928
|
-
prev = current && current[
|
|
226645
|
+
prev = current && current[normalized.length],
|
|
225929
226646
|
t;
|
|
225930
|
-
if (item == null || item === true || item === false)
|
|
226647
|
+
if (item == null || item === true || item === false);
|
|
226648
|
+
else if ((t = typeof item) === "object" && item.nodeType) {
|
|
225931
226649
|
normalized.push(item);
|
|
225932
226650
|
} else if (Array.isArray(item)) {
|
|
225933
226651
|
dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
225934
226652
|
} else if (t === "function") {
|
|
225935
226653
|
if (unwrap) {
|
|
225936
226654
|
while (typeof item === "function") item = item();
|
|
225937
|
-
dynamic =
|
|
226655
|
+
dynamic =
|
|
226656
|
+
normalizeIncomingArray(
|
|
226657
|
+
normalized,
|
|
226658
|
+
Array.isArray(item) ? item : [item],
|
|
226659
|
+
Array.isArray(prev) ? prev : [prev]
|
|
226660
|
+
) || dynamic;
|
|
225938
226661
|
} else {
|
|
225939
226662
|
normalized.push(item);
|
|
225940
226663
|
dynamic = true;
|
|
225941
226664
|
}
|
|
225942
226665
|
} else {
|
|
225943
226666
|
const value = String(item);
|
|
225944
|
-
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
226667
|
+
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
226668
|
+
else normalized.push(document.createTextNode(value));
|
|
225945
226669
|
}
|
|
225946
226670
|
}
|
|
225947
226671
|
return dynamic;
|
|
@@ -225950,7 +226674,7 @@ function appendNodes(parent, array, marker = null) {
|
|
|
225950
226674
|
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
225951
226675
|
}
|
|
225952
226676
|
function cleanChildren(parent, current, marker, replacement) {
|
|
225953
|
-
if (marker === undefined) return parent.textContent = "";
|
|
226677
|
+
if (marker === undefined) return (parent.textContent = "");
|
|
225954
226678
|
const node = replacement || document.createTextNode("");
|
|
225955
226679
|
if (current.length) {
|
|
225956
226680
|
let inserted = false;
|
|
@@ -225958,7 +226682,9 @@ function cleanChildren(parent, current, marker, replacement) {
|
|
|
225958
226682
|
const el = current[i];
|
|
225959
226683
|
if (node !== el) {
|
|
225960
226684
|
const isParent = el.parentNode === parent;
|
|
225961
|
-
if (!inserted && !i)
|
|
226685
|
+
if (!inserted && !i)
|
|
226686
|
+
isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
226687
|
+
else isParent && el.remove();
|
|
225962
226688
|
} else inserted = true;
|
|
225963
226689
|
}
|
|
225964
226690
|
} else parent.insertBefore(node, marker);
|
|
@@ -225969,12 +226695,12 @@ function gatherHydratable(element, root) {
|
|
|
225969
226695
|
for (let i = 0; i < templates.length; i++) {
|
|
225970
226696
|
const node = templates[i];
|
|
225971
226697
|
const key = node.getAttribute("data-hk");
|
|
225972
|
-
if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key))
|
|
226698
|
+
if ((!root || key.startsWith(root)) && !solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.has(key))
|
|
226699
|
+
solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.registry.set(key, node);
|
|
225973
226700
|
}
|
|
225974
226701
|
}
|
|
225975
226702
|
function getHydrationKey() {
|
|
225976
|
-
|
|
225977
|
-
return `${hydrate.id}${hydrate.count++}`;
|
|
226703
|
+
return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.getNextContextId();
|
|
225978
226704
|
}
|
|
225979
226705
|
function NoHydration(props) {
|
|
225980
226706
|
return solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context ? undefined : props.children;
|
|
@@ -225982,7 +226708,8 @@ function NoHydration(props) {
|
|
|
225982
226708
|
function Hydration(props) {
|
|
225983
226709
|
return props.children;
|
|
225984
226710
|
}
|
|
225985
|
-
|
|
226711
|
+
const voidFn = () => undefined;
|
|
226712
|
+
const RequestContext = Symbol();
|
|
225986
226713
|
function innerHTML(parent, content) {
|
|
225987
226714
|
!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context && (parent.innerHTML = content);
|
|
225988
226715
|
}
|
|
@@ -226021,42 +226748,47 @@ const hydrate = (...args) => {
|
|
|
226021
226748
|
return hydrate$1(...args);
|
|
226022
226749
|
};
|
|
226023
226750
|
function Portal(props) {
|
|
226024
|
-
const {
|
|
226025
|
-
useShadow
|
|
226026
|
-
} = props,
|
|
226751
|
+
const { useShadow } = props,
|
|
226027
226752
|
marker = document.createTextNode(""),
|
|
226028
226753
|
mount = () => props.mount || document.body,
|
|
226029
226754
|
owner = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)();
|
|
226030
226755
|
let content;
|
|
226031
226756
|
let hydrating = !!solid_js__WEBPACK_IMPORTED_MODULE_0__.sharedConfig.context;
|
|
226032
|
-
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(
|
|
226033
|
-
|
|
226034
|
-
|
|
226035
|
-
|
|
226036
|
-
|
|
226037
|
-
|
|
226038
|
-
|
|
226039
|
-
|
|
226040
|
-
|
|
226041
|
-
|
|
226042
|
-
|
|
226043
|
-
|
|
226044
|
-
|
|
226045
|
-
|
|
226046
|
-
|
|
226047
|
-
|
|
226048
|
-
|
|
226049
|
-
|
|
226050
|
-
|
|
226051
|
-
|
|
226052
|
-
|
|
226053
|
-
|
|
226054
|
-
|
|
226055
|
-
|
|
226757
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createEffect)(
|
|
226758
|
+
() => {
|
|
226759
|
+
if (hydrating) (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.getOwner)().user = hydrating = false;
|
|
226760
|
+
content || (content = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.runWithOwner)(owner, () => (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createMemo)(() => props.children)));
|
|
226761
|
+
const el = mount();
|
|
226762
|
+
if (el instanceof HTMLHeadElement) {
|
|
226763
|
+
const [clean, setClean] = (0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createSignal)(false);
|
|
226764
|
+
const cleanup = () => setClean(true);
|
|
226765
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.createRoot)(dispose => insert(el, () => (!clean() ? content() : dispose()), null));
|
|
226766
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(cleanup);
|
|
226767
|
+
} else {
|
|
226768
|
+
const container = createElement(props.isSVG ? "g" : "div", props.isSVG),
|
|
226769
|
+
renderRoot =
|
|
226770
|
+
useShadow && container.attachShadow
|
|
226771
|
+
? container.attachShadow({
|
|
226772
|
+
mode: "open"
|
|
226773
|
+
})
|
|
226774
|
+
: container;
|
|
226775
|
+
Object.defineProperty(container, "_$host", {
|
|
226776
|
+
get() {
|
|
226777
|
+
return marker.parentNode;
|
|
226778
|
+
},
|
|
226779
|
+
configurable: true
|
|
226780
|
+
});
|
|
226781
|
+
insert(renderRoot, content);
|
|
226782
|
+
el.appendChild(container);
|
|
226783
|
+
props.ref && props.ref(container);
|
|
226784
|
+
(0,solid_js__WEBPACK_IMPORTED_MODULE_0__.onCleanup)(() => el.removeChild(container));
|
|
226785
|
+
}
|
|
226786
|
+
},
|
|
226787
|
+
undefined,
|
|
226788
|
+
{
|
|
226789
|
+
render: !hydrating
|
|
226056
226790
|
}
|
|
226057
|
-
|
|
226058
|
-
render: !hydrating
|
|
226059
|
-
});
|
|
226791
|
+
);
|
|
226060
226792
|
return marker;
|
|
226061
226793
|
}
|
|
226062
226794
|
function Dynamic(props) {
|
|
@@ -228187,4 +228919,4 @@ root.render(/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(piral_
|
|
|
228187
228919
|
|
|
228188
228920
|
/******/ })()
|
|
228189
228921
|
;
|
|
228190
|
-
//# sourceMappingURL=index.
|
|
228922
|
+
//# sourceMappingURL=index.30c0a3.js.map
|