ode-explorer 1.4.2-develop-integration.202405161426 → 1.4.2-develop-integration.202405171109
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/dist/index.js +285 -2790
- package/dist/version.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -68,9 +68,9 @@ function _mergeNamespaces(n2, m2) {
|
|
|
68
68
|
if (mutation.type !== "childList") {
|
|
69
69
|
continue;
|
|
70
70
|
}
|
|
71
|
-
for (const
|
|
72
|
-
if (
|
|
73
|
-
processPreload(
|
|
71
|
+
for (const node of mutation.addedNodes) {
|
|
72
|
+
if (node.tagName === "LINK" && node.rel === "modulepreload")
|
|
73
|
+
processPreload(node);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
}).observe(document, { childList: true, subtree: true });
|
|
@@ -415,10 +415,10 @@ react_production_min.version = "18.2.0";
|
|
|
415
415
|
react.exports = react_production_min;
|
|
416
416
|
}
|
|
417
417
|
var reactExports = react.exports;
|
|
418
|
-
const React
|
|
419
|
-
const React$
|
|
418
|
+
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
419
|
+
const React$1 = /* @__PURE__ */ _mergeNamespaces({
|
|
420
420
|
__proto__: null,
|
|
421
|
-
default: React
|
|
421
|
+
default: React
|
|
422
422
|
}, [reactExports]);
|
|
423
423
|
/**
|
|
424
424
|
* @license React
|
|
@@ -1344,7 +1344,7 @@ class Translator extends EventEmitter$1 {
|
|
|
1344
1344
|
return false;
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
|
-
function capitalize
|
|
1347
|
+
function capitalize(string) {
|
|
1348
1348
|
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1349
1349
|
}
|
|
1350
1350
|
class LanguageUtil {
|
|
@@ -1382,7 +1382,7 @@ class LanguageUtil {
|
|
|
1382
1382
|
p2[0] = p2[0].toLowerCase();
|
|
1383
1383
|
p2[1] = p2[1].toUpperCase();
|
|
1384
1384
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1385
|
-
p2[1] = capitalize
|
|
1385
|
+
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1386
1386
|
} else if (p2.length === 3) {
|
|
1387
1387
|
p2[0] = p2[0].toLowerCase();
|
|
1388
1388
|
if (p2[1].length === 2)
|
|
@@ -1390,9 +1390,9 @@ class LanguageUtil {
|
|
|
1390
1390
|
if (p2[0] !== "sgn" && p2[2].length === 2)
|
|
1391
1391
|
p2[2] = p2[2].toUpperCase();
|
|
1392
1392
|
if (specialCases.indexOf(p2[1].toLowerCase()) > -1)
|
|
1393
|
-
p2[1] = capitalize
|
|
1393
|
+
p2[1] = capitalize(p2[1].toLowerCase());
|
|
1394
1394
|
if (specialCases.indexOf(p2[2].toLowerCase()) > -1)
|
|
1395
|
-
p2[2] = capitalize
|
|
1395
|
+
p2[2] = capitalize(p2[2].toLowerCase());
|
|
1396
1396
|
}
|
|
1397
1397
|
return p2.join("-");
|
|
1398
1398
|
}
|
|
@@ -7224,7 +7224,7 @@ var uaParser = { exports: {} };
|
|
|
7224
7224
|
return str.toLowerCase();
|
|
7225
7225
|
}, majorize = function(version) {
|
|
7226
7226
|
return typeof version === STR_TYPE ? version.replace(/[^\d\.]/g, EMPTY).split(".")[0] : undefined$12;
|
|
7227
|
-
},
|
|
7227
|
+
}, trim = function(str, len) {
|
|
7228
7228
|
if (typeof str === STR_TYPE) {
|
|
7229
7229
|
str = str.replace(/^\s\s*/, EMPTY);
|
|
7230
7230
|
return typeof len === UNDEF_TYPE ? str : str.substring(0, UA_MAX_LENGTH);
|
|
@@ -8060,7 +8060,7 @@ var uaParser = { exports: {} };
|
|
|
8060
8060
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
8061
8061
|
// HbbTV devices
|
|
8062
8062
|
],
|
|
8063
|
-
[[VENDOR,
|
|
8063
|
+
[[VENDOR, trim], [MODEL, trim], [TYPE2, SMARTTV]],
|
|
8064
8064
|
[
|
|
8065
8065
|
/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i
|
|
8066
8066
|
// SmartTV from Unidentified Vendors
|
|
@@ -8404,7 +8404,7 @@ var uaParser = { exports: {} };
|
|
|
8404
8404
|
return _ua;
|
|
8405
8405
|
};
|
|
8406
8406
|
this.setUA = function(ua3) {
|
|
8407
|
-
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ?
|
|
8407
|
+
_ua = typeof ua3 === STR_TYPE && ua3.length > UA_MAX_LENGTH ? trim(ua3, UA_MAX_LENGTH) : ua3;
|
|
8408
8408
|
return this;
|
|
8409
8409
|
};
|
|
8410
8410
|
this.setUA(_ua);
|
|
@@ -8453,7 +8453,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8453
8453
|
return t2;
|
|
8454
8454
|
}
|
|
8455
8455
|
return e2;
|
|
8456
|
-
}, i$
|
|
8456
|
+
}, i$1 = (e2, t2, r2, i2, p2) => {
|
|
8457
8457
|
let u2 = s$1(e2), d2 = c$1[u2] || (c$1[u2] = ((e3) => {
|
|
8458
8458
|
let t3 = 0, r3 = 11;
|
|
8459
8459
|
for (; t3 < e3.length; )
|
|
@@ -8483,7 +8483,7 @@ let e$2 = { data: "" }, t$3 = (t2) => "object" == typeof window ? ((t2 ? t2.quer
|
|
|
8483
8483
|
}, "");
|
|
8484
8484
|
function u$4(e2) {
|
|
8485
8485
|
let r2 = this || {}, l2 = e2.call ? e2(r2.p) : e2;
|
|
8486
|
-
return i$
|
|
8486
|
+
return i$1(l2.unshift ? l2.raw ? p$4(l2, [].slice.call(arguments, 1), r2.p) : l2.reduce((e3, t2) => Object.assign(e3, t2 && t2.call ? t2(r2.p) : t2), {}) : l2, t$3(r2.target), r2.g, r2.o, r2.k);
|
|
8487
8487
|
}
|
|
8488
8488
|
let d$1, f$1, g$1;
|
|
8489
8489
|
u$4.bind({ g: 1 });
|
|
@@ -8965,35 +8965,7 @@ const SvgAlertCircle = ({
|
|
|
8965
8965
|
)
|
|
8966
8966
|
]
|
|
8967
8967
|
}
|
|
8968
|
-
), SvgBookmark$1 = SvgBookmark,
|
|
8969
|
-
title,
|
|
8970
|
-
titleId,
|
|
8971
|
-
...props
|
|
8972
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
8973
|
-
"svg",
|
|
8974
|
-
{
|
|
8975
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
8976
|
-
width: "24",
|
|
8977
|
-
height: "24",
|
|
8978
|
-
fill: "none",
|
|
8979
|
-
viewBox: "0 0 24 24",
|
|
8980
|
-
"aria-hidden": "true",
|
|
8981
|
-
"aria-labelledby": titleId,
|
|
8982
|
-
...props,
|
|
8983
|
-
children: [
|
|
8984
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
8985
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
8986
|
-
"path",
|
|
8987
|
-
{
|
|
8988
|
-
fill: "currentColor",
|
|
8989
|
-
fillRule: "evenodd",
|
|
8990
|
-
d: "M21 5c0 .828-.711 1.5-1.588 1.5H4.588C3.711 6.5 3 5.828 3 5s.711-1.5 1.588-1.5h14.824C20.289 3.5 21 4.172 21 5M21 12c0 .828-.711 1.5-1.588 1.5H4.588C3.711 13.5 3 12.828 3 12s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5M21 19c0 .828-.711 1.5-1.588 1.5H4.588C3.711 20.5 3 19.828 3 19s.711-1.5 1.588-1.5h14.824c.877 0 1.588.672 1.588 1.5",
|
|
8991
|
-
clipRule: "evenodd"
|
|
8992
|
-
}
|
|
8993
|
-
)
|
|
8994
|
-
]
|
|
8995
|
-
}
|
|
8996
|
-
), SvgBurgerMenu$1 = SvgBurgerMenu, SvgClose = ({
|
|
8968
|
+
), SvgBookmark$1 = SvgBookmark, SvgClose = ({
|
|
8997
8969
|
title,
|
|
8998
8970
|
titleId,
|
|
8999
8971
|
...props
|
|
@@ -16889,8 +16861,8 @@ const INPUT_VALIDATION_RULES = {
|
|
|
16889
16861
|
required: "required",
|
|
16890
16862
|
validate: "validate"
|
|
16891
16863
|
};
|
|
16892
|
-
const HookFormContext = React
|
|
16893
|
-
const useFormContext = () => React
|
|
16864
|
+
const HookFormContext = React.createContext(null);
|
|
16865
|
+
const useFormContext = () => React.useContext(HookFormContext);
|
|
16894
16866
|
var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
|
|
16895
16867
|
const result = {
|
|
16896
16868
|
defaultValues: control._defaultValues
|
|
@@ -16918,9 +16890,9 @@ var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, is
|
|
|
16918
16890
|
var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
|
|
16919
16891
|
var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
|
|
16920
16892
|
function useSubscribe(props) {
|
|
16921
|
-
const _props = React
|
|
16893
|
+
const _props = React.useRef(props);
|
|
16922
16894
|
_props.current = props;
|
|
16923
|
-
React
|
|
16895
|
+
React.useEffect(() => {
|
|
16924
16896
|
const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
|
|
16925
16897
|
next: _props.current.next
|
|
16926
16898
|
});
|
|
@@ -16932,9 +16904,9 @@ function useSubscribe(props) {
|
|
|
16932
16904
|
function useFormState(props) {
|
|
16933
16905
|
const methods = useFormContext();
|
|
16934
16906
|
const { control = methods.control, disabled, name, exact } = props || {};
|
|
16935
|
-
const [formState, updateFormState] = React
|
|
16936
|
-
const _mounted = React
|
|
16937
|
-
const _localProxyFormState = React
|
|
16907
|
+
const [formState, updateFormState] = React.useState(control._formState);
|
|
16908
|
+
const _mounted = React.useRef(true);
|
|
16909
|
+
const _localProxyFormState = React.useRef({
|
|
16938
16910
|
isDirty: false,
|
|
16939
16911
|
isLoading: false,
|
|
16940
16912
|
dirtyFields: false,
|
|
@@ -16943,7 +16915,7 @@ function useFormState(props) {
|
|
|
16943
16915
|
isValid: false,
|
|
16944
16916
|
errors: false
|
|
16945
16917
|
});
|
|
16946
|
-
const _name = React
|
|
16918
|
+
const _name = React.useRef(name);
|
|
16947
16919
|
_name.current = name;
|
|
16948
16920
|
useSubscribe({
|
|
16949
16921
|
disabled,
|
|
@@ -16953,7 +16925,7 @@ function useFormState(props) {
|
|
|
16953
16925
|
}),
|
|
16954
16926
|
subject: control._subjects.state
|
|
16955
16927
|
});
|
|
16956
|
-
React
|
|
16928
|
+
React.useEffect(() => {
|
|
16957
16929
|
_mounted.current = true;
|
|
16958
16930
|
_localProxyFormState.current.isValid && control._updateValid(true);
|
|
16959
16931
|
return () => {
|
|
@@ -16977,7 +16949,7 @@ var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue2) =
|
|
|
16977
16949
|
function useWatch(props) {
|
|
16978
16950
|
const methods = useFormContext();
|
|
16979
16951
|
const { control = methods.control, name, defaultValue: defaultValue2, disabled, exact } = props || {};
|
|
16980
|
-
const _name = React
|
|
16952
|
+
const _name = React.useRef(name);
|
|
16981
16953
|
_name.current = name;
|
|
16982
16954
|
useSubscribe({
|
|
16983
16955
|
disabled,
|
|
@@ -16988,8 +16960,8 @@ function useWatch(props) {
|
|
|
16988
16960
|
}
|
|
16989
16961
|
}
|
|
16990
16962
|
});
|
|
16991
|
-
const [value, updateValue] = React
|
|
16992
|
-
React
|
|
16963
|
+
const [value, updateValue] = React.useState(control._getWatch(name, defaultValue2));
|
|
16964
|
+
React.useEffect(() => control._removeUnmounted());
|
|
16993
16965
|
return value;
|
|
16994
16966
|
}
|
|
16995
16967
|
var isKey = (value) => /^\w*$/.test(value);
|
|
@@ -17025,12 +16997,12 @@ function useController(props) {
|
|
|
17025
16997
|
control,
|
|
17026
16998
|
name
|
|
17027
16999
|
});
|
|
17028
|
-
const _registerProps = React
|
|
17000
|
+
const _registerProps = React.useRef(control.register(name, {
|
|
17029
17001
|
...props.rules,
|
|
17030
17002
|
value,
|
|
17031
17003
|
...isBoolean$1(props.disabled) ? { disabled: props.disabled } : {}
|
|
17032
17004
|
}));
|
|
17033
|
-
React
|
|
17005
|
+
React.useEffect(() => {
|
|
17034
17006
|
const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
|
|
17035
17007
|
const updateMounted = (name2, value2) => {
|
|
17036
17008
|
const field = get(control._fields, name2);
|
|
@@ -17050,7 +17022,7 @@ function useController(props) {
|
|
|
17050
17022
|
(isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
|
|
17051
17023
|
};
|
|
17052
17024
|
}, [name, control, isArrayField, shouldUnregister]);
|
|
17053
|
-
React
|
|
17025
|
+
React.useEffect(() => {
|
|
17054
17026
|
if (get(control._fields, name)) {
|
|
17055
17027
|
control._updateDisabledField({
|
|
17056
17028
|
disabled,
|
|
@@ -17065,14 +17037,14 @@ function useController(props) {
|
|
|
17065
17037
|
name,
|
|
17066
17038
|
value,
|
|
17067
17039
|
...isBoolean$1(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {},
|
|
17068
|
-
onChange: React
|
|
17040
|
+
onChange: React.useCallback((event) => _registerProps.current.onChange({
|
|
17069
17041
|
target: {
|
|
17070
17042
|
value: getEventValue(event),
|
|
17071
17043
|
name
|
|
17072
17044
|
},
|
|
17073
17045
|
type: EVENTS.CHANGE
|
|
17074
17046
|
}), [name]),
|
|
17075
|
-
onBlur: React
|
|
17047
|
+
onBlur: React.useCallback(() => _registerProps.current.onBlur({
|
|
17076
17048
|
target: {
|
|
17077
17049
|
value: get(control._formValues, name),
|
|
17078
17050
|
name
|
|
@@ -18314,9 +18286,9 @@ function createFormControl(props = {}, flushRootRender) {
|
|
|
18314
18286
|
};
|
|
18315
18287
|
}
|
|
18316
18288
|
function useForm(props = {}) {
|
|
18317
|
-
const _formControl = React
|
|
18318
|
-
const _values = React
|
|
18319
|
-
const [formState, updateFormState] = React
|
|
18289
|
+
const _formControl = React.useRef();
|
|
18290
|
+
const _values = React.useRef();
|
|
18291
|
+
const [formState, updateFormState] = React.useState({
|
|
18320
18292
|
isDirty: false,
|
|
18321
18293
|
isValidating: false,
|
|
18322
18294
|
isLoading: isFunction(props.defaultValues),
|
|
@@ -18347,8 +18319,8 @@ function useForm(props = {}) {
|
|
|
18347
18319
|
}
|
|
18348
18320
|
}
|
|
18349
18321
|
});
|
|
18350
|
-
React
|
|
18351
|
-
React
|
|
18322
|
+
React.useEffect(() => control._disableForm(props.disabled), [control, props.disabled]);
|
|
18323
|
+
React.useEffect(() => {
|
|
18352
18324
|
if (control._proxyFormState.isDirty) {
|
|
18353
18325
|
const isDirty = control._getDirty();
|
|
18354
18326
|
if (isDirty !== formState.isDirty) {
|
|
@@ -18358,7 +18330,7 @@ function useForm(props = {}) {
|
|
|
18358
18330
|
}
|
|
18359
18331
|
}
|
|
18360
18332
|
}, [control, formState.isDirty]);
|
|
18361
|
-
React
|
|
18333
|
+
React.useEffect(() => {
|
|
18362
18334
|
if (props.values && !deepEqual$1(props.values, _values.current)) {
|
|
18363
18335
|
control._reset(props.values, control._options.resetOptions);
|
|
18364
18336
|
_values.current = props.values;
|
|
@@ -18367,12 +18339,12 @@ function useForm(props = {}) {
|
|
|
18367
18339
|
control._resetDefaultValues();
|
|
18368
18340
|
}
|
|
18369
18341
|
}, [props.values, control]);
|
|
18370
|
-
React
|
|
18342
|
+
React.useEffect(() => {
|
|
18371
18343
|
if (props.errors) {
|
|
18372
18344
|
control._setErrors(props.errors);
|
|
18373
18345
|
}
|
|
18374
18346
|
}, [props.errors, control]);
|
|
18375
|
-
React
|
|
18347
|
+
React.useEffect(() => {
|
|
18376
18348
|
if (!control._state.mount) {
|
|
18377
18349
|
control._updateValid();
|
|
18378
18350
|
control._state.mount = true;
|
|
@@ -18386,9 +18358,9 @@ function useForm(props = {}) {
|
|
|
18386
18358
|
_formControl.current.formState = getProxyFormState(formState, control);
|
|
18387
18359
|
return _formControl.current;
|
|
18388
18360
|
}
|
|
18389
|
-
function getWindow$3(
|
|
18361
|
+
function getWindow$3(node) {
|
|
18390
18362
|
var _node$ownerDocument;
|
|
18391
|
-
return (
|
|
18363
|
+
return (node == null ? void 0 : (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18392
18364
|
}
|
|
18393
18365
|
function isElement$3(value) {
|
|
18394
18366
|
return value instanceof Element || value instanceof getWindow$3(value).Element;
|
|
@@ -18951,19 +18923,19 @@ const size$1 = function(options) {
|
|
|
18951
18923
|
}
|
|
18952
18924
|
};
|
|
18953
18925
|
};
|
|
18954
|
-
function getNodeName$1(
|
|
18955
|
-
if (isNode$1(
|
|
18956
|
-
return (
|
|
18926
|
+
function getNodeName$1(node) {
|
|
18927
|
+
if (isNode$1(node)) {
|
|
18928
|
+
return (node.nodeName || "").toLowerCase();
|
|
18957
18929
|
}
|
|
18958
18930
|
return "#document";
|
|
18959
18931
|
}
|
|
18960
|
-
function getWindow$2(
|
|
18932
|
+
function getWindow$2(node) {
|
|
18961
18933
|
var _node$ownerDocument;
|
|
18962
|
-
return (
|
|
18934
|
+
return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
|
|
18963
18935
|
}
|
|
18964
|
-
function getDocumentElement$1(
|
|
18936
|
+
function getDocumentElement$1(node) {
|
|
18965
18937
|
var _ref;
|
|
18966
|
-
return (_ref = (isNode$1(
|
|
18938
|
+
return (_ref = (isNode$1(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
|
|
18967
18939
|
}
|
|
18968
18940
|
function isNode$1(value) {
|
|
18969
18941
|
return value instanceof Node || value instanceof getWindow$2(value).Node;
|
|
@@ -19012,8 +18984,8 @@ function isWebKit() {
|
|
|
19012
18984
|
return false;
|
|
19013
18985
|
return CSS.supports("-webkit-backdrop-filter", "none");
|
|
19014
18986
|
}
|
|
19015
|
-
function isLastTraversableNode(
|
|
19016
|
-
return ["html", "body", "#document"].includes(getNodeName$1(
|
|
18987
|
+
function isLastTraversableNode(node) {
|
|
18988
|
+
return ["html", "body", "#document"].includes(getNodeName$1(node));
|
|
19017
18989
|
}
|
|
19018
18990
|
function getComputedStyle$3(element) {
|
|
19019
18991
|
return getWindow$2(element).getComputedStyle(element);
|
|
@@ -19030,30 +19002,30 @@ function getNodeScroll$1(element) {
|
|
|
19030
19002
|
scrollTop: element.pageYOffset
|
|
19031
19003
|
};
|
|
19032
19004
|
}
|
|
19033
|
-
function getParentNode$1(
|
|
19034
|
-
if (getNodeName$1(
|
|
19035
|
-
return
|
|
19005
|
+
function getParentNode$1(node) {
|
|
19006
|
+
if (getNodeName$1(node) === "html") {
|
|
19007
|
+
return node;
|
|
19036
19008
|
}
|
|
19037
19009
|
const result = (
|
|
19038
19010
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
19039
|
-
|
|
19040
|
-
|
|
19041
|
-
isShadowRoot$1(
|
|
19042
|
-
getDocumentElement$1(
|
|
19011
|
+
node.assignedSlot || // DOM Element detected.
|
|
19012
|
+
node.parentNode || // ShadowRoot detected.
|
|
19013
|
+
isShadowRoot$1(node) && node.host || // Fallback.
|
|
19014
|
+
getDocumentElement$1(node)
|
|
19043
19015
|
);
|
|
19044
19016
|
return isShadowRoot$1(result) ? result.host : result;
|
|
19045
19017
|
}
|
|
19046
|
-
function getNearestOverflowAncestor(
|
|
19047
|
-
const parentNode = getParentNode$1(
|
|
19018
|
+
function getNearestOverflowAncestor(node) {
|
|
19019
|
+
const parentNode = getParentNode$1(node);
|
|
19048
19020
|
if (isLastTraversableNode(parentNode)) {
|
|
19049
|
-
return
|
|
19021
|
+
return node.ownerDocument ? node.ownerDocument.body : node.body;
|
|
19050
19022
|
}
|
|
19051
19023
|
if (isHTMLElement$1(parentNode) && isOverflowElement(parentNode)) {
|
|
19052
19024
|
return parentNode;
|
|
19053
19025
|
}
|
|
19054
19026
|
return getNearestOverflowAncestor(parentNode);
|
|
19055
19027
|
}
|
|
19056
|
-
function getOverflowAncestors(
|
|
19028
|
+
function getOverflowAncestors(node, list, traverseIframes) {
|
|
19057
19029
|
var _node$ownerDocument2;
|
|
19058
19030
|
if (list === void 0) {
|
|
19059
19031
|
list = [];
|
|
@@ -19061,8 +19033,8 @@ function getOverflowAncestors(node2, list, traverseIframes) {
|
|
|
19061
19033
|
if (traverseIframes === void 0) {
|
|
19062
19034
|
traverseIframes = true;
|
|
19063
19035
|
}
|
|
19064
|
-
const scrollableAncestor = getNearestOverflowAncestor(
|
|
19065
|
-
const isBody = scrollableAncestor === ((_node$ownerDocument2 =
|
|
19036
|
+
const scrollableAncestor = getNearestOverflowAncestor(node);
|
|
19037
|
+
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
19066
19038
|
const win = getWindow$2(scrollableAncestor);
|
|
19067
19039
|
if (isBody) {
|
|
19068
19040
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], win.frameElement && traverseIframes ? getOverflowAncestors(win.frameElement) : []);
|
|
@@ -19734,16 +19706,16 @@ function useFloating$1(options) {
|
|
|
19734
19706
|
}
|
|
19735
19707
|
const [_reference, _setReference] = reactExports.useState(null);
|
|
19736
19708
|
const [_floating, _setFloating] = reactExports.useState(null);
|
|
19737
|
-
const setReference = reactExports.useCallback((
|
|
19738
|
-
if (
|
|
19739
|
-
referenceRef.current =
|
|
19740
|
-
_setReference(
|
|
19709
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19710
|
+
if (node !== referenceRef.current) {
|
|
19711
|
+
referenceRef.current = node;
|
|
19712
|
+
_setReference(node);
|
|
19741
19713
|
}
|
|
19742
19714
|
}, []);
|
|
19743
|
-
const setFloating = reactExports.useCallback((
|
|
19744
|
-
if (
|
|
19745
|
-
floatingRef.current =
|
|
19746
|
-
_setFloating(
|
|
19715
|
+
const setFloating = reactExports.useCallback((node) => {
|
|
19716
|
+
if (node !== floatingRef.current) {
|
|
19717
|
+
floatingRef.current = node;
|
|
19718
|
+
_setFloating(node);
|
|
19747
19719
|
}
|
|
19748
19720
|
}, []);
|
|
19749
19721
|
const referenceEl = externalReference || _reference;
|
|
@@ -19869,7 +19841,7 @@ function useFloatingId() {
|
|
|
19869
19841
|
}, []);
|
|
19870
19842
|
return id2;
|
|
19871
19843
|
}
|
|
19872
|
-
const useReactId = React$
|
|
19844
|
+
const useReactId = React$1[/* @__PURE__ */ "useId".toString()];
|
|
19873
19845
|
const useId = useReactId || useFloatingId;
|
|
19874
19846
|
function createPubSub() {
|
|
19875
19847
|
const map2 = /* @__PURE__ */ new Map();
|
|
@@ -19889,7 +19861,7 @@ function createPubSub() {
|
|
|
19889
19861
|
}
|
|
19890
19862
|
const FloatingTreeContext = /* @__PURE__ */ reactExports.createContext(null);
|
|
19891
19863
|
const useFloatingTree = () => reactExports.useContext(FloatingTreeContext);
|
|
19892
|
-
const useInsertionEffect = React$
|
|
19864
|
+
const useInsertionEffect = React$1[/* @__PURE__ */ "useInsertionEffect".toString()];
|
|
19893
19865
|
const useSafeInsertionEffect = useInsertionEffect || ((fn2) => fn2());
|
|
19894
19866
|
function useEffectEvent(callback) {
|
|
19895
19867
|
const ref2 = reactExports.useRef(() => {
|
|
@@ -19928,23 +19900,23 @@ function useFloating(options) {
|
|
|
19928
19900
|
const dataRef = reactExports.useRef({});
|
|
19929
19901
|
const events2 = reactExports.useState(() => createPubSub())[0];
|
|
19930
19902
|
const floatingId = useId();
|
|
19931
|
-
const setPositionReference = reactExports.useCallback((
|
|
19932
|
-
const positionReference = isElement$3(
|
|
19933
|
-
getBoundingClientRect: () =>
|
|
19934
|
-
contextElement:
|
|
19935
|
-
} :
|
|
19903
|
+
const setPositionReference = reactExports.useCallback((node) => {
|
|
19904
|
+
const positionReference = isElement$3(node) ? {
|
|
19905
|
+
getBoundingClientRect: () => node.getBoundingClientRect(),
|
|
19906
|
+
contextElement: node
|
|
19907
|
+
} : node;
|
|
19936
19908
|
position.refs.setReference(positionReference);
|
|
19937
19909
|
}, [position.refs]);
|
|
19938
|
-
const setReference = reactExports.useCallback((
|
|
19939
|
-
if (isElement$3(
|
|
19940
|
-
domReferenceRef.current =
|
|
19941
|
-
setDomReference(
|
|
19910
|
+
const setReference = reactExports.useCallback((node) => {
|
|
19911
|
+
if (isElement$3(node) || node === null) {
|
|
19912
|
+
domReferenceRef.current = node;
|
|
19913
|
+
setDomReference(node);
|
|
19942
19914
|
}
|
|
19943
19915
|
if (isElement$3(position.refs.reference.current) || position.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
19944
19916
|
// `null` to support `positionReference` + an unstable `reference`
|
|
19945
19917
|
// callback ref.
|
|
19946
|
-
|
|
19947
|
-
position.refs.setReference(
|
|
19918
|
+
node !== null && !isElement$3(node)) {
|
|
19919
|
+
position.refs.setReference(node);
|
|
19948
19920
|
}
|
|
19949
19921
|
}, [position.refs]);
|
|
19950
19922
|
const refs = reactExports.useMemo(() => ({
|
|
@@ -19969,9 +19941,9 @@ function useFloating(options) {
|
|
|
19969
19941
|
onOpenChange
|
|
19970
19942
|
}), [position, nodeId, floatingId, events2, open, onOpenChange, refs, elements]);
|
|
19971
19943
|
index(() => {
|
|
19972
|
-
const
|
|
19973
|
-
if (
|
|
19974
|
-
|
|
19944
|
+
const node = tree == null ? void 0 : tree.nodesRef.current.find((node2) => node2.id === nodeId);
|
|
19945
|
+
if (node) {
|
|
19946
|
+
node.context = context2;
|
|
19975
19947
|
}
|
|
19976
19948
|
});
|
|
19977
19949
|
return reactExports.useMemo(() => ({
|
|
@@ -20971,7 +20943,7 @@ function usePrev(value) {
|
|
|
20971
20943
|
var $node = Symbol.for("Animated:node");
|
|
20972
20944
|
var isAnimated = (value) => !!value && value[$node] === value;
|
|
20973
20945
|
var getAnimated = (owner) => owner && owner[$node];
|
|
20974
|
-
var setAnimated = (owner,
|
|
20946
|
+
var setAnimated = (owner, node) => defineHidden(owner, $node, node);
|
|
20975
20947
|
var getPayload = (owner) => owner && owner[$node] && owner[$node].getPayload();
|
|
20976
20948
|
var Animated = class {
|
|
20977
20949
|
constructor() {
|
|
@@ -21098,7 +21070,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21098
21070
|
}
|
|
21099
21071
|
reset() {
|
|
21100
21072
|
if (this.payload) {
|
|
21101
|
-
each(this.payload, (
|
|
21073
|
+
each(this.payload, (node) => node.reset());
|
|
21102
21074
|
}
|
|
21103
21075
|
}
|
|
21104
21076
|
/** Create a payload set. */
|
|
@@ -21116,7 +21088,7 @@ var AnimatedObject = class extends Animated {
|
|
|
21116
21088
|
}
|
|
21117
21089
|
const payload = getPayload(source);
|
|
21118
21090
|
if (payload) {
|
|
21119
|
-
each(payload, (
|
|
21091
|
+
each(payload, (node) => this.add(node));
|
|
21120
21092
|
}
|
|
21121
21093
|
}
|
|
21122
21094
|
};
|
|
@@ -21129,12 +21101,12 @@ var AnimatedArray = class extends AnimatedObject {
|
|
|
21129
21101
|
return new AnimatedArray(source);
|
|
21130
21102
|
}
|
|
21131
21103
|
getValue() {
|
|
21132
|
-
return this.source.map((
|
|
21104
|
+
return this.source.map((node) => node.getValue());
|
|
21133
21105
|
}
|
|
21134
21106
|
setValue(source) {
|
|
21135
21107
|
const payload = this.getPayload();
|
|
21136
21108
|
if (source.length == payload.length) {
|
|
21137
|
-
return payload.map((
|
|
21109
|
+
return payload.map((node, i2) => node.setValue(source[i2])).some(Boolean);
|
|
21138
21110
|
}
|
|
21139
21111
|
super.setValue(source.map(makeAnimated));
|
|
21140
21112
|
return true;
|
|
@@ -21669,8 +21641,8 @@ var FrameValue = class extends FluidValue {
|
|
|
21669
21641
|
}
|
|
21670
21642
|
/** Get the current value */
|
|
21671
21643
|
get() {
|
|
21672
|
-
const
|
|
21673
|
-
return
|
|
21644
|
+
const node = getAnimated(this);
|
|
21645
|
+
return node && node.getValue();
|
|
21674
21646
|
}
|
|
21675
21647
|
/** Create a spring that maps our value to another value */
|
|
21676
21648
|
to(...args) {
|
|
@@ -21760,8 +21732,8 @@ var SpringValue = class extends FrameValue {
|
|
|
21760
21732
|
return getFluidValue(this.animation.to);
|
|
21761
21733
|
}
|
|
21762
21734
|
get velocity() {
|
|
21763
|
-
const
|
|
21764
|
-
return
|
|
21735
|
+
const node = getAnimated(this);
|
|
21736
|
+
return node instanceof AnimatedValue ? node.lastVelocity || 0 : node.getPayload().map((node2) => node2.lastVelocity || 0);
|
|
21765
21737
|
}
|
|
21766
21738
|
/**
|
|
21767
21739
|
* When true, this value has been animated at least once.
|
|
@@ -21800,24 +21772,24 @@ var SpringValue = class extends FrameValue {
|
|
|
21800
21772
|
if (!payload && hasFluidValue(anim.to)) {
|
|
21801
21773
|
toValues = toArray(getFluidValue(anim.to));
|
|
21802
21774
|
}
|
|
21803
|
-
anim.values.forEach((
|
|
21804
|
-
if (
|
|
21775
|
+
anim.values.forEach((node2, i2) => {
|
|
21776
|
+
if (node2.done)
|
|
21805
21777
|
return;
|
|
21806
21778
|
const to2 = (
|
|
21807
21779
|
// Animated strings always go from 0 to 1.
|
|
21808
|
-
|
|
21780
|
+
node2.constructor == AnimatedString ? 1 : payload ? payload[i2].lastPosition : toValues[i2]
|
|
21809
21781
|
);
|
|
21810
21782
|
let finished = anim.immediate;
|
|
21811
21783
|
let position = to2;
|
|
21812
21784
|
if (!finished) {
|
|
21813
|
-
position =
|
|
21785
|
+
position = node2.lastPosition;
|
|
21814
21786
|
if (config2.tension <= 0) {
|
|
21815
|
-
|
|
21787
|
+
node2.done = true;
|
|
21816
21788
|
return;
|
|
21817
21789
|
}
|
|
21818
|
-
let elapsed =
|
|
21790
|
+
let elapsed = node2.elapsedTime += dt;
|
|
21819
21791
|
const from = anim.fromValues[i2];
|
|
21820
|
-
const v0 =
|
|
21792
|
+
const v0 = node2.v0 != null ? node2.v0 : node2.v0 = is.arr(config2.velocity) ? config2.velocity[i2] : config2.velocity;
|
|
21821
21793
|
let velocity;
|
|
21822
21794
|
const precision = config2.precision || (from == to2 ? 5e-3 : Math.min(1, Math.abs(to2 - from) * 1e-3));
|
|
21823
21795
|
if (!is.und(config2.duration)) {
|
|
@@ -21825,30 +21797,30 @@ var SpringValue = class extends FrameValue {
|
|
|
21825
21797
|
if (config2.duration > 0) {
|
|
21826
21798
|
if (this._memoizedDuration !== config2.duration) {
|
|
21827
21799
|
this._memoizedDuration = config2.duration;
|
|
21828
|
-
if (
|
|
21829
|
-
|
|
21830
|
-
elapsed =
|
|
21800
|
+
if (node2.durationProgress > 0) {
|
|
21801
|
+
node2.elapsedTime = config2.duration * node2.durationProgress;
|
|
21802
|
+
elapsed = node2.elapsedTime += dt;
|
|
21831
21803
|
}
|
|
21832
21804
|
}
|
|
21833
21805
|
p2 = (config2.progress || 0) + elapsed / this._memoizedDuration;
|
|
21834
21806
|
p2 = p2 > 1 ? 1 : p2 < 0 ? 0 : p2;
|
|
21835
|
-
|
|
21807
|
+
node2.durationProgress = p2;
|
|
21836
21808
|
}
|
|
21837
21809
|
position = from + config2.easing(p2) * (to2 - from);
|
|
21838
|
-
velocity = (position -
|
|
21810
|
+
velocity = (position - node2.lastPosition) / dt;
|
|
21839
21811
|
finished = p2 == 1;
|
|
21840
21812
|
} else if (config2.decay) {
|
|
21841
21813
|
const decay = config2.decay === true ? 0.998 : config2.decay;
|
|
21842
21814
|
const e2 = Math.exp(-(1 - decay) * elapsed);
|
|
21843
21815
|
position = from + v0 / (1 - decay) * (1 - e2);
|
|
21844
|
-
finished = Math.abs(
|
|
21816
|
+
finished = Math.abs(node2.lastPosition - position) <= precision;
|
|
21845
21817
|
velocity = v0 * e2;
|
|
21846
21818
|
} else {
|
|
21847
|
-
velocity =
|
|
21819
|
+
velocity = node2.lastVelocity == null ? v0 : node2.lastVelocity;
|
|
21848
21820
|
const restVelocity = config2.restVelocity || precision / 10;
|
|
21849
21821
|
const bounceFactor = config2.clamp ? 0 : config2.bounce;
|
|
21850
21822
|
const canBounce = !is.und(bounceFactor);
|
|
21851
|
-
const isGrowing = from == to2 ?
|
|
21823
|
+
const isGrowing = from == to2 ? node2.v0 > 0 : from < to2;
|
|
21852
21824
|
let isMoving;
|
|
21853
21825
|
let isBouncing = false;
|
|
21854
21826
|
const step = 1;
|
|
@@ -21875,7 +21847,7 @@ var SpringValue = class extends FrameValue {
|
|
|
21875
21847
|
position = position + velocity * step;
|
|
21876
21848
|
}
|
|
21877
21849
|
}
|
|
21878
|
-
|
|
21850
|
+
node2.lastVelocity = velocity;
|
|
21879
21851
|
if (Number.isNaN(position)) {
|
|
21880
21852
|
console.warn(`Got NaN while animating:`, this);
|
|
21881
21853
|
finished = true;
|
|
@@ -21885,20 +21857,20 @@ var SpringValue = class extends FrameValue {
|
|
|
21885
21857
|
finished = false;
|
|
21886
21858
|
}
|
|
21887
21859
|
if (finished) {
|
|
21888
|
-
|
|
21860
|
+
node2.done = true;
|
|
21889
21861
|
} else {
|
|
21890
21862
|
idle = false;
|
|
21891
21863
|
}
|
|
21892
|
-
if (
|
|
21864
|
+
if (node2.setValue(position, config2.round)) {
|
|
21893
21865
|
changed = true;
|
|
21894
21866
|
}
|
|
21895
21867
|
});
|
|
21896
|
-
const
|
|
21897
|
-
const currVal =
|
|
21868
|
+
const node = getAnimated(this);
|
|
21869
|
+
const currVal = node.getValue();
|
|
21898
21870
|
if (idle) {
|
|
21899
21871
|
const finalVal = getFluidValue(anim.to);
|
|
21900
21872
|
if ((currVal !== finalVal || changed) && !config2.decay) {
|
|
21901
|
-
|
|
21873
|
+
node.setValue(finalVal);
|
|
21902
21874
|
this._onChange(finalVal);
|
|
21903
21875
|
} else if (changed && config2.decay) {
|
|
21904
21876
|
this._onChange(currVal);
|
|
@@ -22128,8 +22100,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22128
22100
|
props.config !== defaultProps.config ? callProp(defaultProps.config, key) : void 0
|
|
22129
22101
|
);
|
|
22130
22102
|
}
|
|
22131
|
-
let
|
|
22132
|
-
if (!
|
|
22103
|
+
let node = getAnimated(this);
|
|
22104
|
+
if (!node || is.und(to2)) {
|
|
22133
22105
|
return resolve(getFinishedResult(this, true));
|
|
22134
22106
|
}
|
|
22135
22107
|
const reset = (
|
|
@@ -22144,16 +22116,16 @@ var SpringValue = class extends FrameValue {
|
|
|
22144
22116
|
const immediate = !hasAsyncTo && (!isAnimatable || matchProp(defaultProps.immediate || props.immediate, key));
|
|
22145
22117
|
if (hasToChanged) {
|
|
22146
22118
|
const nodeType = getAnimatedType(to2);
|
|
22147
|
-
if (nodeType !==
|
|
22119
|
+
if (nodeType !== node.constructor) {
|
|
22148
22120
|
if (immediate) {
|
|
22149
|
-
|
|
22121
|
+
node = this._set(goal);
|
|
22150
22122
|
} else
|
|
22151
22123
|
throw Error(
|
|
22152
|
-
`Cannot animate between ${
|
|
22124
|
+
`Cannot animate between ${node.constructor.name} and ${nodeType.name}, as the "to" prop suggests`
|
|
22153
22125
|
);
|
|
22154
22126
|
}
|
|
22155
22127
|
}
|
|
22156
|
-
const goalType =
|
|
22128
|
+
const goalType = node.constructor;
|
|
22157
22129
|
let started = hasFluidValue(to2);
|
|
22158
22130
|
let finished = false;
|
|
22159
22131
|
if (!started) {
|
|
@@ -22175,7 +22147,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22175
22147
|
}
|
|
22176
22148
|
if (!hasAsyncTo) {
|
|
22177
22149
|
if (started || hasFluidValue(prevTo)) {
|
|
22178
|
-
anim.values =
|
|
22150
|
+
anim.values = node.getPayload();
|
|
22179
22151
|
anim.toValues = hasFluidValue(to2) ? null : goalType == AnimatedString ? [1] : toArray(goal);
|
|
22180
22152
|
}
|
|
22181
22153
|
if (anim.immediate != immediate) {
|
|
@@ -22297,7 +22269,7 @@ var SpringValue = class extends FrameValue {
|
|
|
22297
22269
|
const anim = this.animation;
|
|
22298
22270
|
getAnimated(this).reset(getFluidValue(anim.to));
|
|
22299
22271
|
if (!anim.immediate) {
|
|
22300
|
-
anim.fromValues = anim.values.map((
|
|
22272
|
+
anim.fromValues = anim.values.map((node) => node.lastPosition);
|
|
22301
22273
|
}
|
|
22302
22274
|
if (!isAnimating(this)) {
|
|
22303
22275
|
setActiveBit(this, true);
|
|
@@ -22322,8 +22294,8 @@ var SpringValue = class extends FrameValue {
|
|
|
22322
22294
|
if (isAnimating(this)) {
|
|
22323
22295
|
setActiveBit(this, false);
|
|
22324
22296
|
const anim = this.animation;
|
|
22325
|
-
each(anim.values, (
|
|
22326
|
-
|
|
22297
|
+
each(anim.values, (node) => {
|
|
22298
|
+
node.done = true;
|
|
22327
22299
|
});
|
|
22328
22300
|
if (anim.toValues) {
|
|
22329
22301
|
anim.onChange = anim.onPause = anim.onResume = void 0;
|
|
@@ -23196,8 +23168,8 @@ var Interpolation = class extends FrameValue {
|
|
|
23196
23168
|
_start() {
|
|
23197
23169
|
if (this.idle && !checkIdle(this._active)) {
|
|
23198
23170
|
this.idle = false;
|
|
23199
|
-
each(getPayload(this), (
|
|
23200
|
-
|
|
23171
|
+
each(getPayload(this), (node) => {
|
|
23172
|
+
node.done = false;
|
|
23201
23173
|
});
|
|
23202
23174
|
if (globals_exports.skipAnimation) {
|
|
23203
23175
|
raf.batchedUpdates(() => this.advance());
|
|
@@ -23262,8 +23234,8 @@ function checkIdle(active) {
|
|
|
23262
23234
|
function becomeIdle(self2) {
|
|
23263
23235
|
if (!self2.idle) {
|
|
23264
23236
|
self2.idle = true;
|
|
23265
|
-
each(getPayload(self2), (
|
|
23266
|
-
|
|
23237
|
+
each(getPayload(self2), (node) => {
|
|
23238
|
+
node.done = true;
|
|
23267
23239
|
});
|
|
23268
23240
|
callFluidObservers(self2, {
|
|
23269
23241
|
type: "idle",
|
|
@@ -23657,30 +23629,30 @@ var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain,
|
|
|
23657
23629
|
function getNodeName(element) {
|
|
23658
23630
|
return element ? (element.nodeName || "").toLowerCase() : null;
|
|
23659
23631
|
}
|
|
23660
|
-
function getWindow$1(
|
|
23661
|
-
if (
|
|
23632
|
+
function getWindow$1(node) {
|
|
23633
|
+
if (node == null) {
|
|
23662
23634
|
return window;
|
|
23663
23635
|
}
|
|
23664
|
-
if (
|
|
23665
|
-
var ownerDocument =
|
|
23636
|
+
if (node.toString() !== "[object Window]") {
|
|
23637
|
+
var ownerDocument = node.ownerDocument;
|
|
23666
23638
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
23667
23639
|
}
|
|
23668
|
-
return
|
|
23640
|
+
return node;
|
|
23669
23641
|
}
|
|
23670
|
-
function isElement$1(
|
|
23671
|
-
var OwnElement = getWindow$1(
|
|
23672
|
-
return
|
|
23642
|
+
function isElement$1(node) {
|
|
23643
|
+
var OwnElement = getWindow$1(node).Element;
|
|
23644
|
+
return node instanceof OwnElement || node instanceof Element;
|
|
23673
23645
|
}
|
|
23674
|
-
function isHTMLElement(
|
|
23675
|
-
var OwnElement = getWindow$1(
|
|
23676
|
-
return
|
|
23646
|
+
function isHTMLElement(node) {
|
|
23647
|
+
var OwnElement = getWindow$1(node).HTMLElement;
|
|
23648
|
+
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
23677
23649
|
}
|
|
23678
|
-
function isShadowRoot(
|
|
23650
|
+
function isShadowRoot(node) {
|
|
23679
23651
|
if (typeof ShadowRoot === "undefined") {
|
|
23680
23652
|
return false;
|
|
23681
23653
|
}
|
|
23682
|
-
var OwnElement = getWindow$1(
|
|
23683
|
-
return
|
|
23654
|
+
var OwnElement = getWindow$1(node).ShadowRoot;
|
|
23655
|
+
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
23684
23656
|
}
|
|
23685
23657
|
function applyStyles(_ref) {
|
|
23686
23658
|
var state = _ref.state;
|
|
@@ -24162,8 +24134,8 @@ function getOppositeVariationPlacement(placement) {
|
|
|
24162
24134
|
return hash$1[matched];
|
|
24163
24135
|
});
|
|
24164
24136
|
}
|
|
24165
|
-
function getWindowScroll(
|
|
24166
|
-
var win = getWindow$1(
|
|
24137
|
+
function getWindowScroll(node) {
|
|
24138
|
+
var win = getWindow$1(node);
|
|
24167
24139
|
var scrollLeft = win.pageXOffset;
|
|
24168
24140
|
var scrollTop = win.pageYOffset;
|
|
24169
24141
|
return {
|
|
@@ -24221,14 +24193,14 @@ function isScrollParent(element) {
|
|
|
24221
24193
|
var _getComputedStyle = getComputedStyle$2(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
|
|
24222
24194
|
return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
|
|
24223
24195
|
}
|
|
24224
|
-
function getScrollParent(
|
|
24225
|
-
if (["html", "body", "#document"].indexOf(getNodeName(
|
|
24226
|
-
return
|
|
24196
|
+
function getScrollParent(node) {
|
|
24197
|
+
if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
|
|
24198
|
+
return node.ownerDocument.body;
|
|
24227
24199
|
}
|
|
24228
|
-
if (isHTMLElement(
|
|
24229
|
-
return
|
|
24200
|
+
if (isHTMLElement(node) && isScrollParent(node)) {
|
|
24201
|
+
return node;
|
|
24230
24202
|
}
|
|
24231
|
-
return getScrollParent(getParentNode(
|
|
24203
|
+
return getScrollParent(getParentNode(node));
|
|
24232
24204
|
}
|
|
24233
24205
|
function listScrollParents(element, list) {
|
|
24234
24206
|
var _element$ownerDocumen;
|
|
@@ -24722,11 +24694,11 @@ function getHTMLElementScroll(element) {
|
|
|
24722
24694
|
scrollTop: element.scrollTop
|
|
24723
24695
|
};
|
|
24724
24696
|
}
|
|
24725
|
-
function getNodeScroll(
|
|
24726
|
-
if (
|
|
24727
|
-
return getWindowScroll(
|
|
24697
|
+
function getNodeScroll(node) {
|
|
24698
|
+
if (node === getWindow$1(node) || !isHTMLElement(node)) {
|
|
24699
|
+
return getWindowScroll(node);
|
|
24728
24700
|
} else {
|
|
24729
|
-
return getHTMLElementScroll(
|
|
24701
|
+
return getHTMLElementScroll(node);
|
|
24730
24702
|
}
|
|
24731
24703
|
}
|
|
24732
24704
|
function isElementScaled(element) {
|
|
@@ -25259,35 +25231,7 @@ const SvgCommunity = ({
|
|
|
25259
25231
|
)
|
|
25260
25232
|
]
|
|
25261
25233
|
}
|
|
25262
|
-
), SvgMyApps$1 = SvgMyApps,
|
|
25263
|
-
title,
|
|
25264
|
-
titleId,
|
|
25265
|
-
...props
|
|
25266
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25267
|
-
"svg",
|
|
25268
|
-
{
|
|
25269
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25270
|
-
width: "24",
|
|
25271
|
-
height: "24",
|
|
25272
|
-
fill: "none",
|
|
25273
|
-
viewBox: "0 0 24 24",
|
|
25274
|
-
"aria-hidden": "true",
|
|
25275
|
-
"aria-labelledby": titleId,
|
|
25276
|
-
...props,
|
|
25277
|
-
children: [
|
|
25278
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25279
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25280
|
-
"path",
|
|
25281
|
-
{
|
|
25282
|
-
fill: "currentColor",
|
|
25283
|
-
fillRule: "evenodd",
|
|
25284
|
-
d: "M12 24c6.627 0 12-5.373 12-12S18.627 0 12 0 0 5.373 0 12s5.373 12 12 12M7.123 7.667C8.276 5.958 9.745 5 12.013 5 14.425 5 17 6.941 17 9.5c0 2.113-1.377 2.932-2.418 3.552-.633.376-1.142.68-1.142 1.154v.169a.693.693 0 0 1-.682.703h-2.06a.693.693 0 0 1-.681-.703v-.287c0-1.768 1.269-2.5 2.266-3.075l.073-.042c.863-.499 1.392-.838 1.392-1.499 0-.874-1.082-1.454-1.956-1.454-1.112 0-1.64.53-2.351 1.449a.67.67 0 0 1-.945.121L7.27 8.63a.72.72 0 0 1-.147-.963M9.76 17.97c0-1.12.883-2.03 1.969-2.03 1.085 0 1.968.91 1.968 2.03S12.814 20 11.73 20c-1.086 0-1.969-.91-1.969-2.03",
|
|
25285
|
-
clipRule: "evenodd"
|
|
25286
|
-
}
|
|
25287
|
-
)
|
|
25288
|
-
]
|
|
25289
|
-
}
|
|
25290
|
-
), SvgNeoAssistance$1 = SvgNeoAssistance, SvgNeoMessaging = ({
|
|
25234
|
+
), SvgMyApps$1 = SvgMyApps, SvgNeoMessaging = ({
|
|
25291
25235
|
title,
|
|
25292
25236
|
titleId,
|
|
25293
25237
|
...props
|
|
@@ -25338,33 +25282,7 @@ const SvgCommunity = ({
|
|
|
25338
25282
|
)
|
|
25339
25283
|
]
|
|
25340
25284
|
}
|
|
25341
|
-
), SvgNewRelease$1 = SvgNewRelease,
|
|
25342
|
-
title,
|
|
25343
|
-
titleId,
|
|
25344
|
-
...props
|
|
25345
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
25346
|
-
"svg",
|
|
25347
|
-
{
|
|
25348
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25349
|
-
width: "24",
|
|
25350
|
-
height: "24",
|
|
25351
|
-
fill: "none",
|
|
25352
|
-
viewBox: "0 0 24 24",
|
|
25353
|
-
"aria-hidden": "true",
|
|
25354
|
-
"aria-labelledby": titleId,
|
|
25355
|
-
...props,
|
|
25356
|
-
children: [
|
|
25357
|
-
title ? /* @__PURE__ */ jsxRuntimeExports.jsx("title", { id: titleId, children: title }) : null,
|
|
25358
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
25359
|
-
"path",
|
|
25360
|
-
{
|
|
25361
|
-
fill: "currentColor",
|
|
25362
|
-
d: "M11.685 2C8.66 2 6.7 3.277 5.164 5.556A.96.96 0 0 0 5.36 6.84l1.634 1.278a.89.89 0 0 0 1.26-.162c.95-1.226 1.653-1.932 3.136-1.932 1.165 0 2.607.773 2.607 1.939 0 .88-.705 1.333-1.856 1.998-1.342.776-3.118 1.742-3.118 4.157v.382c0 .518.407.938.909.938h2.746c.502 0 .91-.42.91-.938v-.226c0-1.674 4.745-1.743 4.745-6.274 0-3.412-3.432-6-6.648-6m-.38 14.588c-1.447 0-2.625 1.214-2.625 2.706S9.858 22 11.305 22s2.624-1.214 2.624-2.706-1.177-2.706-2.624-2.706"
|
|
25363
|
-
}
|
|
25364
|
-
)
|
|
25365
|
-
]
|
|
25366
|
-
}
|
|
25367
|
-
), SvgOneAssistance$1 = SvgOneAssistance, SvgOneMessaging = ({
|
|
25285
|
+
), SvgNewRelease$1 = SvgNewRelease, SvgOneMessaging = ({
|
|
25368
25286
|
title,
|
|
25369
25287
|
titleId,
|
|
25370
25288
|
...props
|
|
@@ -25695,11 +25613,11 @@ function getTranslate(el2, axis) {
|
|
|
25695
25613
|
function isObject$1(o2) {
|
|
25696
25614
|
return typeof o2 === "object" && o2 !== null && o2.constructor && Object.prototype.toString.call(o2).slice(8, -1) === "Object";
|
|
25697
25615
|
}
|
|
25698
|
-
function isNode(
|
|
25616
|
+
function isNode(node) {
|
|
25699
25617
|
if (typeof window !== "undefined" && typeof window.HTMLElement !== "undefined") {
|
|
25700
|
-
return
|
|
25618
|
+
return node instanceof HTMLElement;
|
|
25701
25619
|
}
|
|
25702
|
-
return
|
|
25620
|
+
return node && (node.nodeType === 1 || node.nodeType === 11);
|
|
25703
25621
|
}
|
|
25704
25622
|
function extend$1() {
|
|
25705
25623
|
const to2 = Object(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
@@ -26727,8 +26645,8 @@ function updateSlides() {
|
|
|
26727
26645
|
"marginRight": "marginBottom"
|
|
26728
26646
|
}[property];
|
|
26729
26647
|
}
|
|
26730
|
-
function getDirectionPropertyValue(
|
|
26731
|
-
return parseFloat(
|
|
26648
|
+
function getDirectionPropertyValue(node, label) {
|
|
26649
|
+
return parseFloat(node.getPropertyValue(getDirectionLabel(label)) || 0);
|
|
26732
26650
|
}
|
|
26733
26651
|
const params = swiper.params;
|
|
26734
26652
|
const {
|
|
@@ -30328,7 +30246,7 @@ function isChildSwiperSlide(child) {
|
|
|
30328
30246
|
}
|
|
30329
30247
|
function processChildren(c6) {
|
|
30330
30248
|
const slides = [];
|
|
30331
|
-
React
|
|
30249
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30332
30250
|
if (isChildSwiperSlide(child)) {
|
|
30333
30251
|
slides.push(child);
|
|
30334
30252
|
} else if (child.props && child.props.children) {
|
|
@@ -30345,7 +30263,7 @@ function getChildren(c6) {
|
|
|
30345
30263
|
"wrapper-start": [],
|
|
30346
30264
|
"wrapper-end": []
|
|
30347
30265
|
};
|
|
30348
|
-
React
|
|
30266
|
+
React.Children.toArray(c6).forEach((child) => {
|
|
30349
30267
|
if (isChildSwiperSlide(child)) {
|
|
30350
30268
|
slides.push(child);
|
|
30351
30269
|
} else if (child.props && child.props.slot && slots[child.props.slot]) {
|
|
@@ -30396,7 +30314,7 @@ function renderVirtual(swiper, slides, virtualData) {
|
|
|
30396
30314
|
}
|
|
30397
30315
|
}
|
|
30398
30316
|
return slidesToRender.map((child, index2) => {
|
|
30399
|
-
return /* @__PURE__ */ React
|
|
30317
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30400
30318
|
swiper,
|
|
30401
30319
|
style,
|
|
30402
30320
|
key: `slide-${index2}`
|
|
@@ -30556,29 +30474,29 @@ const Swiper2 = /* @__PURE__ */ reactExports.forwardRef(function(_temp, external
|
|
|
30556
30474
|
return renderVirtual(swiperRef.current, slides, virtualData);
|
|
30557
30475
|
}
|
|
30558
30476
|
return slides.map((child, index2) => {
|
|
30559
|
-
return /* @__PURE__ */ React
|
|
30477
|
+
return /* @__PURE__ */ React.cloneElement(child, {
|
|
30560
30478
|
swiper: swiperRef.current,
|
|
30561
30479
|
swiperSlideIndex: index2
|
|
30562
30480
|
});
|
|
30563
30481
|
});
|
|
30564
30482
|
}
|
|
30565
|
-
return /* @__PURE__ */ React
|
|
30483
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30566
30484
|
ref: swiperElRef,
|
|
30567
30485
|
className: uniqueClasses(`${containerClasses}${className ? ` ${className}` : ""}`)
|
|
30568
|
-
}, restProps), /* @__PURE__ */ React
|
|
30486
|
+
}, restProps), /* @__PURE__ */ React.createElement(SwiperContext.Provider, {
|
|
30569
30487
|
value: swiperRef.current
|
|
30570
|
-
}, slots["container-start"], /* @__PURE__ */ React
|
|
30488
|
+
}, slots["container-start"], /* @__PURE__ */ React.createElement(WrapperTag, {
|
|
30571
30489
|
className: wrapperClass(swiperParams.wrapperClass)
|
|
30572
|
-
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React
|
|
30490
|
+
}, slots["wrapper-start"], renderSlides(), slots["wrapper-end"]), needsNavigation(swiperParams) && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", {
|
|
30573
30491
|
ref: prevElRef,
|
|
30574
30492
|
className: "swiper-button-prev"
|
|
30575
|
-
}), /* @__PURE__ */ React
|
|
30493
|
+
}), /* @__PURE__ */ React.createElement("div", {
|
|
30576
30494
|
ref: nextElRef,
|
|
30577
30495
|
className: "swiper-button-next"
|
|
30578
|
-
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React
|
|
30496
|
+
})), needsScrollbar(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30579
30497
|
ref: scrollbarElRef,
|
|
30580
30498
|
className: "swiper-scrollbar"
|
|
30581
|
-
}), needsPagination(swiperParams) && /* @__PURE__ */ React
|
|
30499
|
+
}), needsPagination(swiperParams) && /* @__PURE__ */ React.createElement("div", {
|
|
30582
30500
|
ref: paginationElRef,
|
|
30583
30501
|
className: "swiper-pagination"
|
|
30584
30502
|
}), slots["container-end"]));
|
|
@@ -30644,2329 +30562,25 @@ const SwiperSlide = /* @__PURE__ */ reactExports.forwardRef(function(_temp, exte
|
|
|
30644
30562
|
const onLoad2 = () => {
|
|
30645
30563
|
setLazyLoaded(true);
|
|
30646
30564
|
};
|
|
30647
|
-
return /* @__PURE__ */ React
|
|
30565
|
+
return /* @__PURE__ */ React.createElement(Tag, _extends({
|
|
30648
30566
|
ref: slideElRef,
|
|
30649
30567
|
className: uniqueClasses(`${slideClasses}${className ? ` ${className}` : ""}`),
|
|
30650
30568
|
"data-swiper-slide-index": virtualIndex,
|
|
30651
30569
|
onLoad: onLoad2
|
|
30652
|
-
}, rest), zoom && /* @__PURE__ */ React
|
|
30570
|
+
}, rest), zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30653
30571
|
value: slideData
|
|
30654
|
-
}, /* @__PURE__ */ React
|
|
30572
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
30655
30573
|
className: "swiper-zoom-container",
|
|
30656
30574
|
"data-swiper-zoom": typeof zoom === "number" ? zoom : void 0
|
|
30657
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30575
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30658
30576
|
className: "swiper-lazy-preloader"
|
|
30659
|
-
}))), !zoom && /* @__PURE__ */ React
|
|
30577
|
+
}))), !zoom && /* @__PURE__ */ React.createElement(SwiperSlideContext.Provider, {
|
|
30660
30578
|
value: slideData
|
|
30661
|
-
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React
|
|
30579
|
+
}, renderChildren(), lazy && !lazyLoaded && /* @__PURE__ */ React.createElement("div", {
|
|
30662
30580
|
className: "swiper-lazy-preloader"
|
|
30663
30581
|
})));
|
|
30664
30582
|
});
|
|
30665
30583
|
SwiperSlide.displayName = "SwiperSlide";
|
|
30666
|
-
var lib$3 = {};
|
|
30667
|
-
var lib$2 = {};
|
|
30668
|
-
(function(exports) {
|
|
30669
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30670
|
-
exports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;
|
|
30671
|
-
var ElementType;
|
|
30672
|
-
(function(ElementType2) {
|
|
30673
|
-
ElementType2["Root"] = "root";
|
|
30674
|
-
ElementType2["Text"] = "text";
|
|
30675
|
-
ElementType2["Directive"] = "directive";
|
|
30676
|
-
ElementType2["Comment"] = "comment";
|
|
30677
|
-
ElementType2["Script"] = "script";
|
|
30678
|
-
ElementType2["Style"] = "style";
|
|
30679
|
-
ElementType2["Tag"] = "tag";
|
|
30680
|
-
ElementType2["CDATA"] = "cdata";
|
|
30681
|
-
ElementType2["Doctype"] = "doctype";
|
|
30682
|
-
})(ElementType = exports.ElementType || (exports.ElementType = {}));
|
|
30683
|
-
function isTag2(elem) {
|
|
30684
|
-
return elem.type === ElementType.Tag || elem.type === ElementType.Script || elem.type === ElementType.Style;
|
|
30685
|
-
}
|
|
30686
|
-
exports.isTag = isTag2;
|
|
30687
|
-
exports.Root = ElementType.Root;
|
|
30688
|
-
exports.Text = ElementType.Text;
|
|
30689
|
-
exports.Directive = ElementType.Directive;
|
|
30690
|
-
exports.Comment = ElementType.Comment;
|
|
30691
|
-
exports.Script = ElementType.Script;
|
|
30692
|
-
exports.Style = ElementType.Style;
|
|
30693
|
-
exports.Tag = ElementType.Tag;
|
|
30694
|
-
exports.CDATA = ElementType.CDATA;
|
|
30695
|
-
exports.Doctype = ElementType.Doctype;
|
|
30696
|
-
})(lib$2);
|
|
30697
|
-
var node = {};
|
|
30698
|
-
var __extends = commonjsGlobal && commonjsGlobal.__extends || /* @__PURE__ */ function() {
|
|
30699
|
-
var extendStatics = function(d2, b2) {
|
|
30700
|
-
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) {
|
|
30701
|
-
d3.__proto__ = b3;
|
|
30702
|
-
} || function(d3, b3) {
|
|
30703
|
-
for (var p2 in b3)
|
|
30704
|
-
if (Object.prototype.hasOwnProperty.call(b3, p2))
|
|
30705
|
-
d3[p2] = b3[p2];
|
|
30706
|
-
};
|
|
30707
|
-
return extendStatics(d2, b2);
|
|
30708
|
-
};
|
|
30709
|
-
return function(d2, b2) {
|
|
30710
|
-
if (typeof b2 !== "function" && b2 !== null)
|
|
30711
|
-
throw new TypeError("Class extends value " + String(b2) + " is not a constructor or null");
|
|
30712
|
-
extendStatics(d2, b2);
|
|
30713
|
-
function __() {
|
|
30714
|
-
this.constructor = d2;
|
|
30715
|
-
}
|
|
30716
|
-
d2.prototype = b2 === null ? Object.create(b2) : (__.prototype = b2.prototype, new __());
|
|
30717
|
-
};
|
|
30718
|
-
}();
|
|
30719
|
-
var __assign = commonjsGlobal && commonjsGlobal.__assign || function() {
|
|
30720
|
-
__assign = Object.assign || function(t2) {
|
|
30721
|
-
for (var s2, i2 = 1, n2 = arguments.length; i2 < n2; i2++) {
|
|
30722
|
-
s2 = arguments[i2];
|
|
30723
|
-
for (var p2 in s2)
|
|
30724
|
-
if (Object.prototype.hasOwnProperty.call(s2, p2))
|
|
30725
|
-
t2[p2] = s2[p2];
|
|
30726
|
-
}
|
|
30727
|
-
return t2;
|
|
30728
|
-
};
|
|
30729
|
-
return __assign.apply(this, arguments);
|
|
30730
|
-
};
|
|
30731
|
-
Object.defineProperty(node, "__esModule", { value: true });
|
|
30732
|
-
node.cloneNode = node.hasChildren = node.isDocument = node.isDirective = node.isComment = node.isText = node.isCDATA = node.isTag = node.Element = node.Document = node.CDATA = node.NodeWithChildren = node.ProcessingInstruction = node.Comment = node.Text = node.DataNode = node.Node = void 0;
|
|
30733
|
-
var domelementtype_1 = lib$2;
|
|
30734
|
-
var Node$2 = (
|
|
30735
|
-
/** @class */
|
|
30736
|
-
function() {
|
|
30737
|
-
function Node2() {
|
|
30738
|
-
this.parent = null;
|
|
30739
|
-
this.prev = null;
|
|
30740
|
-
this.next = null;
|
|
30741
|
-
this.startIndex = null;
|
|
30742
|
-
this.endIndex = null;
|
|
30743
|
-
}
|
|
30744
|
-
Object.defineProperty(Node2.prototype, "parentNode", {
|
|
30745
|
-
// Read-write aliases for properties
|
|
30746
|
-
/**
|
|
30747
|
-
* Same as {@link parent}.
|
|
30748
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30749
|
-
*/
|
|
30750
|
-
get: function() {
|
|
30751
|
-
return this.parent;
|
|
30752
|
-
},
|
|
30753
|
-
set: function(parent) {
|
|
30754
|
-
this.parent = parent;
|
|
30755
|
-
},
|
|
30756
|
-
enumerable: false,
|
|
30757
|
-
configurable: true
|
|
30758
|
-
});
|
|
30759
|
-
Object.defineProperty(Node2.prototype, "previousSibling", {
|
|
30760
|
-
/**
|
|
30761
|
-
* Same as {@link prev}.
|
|
30762
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30763
|
-
*/
|
|
30764
|
-
get: function() {
|
|
30765
|
-
return this.prev;
|
|
30766
|
-
},
|
|
30767
|
-
set: function(prev) {
|
|
30768
|
-
this.prev = prev;
|
|
30769
|
-
},
|
|
30770
|
-
enumerable: false,
|
|
30771
|
-
configurable: true
|
|
30772
|
-
});
|
|
30773
|
-
Object.defineProperty(Node2.prototype, "nextSibling", {
|
|
30774
|
-
/**
|
|
30775
|
-
* Same as {@link next}.
|
|
30776
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30777
|
-
*/
|
|
30778
|
-
get: function() {
|
|
30779
|
-
return this.next;
|
|
30780
|
-
},
|
|
30781
|
-
set: function(next) {
|
|
30782
|
-
this.next = next;
|
|
30783
|
-
},
|
|
30784
|
-
enumerable: false,
|
|
30785
|
-
configurable: true
|
|
30786
|
-
});
|
|
30787
|
-
Node2.prototype.cloneNode = function(recursive) {
|
|
30788
|
-
if (recursive === void 0) {
|
|
30789
|
-
recursive = false;
|
|
30790
|
-
}
|
|
30791
|
-
return cloneNode(this, recursive);
|
|
30792
|
-
};
|
|
30793
|
-
return Node2;
|
|
30794
|
-
}()
|
|
30795
|
-
);
|
|
30796
|
-
node.Node = Node$2;
|
|
30797
|
-
var DataNode = (
|
|
30798
|
-
/** @class */
|
|
30799
|
-
function(_super) {
|
|
30800
|
-
__extends(DataNode2, _super);
|
|
30801
|
-
function DataNode2(data) {
|
|
30802
|
-
var _this = _super.call(this) || this;
|
|
30803
|
-
_this.data = data;
|
|
30804
|
-
return _this;
|
|
30805
|
-
}
|
|
30806
|
-
Object.defineProperty(DataNode2.prototype, "nodeValue", {
|
|
30807
|
-
/**
|
|
30808
|
-
* Same as {@link data}.
|
|
30809
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30810
|
-
*/
|
|
30811
|
-
get: function() {
|
|
30812
|
-
return this.data;
|
|
30813
|
-
},
|
|
30814
|
-
set: function(data) {
|
|
30815
|
-
this.data = data;
|
|
30816
|
-
},
|
|
30817
|
-
enumerable: false,
|
|
30818
|
-
configurable: true
|
|
30819
|
-
});
|
|
30820
|
-
return DataNode2;
|
|
30821
|
-
}(Node$2)
|
|
30822
|
-
);
|
|
30823
|
-
node.DataNode = DataNode;
|
|
30824
|
-
var Text$2 = (
|
|
30825
|
-
/** @class */
|
|
30826
|
-
function(_super) {
|
|
30827
|
-
__extends(Text2, _super);
|
|
30828
|
-
function Text2() {
|
|
30829
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30830
|
-
_this.type = domelementtype_1.ElementType.Text;
|
|
30831
|
-
return _this;
|
|
30832
|
-
}
|
|
30833
|
-
Object.defineProperty(Text2.prototype, "nodeType", {
|
|
30834
|
-
get: function() {
|
|
30835
|
-
return 3;
|
|
30836
|
-
},
|
|
30837
|
-
enumerable: false,
|
|
30838
|
-
configurable: true
|
|
30839
|
-
});
|
|
30840
|
-
return Text2;
|
|
30841
|
-
}(DataNode)
|
|
30842
|
-
);
|
|
30843
|
-
node.Text = Text$2;
|
|
30844
|
-
var Comment$1 = (
|
|
30845
|
-
/** @class */
|
|
30846
|
-
function(_super) {
|
|
30847
|
-
__extends(Comment2, _super);
|
|
30848
|
-
function Comment2() {
|
|
30849
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30850
|
-
_this.type = domelementtype_1.ElementType.Comment;
|
|
30851
|
-
return _this;
|
|
30852
|
-
}
|
|
30853
|
-
Object.defineProperty(Comment2.prototype, "nodeType", {
|
|
30854
|
-
get: function() {
|
|
30855
|
-
return 8;
|
|
30856
|
-
},
|
|
30857
|
-
enumerable: false,
|
|
30858
|
-
configurable: true
|
|
30859
|
-
});
|
|
30860
|
-
return Comment2;
|
|
30861
|
-
}(DataNode)
|
|
30862
|
-
);
|
|
30863
|
-
node.Comment = Comment$1;
|
|
30864
|
-
var ProcessingInstruction$1 = (
|
|
30865
|
-
/** @class */
|
|
30866
|
-
function(_super) {
|
|
30867
|
-
__extends(ProcessingInstruction2, _super);
|
|
30868
|
-
function ProcessingInstruction2(name, data) {
|
|
30869
|
-
var _this = _super.call(this, data) || this;
|
|
30870
|
-
_this.name = name;
|
|
30871
|
-
_this.type = domelementtype_1.ElementType.Directive;
|
|
30872
|
-
return _this;
|
|
30873
|
-
}
|
|
30874
|
-
Object.defineProperty(ProcessingInstruction2.prototype, "nodeType", {
|
|
30875
|
-
get: function() {
|
|
30876
|
-
return 1;
|
|
30877
|
-
},
|
|
30878
|
-
enumerable: false,
|
|
30879
|
-
configurable: true
|
|
30880
|
-
});
|
|
30881
|
-
return ProcessingInstruction2;
|
|
30882
|
-
}(DataNode)
|
|
30883
|
-
);
|
|
30884
|
-
node.ProcessingInstruction = ProcessingInstruction$1;
|
|
30885
|
-
var NodeWithChildren = (
|
|
30886
|
-
/** @class */
|
|
30887
|
-
function(_super) {
|
|
30888
|
-
__extends(NodeWithChildren2, _super);
|
|
30889
|
-
function NodeWithChildren2(children) {
|
|
30890
|
-
var _this = _super.call(this) || this;
|
|
30891
|
-
_this.children = children;
|
|
30892
|
-
return _this;
|
|
30893
|
-
}
|
|
30894
|
-
Object.defineProperty(NodeWithChildren2.prototype, "firstChild", {
|
|
30895
|
-
// Aliases
|
|
30896
|
-
/** First child of the node. */
|
|
30897
|
-
get: function() {
|
|
30898
|
-
var _a2;
|
|
30899
|
-
return (_a2 = this.children[0]) !== null && _a2 !== void 0 ? _a2 : null;
|
|
30900
|
-
},
|
|
30901
|
-
enumerable: false,
|
|
30902
|
-
configurable: true
|
|
30903
|
-
});
|
|
30904
|
-
Object.defineProperty(NodeWithChildren2.prototype, "lastChild", {
|
|
30905
|
-
/** Last child of the node. */
|
|
30906
|
-
get: function() {
|
|
30907
|
-
return this.children.length > 0 ? this.children[this.children.length - 1] : null;
|
|
30908
|
-
},
|
|
30909
|
-
enumerable: false,
|
|
30910
|
-
configurable: true
|
|
30911
|
-
});
|
|
30912
|
-
Object.defineProperty(NodeWithChildren2.prototype, "childNodes", {
|
|
30913
|
-
/**
|
|
30914
|
-
* Same as {@link children}.
|
|
30915
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30916
|
-
*/
|
|
30917
|
-
get: function() {
|
|
30918
|
-
return this.children;
|
|
30919
|
-
},
|
|
30920
|
-
set: function(children) {
|
|
30921
|
-
this.children = children;
|
|
30922
|
-
},
|
|
30923
|
-
enumerable: false,
|
|
30924
|
-
configurable: true
|
|
30925
|
-
});
|
|
30926
|
-
return NodeWithChildren2;
|
|
30927
|
-
}(Node$2)
|
|
30928
|
-
);
|
|
30929
|
-
node.NodeWithChildren = NodeWithChildren;
|
|
30930
|
-
var CDATA = (
|
|
30931
|
-
/** @class */
|
|
30932
|
-
function(_super) {
|
|
30933
|
-
__extends(CDATA2, _super);
|
|
30934
|
-
function CDATA2() {
|
|
30935
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30936
|
-
_this.type = domelementtype_1.ElementType.CDATA;
|
|
30937
|
-
return _this;
|
|
30938
|
-
}
|
|
30939
|
-
Object.defineProperty(CDATA2.prototype, "nodeType", {
|
|
30940
|
-
get: function() {
|
|
30941
|
-
return 4;
|
|
30942
|
-
},
|
|
30943
|
-
enumerable: false,
|
|
30944
|
-
configurable: true
|
|
30945
|
-
});
|
|
30946
|
-
return CDATA2;
|
|
30947
|
-
}(NodeWithChildren)
|
|
30948
|
-
);
|
|
30949
|
-
node.CDATA = CDATA;
|
|
30950
|
-
var Document = (
|
|
30951
|
-
/** @class */
|
|
30952
|
-
function(_super) {
|
|
30953
|
-
__extends(Document2, _super);
|
|
30954
|
-
function Document2() {
|
|
30955
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
30956
|
-
_this.type = domelementtype_1.ElementType.Root;
|
|
30957
|
-
return _this;
|
|
30958
|
-
}
|
|
30959
|
-
Object.defineProperty(Document2.prototype, "nodeType", {
|
|
30960
|
-
get: function() {
|
|
30961
|
-
return 9;
|
|
30962
|
-
},
|
|
30963
|
-
enumerable: false,
|
|
30964
|
-
configurable: true
|
|
30965
|
-
});
|
|
30966
|
-
return Document2;
|
|
30967
|
-
}(NodeWithChildren)
|
|
30968
|
-
);
|
|
30969
|
-
node.Document = Document;
|
|
30970
|
-
var Element$2 = (
|
|
30971
|
-
/** @class */
|
|
30972
|
-
function(_super) {
|
|
30973
|
-
__extends(Element2, _super);
|
|
30974
|
-
function Element2(name, attribs, children, type2) {
|
|
30975
|
-
if (children === void 0) {
|
|
30976
|
-
children = [];
|
|
30977
|
-
}
|
|
30978
|
-
if (type2 === void 0) {
|
|
30979
|
-
type2 = name === "script" ? domelementtype_1.ElementType.Script : name === "style" ? domelementtype_1.ElementType.Style : domelementtype_1.ElementType.Tag;
|
|
30980
|
-
}
|
|
30981
|
-
var _this = _super.call(this, children) || this;
|
|
30982
|
-
_this.name = name;
|
|
30983
|
-
_this.attribs = attribs;
|
|
30984
|
-
_this.type = type2;
|
|
30985
|
-
return _this;
|
|
30986
|
-
}
|
|
30987
|
-
Object.defineProperty(Element2.prototype, "nodeType", {
|
|
30988
|
-
get: function() {
|
|
30989
|
-
return 1;
|
|
30990
|
-
},
|
|
30991
|
-
enumerable: false,
|
|
30992
|
-
configurable: true
|
|
30993
|
-
});
|
|
30994
|
-
Object.defineProperty(Element2.prototype, "tagName", {
|
|
30995
|
-
// DOM Level 1 aliases
|
|
30996
|
-
/**
|
|
30997
|
-
* Same as {@link name}.
|
|
30998
|
-
* [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
|
|
30999
|
-
*/
|
|
31000
|
-
get: function() {
|
|
31001
|
-
return this.name;
|
|
31002
|
-
},
|
|
31003
|
-
set: function(name) {
|
|
31004
|
-
this.name = name;
|
|
31005
|
-
},
|
|
31006
|
-
enumerable: false,
|
|
31007
|
-
configurable: true
|
|
31008
|
-
});
|
|
31009
|
-
Object.defineProperty(Element2.prototype, "attributes", {
|
|
31010
|
-
get: function() {
|
|
31011
|
-
var _this = this;
|
|
31012
|
-
return Object.keys(this.attribs).map(function(name) {
|
|
31013
|
-
var _a2, _b2;
|
|
31014
|
-
return {
|
|
31015
|
-
name,
|
|
31016
|
-
value: _this.attribs[name],
|
|
31017
|
-
namespace: (_a2 = _this["x-attribsNamespace"]) === null || _a2 === void 0 ? void 0 : _a2[name],
|
|
31018
|
-
prefix: (_b2 = _this["x-attribsPrefix"]) === null || _b2 === void 0 ? void 0 : _b2[name]
|
|
31019
|
-
};
|
|
31020
|
-
});
|
|
31021
|
-
},
|
|
31022
|
-
enumerable: false,
|
|
31023
|
-
configurable: true
|
|
31024
|
-
});
|
|
31025
|
-
return Element2;
|
|
31026
|
-
}(NodeWithChildren)
|
|
31027
|
-
);
|
|
31028
|
-
node.Element = Element$2;
|
|
31029
|
-
function isTag(node2) {
|
|
31030
|
-
return (0, domelementtype_1.isTag)(node2);
|
|
31031
|
-
}
|
|
31032
|
-
node.isTag = isTag;
|
|
31033
|
-
function isCDATA(node2) {
|
|
31034
|
-
return node2.type === domelementtype_1.ElementType.CDATA;
|
|
31035
|
-
}
|
|
31036
|
-
node.isCDATA = isCDATA;
|
|
31037
|
-
function isText(node2) {
|
|
31038
|
-
return node2.type === domelementtype_1.ElementType.Text;
|
|
31039
|
-
}
|
|
31040
|
-
node.isText = isText;
|
|
31041
|
-
function isComment(node2) {
|
|
31042
|
-
return node2.type === domelementtype_1.ElementType.Comment;
|
|
31043
|
-
}
|
|
31044
|
-
node.isComment = isComment;
|
|
31045
|
-
function isDirective(node2) {
|
|
31046
|
-
return node2.type === domelementtype_1.ElementType.Directive;
|
|
31047
|
-
}
|
|
31048
|
-
node.isDirective = isDirective;
|
|
31049
|
-
function isDocument(node2) {
|
|
31050
|
-
return node2.type === domelementtype_1.ElementType.Root;
|
|
31051
|
-
}
|
|
31052
|
-
node.isDocument = isDocument;
|
|
31053
|
-
function hasChildren$1(node2) {
|
|
31054
|
-
return Object.prototype.hasOwnProperty.call(node2, "children");
|
|
31055
|
-
}
|
|
31056
|
-
node.hasChildren = hasChildren$1;
|
|
31057
|
-
function cloneNode(node2, recursive) {
|
|
31058
|
-
if (recursive === void 0) {
|
|
31059
|
-
recursive = false;
|
|
31060
|
-
}
|
|
31061
|
-
var result;
|
|
31062
|
-
if (isText(node2)) {
|
|
31063
|
-
result = new Text$2(node2.data);
|
|
31064
|
-
} else if (isComment(node2)) {
|
|
31065
|
-
result = new Comment$1(node2.data);
|
|
31066
|
-
} else if (isTag(node2)) {
|
|
31067
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31068
|
-
var clone_1 = new Element$2(node2.name, __assign({}, node2.attribs), children);
|
|
31069
|
-
children.forEach(function(child) {
|
|
31070
|
-
return child.parent = clone_1;
|
|
31071
|
-
});
|
|
31072
|
-
if (node2.namespace != null) {
|
|
31073
|
-
clone_1.namespace = node2.namespace;
|
|
31074
|
-
}
|
|
31075
|
-
if (node2["x-attribsNamespace"]) {
|
|
31076
|
-
clone_1["x-attribsNamespace"] = __assign({}, node2["x-attribsNamespace"]);
|
|
31077
|
-
}
|
|
31078
|
-
if (node2["x-attribsPrefix"]) {
|
|
31079
|
-
clone_1["x-attribsPrefix"] = __assign({}, node2["x-attribsPrefix"]);
|
|
31080
|
-
}
|
|
31081
|
-
result = clone_1;
|
|
31082
|
-
} else if (isCDATA(node2)) {
|
|
31083
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31084
|
-
var clone_2 = new CDATA(children);
|
|
31085
|
-
children.forEach(function(child) {
|
|
31086
|
-
return child.parent = clone_2;
|
|
31087
|
-
});
|
|
31088
|
-
result = clone_2;
|
|
31089
|
-
} else if (isDocument(node2)) {
|
|
31090
|
-
var children = recursive ? cloneChildren(node2.children) : [];
|
|
31091
|
-
var clone_3 = new Document(children);
|
|
31092
|
-
children.forEach(function(child) {
|
|
31093
|
-
return child.parent = clone_3;
|
|
31094
|
-
});
|
|
31095
|
-
if (node2["x-mode"]) {
|
|
31096
|
-
clone_3["x-mode"] = node2["x-mode"];
|
|
31097
|
-
}
|
|
31098
|
-
result = clone_3;
|
|
31099
|
-
} else if (isDirective(node2)) {
|
|
31100
|
-
var instruction = new ProcessingInstruction$1(node2.name, node2.data);
|
|
31101
|
-
if (node2["x-name"] != null) {
|
|
31102
|
-
instruction["x-name"] = node2["x-name"];
|
|
31103
|
-
instruction["x-publicId"] = node2["x-publicId"];
|
|
31104
|
-
instruction["x-systemId"] = node2["x-systemId"];
|
|
31105
|
-
}
|
|
31106
|
-
result = instruction;
|
|
31107
|
-
} else {
|
|
31108
|
-
throw new Error("Not implemented yet: ".concat(node2.type));
|
|
31109
|
-
}
|
|
31110
|
-
result.startIndex = node2.startIndex;
|
|
31111
|
-
result.endIndex = node2.endIndex;
|
|
31112
|
-
if (node2.sourceCodeLocation != null) {
|
|
31113
|
-
result.sourceCodeLocation = node2.sourceCodeLocation;
|
|
31114
|
-
}
|
|
31115
|
-
return result;
|
|
31116
|
-
}
|
|
31117
|
-
node.cloneNode = cloneNode;
|
|
31118
|
-
function cloneChildren(childs) {
|
|
31119
|
-
var children = childs.map(function(child) {
|
|
31120
|
-
return cloneNode(child, true);
|
|
31121
|
-
});
|
|
31122
|
-
for (var i2 = 1; i2 < children.length; i2++) {
|
|
31123
|
-
children[i2].prev = children[i2 - 1];
|
|
31124
|
-
children[i2 - 1].next = children[i2];
|
|
31125
|
-
}
|
|
31126
|
-
return children;
|
|
31127
|
-
}
|
|
31128
|
-
(function(exports) {
|
|
31129
|
-
var __createBinding = commonjsGlobal && commonjsGlobal.__createBinding || (Object.create ? function(o2, m2, k2, k22) {
|
|
31130
|
-
if (k22 === void 0)
|
|
31131
|
-
k22 = k2;
|
|
31132
|
-
var desc = Object.getOwnPropertyDescriptor(m2, k2);
|
|
31133
|
-
if (!desc || ("get" in desc ? !m2.__esModule : desc.writable || desc.configurable)) {
|
|
31134
|
-
desc = { enumerable: true, get: function() {
|
|
31135
|
-
return m2[k2];
|
|
31136
|
-
} };
|
|
31137
|
-
}
|
|
31138
|
-
Object.defineProperty(o2, k22, desc);
|
|
31139
|
-
} : function(o2, m2, k2, k22) {
|
|
31140
|
-
if (k22 === void 0)
|
|
31141
|
-
k22 = k2;
|
|
31142
|
-
o2[k22] = m2[k2];
|
|
31143
|
-
});
|
|
31144
|
-
var __exportStar = commonjsGlobal && commonjsGlobal.__exportStar || function(m2, exports2) {
|
|
31145
|
-
for (var p2 in m2)
|
|
31146
|
-
if (p2 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p2))
|
|
31147
|
-
__createBinding(exports2, m2, p2);
|
|
31148
|
-
};
|
|
31149
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31150
|
-
exports.DomHandler = void 0;
|
|
31151
|
-
var domelementtype_12 = lib$2;
|
|
31152
|
-
var node_js_1 = node;
|
|
31153
|
-
__exportStar(node, exports);
|
|
31154
|
-
var defaultOpts = {
|
|
31155
|
-
withStartIndices: false,
|
|
31156
|
-
withEndIndices: false,
|
|
31157
|
-
xmlMode: false
|
|
31158
|
-
};
|
|
31159
|
-
var DomHandler = (
|
|
31160
|
-
/** @class */
|
|
31161
|
-
function() {
|
|
31162
|
-
function DomHandler2(callback, options, elementCB) {
|
|
31163
|
-
this.dom = [];
|
|
31164
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31165
|
-
this.done = false;
|
|
31166
|
-
this.tagStack = [this.root];
|
|
31167
|
-
this.lastNode = null;
|
|
31168
|
-
this.parser = null;
|
|
31169
|
-
if (typeof options === "function") {
|
|
31170
|
-
elementCB = options;
|
|
31171
|
-
options = defaultOpts;
|
|
31172
|
-
}
|
|
31173
|
-
if (typeof callback === "object") {
|
|
31174
|
-
options = callback;
|
|
31175
|
-
callback = void 0;
|
|
31176
|
-
}
|
|
31177
|
-
this.callback = callback !== null && callback !== void 0 ? callback : null;
|
|
31178
|
-
this.options = options !== null && options !== void 0 ? options : defaultOpts;
|
|
31179
|
-
this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;
|
|
31180
|
-
}
|
|
31181
|
-
DomHandler2.prototype.onparserinit = function(parser) {
|
|
31182
|
-
this.parser = parser;
|
|
31183
|
-
};
|
|
31184
|
-
DomHandler2.prototype.onreset = function() {
|
|
31185
|
-
this.dom = [];
|
|
31186
|
-
this.root = new node_js_1.Document(this.dom);
|
|
31187
|
-
this.done = false;
|
|
31188
|
-
this.tagStack = [this.root];
|
|
31189
|
-
this.lastNode = null;
|
|
31190
|
-
this.parser = null;
|
|
31191
|
-
};
|
|
31192
|
-
DomHandler2.prototype.onend = function() {
|
|
31193
|
-
if (this.done)
|
|
31194
|
-
return;
|
|
31195
|
-
this.done = true;
|
|
31196
|
-
this.parser = null;
|
|
31197
|
-
this.handleCallback(null);
|
|
31198
|
-
};
|
|
31199
|
-
DomHandler2.prototype.onerror = function(error) {
|
|
31200
|
-
this.handleCallback(error);
|
|
31201
|
-
};
|
|
31202
|
-
DomHandler2.prototype.onclosetag = function() {
|
|
31203
|
-
this.lastNode = null;
|
|
31204
|
-
var elem = this.tagStack.pop();
|
|
31205
|
-
if (this.options.withEndIndices) {
|
|
31206
|
-
elem.endIndex = this.parser.endIndex;
|
|
31207
|
-
}
|
|
31208
|
-
if (this.elementCB)
|
|
31209
|
-
this.elementCB(elem);
|
|
31210
|
-
};
|
|
31211
|
-
DomHandler2.prototype.onopentag = function(name, attribs) {
|
|
31212
|
-
var type2 = this.options.xmlMode ? domelementtype_12.ElementType.Tag : void 0;
|
|
31213
|
-
var element = new node_js_1.Element(name, attribs, void 0, type2);
|
|
31214
|
-
this.addNode(element);
|
|
31215
|
-
this.tagStack.push(element);
|
|
31216
|
-
};
|
|
31217
|
-
DomHandler2.prototype.ontext = function(data) {
|
|
31218
|
-
var lastNode = this.lastNode;
|
|
31219
|
-
if (lastNode && lastNode.type === domelementtype_12.ElementType.Text) {
|
|
31220
|
-
lastNode.data += data;
|
|
31221
|
-
if (this.options.withEndIndices) {
|
|
31222
|
-
lastNode.endIndex = this.parser.endIndex;
|
|
31223
|
-
}
|
|
31224
|
-
} else {
|
|
31225
|
-
var node2 = new node_js_1.Text(data);
|
|
31226
|
-
this.addNode(node2);
|
|
31227
|
-
this.lastNode = node2;
|
|
31228
|
-
}
|
|
31229
|
-
};
|
|
31230
|
-
DomHandler2.prototype.oncomment = function(data) {
|
|
31231
|
-
if (this.lastNode && this.lastNode.type === domelementtype_12.ElementType.Comment) {
|
|
31232
|
-
this.lastNode.data += data;
|
|
31233
|
-
return;
|
|
31234
|
-
}
|
|
31235
|
-
var node2 = new node_js_1.Comment(data);
|
|
31236
|
-
this.addNode(node2);
|
|
31237
|
-
this.lastNode = node2;
|
|
31238
|
-
};
|
|
31239
|
-
DomHandler2.prototype.oncommentend = function() {
|
|
31240
|
-
this.lastNode = null;
|
|
31241
|
-
};
|
|
31242
|
-
DomHandler2.prototype.oncdatastart = function() {
|
|
31243
|
-
var text = new node_js_1.Text("");
|
|
31244
|
-
var node2 = new node_js_1.CDATA([text]);
|
|
31245
|
-
this.addNode(node2);
|
|
31246
|
-
text.parent = node2;
|
|
31247
|
-
this.lastNode = text;
|
|
31248
|
-
};
|
|
31249
|
-
DomHandler2.prototype.oncdataend = function() {
|
|
31250
|
-
this.lastNode = null;
|
|
31251
|
-
};
|
|
31252
|
-
DomHandler2.prototype.onprocessinginstruction = function(name, data) {
|
|
31253
|
-
var node2 = new node_js_1.ProcessingInstruction(name, data);
|
|
31254
|
-
this.addNode(node2);
|
|
31255
|
-
};
|
|
31256
|
-
DomHandler2.prototype.handleCallback = function(error) {
|
|
31257
|
-
if (typeof this.callback === "function") {
|
|
31258
|
-
this.callback(error, this.dom);
|
|
31259
|
-
} else if (error) {
|
|
31260
|
-
throw error;
|
|
31261
|
-
}
|
|
31262
|
-
};
|
|
31263
|
-
DomHandler2.prototype.addNode = function(node2) {
|
|
31264
|
-
var parent = this.tagStack[this.tagStack.length - 1];
|
|
31265
|
-
var previousSibling = parent.children[parent.children.length - 1];
|
|
31266
|
-
if (this.options.withStartIndices) {
|
|
31267
|
-
node2.startIndex = this.parser.startIndex;
|
|
31268
|
-
}
|
|
31269
|
-
if (this.options.withEndIndices) {
|
|
31270
|
-
node2.endIndex = this.parser.endIndex;
|
|
31271
|
-
}
|
|
31272
|
-
parent.children.push(node2);
|
|
31273
|
-
if (previousSibling) {
|
|
31274
|
-
node2.prev = previousSibling;
|
|
31275
|
-
previousSibling.next = node2;
|
|
31276
|
-
}
|
|
31277
|
-
node2.parent = parent;
|
|
31278
|
-
this.lastNode = null;
|
|
31279
|
-
};
|
|
31280
|
-
return DomHandler2;
|
|
31281
|
-
}()
|
|
31282
|
-
);
|
|
31283
|
-
exports.DomHandler = DomHandler;
|
|
31284
|
-
exports.default = DomHandler;
|
|
31285
|
-
})(lib$3);
|
|
31286
|
-
var HTML = "html";
|
|
31287
|
-
var HEAD$1 = "head";
|
|
31288
|
-
var BODY = "body";
|
|
31289
|
-
var FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/;
|
|
31290
|
-
var HEAD_TAG_REGEX = /<head[^]*>/i;
|
|
31291
|
-
var BODY_TAG_REGEX = /<body[^]*>/i;
|
|
31292
|
-
var parseFromDocument = function() {
|
|
31293
|
-
throw new Error(
|
|
31294
|
-
"This browser does not support `document.implementation.createHTMLDocument`"
|
|
31295
|
-
);
|
|
31296
|
-
};
|
|
31297
|
-
var parseFromString = function() {
|
|
31298
|
-
throw new Error(
|
|
31299
|
-
"This browser does not support `DOMParser.prototype.parseFromString`"
|
|
31300
|
-
);
|
|
31301
|
-
};
|
|
31302
|
-
var DOMParser$1 = typeof window === "object" && window.DOMParser;
|
|
31303
|
-
if (typeof DOMParser$1 === "function") {
|
|
31304
|
-
var domParser = new DOMParser$1();
|
|
31305
|
-
var mimeType = "text/html";
|
|
31306
|
-
parseFromString = function(html, tagName2) {
|
|
31307
|
-
if (tagName2) {
|
|
31308
|
-
html = "<" + tagName2 + ">" + html + "</" + tagName2 + ">";
|
|
31309
|
-
}
|
|
31310
|
-
return domParser.parseFromString(html, mimeType);
|
|
31311
|
-
};
|
|
31312
|
-
parseFromDocument = parseFromString;
|
|
31313
|
-
}
|
|
31314
|
-
if (typeof document === "object" && document.implementation) {
|
|
31315
|
-
var doc = document.implementation.createHTMLDocument();
|
|
31316
|
-
parseFromDocument = function(html, tagName2) {
|
|
31317
|
-
if (tagName2) {
|
|
31318
|
-
var element = doc.documentElement.querySelector(tagName2);
|
|
31319
|
-
element.innerHTML = html;
|
|
31320
|
-
return doc;
|
|
31321
|
-
}
|
|
31322
|
-
doc.documentElement.innerHTML = html;
|
|
31323
|
-
return doc;
|
|
31324
|
-
};
|
|
31325
|
-
}
|
|
31326
|
-
var template = typeof document === "object" ? document.createElement("template") : {};
|
|
31327
|
-
var parseFromTemplate;
|
|
31328
|
-
if (template.content) {
|
|
31329
|
-
parseFromTemplate = function(html) {
|
|
31330
|
-
template.innerHTML = html;
|
|
31331
|
-
return template.content.childNodes;
|
|
31332
|
-
};
|
|
31333
|
-
}
|
|
31334
|
-
function domparser$1(html) {
|
|
31335
|
-
var firstTagName;
|
|
31336
|
-
var match = html.match(FIRST_TAG_REGEX);
|
|
31337
|
-
if (match && match[1]) {
|
|
31338
|
-
firstTagName = match[1].toLowerCase();
|
|
31339
|
-
}
|
|
31340
|
-
var doc;
|
|
31341
|
-
var element;
|
|
31342
|
-
var elements;
|
|
31343
|
-
switch (firstTagName) {
|
|
31344
|
-
case HTML:
|
|
31345
|
-
doc = parseFromString(html);
|
|
31346
|
-
if (!HEAD_TAG_REGEX.test(html)) {
|
|
31347
|
-
element = doc.querySelector(HEAD$1);
|
|
31348
|
-
if (element) {
|
|
31349
|
-
element.parentNode.removeChild(element);
|
|
31350
|
-
}
|
|
31351
|
-
}
|
|
31352
|
-
if (!BODY_TAG_REGEX.test(html)) {
|
|
31353
|
-
element = doc.querySelector(BODY);
|
|
31354
|
-
if (element) {
|
|
31355
|
-
element.parentNode.removeChild(element);
|
|
31356
|
-
}
|
|
31357
|
-
}
|
|
31358
|
-
return doc.querySelectorAll(HTML);
|
|
31359
|
-
case HEAD$1:
|
|
31360
|
-
case BODY:
|
|
31361
|
-
doc = parseFromDocument(html);
|
|
31362
|
-
elements = doc.querySelectorAll(firstTagName);
|
|
31363
|
-
if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {
|
|
31364
|
-
return elements[0].parentNode.childNodes;
|
|
31365
|
-
}
|
|
31366
|
-
return elements;
|
|
31367
|
-
default:
|
|
31368
|
-
if (parseFromTemplate) {
|
|
31369
|
-
return parseFromTemplate(html);
|
|
31370
|
-
}
|
|
31371
|
-
element = parseFromDocument(html, BODY).querySelector(BODY);
|
|
31372
|
-
return element.childNodes;
|
|
31373
|
-
}
|
|
31374
|
-
}
|
|
31375
|
-
var domparser_1 = domparser$1;
|
|
31376
|
-
var utilities$5 = {};
|
|
31377
|
-
var constants$1 = {};
|
|
31378
|
-
constants$1.CASE_SENSITIVE_TAG_NAMES = [
|
|
31379
|
-
"animateMotion",
|
|
31380
|
-
"animateTransform",
|
|
31381
|
-
"clipPath",
|
|
31382
|
-
"feBlend",
|
|
31383
|
-
"feColorMatrix",
|
|
31384
|
-
"feComponentTransfer",
|
|
31385
|
-
"feComposite",
|
|
31386
|
-
"feConvolveMatrix",
|
|
31387
|
-
"feDiffuseLighting",
|
|
31388
|
-
"feDisplacementMap",
|
|
31389
|
-
"feDropShadow",
|
|
31390
|
-
"feFlood",
|
|
31391
|
-
"feFuncA",
|
|
31392
|
-
"feFuncB",
|
|
31393
|
-
"feFuncG",
|
|
31394
|
-
"feFuncR",
|
|
31395
|
-
"feGaussianBlur",
|
|
31396
|
-
"feImage",
|
|
31397
|
-
"feMerge",
|
|
31398
|
-
"feMergeNode",
|
|
31399
|
-
"feMorphology",
|
|
31400
|
-
"feOffset",
|
|
31401
|
-
"fePointLight",
|
|
31402
|
-
"feSpecularLighting",
|
|
31403
|
-
"feSpotLight",
|
|
31404
|
-
"feTile",
|
|
31405
|
-
"feTurbulence",
|
|
31406
|
-
"foreignObject",
|
|
31407
|
-
"linearGradient",
|
|
31408
|
-
"radialGradient",
|
|
31409
|
-
"textPath"
|
|
31410
|
-
];
|
|
31411
|
-
var domhandler$1 = lib$3;
|
|
31412
|
-
var constants = constants$1;
|
|
31413
|
-
var CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;
|
|
31414
|
-
var Comment = domhandler$1.Comment;
|
|
31415
|
-
var Element$1 = domhandler$1.Element;
|
|
31416
|
-
var ProcessingInstruction = domhandler$1.ProcessingInstruction;
|
|
31417
|
-
var Text$1 = domhandler$1.Text;
|
|
31418
|
-
var caseSensitiveTagNamesMap = {};
|
|
31419
|
-
var tagName;
|
|
31420
|
-
for (var i$1 = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i$1 < len; i$1++) {
|
|
31421
|
-
tagName = CASE_SENSITIVE_TAG_NAMES[i$1];
|
|
31422
|
-
caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;
|
|
31423
|
-
}
|
|
31424
|
-
function getCaseSensitiveTagName(tagName2) {
|
|
31425
|
-
return caseSensitiveTagNamesMap[tagName2];
|
|
31426
|
-
}
|
|
31427
|
-
function formatAttributes(attributes) {
|
|
31428
|
-
var result = {};
|
|
31429
|
-
var attribute;
|
|
31430
|
-
for (var i2 = 0, len = attributes.length; i2 < len; i2++) {
|
|
31431
|
-
attribute = attributes[i2];
|
|
31432
|
-
result[attribute.name] = attribute.value;
|
|
31433
|
-
}
|
|
31434
|
-
return result;
|
|
31435
|
-
}
|
|
31436
|
-
function formatTagName(tagName2) {
|
|
31437
|
-
tagName2 = tagName2.toLowerCase();
|
|
31438
|
-
var caseSensitiveTagName = getCaseSensitiveTagName(tagName2);
|
|
31439
|
-
if (caseSensitiveTagName) {
|
|
31440
|
-
return caseSensitiveTagName;
|
|
31441
|
-
}
|
|
31442
|
-
return tagName2;
|
|
31443
|
-
}
|
|
31444
|
-
function formatDOM$1(nodes, parent, directive) {
|
|
31445
|
-
parent = parent || null;
|
|
31446
|
-
var result = [];
|
|
31447
|
-
var tagName2;
|
|
31448
|
-
for (var index2 = 0, len = nodes.length; index2 < len; index2++) {
|
|
31449
|
-
var node2 = nodes[index2];
|
|
31450
|
-
var current;
|
|
31451
|
-
switch (node2.nodeType) {
|
|
31452
|
-
case 1:
|
|
31453
|
-
tagName2 = formatTagName(node2.nodeName);
|
|
31454
|
-
current = new Element$1(tagName2, formatAttributes(node2.attributes));
|
|
31455
|
-
current.children = formatDOM$1(
|
|
31456
|
-
// template children are on content
|
|
31457
|
-
tagName2 === "template" ? node2.content.childNodes : node2.childNodes,
|
|
31458
|
-
current
|
|
31459
|
-
);
|
|
31460
|
-
break;
|
|
31461
|
-
case 3:
|
|
31462
|
-
current = new Text$1(node2.nodeValue);
|
|
31463
|
-
break;
|
|
31464
|
-
case 8:
|
|
31465
|
-
current = new Comment(node2.nodeValue);
|
|
31466
|
-
break;
|
|
31467
|
-
default:
|
|
31468
|
-
continue;
|
|
31469
|
-
}
|
|
31470
|
-
var prev = result[index2 - 1] || null;
|
|
31471
|
-
if (prev) {
|
|
31472
|
-
prev.next = current;
|
|
31473
|
-
}
|
|
31474
|
-
current.parent = parent;
|
|
31475
|
-
current.prev = prev;
|
|
31476
|
-
current.next = null;
|
|
31477
|
-
result.push(current);
|
|
31478
|
-
}
|
|
31479
|
-
if (directive) {
|
|
31480
|
-
current = new ProcessingInstruction(
|
|
31481
|
-
directive.substring(0, directive.indexOf(" ")).toLowerCase(),
|
|
31482
|
-
directive
|
|
31483
|
-
);
|
|
31484
|
-
current.next = result[0] || null;
|
|
31485
|
-
current.parent = parent;
|
|
31486
|
-
result.unshift(current);
|
|
31487
|
-
if (result[1]) {
|
|
31488
|
-
result[1].prev = result[0];
|
|
31489
|
-
}
|
|
31490
|
-
}
|
|
31491
|
-
return result;
|
|
31492
|
-
}
|
|
31493
|
-
utilities$5.formatAttributes = formatAttributes;
|
|
31494
|
-
utilities$5.formatDOM = formatDOM$1;
|
|
31495
|
-
var domparser = domparser_1;
|
|
31496
|
-
var utilities$4 = utilities$5;
|
|
31497
|
-
var formatDOM = utilities$4.formatDOM;
|
|
31498
|
-
var DIRECTIVE_REGEX = /<(![a-zA-Z\s]+)>/;
|
|
31499
|
-
function HTMLDOMParser(html) {
|
|
31500
|
-
if (typeof html !== "string") {
|
|
31501
|
-
throw new TypeError("First argument must be a string");
|
|
31502
|
-
}
|
|
31503
|
-
if (html === "") {
|
|
31504
|
-
return [];
|
|
31505
|
-
}
|
|
31506
|
-
var match = html.match(DIRECTIVE_REGEX);
|
|
31507
|
-
var directive;
|
|
31508
|
-
if (match && match[1]) {
|
|
31509
|
-
directive = match[1];
|
|
31510
|
-
}
|
|
31511
|
-
return formatDOM(domparser(html), null, directive);
|
|
31512
|
-
}
|
|
31513
|
-
var htmlToDom = HTMLDOMParser;
|
|
31514
|
-
var lib$1 = {};
|
|
31515
|
-
var possibleStandardNamesOptimized$1 = {};
|
|
31516
|
-
var SAME$1 = 0;
|
|
31517
|
-
possibleStandardNamesOptimized$1.SAME = SAME$1;
|
|
31518
|
-
var CAMELCASE$1 = 1;
|
|
31519
|
-
possibleStandardNamesOptimized$1.CAMELCASE = CAMELCASE$1;
|
|
31520
|
-
possibleStandardNamesOptimized$1.possibleStandardNames = {
|
|
31521
|
-
accept: 0,
|
|
31522
|
-
acceptCharset: 1,
|
|
31523
|
-
"accept-charset": "acceptCharset",
|
|
31524
|
-
accessKey: 1,
|
|
31525
|
-
action: 0,
|
|
31526
|
-
allowFullScreen: 1,
|
|
31527
|
-
alt: 0,
|
|
31528
|
-
as: 0,
|
|
31529
|
-
async: 0,
|
|
31530
|
-
autoCapitalize: 1,
|
|
31531
|
-
autoComplete: 1,
|
|
31532
|
-
autoCorrect: 1,
|
|
31533
|
-
autoFocus: 1,
|
|
31534
|
-
autoPlay: 1,
|
|
31535
|
-
autoSave: 1,
|
|
31536
|
-
capture: 0,
|
|
31537
|
-
cellPadding: 1,
|
|
31538
|
-
cellSpacing: 1,
|
|
31539
|
-
challenge: 0,
|
|
31540
|
-
charSet: 1,
|
|
31541
|
-
checked: 0,
|
|
31542
|
-
children: 0,
|
|
31543
|
-
cite: 0,
|
|
31544
|
-
class: "className",
|
|
31545
|
-
classID: 1,
|
|
31546
|
-
className: 1,
|
|
31547
|
-
cols: 0,
|
|
31548
|
-
colSpan: 1,
|
|
31549
|
-
content: 0,
|
|
31550
|
-
contentEditable: 1,
|
|
31551
|
-
contextMenu: 1,
|
|
31552
|
-
controls: 0,
|
|
31553
|
-
controlsList: 1,
|
|
31554
|
-
coords: 0,
|
|
31555
|
-
crossOrigin: 1,
|
|
31556
|
-
dangerouslySetInnerHTML: 1,
|
|
31557
|
-
data: 0,
|
|
31558
|
-
dateTime: 1,
|
|
31559
|
-
default: 0,
|
|
31560
|
-
defaultChecked: 1,
|
|
31561
|
-
defaultValue: 1,
|
|
31562
|
-
defer: 0,
|
|
31563
|
-
dir: 0,
|
|
31564
|
-
disabled: 0,
|
|
31565
|
-
disablePictureInPicture: 1,
|
|
31566
|
-
disableRemotePlayback: 1,
|
|
31567
|
-
download: 0,
|
|
31568
|
-
draggable: 0,
|
|
31569
|
-
encType: 1,
|
|
31570
|
-
enterKeyHint: 1,
|
|
31571
|
-
for: "htmlFor",
|
|
31572
|
-
form: 0,
|
|
31573
|
-
formMethod: 1,
|
|
31574
|
-
formAction: 1,
|
|
31575
|
-
formEncType: 1,
|
|
31576
|
-
formNoValidate: 1,
|
|
31577
|
-
formTarget: 1,
|
|
31578
|
-
frameBorder: 1,
|
|
31579
|
-
headers: 0,
|
|
31580
|
-
height: 0,
|
|
31581
|
-
hidden: 0,
|
|
31582
|
-
high: 0,
|
|
31583
|
-
href: 0,
|
|
31584
|
-
hrefLang: 1,
|
|
31585
|
-
htmlFor: 1,
|
|
31586
|
-
httpEquiv: 1,
|
|
31587
|
-
"http-equiv": "httpEquiv",
|
|
31588
|
-
icon: 0,
|
|
31589
|
-
id: 0,
|
|
31590
|
-
innerHTML: 1,
|
|
31591
|
-
inputMode: 1,
|
|
31592
|
-
integrity: 0,
|
|
31593
|
-
is: 0,
|
|
31594
|
-
itemID: 1,
|
|
31595
|
-
itemProp: 1,
|
|
31596
|
-
itemRef: 1,
|
|
31597
|
-
itemScope: 1,
|
|
31598
|
-
itemType: 1,
|
|
31599
|
-
keyParams: 1,
|
|
31600
|
-
keyType: 1,
|
|
31601
|
-
kind: 0,
|
|
31602
|
-
label: 0,
|
|
31603
|
-
lang: 0,
|
|
31604
|
-
list: 0,
|
|
31605
|
-
loop: 0,
|
|
31606
|
-
low: 0,
|
|
31607
|
-
manifest: 0,
|
|
31608
|
-
marginWidth: 1,
|
|
31609
|
-
marginHeight: 1,
|
|
31610
|
-
max: 0,
|
|
31611
|
-
maxLength: 1,
|
|
31612
|
-
media: 0,
|
|
31613
|
-
mediaGroup: 1,
|
|
31614
|
-
method: 0,
|
|
31615
|
-
min: 0,
|
|
31616
|
-
minLength: 1,
|
|
31617
|
-
multiple: 0,
|
|
31618
|
-
muted: 0,
|
|
31619
|
-
name: 0,
|
|
31620
|
-
noModule: 1,
|
|
31621
|
-
nonce: 0,
|
|
31622
|
-
noValidate: 1,
|
|
31623
|
-
open: 0,
|
|
31624
|
-
optimum: 0,
|
|
31625
|
-
pattern: 0,
|
|
31626
|
-
placeholder: 0,
|
|
31627
|
-
playsInline: 1,
|
|
31628
|
-
poster: 0,
|
|
31629
|
-
preload: 0,
|
|
31630
|
-
profile: 0,
|
|
31631
|
-
radioGroup: 1,
|
|
31632
|
-
readOnly: 1,
|
|
31633
|
-
referrerPolicy: 1,
|
|
31634
|
-
rel: 0,
|
|
31635
|
-
required: 0,
|
|
31636
|
-
reversed: 0,
|
|
31637
|
-
role: 0,
|
|
31638
|
-
rows: 0,
|
|
31639
|
-
rowSpan: 1,
|
|
31640
|
-
sandbox: 0,
|
|
31641
|
-
scope: 0,
|
|
31642
|
-
scoped: 0,
|
|
31643
|
-
scrolling: 0,
|
|
31644
|
-
seamless: 0,
|
|
31645
|
-
selected: 0,
|
|
31646
|
-
shape: 0,
|
|
31647
|
-
size: 0,
|
|
31648
|
-
sizes: 0,
|
|
31649
|
-
span: 0,
|
|
31650
|
-
spellCheck: 1,
|
|
31651
|
-
src: 0,
|
|
31652
|
-
srcDoc: 1,
|
|
31653
|
-
srcLang: 1,
|
|
31654
|
-
srcSet: 1,
|
|
31655
|
-
start: 0,
|
|
31656
|
-
step: 0,
|
|
31657
|
-
style: 0,
|
|
31658
|
-
summary: 0,
|
|
31659
|
-
tabIndex: 1,
|
|
31660
|
-
target: 0,
|
|
31661
|
-
title: 0,
|
|
31662
|
-
type: 0,
|
|
31663
|
-
useMap: 1,
|
|
31664
|
-
value: 0,
|
|
31665
|
-
width: 0,
|
|
31666
|
-
wmode: 0,
|
|
31667
|
-
wrap: 0,
|
|
31668
|
-
about: 0,
|
|
31669
|
-
accentHeight: 1,
|
|
31670
|
-
"accent-height": "accentHeight",
|
|
31671
|
-
accumulate: 0,
|
|
31672
|
-
additive: 0,
|
|
31673
|
-
alignmentBaseline: 1,
|
|
31674
|
-
"alignment-baseline": "alignmentBaseline",
|
|
31675
|
-
allowReorder: 1,
|
|
31676
|
-
alphabetic: 0,
|
|
31677
|
-
amplitude: 0,
|
|
31678
|
-
arabicForm: 1,
|
|
31679
|
-
"arabic-form": "arabicForm",
|
|
31680
|
-
ascent: 0,
|
|
31681
|
-
attributeName: 1,
|
|
31682
|
-
attributeType: 1,
|
|
31683
|
-
autoReverse: 1,
|
|
31684
|
-
azimuth: 0,
|
|
31685
|
-
baseFrequency: 1,
|
|
31686
|
-
baselineShift: 1,
|
|
31687
|
-
"baseline-shift": "baselineShift",
|
|
31688
|
-
baseProfile: 1,
|
|
31689
|
-
bbox: 0,
|
|
31690
|
-
begin: 0,
|
|
31691
|
-
bias: 0,
|
|
31692
|
-
by: 0,
|
|
31693
|
-
calcMode: 1,
|
|
31694
|
-
capHeight: 1,
|
|
31695
|
-
"cap-height": "capHeight",
|
|
31696
|
-
clip: 0,
|
|
31697
|
-
clipPath: 1,
|
|
31698
|
-
"clip-path": "clipPath",
|
|
31699
|
-
clipPathUnits: 1,
|
|
31700
|
-
clipRule: 1,
|
|
31701
|
-
"clip-rule": "clipRule",
|
|
31702
|
-
color: 0,
|
|
31703
|
-
colorInterpolation: 1,
|
|
31704
|
-
"color-interpolation": "colorInterpolation",
|
|
31705
|
-
colorInterpolationFilters: 1,
|
|
31706
|
-
"color-interpolation-filters": "colorInterpolationFilters",
|
|
31707
|
-
colorProfile: 1,
|
|
31708
|
-
"color-profile": "colorProfile",
|
|
31709
|
-
colorRendering: 1,
|
|
31710
|
-
"color-rendering": "colorRendering",
|
|
31711
|
-
contentScriptType: 1,
|
|
31712
|
-
contentStyleType: 1,
|
|
31713
|
-
cursor: 0,
|
|
31714
|
-
cx: 0,
|
|
31715
|
-
cy: 0,
|
|
31716
|
-
d: 0,
|
|
31717
|
-
datatype: 0,
|
|
31718
|
-
decelerate: 0,
|
|
31719
|
-
descent: 0,
|
|
31720
|
-
diffuseConstant: 1,
|
|
31721
|
-
direction: 0,
|
|
31722
|
-
display: 0,
|
|
31723
|
-
divisor: 0,
|
|
31724
|
-
dominantBaseline: 1,
|
|
31725
|
-
"dominant-baseline": "dominantBaseline",
|
|
31726
|
-
dur: 0,
|
|
31727
|
-
dx: 0,
|
|
31728
|
-
dy: 0,
|
|
31729
|
-
edgeMode: 1,
|
|
31730
|
-
elevation: 0,
|
|
31731
|
-
enableBackground: 1,
|
|
31732
|
-
"enable-background": "enableBackground",
|
|
31733
|
-
end: 0,
|
|
31734
|
-
exponent: 0,
|
|
31735
|
-
externalResourcesRequired: 1,
|
|
31736
|
-
fill: 0,
|
|
31737
|
-
fillOpacity: 1,
|
|
31738
|
-
"fill-opacity": "fillOpacity",
|
|
31739
|
-
fillRule: 1,
|
|
31740
|
-
"fill-rule": "fillRule",
|
|
31741
|
-
filter: 0,
|
|
31742
|
-
filterRes: 1,
|
|
31743
|
-
filterUnits: 1,
|
|
31744
|
-
floodOpacity: 1,
|
|
31745
|
-
"flood-opacity": "floodOpacity",
|
|
31746
|
-
floodColor: 1,
|
|
31747
|
-
"flood-color": "floodColor",
|
|
31748
|
-
focusable: 0,
|
|
31749
|
-
fontFamily: 1,
|
|
31750
|
-
"font-family": "fontFamily",
|
|
31751
|
-
fontSize: 1,
|
|
31752
|
-
"font-size": "fontSize",
|
|
31753
|
-
fontSizeAdjust: 1,
|
|
31754
|
-
"font-size-adjust": "fontSizeAdjust",
|
|
31755
|
-
fontStretch: 1,
|
|
31756
|
-
"font-stretch": "fontStretch",
|
|
31757
|
-
fontStyle: 1,
|
|
31758
|
-
"font-style": "fontStyle",
|
|
31759
|
-
fontVariant: 1,
|
|
31760
|
-
"font-variant": "fontVariant",
|
|
31761
|
-
fontWeight: 1,
|
|
31762
|
-
"font-weight": "fontWeight",
|
|
31763
|
-
format: 0,
|
|
31764
|
-
from: 0,
|
|
31765
|
-
fx: 0,
|
|
31766
|
-
fy: 0,
|
|
31767
|
-
g1: 0,
|
|
31768
|
-
g2: 0,
|
|
31769
|
-
glyphName: 1,
|
|
31770
|
-
"glyph-name": "glyphName",
|
|
31771
|
-
glyphOrientationHorizontal: 1,
|
|
31772
|
-
"glyph-orientation-horizontal": "glyphOrientationHorizontal",
|
|
31773
|
-
glyphOrientationVertical: 1,
|
|
31774
|
-
"glyph-orientation-vertical": "glyphOrientationVertical",
|
|
31775
|
-
glyphRef: 1,
|
|
31776
|
-
gradientTransform: 1,
|
|
31777
|
-
gradientUnits: 1,
|
|
31778
|
-
hanging: 0,
|
|
31779
|
-
horizAdvX: 1,
|
|
31780
|
-
"horiz-adv-x": "horizAdvX",
|
|
31781
|
-
horizOriginX: 1,
|
|
31782
|
-
"horiz-origin-x": "horizOriginX",
|
|
31783
|
-
ideographic: 0,
|
|
31784
|
-
imageRendering: 1,
|
|
31785
|
-
"image-rendering": "imageRendering",
|
|
31786
|
-
in2: 0,
|
|
31787
|
-
in: 0,
|
|
31788
|
-
inlist: 0,
|
|
31789
|
-
intercept: 0,
|
|
31790
|
-
k1: 0,
|
|
31791
|
-
k2: 0,
|
|
31792
|
-
k3: 0,
|
|
31793
|
-
k4: 0,
|
|
31794
|
-
k: 0,
|
|
31795
|
-
kernelMatrix: 1,
|
|
31796
|
-
kernelUnitLength: 1,
|
|
31797
|
-
kerning: 0,
|
|
31798
|
-
keyPoints: 1,
|
|
31799
|
-
keySplines: 1,
|
|
31800
|
-
keyTimes: 1,
|
|
31801
|
-
lengthAdjust: 1,
|
|
31802
|
-
letterSpacing: 1,
|
|
31803
|
-
"letter-spacing": "letterSpacing",
|
|
31804
|
-
lightingColor: 1,
|
|
31805
|
-
"lighting-color": "lightingColor",
|
|
31806
|
-
limitingConeAngle: 1,
|
|
31807
|
-
local: 0,
|
|
31808
|
-
markerEnd: 1,
|
|
31809
|
-
"marker-end": "markerEnd",
|
|
31810
|
-
markerHeight: 1,
|
|
31811
|
-
markerMid: 1,
|
|
31812
|
-
"marker-mid": "markerMid",
|
|
31813
|
-
markerStart: 1,
|
|
31814
|
-
"marker-start": "markerStart",
|
|
31815
|
-
markerUnits: 1,
|
|
31816
|
-
markerWidth: 1,
|
|
31817
|
-
mask: 0,
|
|
31818
|
-
maskContentUnits: 1,
|
|
31819
|
-
maskUnits: 1,
|
|
31820
|
-
mathematical: 0,
|
|
31821
|
-
mode: 0,
|
|
31822
|
-
numOctaves: 1,
|
|
31823
|
-
offset: 0,
|
|
31824
|
-
opacity: 0,
|
|
31825
|
-
operator: 0,
|
|
31826
|
-
order: 0,
|
|
31827
|
-
orient: 0,
|
|
31828
|
-
orientation: 0,
|
|
31829
|
-
origin: 0,
|
|
31830
|
-
overflow: 0,
|
|
31831
|
-
overlinePosition: 1,
|
|
31832
|
-
"overline-position": "overlinePosition",
|
|
31833
|
-
overlineThickness: 1,
|
|
31834
|
-
"overline-thickness": "overlineThickness",
|
|
31835
|
-
paintOrder: 1,
|
|
31836
|
-
"paint-order": "paintOrder",
|
|
31837
|
-
panose1: 0,
|
|
31838
|
-
"panose-1": "panose1",
|
|
31839
|
-
pathLength: 1,
|
|
31840
|
-
patternContentUnits: 1,
|
|
31841
|
-
patternTransform: 1,
|
|
31842
|
-
patternUnits: 1,
|
|
31843
|
-
pointerEvents: 1,
|
|
31844
|
-
"pointer-events": "pointerEvents",
|
|
31845
|
-
points: 0,
|
|
31846
|
-
pointsAtX: 1,
|
|
31847
|
-
pointsAtY: 1,
|
|
31848
|
-
pointsAtZ: 1,
|
|
31849
|
-
prefix: 0,
|
|
31850
|
-
preserveAlpha: 1,
|
|
31851
|
-
preserveAspectRatio: 1,
|
|
31852
|
-
primitiveUnits: 1,
|
|
31853
|
-
property: 0,
|
|
31854
|
-
r: 0,
|
|
31855
|
-
radius: 0,
|
|
31856
|
-
refX: 1,
|
|
31857
|
-
refY: 1,
|
|
31858
|
-
renderingIntent: 1,
|
|
31859
|
-
"rendering-intent": "renderingIntent",
|
|
31860
|
-
repeatCount: 1,
|
|
31861
|
-
repeatDur: 1,
|
|
31862
|
-
requiredExtensions: 1,
|
|
31863
|
-
requiredFeatures: 1,
|
|
31864
|
-
resource: 0,
|
|
31865
|
-
restart: 0,
|
|
31866
|
-
result: 0,
|
|
31867
|
-
results: 0,
|
|
31868
|
-
rotate: 0,
|
|
31869
|
-
rx: 0,
|
|
31870
|
-
ry: 0,
|
|
31871
|
-
scale: 0,
|
|
31872
|
-
security: 0,
|
|
31873
|
-
seed: 0,
|
|
31874
|
-
shapeRendering: 1,
|
|
31875
|
-
"shape-rendering": "shapeRendering",
|
|
31876
|
-
slope: 0,
|
|
31877
|
-
spacing: 0,
|
|
31878
|
-
specularConstant: 1,
|
|
31879
|
-
specularExponent: 1,
|
|
31880
|
-
speed: 0,
|
|
31881
|
-
spreadMethod: 1,
|
|
31882
|
-
startOffset: 1,
|
|
31883
|
-
stdDeviation: 1,
|
|
31884
|
-
stemh: 0,
|
|
31885
|
-
stemv: 0,
|
|
31886
|
-
stitchTiles: 1,
|
|
31887
|
-
stopColor: 1,
|
|
31888
|
-
"stop-color": "stopColor",
|
|
31889
|
-
stopOpacity: 1,
|
|
31890
|
-
"stop-opacity": "stopOpacity",
|
|
31891
|
-
strikethroughPosition: 1,
|
|
31892
|
-
"strikethrough-position": "strikethroughPosition",
|
|
31893
|
-
strikethroughThickness: 1,
|
|
31894
|
-
"strikethrough-thickness": "strikethroughThickness",
|
|
31895
|
-
string: 0,
|
|
31896
|
-
stroke: 0,
|
|
31897
|
-
strokeDasharray: 1,
|
|
31898
|
-
"stroke-dasharray": "strokeDasharray",
|
|
31899
|
-
strokeDashoffset: 1,
|
|
31900
|
-
"stroke-dashoffset": "strokeDashoffset",
|
|
31901
|
-
strokeLinecap: 1,
|
|
31902
|
-
"stroke-linecap": "strokeLinecap",
|
|
31903
|
-
strokeLinejoin: 1,
|
|
31904
|
-
"stroke-linejoin": "strokeLinejoin",
|
|
31905
|
-
strokeMiterlimit: 1,
|
|
31906
|
-
"stroke-miterlimit": "strokeMiterlimit",
|
|
31907
|
-
strokeWidth: 1,
|
|
31908
|
-
"stroke-width": "strokeWidth",
|
|
31909
|
-
strokeOpacity: 1,
|
|
31910
|
-
"stroke-opacity": "strokeOpacity",
|
|
31911
|
-
suppressContentEditableWarning: 1,
|
|
31912
|
-
suppressHydrationWarning: 1,
|
|
31913
|
-
surfaceScale: 1,
|
|
31914
|
-
systemLanguage: 1,
|
|
31915
|
-
tableValues: 1,
|
|
31916
|
-
targetX: 1,
|
|
31917
|
-
targetY: 1,
|
|
31918
|
-
textAnchor: 1,
|
|
31919
|
-
"text-anchor": "textAnchor",
|
|
31920
|
-
textDecoration: 1,
|
|
31921
|
-
"text-decoration": "textDecoration",
|
|
31922
|
-
textLength: 1,
|
|
31923
|
-
textRendering: 1,
|
|
31924
|
-
"text-rendering": "textRendering",
|
|
31925
|
-
to: 0,
|
|
31926
|
-
transform: 0,
|
|
31927
|
-
typeof: 0,
|
|
31928
|
-
u1: 0,
|
|
31929
|
-
u2: 0,
|
|
31930
|
-
underlinePosition: 1,
|
|
31931
|
-
"underline-position": "underlinePosition",
|
|
31932
|
-
underlineThickness: 1,
|
|
31933
|
-
"underline-thickness": "underlineThickness",
|
|
31934
|
-
unicode: 0,
|
|
31935
|
-
unicodeBidi: 1,
|
|
31936
|
-
"unicode-bidi": "unicodeBidi",
|
|
31937
|
-
unicodeRange: 1,
|
|
31938
|
-
"unicode-range": "unicodeRange",
|
|
31939
|
-
unitsPerEm: 1,
|
|
31940
|
-
"units-per-em": "unitsPerEm",
|
|
31941
|
-
unselectable: 0,
|
|
31942
|
-
vAlphabetic: 1,
|
|
31943
|
-
"v-alphabetic": "vAlphabetic",
|
|
31944
|
-
values: 0,
|
|
31945
|
-
vectorEffect: 1,
|
|
31946
|
-
"vector-effect": "vectorEffect",
|
|
31947
|
-
version: 0,
|
|
31948
|
-
vertAdvY: 1,
|
|
31949
|
-
"vert-adv-y": "vertAdvY",
|
|
31950
|
-
vertOriginX: 1,
|
|
31951
|
-
"vert-origin-x": "vertOriginX",
|
|
31952
|
-
vertOriginY: 1,
|
|
31953
|
-
"vert-origin-y": "vertOriginY",
|
|
31954
|
-
vHanging: 1,
|
|
31955
|
-
"v-hanging": "vHanging",
|
|
31956
|
-
vIdeographic: 1,
|
|
31957
|
-
"v-ideographic": "vIdeographic",
|
|
31958
|
-
viewBox: 1,
|
|
31959
|
-
viewTarget: 1,
|
|
31960
|
-
visibility: 0,
|
|
31961
|
-
vMathematical: 1,
|
|
31962
|
-
"v-mathematical": "vMathematical",
|
|
31963
|
-
vocab: 0,
|
|
31964
|
-
widths: 0,
|
|
31965
|
-
wordSpacing: 1,
|
|
31966
|
-
"word-spacing": "wordSpacing",
|
|
31967
|
-
writingMode: 1,
|
|
31968
|
-
"writing-mode": "writingMode",
|
|
31969
|
-
x1: 0,
|
|
31970
|
-
x2: 0,
|
|
31971
|
-
x: 0,
|
|
31972
|
-
xChannelSelector: 1,
|
|
31973
|
-
xHeight: 1,
|
|
31974
|
-
"x-height": "xHeight",
|
|
31975
|
-
xlinkActuate: 1,
|
|
31976
|
-
"xlink:actuate": "xlinkActuate",
|
|
31977
|
-
xlinkArcrole: 1,
|
|
31978
|
-
"xlink:arcrole": "xlinkArcrole",
|
|
31979
|
-
xlinkHref: 1,
|
|
31980
|
-
"xlink:href": "xlinkHref",
|
|
31981
|
-
xlinkRole: 1,
|
|
31982
|
-
"xlink:role": "xlinkRole",
|
|
31983
|
-
xlinkShow: 1,
|
|
31984
|
-
"xlink:show": "xlinkShow",
|
|
31985
|
-
xlinkTitle: 1,
|
|
31986
|
-
"xlink:title": "xlinkTitle",
|
|
31987
|
-
xlinkType: 1,
|
|
31988
|
-
"xlink:type": "xlinkType",
|
|
31989
|
-
xmlBase: 1,
|
|
31990
|
-
"xml:base": "xmlBase",
|
|
31991
|
-
xmlLang: 1,
|
|
31992
|
-
"xml:lang": "xmlLang",
|
|
31993
|
-
xmlns: 0,
|
|
31994
|
-
"xml:space": "xmlSpace",
|
|
31995
|
-
xmlnsXlink: 1,
|
|
31996
|
-
"xmlns:xlink": "xmlnsXlink",
|
|
31997
|
-
xmlSpace: 1,
|
|
31998
|
-
y1: 0,
|
|
31999
|
-
y2: 0,
|
|
32000
|
-
y: 0,
|
|
32001
|
-
yChannelSelector: 1,
|
|
32002
|
-
z: 0,
|
|
32003
|
-
zoomAndPan: 1
|
|
32004
|
-
};
|
|
32005
|
-
Object.defineProperty(lib$1, "__esModule", { value: true });
|
|
32006
|
-
function _slicedToArray(arr2, i2) {
|
|
32007
|
-
return _arrayWithHoles(arr2) || _iterableToArrayLimit(arr2, i2) || _unsupportedIterableToArray(arr2, i2) || _nonIterableRest();
|
|
32008
|
-
}
|
|
32009
|
-
function _arrayWithHoles(arr2) {
|
|
32010
|
-
if (Array.isArray(arr2))
|
|
32011
|
-
return arr2;
|
|
32012
|
-
}
|
|
32013
|
-
function _iterableToArrayLimit(arr2, i2) {
|
|
32014
|
-
var _i2 = arr2 == null ? null : typeof Symbol !== "undefined" && arr2[Symbol.iterator] || arr2["@@iterator"];
|
|
32015
|
-
if (_i2 == null)
|
|
32016
|
-
return;
|
|
32017
|
-
var _arr = [];
|
|
32018
|
-
var _n = true;
|
|
32019
|
-
var _d2 = false;
|
|
32020
|
-
var _s, _e2;
|
|
32021
|
-
try {
|
|
32022
|
-
for (_i2 = _i2.call(arr2); !(_n = (_s = _i2.next()).done); _n = true) {
|
|
32023
|
-
_arr.push(_s.value);
|
|
32024
|
-
if (i2 && _arr.length === i2)
|
|
32025
|
-
break;
|
|
32026
|
-
}
|
|
32027
|
-
} catch (err2) {
|
|
32028
|
-
_d2 = true;
|
|
32029
|
-
_e2 = err2;
|
|
32030
|
-
} finally {
|
|
32031
|
-
try {
|
|
32032
|
-
if (!_n && _i2["return"] != null)
|
|
32033
|
-
_i2["return"]();
|
|
32034
|
-
} finally {
|
|
32035
|
-
if (_d2)
|
|
32036
|
-
throw _e2;
|
|
32037
|
-
}
|
|
32038
|
-
}
|
|
32039
|
-
return _arr;
|
|
32040
|
-
}
|
|
32041
|
-
function _unsupportedIterableToArray(o2, minLen) {
|
|
32042
|
-
if (!o2)
|
|
32043
|
-
return;
|
|
32044
|
-
if (typeof o2 === "string")
|
|
32045
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32046
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
|
32047
|
-
if (n2 === "Object" && o2.constructor)
|
|
32048
|
-
n2 = o2.constructor.name;
|
|
32049
|
-
if (n2 === "Map" || n2 === "Set")
|
|
32050
|
-
return Array.from(o2);
|
|
32051
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
|
32052
|
-
return _arrayLikeToArray(o2, minLen);
|
|
32053
|
-
}
|
|
32054
|
-
function _arrayLikeToArray(arr2, len) {
|
|
32055
|
-
if (len == null || len > arr2.length)
|
|
32056
|
-
len = arr2.length;
|
|
32057
|
-
for (var i2 = 0, arr22 = new Array(len); i2 < len; i2++)
|
|
32058
|
-
arr22[i2] = arr2[i2];
|
|
32059
|
-
return arr22;
|
|
32060
|
-
}
|
|
32061
|
-
function _nonIterableRest() {
|
|
32062
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32063
|
-
}
|
|
32064
|
-
var RESERVED = 0;
|
|
32065
|
-
var STRING = 1;
|
|
32066
|
-
var BOOLEANISH_STRING = 2;
|
|
32067
|
-
var BOOLEAN = 3;
|
|
32068
|
-
var OVERLOADED_BOOLEAN = 4;
|
|
32069
|
-
var NUMERIC = 5;
|
|
32070
|
-
var POSITIVE_NUMERIC = 6;
|
|
32071
|
-
function getPropertyInfo(name) {
|
|
32072
|
-
return properties.hasOwnProperty(name) ? properties[name] : null;
|
|
32073
|
-
}
|
|
32074
|
-
function PropertyInfoRecord(name, type2, mustUseProperty, attributeName, attributeNamespace, sanitizeURL, removeEmptyString) {
|
|
32075
|
-
this.acceptsBooleans = type2 === BOOLEANISH_STRING || type2 === BOOLEAN || type2 === OVERLOADED_BOOLEAN;
|
|
32076
|
-
this.attributeName = attributeName;
|
|
32077
|
-
this.attributeNamespace = attributeNamespace;
|
|
32078
|
-
this.mustUseProperty = mustUseProperty;
|
|
32079
|
-
this.propertyName = name;
|
|
32080
|
-
this.type = type2;
|
|
32081
|
-
this.sanitizeURL = sanitizeURL;
|
|
32082
|
-
this.removeEmptyString = removeEmptyString;
|
|
32083
|
-
}
|
|
32084
|
-
var properties = {};
|
|
32085
|
-
var reservedProps = [
|
|
32086
|
-
"children",
|
|
32087
|
-
"dangerouslySetInnerHTML",
|
|
32088
|
-
// TODO: This prevents the assignment of defaultValue to regular
|
|
32089
|
-
// elements (not just inputs). Now that ReactDOMInput assigns to the
|
|
32090
|
-
// defaultValue property -- do we need this?
|
|
32091
|
-
"defaultValue",
|
|
32092
|
-
"defaultChecked",
|
|
32093
|
-
"innerHTML",
|
|
32094
|
-
"suppressContentEditableWarning",
|
|
32095
|
-
"suppressHydrationWarning",
|
|
32096
|
-
"style"
|
|
32097
|
-
];
|
|
32098
|
-
reservedProps.forEach(function(name) {
|
|
32099
|
-
properties[name] = new PropertyInfoRecord(
|
|
32100
|
-
name,
|
|
32101
|
-
RESERVED,
|
|
32102
|
-
false,
|
|
32103
|
-
// mustUseProperty
|
|
32104
|
-
name,
|
|
32105
|
-
// attributeName
|
|
32106
|
-
null,
|
|
32107
|
-
// attributeNamespace
|
|
32108
|
-
false,
|
|
32109
|
-
// sanitizeURL
|
|
32110
|
-
false
|
|
32111
|
-
);
|
|
32112
|
-
});
|
|
32113
|
-
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) {
|
|
32114
|
-
var _ref2 = _slicedToArray(_ref, 2), name = _ref2[0], attributeName = _ref2[1];
|
|
32115
|
-
properties[name] = new PropertyInfoRecord(
|
|
32116
|
-
name,
|
|
32117
|
-
STRING,
|
|
32118
|
-
false,
|
|
32119
|
-
// mustUseProperty
|
|
32120
|
-
attributeName,
|
|
32121
|
-
// attributeName
|
|
32122
|
-
null,
|
|
32123
|
-
// attributeNamespace
|
|
32124
|
-
false,
|
|
32125
|
-
// sanitizeURL
|
|
32126
|
-
false
|
|
32127
|
-
);
|
|
32128
|
-
});
|
|
32129
|
-
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) {
|
|
32130
|
-
properties[name] = new PropertyInfoRecord(
|
|
32131
|
-
name,
|
|
32132
|
-
BOOLEANISH_STRING,
|
|
32133
|
-
false,
|
|
32134
|
-
// mustUseProperty
|
|
32135
|
-
name.toLowerCase(),
|
|
32136
|
-
// attributeName
|
|
32137
|
-
null,
|
|
32138
|
-
// attributeNamespace
|
|
32139
|
-
false,
|
|
32140
|
-
// sanitizeURL
|
|
32141
|
-
false
|
|
32142
|
-
);
|
|
32143
|
-
});
|
|
32144
|
-
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) {
|
|
32145
|
-
properties[name] = new PropertyInfoRecord(
|
|
32146
|
-
name,
|
|
32147
|
-
BOOLEANISH_STRING,
|
|
32148
|
-
false,
|
|
32149
|
-
// mustUseProperty
|
|
32150
|
-
name,
|
|
32151
|
-
// attributeName
|
|
32152
|
-
null,
|
|
32153
|
-
// attributeNamespace
|
|
32154
|
-
false,
|
|
32155
|
-
// sanitizeURL
|
|
32156
|
-
false
|
|
32157
|
-
);
|
|
32158
|
-
});
|
|
32159
|
-
[
|
|
32160
|
-
"allowFullScreen",
|
|
32161
|
-
"async",
|
|
32162
|
-
// Note: there is a special case that prevents it from being written to the DOM
|
|
32163
|
-
// on the client side because the browsers are inconsistent. Instead we call focus().
|
|
32164
|
-
"autoFocus",
|
|
32165
|
-
"autoPlay",
|
|
32166
|
-
"controls",
|
|
32167
|
-
"default",
|
|
32168
|
-
"defer",
|
|
32169
|
-
"disabled",
|
|
32170
|
-
"disablePictureInPicture",
|
|
32171
|
-
"disableRemotePlayback",
|
|
32172
|
-
"formNoValidate",
|
|
32173
|
-
"hidden",
|
|
32174
|
-
"loop",
|
|
32175
|
-
"noModule",
|
|
32176
|
-
"noValidate",
|
|
32177
|
-
"open",
|
|
32178
|
-
"playsInline",
|
|
32179
|
-
"readOnly",
|
|
32180
|
-
"required",
|
|
32181
|
-
"reversed",
|
|
32182
|
-
"scoped",
|
|
32183
|
-
"seamless",
|
|
32184
|
-
// Microdata
|
|
32185
|
-
"itemScope"
|
|
32186
|
-
].forEach(function(name) {
|
|
32187
|
-
properties[name] = new PropertyInfoRecord(
|
|
32188
|
-
name,
|
|
32189
|
-
BOOLEAN,
|
|
32190
|
-
false,
|
|
32191
|
-
// mustUseProperty
|
|
32192
|
-
name.toLowerCase(),
|
|
32193
|
-
// attributeName
|
|
32194
|
-
null,
|
|
32195
|
-
// attributeNamespace
|
|
32196
|
-
false,
|
|
32197
|
-
// sanitizeURL
|
|
32198
|
-
false
|
|
32199
|
-
);
|
|
32200
|
-
});
|
|
32201
|
-
[
|
|
32202
|
-
"checked",
|
|
32203
|
-
// Note: `option.selected` is not updated if `select.multiple` is
|
|
32204
|
-
// disabled with `removeAttribute`. We have special logic for handling this.
|
|
32205
|
-
"multiple",
|
|
32206
|
-
"muted",
|
|
32207
|
-
"selected"
|
|
32208
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32209
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32210
|
-
// instead in the assignment below.
|
|
32211
|
-
].forEach(function(name) {
|
|
32212
|
-
properties[name] = new PropertyInfoRecord(
|
|
32213
|
-
name,
|
|
32214
|
-
BOOLEAN,
|
|
32215
|
-
true,
|
|
32216
|
-
// mustUseProperty
|
|
32217
|
-
name,
|
|
32218
|
-
// attributeName
|
|
32219
|
-
null,
|
|
32220
|
-
// attributeNamespace
|
|
32221
|
-
false,
|
|
32222
|
-
// sanitizeURL
|
|
32223
|
-
false
|
|
32224
|
-
);
|
|
32225
|
-
});
|
|
32226
|
-
[
|
|
32227
|
-
"capture",
|
|
32228
|
-
"download"
|
|
32229
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32230
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32231
|
-
// instead in the assignment below.
|
|
32232
|
-
].forEach(function(name) {
|
|
32233
|
-
properties[name] = new PropertyInfoRecord(
|
|
32234
|
-
name,
|
|
32235
|
-
OVERLOADED_BOOLEAN,
|
|
32236
|
-
false,
|
|
32237
|
-
// mustUseProperty
|
|
32238
|
-
name,
|
|
32239
|
-
// attributeName
|
|
32240
|
-
null,
|
|
32241
|
-
// attributeNamespace
|
|
32242
|
-
false,
|
|
32243
|
-
// sanitizeURL
|
|
32244
|
-
false
|
|
32245
|
-
);
|
|
32246
|
-
});
|
|
32247
|
-
[
|
|
32248
|
-
"cols",
|
|
32249
|
-
"rows",
|
|
32250
|
-
"size",
|
|
32251
|
-
"span"
|
|
32252
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32253
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32254
|
-
// instead in the assignment below.
|
|
32255
|
-
].forEach(function(name) {
|
|
32256
|
-
properties[name] = new PropertyInfoRecord(
|
|
32257
|
-
name,
|
|
32258
|
-
POSITIVE_NUMERIC,
|
|
32259
|
-
false,
|
|
32260
|
-
// mustUseProperty
|
|
32261
|
-
name,
|
|
32262
|
-
// attributeName
|
|
32263
|
-
null,
|
|
32264
|
-
// attributeNamespace
|
|
32265
|
-
false,
|
|
32266
|
-
// sanitizeURL
|
|
32267
|
-
false
|
|
32268
|
-
);
|
|
32269
|
-
});
|
|
32270
|
-
["rowSpan", "start"].forEach(function(name) {
|
|
32271
|
-
properties[name] = new PropertyInfoRecord(
|
|
32272
|
-
name,
|
|
32273
|
-
NUMERIC,
|
|
32274
|
-
false,
|
|
32275
|
-
// mustUseProperty
|
|
32276
|
-
name.toLowerCase(),
|
|
32277
|
-
// attributeName
|
|
32278
|
-
null,
|
|
32279
|
-
// attributeNamespace
|
|
32280
|
-
false,
|
|
32281
|
-
// sanitizeURL
|
|
32282
|
-
false
|
|
32283
|
-
);
|
|
32284
|
-
});
|
|
32285
|
-
var CAMELIZE = /[\-\:]([a-z])/g;
|
|
32286
|
-
var capitalize$1 = function capitalize(token) {
|
|
32287
|
-
return token[1].toUpperCase();
|
|
32288
|
-
};
|
|
32289
|
-
[
|
|
32290
|
-
"accent-height",
|
|
32291
|
-
"alignment-baseline",
|
|
32292
|
-
"arabic-form",
|
|
32293
|
-
"baseline-shift",
|
|
32294
|
-
"cap-height",
|
|
32295
|
-
"clip-path",
|
|
32296
|
-
"clip-rule",
|
|
32297
|
-
"color-interpolation",
|
|
32298
|
-
"color-interpolation-filters",
|
|
32299
|
-
"color-profile",
|
|
32300
|
-
"color-rendering",
|
|
32301
|
-
"dominant-baseline",
|
|
32302
|
-
"enable-background",
|
|
32303
|
-
"fill-opacity",
|
|
32304
|
-
"fill-rule",
|
|
32305
|
-
"flood-color",
|
|
32306
|
-
"flood-opacity",
|
|
32307
|
-
"font-family",
|
|
32308
|
-
"font-size",
|
|
32309
|
-
"font-size-adjust",
|
|
32310
|
-
"font-stretch",
|
|
32311
|
-
"font-style",
|
|
32312
|
-
"font-variant",
|
|
32313
|
-
"font-weight",
|
|
32314
|
-
"glyph-name",
|
|
32315
|
-
"glyph-orientation-horizontal",
|
|
32316
|
-
"glyph-orientation-vertical",
|
|
32317
|
-
"horiz-adv-x",
|
|
32318
|
-
"horiz-origin-x",
|
|
32319
|
-
"image-rendering",
|
|
32320
|
-
"letter-spacing",
|
|
32321
|
-
"lighting-color",
|
|
32322
|
-
"marker-end",
|
|
32323
|
-
"marker-mid",
|
|
32324
|
-
"marker-start",
|
|
32325
|
-
"overline-position",
|
|
32326
|
-
"overline-thickness",
|
|
32327
|
-
"paint-order",
|
|
32328
|
-
"panose-1",
|
|
32329
|
-
"pointer-events",
|
|
32330
|
-
"rendering-intent",
|
|
32331
|
-
"shape-rendering",
|
|
32332
|
-
"stop-color",
|
|
32333
|
-
"stop-opacity",
|
|
32334
|
-
"strikethrough-position",
|
|
32335
|
-
"strikethrough-thickness",
|
|
32336
|
-
"stroke-dasharray",
|
|
32337
|
-
"stroke-dashoffset",
|
|
32338
|
-
"stroke-linecap",
|
|
32339
|
-
"stroke-linejoin",
|
|
32340
|
-
"stroke-miterlimit",
|
|
32341
|
-
"stroke-opacity",
|
|
32342
|
-
"stroke-width",
|
|
32343
|
-
"text-anchor",
|
|
32344
|
-
"text-decoration",
|
|
32345
|
-
"text-rendering",
|
|
32346
|
-
"underline-position",
|
|
32347
|
-
"underline-thickness",
|
|
32348
|
-
"unicode-bidi",
|
|
32349
|
-
"unicode-range",
|
|
32350
|
-
"units-per-em",
|
|
32351
|
-
"v-alphabetic",
|
|
32352
|
-
"v-hanging",
|
|
32353
|
-
"v-ideographic",
|
|
32354
|
-
"v-mathematical",
|
|
32355
|
-
"vector-effect",
|
|
32356
|
-
"vert-adv-y",
|
|
32357
|
-
"vert-origin-x",
|
|
32358
|
-
"vert-origin-y",
|
|
32359
|
-
"word-spacing",
|
|
32360
|
-
"writing-mode",
|
|
32361
|
-
"xmlns:xlink",
|
|
32362
|
-
"x-height"
|
|
32363
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32364
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32365
|
-
// instead in the assignment below.
|
|
32366
|
-
].forEach(function(attributeName) {
|
|
32367
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32368
|
-
properties[name] = new PropertyInfoRecord(
|
|
32369
|
-
name,
|
|
32370
|
-
STRING,
|
|
32371
|
-
false,
|
|
32372
|
-
// mustUseProperty
|
|
32373
|
-
attributeName,
|
|
32374
|
-
null,
|
|
32375
|
-
// attributeNamespace
|
|
32376
|
-
false,
|
|
32377
|
-
// sanitizeURL
|
|
32378
|
-
false
|
|
32379
|
-
);
|
|
32380
|
-
});
|
|
32381
|
-
[
|
|
32382
|
-
"xlink:actuate",
|
|
32383
|
-
"xlink:arcrole",
|
|
32384
|
-
"xlink:role",
|
|
32385
|
-
"xlink:show",
|
|
32386
|
-
"xlink:title",
|
|
32387
|
-
"xlink:type"
|
|
32388
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32389
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32390
|
-
// instead in the assignment below.
|
|
32391
|
-
].forEach(function(attributeName) {
|
|
32392
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32393
|
-
properties[name] = new PropertyInfoRecord(
|
|
32394
|
-
name,
|
|
32395
|
-
STRING,
|
|
32396
|
-
false,
|
|
32397
|
-
// mustUseProperty
|
|
32398
|
-
attributeName,
|
|
32399
|
-
"http://www.w3.org/1999/xlink",
|
|
32400
|
-
false,
|
|
32401
|
-
// sanitizeURL
|
|
32402
|
-
false
|
|
32403
|
-
);
|
|
32404
|
-
});
|
|
32405
|
-
[
|
|
32406
|
-
"xml:base",
|
|
32407
|
-
"xml:lang",
|
|
32408
|
-
"xml:space"
|
|
32409
|
-
// NOTE: if you add a camelCased prop to this list,
|
|
32410
|
-
// you'll need to set attributeName to name.toLowerCase()
|
|
32411
|
-
// instead in the assignment below.
|
|
32412
|
-
].forEach(function(attributeName) {
|
|
32413
|
-
var name = attributeName.replace(CAMELIZE, capitalize$1);
|
|
32414
|
-
properties[name] = new PropertyInfoRecord(
|
|
32415
|
-
name,
|
|
32416
|
-
STRING,
|
|
32417
|
-
false,
|
|
32418
|
-
// mustUseProperty
|
|
32419
|
-
attributeName,
|
|
32420
|
-
"http://www.w3.org/XML/1998/namespace",
|
|
32421
|
-
false,
|
|
32422
|
-
// sanitizeURL
|
|
32423
|
-
false
|
|
32424
|
-
);
|
|
32425
|
-
});
|
|
32426
|
-
["tabIndex", "crossOrigin"].forEach(function(attributeName) {
|
|
32427
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32428
|
-
attributeName,
|
|
32429
|
-
STRING,
|
|
32430
|
-
false,
|
|
32431
|
-
// mustUseProperty
|
|
32432
|
-
attributeName.toLowerCase(),
|
|
32433
|
-
// attributeName
|
|
32434
|
-
null,
|
|
32435
|
-
// attributeNamespace
|
|
32436
|
-
false,
|
|
32437
|
-
// sanitizeURL
|
|
32438
|
-
false
|
|
32439
|
-
);
|
|
32440
|
-
});
|
|
32441
|
-
var xlinkHref = "xlinkHref";
|
|
32442
|
-
properties[xlinkHref] = new PropertyInfoRecord(
|
|
32443
|
-
"xlinkHref",
|
|
32444
|
-
STRING,
|
|
32445
|
-
false,
|
|
32446
|
-
// mustUseProperty
|
|
32447
|
-
"xlink:href",
|
|
32448
|
-
"http://www.w3.org/1999/xlink",
|
|
32449
|
-
true,
|
|
32450
|
-
// sanitizeURL
|
|
32451
|
-
false
|
|
32452
|
-
);
|
|
32453
|
-
["src", "href", "action", "formAction"].forEach(function(attributeName) {
|
|
32454
|
-
properties[attributeName] = new PropertyInfoRecord(
|
|
32455
|
-
attributeName,
|
|
32456
|
-
STRING,
|
|
32457
|
-
false,
|
|
32458
|
-
// mustUseProperty
|
|
32459
|
-
attributeName.toLowerCase(),
|
|
32460
|
-
// attributeName
|
|
32461
|
-
null,
|
|
32462
|
-
// attributeNamespace
|
|
32463
|
-
true,
|
|
32464
|
-
// sanitizeURL
|
|
32465
|
-
true
|
|
32466
|
-
);
|
|
32467
|
-
});
|
|
32468
|
-
var _require = possibleStandardNamesOptimized$1, CAMELCASE = _require.CAMELCASE, SAME = _require.SAME, possibleStandardNamesOptimized = _require.possibleStandardNames;
|
|
32469
|
-
var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";
|
|
32470
|
-
var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
32471
|
-
var isCustomAttribute = RegExp.prototype.test.bind(
|
|
32472
|
-
// eslint-disable-next-line no-misleading-character-class
|
|
32473
|
-
new RegExp("^(data|aria)-[" + ATTRIBUTE_NAME_CHAR + "]*$")
|
|
32474
|
-
);
|
|
32475
|
-
var possibleStandardNames = Object.keys(possibleStandardNamesOptimized).reduce(function(accumulator, standardName) {
|
|
32476
|
-
var propName = possibleStandardNamesOptimized[standardName];
|
|
32477
|
-
if (propName === SAME) {
|
|
32478
|
-
accumulator[standardName] = standardName;
|
|
32479
|
-
} else if (propName === CAMELCASE) {
|
|
32480
|
-
accumulator[standardName.toLowerCase()] = standardName;
|
|
32481
|
-
} else {
|
|
32482
|
-
accumulator[standardName] = propName;
|
|
32483
|
-
}
|
|
32484
|
-
return accumulator;
|
|
32485
|
-
}, {});
|
|
32486
|
-
lib$1.BOOLEAN = BOOLEAN;
|
|
32487
|
-
lib$1.BOOLEANISH_STRING = BOOLEANISH_STRING;
|
|
32488
|
-
lib$1.NUMERIC = NUMERIC;
|
|
32489
|
-
lib$1.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;
|
|
32490
|
-
lib$1.POSITIVE_NUMERIC = POSITIVE_NUMERIC;
|
|
32491
|
-
lib$1.RESERVED = RESERVED;
|
|
32492
|
-
lib$1.STRING = STRING;
|
|
32493
|
-
lib$1.getPropertyInfo = getPropertyInfo;
|
|
32494
|
-
lib$1.isCustomAttribute = isCustomAttribute;
|
|
32495
|
-
lib$1.possibleStandardNames = possibleStandardNames;
|
|
32496
|
-
var cjs = {};
|
|
32497
|
-
var styleToObject = { exports: {} };
|
|
32498
|
-
var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
|
|
32499
|
-
var NEWLINE_REGEX = /\n/g;
|
|
32500
|
-
var WHITESPACE_REGEX = /^\s*/;
|
|
32501
|
-
var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
|
|
32502
|
-
var COLON_REGEX = /^:\s*/;
|
|
32503
|
-
var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
|
|
32504
|
-
var SEMICOLON_REGEX = /^[;\s]*/;
|
|
32505
|
-
var TRIM_REGEX = /^\s+|\s+$/g;
|
|
32506
|
-
var NEWLINE = "\n";
|
|
32507
|
-
var FORWARD_SLASH = "/";
|
|
32508
|
-
var ASTERISK = "*";
|
|
32509
|
-
var EMPTY_STRING = "";
|
|
32510
|
-
var TYPE_COMMENT = "comment";
|
|
32511
|
-
var TYPE_DECLARATION = "declaration";
|
|
32512
|
-
var inlineStyleParser = function(style, options) {
|
|
32513
|
-
if (typeof style !== "string") {
|
|
32514
|
-
throw new TypeError("First argument must be a string");
|
|
32515
|
-
}
|
|
32516
|
-
if (!style)
|
|
32517
|
-
return [];
|
|
32518
|
-
options = options || {};
|
|
32519
|
-
var lineno = 1;
|
|
32520
|
-
var column = 1;
|
|
32521
|
-
function updatePosition(str) {
|
|
32522
|
-
var lines = str.match(NEWLINE_REGEX);
|
|
32523
|
-
if (lines)
|
|
32524
|
-
lineno += lines.length;
|
|
32525
|
-
var i2 = str.lastIndexOf(NEWLINE);
|
|
32526
|
-
column = ~i2 ? str.length - i2 : column + str.length;
|
|
32527
|
-
}
|
|
32528
|
-
function position() {
|
|
32529
|
-
var start2 = { line: lineno, column };
|
|
32530
|
-
return function(node2) {
|
|
32531
|
-
node2.position = new Position(start2);
|
|
32532
|
-
whitespace();
|
|
32533
|
-
return node2;
|
|
32534
|
-
};
|
|
32535
|
-
}
|
|
32536
|
-
function Position(start2) {
|
|
32537
|
-
this.start = start2;
|
|
32538
|
-
this.end = { line: lineno, column };
|
|
32539
|
-
this.source = options.source;
|
|
32540
|
-
}
|
|
32541
|
-
Position.prototype.content = style;
|
|
32542
|
-
function error(msg) {
|
|
32543
|
-
var err2 = new Error(
|
|
32544
|
-
options.source + ":" + lineno + ":" + column + ": " + msg
|
|
32545
|
-
);
|
|
32546
|
-
err2.reason = msg;
|
|
32547
|
-
err2.filename = options.source;
|
|
32548
|
-
err2.line = lineno;
|
|
32549
|
-
err2.column = column;
|
|
32550
|
-
err2.source = style;
|
|
32551
|
-
if (options.silent)
|
|
32552
|
-
;
|
|
32553
|
-
else {
|
|
32554
|
-
throw err2;
|
|
32555
|
-
}
|
|
32556
|
-
}
|
|
32557
|
-
function match(re2) {
|
|
32558
|
-
var m2 = re2.exec(style);
|
|
32559
|
-
if (!m2)
|
|
32560
|
-
return;
|
|
32561
|
-
var str = m2[0];
|
|
32562
|
-
updatePosition(str);
|
|
32563
|
-
style = style.slice(str.length);
|
|
32564
|
-
return m2;
|
|
32565
|
-
}
|
|
32566
|
-
function whitespace() {
|
|
32567
|
-
match(WHITESPACE_REGEX);
|
|
32568
|
-
}
|
|
32569
|
-
function comments(rules) {
|
|
32570
|
-
var c6;
|
|
32571
|
-
rules = rules || [];
|
|
32572
|
-
while (c6 = comment()) {
|
|
32573
|
-
if (c6 !== false) {
|
|
32574
|
-
rules.push(c6);
|
|
32575
|
-
}
|
|
32576
|
-
}
|
|
32577
|
-
return rules;
|
|
32578
|
-
}
|
|
32579
|
-
function comment() {
|
|
32580
|
-
var pos = position();
|
|
32581
|
-
if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1))
|
|
32582
|
-
return;
|
|
32583
|
-
var i2 = 2;
|
|
32584
|
-
while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
|
|
32585
|
-
++i2;
|
|
32586
|
-
}
|
|
32587
|
-
i2 += 2;
|
|
32588
|
-
if (EMPTY_STRING === style.charAt(i2 - 1)) {
|
|
32589
|
-
return error("End of comment missing");
|
|
32590
|
-
}
|
|
32591
|
-
var str = style.slice(2, i2 - 2);
|
|
32592
|
-
column += 2;
|
|
32593
|
-
updatePosition(str);
|
|
32594
|
-
style = style.slice(i2);
|
|
32595
|
-
column += 2;
|
|
32596
|
-
return pos({
|
|
32597
|
-
type: TYPE_COMMENT,
|
|
32598
|
-
comment: str
|
|
32599
|
-
});
|
|
32600
|
-
}
|
|
32601
|
-
function declaration() {
|
|
32602
|
-
var pos = position();
|
|
32603
|
-
var prop = match(PROPERTY_REGEX);
|
|
32604
|
-
if (!prop)
|
|
32605
|
-
return;
|
|
32606
|
-
comment();
|
|
32607
|
-
if (!match(COLON_REGEX))
|
|
32608
|
-
return error("property missing ':'");
|
|
32609
|
-
var val = match(VALUE_REGEX);
|
|
32610
|
-
var ret = pos({
|
|
32611
|
-
type: TYPE_DECLARATION,
|
|
32612
|
-
property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
|
|
32613
|
-
value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
|
|
32614
|
-
});
|
|
32615
|
-
match(SEMICOLON_REGEX);
|
|
32616
|
-
return ret;
|
|
32617
|
-
}
|
|
32618
|
-
function declarations() {
|
|
32619
|
-
var decls = [];
|
|
32620
|
-
comments(decls);
|
|
32621
|
-
var decl;
|
|
32622
|
-
while (decl = declaration()) {
|
|
32623
|
-
if (decl !== false) {
|
|
32624
|
-
decls.push(decl);
|
|
32625
|
-
comments(decls);
|
|
32626
|
-
}
|
|
32627
|
-
}
|
|
32628
|
-
return decls;
|
|
32629
|
-
}
|
|
32630
|
-
whitespace();
|
|
32631
|
-
return declarations();
|
|
32632
|
-
};
|
|
32633
|
-
function trim(str) {
|
|
32634
|
-
return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
|
|
32635
|
-
}
|
|
32636
|
-
var parse$2 = inlineStyleParser;
|
|
32637
|
-
function StyleToObject(style, iterator) {
|
|
32638
|
-
var output = null;
|
|
32639
|
-
if (!style || typeof style !== "string") {
|
|
32640
|
-
return output;
|
|
32641
|
-
}
|
|
32642
|
-
var declaration;
|
|
32643
|
-
var declarations = parse$2(style);
|
|
32644
|
-
var hasIterator = typeof iterator === "function";
|
|
32645
|
-
var property;
|
|
32646
|
-
var value;
|
|
32647
|
-
for (var i2 = 0, len = declarations.length; i2 < len; i2++) {
|
|
32648
|
-
declaration = declarations[i2];
|
|
32649
|
-
property = declaration.property;
|
|
32650
|
-
value = declaration.value;
|
|
32651
|
-
if (hasIterator) {
|
|
32652
|
-
iterator(property, value, declaration);
|
|
32653
|
-
} else if (value) {
|
|
32654
|
-
output || (output = {});
|
|
32655
|
-
output[property] = value;
|
|
32656
|
-
}
|
|
32657
|
-
}
|
|
32658
|
-
return output;
|
|
32659
|
-
}
|
|
32660
|
-
styleToObject.exports = StyleToObject;
|
|
32661
|
-
styleToObject.exports.default = StyleToObject;
|
|
32662
|
-
var styleToObjectExports = styleToObject.exports;
|
|
32663
|
-
var utilities$3 = {};
|
|
32664
|
-
utilities$3.__esModule = true;
|
|
32665
|
-
utilities$3.camelCase = void 0;
|
|
32666
|
-
var CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9-]+$/;
|
|
32667
|
-
var HYPHEN_REGEX = /-([a-z])/g;
|
|
32668
|
-
var NO_HYPHEN_REGEX = /^[^-]+$/;
|
|
32669
|
-
var VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;
|
|
32670
|
-
var MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;
|
|
32671
|
-
var skipCamelCase = function(property) {
|
|
32672
|
-
return !property || NO_HYPHEN_REGEX.test(property) || CUSTOM_PROPERTY_REGEX.test(property);
|
|
32673
|
-
};
|
|
32674
|
-
var capitalize2 = function(match, character) {
|
|
32675
|
-
return character.toUpperCase();
|
|
32676
|
-
};
|
|
32677
|
-
var trimHyphen = function(match, prefix2) {
|
|
32678
|
-
return "".concat(prefix2, "-");
|
|
32679
|
-
};
|
|
32680
|
-
var camelCase = function(property, options) {
|
|
32681
|
-
if (options === void 0) {
|
|
32682
|
-
options = {};
|
|
32683
|
-
}
|
|
32684
|
-
if (skipCamelCase(property)) {
|
|
32685
|
-
return property;
|
|
32686
|
-
}
|
|
32687
|
-
property = property.toLowerCase();
|
|
32688
|
-
if (options.reactCompat) {
|
|
32689
|
-
property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32690
|
-
} else {
|
|
32691
|
-
property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);
|
|
32692
|
-
}
|
|
32693
|
-
return property.replace(HYPHEN_REGEX, capitalize2);
|
|
32694
|
-
};
|
|
32695
|
-
utilities$3.camelCase = camelCase;
|
|
32696
|
-
(function(exports) {
|
|
32697
|
-
var __importDefault = commonjsGlobal && commonjsGlobal.__importDefault || function(mod) {
|
|
32698
|
-
return mod && mod.__esModule ? mod : { "default": mod };
|
|
32699
|
-
};
|
|
32700
|
-
exports.__esModule = true;
|
|
32701
|
-
var style_to_object_1 = __importDefault(styleToObjectExports);
|
|
32702
|
-
var utilities_1 = utilities$3;
|
|
32703
|
-
function StyleToJS(style, options) {
|
|
32704
|
-
var output = {};
|
|
32705
|
-
if (!style || typeof style !== "string") {
|
|
32706
|
-
return output;
|
|
32707
|
-
}
|
|
32708
|
-
(0, style_to_object_1["default"])(style, function(property, value) {
|
|
32709
|
-
if (property && value) {
|
|
32710
|
-
output[(0, utilities_1.camelCase)(property, options)] = value;
|
|
32711
|
-
}
|
|
32712
|
-
});
|
|
32713
|
-
return output;
|
|
32714
|
-
}
|
|
32715
|
-
exports["default"] = StyleToJS;
|
|
32716
|
-
})(cjs);
|
|
32717
|
-
var React$1 = reactExports;
|
|
32718
|
-
var styleToJS = cjs.default;
|
|
32719
|
-
function invertObject(obj, override) {
|
|
32720
|
-
if (!obj || typeof obj !== "object") {
|
|
32721
|
-
throw new TypeError("First argument must be an object");
|
|
32722
|
-
}
|
|
32723
|
-
var isOverridePresent = typeof override === "function";
|
|
32724
|
-
var overrides = {};
|
|
32725
|
-
var result = {};
|
|
32726
|
-
for (var key in obj) {
|
|
32727
|
-
var value = obj[key];
|
|
32728
|
-
if (isOverridePresent) {
|
|
32729
|
-
overrides = override(key, value);
|
|
32730
|
-
if (overrides && overrides.length === 2) {
|
|
32731
|
-
result[overrides[0]] = overrides[1];
|
|
32732
|
-
continue;
|
|
32733
|
-
}
|
|
32734
|
-
}
|
|
32735
|
-
if (typeof value === "string") {
|
|
32736
|
-
result[value] = key;
|
|
32737
|
-
}
|
|
32738
|
-
}
|
|
32739
|
-
return result;
|
|
32740
|
-
}
|
|
32741
|
-
var RESERVED_SVG_MATHML_ELEMENTS = /* @__PURE__ */ new Set([
|
|
32742
|
-
"annotation-xml",
|
|
32743
|
-
"color-profile",
|
|
32744
|
-
"font-face",
|
|
32745
|
-
"font-face-src",
|
|
32746
|
-
"font-face-uri",
|
|
32747
|
-
"font-face-format",
|
|
32748
|
-
"font-face-name",
|
|
32749
|
-
"missing-glyph"
|
|
32750
|
-
]);
|
|
32751
|
-
function isCustomComponent(tagName2, props) {
|
|
32752
|
-
if (tagName2.indexOf("-") === -1) {
|
|
32753
|
-
return props && typeof props.is === "string";
|
|
32754
|
-
}
|
|
32755
|
-
if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName2)) {
|
|
32756
|
-
return false;
|
|
32757
|
-
}
|
|
32758
|
-
return true;
|
|
32759
|
-
}
|
|
32760
|
-
var STYLE_TO_JS_OPTIONS = { reactCompat: true };
|
|
32761
|
-
function setStyleProp$1(style, props) {
|
|
32762
|
-
if (style === null || style === void 0) {
|
|
32763
|
-
return;
|
|
32764
|
-
}
|
|
32765
|
-
try {
|
|
32766
|
-
props.style = styleToJS(style, STYLE_TO_JS_OPTIONS);
|
|
32767
|
-
} catch (err2) {
|
|
32768
|
-
props.style = {};
|
|
32769
|
-
}
|
|
32770
|
-
}
|
|
32771
|
-
var PRESERVE_CUSTOM_ATTRIBUTES = React$1.version.split(".")[0] >= 16;
|
|
32772
|
-
var ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
|
|
32773
|
-
"tr",
|
|
32774
|
-
"tbody",
|
|
32775
|
-
"thead",
|
|
32776
|
-
"tfoot",
|
|
32777
|
-
"colgroup",
|
|
32778
|
-
"table",
|
|
32779
|
-
"head",
|
|
32780
|
-
"html",
|
|
32781
|
-
"frameset"
|
|
32782
|
-
]);
|
|
32783
|
-
function canTextBeChildOfNode$1(node2) {
|
|
32784
|
-
return !ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node2.name);
|
|
32785
|
-
}
|
|
32786
|
-
function returnFirstArg(arg) {
|
|
32787
|
-
return arg;
|
|
32788
|
-
}
|
|
32789
|
-
var utilities$2 = {
|
|
32790
|
-
PRESERVE_CUSTOM_ATTRIBUTES,
|
|
32791
|
-
ELEMENTS_WITH_NO_TEXT_CHILDREN,
|
|
32792
|
-
invertObject,
|
|
32793
|
-
isCustomComponent,
|
|
32794
|
-
setStyleProp: setStyleProp$1,
|
|
32795
|
-
canTextBeChildOfNode: canTextBeChildOfNode$1,
|
|
32796
|
-
returnFirstArg
|
|
32797
|
-
};
|
|
32798
|
-
var reactProperty = lib$1;
|
|
32799
|
-
var utilities$1 = utilities$2;
|
|
32800
|
-
var UNCONTROLLED_COMPONENT_ATTRIBUTES = ["checked", "value"];
|
|
32801
|
-
var UNCONTROLLED_COMPONENT_NAMES = ["input", "select", "textarea"];
|
|
32802
|
-
var VALUE_ONLY_INPUTS = {
|
|
32803
|
-
reset: true,
|
|
32804
|
-
submit: true
|
|
32805
|
-
};
|
|
32806
|
-
var attributesToProps$3 = function attributesToProps(attributes, nodeName) {
|
|
32807
|
-
attributes = attributes || {};
|
|
32808
|
-
var attributeName;
|
|
32809
|
-
var attributeNameLowerCased;
|
|
32810
|
-
var attributeValue;
|
|
32811
|
-
var propName;
|
|
32812
|
-
var propertyInfo;
|
|
32813
|
-
var props = {};
|
|
32814
|
-
var inputIsValueOnly = attributes.type && VALUE_ONLY_INPUTS[attributes.type];
|
|
32815
|
-
for (attributeName in attributes) {
|
|
32816
|
-
attributeValue = attributes[attributeName];
|
|
32817
|
-
if (reactProperty.isCustomAttribute(attributeName)) {
|
|
32818
|
-
props[attributeName] = attributeValue;
|
|
32819
|
-
continue;
|
|
32820
|
-
}
|
|
32821
|
-
attributeNameLowerCased = attributeName.toLowerCase();
|
|
32822
|
-
propName = getPropName(attributeNameLowerCased);
|
|
32823
|
-
if (propName) {
|
|
32824
|
-
propertyInfo = reactProperty.getPropertyInfo(propName);
|
|
32825
|
-
if (UNCONTROLLED_COMPONENT_ATTRIBUTES.indexOf(propName) !== -1 && UNCONTROLLED_COMPONENT_NAMES.indexOf(nodeName) !== -1 && !inputIsValueOnly) {
|
|
32826
|
-
propName = getPropName("default" + attributeNameLowerCased);
|
|
32827
|
-
}
|
|
32828
|
-
props[propName] = attributeValue;
|
|
32829
|
-
switch (propertyInfo && propertyInfo.type) {
|
|
32830
|
-
case reactProperty.BOOLEAN:
|
|
32831
|
-
props[propName] = true;
|
|
32832
|
-
break;
|
|
32833
|
-
case reactProperty.OVERLOADED_BOOLEAN:
|
|
32834
|
-
if (attributeValue === "") {
|
|
32835
|
-
props[propName] = true;
|
|
32836
|
-
}
|
|
32837
|
-
break;
|
|
32838
|
-
}
|
|
32839
|
-
continue;
|
|
32840
|
-
}
|
|
32841
|
-
if (utilities$1.PRESERVE_CUSTOM_ATTRIBUTES) {
|
|
32842
|
-
props[attributeName] = attributeValue;
|
|
32843
|
-
}
|
|
32844
|
-
}
|
|
32845
|
-
utilities$1.setStyleProp(attributes.style, props);
|
|
32846
|
-
return props;
|
|
32847
|
-
};
|
|
32848
|
-
function getPropName(attributeName) {
|
|
32849
|
-
return reactProperty.possibleStandardNames[attributeName];
|
|
32850
|
-
}
|
|
32851
|
-
var React = reactExports;
|
|
32852
|
-
var attributesToProps$2 = attributesToProps$3;
|
|
32853
|
-
var utilities = utilities$2;
|
|
32854
|
-
var setStyleProp = utilities.setStyleProp;
|
|
32855
|
-
var canTextBeChildOfNode = utilities.canTextBeChildOfNode;
|
|
32856
|
-
function domToReact$2(nodes, options) {
|
|
32857
|
-
options = options || {};
|
|
32858
|
-
var library = options.library || React;
|
|
32859
|
-
var cloneElement = library.cloneElement;
|
|
32860
|
-
var createElement2 = library.createElement;
|
|
32861
|
-
var isValidElement = library.isValidElement;
|
|
32862
|
-
var result = [];
|
|
32863
|
-
var node2;
|
|
32864
|
-
var isWhitespace;
|
|
32865
|
-
var hasReplace = typeof options.replace === "function";
|
|
32866
|
-
var transform = options.transform || utilities.returnFirstArg;
|
|
32867
|
-
var replaceElement;
|
|
32868
|
-
var props;
|
|
32869
|
-
var children;
|
|
32870
|
-
var trim2 = options.trim;
|
|
32871
|
-
for (var i2 = 0, len = nodes.length; i2 < len; i2++) {
|
|
32872
|
-
node2 = nodes[i2];
|
|
32873
|
-
if (hasReplace) {
|
|
32874
|
-
replaceElement = options.replace(node2);
|
|
32875
|
-
if (isValidElement(replaceElement)) {
|
|
32876
|
-
if (len > 1) {
|
|
32877
|
-
replaceElement = cloneElement(replaceElement, {
|
|
32878
|
-
key: replaceElement.key || i2
|
|
32879
|
-
});
|
|
32880
|
-
}
|
|
32881
|
-
result.push(transform(replaceElement, node2, i2));
|
|
32882
|
-
continue;
|
|
32883
|
-
}
|
|
32884
|
-
}
|
|
32885
|
-
if (node2.type === "text") {
|
|
32886
|
-
isWhitespace = !node2.data.trim().length;
|
|
32887
|
-
if (isWhitespace && node2.parent && !canTextBeChildOfNode(node2.parent)) {
|
|
32888
|
-
continue;
|
|
32889
|
-
}
|
|
32890
|
-
if (trim2 && isWhitespace) {
|
|
32891
|
-
continue;
|
|
32892
|
-
}
|
|
32893
|
-
result.push(transform(node2.data, node2, i2));
|
|
32894
|
-
continue;
|
|
32895
|
-
}
|
|
32896
|
-
props = node2.attribs;
|
|
32897
|
-
if (skipAttributesToProps(node2)) {
|
|
32898
|
-
setStyleProp(props.style, props);
|
|
32899
|
-
} else if (props) {
|
|
32900
|
-
props = attributesToProps$2(props, node2.name);
|
|
32901
|
-
}
|
|
32902
|
-
children = null;
|
|
32903
|
-
switch (node2.type) {
|
|
32904
|
-
case "script":
|
|
32905
|
-
case "style":
|
|
32906
|
-
if (node2.children[0]) {
|
|
32907
|
-
props.dangerouslySetInnerHTML = {
|
|
32908
|
-
__html: node2.children[0].data
|
|
32909
|
-
};
|
|
32910
|
-
}
|
|
32911
|
-
break;
|
|
32912
|
-
case "tag":
|
|
32913
|
-
if (node2.name === "textarea" && node2.children[0]) {
|
|
32914
|
-
props.defaultValue = node2.children[0].data;
|
|
32915
|
-
} else if (node2.children && node2.children.length) {
|
|
32916
|
-
children = domToReact$2(node2.children, options);
|
|
32917
|
-
}
|
|
32918
|
-
break;
|
|
32919
|
-
default:
|
|
32920
|
-
continue;
|
|
32921
|
-
}
|
|
32922
|
-
if (len > 1) {
|
|
32923
|
-
props.key = i2;
|
|
32924
|
-
}
|
|
32925
|
-
result.push(transform(createElement2(node2.name, props, children), node2, i2));
|
|
32926
|
-
}
|
|
32927
|
-
return result.length === 1 ? result[0] : result;
|
|
32928
|
-
}
|
|
32929
|
-
function skipAttributesToProps(node2) {
|
|
32930
|
-
return utilities.PRESERVE_CUSTOM_ATTRIBUTES && node2.type === "tag" && utilities.isCustomComponent(node2.name, node2.attribs);
|
|
32931
|
-
}
|
|
32932
|
-
var domToReact_1 = domToReact$2;
|
|
32933
|
-
var domhandler = lib$3;
|
|
32934
|
-
var htmlToDOM = htmlToDom;
|
|
32935
|
-
var attributesToProps$1 = attributesToProps$3;
|
|
32936
|
-
var domToReact$1 = domToReact_1;
|
|
32937
|
-
htmlToDOM = /* istanbul ignore next */
|
|
32938
|
-
typeof htmlToDOM.default === "function" ? htmlToDOM.default : htmlToDOM;
|
|
32939
|
-
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
32940
|
-
function HTMLReactParser(html, options) {
|
|
32941
|
-
if (typeof html !== "string") {
|
|
32942
|
-
throw new TypeError("First argument must be a string");
|
|
32943
|
-
}
|
|
32944
|
-
if (html === "") {
|
|
32945
|
-
return [];
|
|
32946
|
-
}
|
|
32947
|
-
options = options || {};
|
|
32948
|
-
return domToReact$1(
|
|
32949
|
-
htmlToDOM(html, options.htmlparser2 || domParserOptions),
|
|
32950
|
-
options
|
|
32951
|
-
);
|
|
32952
|
-
}
|
|
32953
|
-
HTMLReactParser.domToReact = domToReact$1;
|
|
32954
|
-
HTMLReactParser.htmlToDOM = htmlToDOM;
|
|
32955
|
-
HTMLReactParser.attributesToProps = attributesToProps$1;
|
|
32956
|
-
HTMLReactParser.Comment = domhandler.Comment;
|
|
32957
|
-
HTMLReactParser.Element = domhandler.Element;
|
|
32958
|
-
HTMLReactParser.ProcessingInstruction = domhandler.ProcessingInstruction;
|
|
32959
|
-
HTMLReactParser.Text = domhandler.Text;
|
|
32960
|
-
var htmlReactParser = HTMLReactParser;
|
|
32961
|
-
HTMLReactParser.default = HTMLReactParser;
|
|
32962
|
-
const HTMLReactParser$1 = /* @__PURE__ */ getDefaultExportFromCjs(htmlReactParser);
|
|
32963
|
-
var domToReact = HTMLReactParser$1.domToReact;
|
|
32964
|
-
HTMLReactParser$1.htmlToDOM;
|
|
32965
|
-
var attributesToProps2 = HTMLReactParser$1.attributesToProps;
|
|
32966
|
-
HTMLReactParser$1.Comment;
|
|
32967
|
-
HTMLReactParser$1.Element;
|
|
32968
|
-
HTMLReactParser$1.ProcessingInstruction;
|
|
32969
|
-
HTMLReactParser$1.Text;
|
|
32970
30584
|
/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */
|
|
32971
30585
|
const Z_FIXED$1 = 4;
|
|
32972
30586
|
const Z_BINARY = 0;
|
|
@@ -33317,7 +30931,7 @@ const build_tree = (s2, desc) => {
|
|
|
33317
30931
|
const elems = desc.stat_desc.elems;
|
|
33318
30932
|
let n2, m2;
|
|
33319
30933
|
let max_code = -1;
|
|
33320
|
-
let
|
|
30934
|
+
let node;
|
|
33321
30935
|
s2.heap_len = 0;
|
|
33322
30936
|
s2.heap_max = HEAP_SIZE$1;
|
|
33323
30937
|
for (n2 = 0; n2 < elems; n2++) {
|
|
@@ -33329,19 +30943,19 @@ const build_tree = (s2, desc) => {
|
|
|
33329
30943
|
}
|
|
33330
30944
|
}
|
|
33331
30945
|
while (s2.heap_len < 2) {
|
|
33332
|
-
|
|
33333
|
-
tree[
|
|
33334
|
-
s2.depth[
|
|
30946
|
+
node = s2.heap[++s2.heap_len] = max_code < 2 ? ++max_code : 0;
|
|
30947
|
+
tree[node * 2] = 1;
|
|
30948
|
+
s2.depth[node] = 0;
|
|
33335
30949
|
s2.opt_len--;
|
|
33336
30950
|
if (has_stree) {
|
|
33337
|
-
s2.static_len -= stree[
|
|
30951
|
+
s2.static_len -= stree[node * 2 + 1];
|
|
33338
30952
|
}
|
|
33339
30953
|
}
|
|
33340
30954
|
desc.max_code = max_code;
|
|
33341
30955
|
for (n2 = s2.heap_len >> 1; n2 >= 1; n2--) {
|
|
33342
30956
|
pqdownheap(s2, tree, n2);
|
|
33343
30957
|
}
|
|
33344
|
-
|
|
30958
|
+
node = elems;
|
|
33345
30959
|
do {
|
|
33346
30960
|
n2 = s2.heap[
|
|
33347
30961
|
1
|
|
@@ -33363,13 +30977,13 @@ const build_tree = (s2, desc) => {
|
|
|
33363
30977
|
];
|
|
33364
30978
|
s2.heap[--s2.heap_max] = n2;
|
|
33365
30979
|
s2.heap[--s2.heap_max] = m2;
|
|
33366
|
-
tree[
|
|
33367
|
-
s2.depth[
|
|
33368
|
-
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] =
|
|
30980
|
+
tree[node * 2] = tree[n2 * 2] + tree[m2 * 2];
|
|
30981
|
+
s2.depth[node] = (s2.depth[n2] >= s2.depth[m2] ? s2.depth[n2] : s2.depth[m2]) + 1;
|
|
30982
|
+
tree[n2 * 2 + 1] = tree[m2 * 2 + 1] = node;
|
|
33369
30983
|
s2.heap[
|
|
33370
30984
|
1
|
|
33371
30985
|
/*SMALLEST*/
|
|
33372
|
-
] =
|
|
30986
|
+
] = node++;
|
|
33373
30987
|
pqdownheap(
|
|
33374
30988
|
s2,
|
|
33375
30989
|
tree,
|
|
@@ -39284,13 +36898,13 @@ var listGetNode = function(list, key) {
|
|
|
39284
36898
|
}
|
|
39285
36899
|
};
|
|
39286
36900
|
var listGet = function(objects, key) {
|
|
39287
|
-
var
|
|
39288
|
-
return
|
|
36901
|
+
var node = listGetNode(objects, key);
|
|
36902
|
+
return node && node.value;
|
|
39289
36903
|
};
|
|
39290
36904
|
var listSet = function(objects, key, value) {
|
|
39291
|
-
var
|
|
39292
|
-
if (
|
|
39293
|
-
|
|
36905
|
+
var node = listGetNode(objects, key);
|
|
36906
|
+
if (node) {
|
|
36907
|
+
node.value = value;
|
|
39294
36908
|
} else {
|
|
39295
36909
|
objects.next = /** @type {import('.').ListNode<typeof value>} */
|
|
39296
36910
|
{
|
|
@@ -44102,12 +41716,12 @@ function generateUniformsSync(group, uniformData) {
|
|
|
44102
41716
|
break;
|
|
44103
41717
|
}
|
|
44104
41718
|
if (!parsed) {
|
|
44105
|
-
const
|
|
41719
|
+
const template = (data.size === 1 && !data.isArray ? GLSL_TO_SINGLE_SETTERS_CACHED : GLSL_TO_ARRAY_SETTERS)[data.type].replace("location", `ud["${i2}"].location`);
|
|
44106
41720
|
funcFragments.push(`
|
|
44107
41721
|
cu = ud["${i2}"];
|
|
44108
41722
|
cv = cu.value;
|
|
44109
41723
|
v = uv["${i2}"];
|
|
44110
|
-
${
|
|
41724
|
+
${template};`);
|
|
44111
41725
|
}
|
|
44112
41726
|
}
|
|
44113
41727
|
return new Function("ud", "uv", "renderer", "syncData", funcFragments.join(`
|
|
@@ -45526,8 +43140,8 @@ class Texture extends EventEmitter2 {
|
|
|
45526
43140
|
* @param anchor - Default anchor point used for sprite placement / rotation
|
|
45527
43141
|
* @param borders - Default borders used for 9-slice scaling. See {@link PIXI.NineSlicePlane}
|
|
45528
43142
|
*/
|
|
45529
|
-
constructor(baseTexture, frame, orig,
|
|
45530
|
-
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim =
|
|
43143
|
+
constructor(baseTexture, frame, orig, trim, rotate, anchor, borders) {
|
|
43144
|
+
if (super(), this.noFrame = false, frame || (this.noFrame = true, frame = new Rectangle(0, 0, 1, 1)), baseTexture instanceof Texture && (baseTexture = baseTexture.baseTexture), this.baseTexture = baseTexture, this._frame = frame, this.trim = trim, this.valid = false, this.destroyed = false, this._uvs = DEFAULT_UVS, this.uvMatrix = null, this.orig = orig || frame, this._rotate = Number(rotate || 0), rotate === true)
|
|
45531
43145
|
this._rotate = 2;
|
|
45532
43146
|
else if (this._rotate % 2 !== 0)
|
|
45533
43147
|
throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");
|
|
@@ -46767,14 +44381,14 @@ class TextureMatrix {
|
|
|
46767
44381
|
this._textureID = tex._updateID, this._updateID++;
|
|
46768
44382
|
const uvs = tex._uvs;
|
|
46769
44383
|
this.mapCoord.set(uvs.x1 - uvs.x0, uvs.y1 - uvs.y0, uvs.x3 - uvs.x0, uvs.y3 - uvs.y0, uvs.x0, uvs.y0);
|
|
46770
|
-
const orig = tex.orig,
|
|
46771
|
-
|
|
46772
|
-
orig.width /
|
|
44384
|
+
const orig = tex.orig, trim = tex.trim;
|
|
44385
|
+
trim && (tempMat$1.set(
|
|
44386
|
+
orig.width / trim.width,
|
|
46773
44387
|
0,
|
|
46774
44388
|
0,
|
|
46775
|
-
orig.height /
|
|
46776
|
-
-
|
|
46777
|
-
-
|
|
44389
|
+
orig.height / trim.height,
|
|
44390
|
+
-trim.x / trim.width,
|
|
44391
|
+
-trim.y / trim.height
|
|
46778
44392
|
), this.mapCoord.append(tempMat$1));
|
|
46779
44393
|
const texBase = tex.baseTexture, frame = this.uClampFrame, margin = this.clampMargin / texBase.resolution, offset2 = this.clampOffset;
|
|
46780
44394
|
return frame[0] = (tex._frame.x + margin + offset2) / texBase.width, frame[1] = (tex._frame.y + margin + offset2) / texBase.height, frame[2] = (tex._frame.x + tex._frame.width - margin + offset2) / texBase.width, frame[3] = (tex._frame.y + tex._frame.height - margin + offset2) / texBase.height, this.uClampOffset[0] = offset2 / texBase.realWidth, this.uClampOffset[1] = offset2 / texBase.realHeight, this.isSimple = tex._frame.width === texBase.width && tex._frame.height === texBase.height && tex.rotate === 0, true;
|
|
@@ -47608,12 +45222,12 @@ function generateUniformBufferSync(group, uniformData) {
|
|
|
47608
45222
|
|
|
47609
45223
|
`);
|
|
47610
45224
|
} else {
|
|
47611
|
-
const
|
|
45225
|
+
const template = UBO_TO_SINGLE_SETTERS[uboElement.data.type];
|
|
47612
45226
|
funcFragments.push(`
|
|
47613
45227
|
cv = ud.${name}.value;
|
|
47614
45228
|
v = uv.${name};
|
|
47615
45229
|
offset = ${uboElement.offset / 4};
|
|
47616
|
-
${
|
|
45230
|
+
${template};
|
|
47617
45231
|
`);
|
|
47618
45232
|
}
|
|
47619
45233
|
}
|
|
@@ -51182,9 +48796,9 @@ class Sprite extends Container {
|
|
|
51182
48796
|
if (this._transformID === this.transform._worldID && this._textureID === texture._updateID)
|
|
51183
48797
|
return;
|
|
51184
48798
|
this._textureID !== texture._updateID && (this.uvs = this._texture._uvs.uvsFloat32), this._transformID = this.transform._worldID, this._textureID = texture._updateID;
|
|
51185
|
-
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData,
|
|
48799
|
+
const wt = this.transform.worldTransform, a2 = wt.a, b2 = wt.b, c6 = wt.c, d2 = wt.d, tx = wt.tx, ty = wt.ty, vertexData = this.vertexData, trim = texture.trim, orig = texture.orig, anchor = this._anchor;
|
|
51186
48800
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
51187
|
-
if (
|
|
48801
|
+
if (trim ? (w1 = trim.x - anchor._x * orig.width, w0 = w1 + trim.width, h1 = trim.y - anchor._y * orig.height, h0 = h1 + trim.height) : (w1 = -anchor._x * orig.width, w0 = w1 + orig.width, h1 = -anchor._y * orig.height, h0 = h1 + orig.height), vertexData[0] = a2 * w1 + c6 * h1 + tx, vertexData[1] = d2 * h1 + b2 * w1 + ty, vertexData[2] = a2 * w0 + c6 * h1 + tx, vertexData[3] = d2 * h1 + b2 * w0 + ty, vertexData[4] = a2 * w0 + c6 * h0 + tx, vertexData[5] = d2 * h0 + b2 * w0 + ty, vertexData[6] = a2 * w1 + c6 * h0 + tx, vertexData[7] = d2 * h0 + b2 * w1 + ty, this._roundPixels) {
|
|
51188
48802
|
const resolution = settings.RESOLUTION;
|
|
51189
48803
|
for (let i2 = 0; i2 < vertexData.length; ++i2)
|
|
51190
48804
|
vertexData[i2] = Math.round(vertexData[i2] * resolution) / resolution;
|
|
@@ -51218,8 +48832,8 @@ class Sprite extends Container {
|
|
|
51218
48832
|
}
|
|
51219
48833
|
/** Updates the bounds of the sprite. */
|
|
51220
48834
|
_calculateBounds() {
|
|
51221
|
-
const
|
|
51222
|
-
!
|
|
48835
|
+
const trim = this._texture.trim, orig = this._texture.orig;
|
|
48836
|
+
!trim || trim.width === orig.width && trim.height === orig.height ? (this.calculateVertices(), this._bounds.addQuad(this.vertexData)) : (this.calculateTrimmedVertices(), this._bounds.addQuad(this.vertexTrimmedData));
|
|
51223
48837
|
}
|
|
51224
48838
|
/**
|
|
51225
48839
|
* Gets the local bounds of the sprite object.
|
|
@@ -51628,7 +49242,7 @@ const contextSettings = {
|
|
|
51628
49242
|
static measureFont(font) {
|
|
51629
49243
|
if (_TextMetrics2._fonts[font])
|
|
51630
49244
|
return _TextMetrics2._fonts[font];
|
|
51631
|
-
const
|
|
49245
|
+
const properties = {
|
|
51632
49246
|
ascent: 0,
|
|
51633
49247
|
descent: 0,
|
|
51634
49248
|
fontSize: 0
|
|
@@ -51638,7 +49252,7 @@ const contextSettings = {
|
|
|
51638
49252
|
let baseline = Math.ceil(context2.measureText(_TextMetrics2.BASELINE_SYMBOL).width);
|
|
51639
49253
|
const height = Math.ceil(_TextMetrics2.HEIGHT_MULTIPLIER * baseline);
|
|
51640
49254
|
if (baseline = baseline * _TextMetrics2.BASELINE_MULTIPLIER | 0, width === 0 || height === 0)
|
|
51641
|
-
return _TextMetrics2._fonts[font] =
|
|
49255
|
+
return _TextMetrics2._fonts[font] = properties, properties;
|
|
51642
49256
|
canvas.width = width, canvas.height = height, context2.fillStyle = "#f00", context2.fillRect(0, 0, width, height), context2.font = font, context2.textBaseline = "alphabetic", context2.fillStyle = "#000", context2.fillText(metricsString, 0, baseline);
|
|
51643
49257
|
const imagedata = context2.getImageData(0, 0, width, height).data, pixels = imagedata.length, line = width * 4;
|
|
51644
49258
|
let i2 = 0, idx = 0, stop2 = false;
|
|
@@ -51653,7 +49267,7 @@ const contextSettings = {
|
|
|
51653
49267
|
else
|
|
51654
49268
|
break;
|
|
51655
49269
|
}
|
|
51656
|
-
for (
|
|
49270
|
+
for (properties.ascent = baseline - i2, idx = pixels - line, stop2 = false, i2 = height; i2 > baseline; --i2) {
|
|
51657
49271
|
for (let j2 = 0; j2 < line; j2 += 4)
|
|
51658
49272
|
if (imagedata[idx + j2] !== 255) {
|
|
51659
49273
|
stop2 = true;
|
|
@@ -51664,7 +49278,7 @@ const contextSettings = {
|
|
|
51664
49278
|
else
|
|
51665
49279
|
break;
|
|
51666
49280
|
}
|
|
51667
|
-
return
|
|
49281
|
+
return properties.descent = i2 - baseline, properties.fontSize = properties.ascent + properties.descent, _TextMetrics2._fonts[font] = properties, properties;
|
|
51668
49282
|
}
|
|
51669
49283
|
/**
|
|
51670
49284
|
* Clear font metrics in metrics cache.
|
|
@@ -52036,8 +49650,8 @@ const genericFontFamilies = [
|
|
|
52036
49650
|
get trim() {
|
|
52037
49651
|
return this._trim;
|
|
52038
49652
|
}
|
|
52039
|
-
set trim(
|
|
52040
|
-
this._trim !==
|
|
49653
|
+
set trim(trim) {
|
|
49654
|
+
this._trim !== trim && (this._trim = trim, this.styleID++);
|
|
52041
49655
|
}
|
|
52042
49656
|
/**
|
|
52043
49657
|
* How newlines and spaces should be handled.
|
|
@@ -56628,10 +54242,10 @@ class ParticleBuffer {
|
|
|
56628
54242
|
* @param {boolean[]} dynamicPropertyFlags - Flags for which properties are dynamic.
|
|
56629
54243
|
* @param {number} size - The size of the batch.
|
|
56630
54244
|
*/
|
|
56631
|
-
constructor(
|
|
54245
|
+
constructor(properties, dynamicPropertyFlags, size2) {
|
|
56632
54246
|
this.geometry = new Geometry(), this.indexBuffer = null, this.size = size2, this.dynamicProperties = [], this.staticProperties = [];
|
|
56633
|
-
for (let i2 = 0; i2 <
|
|
56634
|
-
let property =
|
|
54247
|
+
for (let i2 = 0; i2 < properties.length; ++i2) {
|
|
54248
|
+
let property = properties[i2];
|
|
56635
54249
|
property = {
|
|
56636
54250
|
attributeName: property.attributeName,
|
|
56637
54251
|
size: property.size,
|
|
@@ -56868,8 +54482,8 @@ class ParticleRenderer extends ObjectRenderer {
|
|
|
56868
54482
|
uploadVertices(children, startIndex, amount, array, stride, offset2) {
|
|
56869
54483
|
let w0 = 0, w1 = 0, h0 = 0, h1 = 0;
|
|
56870
54484
|
for (let i2 = 0; i2 < amount; ++i2) {
|
|
56871
|
-
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y,
|
|
56872
|
-
|
|
54485
|
+
const sprite = children[startIndex + i2], texture = sprite._texture, sx = sprite.scale.x, sy = sprite.scale.y, trim = texture.trim, orig = texture.orig;
|
|
54486
|
+
trim ? (w1 = trim.x - sprite.anchor.x * orig.width, w0 = w1 + trim.width, h1 = trim.y - sprite.anchor.y * orig.height, h0 = h1 + trim.height) : (w0 = orig.width * (1 - sprite.anchor.x), w1 = orig.width * -sprite.anchor.x, h0 = orig.height * (1 - sprite.anchor.y), h1 = orig.height * -sprite.anchor.y), array[offset2] = w1 * sx, array[offset2 + 1] = h1 * sy, array[offset2 + stride] = w0 * sx, array[offset2 + stride + 1] = h1 * sy, array[offset2 + stride * 2] = w0 * sx, array[offset2 + stride * 2 + 1] = h0 * sy, array[offset2 + stride * 3] = w1 * sx, array[offset2 + stride * 3 + 1] = h0 * sy, offset2 += stride * 4;
|
|
56873
54487
|
}
|
|
56874
54488
|
}
|
|
56875
54489
|
/**
|
|
@@ -57410,10 +55024,10 @@ const GAUSSIAN_VALUES = {
|
|
|
57410
55024
|
function generateBlurFragSource(kernelSize) {
|
|
57411
55025
|
const kernel = GAUSSIAN_VALUES[kernelSize], halfLength = kernel.length;
|
|
57412
55026
|
let fragSource = fragTemplate, blurLoop = "";
|
|
57413
|
-
const
|
|
55027
|
+
const template = "gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";
|
|
57414
55028
|
let value;
|
|
57415
55029
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57416
|
-
let blur =
|
|
55030
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57417
55031
|
value = i2, i2 >= halfLength && (value = kernelSize - i2 - 1), blur = blur.replace("%value%", kernel[value].toString()), blurLoop += blur, blurLoop += `
|
|
57418
55032
|
`;
|
|
57419
55033
|
}
|
|
@@ -57452,10 +55066,10 @@ const vertTemplate = `
|
|
|
57452
55066
|
}`;
|
|
57453
55067
|
function generateBlurVertSource(kernelSize, x2) {
|
|
57454
55068
|
const halfLength = Math.ceil(kernelSize / 2);
|
|
57455
|
-
let vertSource = vertTemplate, blurLoop = "",
|
|
57456
|
-
x2 ?
|
|
55069
|
+
let vertSource = vertTemplate, blurLoop = "", template;
|
|
55070
|
+
x2 ? template = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);" : template = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";
|
|
57457
55071
|
for (let i2 = 0; i2 < kernelSize; i2++) {
|
|
57458
|
-
let blur =
|
|
55072
|
+
let blur = template.replace("%index%", i2.toString());
|
|
57459
55073
|
blur = blur.replace("%sampleIndex%", `${i2 - (halfLength - 1)}.0`), blurLoop += blur, blurLoop += `
|
|
57460
55074
|
`;
|
|
57461
55075
|
}
|
|
@@ -61596,7 +59210,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61596
59210
|
for (; frameIndex - initialFrameIndex < maxFrames && frameIndex < this._frameKeys.length; ) {
|
|
61597
59211
|
const i2 = this._frameKeys[frameIndex], data = this._frames[i2], rect = data.frame;
|
|
61598
59212
|
if (rect) {
|
|
61599
|
-
let frame = null,
|
|
59213
|
+
let frame = null, trim = null;
|
|
61600
59214
|
const sourceSize = data.trimmed !== false && data.sourceSize ? data.sourceSize : data.frame, orig = new Rectangle(
|
|
61601
59215
|
0,
|
|
61602
59216
|
0,
|
|
@@ -61613,7 +59227,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61613
59227
|
Math.floor(rect.y) / this.resolution,
|
|
61614
59228
|
Math.floor(rect.w) / this.resolution,
|
|
61615
59229
|
Math.floor(rect.h) / this.resolution
|
|
61616
|
-
), data.trimmed !== false && data.spriteSourceSize && (
|
|
59230
|
+
), data.trimmed !== false && data.spriteSourceSize && (trim = new Rectangle(
|
|
61617
59231
|
Math.floor(data.spriteSourceSize.x) / this.resolution,
|
|
61618
59232
|
Math.floor(data.spriteSourceSize.y) / this.resolution,
|
|
61619
59233
|
Math.floor(rect.w) / this.resolution,
|
|
@@ -61622,7 +59236,7 @@ const _Spritesheet = class _Spritesheet2 {
|
|
|
61622
59236
|
this.baseTexture,
|
|
61623
59237
|
frame,
|
|
61624
59238
|
orig,
|
|
61625
|
-
|
|
59239
|
+
trim,
|
|
61626
59240
|
data.rotated ? 2 : 0,
|
|
61627
59241
|
data.anchor,
|
|
61628
59242
|
data.borders
|
|
@@ -62613,7 +60227,7 @@ function useClickOutside(handler, events2, nodes) {
|
|
|
62613
60227
|
} = event ?? {};
|
|
62614
60228
|
if (Array.isArray(nodes)) {
|
|
62615
60229
|
const shouldIgnore = (target == null ? void 0 : target.hasAttribute("data-ignore-outside-clicks")) || !document.body.contains(target) && target.tagName !== "HTML";
|
|
62616
|
-
nodes.every((
|
|
60230
|
+
nodes.every((node) => !!node && !event.composedPath().includes(node)) && !shouldIgnore && handler();
|
|
62617
60231
|
} else
|
|
62618
60232
|
ref2.current && !ref2.current.contains(target) && handler();
|
|
62619
60233
|
};
|
|
@@ -62850,10 +60464,10 @@ function useHover() {
|
|
|
62850
60464
|
};
|
|
62851
60465
|
return reactExports.useEffect(
|
|
62852
60466
|
() => {
|
|
62853
|
-
const
|
|
62854
|
-
if (
|
|
62855
|
-
return
|
|
62856
|
-
|
|
60467
|
+
const node = ref2.current;
|
|
60468
|
+
if (node)
|
|
60469
|
+
return node.addEventListener("mouseover", handleMouseOver), node.addEventListener("mouseout", handleMouseOut), () => {
|
|
60470
|
+
node.removeEventListener("mouseover", handleMouseOver), node.removeEventListener("mouseout", handleMouseOut);
|
|
62857
60471
|
};
|
|
62858
60472
|
},
|
|
62859
60473
|
[ref2]
|
|
@@ -62899,12 +60513,12 @@ function useToggle(initialState2 = false) {
|
|
|
62899
60513
|
function useTrapFocus() {
|
|
62900
60514
|
const ref2 = reactExports.useRef(null), focusableElements = 'button:not([disabled]), [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
|
|
62901
60515
|
return reactExports.useEffect(() => {
|
|
62902
|
-
const
|
|
60516
|
+
const node = ref2.current, firstFocusableElement = node.querySelectorAll(focusableElements)[0], focusableContent = node.querySelectorAll(focusableElements), lastFocusableElement = ref2 && (focusableContent == null ? void 0 : focusableContent[focusableContent.length - 1]), handleKeydown = (event) => {
|
|
62903
60517
|
event.key === "Tab" && (event.shiftKey ? document.activeElement === firstFocusableElement && (lastFocusableElement.focus(), event.preventDefault()) : document.activeElement === lastFocusableElement && (firstFocusableElement.focus(), event.preventDefault()));
|
|
62904
60518
|
};
|
|
62905
|
-
if (
|
|
62906
|
-
return
|
|
62907
|
-
|
|
60519
|
+
if (node)
|
|
60520
|
+
return node.addEventListener("keydown", handleKeydown), () => {
|
|
60521
|
+
node.removeEventListener("keydown", handleKeydown);
|
|
62908
60522
|
};
|
|
62909
60523
|
}, []), ref2;
|
|
62910
60524
|
}
|
|
@@ -63183,8 +60797,8 @@ function useZendeskGuide() {
|
|
|
63183
60797
|
}
|
|
63184
60798
|
});
|
|
63185
60799
|
}), window.zE("webWidget:on", "userEvent", function(ref2) {
|
|
63186
|
-
const category = ref2.category, action = ref2.action,
|
|
63187
|
-
action === "Contact Form Shown" && category === "Zendesk Web Widget" &&
|
|
60800
|
+
const category = ref2.category, action = ref2.action, properties = ref2.properties;
|
|
60801
|
+
action === "Contact Form Shown" && category === "Zendesk Web Widget" && properties && properties.name === "contact-form" && hasSupportWorkflow && (window.zE("webWidget", "updateSettings", {
|
|
63188
60802
|
webWidget: {
|
|
63189
60803
|
contactForm: {
|
|
63190
60804
|
suppress: true
|
|
@@ -64012,8 +61626,8 @@ const ImagePicker = /* @__PURE__ */ reactExports.forwardRef(({
|
|
|
64012
61626
|
}
|
|
64013
61627
|
});
|
|
64014
61628
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalContext.Provider, { value: modalContextValue, children: transition2((style, isOpen2) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
64015
|
-
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (
|
|
64016
|
-
modalRef.current =
|
|
61629
|
+
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { id: id2, ref: ref2, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id: `${id2}_ref`, ref: (node) => {
|
|
61630
|
+
modalRef.current = node, isOpen2 && (trapRef.current = node);
|
|
64017
61631
|
}, className: dialogClasses, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "modal-content", children }) }) }),
|
|
64018
61632
|
isOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(animated.div, { className: "modal-backdrop fade show", style: {
|
|
64019
61633
|
opacity: 0.65
|
|
@@ -64165,7 +61779,7 @@ const TreeItem = (props) => {
|
|
|
64165
61779
|
reactExports.useEffect(() => {
|
|
64166
61780
|
if (selectedNodesIds != null && selectedNodesIds.length && (selectedNodesIds == null ? void 0 : selectedNodesIds.length) >= 1) {
|
|
64167
61781
|
const lastNodeId = selectedNodesIds[selectedNodesIds.length - 1];
|
|
64168
|
-
selectedNodesIds.some((
|
|
61782
|
+
selectedNodesIds.some((node) => node === nodeId && nodeId !== lastNodeId ? (setExpanded(true), node === nodeId) : (setExpanded(false), false));
|
|
64169
61783
|
} else
|
|
64170
61784
|
setExpanded(false);
|
|
64171
61785
|
}, [nodeId, selectedNodesIds]);
|
|
@@ -64214,7 +61828,7 @@ const TreeItem = (props) => {
|
|
|
64214
61828
|
onTreeItemFocus == null || onTreeItemFocus(nodeId);
|
|
64215
61829
|
}, handleItemBlur = (nodeId) => {
|
|
64216
61830
|
onTreeItemBlur == null || onTreeItemBlur(nodeId);
|
|
64217
|
-
}, renderTree = (
|
|
61831
|
+
}, renderTree = (node) => /* @__PURE__ */ jsxRuntimeExports.jsx(TreeItem$1, { nodeId: node.id, label: node.name, section: node.section, selectedNodesIds, selected: selectedItem === node.id, onItemSelect: handlers.select, onItemFold: handleItemFold, onItemUnfold: handleItemUnfold, onItemFocus: handleItemFocus, onItemBlur: handleItemBlur, children: Array.isArray(node.children) ? node.children.map((item) => renderTree(item)) : null }, node.id);
|
|
64218
61832
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "treeview", children: renderTree(data) });
|
|
64219
61833
|
}), TreeView$1 = TreeView, VisuallyHidden = /* @__PURE__ */ reactExports.forwardRef(({
|
|
64220
61834
|
children
|
|
@@ -65365,17 +62979,17 @@ const stripAccents = (input) => {
|
|
|
65365
62979
|
}, getSafeRegexpString = (input) => input.split("").map((char) => `\\${char}`).join(""), harmonize = (input, delimiter, ignoreInvalid = false) => {
|
|
65366
62980
|
const harmonized = stripAccents(input).trim().toLowerCase(), safeDelimiter = getSafeRegexpString(delimiter);
|
|
65367
62981
|
return ignoreInvalid ? harmonized.replace(/\s+/g, delimiter) : harmonized.replace(new RegExp(`[^a-z0-9${safeDelimiter}]+`, "g"), delimiter).replace(new RegExp(`${safeDelimiter}+`, "g"), delimiter).replace(new RegExp(`^${safeDelimiter}`, "g"), "").replace(new RegExp(`${safeDelimiter}$`, "g"), "");
|
|
65368
|
-
}, slugify = (
|
|
65369
|
-
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !
|
|
62982
|
+
}, slugify = (node, options = { delimiter: "-", prefix: "" }) => {
|
|
62983
|
+
if (options.delimiter || (options.delimiter = "-"), options.prefix || (options.prefix = ""), !node || typeof node == "boolean")
|
|
65370
62984
|
return "";
|
|
65371
62985
|
const { delimiter, prefix: prefix2 } = options;
|
|
65372
|
-
if (typeof
|
|
62986
|
+
if (typeof node == "boolean")
|
|
65373
62987
|
return "";
|
|
65374
|
-
if (typeof
|
|
65375
|
-
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(
|
|
62988
|
+
if (typeof node == "string" || typeof node == "number") {
|
|
62989
|
+
const harmonizedPrefix = harmonize(prefix2, delimiter, true), harmonizedNode = harmonize(String(node), delimiter);
|
|
65376
62990
|
return harmonizedPrefix ? `${harmonizedPrefix}${delimiter}${harmonizedNode}` : harmonizedNode;
|
|
65377
62991
|
}
|
|
65378
|
-
return "children" in
|
|
62992
|
+
return "children" in node ? slugify(node.children) : "type" in node ? slugify(node.props.children, options) : Symbol.iterator in node ? slugify(Array.from(node).map((subNode) => slugify(subNode, { delimiter })).join(delimiter), options) : "";
|
|
65379
62993
|
};
|
|
65380
62994
|
var _default = slugify$1.default = slugify;
|
|
65381
62995
|
const useSlug = ({
|
|
@@ -66117,101 +63731,7 @@ const WidgetAppsFooter = () => {
|
|
|
66117
63731
|
!bookmarkedApps.length && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-dark", children: t2("navbar.myapps.more") }),
|
|
66118
63732
|
bookmarkedApps.slice(0, 6).map((app, index2) => /* @__PURE__ */ jsxRuntimeExports.jsx("a", { href: app.address, className: "bookmarked-app", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AppIcon$1, { app, size: "32" }) }, index2))
|
|
66119
63733
|
] });
|
|
66120
|
-
}
|
|
66121
|
-
function Help({
|
|
66122
|
-
isHelpOpen,
|
|
66123
|
-
setIsHelpOpen,
|
|
66124
|
-
parsedHeadline,
|
|
66125
|
-
parsedContent,
|
|
66126
|
-
error
|
|
66127
|
-
}) {
|
|
66128
|
-
const {
|
|
66129
|
-
t: t2
|
|
66130
|
-
} = useTranslation(), handleHelpOpen = () => {
|
|
66131
|
-
setIsHelpOpen(false);
|
|
66132
|
-
};
|
|
66133
|
-
return isHelpOpen ? /* @__PURE__ */ reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1, { id: "help-modal", isOpen: isHelpOpen, onModalClose: handleHelpOpen, scrollable: true, size: "lg", children: [
|
|
66134
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Header, { onModalClose: handleHelpOpen, children: t2("navbar.help") }),
|
|
66135
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Subtitle, { children: error ? t2("help.notfound.title") : parsedHeadline }),
|
|
66136
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1.Body, { className: error ? "d-flex" : null, children: error ? t2("help.notfound.text") : parsedContent })
|
|
66137
|
-
] }), document.getElementById("portal")) : null;
|
|
66138
|
-
}
|
|
66139
|
-
function useHelp() {
|
|
66140
|
-
var _a2, _b2, _c2, _d2, _e2;
|
|
66141
|
-
const {
|
|
66142
|
-
appCode
|
|
66143
|
-
} = useOdeClient(), {
|
|
66144
|
-
theme
|
|
66145
|
-
} = useOdeTheme(), [html, setHtml] = reactExports.useState(""), [visibility, setVisibility] = reactExports.useState(true), [isModalOpen, setIsModalOpen] = reactExports.useState(false), [error, setError] = reactExports.useState(false), helpPath = theme != null && theme.is1d ? "/help-1d" : "/help-2d";
|
|
66146
|
-
reactExports.useEffect(() => {
|
|
66147
|
-
(async () => {
|
|
66148
|
-
let helpURL = "";
|
|
66149
|
-
helpURL = helpPath + "/application/" + appCode + "/", !appCode && window.location.pathname !== "/adapter" ? helpURL = helpPath + "/application/portal/" : window.location.pathname === "/adapter" ? helpURL = helpPath + "/application/" + window.location.search.split("eliot=")[1].split("&")[0] + "/" : window.location.pathname.includes("/directory/class-admin") ? helpURL = helpPath + "/application/parametrage-de-la-classe/" : (window.location.pathname.includes("/userbook/mon-compte") || window.location.pathname.includes("/timeline/preferencesView") || window.location.pathname.includes("/timeline/historyView")) && (helpURL = helpPath + "/application/userbook/");
|
|
66150
|
-
try {
|
|
66151
|
-
const res = await fetch(helpURL), html2 = await res.text();
|
|
66152
|
-
if (res.status === 404) {
|
|
66153
|
-
setError(true);
|
|
66154
|
-
return;
|
|
66155
|
-
}
|
|
66156
|
-
setHtml(html2), setError(false);
|
|
66157
|
-
} catch (error2) {
|
|
66158
|
-
setError(true), console.error(error2);
|
|
66159
|
-
}
|
|
66160
|
-
})();
|
|
66161
|
-
}, [appCode, helpPath]);
|
|
66162
|
-
const parsedHTML = HTMLReactParser$1(html, {
|
|
66163
|
-
replace: (domNode) => {
|
|
66164
|
-
const typedDomNode = domNode;
|
|
66165
|
-
if (typedDomNode.attribs && typedDomNode.attribs.id === "TOC")
|
|
66166
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs("nav", { id: "TOC", children: [
|
|
66167
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { onClick: () => {
|
|
66168
|
-
setVisibility(!visibility);
|
|
66169
|
-
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgBurgerMenu$1, {}) }),
|
|
66170
|
-
domToReact(typedDomNode.children, {
|
|
66171
|
-
replace: (domNode2) => {
|
|
66172
|
-
const typedDomNode2 = domNode2;
|
|
66173
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "ul")
|
|
66174
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("ul", { id: "TOC-list", style: {
|
|
66175
|
-
display: visibility ? "block" : "none"
|
|
66176
|
-
}, children: domToReact(typedDomNode2.children, {
|
|
66177
|
-
replace: (domNode3) => {
|
|
66178
|
-
const typedDomNode3 = domNode3;
|
|
66179
|
-
if (typedDomNode3.attribs && typedDomNode3.name === "a")
|
|
66180
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("a", { ...attributesToProps2(typedDomNode3.attribs), children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { onClick: () => {
|
|
66181
|
-
setVisibility(false);
|
|
66182
|
-
}, children: domToReact(typedDomNode3.children) }) });
|
|
66183
|
-
}
|
|
66184
|
-
}) });
|
|
66185
|
-
}
|
|
66186
|
-
})
|
|
66187
|
-
] });
|
|
66188
|
-
if (typedDomNode.attribs && typedDomNode.attribs.class === "section level2") {
|
|
66189
|
-
const props = attributesToProps2(domNode.attribs);
|
|
66190
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...props, className: "section level2", style: {
|
|
66191
|
-
display: typedDomNode.attribs.id !== "présentation" ? "none" : "block"
|
|
66192
|
-
}, children: domToReact(typedDomNode.children, {
|
|
66193
|
-
replace: (domNode2) => {
|
|
66194
|
-
const typedDomNode2 = domNode2;
|
|
66195
|
-
if (typedDomNode2.attribs && typedDomNode2.name === "img") {
|
|
66196
|
-
const attribs = domNode2.attribs.src;
|
|
66197
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { ...attributesToProps2(typedDomNode2.attribs), src: `${helpPath}/${attribs}`, alt: "" });
|
|
66198
|
-
}
|
|
66199
|
-
}
|
|
66200
|
-
}) });
|
|
66201
|
-
}
|
|
66202
|
-
}
|
|
66203
|
-
}), parsedContent = (_c2 = (_b2 = (_a2 = parsedHTML == null ? void 0 : parsedHTML.props) == null ? void 0 : _a2.children.find((child) => child.type === "body")) == null ? void 0 : _b2.props) == null ? void 0 : _c2.children, parsedHeadline = (_e2 = (_d2 = parsedContent == null ? void 0 : parsedContent.find((child) => child.type === "p")) == null ? void 0 : _d2.props) == null ? void 0 : _e2.children;
|
|
66204
|
-
return {
|
|
66205
|
-
html,
|
|
66206
|
-
visibility,
|
|
66207
|
-
isModalOpen,
|
|
66208
|
-
setIsModalOpen,
|
|
66209
|
-
parsedContent,
|
|
66210
|
-
parsedHeadline,
|
|
66211
|
-
error
|
|
66212
|
-
};
|
|
66213
|
-
}
|
|
66214
|
-
const SearchEngine = () => {
|
|
63734
|
+
}, SearchEngine = () => {
|
|
66215
63735
|
const [searchRef, isSearchHovered] = useHover(), inputRef = reactExports.useRef(null), popoverSearchId = reactExports.useId(), {
|
|
66216
63736
|
t: t2
|
|
66217
63737
|
} = useTranslation();
|
|
@@ -66245,15 +63765,8 @@ const SearchEngine = () => {
|
|
|
66245
63765
|
user,
|
|
66246
63766
|
avatar
|
|
66247
63767
|
} = useUser(), {
|
|
66248
|
-
currentLanguage,
|
|
66249
63768
|
currentApp
|
|
66250
|
-
} = useOdeClient(), {
|
|
66251
|
-
isModalOpen: isHelpOpen,
|
|
66252
|
-
setIsModalOpen: setIsHelpOpen,
|
|
66253
|
-
parsedContent,
|
|
66254
|
-
parsedHeadline,
|
|
66255
|
-
error
|
|
66256
|
-
} = useHelp(), classes2 = clsx("header", {
|
|
63769
|
+
} = useOdeClient(), classes2 = clsx("header", {
|
|
66257
63770
|
"no-2d": is1d,
|
|
66258
63771
|
"no-1d": !is1d
|
|
66259
63772
|
}), {
|
|
@@ -66289,15 +63802,6 @@ const SearchEngine = () => {
|
|
|
66289
63802
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.messages") })
|
|
66290
63803
|
] }) }),
|
|
66291
63804
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { link: "/userbook/mon-compte", className: "dropdown-item", translate: t2("navbar.myaccount"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneProfile$1, { className: "icon user" }) }) }),
|
|
66292
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66293
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: () => {
|
|
66294
|
-
setIsHelpOpen(true);
|
|
66295
|
-
}, children: [
|
|
66296
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgOneAssistance$1, { className: "icon help" }),
|
|
66297
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.help") })
|
|
66298
|
-
] }),
|
|
66299
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66300
|
-
] }) : null,
|
|
66301
63805
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link", onClick: handleLogout, children: [
|
|
66302
63806
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgDisconnect$1, { className: "icon logout" }),
|
|
66303
63807
|
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("navbar.disconnect") })
|
|
@@ -66342,15 +63846,6 @@ const SearchEngine = () => {
|
|
|
66342
63846
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoMessaging$1, { color: "#fff" }),
|
|
66343
63847
|
hasMessages && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { children: messages2 })
|
|
66344
63848
|
] }) }),
|
|
66345
|
-
currentLanguage === "fr" ? /* @__PURE__ */ jsxRuntimeExports.jsxs(NavItem, { children: [
|
|
66346
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: "nav-link btn btn-naked", onClick: () => {
|
|
66347
|
-
setIsHelpOpen(true);
|
|
66348
|
-
}, children: [
|
|
66349
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(SvgNeoAssistance$1, { color: "#fff" }),
|
|
66350
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(VisuallyHidden$1, { children: t2("support") })
|
|
66351
|
-
] }),
|
|
66352
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Help, { isHelpOpen, setIsHelpOpen, parsedContent, parsedHeadline, error })
|
|
66353
|
-
] }) : null,
|
|
66354
63849
|
/* @__PURE__ */ jsxRuntimeExports.jsx(NavItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "dropdown", children: [
|
|
66355
63850
|
/* @__PURE__ */ jsxRuntimeExports.jsx("button", { className: "nav-link btn btn-naked d-md-none", type: "button", "aria-controls": "dropdown-navbar", "aria-expanded": !isCollapsed, "aria-label": t2("navbar.open.menu"), onClick: toggleCollapsedNav, children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgRafterDown$1, { className: "icon rafter-down", width: "20", height: "20", color: "#fff" }) }),
|
|
66356
63851
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("ul", { className: `dropdown-menu dropdown-menu-end ${isCollapsed ? "" : "show"}`, id: "dropdown-navbar", children: [
|
|
@@ -66626,7 +64121,7 @@ withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2,
|
|
|
66626
64121
|
var withSelectorExports = withSelector.exports;
|
|
66627
64122
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
|
|
66628
64123
|
var define_import_meta_env_default = { BASE_URL: "/", MODE: "production", DEV: false, PROD: true, SSR: false };
|
|
66629
|
-
const { useDebugValue } = React
|
|
64124
|
+
const { useDebugValue } = React;
|
|
66630
64125
|
const { useSyncExternalStoreWithSelector } = useSyncExternalStoreExports;
|
|
66631
64126
|
let didWarnAboutEqualityFn = false;
|
|
66632
64127
|
const identity = (arg) => arg;
|
|
@@ -66873,11 +64368,11 @@ class TreeNodeFolderWrapper {
|
|
|
66873
64368
|
}
|
|
66874
64369
|
}
|
|
66875
64370
|
const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
66876
|
-
return modifyNode(treeNode, (
|
|
66877
|
-
if (
|
|
66878
|
-
|
|
64371
|
+
return modifyNode(treeNode, (node) => {
|
|
64372
|
+
if (node.id === parentId) {
|
|
64373
|
+
node.children = folders == null ? void 0 : folders.map((e2) => new TreeNodeFolderWrapper(e2));
|
|
66879
64374
|
}
|
|
66880
|
-
return
|
|
64375
|
+
return node;
|
|
66881
64376
|
});
|
|
66882
64377
|
};
|
|
66883
64378
|
const initialState = {
|
|
@@ -67274,45 +64769,45 @@ const useTrashModal = () => {
|
|
|
67274
64769
|
};
|
|
67275
64770
|
};
|
|
67276
64771
|
function addNode(treeData, { parentId, newFolder }) {
|
|
67277
|
-
return modifyNode(treeData, (
|
|
64772
|
+
return modifyNode(treeData, (node) => {
|
|
67278
64773
|
var _a2;
|
|
67279
|
-
if (
|
|
64774
|
+
if (node.id === parentId) {
|
|
67280
64775
|
const parentAncestors = [
|
|
67281
|
-
...((_a2 =
|
|
64776
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67282
64777
|
];
|
|
67283
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
64778
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
67284
64779
|
const newNode = {
|
|
67285
|
-
...
|
|
64780
|
+
...node,
|
|
67286
64781
|
children: [
|
|
67287
|
-
...
|
|
64782
|
+
...node.children || [],
|
|
67288
64783
|
new TreeNodeFolderWrapper({ ...newFolder, ancestors })
|
|
67289
64784
|
]
|
|
67290
64785
|
};
|
|
67291
64786
|
return newNode;
|
|
67292
64787
|
} else {
|
|
67293
|
-
return
|
|
64788
|
+
return node;
|
|
67294
64789
|
}
|
|
67295
64790
|
});
|
|
67296
64791
|
}
|
|
67297
64792
|
function deleteNode(treeData, { folders }) {
|
|
67298
|
-
return modifyNode(treeData, (
|
|
67299
|
-
if (folders.includes(
|
|
64793
|
+
return modifyNode(treeData, (node) => {
|
|
64794
|
+
if (folders.includes(node.id)) {
|
|
67300
64795
|
return void 0;
|
|
67301
64796
|
} else {
|
|
67302
|
-
return
|
|
64797
|
+
return node;
|
|
67303
64798
|
}
|
|
67304
64799
|
});
|
|
67305
64800
|
}
|
|
67306
64801
|
function moveNode(treeData, { destinationId, folders }) {
|
|
67307
|
-
return modifyNode(treeData, (
|
|
64802
|
+
return modifyNode(treeData, (node, parent) => {
|
|
67308
64803
|
var _a2, _b2;
|
|
67309
|
-
if (destinationId ===
|
|
64804
|
+
if (destinationId === node.id) {
|
|
67310
64805
|
const parentAncestors = [
|
|
67311
|
-
...((_a2 =
|
|
64806
|
+
...((_a2 = node.folder) == null ? void 0 : _a2.ancestors) || []
|
|
67312
64807
|
];
|
|
67313
|
-
const ancestors = arrayUnique([...parentAncestors,
|
|
67314
|
-
const newChildren = [...
|
|
67315
|
-
const childrenIds = ((_b2 =
|
|
64808
|
+
const ancestors = arrayUnique([...parentAncestors, node.id]);
|
|
64809
|
+
const newChildren = [...node.children || []];
|
|
64810
|
+
const childrenIds = ((_b2 = node.children) == null ? void 0 : _b2.map((child) => child.id)) || [];
|
|
67316
64811
|
for (const folder of folders) {
|
|
67317
64812
|
if (!childrenIds.includes(folder)) {
|
|
67318
64813
|
const item = findNodeById(folder, treeData);
|
|
@@ -67326,23 +64821,23 @@ function moveNode(treeData, { destinationId, folders }) {
|
|
|
67326
64821
|
}
|
|
67327
64822
|
}
|
|
67328
64823
|
const newNode = {
|
|
67329
|
-
...
|
|
64824
|
+
...node,
|
|
67330
64825
|
children: newChildren
|
|
67331
64826
|
};
|
|
67332
64827
|
return newNode;
|
|
67333
|
-
} else if (folders.includes(
|
|
64828
|
+
} else if (folders.includes(node.id) && destinationId !== (parent == null ? void 0 : parent.id)) {
|
|
67334
64829
|
return void 0;
|
|
67335
64830
|
} else {
|
|
67336
|
-
return
|
|
64831
|
+
return node;
|
|
67337
64832
|
}
|
|
67338
64833
|
});
|
|
67339
64834
|
}
|
|
67340
64835
|
function updateNode(treeData, { folderId, newFolder }) {
|
|
67341
|
-
return modifyNode(treeData, (
|
|
67342
|
-
if (
|
|
64836
|
+
return modifyNode(treeData, (node) => {
|
|
64837
|
+
if (node.id === folderId) {
|
|
67343
64838
|
return new TreeNodeFolderWrapper(newFolder);
|
|
67344
64839
|
} else {
|
|
67345
|
-
return
|
|
64840
|
+
return node;
|
|
67346
64841
|
}
|
|
67347
64842
|
});
|
|
67348
64843
|
}
|
|
@@ -68897,10 +66392,10 @@ const ResourcesList = ({
|
|
|
68897
66392
|
setSelectedResources([...selectedResources, resource]);
|
|
68898
66393
|
}
|
|
68899
66394
|
const classes2 = clsx("grid ps-0 list-unstyled");
|
|
68900
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React
|
|
66395
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(React.Fragment, { children: [
|
|
68901
66396
|
/* @__PURE__ */ jsxRuntimeExports.jsx(animated.ul, { className: classes2, children: data == null ? void 0 : data.pages.map((page, index2) => (
|
|
68902
66397
|
// eslint-disable-next-line react/no-array-index-key
|
|
68903
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(React
|
|
66398
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(React.Fragment, { children: page.resources.map((resource) => {
|
|
68904
66399
|
const { id: id2, updatedAt } = resource;
|
|
68905
66400
|
const time = dayjs(updatedAt).locale(currentLanguage).fromNow();
|
|
68906
66401
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|