@mrts/soltw 0.3.23 → 0.3.25
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 +18 -450
- package/dist/index.jsx +23 -778
- package/package.json +2 -2
package/dist/index.jsx
CHANGED
|
@@ -37,8 +37,6 @@ function setHydrateContext(context) {
|
|
|
37
37
|
sharedConfig.context = context;
|
|
38
38
|
}
|
|
39
39
|
const equalFn = (a, b) => a === b;
|
|
40
|
-
const $PROXY = Symbol("solid-proxy");
|
|
41
|
-
const SUPPORTS_PROXY = typeof Proxy === "function";
|
|
42
40
|
const $TRACK = Symbol("solid-track");
|
|
43
41
|
const signalOptions = { equals: equalFn };
|
|
44
42
|
let ERROR = null;
|
|
@@ -90,11 +88,6 @@ function createSignal(value, options) {
|
|
|
90
88
|
};
|
|
91
89
|
return [readSignal.bind(s), setter];
|
|
92
90
|
}
|
|
93
|
-
function createRenderEffect(fn, value, options) {
|
|
94
|
-
const c = createComputation(fn, value, false, STALE);
|
|
95
|
-
if (Scheduler && Transition && Transition.running) Updates.push(c);
|
|
96
|
-
else updateComputation(c);
|
|
97
|
-
}
|
|
98
91
|
function createEffect(fn, value, options) {
|
|
99
92
|
runEffects = runUserEffects;
|
|
100
93
|
const c = createComputation(fn, value, false, STALE), s = SuspenseContext && useContext(SuspenseContext);
|
|
@@ -610,78 +603,6 @@ function mapArray(list, mapFn, options = {}) {
|
|
|
610
603
|
}
|
|
611
604
|
};
|
|
612
605
|
}
|
|
613
|
-
function trueFn() {
|
|
614
|
-
return true;
|
|
615
|
-
}
|
|
616
|
-
const propTraps = {
|
|
617
|
-
get(_, property, receiver) {
|
|
618
|
-
if (property === $PROXY) return receiver;
|
|
619
|
-
return _.get(property);
|
|
620
|
-
},
|
|
621
|
-
has(_, property) {
|
|
622
|
-
if (property === $PROXY) return true;
|
|
623
|
-
return _.has(property);
|
|
624
|
-
},
|
|
625
|
-
set: trueFn,
|
|
626
|
-
deleteProperty: trueFn,
|
|
627
|
-
getOwnPropertyDescriptor(_, property) {
|
|
628
|
-
return {
|
|
629
|
-
configurable: true,
|
|
630
|
-
enumerable: true,
|
|
631
|
-
get() {
|
|
632
|
-
return _.get(property);
|
|
633
|
-
},
|
|
634
|
-
set: trueFn,
|
|
635
|
-
deleteProperty: trueFn
|
|
636
|
-
};
|
|
637
|
-
},
|
|
638
|
-
ownKeys(_) {
|
|
639
|
-
return _.keys();
|
|
640
|
-
}
|
|
641
|
-
};
|
|
642
|
-
function splitProps(props, ...keys) {
|
|
643
|
-
const len = keys.length;
|
|
644
|
-
if (SUPPORTS_PROXY && $PROXY in props) {
|
|
645
|
-
const blocked = len > 1 ? keys.flat() : keys[0];
|
|
646
|
-
const res = keys.map((k) => {
|
|
647
|
-
return new Proxy({
|
|
648
|
-
get(property) {
|
|
649
|
-
return k.includes(property) ? props[property] : void 0;
|
|
650
|
-
},
|
|
651
|
-
has(property) {
|
|
652
|
-
return k.includes(property) && property in props;
|
|
653
|
-
},
|
|
654
|
-
keys() {
|
|
655
|
-
return k.filter((property) => property in props);
|
|
656
|
-
}
|
|
657
|
-
}, propTraps);
|
|
658
|
-
});
|
|
659
|
-
res.push(new Proxy({
|
|
660
|
-
get(property) {
|
|
661
|
-
return blocked.includes(property) ? void 0 : props[property];
|
|
662
|
-
},
|
|
663
|
-
has(property) {
|
|
664
|
-
return blocked.includes(property) ? false : property in props;
|
|
665
|
-
},
|
|
666
|
-
keys() {
|
|
667
|
-
return Object.keys(props).filter((k) => !blocked.includes(k));
|
|
668
|
-
}
|
|
669
|
-
}, propTraps));
|
|
670
|
-
return res;
|
|
671
|
-
}
|
|
672
|
-
const objects = [];
|
|
673
|
-
for (let i = 0; i <= len; i++) objects[i] = {};
|
|
674
|
-
for (const propName of Object.getOwnPropertyNames(props)) {
|
|
675
|
-
let keyIndex = len;
|
|
676
|
-
for (let i = 0; i < keys.length; i++) if (keys[i].includes(propName)) {
|
|
677
|
-
keyIndex = i;
|
|
678
|
-
break;
|
|
679
|
-
}
|
|
680
|
-
const desc = Object.getOwnPropertyDescriptor(props, propName);
|
|
681
|
-
!desc.get && !desc.set && desc.enumerable && desc.writable && desc.configurable ? objects[keyIndex][propName] = desc.value : Object.defineProperty(objects[keyIndex], propName, desc);
|
|
682
|
-
}
|
|
683
|
-
return objects;
|
|
684
|
-
}
|
|
685
606
|
const narrowedError = (name) => `Stale read from <${name}>.`;
|
|
686
607
|
function For(props) {
|
|
687
608
|
const fallback = "fallback" in props && { fallback: () => props.fallback };
|
|
@@ -730,9 +651,9 @@ const ARBITRARY_PROPERTY_PREFIX = "arbitrary..";
|
|
|
730
651
|
const createClassGroupUtils = (config) => {
|
|
731
652
|
const classMap = createClassMap(config);
|
|
732
653
|
const { conflictingClassGroups, conflictingClassGroupModifiers } = config;
|
|
733
|
-
const getClassGroupId = (className
|
|
734
|
-
if (className
|
|
735
|
-
const classParts = className
|
|
654
|
+
const getClassGroupId = (className) => {
|
|
655
|
+
if (className.startsWith("[") && className.endsWith("]")) return getGroupIdForArbitraryProperty(className);
|
|
656
|
+
const classParts = className.split(CLASS_PART_SEPARATOR);
|
|
736
657
|
return getGroupRecursive(classParts, classParts[0] === "" && classParts.length > 1 ? 1 : 0, classMap);
|
|
737
658
|
};
|
|
738
659
|
const getConflictingClassGroupIds = (classGroupId, hasPostfixModifier) => {
|
|
@@ -774,8 +695,8 @@ const getGroupRecursive = (classParts, startIndex, classPartObject) => {
|
|
|
774
695
|
*
|
|
775
696
|
* @param className - The class name to get the group ID for. Is expected to be string starting with `[` and ending with `]`.
|
|
776
697
|
*/
|
|
777
|
-
const getGroupIdForArbitraryProperty = (className
|
|
778
|
-
const content = className
|
|
698
|
+
const getGroupIdForArbitraryProperty = (className) => className.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
699
|
+
const content = className.slice(1, -1);
|
|
779
700
|
const colonIndex = content.indexOf(":");
|
|
780
701
|
const property = content.slice(0, colonIndex);
|
|
781
702
|
return property ? ARBITRARY_PROPERTY_PREFIX + property : void 0;
|
|
@@ -899,18 +820,18 @@ const createParseClassName = (config) => {
|
|
|
899
820
|
* Inspired by `splitAtTopLevelOnly` used in Tailwind CSS
|
|
900
821
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v3.2.2/src/util/splitAtTopLevelOnly.js
|
|
901
822
|
*/
|
|
902
|
-
let parseClassName = (className
|
|
823
|
+
let parseClassName = (className) => {
|
|
903
824
|
const modifiers = [];
|
|
904
825
|
let bracketDepth = 0;
|
|
905
826
|
let parenDepth = 0;
|
|
906
827
|
let modifierStart = 0;
|
|
907
828
|
let postfixModifierPosition;
|
|
908
|
-
const len = className
|
|
829
|
+
const len = className.length;
|
|
909
830
|
for (let index = 0; index < len; index++) {
|
|
910
|
-
const currentCharacter = className
|
|
831
|
+
const currentCharacter = className[index];
|
|
911
832
|
if (bracketDepth === 0 && parenDepth === 0) {
|
|
912
833
|
if (currentCharacter === MODIFIER_SEPARATOR) {
|
|
913
|
-
modifiers.push(className
|
|
834
|
+
modifiers.push(className.slice(modifierStart, index));
|
|
914
835
|
modifierStart = index + 1;
|
|
915
836
|
continue;
|
|
916
837
|
}
|
|
@@ -924,7 +845,7 @@ const createParseClassName = (config) => {
|
|
|
924
845
|
else if (currentCharacter === "(") parenDepth++;
|
|
925
846
|
else if (currentCharacter === ")") parenDepth--;
|
|
926
847
|
}
|
|
927
|
-
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className
|
|
848
|
+
const baseClassNameWithImportantModifier = modifiers.length === 0 ? className : className.slice(modifierStart);
|
|
928
849
|
let baseClassName = baseClassNameWithImportantModifier;
|
|
929
850
|
let hasImportantModifier = false;
|
|
930
851
|
if (baseClassNameWithImportantModifier.endsWith(IMPORTANT_MODIFIER)) {
|
|
@@ -940,12 +861,12 @@ const createParseClassName = (config) => {
|
|
|
940
861
|
if (prefix) {
|
|
941
862
|
const fullPrefix = prefix + MODIFIER_SEPARATOR;
|
|
942
863
|
const parseClassNameOriginal = parseClassName;
|
|
943
|
-
parseClassName = (className
|
|
864
|
+
parseClassName = (className) => className.startsWith(fullPrefix) ? parseClassNameOriginal(className.slice(fullPrefix.length)) : createResultObject(EMPTY_MODIFIERS, false, className, void 0, true);
|
|
944
865
|
}
|
|
945
866
|
if (experimentalParseClassName) {
|
|
946
867
|
const parseClassNameOriginal = parseClassName;
|
|
947
|
-
parseClassName = (className
|
|
948
|
-
className
|
|
868
|
+
parseClassName = (className) => experimentalParseClassName({
|
|
869
|
+
className,
|
|
949
870
|
parseClassName: parseClassNameOriginal
|
|
950
871
|
});
|
|
951
872
|
}
|
|
@@ -991,7 +912,7 @@ const createConfigUtils = (config) => ({
|
|
|
991
912
|
...createClassGroupUtils(config)
|
|
992
913
|
});
|
|
993
914
|
const SPLIT_CLASSES_REGEX = /\s+/;
|
|
994
|
-
const mergeClassList = (classList
|
|
915
|
+
const mergeClassList = (classList, configUtils) => {
|
|
995
916
|
const { parseClassName, getClassGroupId, getConflictingClassGroupIds, sortModifiers } = configUtils;
|
|
996
917
|
/**
|
|
997
918
|
* Set of classGroupIds in following format:
|
|
@@ -1001,7 +922,7 @@ const mergeClassList = (classList$1, configUtils) => {
|
|
|
1001
922
|
* @example 'md:!pr'
|
|
1002
923
|
*/
|
|
1003
924
|
const classGroupsInConflict = [];
|
|
1004
|
-
const classNames = classList
|
|
925
|
+
const classNames = classList.trim().split(SPLIT_CLASSES_REGEX);
|
|
1005
926
|
let result = "";
|
|
1006
927
|
for (let index = classNames.length - 1; index >= 0; index -= 1) {
|
|
1007
928
|
const originalClassName = classNames[index];
|
|
@@ -1077,18 +998,18 @@ const createTailwindMerge = (createConfigFirst, ...createConfigRest) => {
|
|
|
1077
998
|
let cacheGet;
|
|
1078
999
|
let cacheSet;
|
|
1079
1000
|
let functionToCall;
|
|
1080
|
-
const initTailwindMerge = (classList
|
|
1001
|
+
const initTailwindMerge = (classList) => {
|
|
1081
1002
|
configUtils = createConfigUtils(createConfigRest.reduce((previousConfig, createConfigCurrent) => createConfigCurrent(previousConfig), createConfigFirst()));
|
|
1082
1003
|
cacheGet = configUtils.cache.get;
|
|
1083
1004
|
cacheSet = configUtils.cache.set;
|
|
1084
1005
|
functionToCall = tailwindMerge;
|
|
1085
|
-
return tailwindMerge(classList
|
|
1006
|
+
return tailwindMerge(classList);
|
|
1086
1007
|
};
|
|
1087
|
-
const tailwindMerge = (classList
|
|
1088
|
-
const cachedResult = cacheGet(classList
|
|
1008
|
+
const tailwindMerge = (classList) => {
|
|
1009
|
+
const cachedResult = cacheGet(classList);
|
|
1089
1010
|
if (cachedResult) return cachedResult;
|
|
1090
|
-
const result = mergeClassList(classList
|
|
1091
|
-
cacheSet(classList
|
|
1011
|
+
const result = mergeClassList(classList, configUtils);
|
|
1012
|
+
cacheSet(classList, result);
|
|
1092
1013
|
return result;
|
|
1093
1014
|
};
|
|
1094
1015
|
functionToCall = initTailwindMerge;
|
|
@@ -2888,685 +2809,9 @@ const Item = (props) => {
|
|
|
2888
2809
|
</div>;
|
|
2889
2810
|
};
|
|
2890
2811
|
|
|
2891
|
-
//#endregion
|
|
2892
|
-
//#region ../../node_modules/solid-js/web/dist/web.js
|
|
2893
|
-
const Properties = /* @__PURE__ */ new Set([
|
|
2894
|
-
"className",
|
|
2895
|
-
"value",
|
|
2896
|
-
"readOnly",
|
|
2897
|
-
"noValidate",
|
|
2898
|
-
"formNoValidate",
|
|
2899
|
-
"isMap",
|
|
2900
|
-
"noModule",
|
|
2901
|
-
"playsInline",
|
|
2902
|
-
"adAuctionHeaders",
|
|
2903
|
-
"allowFullscreen",
|
|
2904
|
-
"browsingTopics",
|
|
2905
|
-
"defaultChecked",
|
|
2906
|
-
"defaultMuted",
|
|
2907
|
-
"defaultSelected",
|
|
2908
|
-
"disablePictureInPicture",
|
|
2909
|
-
"disableRemotePlayback",
|
|
2910
|
-
"preservesPitch",
|
|
2911
|
-
"shadowRootClonable",
|
|
2912
|
-
"shadowRootCustomElementRegistry",
|
|
2913
|
-
"shadowRootDelegatesFocus",
|
|
2914
|
-
"shadowRootSerializable",
|
|
2915
|
-
"sharedStorageWritable",
|
|
2916
|
-
...[
|
|
2917
|
-
"allowfullscreen",
|
|
2918
|
-
"async",
|
|
2919
|
-
"alpha",
|
|
2920
|
-
"autofocus",
|
|
2921
|
-
"autoplay",
|
|
2922
|
-
"checked",
|
|
2923
|
-
"controls",
|
|
2924
|
-
"default",
|
|
2925
|
-
"disabled",
|
|
2926
|
-
"formnovalidate",
|
|
2927
|
-
"hidden",
|
|
2928
|
-
"indeterminate",
|
|
2929
|
-
"inert",
|
|
2930
|
-
"ismap",
|
|
2931
|
-
"loop",
|
|
2932
|
-
"multiple",
|
|
2933
|
-
"muted",
|
|
2934
|
-
"nomodule",
|
|
2935
|
-
"novalidate",
|
|
2936
|
-
"open",
|
|
2937
|
-
"playsinline",
|
|
2938
|
-
"readonly",
|
|
2939
|
-
"required",
|
|
2940
|
-
"reversed",
|
|
2941
|
-
"seamless",
|
|
2942
|
-
"selected",
|
|
2943
|
-
"adauctionheaders",
|
|
2944
|
-
"browsingtopics",
|
|
2945
|
-
"credentialless",
|
|
2946
|
-
"defaultchecked",
|
|
2947
|
-
"defaultmuted",
|
|
2948
|
-
"defaultselected",
|
|
2949
|
-
"defer",
|
|
2950
|
-
"disablepictureinpicture",
|
|
2951
|
-
"disableremoteplayback",
|
|
2952
|
-
"preservespitch",
|
|
2953
|
-
"shadowrootclonable",
|
|
2954
|
-
"shadowrootcustomelementregistry",
|
|
2955
|
-
"shadowrootdelegatesfocus",
|
|
2956
|
-
"shadowrootserializable",
|
|
2957
|
-
"sharedstoragewritable"
|
|
2958
|
-
]
|
|
2959
|
-
]);
|
|
2960
|
-
const ChildProperties = /* @__PURE__ */ new Set([
|
|
2961
|
-
"innerHTML",
|
|
2962
|
-
"textContent",
|
|
2963
|
-
"innerText",
|
|
2964
|
-
"children"
|
|
2965
|
-
]);
|
|
2966
|
-
const Aliases = /* @__PURE__ */ Object.assign(Object.create(null), {
|
|
2967
|
-
className: "class",
|
|
2968
|
-
htmlFor: "for"
|
|
2969
|
-
});
|
|
2970
|
-
const PropAliases = /* @__PURE__ */ Object.assign(Object.create(null), {
|
|
2971
|
-
class: "className",
|
|
2972
|
-
novalidate: {
|
|
2973
|
-
$: "noValidate",
|
|
2974
|
-
FORM: 1
|
|
2975
|
-
},
|
|
2976
|
-
formnovalidate: {
|
|
2977
|
-
$: "formNoValidate",
|
|
2978
|
-
BUTTON: 1,
|
|
2979
|
-
INPUT: 1
|
|
2980
|
-
},
|
|
2981
|
-
ismap: {
|
|
2982
|
-
$: "isMap",
|
|
2983
|
-
IMG: 1
|
|
2984
|
-
},
|
|
2985
|
-
nomodule: {
|
|
2986
|
-
$: "noModule",
|
|
2987
|
-
SCRIPT: 1
|
|
2988
|
-
},
|
|
2989
|
-
playsinline: {
|
|
2990
|
-
$: "playsInline",
|
|
2991
|
-
VIDEO: 1
|
|
2992
|
-
},
|
|
2993
|
-
readonly: {
|
|
2994
|
-
$: "readOnly",
|
|
2995
|
-
INPUT: 1,
|
|
2996
|
-
TEXTAREA: 1
|
|
2997
|
-
},
|
|
2998
|
-
adauctionheaders: {
|
|
2999
|
-
$: "adAuctionHeaders",
|
|
3000
|
-
IFRAME: 1
|
|
3001
|
-
},
|
|
3002
|
-
allowfullscreen: {
|
|
3003
|
-
$: "allowFullscreen",
|
|
3004
|
-
IFRAME: 1
|
|
3005
|
-
},
|
|
3006
|
-
browsingtopics: {
|
|
3007
|
-
$: "browsingTopics",
|
|
3008
|
-
IMG: 1
|
|
3009
|
-
},
|
|
3010
|
-
defaultchecked: {
|
|
3011
|
-
$: "defaultChecked",
|
|
3012
|
-
INPUT: 1
|
|
3013
|
-
},
|
|
3014
|
-
defaultmuted: {
|
|
3015
|
-
$: "defaultMuted",
|
|
3016
|
-
AUDIO: 1,
|
|
3017
|
-
VIDEO: 1
|
|
3018
|
-
},
|
|
3019
|
-
defaultselected: {
|
|
3020
|
-
$: "defaultSelected",
|
|
3021
|
-
OPTION: 1
|
|
3022
|
-
},
|
|
3023
|
-
disablepictureinpicture: {
|
|
3024
|
-
$: "disablePictureInPicture",
|
|
3025
|
-
VIDEO: 1
|
|
3026
|
-
},
|
|
3027
|
-
disableremoteplayback: {
|
|
3028
|
-
$: "disableRemotePlayback",
|
|
3029
|
-
AUDIO: 1,
|
|
3030
|
-
VIDEO: 1
|
|
3031
|
-
},
|
|
3032
|
-
preservespitch: {
|
|
3033
|
-
$: "preservesPitch",
|
|
3034
|
-
AUDIO: 1,
|
|
3035
|
-
VIDEO: 1
|
|
3036
|
-
},
|
|
3037
|
-
shadowrootclonable: {
|
|
3038
|
-
$: "shadowRootClonable",
|
|
3039
|
-
TEMPLATE: 1
|
|
3040
|
-
},
|
|
3041
|
-
shadowrootdelegatesfocus: {
|
|
3042
|
-
$: "shadowRootDelegatesFocus",
|
|
3043
|
-
TEMPLATE: 1
|
|
3044
|
-
},
|
|
3045
|
-
shadowrootserializable: {
|
|
3046
|
-
$: "shadowRootSerializable",
|
|
3047
|
-
TEMPLATE: 1
|
|
3048
|
-
},
|
|
3049
|
-
sharedstoragewritable: {
|
|
3050
|
-
$: "sharedStorageWritable",
|
|
3051
|
-
IFRAME: 1,
|
|
3052
|
-
IMG: 1
|
|
3053
|
-
}
|
|
3054
|
-
});
|
|
3055
|
-
function getPropAlias(prop, tagName) {
|
|
3056
|
-
const a = PropAliases[prop];
|
|
3057
|
-
return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
|
|
3058
|
-
}
|
|
3059
|
-
const DelegatedEvents = /* @__PURE__ */ new Set([
|
|
3060
|
-
"beforeinput",
|
|
3061
|
-
"click",
|
|
3062
|
-
"dblclick",
|
|
3063
|
-
"contextmenu",
|
|
3064
|
-
"focusin",
|
|
3065
|
-
"focusout",
|
|
3066
|
-
"input",
|
|
3067
|
-
"keydown",
|
|
3068
|
-
"keyup",
|
|
3069
|
-
"mousedown",
|
|
3070
|
-
"mousemove",
|
|
3071
|
-
"mouseout",
|
|
3072
|
-
"mouseover",
|
|
3073
|
-
"mouseup",
|
|
3074
|
-
"pointerdown",
|
|
3075
|
-
"pointermove",
|
|
3076
|
-
"pointerout",
|
|
3077
|
-
"pointerover",
|
|
3078
|
-
"pointerup",
|
|
3079
|
-
"touchend",
|
|
3080
|
-
"touchmove",
|
|
3081
|
-
"touchstart"
|
|
3082
|
-
]);
|
|
3083
|
-
const SVGElements = /* @__PURE__ */ new Set([
|
|
3084
|
-
"altGlyph",
|
|
3085
|
-
"altGlyphDef",
|
|
3086
|
-
"altGlyphItem",
|
|
3087
|
-
"animate",
|
|
3088
|
-
"animateColor",
|
|
3089
|
-
"animateMotion",
|
|
3090
|
-
"animateTransform",
|
|
3091
|
-
"circle",
|
|
3092
|
-
"clipPath",
|
|
3093
|
-
"color-profile",
|
|
3094
|
-
"cursor",
|
|
3095
|
-
"defs",
|
|
3096
|
-
"desc",
|
|
3097
|
-
"ellipse",
|
|
3098
|
-
"feBlend",
|
|
3099
|
-
"feColorMatrix",
|
|
3100
|
-
"feComponentTransfer",
|
|
3101
|
-
"feComposite",
|
|
3102
|
-
"feConvolveMatrix",
|
|
3103
|
-
"feDiffuseLighting",
|
|
3104
|
-
"feDisplacementMap",
|
|
3105
|
-
"feDistantLight",
|
|
3106
|
-
"feDropShadow",
|
|
3107
|
-
"feFlood",
|
|
3108
|
-
"feFuncA",
|
|
3109
|
-
"feFuncB",
|
|
3110
|
-
"feFuncG",
|
|
3111
|
-
"feFuncR",
|
|
3112
|
-
"feGaussianBlur",
|
|
3113
|
-
"feImage",
|
|
3114
|
-
"feMerge",
|
|
3115
|
-
"feMergeNode",
|
|
3116
|
-
"feMorphology",
|
|
3117
|
-
"feOffset",
|
|
3118
|
-
"fePointLight",
|
|
3119
|
-
"feSpecularLighting",
|
|
3120
|
-
"feSpotLight",
|
|
3121
|
-
"feTile",
|
|
3122
|
-
"feTurbulence",
|
|
3123
|
-
"filter",
|
|
3124
|
-
"font",
|
|
3125
|
-
"font-face",
|
|
3126
|
-
"font-face-format",
|
|
3127
|
-
"font-face-name",
|
|
3128
|
-
"font-face-src",
|
|
3129
|
-
"font-face-uri",
|
|
3130
|
-
"foreignObject",
|
|
3131
|
-
"g",
|
|
3132
|
-
"glyph",
|
|
3133
|
-
"glyphRef",
|
|
3134
|
-
"hkern",
|
|
3135
|
-
"image",
|
|
3136
|
-
"line",
|
|
3137
|
-
"linearGradient",
|
|
3138
|
-
"marker",
|
|
3139
|
-
"mask",
|
|
3140
|
-
"metadata",
|
|
3141
|
-
"missing-glyph",
|
|
3142
|
-
"mpath",
|
|
3143
|
-
"path",
|
|
3144
|
-
"pattern",
|
|
3145
|
-
"polygon",
|
|
3146
|
-
"polyline",
|
|
3147
|
-
"radialGradient",
|
|
3148
|
-
"rect",
|
|
3149
|
-
"set",
|
|
3150
|
-
"stop",
|
|
3151
|
-
"svg",
|
|
3152
|
-
"switch",
|
|
3153
|
-
"symbol",
|
|
3154
|
-
"text",
|
|
3155
|
-
"textPath",
|
|
3156
|
-
"tref",
|
|
3157
|
-
"tspan",
|
|
3158
|
-
"use",
|
|
3159
|
-
"view",
|
|
3160
|
-
"vkern"
|
|
3161
|
-
]);
|
|
3162
|
-
const SVGNamespace = {
|
|
3163
|
-
xlink: "http://www.w3.org/1999/xlink",
|
|
3164
|
-
xml: "http://www.w3.org/XML/1998/namespace"
|
|
3165
|
-
};
|
|
3166
|
-
function reconcileArrays(parentNode, a, b) {
|
|
3167
|
-
let bLength = b.length, aEnd = a.length, bEnd = bLength, aStart = 0, bStart = 0, after = a[aEnd - 1].nextSibling, map = null;
|
|
3168
|
-
while (aStart < aEnd || bStart < bEnd) {
|
|
3169
|
-
if (a[aStart] === b[bStart]) {
|
|
3170
|
-
aStart++;
|
|
3171
|
-
bStart++;
|
|
3172
|
-
continue;
|
|
3173
|
-
}
|
|
3174
|
-
while (a[aEnd - 1] === b[bEnd - 1]) {
|
|
3175
|
-
aEnd--;
|
|
3176
|
-
bEnd--;
|
|
3177
|
-
}
|
|
3178
|
-
if (aEnd === aStart) {
|
|
3179
|
-
const node = bEnd < bLength ? bStart ? b[bStart - 1].nextSibling : b[bEnd - bStart] : after;
|
|
3180
|
-
while (bStart < bEnd) parentNode.insertBefore(b[bStart++], node);
|
|
3181
|
-
} else if (bEnd === bStart) while (aStart < aEnd) {
|
|
3182
|
-
if (!map || !map.has(a[aStart])) a[aStart].remove();
|
|
3183
|
-
aStart++;
|
|
3184
|
-
}
|
|
3185
|
-
else if (a[aStart] === b[bEnd - 1] && b[bStart] === a[aEnd - 1]) {
|
|
3186
|
-
const node = a[--aEnd].nextSibling;
|
|
3187
|
-
parentNode.insertBefore(b[bStart++], a[aStart++].nextSibling);
|
|
3188
|
-
parentNode.insertBefore(b[--bEnd], node);
|
|
3189
|
-
a[aEnd] = b[bEnd];
|
|
3190
|
-
} else {
|
|
3191
|
-
if (!map) {
|
|
3192
|
-
map = /* @__PURE__ */ new Map();
|
|
3193
|
-
let i = bStart;
|
|
3194
|
-
while (i < bEnd) map.set(b[i], i++);
|
|
3195
|
-
}
|
|
3196
|
-
const index = map.get(a[aStart]);
|
|
3197
|
-
if (index != null) if (bStart < index && index < bEnd) {
|
|
3198
|
-
let i = aStart, sequence = 1, t;
|
|
3199
|
-
while (++i < aEnd && i < bEnd) {
|
|
3200
|
-
if ((t = map.get(a[i])) == null || t !== index + sequence) break;
|
|
3201
|
-
sequence++;
|
|
3202
|
-
}
|
|
3203
|
-
if (sequence > index - bStart) {
|
|
3204
|
-
const node = a[aStart];
|
|
3205
|
-
while (bStart < index) parentNode.insertBefore(b[bStart++], node);
|
|
3206
|
-
} else parentNode.replaceChild(b[bStart++], a[aStart++]);
|
|
3207
|
-
} else aStart++;
|
|
3208
|
-
else a[aStart++].remove();
|
|
3209
|
-
}
|
|
3210
|
-
}
|
|
3211
|
-
}
|
|
3212
|
-
const $$EVENTS = "_$DX_DELEGATE";
|
|
3213
|
-
function delegateEvents(eventNames, document$1 = window.document) {
|
|
3214
|
-
const e = document$1[$$EVENTS] || (document$1[$$EVENTS] = /* @__PURE__ */ new Set());
|
|
3215
|
-
for (let i = 0, l = eventNames.length; i < l; i++) {
|
|
3216
|
-
const name = eventNames[i];
|
|
3217
|
-
if (!e.has(name)) {
|
|
3218
|
-
e.add(name);
|
|
3219
|
-
document$1.addEventListener(name, eventHandler);
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
}
|
|
3223
|
-
function setAttribute(node, name, value) {
|
|
3224
|
-
if (isHydrating(node)) return;
|
|
3225
|
-
if (value == null) node.removeAttribute(name);
|
|
3226
|
-
else node.setAttribute(name, value);
|
|
3227
|
-
}
|
|
3228
|
-
function setAttributeNS(node, namespace, name, value) {
|
|
3229
|
-
if (isHydrating(node)) return;
|
|
3230
|
-
if (value == null) node.removeAttributeNS(namespace, name);
|
|
3231
|
-
else node.setAttributeNS(namespace, name, value);
|
|
3232
|
-
}
|
|
3233
|
-
function setBoolAttribute(node, name, value) {
|
|
3234
|
-
if (isHydrating(node)) return;
|
|
3235
|
-
value ? node.setAttribute(name, "") : node.removeAttribute(name);
|
|
3236
|
-
}
|
|
3237
|
-
function className(node, value) {
|
|
3238
|
-
if (isHydrating(node)) return;
|
|
3239
|
-
if (value == null) node.removeAttribute("class");
|
|
3240
|
-
else node.className = value;
|
|
3241
|
-
}
|
|
3242
|
-
function addEventListener(node, name, handler, delegate) {
|
|
3243
|
-
if (delegate) if (Array.isArray(handler)) {
|
|
3244
|
-
node[`$$${name}`] = handler[0];
|
|
3245
|
-
node[`$$${name}Data`] = handler[1];
|
|
3246
|
-
} else node[`$$${name}`] = handler;
|
|
3247
|
-
else if (Array.isArray(handler)) {
|
|
3248
|
-
const handlerFn = handler[0];
|
|
3249
|
-
node.addEventListener(name, handler[0] = (e) => handlerFn.call(node, handler[1], e));
|
|
3250
|
-
} else node.addEventListener(name, handler, typeof handler !== "function" && handler);
|
|
3251
|
-
}
|
|
3252
|
-
function classList(node, value, prev = {}) {
|
|
3253
|
-
const classKeys = Object.keys(value || {}), prevKeys = Object.keys(prev);
|
|
3254
|
-
let i, len;
|
|
3255
|
-
for (i = 0, len = prevKeys.length; i < len; i++) {
|
|
3256
|
-
const key = prevKeys[i];
|
|
3257
|
-
if (!key || key === "undefined" || value[key]) continue;
|
|
3258
|
-
toggleClassKey(node, key, false);
|
|
3259
|
-
delete prev[key];
|
|
3260
|
-
}
|
|
3261
|
-
for (i = 0, len = classKeys.length; i < len; i++) {
|
|
3262
|
-
const key = classKeys[i], classValue = !!value[key];
|
|
3263
|
-
if (!key || key === "undefined" || prev[key] === classValue || !classValue) continue;
|
|
3264
|
-
toggleClassKey(node, key, true);
|
|
3265
|
-
prev[key] = classValue;
|
|
3266
|
-
}
|
|
3267
|
-
return prev;
|
|
3268
|
-
}
|
|
3269
|
-
function style(node, value, prev) {
|
|
3270
|
-
if (!value) return prev ? setAttribute(node, "style") : value;
|
|
3271
|
-
const nodeStyle = node.style;
|
|
3272
|
-
if (typeof value === "string") return nodeStyle.cssText = value;
|
|
3273
|
-
typeof prev === "string" && (nodeStyle.cssText = prev = void 0);
|
|
3274
|
-
prev || (prev = {});
|
|
3275
|
-
value || (value = {});
|
|
3276
|
-
let v, s;
|
|
3277
|
-
for (s in prev) {
|
|
3278
|
-
value[s] ?? nodeStyle.removeProperty(s);
|
|
3279
|
-
delete prev[s];
|
|
3280
|
-
}
|
|
3281
|
-
for (s in value) {
|
|
3282
|
-
v = value[s];
|
|
3283
|
-
if (v !== prev[s]) {
|
|
3284
|
-
nodeStyle.setProperty(s, v);
|
|
3285
|
-
prev[s] = v;
|
|
3286
|
-
}
|
|
3287
|
-
}
|
|
3288
|
-
return prev;
|
|
3289
|
-
}
|
|
3290
|
-
function spread(node, props = {}, isSVG, skipChildren) {
|
|
3291
|
-
const prevProps = {};
|
|
3292
|
-
if (!skipChildren) createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
|
|
3293
|
-
createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
|
|
3294
|
-
createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
|
|
3295
|
-
return prevProps;
|
|
3296
|
-
}
|
|
3297
|
-
function use(fn, element, arg) {
|
|
3298
|
-
return untrack(() => fn(element, arg));
|
|
3299
|
-
}
|
|
3300
|
-
function assign(node, props, isSVG, skipChildren, prevProps = {}, skipRef = false) {
|
|
3301
|
-
props || (props = {});
|
|
3302
|
-
for (const prop in prevProps) if (!(prop in props)) {
|
|
3303
|
-
if (prop === "children") continue;
|
|
3304
|
-
prevProps[prop] = assignProp(node, prop, null, prevProps[prop], isSVG, skipRef, props);
|
|
3305
|
-
}
|
|
3306
|
-
for (const prop in props) {
|
|
3307
|
-
if (prop === "children") {
|
|
3308
|
-
if (!skipChildren) insertExpression(node, props.children);
|
|
3309
|
-
continue;
|
|
3310
|
-
}
|
|
3311
|
-
const value = props[prop];
|
|
3312
|
-
prevProps[prop] = assignProp(node, prop, value, prevProps[prop], isSVG, skipRef, props);
|
|
3313
|
-
}
|
|
3314
|
-
}
|
|
3315
|
-
function getNextElement(template) {
|
|
3316
|
-
let node, key;
|
|
3317
|
-
if (!isHydrating() || !(node = sharedConfig.registry.get(key = getHydrationKey()))) return template();
|
|
3318
|
-
if (sharedConfig.completed) sharedConfig.completed.add(node);
|
|
3319
|
-
sharedConfig.registry.delete(key);
|
|
3320
|
-
return node;
|
|
3321
|
-
}
|
|
3322
|
-
function isHydrating(node) {
|
|
3323
|
-
return !!sharedConfig.context && !sharedConfig.done && (!node || node.isConnected);
|
|
3324
|
-
}
|
|
3325
|
-
function toPropertyName(name) {
|
|
3326
|
-
return name.toLowerCase().replace(/-([a-z])/g, (_, w) => w.toUpperCase());
|
|
3327
|
-
}
|
|
3328
|
-
function toggleClassKey(node, key, value) {
|
|
3329
|
-
const classNames = key.trim().split(/\s+/);
|
|
3330
|
-
for (let i = 0, nameLen = classNames.length; i < nameLen; i++) node.classList.toggle(classNames[i], value);
|
|
3331
|
-
}
|
|
3332
|
-
function assignProp(node, prop, value, prev, isSVG, skipRef, props) {
|
|
3333
|
-
let isCE, isProp, isChildProp, propAlias, forceProp;
|
|
3334
|
-
if (prop === "style") return style(node, value, prev);
|
|
3335
|
-
if (prop === "classList") return classList(node, value, prev);
|
|
3336
|
-
if (value === prev) return prev;
|
|
3337
|
-
if (prop === "ref") {
|
|
3338
|
-
if (!skipRef) value(node);
|
|
3339
|
-
} else if (prop.slice(0, 3) === "on:") {
|
|
3340
|
-
const e = prop.slice(3);
|
|
3341
|
-
prev && node.removeEventListener(e, prev, typeof prev !== "function" && prev);
|
|
3342
|
-
value && node.addEventListener(e, value, typeof value !== "function" && value);
|
|
3343
|
-
} else if (prop.slice(0, 10) === "oncapture:") {
|
|
3344
|
-
const e = prop.slice(10);
|
|
3345
|
-
prev && node.removeEventListener(e, prev, true);
|
|
3346
|
-
value && node.addEventListener(e, value, true);
|
|
3347
|
-
} else if (prop.slice(0, 2) === "on") {
|
|
3348
|
-
const name = prop.slice(2).toLowerCase();
|
|
3349
|
-
const delegate = DelegatedEvents.has(name);
|
|
3350
|
-
if (!delegate && prev) {
|
|
3351
|
-
const h = Array.isArray(prev) ? prev[0] : prev;
|
|
3352
|
-
node.removeEventListener(name, h);
|
|
3353
|
-
}
|
|
3354
|
-
if (delegate || value) {
|
|
3355
|
-
addEventListener(node, name, value, delegate);
|
|
3356
|
-
delegate && delegateEvents([name]);
|
|
3357
|
-
}
|
|
3358
|
-
} else if (prop.slice(0, 5) === "attr:") setAttribute(node, prop.slice(5), value);
|
|
3359
|
-
else if (prop.slice(0, 5) === "bool:") setBoolAttribute(node, prop.slice(5), value);
|
|
3360
|
-
else if ((forceProp = prop.slice(0, 5) === "prop:") || (isChildProp = ChildProperties.has(prop)) || !isSVG && ((propAlias = getPropAlias(prop, node.tagName)) || (isProp = Properties.has(prop))) || (isCE = node.nodeName.includes("-") || "is" in props)) {
|
|
3361
|
-
if (forceProp) {
|
|
3362
|
-
prop = prop.slice(5);
|
|
3363
|
-
isProp = true;
|
|
3364
|
-
} else if (isHydrating(node)) return value;
|
|
3365
|
-
if (prop === "class" || prop === "className") className(node, value);
|
|
3366
|
-
else if (isCE && !isProp && !isChildProp) node[toPropertyName(prop)] = value;
|
|
3367
|
-
else node[propAlias || prop] = value;
|
|
3368
|
-
} else {
|
|
3369
|
-
const ns = isSVG && prop.indexOf(":") > -1 && SVGNamespace[prop.split(":")[0]];
|
|
3370
|
-
if (ns) setAttributeNS(node, ns, prop, value);
|
|
3371
|
-
else setAttribute(node, Aliases[prop] || prop, value);
|
|
3372
|
-
}
|
|
3373
|
-
return value;
|
|
3374
|
-
}
|
|
3375
|
-
function eventHandler(e) {
|
|
3376
|
-
if (sharedConfig.registry && sharedConfig.events) {
|
|
3377
|
-
if (sharedConfig.events.find(([el, ev]) => ev === e)) return;
|
|
3378
|
-
}
|
|
3379
|
-
let node = e.target;
|
|
3380
|
-
const key = `$$${e.type}`;
|
|
3381
|
-
const oriTarget = e.target;
|
|
3382
|
-
const oriCurrentTarget = e.currentTarget;
|
|
3383
|
-
const retarget = (value) => Object.defineProperty(e, "target", {
|
|
3384
|
-
configurable: true,
|
|
3385
|
-
value
|
|
3386
|
-
});
|
|
3387
|
-
const handleNode = () => {
|
|
3388
|
-
const handler = node[key];
|
|
3389
|
-
if (handler && !node.disabled) {
|
|
3390
|
-
const data = node[`${key}Data`];
|
|
3391
|
-
data !== void 0 ? handler.call(node, data, e) : handler.call(node, e);
|
|
3392
|
-
if (e.cancelBubble) return;
|
|
3393
|
-
}
|
|
3394
|
-
node.host && typeof node.host !== "string" && !node.host._$host && node.contains(e.target) && retarget(node.host);
|
|
3395
|
-
return true;
|
|
3396
|
-
};
|
|
3397
|
-
const walkUpTree = () => {
|
|
3398
|
-
while (handleNode() && (node = node._$host || node.parentNode || node.host));
|
|
3399
|
-
};
|
|
3400
|
-
Object.defineProperty(e, "currentTarget", {
|
|
3401
|
-
configurable: true,
|
|
3402
|
-
get() {
|
|
3403
|
-
return node || document;
|
|
3404
|
-
}
|
|
3405
|
-
});
|
|
3406
|
-
if (sharedConfig.registry && !sharedConfig.done) sharedConfig.done = _$HY.done = true;
|
|
3407
|
-
if (e.composedPath) {
|
|
3408
|
-
const path = e.composedPath();
|
|
3409
|
-
retarget(path[0]);
|
|
3410
|
-
for (let i = 0; i < path.length - 2; i++) {
|
|
3411
|
-
node = path[i];
|
|
3412
|
-
if (!handleNode()) break;
|
|
3413
|
-
if (node._$host) {
|
|
3414
|
-
node = node._$host;
|
|
3415
|
-
walkUpTree();
|
|
3416
|
-
break;
|
|
3417
|
-
}
|
|
3418
|
-
if (node.parentNode === oriCurrentTarget) break;
|
|
3419
|
-
}
|
|
3420
|
-
} else walkUpTree();
|
|
3421
|
-
retarget(oriTarget);
|
|
3422
|
-
}
|
|
3423
|
-
function insertExpression(parent, value, current, marker, unwrapArray) {
|
|
3424
|
-
const hydrating = isHydrating(parent);
|
|
3425
|
-
if (hydrating) {
|
|
3426
|
-
!current && (current = [...parent.childNodes]);
|
|
3427
|
-
let cleaned = [];
|
|
3428
|
-
for (let i = 0; i < current.length; i++) {
|
|
3429
|
-
const node = current[i];
|
|
3430
|
-
if (node.nodeType === 8 && node.data.slice(0, 2) === "!$") node.remove();
|
|
3431
|
-
else cleaned.push(node);
|
|
3432
|
-
}
|
|
3433
|
-
current = cleaned;
|
|
3434
|
-
}
|
|
3435
|
-
while (typeof current === "function") current = current();
|
|
3436
|
-
if (value === current) return current;
|
|
3437
|
-
const t = typeof value, multi = marker !== void 0;
|
|
3438
|
-
parent = multi && current[0] && current[0].parentNode || parent;
|
|
3439
|
-
if (t === "string" || t === "number") {
|
|
3440
|
-
if (hydrating) return current;
|
|
3441
|
-
if (t === "number") {
|
|
3442
|
-
value = value.toString();
|
|
3443
|
-
if (value === current) return current;
|
|
3444
|
-
}
|
|
3445
|
-
if (multi) {
|
|
3446
|
-
let node = current[0];
|
|
3447
|
-
if (node && node.nodeType === 3) node.data !== value && (node.data = value);
|
|
3448
|
-
else node = document.createTextNode(value);
|
|
3449
|
-
current = cleanChildren(parent, current, marker, node);
|
|
3450
|
-
} else if (current !== "" && typeof current === "string") current = parent.firstChild.data = value;
|
|
3451
|
-
else current = parent.textContent = value;
|
|
3452
|
-
} else if (value == null || t === "boolean") {
|
|
3453
|
-
if (hydrating) return current;
|
|
3454
|
-
current = cleanChildren(parent, current, marker);
|
|
3455
|
-
} else if (t === "function") {
|
|
3456
|
-
createRenderEffect(() => {
|
|
3457
|
-
let v = value();
|
|
3458
|
-
while (typeof v === "function") v = v();
|
|
3459
|
-
current = insertExpression(parent, v, current, marker);
|
|
3460
|
-
});
|
|
3461
|
-
return () => current;
|
|
3462
|
-
} else if (Array.isArray(value)) {
|
|
3463
|
-
const array = [];
|
|
3464
|
-
const currentArray = current && Array.isArray(current);
|
|
3465
|
-
if (normalizeIncomingArray(array, value, current, unwrapArray)) {
|
|
3466
|
-
createRenderEffect(() => current = insertExpression(parent, array, current, marker, true));
|
|
3467
|
-
return () => current;
|
|
3468
|
-
}
|
|
3469
|
-
if (hydrating) {
|
|
3470
|
-
if (!array.length) return current;
|
|
3471
|
-
if (marker === void 0) return current = [...parent.childNodes];
|
|
3472
|
-
let node = array[0];
|
|
3473
|
-
if (node.parentNode !== parent) return current;
|
|
3474
|
-
const nodes = [node];
|
|
3475
|
-
while ((node = node.nextSibling) !== marker) nodes.push(node);
|
|
3476
|
-
return current = nodes;
|
|
3477
|
-
}
|
|
3478
|
-
if (array.length === 0) {
|
|
3479
|
-
current = cleanChildren(parent, current, marker);
|
|
3480
|
-
if (multi) return current;
|
|
3481
|
-
} else if (currentArray) if (current.length === 0) appendNodes(parent, array, marker);
|
|
3482
|
-
else reconcileArrays(parent, current, array);
|
|
3483
|
-
else {
|
|
3484
|
-
current && cleanChildren(parent);
|
|
3485
|
-
appendNodes(parent, array);
|
|
3486
|
-
}
|
|
3487
|
-
current = array;
|
|
3488
|
-
} else if (value.nodeType) {
|
|
3489
|
-
if (hydrating && value.parentNode) return current = multi ? [value] : value;
|
|
3490
|
-
if (Array.isArray(current)) {
|
|
3491
|
-
if (multi) return current = cleanChildren(parent, current, marker, value);
|
|
3492
|
-
cleanChildren(parent, current, null, value);
|
|
3493
|
-
} else if (current == null || current === "" || !parent.firstChild) parent.appendChild(value);
|
|
3494
|
-
else parent.replaceChild(value, parent.firstChild);
|
|
3495
|
-
current = value;
|
|
3496
|
-
}
|
|
3497
|
-
return current;
|
|
3498
|
-
}
|
|
3499
|
-
function normalizeIncomingArray(normalized, array, current, unwrap) {
|
|
3500
|
-
let dynamic = false;
|
|
3501
|
-
for (let i = 0, len = array.length; i < len; i++) {
|
|
3502
|
-
let item = array[i], prev = current && current[normalized.length], t;
|
|
3503
|
-
if (item == null || item === true || item === false);
|
|
3504
|
-
else if ((t = typeof item) === "object" && item.nodeType) normalized.push(item);
|
|
3505
|
-
else if (Array.isArray(item)) dynamic = normalizeIncomingArray(normalized, item, prev) || dynamic;
|
|
3506
|
-
else if (t === "function") if (unwrap) {
|
|
3507
|
-
while (typeof item === "function") item = item();
|
|
3508
|
-
dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
|
|
3509
|
-
} else {
|
|
3510
|
-
normalized.push(item);
|
|
3511
|
-
dynamic = true;
|
|
3512
|
-
}
|
|
3513
|
-
else {
|
|
3514
|
-
const value = String(item);
|
|
3515
|
-
if (prev && prev.nodeType === 3 && prev.data === value) normalized.push(prev);
|
|
3516
|
-
else normalized.push(document.createTextNode(value));
|
|
3517
|
-
}
|
|
3518
|
-
}
|
|
3519
|
-
return dynamic;
|
|
3520
|
-
}
|
|
3521
|
-
function appendNodes(parent, array, marker = null) {
|
|
3522
|
-
for (let i = 0, len = array.length; i < len; i++) parent.insertBefore(array[i], marker);
|
|
3523
|
-
}
|
|
3524
|
-
function cleanChildren(parent, current, marker, replacement) {
|
|
3525
|
-
if (marker === void 0) return parent.textContent = "";
|
|
3526
|
-
const node = replacement || document.createTextNode("");
|
|
3527
|
-
if (current.length) {
|
|
3528
|
-
let inserted = false;
|
|
3529
|
-
for (let i = current.length - 1; i >= 0; i--) {
|
|
3530
|
-
const el = current[i];
|
|
3531
|
-
if (node !== el) {
|
|
3532
|
-
const isParent = el.parentNode === parent;
|
|
3533
|
-
if (!inserted && !i) isParent ? parent.replaceChild(node, el) : parent.insertBefore(node, marker);
|
|
3534
|
-
else isParent && el.remove();
|
|
3535
|
-
} else inserted = true;
|
|
3536
|
-
}
|
|
3537
|
-
} else parent.insertBefore(node, marker);
|
|
3538
|
-
return [node];
|
|
3539
|
-
}
|
|
3540
|
-
function getHydrationKey() {
|
|
3541
|
-
return sharedConfig.getNextContextId();
|
|
3542
|
-
}
|
|
3543
|
-
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
|
|
3544
|
-
function createElement(tagName, isSVG = false, is = void 0) {
|
|
3545
|
-
return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName, { is });
|
|
3546
|
-
}
|
|
3547
|
-
function createDynamic(component, props) {
|
|
3548
|
-
const cached = createMemo(component);
|
|
3549
|
-
return createMemo(() => {
|
|
3550
|
-
const component$1 = cached();
|
|
3551
|
-
switch (typeof component$1) {
|
|
3552
|
-
case "function": return untrack(() => component$1(props));
|
|
3553
|
-
case "string":
|
|
3554
|
-
const isSvg = SVGElements.has(component$1);
|
|
3555
|
-
const el = sharedConfig.context ? getNextElement() : createElement(component$1, isSvg, untrack(() => props.is));
|
|
3556
|
-
spread(el, props, isSvg);
|
|
3557
|
-
return el;
|
|
3558
|
-
}
|
|
3559
|
-
});
|
|
3560
|
-
}
|
|
3561
|
-
function Dynamic(props) {
|
|
3562
|
-
const [, others] = splitProps(props, ["component"]);
|
|
3563
|
-
return createDynamic(() => props.component, others);
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
2812
|
//#endregion
|
|
3567
2813
|
//#region src/Block.tsx
|
|
3568
2814
|
const Block = (props) => {
|
|
3569
|
-
const elementTag = () => props.element ?? "div";
|
|
3570
2815
|
const currentStyler = () => {
|
|
3571
2816
|
if (props.styler) return props.styler;
|
|
3572
2817
|
else return Stylers.base;
|
|
@@ -3576,9 +2821,9 @@ const Block = (props) => {
|
|
|
3576
2821
|
if (props.class) classes.push(props.class);
|
|
3577
2822
|
return twMerge(classes);
|
|
3578
2823
|
}
|
|
3579
|
-
return <
|
|
2824
|
+
return <div class={blockClasses()}>
|
|
3580
2825
|
{props.children}
|
|
3581
|
-
</
|
|
2826
|
+
</div>;
|
|
3582
2827
|
};
|
|
3583
2828
|
|
|
3584
2829
|
//#endregion
|