hyperframes 0.8.183 → 0.8.184
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/{add-HW3ZGR36.js → add-5ZTD3MUZ.js} +11 -11
- package/dist/{animatedGifPrep-EPLN37ZN.js → animatedGifPrep-AGASIWVA.js} +6 -5
- package/dist/api.js +14 -13
- package/dist/{asset-TOASKL3Z.js → asset-LSTEMPIB.js} +2 -2
- package/dist/{assetCataloger-PZN5HYG2.js → assetCataloger-BKBMNL3A.js} +6 -5
- package/dist/{audio-F5OIQVJO.js → audio-KGK44XE4.js} +13 -12
- package/dist/{auth-YVQLRS3T.js → auth-MJWKYK77.js} +1 -1
- package/dist/{autoUpdate-EG4ZFW4D.js → autoUpdate-2GGDKYR2.js} +2 -2
- package/dist/{backgroundChecks-WINNQVR2.js → backgroundChecks-7GRX5VQY.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-PASZTMEE.js → batchRender-BCV2LELR.js} +3 -3
- package/dist/{beats-KGIOEBLW.js → beats-7BCFRBAL.js} +4 -4
- package/dist/{benchmark-ZNY2L7HN.js → benchmark-2R6CN5MQ.js} +8 -8
- package/dist/{browser-REAO7RU4.js → browser-6AFGOI7G.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-OAYLYC4W.js → bundleWithLocalizedFonts-2EGPA5ZO.js} +2 -2
- package/dist/{capture-IK6GWQDD.js → capture-HA2UHLIU.js} +2 -2
- package/dist/{capture-WOSF276U.js → capture-HOIAW6MO.js} +9 -8
- package/dist/{captureCompositionFrame-DDZNKYRE.js → captureCompositionFrame-4236FVWJ.js} +10 -9
- package/dist/{catalog-AKTXS7OJ.js → catalog-A6CZAWW4.js} +11 -11
- package/dist/{catch-up-O3VZMPVE.js → catch-up-TNA4DJOA.js} +4 -4
- package/dist/{check-6E46NIWI.js → check-5E5U2EQZ.js} +30 -29
- package/dist/{checkBrowser-UNZHQFNH.js → checkBrowser-FNINXBMZ.js} +27 -26
- package/dist/{chunk-5MBLWFLM.js → chunk-2PVE4WS2.js} +1 -1
- package/dist/{chunk-TOHA5NAU.js → chunk-2ULXZ4PG.js} +10 -10
- package/dist/{chunk-GAGMLVCV.js → chunk-2XA7KXQO.js} +2 -2
- package/dist/{chunk-4UFJWRHG.js → chunk-3MDJIWOV.js} +174 -62
- package/dist/{chunk-NZ3BE2QE.js → chunk-3QVMJ7GX.js} +7 -7
- package/dist/{chunk-3Q47QC46.js → chunk-3TXNNBI2.js} +1 -1
- package/dist/{chunk-Z4R35NJS.js → chunk-4KKKBEP3.js} +3 -3
- package/dist/{chunk-RZXUQR42.js → chunk-4N4P3ZWL.js} +2 -2
- package/dist/{chunk-J4L5TPLS.js → chunk-5UDRPPN2.js} +48 -6
- package/dist/{chunk-XJHKJXT4.js → chunk-74JMKLVU.js} +1 -1
- package/dist/{chunk-OH56PXFH.js → chunk-7HJALUIO.js} +1 -1
- package/dist/{chunk-BP4VNTZL.js → chunk-7MB2ZAQF.js} +1 -1
- package/dist/{chunk-HLBODNGW.js → chunk-7NRI7HYX.js} +1 -1
- package/dist/{chunk-ANR6WOC3.js → chunk-ABZYYUUH.js} +1 -1
- package/dist/{chunk-VH5KESLX.js → chunk-BCHSTE7U.js} +1 -1
- package/dist/{chunk-KRFAX5JK.js → chunk-CXABAXB3.js} +1 -1
- package/dist/{chunk-LBWRQ4XA.js → chunk-DWUGKEHR.js} +1 -1
- package/dist/{chunk-MIZDJVPZ.js → chunk-E32ZQ2WO.js} +1 -1
- package/dist/{chunk-CAHTO62O.js → chunk-EM7C7H7S.js} +7 -7
- package/dist/{chunk-B2SZZFWW.js → chunk-ES426XRJ.js} +3 -3
- package/dist/{chunk-O7N3A7PE.js → chunk-FGJEUV4S.js} +1 -1
- package/dist/{chunk-Q6UYKWBG.js → chunk-GDEV42FA.js} +14 -14
- package/dist/{chunk-TXGZZKDF.js → chunk-HR23IKLZ.js} +2 -2
- package/dist/{chunk-XOVHO3TT.js → chunk-ICJEAFPD.js} +7 -7
- package/dist/{chunk-4FQKS7BJ.js → chunk-IWTNTUPQ.js} +4 -4
- package/dist/chunk-IZCW2NKT.js +29 -0
- package/dist/{chunk-X3IA5RYH.js → chunk-J36JVBLR.js} +9 -2
- package/dist/{chunk-VFBAKPRC.js → chunk-J3QM7AHP.js} +1 -1
- package/dist/{chunk-ITSLKUQM.js → chunk-JB6ARMQS.js} +1 -1
- package/dist/{chunk-DLC2FICN.js → chunk-JIUTXKWA.js} +1 -1
- package/dist/{chunk-GTE5WZAM.js → chunk-KN46TGHV.js} +1 -1
- package/dist/{chunk-VDJO4DJ7.js → chunk-LLC4CS6I.js} +2 -2
- package/dist/{chunk-TJB4GAV6.js → chunk-LRGYPXHF.js} +1 -1
- package/dist/{chunk-CGK4XZ2J.js → chunk-MFAETWIF.js} +1 -1
- package/dist/{chunk-QGOYNPQT.js → chunk-OLZENUPI.js} +47 -4
- package/dist/{chunk-K2Z5DZBS.js → chunk-PFYWVUHA.js} +1 -1
- package/dist/{chunk-F6WHPHLF.js → chunk-PSKEKWVU.js} +1 -1
- package/dist/{chunk-3OLIGYWN.js → chunk-Q33P4EAC.js} +2 -2
- package/dist/{chunk-CJYAJ3QM.js → chunk-QL2PNIXC.js} +9 -9
- package/dist/{chunk-IC2WYONA.js → chunk-R2BFTECP.js} +3 -3
- package/dist/chunk-R2SQBPMH.js +3805 -0
- package/dist/{chunk-73LTCCZI.js → chunk-RGXVEYHI.js} +15 -15
- package/dist/{chunk-SAQYJLI6.js → chunk-SAX7HQ5E.js} +1 -1
- package/dist/{chunk-GPE3WWTO.js → chunk-SN7KI5JA.js} +13 -10
- package/dist/{chunk-ATMDOUNN.js → chunk-TE427YID.js} +2 -2
- package/dist/{chunk-VAK7A2N6.js → chunk-UJKUB2LH.js} +10 -10
- package/dist/{chunk-DEORFAWP.js → chunk-UKOTVJFV.js} +1 -1
- package/dist/{chunk-ZFO3A3QL.js → chunk-UNNXFKVG.js} +2 -2
- package/dist/{chunk-UNOSCGBG.js → chunk-VDM3FEDP.js} +1 -1
- package/dist/{chunk-QX4GGPMY.js → chunk-VNVQGDPC.js} +1 -1
- package/dist/{chunk-3BA2GP4H.js → chunk-WHPN2TIT.js} +5 -5
- package/dist/{chunk-XR5BSEUF.js → chunk-WTFUDNW2.js} +3 -3
- package/dist/{chunk-U5YVWG5W.js → chunk-X3CG5YQA.js} +3 -3
- package/dist/{chunk-XAQDR5Y5.js → chunk-XGHHVYC7.js} +94 -32
- package/dist/{chunk-WT4PYV2J.js → chunk-YALM6XN4.js} +200 -53
- package/dist/{chunk-R6OV4J4K.js → chunk-YOZPQCSR.js} +3 -3
- package/dist/{chunk-COTLNID2.js → chunk-YWHCXIMD.js} +5 -5
- package/dist/{chunk-5OGDBU4G.js → chunk-YWNJTZGN.js} +2 -2
- package/dist/{chunk-AKFADCMS.js → chunk-ZOCHDXDG.js} +1 -1
- package/dist/{chunk-EVAQPW6O.js → chunk-ZRHO6YMM.js} +2 -2
- package/dist/{clean-WNEIVBF3.js → clean-HGASSMWI.js} +14 -13
- package/dist/cli.js +53 -53
- package/dist/{cloud-6GSSDCJL.js → cloud-JPDVNXHN.js} +4 -4
- package/dist/{cloudrun-4NEJRE4T.js → cloudrun-AMMGSDRP.js} +4 -4
- package/dist/{compare-2JWQ5ABA.js → compare-LHHVHUN3.js} +24 -23
- package/dist/{compiler-27KQD7KW.js → compiler-Q3N6QXMT.js} +2 -2
- package/dist/{component-HCRET3MH.js → component-D72J32Q7.js} +3 -3
- package/dist/{compositions-HTSQ6SUJ.js → compositions-UQRJ5ROG.js} +10 -9
- package/dist/{delete-GHQ5UYM7.js → delete-P42VIDDA.js} +3 -3
- package/dist/{deploy-I3Z3NAVA.js → deploy-WZTH57O4.js} +1 -1
- package/dist/{deterministicFonts-JFLSSKRB.js → deterministicFonts-VQ5UBMXY.js} +1 -1
- package/dist/{dist-WRDLWRMS.js → dist-DYS24AMA.js} +2 -2
- package/dist/{doctor-UGFVQZHI.js → doctor-KEJIG2SK.js} +10 -9
- package/dist/{events-YS4OVX3I.js → events-CYKSNR7N.js} +2 -2
- package/dist/{events-BLJGWMNP.js → events-UZXFQPMT.js} +3 -3
- package/dist/{feedback-AZ3SJ5HF.js → feedback-LXNQF7CA.js} +7 -7
- package/dist/{ffmpeg-2AECXG7V.js → ffmpeg-BYHON577.js} +6 -5
- package/dist/{figma-DRYIJQHV.js → figma-EIQ35PS6.js} +3 -3
- package/dist/fontLocalizeCli.js +9 -8
- package/dist/{get-DDEAOFPB.js → get-CC2YL7QO.js} +3 -3
- package/dist/{gpuPolicy-UDJT2MQK.js → gpuPolicy-VFSACUQV.js} +6 -5
- package/dist/{grade-compare-LJKK5NSY.js → grade-compare-TUQL7IV2.js} +25 -24
- package/dist/{help-TQBGYOID.js → help-ROROO5K6.js} +1 -1
- package/dist/{history-5TOOCF2Y.js → history-PNELYLXX.js} +6 -6
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +59 -59
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-ENI5MP4W.js → info-4FZTH6AS.js} +7 -7
- package/dist/{init-JXPXWV3G.js → init-I43GHHVP.js} +26 -25
- package/dist/{inspect-WZNYQ5AB.js → inspect-IT4TYIZ3.js} +25 -24
- package/dist/{installer-3SGRBLJW.js → installer-CWOJVK5K.js} +4 -4
- package/dist/{keyframes-HEOC4CT4.js → keyframes-3FBOGVD4.js} +6 -6
- package/dist/{lambda-2VHQ4AL2.js → lambda-H3V32I7M.js} +6 -6
- package/dist/{layout-7WEUNO6T.js → layout-BZ5LYJ5C.js} +25 -24
- package/dist/{lint-5YMAF3L7.js → lint-ZTNSGP2S.js} +6 -6
- package/dist/{list-BIE3X7CO.js → list-XM4GWJYY.js} +3 -3
- package/dist/{login-YDIGJWCG.js → login-H6HYKMWX.js} +4 -4
- package/dist/{manager-D2UV6RDQ.js → manager-TWVDSJXO.js} +7 -6
- package/dist/{media-treatment-FSKHPMWA.js → media-treatment-N7MY5NXB.js} +12 -11
- package/dist/{models-COEK6LXG.js → models-WEMIMYBD.js} +10 -9
- package/dist/{motionShot-HYZ2ZGJQ.js → motionShot-RHICTVPU.js} +13 -12
- package/dist/{normalize-audio-UXR6WQ7Q.js → normalize-audio-ZFUZCJE3.js} +4 -4
- package/dist/{open-OFT2GIDG.js → open-IBJ4FL3G.js} +11 -11
- package/dist/{parakeetRunner-4NZ3QXS3.js → parakeetRunner-XXO4WSLR.js} +11 -10
- package/dist/{pipeline-ZKE54JMG.js → pipeline-6ML3LUVK.js} +7 -6
- package/dist/{play-2VG77FT6.js → play-RV4NAVF5.js} +17 -16
- package/dist/{preflight-QTWDIM5C.js → preflight-R3DEFMLA.js} +7 -6
- package/dist/{present-OONXQLJG.js → present-5TBJGE6B.js} +13 -12
- package/dist/{preview-6RZJFU76.js → preview-FLKZ5CXJ.js} +23 -22
- package/dist/{producer-6YM3UH3B.js → producer-7XYSPVKH.js} +1 -1
- package/dist/{projectConfig-YMW4P2X6.js → projectConfig-TBU2VWZX.js} +6 -6
- package/dist/{publication-SEINUAPZ.js → publication-CWWUJYJ5.js} +2 -2
- package/dist/{publish-KZBTBWFO.js → publish-FSNE4FEB.js} +9 -8
- package/dist/{remove-background-BIQNMIR7.js → remove-background-MDFWRWCT.js} +8 -7
- package/dist/render-DBGQZAZT.js +1516 -0
- package/dist/{render-FIH37HJA.js → render-F4JQ553X.js} +27 -26
- package/dist/{render-LW76HOMJ.js → render-LWZKXCLY.js} +3 -3
- package/dist/{render-batch-POLEEYD4.js → render-batch-PU7NMLIJ.js} +3 -3
- package/dist/{resolver-O2SED3XB.js → resolver-RUBGFXPC.js} +4 -4
- package/dist/{sherpa-HTFFFTVQ.js → sherpa-X2TBNO6P.js} +10 -9
- package/dist/{skills-J6MBGS5O.js → skills-WHKMWO2D.js} +5 -5
- package/dist/{skillsUpdateCheck-ZAXNLBF3.js → skillsUpdateCheck-XQGZGJJG.js} +3 -3
- package/dist/{snapshot-TL7TTFS6.js → snapshot-M4NUUSNU.js} +28 -27
- package/dist/{src-EL6HGIS4.js → src-4UYM2K3S.js} +5 -4
- package/dist/{src-Z5H5N5T4.js → src-6MSC62U2.js} +11 -7
- package/dist/{staticProjectServer-EO7X7RAY.js → staticProjectServer-ERDTFP45.js} +13 -12
- package/dist/studio/assets/{hyperframes-player-hz_VqxBZ.js → hyperframes-player-DEncBxR7.js} +1 -1
- package/dist/studio/assets/{index-S1ceEagc.js → index-BABXr78Q.js} +4 -4
- package/dist/studio/assets/{index-CV_ojgp5.js → index-Cc22mgvY.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-CUZDC5B3.js → studio-api-SAKD3VKC.js} +7 -6
- package/dist/{studioServer-EZPRV43Y.js → studioServer-IRI7EVOM.js} +43 -42
- package/dist/{telemetry-LFUVHARP.js → telemetry-F4XADVAF.js} +3 -3
- package/dist/{timeline-GSH743JE.js → timeline-5I444RRE.js} +15 -14
- package/dist/{tokens-3ZMPSH7B.js → tokens-LRRYM35A.js} +2 -2
- package/dist/{transcribe-4SHNDPWW.js → transcribe-44XDFNVU.js} +15 -14
- package/dist/{transcribe-TV7JBZQS.js → transcribe-WHYHWAB2.js} +9 -8
- package/dist/{updateCheck-W7FTFOQF.js → updateCheck-7CPH3CAZ.js} +2 -2
- package/dist/{upgrade-7YYYNAPF.js → upgrade-WW4GQ2RI.js} +2 -2
- package/dist/{urlDownloader-PQSUS2CP.js → urlDownloader-OHLLP45A.js} +5 -4
- package/dist/{validate-GCHAEVXM.js → validate-VNCDH2LW.js} +19 -18
- package/dist/{video-KGN7NJS5.js → video-5OHTLL2D.js} +6 -5
- package/dist/warmCheck.js +32 -31
- package/package.json +1 -1
- package/dist/chunk-GMNHAOMJ.js +0 -3805
- package/dist/render-65K3K6SD.js +0 -719
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
stripEmbeddedRuntimeScripts,
|
|
38
38
|
styleElementsFor,
|
|
39
39
|
warnUnknownEnumValues
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-R2SQBPMH.js";
|
|
41
41
|
import {
|
|
42
42
|
cssVariableName
|
|
43
43
|
} from "./chunk-VC76R6W2.js";
|
|
@@ -690,21 +690,72 @@ function scopeCssToComposition(css, compositionId, scopeSelectorOverride, author
|
|
|
690
690
|
if (!css || !trimmedCompositionId)
|
|
691
691
|
return css;
|
|
692
692
|
const scope = scopeSelectorOverride || `[data-composition-id="${escapeCssAttributeValue2(trimmedCompositionId)}"]`;
|
|
693
|
-
|
|
693
|
+
const root = parseCss(css);
|
|
694
|
+
return root ? scopeParsedCss(root, scope, trimmedCompositionId, authoredRootId, options) : "";
|
|
695
|
+
}
|
|
696
|
+
function parseCss(css) {
|
|
694
697
|
try {
|
|
695
|
-
|
|
698
|
+
return postcss.parse(css);
|
|
696
699
|
} catch {
|
|
697
|
-
return
|
|
700
|
+
return null;
|
|
698
701
|
}
|
|
702
|
+
}
|
|
703
|
+
function forEachScopedRule(root, visit) {
|
|
699
704
|
root.walkRules((rule) => {
|
|
700
705
|
if (isInsideGlobalAtRule(rule))
|
|
701
706
|
return;
|
|
702
707
|
if (isNestedInsideAnotherRule(rule))
|
|
703
708
|
return;
|
|
704
|
-
rule
|
|
709
|
+
visit(rule);
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
function scopeParsedCss(root, scope, compositionId, authoredRootId, options) {
|
|
713
|
+
forEachScopedRule(root, (rule) => {
|
|
714
|
+
rule.selectors = rule.selectors.map((selector) => scopeSelector(selector, scope, compositionId, authoredRootId, options?.compoundAuthoredRoot, options?.scopeRootSelectors));
|
|
705
715
|
});
|
|
706
716
|
return root.toResult({ map: false }).css;
|
|
707
717
|
}
|
|
718
|
+
var PLACEHOLDER_ID = "hf-scope-placeholder";
|
|
719
|
+
var PLACEHOLDER_SCOPE = `[data-composition-id="${PLACEHOLDER_ID}"]`;
|
|
720
|
+
var PLAIN_ID = /^[\w.:-]+$/;
|
|
721
|
+
var PLAIN_SCOPE = /^\[data-composition-id="([\w.:-]+)"\]$/;
|
|
722
|
+
function createCompositionCssScoper() {
|
|
723
|
+
const templates = /* @__PURE__ */ new Map();
|
|
724
|
+
return (css, compositionId, scopeSelectorOverride, authoredRootId, options) => {
|
|
725
|
+
const trimmedId = compositionId.trim();
|
|
726
|
+
const scope = scopeSelectorOverride ?? "";
|
|
727
|
+
const scopeId = PLAIN_SCOPE.exec(scope)?.[1];
|
|
728
|
+
if (!scopeId || scopeId === trimmedId || !PLAIN_ID.test(trimmedId) || trimmedId === PLACEHOLDER_ID)
|
|
729
|
+
return scopeCssToComposition(css, compositionId, scopeSelectorOverride, authoredRootId, options);
|
|
730
|
+
const key = JSON.stringify([
|
|
731
|
+
trimmedId,
|
|
732
|
+
authoredRootId ?? null,
|
|
733
|
+
Boolean(options?.compoundAuthoredRoot),
|
|
734
|
+
Boolean(options?.scopeRootSelectors),
|
|
735
|
+
css
|
|
736
|
+
]);
|
|
737
|
+
let template = templates.get(key);
|
|
738
|
+
if (template === void 0) {
|
|
739
|
+
template = scopeTemplate(css, trimmedId, authoredRootId, options);
|
|
740
|
+
templates.set(key, template);
|
|
741
|
+
}
|
|
742
|
+
return template === null ? scopeCssToComposition(css, compositionId, scopeSelectorOverride, authoredRootId, options) : template.split(PLACEHOLDER_SCOPE).join(scope);
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
function scopeTemplate(css, compositionId, authoredRootId, options) {
|
|
746
|
+
if (css.includes(PLACEHOLDER_SCOPE))
|
|
747
|
+
return null;
|
|
748
|
+
if (!css)
|
|
749
|
+
return css;
|
|
750
|
+
const root = parseCss(css);
|
|
751
|
+
if (!root)
|
|
752
|
+
return "";
|
|
753
|
+
let rawSelector = false;
|
|
754
|
+
forEachScopedRule(root, (rule) => {
|
|
755
|
+
rawSelector ||= Boolean(rule.raws.selector);
|
|
756
|
+
});
|
|
757
|
+
return rawSelector ? null : scopeParsedCss(root, PLACEHOLDER_SCOPE, compositionId, authoredRootId, options);
|
|
758
|
+
}
|
|
708
759
|
function isFontFaceAtRule(node) {
|
|
709
760
|
return node.type === "atrule" && node.name.toLowerCase() === "font-face";
|
|
710
761
|
}
|
|
@@ -1590,6 +1641,7 @@ function ensureExternalLinkTag(doc, link) {
|
|
|
1590
1641
|
if (!hasSameLink(doc, el))
|
|
1591
1642
|
doc.head.appendChild(el);
|
|
1592
1643
|
}
|
|
1644
|
+
var isDocument = (node) => node.nodeType === 9;
|
|
1593
1645
|
function defaultBuildScopeSelector(compId) {
|
|
1594
1646
|
const escaped = compId.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
1595
1647
|
return `[data-composition-id="${escaped}"]`;
|
|
@@ -1607,6 +1659,22 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1607
1659
|
const externalLinks = [];
|
|
1608
1660
|
const variablesByComp = {};
|
|
1609
1661
|
const svgIdScopes = [];
|
|
1662
|
+
const parsed = /* @__PURE__ */ new Map();
|
|
1663
|
+
const parseOnce = (html) => {
|
|
1664
|
+
let doc = parsed.get(html);
|
|
1665
|
+
if (!doc) {
|
|
1666
|
+
doc = parseHtml(html);
|
|
1667
|
+
parsed.set(html, doc);
|
|
1668
|
+
}
|
|
1669
|
+
return doc;
|
|
1670
|
+
};
|
|
1671
|
+
const parseCopy = (html) => {
|
|
1672
|
+
const copy = parseOnce(html).cloneNode(true);
|
|
1673
|
+
return isDocument(copy) ? copy : parseHtml(html);
|
|
1674
|
+
};
|
|
1675
|
+
const usability = /* @__PURE__ */ new Map();
|
|
1676
|
+
const sheetsWithAssetUrls = /* @__PURE__ */ new Map();
|
|
1677
|
+
const scopeCssToComposition2 = createCompositionCssScoper();
|
|
1610
1678
|
const sceneHosts = /* @__PURE__ */ new Map();
|
|
1611
1679
|
const queue = hosts.map((element) => ({
|
|
1612
1680
|
element,
|
|
@@ -1619,7 +1687,12 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1619
1687
|
if (!src)
|
|
1620
1688
|
continue;
|
|
1621
1689
|
const compHtml = resolveHtml(src);
|
|
1622
|
-
|
|
1690
|
+
let validity = compHtml == null ? void 0 : usability.get(compHtml);
|
|
1691
|
+
if (!validity) {
|
|
1692
|
+
validity = checkSubCompositionUsability(compHtml, parseOnce);
|
|
1693
|
+
if (compHtml != null)
|
|
1694
|
+
usability.set(compHtml, validity);
|
|
1695
|
+
}
|
|
1623
1696
|
if (!validity.ok) {
|
|
1624
1697
|
onMissingComposition?.(src, validity.detail);
|
|
1625
1698
|
continue;
|
|
@@ -1628,7 +1701,7 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1628
1701
|
onMissingComposition?.(src);
|
|
1629
1702
|
continue;
|
|
1630
1703
|
}
|
|
1631
|
-
const compDoc =
|
|
1704
|
+
const compDoc = parseCopy(compHtml);
|
|
1632
1705
|
let compId;
|
|
1633
1706
|
let runtimeCompId;
|
|
1634
1707
|
if (hostIdentityMap) {
|
|
@@ -1644,7 +1717,7 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1644
1717
|
onMissingComposition?.(src);
|
|
1645
1718
|
continue;
|
|
1646
1719
|
}
|
|
1647
|
-
const contentDoc =
|
|
1720
|
+
const contentDoc = parseCopy(contentHtml);
|
|
1648
1721
|
if (!contentDoc.documentElement) {
|
|
1649
1722
|
onMissingComposition?.(src);
|
|
1650
1723
|
continue;
|
|
@@ -1688,8 +1761,13 @@ function inlineSubCompositions(document, hosts, options) {
|
|
|
1688
1761
|
}
|
|
1689
1762
|
const resolveSubAssetPath = (raw) => rewriteAssetPath(src, (raw || "").trim(), assetExists);
|
|
1690
1763
|
const scopeSubStyle = (raw) => {
|
|
1691
|
-
const
|
|
1692
|
-
|
|
1764
|
+
const sheetKey = JSON.stringify([src, raw]);
|
|
1765
|
+
let css = sheetsWithAssetUrls.get(sheetKey);
|
|
1766
|
+
if (css === void 0) {
|
|
1767
|
+
css = rewriteCssAssetUrls(raw, src, assetExists);
|
|
1768
|
+
sheetsWithAssetUrls.set(sheetKey, css);
|
|
1769
|
+
}
|
|
1770
|
+
return scopeCompId ? scopeCssToComposition2(css, scopeCompId, runtimeScope || void 0, authoredRootId, {
|
|
1693
1771
|
compoundAuthoredRoot: compoundAuthoredRoot === true,
|
|
1694
1772
|
scopeRootSelectors: true
|
|
1695
1773
|
}) : css;
|
|
@@ -2346,31 +2424,45 @@ function warnAssetTooLargeToInline(assetPath, byteLength) {
|
|
|
2346
2424
|
const mb = (byteLength / (1024 * 1024)).toFixed(1);
|
|
2347
2425
|
console.warn(`[HyperFrames] Not inlining "${assetPath}" (${mb} MB exceeds the ${MAX_INLINE_ASSET_BYTES / (1024 * 1024)} MB inline limit). The bundle may not be self-contained.`);
|
|
2348
2426
|
}
|
|
2349
|
-
function
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
return
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2427
|
+
function createAssetInliner(resolveProjectPath, inlineAssets) {
|
|
2428
|
+
const assets = /* @__PURE__ */ new Map();
|
|
2429
|
+
const readAsset = (filePath, mimeType) => {
|
|
2430
|
+
const byteLength = safeStatSize(filePath);
|
|
2431
|
+
if (byteLength !== null && byteLength > MAX_INLINE_ASSET_BYTES)
|
|
2432
|
+
return { tooLarge: byteLength };
|
|
2433
|
+
const content = safeReadFileBuffer(filePath);
|
|
2434
|
+
return {
|
|
2435
|
+
dataUrl: content === null ? null : `data:${mimeType};base64,${content.toString("base64")}`
|
|
2436
|
+
};
|
|
2437
|
+
};
|
|
2438
|
+
return (urlValue) => {
|
|
2439
|
+
if (!inlineAssets)
|
|
2440
|
+
return null;
|
|
2441
|
+
if (!urlValue || !isRelativeUrl(urlValue))
|
|
2442
|
+
return null;
|
|
2443
|
+
const { basePath, suffix } = splitUrlSuffix(urlValue.trim());
|
|
2444
|
+
if (!basePath)
|
|
2445
|
+
return null;
|
|
2446
|
+
const filePath = resolveProjectPath(decodeWellFormedEscapes(basePath));
|
|
2447
|
+
if (!filePath)
|
|
2448
|
+
return null;
|
|
2449
|
+
const ext = filePath.toLowerCase().match(/\.[^.]+$/)?.[0] ?? "";
|
|
2450
|
+
const mimeType = INLINE_MIME[ext];
|
|
2451
|
+
if (!mimeType)
|
|
2452
|
+
return null;
|
|
2453
|
+
let asset = assets.get(filePath);
|
|
2454
|
+
if (asset === void 0) {
|
|
2455
|
+
asset = readAsset(filePath, mimeType);
|
|
2456
|
+
assets.set(filePath, asset);
|
|
2457
|
+
} else if ("dataUrl" in asset) {
|
|
2458
|
+
noteRead(filePath);
|
|
2459
|
+
}
|
|
2460
|
+
if ("tooLarge" in asset) {
|
|
2461
|
+
warnAssetTooLargeToInline(basePath, asset.tooLarge);
|
|
2462
|
+
return null;
|
|
2463
|
+
}
|
|
2464
|
+
return asset.dataUrl === null ? null : appendSuffixToUrl(asset.dataUrl, suffix);
|
|
2465
|
+
};
|
|
2374
2466
|
}
|
|
2375
2467
|
function isExternalSvgFragmentUse(el, attr, urlValue) {
|
|
2376
2468
|
if (el.tagName.toLowerCase() !== "use")
|
|
@@ -2391,7 +2483,7 @@ function warnColorGradingLutNotInlined(lutSrc) {
|
|
|
2391
2483
|
return;
|
|
2392
2484
|
console.warn(`[HyperFrames] Could not inline color grading LUT "${trimmed}". The rendered bundle may not be self-contained.`);
|
|
2393
2485
|
}
|
|
2394
|
-
function rewriteColorGradingLutWithInlinedAssets(value,
|
|
2486
|
+
function rewriteColorGradingLutWithInlinedAssets(value, inlineAsset) {
|
|
2395
2487
|
if (!value.trim().startsWith("{"))
|
|
2396
2488
|
return value;
|
|
2397
2489
|
let parsed;
|
|
@@ -2404,7 +2496,7 @@ function rewriteColorGradingLutWithInlinedAssets(value, projectDir) {
|
|
|
2404
2496
|
return value;
|
|
2405
2497
|
const lut = Reflect.get(parsed, "lut");
|
|
2406
2498
|
if (typeof lut === "string") {
|
|
2407
|
-
const inlined2 =
|
|
2499
|
+
const inlined2 = inlineAsset(lut);
|
|
2408
2500
|
if (!inlined2) {
|
|
2409
2501
|
warnColorGradingLutNotInlined(lut);
|
|
2410
2502
|
return value;
|
|
@@ -2417,7 +2509,7 @@ function rewriteColorGradingLutWithInlinedAssets(value, projectDir) {
|
|
|
2417
2509
|
const lutSrc = Reflect.get(lut, "src");
|
|
2418
2510
|
if (typeof lutSrc !== "string")
|
|
2419
2511
|
return value;
|
|
2420
|
-
const inlined =
|
|
2512
|
+
const inlined = inlineAsset(lutSrc);
|
|
2421
2513
|
if (!inlined) {
|
|
2422
2514
|
warnColorGradingLutNotInlined(lutSrc);
|
|
2423
2515
|
return value;
|
|
@@ -2425,7 +2517,7 @@ function rewriteColorGradingLutWithInlinedAssets(value, projectDir) {
|
|
|
2425
2517
|
Reflect.set(lut, "src", inlined);
|
|
2426
2518
|
return JSON.stringify(parsed);
|
|
2427
2519
|
}
|
|
2428
|
-
function rewriteSrcsetWithInlinedAssets(srcsetValue,
|
|
2520
|
+
function rewriteSrcsetWithInlinedAssets(srcsetValue, inlineAsset) {
|
|
2429
2521
|
if (!srcsetValue)
|
|
2430
2522
|
return srcsetValue;
|
|
2431
2523
|
return srcsetValue.split(",").map((rawCandidate) => {
|
|
@@ -2435,17 +2527,17 @@ function rewriteSrcsetWithInlinedAssets(srcsetValue, projectDir, inlineAssets) {
|
|
|
2435
2527
|
const parts = candidate.split(/\s+/);
|
|
2436
2528
|
if (parts.length === 0)
|
|
2437
2529
|
return candidate;
|
|
2438
|
-
const maybeInlined =
|
|
2530
|
+
const maybeInlined = inlineAsset(parts[0] ?? "");
|
|
2439
2531
|
if (maybeInlined)
|
|
2440
2532
|
parts[0] = maybeInlined;
|
|
2441
2533
|
return parts.join(" ");
|
|
2442
2534
|
}).join(", ");
|
|
2443
2535
|
}
|
|
2444
|
-
function rewriteCssUrlsWithInlinedAssets(cssText,
|
|
2536
|
+
function rewriteCssUrlsWithInlinedAssets(cssText, inlineAsset) {
|
|
2445
2537
|
if (!cssText)
|
|
2446
2538
|
return cssText;
|
|
2447
2539
|
return cssText.replace(/\burl\(\s*(["']?)([^)"']+)\1\s*\)/g, (_full, quote, rawUrl) => {
|
|
2448
|
-
const maybeInlined =
|
|
2540
|
+
const maybeInlined = inlineAsset((rawUrl || "").trim());
|
|
2449
2541
|
if (!maybeInlined)
|
|
2450
2542
|
return _full;
|
|
2451
2543
|
return `url(${quote || ""}${maybeInlined}${quote || ""})`;
|
|
@@ -2788,7 +2880,17 @@ function hoistCompositionScripts(container, opts) {
|
|
|
2788
2880
|
}
|
|
2789
2881
|
function bundleToSingleHtml(projectDir, options) {
|
|
2790
2882
|
const bundle = () => bundleProject(projectDir, options);
|
|
2791
|
-
|
|
2883
|
+
const onRead = options?.onRead;
|
|
2884
|
+
if (!onRead)
|
|
2885
|
+
return bundle();
|
|
2886
|
+
const noted = /* @__PURE__ */ new Set();
|
|
2887
|
+
const noteOnce = (filePath) => {
|
|
2888
|
+
if (noted.has(filePath))
|
|
2889
|
+
return;
|
|
2890
|
+
noted.add(filePath);
|
|
2891
|
+
onRead(filePath);
|
|
2892
|
+
};
|
|
2893
|
+
return bundleReads.run(noteOnce, bundle);
|
|
2792
2894
|
}
|
|
2793
2895
|
function readMountedSceneShell(projectDir, entryFile, entryHtml) {
|
|
2794
2896
|
if (!isTemplateEntry(entryHtml))
|
|
@@ -2806,9 +2908,28 @@ async function bundleProject(projectDir, options) {
|
|
|
2806
2908
|
const entryHtml = readFileSync(indexPath, "utf-8");
|
|
2807
2909
|
const mountedShell = readMountedSceneShell(projectDir, entryFile, entryHtml);
|
|
2808
2910
|
const sourceDir = mountedShell ? projectDir : dirname(indexPath);
|
|
2911
|
+
const safePaths = /* @__PURE__ */ new Map();
|
|
2912
|
+
const isSafeProjectPath = (resolved) => {
|
|
2913
|
+
let safe = safePaths.get(resolved);
|
|
2914
|
+
if (safe === void 0) {
|
|
2915
|
+
safe = isSafePath(projectDir, resolved);
|
|
2916
|
+
safePaths.set(resolved, safe);
|
|
2917
|
+
}
|
|
2918
|
+
return safe;
|
|
2919
|
+
};
|
|
2920
|
+
const entryPaths = /* @__PURE__ */ new Map();
|
|
2809
2921
|
const resolveEntryPath = (relativePath) => {
|
|
2810
|
-
|
|
2811
|
-
|
|
2922
|
+
let entry = entryPaths.get(relativePath);
|
|
2923
|
+
if (entry === void 0) {
|
|
2924
|
+
const resolved = resolve2(sourceDir, relativePath);
|
|
2925
|
+
entry = isSafeProjectPath(resolved) ? resolved : null;
|
|
2926
|
+
entryPaths.set(relativePath, entry);
|
|
2927
|
+
}
|
|
2928
|
+
return entry;
|
|
2929
|
+
};
|
|
2930
|
+
const resolveProjectPath = (relativePath) => {
|
|
2931
|
+
const resolved = resolve2(projectDir, relativePath);
|
|
2932
|
+
return isSafeProjectPath(resolved) ? resolved : null;
|
|
2812
2933
|
};
|
|
2813
2934
|
const resolveEntryUrl = (url) => resolveEntryPath(decodedUrlPath(url));
|
|
2814
2935
|
const readSource = options?.stampHfIds ? ensureHfIds : (html) => html;
|
|
@@ -2859,13 +2980,23 @@ async function bundleProject(projectDir, options) {
|
|
|
2859
2980
|
const trackedCompositionHosts = getBundledTrackedCompositionHosts(document);
|
|
2860
2981
|
const hostIdentityByElement = assignBundledRuntimeCompositionIds(trackedCompositionHosts);
|
|
2861
2982
|
const subCompositionHosts = trackedCompositionHosts.filter((host) => host.hasAttribute("data-composition-src"));
|
|
2983
|
+
const sceneSources = /* @__PURE__ */ new Map();
|
|
2862
2984
|
const subCompResult = inlineSubCompositions(document, subCompositionHosts, {
|
|
2863
2985
|
resolveHtml: (srcPath) => {
|
|
2864
2986
|
if (!isRelativeUrl(srcPath))
|
|
2865
2987
|
return null;
|
|
2866
2988
|
const compPath = resolveEntryPath(srcPath);
|
|
2867
|
-
|
|
2868
|
-
|
|
2989
|
+
if (!compPath)
|
|
2990
|
+
return null;
|
|
2991
|
+
let source = sceneSources.get(compPath);
|
|
2992
|
+
if (source === void 0) {
|
|
2993
|
+
const html = safeReadFile(compPath);
|
|
2994
|
+
source = html === null ? null : readSource(html);
|
|
2995
|
+
sceneSources.set(compPath, source);
|
|
2996
|
+
} else {
|
|
2997
|
+
noteRead(compPath);
|
|
2998
|
+
}
|
|
2999
|
+
return source;
|
|
2869
3000
|
},
|
|
2870
3001
|
parseHtml: parseHTMLContent,
|
|
2871
3002
|
hostIdentityMap: hostIdentityByElement,
|
|
@@ -3078,6 +3209,7 @@ async function bundleProject(projectDir, options) {
|
|
|
3078
3209
|
deferScriptsUntilFonts(document, (el) => el.hasAttribute(RUNTIME_BOOTSTRAP_ATTR));
|
|
3079
3210
|
injectTextRenderingRule(document);
|
|
3080
3211
|
const inlineAssets = options?.inlineAssets !== false;
|
|
3212
|
+
const inlineAsset = createAssetInliner(resolveProjectPath, inlineAssets);
|
|
3081
3213
|
for (const el of [...document.querySelectorAll("[src], [href], [poster], [xlink\\:href]")]) {
|
|
3082
3214
|
for (const attr of ["src", "href", "poster", "xlink:href"]) {
|
|
3083
3215
|
const value = el.getAttribute(attr);
|
|
@@ -3085,7 +3217,7 @@ async function bundleProject(projectDir, options) {
|
|
|
3085
3217
|
continue;
|
|
3086
3218
|
if (isExternalSvgFragmentUse(el, attr, value))
|
|
3087
3219
|
continue;
|
|
3088
|
-
const inlined =
|
|
3220
|
+
const inlined = inlineAsset(value);
|
|
3089
3221
|
if (inlined)
|
|
3090
3222
|
el.setAttribute(attr, inlined);
|
|
3091
3223
|
}
|
|
@@ -3093,7 +3225,7 @@ async function bundleProject(projectDir, options) {
|
|
|
3093
3225
|
for (const el of [...document.querySelectorAll("[srcset]")]) {
|
|
3094
3226
|
const srcset = el.getAttribute("srcset");
|
|
3095
3227
|
if (srcset)
|
|
3096
|
-
el.setAttribute("srcset", rewriteSrcsetWithInlinedAssets(srcset,
|
|
3228
|
+
el.setAttribute("srcset", rewriteSrcsetWithInlinedAssets(srcset, inlineAsset));
|
|
3097
3229
|
}
|
|
3098
3230
|
const liveStyles = [...document.querySelectorAll("style")].filter(isAlwaysAppliedStyle);
|
|
3099
3231
|
const liveCss = liveStyles.map((el) => el.textContent || "");
|
|
@@ -3108,16 +3240,16 @@ async function bundleProject(projectDir, options) {
|
|
|
3108
3240
|
document.head.prepend(holder);
|
|
3109
3241
|
}
|
|
3110
3242
|
for (const styleEl of document.querySelectorAll("style")) {
|
|
3111
|
-
styleEl.textContent = rewriteCssUrlsWithInlinedAssets(styleEl.textContent || "",
|
|
3243
|
+
styleEl.textContent = rewriteCssUrlsWithInlinedAssets(styleEl.textContent || "", inlineAsset);
|
|
3112
3244
|
}
|
|
3113
3245
|
for (const el of [...document.querySelectorAll("[style]")]) {
|
|
3114
|
-
el.setAttribute("style", rewriteCssUrlsWithInlinedAssets(el.getAttribute("style") || "",
|
|
3246
|
+
el.setAttribute("style", rewriteCssUrlsWithInlinedAssets(el.getAttribute("style") || "", inlineAsset));
|
|
3115
3247
|
}
|
|
3116
3248
|
if (inlineAssets && options?.inlineColorGradingLuts !== false) {
|
|
3117
3249
|
for (const el of [...document.querySelectorAll(`[${HF_COLOR_GRADING_ATTR}]`)]) {
|
|
3118
3250
|
const value = el.getAttribute(HF_COLOR_GRADING_ATTR);
|
|
3119
3251
|
if (value) {
|
|
3120
|
-
el.setAttribute(HF_COLOR_GRADING_ATTR, rewriteColorGradingLutWithInlinedAssets(value,
|
|
3252
|
+
el.setAttribute(HF_COLOR_GRADING_ATTR, rewriteColorGradingLutWithInlinedAssets(value, inlineAsset));
|
|
3121
3253
|
}
|
|
3122
3254
|
}
|
|
3123
3255
|
}
|
|
@@ -3157,7 +3289,22 @@ function emitRootCompositionVariableStyles(document, variablesByComp = {}, overr
|
|
|
3157
3289
|
}
|
|
3158
3290
|
function authoredDefinesPredicate(document) {
|
|
3159
3291
|
const authoredCss = [...document.querySelectorAll("style:not([data-hf-composition-variables])")].map((s) => s.textContent || "").join("\n");
|
|
3160
|
-
|
|
3292
|
+
const defined = namesBeforeAColon(authoredCss);
|
|
3293
|
+
return (id) => defined.has(cssVariableName(id));
|
|
3294
|
+
}
|
|
3295
|
+
function namesBeforeAColon(css) {
|
|
3296
|
+
const names = /* @__PURE__ */ new Set();
|
|
3297
|
+
const word = /[\w-]+/g;
|
|
3298
|
+
const colonNext = /\s*:/y;
|
|
3299
|
+
for (let match = word.exec(css); match; match = word.exec(css)) {
|
|
3300
|
+
colonNext.lastIndex = word.lastIndex;
|
|
3301
|
+
if (!colonNext.test(css))
|
|
3302
|
+
continue;
|
|
3303
|
+
const text = match[0];
|
|
3304
|
+
for (let at = text.indexOf("--"); at !== -1; at = text.indexOf("--", at + 1))
|
|
3305
|
+
names.add(text.slice(at));
|
|
3306
|
+
}
|
|
3307
|
+
return names;
|
|
3161
3308
|
}
|
|
3162
3309
|
function makeVariableLayer(authoredDefines, overrides) {
|
|
3163
3310
|
return (declared, hostValues) => {
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JIUTXKWA.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UKOTVJFV.js";
|
|
14
14
|
import {
|
|
15
15
|
c
|
|
16
16
|
} from "./chunk-ZTZA4UWZ.js";
|
|
@@ -84,7 +84,7 @@ async function getDoctorSummary() {
|
|
|
84
84
|
try {
|
|
85
85
|
const [{ getSystemMeta }, { findFFmpeg }] = await Promise.all([
|
|
86
86
|
import("./system-7F3UEHQT.js"),
|
|
87
|
-
import("./ffmpeg-
|
|
87
|
+
import("./ffmpeg-BYHON577.js")
|
|
88
88
|
]);
|
|
89
89
|
const sys = getSystemMeta();
|
|
90
90
|
const parts = [
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-5ETJX6WM.js";
|
|
17
17
|
import {
|
|
18
18
|
runEnvironmentChecks
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-E32ZQ2WO.js";
|
|
20
20
|
import {
|
|
21
21
|
OPTIONAL_PACKAGES,
|
|
22
22
|
installedOptionalPackageVersion
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
} from "./chunk-ZTZA4UWZ.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveExtractCacheDir
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-RGXVEYHI.js";
|
|
33
33
|
import {
|
|
34
34
|
getAvailableMemoryMb,
|
|
35
35
|
getFreeDiskMb,
|
|
@@ -39,14 +39,14 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
getUpdateMeta,
|
|
41
41
|
withMeta
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ABZYYUUH.js";
|
|
43
43
|
import {
|
|
44
44
|
CONFIG_PATH,
|
|
45
45
|
withFileLock
|
|
46
46
|
} from "./chunk-XUXGIA7H.js";
|
|
47
47
|
import {
|
|
48
48
|
VERSION
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-4N4P3ZWL.js";
|
|
50
50
|
import {
|
|
51
51
|
normalizeErrorMessage
|
|
52
52
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -232,7 +232,7 @@ function checkEnvironment() {
|
|
|
232
232
|
return { ok: true, detail: parts.join(" \xB7 ") };
|
|
233
233
|
}
|
|
234
234
|
async function checkWhisper() {
|
|
235
|
-
const { findWhisper, getInstallInstructions } = await import("./manager-
|
|
235
|
+
const { findWhisper, getInstallInstructions } = await import("./manager-TWVDSJXO.js");
|
|
236
236
|
const result = findWhisper();
|
|
237
237
|
if (result) {
|
|
238
238
|
return { ok: true, detail: result.executablePath };
|
|
@@ -6,10 +6,10 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
getMimeType
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QVMJ7GX.js";
|
|
10
10
|
import {
|
|
11
11
|
injectTagsAtHeadStart
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R2SQBPMH.js";
|
|
13
13
|
|
|
14
14
|
// src/utils/compositionServer.ts
|
|
15
15
|
import { createHash } from "crypto";
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
isAllowedHtmlAttribute,
|
|
12
12
|
isSafeAttributeValue,
|
|
13
13
|
sanitizeRichTextChildren
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-J3QM7AHP.js";
|
|
15
15
|
import {
|
|
16
16
|
EXCLUDED_TAGS,
|
|
17
17
|
ensureHfIds,
|
|
18
18
|
mintHfId,
|
|
19
19
|
walkCompositionDescendants
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YALM6XN4.js";
|
|
21
21
|
import {
|
|
22
22
|
decodedUrlPath,
|
|
23
23
|
removeElementWithGsapCascade
|
|
@@ -6,18 +6,18 @@ var __filename = __hf_fileURLToPath(import.meta.url);
|
|
|
6
6
|
var __dirname = __hf_dirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
redactHome
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YWHCXIMD.js";
|
|
10
10
|
import "./chunk-Z27A7NUB.js";
|
|
11
11
|
import "./chunk-5ETJX6WM.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-E32ZQ2WO.js";
|
|
13
13
|
import "./chunk-QH3T4WI2.js";
|
|
14
14
|
import "./chunk-6BEFEWFB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-7HJALUIO.js";
|
|
16
16
|
import {
|
|
17
17
|
loadProducer
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-BCHSTE7U.js";
|
|
19
|
+
import "./chunk-3QVMJ7GX.js";
|
|
20
|
+
import "./chunk-ZRHO6YMM.js";
|
|
21
21
|
import "./chunk-6JR2XUEE.js";
|
|
22
22
|
import "./chunk-TTVHYD5R.js";
|
|
23
23
|
import {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
import {
|
|
29
29
|
CACHE_DIR_NAME,
|
|
30
30
|
cleanupProxyCache
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SN7KI5JA.js";
|
|
32
32
|
import "./chunk-ALVXFXUG.js";
|
|
33
33
|
import {
|
|
34
34
|
formatBytes
|
|
@@ -52,11 +52,12 @@ import {
|
|
|
52
52
|
directorySizeBytes,
|
|
53
53
|
gcExtractionCache,
|
|
54
54
|
resolveExtractCacheDir
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import "./chunk-
|
|
55
|
+
} from "./chunk-RGXVEYHI.js";
|
|
56
|
+
import "./chunk-IZCW2NKT.js";
|
|
57
|
+
import "./chunk-J3QM7AHP.js";
|
|
57
58
|
import "./chunk-RQVDTPGD.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
59
|
+
import "./chunk-YALM6XN4.js";
|
|
60
|
+
import "./chunk-R2SQBPMH.js";
|
|
60
61
|
import "./chunk-VC76R6W2.js";
|
|
61
62
|
import "./chunk-UJKQWGFF.js";
|
|
62
63
|
import "./chunk-YMS5FOMC.js";
|
|
@@ -82,12 +83,12 @@ import "./chunk-TYXH3EKP.js";
|
|
|
82
83
|
import "./chunk-W2LGJSEN.js";
|
|
83
84
|
import {
|
|
84
85
|
withMeta
|
|
85
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ABZYYUUH.js";
|
|
86
87
|
import "./chunk-K4WIOZFP.js";
|
|
87
88
|
import "./chunk-XUXGIA7H.js";
|
|
88
89
|
import "./chunk-WERLJGIC.js";
|
|
89
90
|
import "./chunk-ISN5GRYI.js";
|
|
90
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-4N4P3ZWL.js";
|
|
91
92
|
import "./chunk-KNU5COPB.js";
|
|
92
93
|
import "./chunk-KGPLIH7B.js";
|
|
93
94
|
import "./chunk-M2WBOQ2Q.js";
|