sample-cross-fx 1.6.2-beta.7367 → 1.6.2-beta.7394
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.f62189.js → index.d32ba2.js} +536 -446
- package/app/{index.f62189.js.map → index.d32ba2.js.map} +1 -1
- package/app/index.html +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
|
@@ -60052,11 +60052,101 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60052
60052
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
60053
60053
|
/* harmony export */ createRouteMatcher: () => (/* binding */ createRouteMatcher)
|
|
60054
60054
|
/* harmony export */ });
|
|
60055
|
-
|
|
60056
|
-
|
|
60057
|
-
|
|
60055
|
+
const defaultDelimiter = escapeString('/');
|
|
60056
|
+
const pathExpr = new RegExp(['(\\\\.)', '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'), 'g');
|
|
60057
|
+
function escapeString(str) {
|
|
60058
|
+
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1');
|
|
60059
|
+
}
|
|
60060
|
+
function escapeGroup(group) {
|
|
60061
|
+
return group.replace(/([=!:$\/()])/g, '\\$1');
|
|
60062
|
+
}
|
|
60063
|
+
function parse(str) {
|
|
60064
|
+
const tokens = [];
|
|
60065
|
+
let key = 0;
|
|
60066
|
+
let index = 0;
|
|
60067
|
+
let path = '';
|
|
60068
|
+
let res;
|
|
60069
|
+
while ((res = pathExpr.exec(str)) !== null) {
|
|
60070
|
+
const m = res[0];
|
|
60071
|
+
const escaped = res[1];
|
|
60072
|
+
const offset = res.index;
|
|
60073
|
+
path += str.slice(index, offset);
|
|
60074
|
+
index = offset + m.length;
|
|
60075
|
+
// Ignore already escaped sequences.
|
|
60076
|
+
if (escaped) {
|
|
60077
|
+
path += escaped[1];
|
|
60078
|
+
continue;
|
|
60079
|
+
}
|
|
60080
|
+
const next = str[index];
|
|
60081
|
+
const prefix = res[2];
|
|
60082
|
+
const name = res[3];
|
|
60083
|
+
const capture = res[4];
|
|
60084
|
+
const group = res[5];
|
|
60085
|
+
const modifier = res[6];
|
|
60086
|
+
const asterisk = res[7];
|
|
60087
|
+
// Push the current path onto the tokens.
|
|
60088
|
+
if (path) {
|
|
60089
|
+
tokens.push(path);
|
|
60090
|
+
path = '';
|
|
60091
|
+
}
|
|
60092
|
+
const partial = prefix != null && next != null && next !== prefix;
|
|
60093
|
+
const repeat = modifier === '+' || modifier === '*';
|
|
60094
|
+
const optional = modifier === '?' || modifier === '*';
|
|
60095
|
+
const delimiter = res[2] || '/';
|
|
60096
|
+
const pattern = capture || group;
|
|
60097
|
+
tokens.push({
|
|
60098
|
+
name: name || `${key++}`,
|
|
60099
|
+
prefix: prefix || '',
|
|
60100
|
+
delimiter,
|
|
60101
|
+
optional,
|
|
60102
|
+
repeat,
|
|
60103
|
+
partial,
|
|
60104
|
+
asterisk: !!asterisk,
|
|
60105
|
+
pattern: pattern ? escapeGroup(pattern) : asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?'
|
|
60106
|
+
});
|
|
60107
|
+
}
|
|
60108
|
+
// Match any characters still remaining.
|
|
60109
|
+
if (index < str.length) {
|
|
60110
|
+
path += str.substring(index);
|
|
60111
|
+
}
|
|
60112
|
+
// If the path exists, push it onto the end.
|
|
60113
|
+
if (path) {
|
|
60114
|
+
tokens.push(path);
|
|
60115
|
+
}
|
|
60116
|
+
return tokens;
|
|
60117
|
+
}
|
|
60118
|
+
function tokensToRegExp(tokens) {
|
|
60119
|
+
let route = '';
|
|
60120
|
+
for (const token of tokens) {
|
|
60121
|
+
if (typeof token === 'string') {
|
|
60122
|
+
route += escapeString(token);
|
|
60123
|
+
} else {
|
|
60124
|
+
const prefix = escapeString(token.prefix);
|
|
60125
|
+
let capture = '(?:' + token.pattern + ')';
|
|
60126
|
+
if (token.repeat) {
|
|
60127
|
+
capture += '(?:' + prefix + capture + ')*';
|
|
60128
|
+
}
|
|
60129
|
+
if (token.optional) {
|
|
60130
|
+
if (!token.partial) {
|
|
60131
|
+
capture = '(?:' + prefix + '(' + capture + '))?';
|
|
60132
|
+
} else {
|
|
60133
|
+
capture = prefix + '(' + capture + ')?';
|
|
60134
|
+
}
|
|
60135
|
+
} else {
|
|
60136
|
+
capture = prefix + '(' + capture + ')';
|
|
60137
|
+
}
|
|
60138
|
+
route += capture;
|
|
60139
|
+
}
|
|
60140
|
+
}
|
|
60141
|
+
const endsWithDelimiter = route.slice(-defaultDelimiter.length) === defaultDelimiter;
|
|
60142
|
+
const path = endsWithDelimiter ? route.slice(0, -defaultDelimiter.length) : route;
|
|
60143
|
+
return new RegExp(`^${path}(?:${defaultDelimiter}(?=$))?$`, 'i');
|
|
60144
|
+
}
|
|
60145
|
+
function stringToRegexp(path) {
|
|
60146
|
+
return tokensToRegExp(parse(path));
|
|
60147
|
+
}
|
|
60058
60148
|
function createRouteMatcher(path) {
|
|
60059
|
-
return
|
|
60149
|
+
return stringToRegexp(path);
|
|
60060
60150
|
}
|
|
60061
60151
|
|
|
60062
60152
|
/***/ }),
|
|
@@ -60801,12 +60891,12 @@ function installPiralDebug(options) {
|
|
|
60801
60891
|
debug: debugApiVersion,
|
|
60802
60892
|
instance: {
|
|
60803
60893
|
name: "sample-cross-fx",
|
|
60804
|
-
version: "1.6.2-beta.
|
|
60894
|
+
version: "1.6.2-beta.7394",
|
|
60805
60895
|
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"
|
|
60806
60896
|
},
|
|
60807
60897
|
build: {
|
|
60808
|
-
date: "2024-09-
|
|
60809
|
-
cli: "1.6.2-beta.
|
|
60898
|
+
date: "2024-09-10T15:40:02.156Z",
|
|
60899
|
+
cli: "1.6.2-beta.7394",
|
|
60810
60900
|
compat: "1"
|
|
60811
60901
|
}
|
|
60812
60902
|
};
|
|
@@ -72780,7 +72870,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
72780
72870
|
|
|
72781
72871
|
|
|
72782
72872
|
function fillDependencies(deps) {
|
|
72783
|
-
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.8.2"]=_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.6.2-beta.
|
|
72873
|
+
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.8.2"]=_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.6.2-beta.7394"]=_converters_piral_ng_common_js__WEBPACK_IMPORTED_MODULE_25__;deps["piral-ng@1.6.2-beta.7394"]=_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__
|
|
72784
72874
|
}
|
|
72785
72875
|
|
|
72786
72876
|
|
|
@@ -72833,442 +72923,6 @@ return (0,piral_debug_utils__WEBPACK_IMPORTED_MODULE_39__.useDebugRouteFilter)(p
|
|
|
72833
72923
|
|
|
72834
72924
|
|
|
72835
72925
|
|
|
72836
|
-
/***/ }),
|
|
72837
|
-
|
|
72838
|
-
/***/ "../../../node_modules/path-to-regexp/index.js":
|
|
72839
|
-
/*!*****************************************************!*\
|
|
72840
|
-
!*** ../../../node_modules/path-to-regexp/index.js ***!
|
|
72841
|
-
\*****************************************************/
|
|
72842
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
72843
|
-
|
|
72844
|
-
var isarray = __webpack_require__(/*! isarray */ "../../../node_modules/isarray/index.js")
|
|
72845
|
-
|
|
72846
|
-
/**
|
|
72847
|
-
* Expose `pathToRegexp`.
|
|
72848
|
-
*/
|
|
72849
|
-
module.exports = pathToRegexp
|
|
72850
|
-
module.exports.parse = parse
|
|
72851
|
-
module.exports.compile = compile
|
|
72852
|
-
module.exports.tokensToFunction = tokensToFunction
|
|
72853
|
-
module.exports.tokensToRegExp = tokensToRegExp
|
|
72854
|
-
|
|
72855
|
-
/**
|
|
72856
|
-
* The main path matching regexp utility.
|
|
72857
|
-
*
|
|
72858
|
-
* @type {RegExp}
|
|
72859
|
-
*/
|
|
72860
|
-
var PATH_REGEXP = new RegExp([
|
|
72861
|
-
// Match escaped characters that would otherwise appear in future matches.
|
|
72862
|
-
// This allows the user to escape special characters that won't transform.
|
|
72863
|
-
'(\\\\.)',
|
|
72864
|
-
// Match Express-style parameters and un-named parameters with a prefix
|
|
72865
|
-
// and optional suffixes. Matches appear as:
|
|
72866
|
-
//
|
|
72867
|
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
72868
|
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
72869
|
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
72870
|
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
|
72871
|
-
].join('|'), 'g')
|
|
72872
|
-
|
|
72873
|
-
/**
|
|
72874
|
-
* Parse a string for the raw tokens.
|
|
72875
|
-
*
|
|
72876
|
-
* @param {string} str
|
|
72877
|
-
* @param {Object=} options
|
|
72878
|
-
* @return {!Array}
|
|
72879
|
-
*/
|
|
72880
|
-
function parse (str, options) {
|
|
72881
|
-
var tokens = []
|
|
72882
|
-
var key = 0
|
|
72883
|
-
var index = 0
|
|
72884
|
-
var path = ''
|
|
72885
|
-
var defaultDelimiter = options && options.delimiter || '/'
|
|
72886
|
-
var res
|
|
72887
|
-
|
|
72888
|
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
|
72889
|
-
var m = res[0]
|
|
72890
|
-
var escaped = res[1]
|
|
72891
|
-
var offset = res.index
|
|
72892
|
-
path += str.slice(index, offset)
|
|
72893
|
-
index = offset + m.length
|
|
72894
|
-
|
|
72895
|
-
// Ignore already escaped sequences.
|
|
72896
|
-
if (escaped) {
|
|
72897
|
-
path += escaped[1]
|
|
72898
|
-
continue
|
|
72899
|
-
}
|
|
72900
|
-
|
|
72901
|
-
var next = str[index]
|
|
72902
|
-
var prefix = res[2]
|
|
72903
|
-
var name = res[3]
|
|
72904
|
-
var capture = res[4]
|
|
72905
|
-
var group = res[5]
|
|
72906
|
-
var modifier = res[6]
|
|
72907
|
-
var asterisk = res[7]
|
|
72908
|
-
|
|
72909
|
-
// Push the current path onto the tokens.
|
|
72910
|
-
if (path) {
|
|
72911
|
-
tokens.push(path)
|
|
72912
|
-
path = ''
|
|
72913
|
-
}
|
|
72914
|
-
|
|
72915
|
-
var partial = prefix != null && next != null && next !== prefix
|
|
72916
|
-
var repeat = modifier === '+' || modifier === '*'
|
|
72917
|
-
var optional = modifier === '?' || modifier === '*'
|
|
72918
|
-
var delimiter = res[2] || defaultDelimiter
|
|
72919
|
-
var pattern = capture || group
|
|
72920
|
-
|
|
72921
|
-
tokens.push({
|
|
72922
|
-
name: name || key++,
|
|
72923
|
-
prefix: prefix || '',
|
|
72924
|
-
delimiter: delimiter,
|
|
72925
|
-
optional: optional,
|
|
72926
|
-
repeat: repeat,
|
|
72927
|
-
partial: partial,
|
|
72928
|
-
asterisk: !!asterisk,
|
|
72929
|
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
|
72930
|
-
})
|
|
72931
|
-
}
|
|
72932
|
-
|
|
72933
|
-
// Match any characters still remaining.
|
|
72934
|
-
if (index < str.length) {
|
|
72935
|
-
path += str.substr(index)
|
|
72936
|
-
}
|
|
72937
|
-
|
|
72938
|
-
// If the path exists, push it onto the end.
|
|
72939
|
-
if (path) {
|
|
72940
|
-
tokens.push(path)
|
|
72941
|
-
}
|
|
72942
|
-
|
|
72943
|
-
return tokens
|
|
72944
|
-
}
|
|
72945
|
-
|
|
72946
|
-
/**
|
|
72947
|
-
* Compile a string to a template function for the path.
|
|
72948
|
-
*
|
|
72949
|
-
* @param {string} str
|
|
72950
|
-
* @param {Object=} options
|
|
72951
|
-
* @return {!function(Object=, Object=)}
|
|
72952
|
-
*/
|
|
72953
|
-
function compile (str, options) {
|
|
72954
|
-
return tokensToFunction(parse(str, options), options)
|
|
72955
|
-
}
|
|
72956
|
-
|
|
72957
|
-
/**
|
|
72958
|
-
* Prettier encoding of URI path segments.
|
|
72959
|
-
*
|
|
72960
|
-
* @param {string}
|
|
72961
|
-
* @return {string}
|
|
72962
|
-
*/
|
|
72963
|
-
function encodeURIComponentPretty (str) {
|
|
72964
|
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
|
72965
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
72966
|
-
})
|
|
72967
|
-
}
|
|
72968
|
-
|
|
72969
|
-
/**
|
|
72970
|
-
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
|
72971
|
-
*
|
|
72972
|
-
* @param {string}
|
|
72973
|
-
* @return {string}
|
|
72974
|
-
*/
|
|
72975
|
-
function encodeAsterisk (str) {
|
|
72976
|
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
|
72977
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
72978
|
-
})
|
|
72979
|
-
}
|
|
72980
|
-
|
|
72981
|
-
/**
|
|
72982
|
-
* Expose a method for transforming tokens into the path function.
|
|
72983
|
-
*/
|
|
72984
|
-
function tokensToFunction (tokens, options) {
|
|
72985
|
-
// Compile all the tokens into regexps.
|
|
72986
|
-
var matches = new Array(tokens.length)
|
|
72987
|
-
|
|
72988
|
-
// Compile all the patterns before compilation.
|
|
72989
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
72990
|
-
if (typeof tokens[i] === 'object') {
|
|
72991
|
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
|
72992
|
-
}
|
|
72993
|
-
}
|
|
72994
|
-
|
|
72995
|
-
return function (obj, opts) {
|
|
72996
|
-
var path = ''
|
|
72997
|
-
var data = obj || {}
|
|
72998
|
-
var options = opts || {}
|
|
72999
|
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
|
73000
|
-
|
|
73001
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
73002
|
-
var token = tokens[i]
|
|
73003
|
-
|
|
73004
|
-
if (typeof token === 'string') {
|
|
73005
|
-
path += token
|
|
73006
|
-
|
|
73007
|
-
continue
|
|
73008
|
-
}
|
|
73009
|
-
|
|
73010
|
-
var value = data[token.name]
|
|
73011
|
-
var segment
|
|
73012
|
-
|
|
73013
|
-
if (value == null) {
|
|
73014
|
-
if (token.optional) {
|
|
73015
|
-
// Prepend partial segment prefixes.
|
|
73016
|
-
if (token.partial) {
|
|
73017
|
-
path += token.prefix
|
|
73018
|
-
}
|
|
73019
|
-
|
|
73020
|
-
continue
|
|
73021
|
-
} else {
|
|
73022
|
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
|
73023
|
-
}
|
|
73024
|
-
}
|
|
73025
|
-
|
|
73026
|
-
if (isarray(value)) {
|
|
73027
|
-
if (!token.repeat) {
|
|
73028
|
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
|
73029
|
-
}
|
|
73030
|
-
|
|
73031
|
-
if (value.length === 0) {
|
|
73032
|
-
if (token.optional) {
|
|
73033
|
-
continue
|
|
73034
|
-
} else {
|
|
73035
|
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
|
73036
|
-
}
|
|
73037
|
-
}
|
|
73038
|
-
|
|
73039
|
-
for (var j = 0; j < value.length; j++) {
|
|
73040
|
-
segment = encode(value[j])
|
|
73041
|
-
|
|
73042
|
-
if (!matches[i].test(segment)) {
|
|
73043
|
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
|
73044
|
-
}
|
|
73045
|
-
|
|
73046
|
-
path += (j === 0 ? token.prefix : token.delimiter) + segment
|
|
73047
|
-
}
|
|
73048
|
-
|
|
73049
|
-
continue
|
|
73050
|
-
}
|
|
73051
|
-
|
|
73052
|
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
|
|
73053
|
-
|
|
73054
|
-
if (!matches[i].test(segment)) {
|
|
73055
|
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
|
73056
|
-
}
|
|
73057
|
-
|
|
73058
|
-
path += token.prefix + segment
|
|
73059
|
-
}
|
|
73060
|
-
|
|
73061
|
-
return path
|
|
73062
|
-
}
|
|
73063
|
-
}
|
|
73064
|
-
|
|
73065
|
-
/**
|
|
73066
|
-
* Escape a regular expression string.
|
|
73067
|
-
*
|
|
73068
|
-
* @param {string} str
|
|
73069
|
-
* @return {string}
|
|
73070
|
-
*/
|
|
73071
|
-
function escapeString (str) {
|
|
73072
|
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
|
73073
|
-
}
|
|
73074
|
-
|
|
73075
|
-
/**
|
|
73076
|
-
* Escape the capturing group by escaping special characters and meaning.
|
|
73077
|
-
*
|
|
73078
|
-
* @param {string} group
|
|
73079
|
-
* @return {string}
|
|
73080
|
-
*/
|
|
73081
|
-
function escapeGroup (group) {
|
|
73082
|
-
return group.replace(/([=!:$\/()])/g, '\\$1')
|
|
73083
|
-
}
|
|
73084
|
-
|
|
73085
|
-
/**
|
|
73086
|
-
* Attach the keys as a property of the regexp.
|
|
73087
|
-
*
|
|
73088
|
-
* @param {!RegExp} re
|
|
73089
|
-
* @param {Array} keys
|
|
73090
|
-
* @return {!RegExp}
|
|
73091
|
-
*/
|
|
73092
|
-
function attachKeys (re, keys) {
|
|
73093
|
-
re.keys = keys
|
|
73094
|
-
return re
|
|
73095
|
-
}
|
|
73096
|
-
|
|
73097
|
-
/**
|
|
73098
|
-
* Get the flags for a regexp from the options.
|
|
73099
|
-
*
|
|
73100
|
-
* @param {Object} options
|
|
73101
|
-
* @return {string}
|
|
73102
|
-
*/
|
|
73103
|
-
function flags (options) {
|
|
73104
|
-
return options && options.sensitive ? '' : 'i'
|
|
73105
|
-
}
|
|
73106
|
-
|
|
73107
|
-
/**
|
|
73108
|
-
* Pull out keys from a regexp.
|
|
73109
|
-
*
|
|
73110
|
-
* @param {!RegExp} path
|
|
73111
|
-
* @param {!Array} keys
|
|
73112
|
-
* @return {!RegExp}
|
|
73113
|
-
*/
|
|
73114
|
-
function regexpToRegexp (path, keys) {
|
|
73115
|
-
// Use a negative lookahead to match only capturing groups.
|
|
73116
|
-
var groups = path.source.match(/\((?!\?)/g)
|
|
73117
|
-
|
|
73118
|
-
if (groups) {
|
|
73119
|
-
for (var i = 0; i < groups.length; i++) {
|
|
73120
|
-
keys.push({
|
|
73121
|
-
name: i,
|
|
73122
|
-
prefix: null,
|
|
73123
|
-
delimiter: null,
|
|
73124
|
-
optional: false,
|
|
73125
|
-
repeat: false,
|
|
73126
|
-
partial: false,
|
|
73127
|
-
asterisk: false,
|
|
73128
|
-
pattern: null
|
|
73129
|
-
})
|
|
73130
|
-
}
|
|
73131
|
-
}
|
|
73132
|
-
|
|
73133
|
-
return attachKeys(path, keys)
|
|
73134
|
-
}
|
|
73135
|
-
|
|
73136
|
-
/**
|
|
73137
|
-
* Transform an array into a regexp.
|
|
73138
|
-
*
|
|
73139
|
-
* @param {!Array} path
|
|
73140
|
-
* @param {Array} keys
|
|
73141
|
-
* @param {!Object} options
|
|
73142
|
-
* @return {!RegExp}
|
|
73143
|
-
*/
|
|
73144
|
-
function arrayToRegexp (path, keys, options) {
|
|
73145
|
-
var parts = []
|
|
73146
|
-
|
|
73147
|
-
for (var i = 0; i < path.length; i++) {
|
|
73148
|
-
parts.push(pathToRegexp(path[i], keys, options).source)
|
|
73149
|
-
}
|
|
73150
|
-
|
|
73151
|
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
|
|
73152
|
-
|
|
73153
|
-
return attachKeys(regexp, keys)
|
|
73154
|
-
}
|
|
73155
|
-
|
|
73156
|
-
/**
|
|
73157
|
-
* Create a path regexp from string input.
|
|
73158
|
-
*
|
|
73159
|
-
* @param {string} path
|
|
73160
|
-
* @param {!Array} keys
|
|
73161
|
-
* @param {!Object} options
|
|
73162
|
-
* @return {!RegExp}
|
|
73163
|
-
*/
|
|
73164
|
-
function stringToRegexp (path, keys, options) {
|
|
73165
|
-
return tokensToRegExp(parse(path, options), keys, options)
|
|
73166
|
-
}
|
|
73167
|
-
|
|
73168
|
-
/**
|
|
73169
|
-
* Expose a function for taking tokens and returning a RegExp.
|
|
73170
|
-
*
|
|
73171
|
-
* @param {!Array} tokens
|
|
73172
|
-
* @param {(Array|Object)=} keys
|
|
73173
|
-
* @param {Object=} options
|
|
73174
|
-
* @return {!RegExp}
|
|
73175
|
-
*/
|
|
73176
|
-
function tokensToRegExp (tokens, keys, options) {
|
|
73177
|
-
if (!isarray(keys)) {
|
|
73178
|
-
options = /** @type {!Object} */ (keys || options)
|
|
73179
|
-
keys = []
|
|
73180
|
-
}
|
|
73181
|
-
|
|
73182
|
-
options = options || {}
|
|
73183
|
-
|
|
73184
|
-
var strict = options.strict
|
|
73185
|
-
var end = options.end !== false
|
|
73186
|
-
var route = ''
|
|
73187
|
-
|
|
73188
|
-
// Iterate over the tokens and create our regexp string.
|
|
73189
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
73190
|
-
var token = tokens[i]
|
|
73191
|
-
|
|
73192
|
-
if (typeof token === 'string') {
|
|
73193
|
-
route += escapeString(token)
|
|
73194
|
-
} else {
|
|
73195
|
-
var prefix = escapeString(token.prefix)
|
|
73196
|
-
var capture = '(?:' + token.pattern + ')'
|
|
73197
|
-
|
|
73198
|
-
keys.push(token)
|
|
73199
|
-
|
|
73200
|
-
if (token.repeat) {
|
|
73201
|
-
capture += '(?:' + prefix + capture + ')*'
|
|
73202
|
-
}
|
|
73203
|
-
|
|
73204
|
-
if (token.optional) {
|
|
73205
|
-
if (!token.partial) {
|
|
73206
|
-
capture = '(?:' + prefix + '(' + capture + '))?'
|
|
73207
|
-
} else {
|
|
73208
|
-
capture = prefix + '(' + capture + ')?'
|
|
73209
|
-
}
|
|
73210
|
-
} else {
|
|
73211
|
-
capture = prefix + '(' + capture + ')'
|
|
73212
|
-
}
|
|
73213
|
-
|
|
73214
|
-
route += capture
|
|
73215
|
-
}
|
|
73216
|
-
}
|
|
73217
|
-
|
|
73218
|
-
var delimiter = escapeString(options.delimiter || '/')
|
|
73219
|
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
|
|
73220
|
-
|
|
73221
|
-
// In non-strict mode we allow a slash at the end of match. If the path to
|
|
73222
|
-
// match already ends with a slash, we remove it for consistency. The slash
|
|
73223
|
-
// is valid at the end of a path match, not in the middle. This is important
|
|
73224
|
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
|
73225
|
-
if (!strict) {
|
|
73226
|
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
|
73227
|
-
}
|
|
73228
|
-
|
|
73229
|
-
if (end) {
|
|
73230
|
-
route += '$'
|
|
73231
|
-
} else {
|
|
73232
|
-
// In non-ending mode, we need the capturing groups to match as much as
|
|
73233
|
-
// possible by using a positive lookahead to the end or next path segment.
|
|
73234
|
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
|
73235
|
-
}
|
|
73236
|
-
|
|
73237
|
-
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
|
73238
|
-
}
|
|
73239
|
-
|
|
73240
|
-
/**
|
|
73241
|
-
* Normalize the given path string, returning a regular expression.
|
|
73242
|
-
*
|
|
73243
|
-
* An empty array can be passed in for the keys, which will hold the
|
|
73244
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
73245
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
73246
|
-
*
|
|
73247
|
-
* @param {(string|RegExp|Array)} path
|
|
73248
|
-
* @param {(Array|Object)=} keys
|
|
73249
|
-
* @param {Object=} options
|
|
73250
|
-
* @return {!RegExp}
|
|
73251
|
-
*/
|
|
73252
|
-
function pathToRegexp (path, keys, options) {
|
|
73253
|
-
if (!isarray(keys)) {
|
|
73254
|
-
options = /** @type {!Object} */ (keys || options)
|
|
73255
|
-
keys = []
|
|
73256
|
-
}
|
|
73257
|
-
|
|
73258
|
-
options = options || {}
|
|
73259
|
-
|
|
73260
|
-
if (path instanceof RegExp) {
|
|
73261
|
-
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
|
73262
|
-
}
|
|
73263
|
-
|
|
73264
|
-
if (isarray(path)) {
|
|
73265
|
-
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
|
73266
|
-
}
|
|
73267
|
-
|
|
73268
|
-
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
|
73269
|
-
}
|
|
73270
|
-
|
|
73271
|
-
|
|
73272
72926
|
/***/ }),
|
|
73273
72927
|
|
|
73274
72928
|
/***/ "../../../node_modules/preact/dist/preact.module.js":
|
|
@@ -104649,7 +104303,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
104649
104303
|
/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! tiny-warning */ "../../../node_modules/tiny-warning/dist/tiny-warning.esm.js");
|
|
104650
104304
|
/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-invariant */ "../../../node_modules/tiny-invariant/dist/esm/tiny-invariant.js");
|
|
104651
104305
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
104652
|
-
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! path-to-regexp */ "../../../node_modules/path-to-regexp/index.js");
|
|
104306
|
+
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! path-to-regexp */ "../../../node_modules/react-router/node_modules/path-to-regexp/index.js");
|
|
104653
104307
|
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_4__);
|
|
104654
104308
|
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
104655
104309
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
@@ -105607,6 +105261,442 @@ if (true) {
|
|
|
105607
105261
|
//# sourceMappingURL=react-router.js.map
|
|
105608
105262
|
|
|
105609
105263
|
|
|
105264
|
+
/***/ }),
|
|
105265
|
+
|
|
105266
|
+
/***/ "../../../node_modules/react-router/node_modules/path-to-regexp/index.js":
|
|
105267
|
+
/*!*******************************************************************************!*\
|
|
105268
|
+
!*** ../../../node_modules/react-router/node_modules/path-to-regexp/index.js ***!
|
|
105269
|
+
\*******************************************************************************/
|
|
105270
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
105271
|
+
|
|
105272
|
+
var isarray = __webpack_require__(/*! isarray */ "../../../node_modules/isarray/index.js")
|
|
105273
|
+
|
|
105274
|
+
/**
|
|
105275
|
+
* Expose `pathToRegexp`.
|
|
105276
|
+
*/
|
|
105277
|
+
module.exports = pathToRegexp
|
|
105278
|
+
module.exports.parse = parse
|
|
105279
|
+
module.exports.compile = compile
|
|
105280
|
+
module.exports.tokensToFunction = tokensToFunction
|
|
105281
|
+
module.exports.tokensToRegExp = tokensToRegExp
|
|
105282
|
+
|
|
105283
|
+
/**
|
|
105284
|
+
* The main path matching regexp utility.
|
|
105285
|
+
*
|
|
105286
|
+
* @type {RegExp}
|
|
105287
|
+
*/
|
|
105288
|
+
var PATH_REGEXP = new RegExp([
|
|
105289
|
+
// Match escaped characters that would otherwise appear in future matches.
|
|
105290
|
+
// This allows the user to escape special characters that won't transform.
|
|
105291
|
+
'(\\\\.)',
|
|
105292
|
+
// Match Express-style parameters and un-named parameters with a prefix
|
|
105293
|
+
// and optional suffixes. Matches appear as:
|
|
105294
|
+
//
|
|
105295
|
+
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
105296
|
+
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
105297
|
+
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
105298
|
+
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
|
105299
|
+
].join('|'), 'g')
|
|
105300
|
+
|
|
105301
|
+
/**
|
|
105302
|
+
* Parse a string for the raw tokens.
|
|
105303
|
+
*
|
|
105304
|
+
* @param {string} str
|
|
105305
|
+
* @param {Object=} options
|
|
105306
|
+
* @return {!Array}
|
|
105307
|
+
*/
|
|
105308
|
+
function parse (str, options) {
|
|
105309
|
+
var tokens = []
|
|
105310
|
+
var key = 0
|
|
105311
|
+
var index = 0
|
|
105312
|
+
var path = ''
|
|
105313
|
+
var defaultDelimiter = options && options.delimiter || '/'
|
|
105314
|
+
var res
|
|
105315
|
+
|
|
105316
|
+
while ((res = PATH_REGEXP.exec(str)) != null) {
|
|
105317
|
+
var m = res[0]
|
|
105318
|
+
var escaped = res[1]
|
|
105319
|
+
var offset = res.index
|
|
105320
|
+
path += str.slice(index, offset)
|
|
105321
|
+
index = offset + m.length
|
|
105322
|
+
|
|
105323
|
+
// Ignore already escaped sequences.
|
|
105324
|
+
if (escaped) {
|
|
105325
|
+
path += escaped[1]
|
|
105326
|
+
continue
|
|
105327
|
+
}
|
|
105328
|
+
|
|
105329
|
+
var next = str[index]
|
|
105330
|
+
var prefix = res[2]
|
|
105331
|
+
var name = res[3]
|
|
105332
|
+
var capture = res[4]
|
|
105333
|
+
var group = res[5]
|
|
105334
|
+
var modifier = res[6]
|
|
105335
|
+
var asterisk = res[7]
|
|
105336
|
+
|
|
105337
|
+
// Push the current path onto the tokens.
|
|
105338
|
+
if (path) {
|
|
105339
|
+
tokens.push(path)
|
|
105340
|
+
path = ''
|
|
105341
|
+
}
|
|
105342
|
+
|
|
105343
|
+
var partial = prefix != null && next != null && next !== prefix
|
|
105344
|
+
var repeat = modifier === '+' || modifier === '*'
|
|
105345
|
+
var optional = modifier === '?' || modifier === '*'
|
|
105346
|
+
var delimiter = res[2] || defaultDelimiter
|
|
105347
|
+
var pattern = capture || group
|
|
105348
|
+
|
|
105349
|
+
tokens.push({
|
|
105350
|
+
name: name || key++,
|
|
105351
|
+
prefix: prefix || '',
|
|
105352
|
+
delimiter: delimiter,
|
|
105353
|
+
optional: optional,
|
|
105354
|
+
repeat: repeat,
|
|
105355
|
+
partial: partial,
|
|
105356
|
+
asterisk: !!asterisk,
|
|
105357
|
+
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
|
105358
|
+
})
|
|
105359
|
+
}
|
|
105360
|
+
|
|
105361
|
+
// Match any characters still remaining.
|
|
105362
|
+
if (index < str.length) {
|
|
105363
|
+
path += str.substr(index)
|
|
105364
|
+
}
|
|
105365
|
+
|
|
105366
|
+
// If the path exists, push it onto the end.
|
|
105367
|
+
if (path) {
|
|
105368
|
+
tokens.push(path)
|
|
105369
|
+
}
|
|
105370
|
+
|
|
105371
|
+
return tokens
|
|
105372
|
+
}
|
|
105373
|
+
|
|
105374
|
+
/**
|
|
105375
|
+
* Compile a string to a template function for the path.
|
|
105376
|
+
*
|
|
105377
|
+
* @param {string} str
|
|
105378
|
+
* @param {Object=} options
|
|
105379
|
+
* @return {!function(Object=, Object=)}
|
|
105380
|
+
*/
|
|
105381
|
+
function compile (str, options) {
|
|
105382
|
+
return tokensToFunction(parse(str, options), options)
|
|
105383
|
+
}
|
|
105384
|
+
|
|
105385
|
+
/**
|
|
105386
|
+
* Prettier encoding of URI path segments.
|
|
105387
|
+
*
|
|
105388
|
+
* @param {string}
|
|
105389
|
+
* @return {string}
|
|
105390
|
+
*/
|
|
105391
|
+
function encodeURIComponentPretty (str) {
|
|
105392
|
+
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
|
105393
|
+
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
105394
|
+
})
|
|
105395
|
+
}
|
|
105396
|
+
|
|
105397
|
+
/**
|
|
105398
|
+
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
|
105399
|
+
*
|
|
105400
|
+
* @param {string}
|
|
105401
|
+
* @return {string}
|
|
105402
|
+
*/
|
|
105403
|
+
function encodeAsterisk (str) {
|
|
105404
|
+
return encodeURI(str).replace(/[?#]/g, function (c) {
|
|
105405
|
+
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
105406
|
+
})
|
|
105407
|
+
}
|
|
105408
|
+
|
|
105409
|
+
/**
|
|
105410
|
+
* Expose a method for transforming tokens into the path function.
|
|
105411
|
+
*/
|
|
105412
|
+
function tokensToFunction (tokens, options) {
|
|
105413
|
+
// Compile all the tokens into regexps.
|
|
105414
|
+
var matches = new Array(tokens.length)
|
|
105415
|
+
|
|
105416
|
+
// Compile all the patterns before compilation.
|
|
105417
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
105418
|
+
if (typeof tokens[i] === 'object') {
|
|
105419
|
+
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
|
105420
|
+
}
|
|
105421
|
+
}
|
|
105422
|
+
|
|
105423
|
+
return function (obj, opts) {
|
|
105424
|
+
var path = ''
|
|
105425
|
+
var data = obj || {}
|
|
105426
|
+
var options = opts || {}
|
|
105427
|
+
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
|
105428
|
+
|
|
105429
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
105430
|
+
var token = tokens[i]
|
|
105431
|
+
|
|
105432
|
+
if (typeof token === 'string') {
|
|
105433
|
+
path += token
|
|
105434
|
+
|
|
105435
|
+
continue
|
|
105436
|
+
}
|
|
105437
|
+
|
|
105438
|
+
var value = data[token.name]
|
|
105439
|
+
var segment
|
|
105440
|
+
|
|
105441
|
+
if (value == null) {
|
|
105442
|
+
if (token.optional) {
|
|
105443
|
+
// Prepend partial segment prefixes.
|
|
105444
|
+
if (token.partial) {
|
|
105445
|
+
path += token.prefix
|
|
105446
|
+
}
|
|
105447
|
+
|
|
105448
|
+
continue
|
|
105449
|
+
} else {
|
|
105450
|
+
throw new TypeError('Expected "' + token.name + '" to be defined')
|
|
105451
|
+
}
|
|
105452
|
+
}
|
|
105453
|
+
|
|
105454
|
+
if (isarray(value)) {
|
|
105455
|
+
if (!token.repeat) {
|
|
105456
|
+
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
|
105457
|
+
}
|
|
105458
|
+
|
|
105459
|
+
if (value.length === 0) {
|
|
105460
|
+
if (token.optional) {
|
|
105461
|
+
continue
|
|
105462
|
+
} else {
|
|
105463
|
+
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
|
105464
|
+
}
|
|
105465
|
+
}
|
|
105466
|
+
|
|
105467
|
+
for (var j = 0; j < value.length; j++) {
|
|
105468
|
+
segment = encode(value[j])
|
|
105469
|
+
|
|
105470
|
+
if (!matches[i].test(segment)) {
|
|
105471
|
+
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
|
105472
|
+
}
|
|
105473
|
+
|
|
105474
|
+
path += (j === 0 ? token.prefix : token.delimiter) + segment
|
|
105475
|
+
}
|
|
105476
|
+
|
|
105477
|
+
continue
|
|
105478
|
+
}
|
|
105479
|
+
|
|
105480
|
+
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
|
|
105481
|
+
|
|
105482
|
+
if (!matches[i].test(segment)) {
|
|
105483
|
+
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
|
105484
|
+
}
|
|
105485
|
+
|
|
105486
|
+
path += token.prefix + segment
|
|
105487
|
+
}
|
|
105488
|
+
|
|
105489
|
+
return path
|
|
105490
|
+
}
|
|
105491
|
+
}
|
|
105492
|
+
|
|
105493
|
+
/**
|
|
105494
|
+
* Escape a regular expression string.
|
|
105495
|
+
*
|
|
105496
|
+
* @param {string} str
|
|
105497
|
+
* @return {string}
|
|
105498
|
+
*/
|
|
105499
|
+
function escapeString (str) {
|
|
105500
|
+
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
|
105501
|
+
}
|
|
105502
|
+
|
|
105503
|
+
/**
|
|
105504
|
+
* Escape the capturing group by escaping special characters and meaning.
|
|
105505
|
+
*
|
|
105506
|
+
* @param {string} group
|
|
105507
|
+
* @return {string}
|
|
105508
|
+
*/
|
|
105509
|
+
function escapeGroup (group) {
|
|
105510
|
+
return group.replace(/([=!:$\/()])/g, '\\$1')
|
|
105511
|
+
}
|
|
105512
|
+
|
|
105513
|
+
/**
|
|
105514
|
+
* Attach the keys as a property of the regexp.
|
|
105515
|
+
*
|
|
105516
|
+
* @param {!RegExp} re
|
|
105517
|
+
* @param {Array} keys
|
|
105518
|
+
* @return {!RegExp}
|
|
105519
|
+
*/
|
|
105520
|
+
function attachKeys (re, keys) {
|
|
105521
|
+
re.keys = keys
|
|
105522
|
+
return re
|
|
105523
|
+
}
|
|
105524
|
+
|
|
105525
|
+
/**
|
|
105526
|
+
* Get the flags for a regexp from the options.
|
|
105527
|
+
*
|
|
105528
|
+
* @param {Object} options
|
|
105529
|
+
* @return {string}
|
|
105530
|
+
*/
|
|
105531
|
+
function flags (options) {
|
|
105532
|
+
return options && options.sensitive ? '' : 'i'
|
|
105533
|
+
}
|
|
105534
|
+
|
|
105535
|
+
/**
|
|
105536
|
+
* Pull out keys from a regexp.
|
|
105537
|
+
*
|
|
105538
|
+
* @param {!RegExp} path
|
|
105539
|
+
* @param {!Array} keys
|
|
105540
|
+
* @return {!RegExp}
|
|
105541
|
+
*/
|
|
105542
|
+
function regexpToRegexp (path, keys) {
|
|
105543
|
+
// Use a negative lookahead to match only capturing groups.
|
|
105544
|
+
var groups = path.source.match(/\((?!\?)/g)
|
|
105545
|
+
|
|
105546
|
+
if (groups) {
|
|
105547
|
+
for (var i = 0; i < groups.length; i++) {
|
|
105548
|
+
keys.push({
|
|
105549
|
+
name: i,
|
|
105550
|
+
prefix: null,
|
|
105551
|
+
delimiter: null,
|
|
105552
|
+
optional: false,
|
|
105553
|
+
repeat: false,
|
|
105554
|
+
partial: false,
|
|
105555
|
+
asterisk: false,
|
|
105556
|
+
pattern: null
|
|
105557
|
+
})
|
|
105558
|
+
}
|
|
105559
|
+
}
|
|
105560
|
+
|
|
105561
|
+
return attachKeys(path, keys)
|
|
105562
|
+
}
|
|
105563
|
+
|
|
105564
|
+
/**
|
|
105565
|
+
* Transform an array into a regexp.
|
|
105566
|
+
*
|
|
105567
|
+
* @param {!Array} path
|
|
105568
|
+
* @param {Array} keys
|
|
105569
|
+
* @param {!Object} options
|
|
105570
|
+
* @return {!RegExp}
|
|
105571
|
+
*/
|
|
105572
|
+
function arrayToRegexp (path, keys, options) {
|
|
105573
|
+
var parts = []
|
|
105574
|
+
|
|
105575
|
+
for (var i = 0; i < path.length; i++) {
|
|
105576
|
+
parts.push(pathToRegexp(path[i], keys, options).source)
|
|
105577
|
+
}
|
|
105578
|
+
|
|
105579
|
+
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
|
|
105580
|
+
|
|
105581
|
+
return attachKeys(regexp, keys)
|
|
105582
|
+
}
|
|
105583
|
+
|
|
105584
|
+
/**
|
|
105585
|
+
* Create a path regexp from string input.
|
|
105586
|
+
*
|
|
105587
|
+
* @param {string} path
|
|
105588
|
+
* @param {!Array} keys
|
|
105589
|
+
* @param {!Object} options
|
|
105590
|
+
* @return {!RegExp}
|
|
105591
|
+
*/
|
|
105592
|
+
function stringToRegexp (path, keys, options) {
|
|
105593
|
+
return tokensToRegExp(parse(path, options), keys, options)
|
|
105594
|
+
}
|
|
105595
|
+
|
|
105596
|
+
/**
|
|
105597
|
+
* Expose a function for taking tokens and returning a RegExp.
|
|
105598
|
+
*
|
|
105599
|
+
* @param {!Array} tokens
|
|
105600
|
+
* @param {(Array|Object)=} keys
|
|
105601
|
+
* @param {Object=} options
|
|
105602
|
+
* @return {!RegExp}
|
|
105603
|
+
*/
|
|
105604
|
+
function tokensToRegExp (tokens, keys, options) {
|
|
105605
|
+
if (!isarray(keys)) {
|
|
105606
|
+
options = /** @type {!Object} */ (keys || options)
|
|
105607
|
+
keys = []
|
|
105608
|
+
}
|
|
105609
|
+
|
|
105610
|
+
options = options || {}
|
|
105611
|
+
|
|
105612
|
+
var strict = options.strict
|
|
105613
|
+
var end = options.end !== false
|
|
105614
|
+
var route = ''
|
|
105615
|
+
|
|
105616
|
+
// Iterate over the tokens and create our regexp string.
|
|
105617
|
+
for (var i = 0; i < tokens.length; i++) {
|
|
105618
|
+
var token = tokens[i]
|
|
105619
|
+
|
|
105620
|
+
if (typeof token === 'string') {
|
|
105621
|
+
route += escapeString(token)
|
|
105622
|
+
} else {
|
|
105623
|
+
var prefix = escapeString(token.prefix)
|
|
105624
|
+
var capture = '(?:' + token.pattern + ')'
|
|
105625
|
+
|
|
105626
|
+
keys.push(token)
|
|
105627
|
+
|
|
105628
|
+
if (token.repeat) {
|
|
105629
|
+
capture += '(?:' + prefix + capture + ')*'
|
|
105630
|
+
}
|
|
105631
|
+
|
|
105632
|
+
if (token.optional) {
|
|
105633
|
+
if (!token.partial) {
|
|
105634
|
+
capture = '(?:' + prefix + '(' + capture + '))?'
|
|
105635
|
+
} else {
|
|
105636
|
+
capture = prefix + '(' + capture + ')?'
|
|
105637
|
+
}
|
|
105638
|
+
} else {
|
|
105639
|
+
capture = prefix + '(' + capture + ')'
|
|
105640
|
+
}
|
|
105641
|
+
|
|
105642
|
+
route += capture
|
|
105643
|
+
}
|
|
105644
|
+
}
|
|
105645
|
+
|
|
105646
|
+
var delimiter = escapeString(options.delimiter || '/')
|
|
105647
|
+
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
|
|
105648
|
+
|
|
105649
|
+
// In non-strict mode we allow a slash at the end of match. If the path to
|
|
105650
|
+
// match already ends with a slash, we remove it for consistency. The slash
|
|
105651
|
+
// is valid at the end of a path match, not in the middle. This is important
|
|
105652
|
+
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
|
105653
|
+
if (!strict) {
|
|
105654
|
+
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
|
105655
|
+
}
|
|
105656
|
+
|
|
105657
|
+
if (end) {
|
|
105658
|
+
route += '$'
|
|
105659
|
+
} else {
|
|
105660
|
+
// In non-ending mode, we need the capturing groups to match as much as
|
|
105661
|
+
// possible by using a positive lookahead to the end or next path segment.
|
|
105662
|
+
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
|
105663
|
+
}
|
|
105664
|
+
|
|
105665
|
+
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
|
105666
|
+
}
|
|
105667
|
+
|
|
105668
|
+
/**
|
|
105669
|
+
* Normalize the given path string, returning a regular expression.
|
|
105670
|
+
*
|
|
105671
|
+
* An empty array can be passed in for the keys, which will hold the
|
|
105672
|
+
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
105673
|
+
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
105674
|
+
*
|
|
105675
|
+
* @param {(string|RegExp|Array)} path
|
|
105676
|
+
* @param {(Array|Object)=} keys
|
|
105677
|
+
* @param {Object=} options
|
|
105678
|
+
* @return {!RegExp}
|
|
105679
|
+
*/
|
|
105680
|
+
function pathToRegexp (path, keys, options) {
|
|
105681
|
+
if (!isarray(keys)) {
|
|
105682
|
+
options = /** @type {!Object} */ (keys || options)
|
|
105683
|
+
keys = []
|
|
105684
|
+
}
|
|
105685
|
+
|
|
105686
|
+
options = options || {}
|
|
105687
|
+
|
|
105688
|
+
if (path instanceof RegExp) {
|
|
105689
|
+
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
|
105690
|
+
}
|
|
105691
|
+
|
|
105692
|
+
if (isarray(path)) {
|
|
105693
|
+
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
|
105694
|
+
}
|
|
105695
|
+
|
|
105696
|
+
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
|
105697
|
+
}
|
|
105698
|
+
|
|
105699
|
+
|
|
105610
105700
|
/***/ }),
|
|
105611
105701
|
|
|
105612
105702
|
/***/ "../../../node_modules/react/cjs/react.development.js":
|
|
@@ -227990,4 +228080,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__.createElement(piral
|
|
|
227990
228080
|
|
|
227991
228081
|
/******/ })()
|
|
227992
228082
|
;
|
|
227993
|
-
//# sourceMappingURL=index.
|
|
228083
|
+
//# sourceMappingURL=index.d32ba2.js.map
|