Buckets:
| // src/jsx/utils.ts | |
| var normalizeElementKeyMap = /* @__PURE__ */ new Map([ | |
| ["className", "class"], | |
| ["htmlFor", "for"], | |
| ["crossOrigin", "crossorigin"], | |
| ["httpEquiv", "http-equiv"], | |
| ["itemProp", "itemprop"], | |
| ["fetchPriority", "fetchpriority"], | |
| ["noModule", "nomodule"], | |
| ["formAction", "formaction"] | |
| ]); | |
| var normalizeIntrinsicElementKey = (key) => normalizeElementKeyMap.get(key) || key; | |
| var styleObjectForEach = (style, fn) => { | |
| for (const [k, v] of Object.entries(style)) { | |
| const key = k[0] === "-" || !/[A-Z]/.test(k) ? k : k.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`); | |
| fn( | |
| key, | |
| v == null ? null : typeof v === "number" ? !key.match( | |
| /^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/ | |
| ) ? `${v}px` : `${v}` : v | |
| ); | |
| } | |
| }; | |
| export { | |
| normalizeIntrinsicElementKey, | |
| styleObjectForEach | |
| }; | |
Xet Storage Details
- Size:
- 897 Bytes
- Xet hash:
- f3a0b3fd54367a06978015feb1274f529dec47fd6084193ed9c3add62b80f4f7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.