hyperframes 0.8.162 → 0.8.164
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-UW7GCPQF.js → add-5UR2S4ZU.js} +11 -11
- package/dist/{animatedGifPrep-YAJTDXB7.js → animatedGifPrep-NUU6VMFL.js} +5 -5
- package/dist/api.js +11 -11
- package/dist/{asset-TWBPYQOL.js → asset-TB7K7OFL.js} +2 -2
- package/dist/{assetCataloger-BIDQA34M.js → assetCataloger-FE4K64GW.js} +27 -7
- package/dist/{audio-DJIE4YLH.js → audio-WH3XWV6N.js} +10 -10
- package/dist/{auth-VTCEZYBT.js → auth-4BBOL3DI.js} +1 -1
- package/dist/{autoUpdate-JA3SV472.js → autoUpdate-7LARILUN.js} +2 -2
- package/dist/{backgroundChecks-J3WJDPQJ.js → backgroundChecks-5A5VAWOQ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/{batchRender-C2JCG5EK.js → batchRender-GJ65EZ26.js} +3 -3
- package/dist/{beats-QVJVXZV5.js → beats-EVQOYYYQ.js} +4 -4
- package/dist/{benchmark-WNBAKOXS.js → benchmark-5KE22VUG.js} +8 -8
- package/dist/{browser-VJOTRIXL.js → browser-BLGJSG23.js} +3 -3
- package/dist/{bundleWithLocalizedFonts-SLBVWQ7O.js → bundleWithLocalizedFonts-O3BXZLCD.js} +2 -2
- package/dist/{capture-M5ZAD3BI.js → capture-KSXWVLT7.js} +312 -98
- package/dist/{capture-GUO23PVN.js → capture-PR52XOEQ.js} +2 -2
- package/dist/{catalog-SAC4GFIN.js → catalog-W3AG6ISP.js} +11 -11
- package/dist/{catch-up-T5RIRFJF.js → catch-up-JLZUALKW.js} +4 -4
- package/dist/{check-IRETF27J.js → check-PGH3VCIR.js} +30 -30
- package/dist/{checkBrowser-5IXR4QCK.js → checkBrowser-MNJBUCZD.js} +28 -27
- package/dist/{chunk-YLBV2PXM.js → chunk-36CWAWB7.js} +12 -1
- package/dist/{chunk-RTS7BGEC.js → chunk-3E3VMAAM.js} +1 -1
- package/dist/{chunk-MMV6IY6U.js → chunk-3KY7FUSS.js} +2 -2
- package/dist/{chunk-XTLV6UVP.js → chunk-3TKNBY6K.js} +2 -2
- package/dist/{chunk-KAKBRDU4.js → chunk-3XJVN7MR.js} +2 -2
- package/dist/{chunk-LYIG2GZ5.js → chunk-42AER3PM.js} +1 -1
- package/dist/{chunk-B7RUGHBT.js → chunk-4LXWLCIX.js} +1 -1
- package/dist/{chunk-T5BG7PYZ.js → chunk-56RENSU4.js} +1 -1
- package/dist/{chunk-B5FZ2CQM.js → chunk-57SASPYR.js} +13 -2
- package/dist/{chunk-NGKM64BP.js → chunk-5CTORVUM.js} +17 -2
- package/dist/{chunk-4ID635FL.js → chunk-5K5YH6M7.js} +1 -1
- package/dist/{chunk-T65MIV36.js → chunk-6DJLEE74.js} +3 -3
- package/dist/{chunk-GJQHHAAX.js → chunk-74H5SHQL.js} +3 -3
- package/dist/{chunk-PLEMSN3E.js → chunk-A356JY2J.js} +29 -19
- package/dist/{chunk-OMJA7JP6.js → chunk-AFPGUKMN.js} +4 -4
- package/dist/{chunk-RGYEL7QD.js → chunk-AXATVUCD.js} +3 -3
- package/dist/{chunk-GG37I7B3.js → chunk-BHGIBGUZ.js} +1 -1
- package/dist/{chunk-5YSHR4XC.js → chunk-CXVBPW5F.js} +6 -6
- package/dist/{chunk-GIPNECWL.js → chunk-D5PUMG2P.js} +1 -1
- package/dist/{chunk-D33YJZOH.js → chunk-DSXDYQQV.js} +1 -1
- package/dist/{chunk-3LQEZ4EI.js → chunk-FTFWZHTZ.js} +1 -1
- package/dist/{chunk-3NSVHCOH.js → chunk-G3QMPIFG.js} +2 -2
- package/dist/{chunk-PPF65XAF.js → chunk-GD7VU7CY.js} +1 -1
- package/dist/{chunk-GNFWKGSQ.js → chunk-GJOW6ZFW.js} +2 -2
- package/dist/{chunk-ERTJPFCH.js → chunk-H3JGPRWA.js} +1 -1
- package/dist/{chunk-EVRUR7DW.js → chunk-H45RC6HN.js} +1 -1
- package/dist/{chunk-DJZEIVAP.js → chunk-H46R2BND.js} +1 -1
- package/dist/{chunk-NQR5SBXX.js → chunk-HYRDV7AL.js} +1 -1
- package/dist/{chunk-XWWYGXJ5.js → chunk-JEW5CCRU.js} +2 -2
- package/dist/{chunk-FF5TAEPT.js → chunk-KR3M4GKH.js} +1 -1
- package/dist/{chunk-G642IIVK.js → chunk-LMHXUDSR.js} +1 -1
- package/dist/{chunk-VXVRPIJA.js → chunk-NOVAH7N4.js} +69 -1
- package/dist/{chunk-Q3TFX4OZ.js → chunk-NZ7K76Y2.js} +1 -1
- package/dist/{chunk-MP676E4B.js → chunk-O2CXBATN.js} +4 -3
- package/dist/{chunk-YJKUE3LV.js → chunk-PRZDWAH3.js} +1 -1
- package/dist/{chunk-KIJO75L4.js → chunk-Q4XFXAQ3.js} +18 -4
- package/dist/{chunk-N2NDDTYW.js → chunk-QGYAHDOR.js} +2 -2
- package/dist/{chunk-2ZLYSXZC.js → chunk-R64V3KQN.js} +10 -9
- package/dist/{chunk-PBNV5V5G.js → chunk-SYOB5Y35.js} +191 -3
- package/dist/{chunk-ON2HYNGB.js → chunk-UF45OJ3N.js} +6 -6
- package/dist/{chunk-S6OLD4SL.js → chunk-UH4IL4K4.js} +7 -7
- package/dist/{chunk-P4QE7SSN.js → chunk-ULAB77ZO.js} +1 -1
- package/dist/{chunk-YU2QRNWN.js → chunk-UZOZ2W2E.js} +3 -2
- package/dist/{chunk-ZEWX3GHP.js → chunk-VEAKQW4X.js} +1 -1
- package/dist/{chunk-AAUK5GDI.js → chunk-WE5X5AKF.js} +9 -9
- package/dist/{chunk-5K34RPE5.js → chunk-WLQII3K3.js} +2 -2
- package/dist/{chunk-JJYFRAI4.js → chunk-WZSWLCEH.js} +1 -1
- package/dist/{chunk-GS5EXZBV.js → chunk-XYDPJ3CQ.js} +9 -9
- package/dist/{chunk-SB5DX6AD.js → chunk-Z6VBXCYN.js} +2 -2
- package/dist/{chunk-P47XYVEQ.js → chunk-ZJO4SLHC.js} +1 -1
- package/dist/{clean-WB62QULT.js → clean-R7BXTAFB.js} +11 -11
- package/dist/cli.js +68 -60
- package/dist/{cloud-E5WB4DWZ.js → cloud-IPXFPX7M.js} +4 -4
- package/dist/{cloudrun-BIQXBUDO.js → cloudrun-RMBT2JQK.js} +3 -3
- package/dist/commands/layout-audit.browser.js +347 -20
- package/dist/{compare-GHFVHZ5A.js → compare-S3RMZBB4.js} +22 -22
- package/dist/{compiler-57M6W5WY.js → compiler-RKH75FZH.js} +2 -2
- package/dist/{component-ZGCC3MHX.js → component-VSOWEAK4.js} +3 -3
- package/dist/{compositions-THPEDDIX.js → compositions-7LPCAY7M.js} +9 -9
- package/dist/{delete-6FWT7DZX.js → delete-L32WDJGO.js} +2 -2
- package/dist/{dist-4JFB3WAR.js → dist-P5OHBFEV.js} +2 -2
- package/dist/{doctor-RDGDOUC4.js → doctor-7TSVAIF2.js} +7 -7
- package/dist/{dotEnv-AECLXQSO.js → dotEnv-64S3VKGH.js} +3 -1
- package/dist/{events-CU6FDXHC.js → events-FDHKA6NV.js} +3 -3
- package/dist/{events-VHXICDA2.js → events-RFABFHWU.js} +2 -2
- package/dist/{feedback-PUPN6EKP.js → feedback-SDAJ2HAM.js} +7 -7
- package/dist/{figma-ZKWBF7QH.js → figma-KJBYCHXQ.js} +3 -3
- package/dist/fontLocalizeCli.js +7 -7
- package/dist/{get-JHIBQRPM.js → get-6Z3JCPJ6.js} +2 -2
- package/dist/{gpuPolicy-VGE3I5J4.js → gpuPolicy-SYV7N237.js} +5 -5
- package/dist/{grade-compare-GPLUXDPW.js → grade-compare-HAQXCQSE.js} +22 -22
- package/dist/{help-GO6RGM37.js → help-WMMVG2PR.js} +1 -1
- package/dist/{history-RUTC4SH5.js → history-5AQNASLD.js} +6 -6
- package/dist/hyperframe-runtime.js +23 -23
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +23 -23
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-773VXW37.js → info-OUJ3HXTN.js} +7 -7
- package/dist/{init-YXSIRYZI.js → init-NEEYHH7E.js} +20 -20
- package/dist/{inspect-L4RRJEAA.js → inspect-ZWBDYWTY.js} +23 -23
- package/dist/{installer-T3STEB4U.js → installer-QWK7EA5M.js} +4 -4
- package/dist/{keyframes-P5IOQ6AM.js → keyframes-BA5R5Q7G.js} +6 -6
- package/dist/{lambda-RAJA6ZNA.js → lambda-LQHGF3LK.js} +4 -4
- package/dist/{layout-OH2VTN5E.js → layout-GJVLRWIJ.js} +23 -23
- package/dist/{lint-YEEPVE6Q.js → lint-FBH2BA2A.js} +6 -6
- package/dist/{list-QURRZTVN.js → list-XDZIX2PU.js} +2 -2
- package/dist/{login-DFT4L5YY.js → login-CUHIF5GP.js} +4 -4
- package/dist/{media-treatment-ERQ2PBIN.js → media-treatment-HZDD67IL.js} +8 -8
- package/dist/{models-OA4MXEYG.js → models-J2FZXHMD.js} +8 -8
- package/dist/{motionShot-C2YDYRNB.js → motionShot-D2C44I6P.js} +11 -11
- package/dist/{normalize-audio-R23VODOA.js → normalize-audio-B6PKQGHV.js} +4 -4
- package/dist/{open-GEOB4L3S.js → open-EIN2FH4D.js} +4 -4
- package/dist/{parakeetRunner-DBLHMD5T.js → parakeetRunner-NDIU5PKO.js} +8 -8
- package/dist/{pipeline-FSY65OQ4.js → pipeline-UKGI44NN.js} +5 -5
- package/dist/{play-BYUS37GA.js → play-KLOHE5XH.js} +16 -16
- package/dist/{present-BZLRNHDY.js → present-4K53KZ3P.js} +12 -12
- package/dist/{preview-TXML6PQ7.js → preview-PSALQBNR.js} +15 -15
- package/dist/{producer-C5V2A3YL.js → producer-66MQWVVQ.js} +1 -1
- package/dist/{projectConfig-X2IEHCSK.js → projectConfig-EVBNJKPS.js} +6 -6
- package/dist/{publication-JEANCWBW.js → publication-F6BOBZMI.js} +2 -2
- package/dist/{publish-VX5OH4ST.js → publish-6KTQDKL6.js} +8 -8
- package/dist/{remove-background-IXCISD26.js → remove-background-TJTKY3YM.js} +6 -6
- package/dist/{render-57SXH6NS.js → render-2QY3DTYM.js} +42 -29
- package/dist/{render-JTY7XQFQ.js → render-NAJFHWUG.js} +9 -9
- package/dist/{render-ISUT7Q3X.js → render-X4MWSR5L.js} +3 -3
- package/dist/{render-batch-2C6RUP3F.js → render-batch-VKFOIMV5.js} +3 -3
- package/dist/{resolver-KTNKZVIB.js → resolver-VGAM26OR.js} +4 -4
- package/dist/{sherpa-GFRG3TMM.js → sherpa-3OI5VMCY.js} +9 -7
- package/dist/skills/hyperframes-cli/references/lint-validate-inspect.md +1 -1
- package/dist/{skills-2LBVMKVY.js → skills-ETYVJOLG.js} +5 -5
- package/dist/{skillsUpdateCheck-5DRXL565.js → skillsUpdateCheck-6P4VCFZZ.js} +3 -3
- package/dist/{snapshot-V2L77FCF.js → snapshot-P3RZFXUC.js} +25 -25
- package/dist/{src-GPUDUKY6.js → src-LZXECBBQ.js} +4 -4
- package/dist/{src-IMCQRH4P.js → src-RQPKPFRO.js} +6 -6
- package/dist/{staticProjectServer-4CQ3KDQK.js → staticProjectServer-DMG2CER4.js} +12 -12
- package/dist/studio/assets/{hyperframes-player-CAclPB6q.js → hyperframes-player-CQX9TDla.js} +1 -1
- package/dist/studio/assets/{index-DCwGKghK.js → index-BnU7S7oM.js} +1 -1
- package/dist/studio/assets/{index-B82aOvgB.js → index-DHqUZqg6.js} +4 -4
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-RYCDLEOR.js → studio-api-KRPBPUYQ.js} +6 -6
- package/dist/{studioServer-B7H7EQ4U.js → studioServer-HF6ZCYQO.js} +54 -41
- package/dist/{telemetry-WVHWY3DU.js → telemetry-ASFTF5YV.js} +3 -3
- package/dist/{timeline-EDXJ5L45.js → timeline-H7Q2K6ZQ.js} +13 -13
- package/dist/{tokens-UNJONAXT.js → tokens-LWCXLQCR.js} +2 -2
- package/dist/{transcribe-FL6NGWHF.js → transcribe-HOLKYWY5.js} +6 -6
- package/dist/{transcribe-VX7ZE2IZ.js → transcribe-X2GOG3HZ.js} +12 -12
- package/dist/{updateCheck-NLH5E44Q.js → updateCheck-EA7X36NI.js} +2 -2
- package/dist/{upgrade-RGQJA2B4.js → upgrade-Y6H3ZEEJ.js} +2 -2
- package/dist/{urlDownloader-KDJGLR2Y.js → urlDownloader-Z435W35E.js} +4 -4
- package/dist/{validate-4AN4PDV7.js → validate-TZAB2PVX.js} +17 -17
- package/dist/{video-AHO4CDCK.js → video-LNLD2PKZ.js} +5 -5
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
EncoderInterruptedError,
|
|
17
17
|
encoderFailureError,
|
|
18
18
|
prepareAnimatedGifInputs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3KY7FUSS.js";
|
|
20
20
|
import {
|
|
21
21
|
parseEncoderOptions
|
|
22
22
|
} from "./chunk-KLIKCX6Q.js";
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
validateEngineConfigSnapshot,
|
|
152
152
|
verifyDiskDrawElementSamples,
|
|
153
153
|
writeCapturedFrame
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-A356JY2J.js";
|
|
155
155
|
import {
|
|
156
156
|
assignBundledRuntimeCompositionIds,
|
|
157
157
|
buildVariablesByCompScript,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
isTemplateEntry,
|
|
165
165
|
parsesAsScript,
|
|
166
166
|
prepareFlattenedInnerRoot
|
|
167
|
-
} from "./chunk-
|
|
167
|
+
} from "./chunk-42AER3PM.js";
|
|
168
168
|
import {
|
|
169
169
|
LOW_MEMORY_TOTAL_MB_THRESHOLD,
|
|
170
170
|
getCgroupMemoryLimitMb,
|
|
@@ -188,7 +188,7 @@ import {
|
|
|
188
188
|
resolveAbsoluteMediaStartSeconds,
|
|
189
189
|
resolveAuthoredTimingWindow,
|
|
190
190
|
toFps
|
|
191
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-NZ7K76Y2.js";
|
|
192
192
|
import {
|
|
193
193
|
COMPOSITION_SOURCE_URL,
|
|
194
194
|
HF_COLOR_GRADING_ATTR,
|
|
@@ -216,7 +216,7 @@ import {
|
|
|
216
216
|
shouldClampResolvedMediaDuration,
|
|
217
217
|
sourceTimeAt,
|
|
218
218
|
styleElementsFor
|
|
219
|
-
} from "./chunk-
|
|
219
|
+
} from "./chunk-ZJO4SLHC.js";
|
|
220
220
|
import {
|
|
221
221
|
MAX_AUDIO_GAIN
|
|
222
222
|
} from "./chunk-UJKQWGFF.js";
|
|
@@ -5399,7 +5399,7 @@ function placeAudio(audio, window2) {
|
|
|
5399
5399
|
}
|
|
5400
5400
|
|
|
5401
5401
|
// ../core/dist/generated/position-edits-render-inline.js
|
|
5402
|
-
var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function T(){return globalThis}function P(e,t){if(typeof window>"u")return;let o=T(),r=o.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch(s){}(o.__hfDebug||o.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var x=null;function R(e,t){if(x)try{x({source:"hf-preview",type:"analytics",event:e,properties:t??{}})}catch(o){P("runtime.analytics.site1",o)}}var W="http://www.w3.org/1999/xhtml";function N(e){return e!=null&&e.nodeType===1}function k(e){return N(e)&&(e.namespaceURI===W||e.namespaceURI==="http://www.w3.org/2000/svg")}var w="data-hf-edit-base-x",y="data-hf-edit-base-y",m="data-hf-edit-original-translate",_=e=>{let t=parseFloat(e??"");return Number.isFinite(t)?t:0},O=e=>{let t=[],o=0,r="";for(let s of e.trim())s==="("&&(o+=1),s===")"&&(o=Math.max(0,o-1)),/\\s/.test(s)&&o===0?(r&&t.push(r),r=""):r+=s;return r&&t.push(r),t}
|
|
5402
|
+
var POSITION_EDITS_RENDER_IIFE = '"use strict";(()=>{function T(){return globalThis}function P(e,t){if(typeof window>"u")return;let o=T(),r=o.__hf?.onSwallowed;if(r)try{r({label:e,error:t})}catch(s){}(o.__hfDebug||o.__HYPERFRAMES_DEBUG)&&console.debug(`[hyperframes] ${e} swallowed:`,t)}var x=null;function R(e,t){if(x)try{x({source:"hf-preview",type:"analytics",event:e,properties:t??{}})}catch(o){P("runtime.analytics.site1",o)}}var W="http://www.w3.org/1999/xhtml";function N(e){return e!=null&&e.nodeType===1}function k(e){return N(e)&&(e.namespaceURI===W||e.namespaceURI==="http://www.w3.org/2000/svg")}var w="data-hf-edit-base-x",y="data-hf-edit-base-y",m="data-hf-edit-original-translate",_=e=>{let t=parseFloat(e??"");return Number.isFinite(t)?t:0},O=e=>{let t=[],o=0,r="";for(let s of e.trim())s==="("&&(o+=1),s===")"&&(o=Math.max(0,o-1)),/\\s/.test(s)&&o===0?(r&&t.push(r),r=""):r+=s;return r&&t.push(r),t},$=/^-?(?:\\d+(?:\\.\\d+)?|\\.\\d+)px$/,E=(e,t)=>$.test(e)&&$.test(t)?`${parseFloat(e)+parseFloat(t)}px`:`calc(${e} + ${t})`,C=(e,t,o)=>{if(!e||e==="none")return`${t} ${o}`;let[r,s,a]=O(e);if(r===void 0)return`${t} ${o}`;if(s===void 0)return`${E(r,t)} ${o}`;let i=a===void 0?"":` ${a}`;return`${E(r,t)} ${E(s,o)}${i}`},V=e=>{try{e.ownerDocument.defaultView?.gsap?.getProperty?.(e,"x")}catch{}},j=e=>{let t=e.style.getPropertyValue("translate").trim();if(t)return t==="none"?"":t;try{let o=e.ownerDocument.defaultView,r=o?o.getComputedStyle(e).getPropertyValue("translate").trim():"";return r==="none"?"":r}catch{return""}},b=new WeakMap;function B(e,t){let o=b.get(e);if(!t?.force&&o!==void 0&&e.style.getPropertyValue("translate")!==o){R("position_edit_fold_skipped",{hfId:e.getAttribute("data-hf-id")});return}let r=_(e.getAttribute("data-x"))-_(e.getAttribute(w)),s=_(e.getAttribute("data-y"))-_(e.getAttribute(y));e.hasAttribute(m)||e.setAttribute(m,j(e)),o===void 0&&V(e);let a=e.getAttribute(m)??"",i=C(a,`${r}px`,`${s}px`);e.style.setProperty("translate",i),b.set(e,e.style.getPropertyValue("translate"))}function S(e,t){let o=e.querySelectorAll(`[${m}]:not([${w}]):not([${y}])`);for(let a=0;a<o.length;a++){let i=o[a];if(i===void 0||!k(i))continue;let g=i.getAttribute(m)??"";g===""?i.style.removeProperty("translate"):i.style.setProperty("translate",g),i.removeAttribute(m),b.delete(i)}let r=e.querySelectorAll(`[${w}], [${y}]`),s=0;for(let a=0;a<r.length;a++){let i=r[a];i===void 0||!k(i)||(B(i,t),s+=1)}return s}var L="__hfPositionEditsSeekReapplyWrapped",D=new WeakSet,F=new WeakMap,M=new WeakMap;function H(e){let t=e,o=()=>{try{S(t.document)}catch{}},r=n=>typeof n=="function"&&(D.has(n)||!!n[L]),s=n=>{D.add(n);try{Object.defineProperty(n,L,{value:!0})}catch{}},a=n=>{if(typeof n!="function"||r(n))return n;let l=function(...u){let d=n.apply(this,u);return o(),d};return s(l),l},i=(n,l)=>{let u=F.get(n);if(u?.has(l))return!0;let d=Object.getOwnPropertyDescriptor(n,l);if(d?.configurable===!1){let c=n[l];return typeof c=="function"&&(n[l]=a(c),o()),!1}let p=n[l],f=d?.set;return Object.defineProperty(n,l,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>p,set:c=>{p=a(c),f?.call(n,c)}}),p=a(p),u??(u=new Set),u.add(l),F.set(n,u),o(),!0},g=(n,l)=>{let u=M.get(t),d=Object.getOwnPropertyDescriptor(t,n);if(!u?.has(n)){if(d?.configurable===!1){let c=t[n];return c?i(c,l):!1}let f=t[n];Object.defineProperty(t,n,{configurable:!0,enumerable:d?.enumerable??!0,get:()=>f,set:c=>{f=c,f&&i(f,l)}}),u??(u=new Set),u.add(n),M.set(t,u)}let p=t[n];return p?i(p,l):!1},h=()=>{let n=g("__hf","seek"),l=g("__player","renderSeek");return n&&l};if(h())return;let v=120,A=t.setInterval(()=>{if(h()){t.clearInterval(A);return}v-=1,v<=0&&t.clearInterval(A)},50)}function I(){document.querySelector(`[${w}], [${y}]`)&&(S(document),H(window))}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",I,{once:!0}):I();})();\n';
|
|
5403
5403
|
function getPositionEditsRenderScript() {
|
|
5404
5404
|
return POSITION_EDITS_RENDER_IIFE;
|
|
5405
5405
|
}
|
|
@@ -10047,7 +10047,8 @@ function formatSeconds(sec) {
|
|
|
10047
10047
|
}
|
|
10048
10048
|
function sanitizeProbeFailure(reason, paths) {
|
|
10049
10049
|
const message = reason instanceof Error ? reason.message : String(reason);
|
|
10050
|
-
|
|
10050
|
+
const keepFfmpegsLastLineUncapped = Number.POSITIVE_INFINITY;
|
|
10051
|
+
return redactTelemetryString(redactKnownPaths(message, paths), keepFfmpegsLastLineUncapped);
|
|
10051
10052
|
}
|
|
10052
10053
|
async function padOrTrimAudioToVideoFrameCount(input) {
|
|
10053
10054
|
const probeVideo = input.probeVideoFrameInfo ?? ((videoPath) => defaultProbeVideoFrameInfo(videoPath, input.signal));
|
|
@@ -14422,7 +14423,7 @@ function startServer(options = {}) {
|
|
|
14422
14423
|
});
|
|
14423
14424
|
async function shutdown(signal) {
|
|
14424
14425
|
log.info(`Received ${signal}, shutting down`);
|
|
14425
|
-
const { drainBrowserPool } = await import("./src-
|
|
14426
|
+
const { drainBrowserPool } = await import("./src-LZXECBBQ.js");
|
|
14426
14427
|
await drainBrowserPool().catch(() => {
|
|
14427
14428
|
});
|
|
14428
14429
|
const handle = await Promise.race([
|
|
@@ -15609,7 +15610,7 @@ async function buildLocalExecutionPlan(projectDir, config, executionPlanDir, opt
|
|
|
15609
15610
|
if (probeResult.fileServer) closeFileServerSafely(probeResult.fileServer, "plan", log);
|
|
15610
15611
|
if (probeResult.probeSession) {
|
|
15611
15612
|
try {
|
|
15612
|
-
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-
|
|
15613
|
+
const { closeCaptureSession: closeCaptureSession2 } = await import("./src-LZXECBBQ.js");
|
|
15613
15614
|
await closeCaptureSession2(probeResult.probeSession);
|
|
15614
15615
|
} catch (err) {
|
|
15615
15616
|
log.warn("[plan] probe session close failed", {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-AWDFDFI3.js";
|
|
15
15
|
import {
|
|
16
16
|
isBlockedNetworkHost
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-A356JY2J.js";
|
|
18
18
|
import {
|
|
19
19
|
DOMParser,
|
|
20
20
|
parseHTML
|
|
@@ -23,6 +23,180 @@ import {
|
|
|
23
23
|
// src/capture/userAgent.ts
|
|
24
24
|
var CAPTURE_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36";
|
|
25
25
|
|
|
26
|
+
// src/capture/publicNetwork.ts
|
|
27
|
+
import { lookup } from "dns/promises";
|
|
28
|
+
import { isIP } from "net";
|
|
29
|
+
import { request as httpRequest } from "http";
|
|
30
|
+
import { request as httpsRequest } from "https";
|
|
31
|
+
function ipv4Number(address) {
|
|
32
|
+
return address.split(".").reduce((value, octet) => value * 256 + Number(octet), 0);
|
|
33
|
+
}
|
|
34
|
+
var NON_PUBLIC_IPV4 = [
|
|
35
|
+
["0.0.0.0", 8],
|
|
36
|
+
["10.0.0.0", 8],
|
|
37
|
+
["100.64.0.0", 10],
|
|
38
|
+
["127.0.0.0", 8],
|
|
39
|
+
["169.254.0.0", 16],
|
|
40
|
+
["172.16.0.0", 12],
|
|
41
|
+
["192.0.0.0", 16],
|
|
42
|
+
["192.88.99.0", 24],
|
|
43
|
+
["192.168.0.0", 16],
|
|
44
|
+
["198.18.0.0", 15],
|
|
45
|
+
["198.51.100.0", 24],
|
|
46
|
+
["203.0.113.0", 24],
|
|
47
|
+
["224.0.0.0", 3]
|
|
48
|
+
];
|
|
49
|
+
var NON_PUBLIC_RANGES = NON_PUBLIC_IPV4.map(([network, prefix]) => ({
|
|
50
|
+
start: ipv4Number(network),
|
|
51
|
+
end: ipv4Number(network) + 2 ** (32 - prefix)
|
|
52
|
+
}));
|
|
53
|
+
function isPublicIPv4(address) {
|
|
54
|
+
if (isIP(address) !== 4) return false;
|
|
55
|
+
const value = ipv4Number(address);
|
|
56
|
+
return !NON_PUBLIC_RANGES.some(({ start, end }) => value >= start && value < end);
|
|
57
|
+
}
|
|
58
|
+
async function resolvePublicAddress(hostname) {
|
|
59
|
+
const host = hostname.toLowerCase().replace(/\.$/, "");
|
|
60
|
+
if (isIP(host) === 4) {
|
|
61
|
+
if (!isPublicIPv4(host)) throw new Error("Capture requires a public IPv4 address");
|
|
62
|
+
return host;
|
|
63
|
+
}
|
|
64
|
+
if (!host.includes(".") || !/^[a-z0-9.-]+$/.test(host) || /(?:^|\.)(?:localhost|local|internal|home|lan|test|invalid|example)$/.test(host) || host.split(".").some((label) => !label || label.startsWith("-") || label.endsWith("-"))) {
|
|
65
|
+
throw new Error("Capture requires a public hostname");
|
|
66
|
+
}
|
|
67
|
+
let timer;
|
|
68
|
+
try {
|
|
69
|
+
const answers = await Promise.race([
|
|
70
|
+
lookup(host, { all: true, family: 4, verbatim: true }),
|
|
71
|
+
new Promise((_resolve, reject) => {
|
|
72
|
+
timer = setTimeout(() => reject(new Error("Capture DNS timed out")), 1e4);
|
|
73
|
+
timer.unref();
|
|
74
|
+
})
|
|
75
|
+
]);
|
|
76
|
+
if (!answers[0] || answers.some((answer) => answer.family !== 4 || !isPublicIPv4(answer.address))) {
|
|
77
|
+
throw new Error("Capture DNS returned a non-public address");
|
|
78
|
+
}
|
|
79
|
+
const first = answers[0];
|
|
80
|
+
if (!first) throw new Error("Capture DNS returned no address");
|
|
81
|
+
return first.address;
|
|
82
|
+
} finally {
|
|
83
|
+
clearTimeout(timer);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
async function publicRequest(url, init = {}) {
|
|
87
|
+
const target = new URL(url);
|
|
88
|
+
if (!["http:", "https:"].includes(target.protocol) || target.username || target.password) {
|
|
89
|
+
throw new Error("Capture requires an HTTP(S) URL without credentials");
|
|
90
|
+
}
|
|
91
|
+
const method = (init.method ?? "GET").toUpperCase();
|
|
92
|
+
if (!["GET", "HEAD"].includes(method) || init.body != null) {
|
|
93
|
+
throw new Error("Capture asset requests support only GET and HEAD without a body");
|
|
94
|
+
}
|
|
95
|
+
const signal = init.signal ?? AbortSignal.timeout(3e4);
|
|
96
|
+
signal.throwIfAborted();
|
|
97
|
+
const address = await new Promise((resolve, reject) => {
|
|
98
|
+
const onAbort = () => reject(signal.reason);
|
|
99
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
100
|
+
resolvePublicAddress(target.hostname).then(resolve, reject).finally(() => signal.removeEventListener("abort", onAbort));
|
|
101
|
+
});
|
|
102
|
+
signal.throwIfAborted();
|
|
103
|
+
const headers = new Headers(init.headers);
|
|
104
|
+
for (const name of [
|
|
105
|
+
"connection",
|
|
106
|
+
"proxy-authorization",
|
|
107
|
+
"proxy-connection",
|
|
108
|
+
"transfer-encoding",
|
|
109
|
+
"upgrade",
|
|
110
|
+
"content-length"
|
|
111
|
+
])
|
|
112
|
+
headers.delete(name);
|
|
113
|
+
headers.set("host", target.host);
|
|
114
|
+
headers.set("accept-encoding", "identity");
|
|
115
|
+
return new Promise((resolve, reject) => {
|
|
116
|
+
const request = target.protocol === "https:" ? httpsRequest : httpRequest;
|
|
117
|
+
const req = request(
|
|
118
|
+
{
|
|
119
|
+
protocol: target.protocol,
|
|
120
|
+
hostname: address,
|
|
121
|
+
port: target.port || void 0,
|
|
122
|
+
path: `${target.pathname}${target.search}`,
|
|
123
|
+
method,
|
|
124
|
+
headers: Object.fromEntries(headers),
|
|
125
|
+
agent: false,
|
|
126
|
+
servername: target.hostname,
|
|
127
|
+
rejectUnauthorized: true,
|
|
128
|
+
signal
|
|
129
|
+
},
|
|
130
|
+
(incoming) => {
|
|
131
|
+
try {
|
|
132
|
+
resolve(assetResponse(incoming, req, method));
|
|
133
|
+
} catch (error) {
|
|
134
|
+
incoming.destroy();
|
|
135
|
+
reject(error);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
);
|
|
139
|
+
req.once("error", reject);
|
|
140
|
+
req.end();
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function responseHeaders(incoming) {
|
|
144
|
+
const headers = new Headers();
|
|
145
|
+
for (const [name, value] of Object.entries(incoming.headers)) {
|
|
146
|
+
if (value === void 0) continue;
|
|
147
|
+
for (const item of Array.isArray(value) ? value : [value]) headers.append(name, item);
|
|
148
|
+
}
|
|
149
|
+
return headers;
|
|
150
|
+
}
|
|
151
|
+
function assetResponse(incoming, req, method) {
|
|
152
|
+
incoming.on("error", () => {
|
|
153
|
+
});
|
|
154
|
+
const headers = responseHeaders(incoming);
|
|
155
|
+
const encoding = headers.get("content-encoding")?.toLowerCase();
|
|
156
|
+
if (encoding && encoding !== "identity") {
|
|
157
|
+
throw new Error("Capture server ignored identity content encoding");
|
|
158
|
+
}
|
|
159
|
+
const status = incoming.statusCode ?? 502;
|
|
160
|
+
if (method === "HEAD" || [204, 205, 304].includes(status)) {
|
|
161
|
+
incoming.resume();
|
|
162
|
+
return new Response(null, { status, headers });
|
|
163
|
+
}
|
|
164
|
+
return new Response(responseBody(incoming, req), { status, headers });
|
|
165
|
+
}
|
|
166
|
+
function responseBody(incoming, req) {
|
|
167
|
+
let finished = false;
|
|
168
|
+
return new ReadableStream({
|
|
169
|
+
start(controller) {
|
|
170
|
+
incoming.on("data", (chunk) => {
|
|
171
|
+
if (finished) return;
|
|
172
|
+
controller.enqueue(chunk);
|
|
173
|
+
incoming.pause();
|
|
174
|
+
});
|
|
175
|
+
incoming.once("end", () => {
|
|
176
|
+
if (finished) return;
|
|
177
|
+
finished = true;
|
|
178
|
+
controller.close();
|
|
179
|
+
});
|
|
180
|
+
const fail = (error) => {
|
|
181
|
+
if (finished) return;
|
|
182
|
+
finished = true;
|
|
183
|
+
controller.error(error);
|
|
184
|
+
};
|
|
185
|
+
incoming.once("error", fail);
|
|
186
|
+
incoming.once("aborted", () => fail(new Error("Capture response aborted")));
|
|
187
|
+
incoming.pause();
|
|
188
|
+
},
|
|
189
|
+
pull() {
|
|
190
|
+
incoming.resume();
|
|
191
|
+
},
|
|
192
|
+
cancel() {
|
|
193
|
+
finished = true;
|
|
194
|
+
incoming.destroy();
|
|
195
|
+
req.destroy();
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
|
|
26
200
|
// src/capture/assetDownloader.ts
|
|
27
201
|
import { join, extname } from "path";
|
|
28
202
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -376,7 +550,13 @@ async function validEmbeddedImages(references) {
|
|
|
376
550
|
|
|
377
551
|
// src/capture/assetDownloader.ts
|
|
378
552
|
function noDrops() {
|
|
379
|
-
return {
|
|
553
|
+
return {
|
|
554
|
+
"size-floor": 0,
|
|
555
|
+
"size-ceiling": 0,
|
|
556
|
+
"budget-exhausted": 0,
|
|
557
|
+
"cap-reached": 0,
|
|
558
|
+
unavailable: 0
|
|
559
|
+
};
|
|
380
560
|
}
|
|
381
561
|
function mergeDrops(a, b) {
|
|
382
562
|
const total = noDrops();
|
|
@@ -523,6 +703,7 @@ async function downloadAssets(tokens, outputDir, catalogedAssets, faviconLinks,
|
|
|
523
703
|
ensureCaptureDirSync(outputDir, join(outputDir, "assets", "svgs"));
|
|
524
704
|
const usedSvgNames = /* @__PURE__ */ new Set();
|
|
525
705
|
const MAX_INLINE_SVGS = 30;
|
|
706
|
+
const MAX_INLINE_SVG_BYTES = 2 * 1024 * 1024;
|
|
526
707
|
drops["cap-reached"] += Math.max(0, tokens.svgs.length - MAX_INLINE_SVGS);
|
|
527
708
|
for (let i = 0; i < tokens.svgs.length && i < MAX_INLINE_SVGS; i++) {
|
|
528
709
|
const svg = tokens.svgs[i];
|
|
@@ -531,6 +712,10 @@ async function downloadAssets(tokens, outputDir, catalogedAssets, faviconLinks,
|
|
|
531
712
|
continue;
|
|
532
713
|
}
|
|
533
714
|
const svgFile = toStandaloneSvg(svg.outerHTML);
|
|
715
|
+
if (Buffer.byteLength(svgFile, "utf-8") > MAX_INLINE_SVG_BYTES) {
|
|
716
|
+
drops["size-ceiling"]++;
|
|
717
|
+
continue;
|
|
718
|
+
}
|
|
534
719
|
const slug = svgContentHashSlug(svgFile, !!svg.isLogo);
|
|
535
720
|
let finalSlug = slug;
|
|
536
721
|
let suffix = 2;
|
|
@@ -770,10 +955,12 @@ async function safeFetch(url, init) {
|
|
|
770
955
|
let current = url;
|
|
771
956
|
for (let hop = 0; hop <= MAX_FETCH_REDIRECTS; hop++) {
|
|
772
957
|
if (isPrivateUrl(current)) return null;
|
|
773
|
-
const res = await
|
|
958
|
+
const res = await publicRequest(current, { ...init, redirect: "manual" });
|
|
774
959
|
if (res.status >= 300 && res.status < 400) {
|
|
775
960
|
const loc = res.headers.get("location");
|
|
776
961
|
if (!loc) return res;
|
|
962
|
+
await res.body?.cancel().catch(() => {
|
|
963
|
+
});
|
|
777
964
|
try {
|
|
778
965
|
current = new URL(loc, current).toString();
|
|
779
966
|
} catch {
|
|
@@ -841,6 +1028,7 @@ function deriveAssetName(parsedUrl, catalog, isPoster, idx, usedNames) {
|
|
|
841
1028
|
}
|
|
842
1029
|
|
|
843
1030
|
export {
|
|
1031
|
+
resolvePublicAddress,
|
|
844
1032
|
CAPTURE_USER_AGENT,
|
|
845
1033
|
noDrops,
|
|
846
1034
|
mergeDrops,
|
|
@@ -8,25 +8,25 @@ import {
|
|
|
8
8
|
launchManagedBrowser,
|
|
9
9
|
resolveManagedGpuMode,
|
|
10
10
|
rethrowAfterBrowserCleanup
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-57SASPYR.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveCompositionViewportFromHtml
|
|
14
14
|
} from "./chunk-FH7WODJH.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveDiagnosticNavigationTimeoutMs,
|
|
17
17
|
windowsChromeCrashRemediation
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-H3JGPRWA.js";
|
|
19
19
|
import {
|
|
20
20
|
resolveLocalBrowserGpuMode,
|
|
21
21
|
resolveLocalWebGpu
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-Z6VBXCYN.js";
|
|
23
23
|
import {
|
|
24
24
|
c
|
|
25
25
|
} from "./chunk-ZTZA4UWZ.js";
|
|
26
26
|
import {
|
|
27
27
|
assertWebGpuAdapterAvailable,
|
|
28
28
|
compositionRequiresWebGpu
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-A356JY2J.js";
|
|
30
30
|
import {
|
|
31
31
|
normalizeErrorMessage
|
|
32
32
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -108,9 +108,9 @@ async function openSettledCompositionPage(html, url, options) {
|
|
|
108
108
|
const { ensureBrowser, findSystemBrowser } = await import("./manager-HEUPD2YB.js");
|
|
109
109
|
const browser = await ensureBrowser({ signal: options.signal });
|
|
110
110
|
const puppeteer = await import("puppeteer-core");
|
|
111
|
-
const { buildChromeArgs } = await import("./src-
|
|
111
|
+
const { buildChromeArgs } = await import("./src-LZXECBBQ.js");
|
|
112
112
|
const requestedGpuMode = options.browserGpuMode ?? resolveCliChromeGpuMode();
|
|
113
|
-
const answer = (await import("./staticProjectServer-
|
|
113
|
+
const answer = (await import("./staticProjectServer-DMG2CER4.js")).inProcessAnswer(url);
|
|
114
114
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
115
115
|
let softwareWebGpu = false;
|
|
116
116
|
const launch = async (executablePath) => {
|
|
@@ -7,29 +7,29 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
RegistryCompatibilityError,
|
|
9
9
|
gateRegistryItemsCompatibility
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HYRDV7AL.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULT_PROJECT_CONFIG,
|
|
13
13
|
createProjectConfig,
|
|
14
14
|
loadProjectConfig,
|
|
15
15
|
projectConfigPath,
|
|
16
16
|
recordProjectRegistryItems
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BHGIBGUZ.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveItemWithDependencies,
|
|
20
20
|
resolveItemsByTag
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-DSXDYQQV.js";
|
|
22
22
|
import {
|
|
23
23
|
InvalidVariableValuesError,
|
|
24
24
|
prepareItem,
|
|
25
25
|
publishItem
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-QGYAHDOR.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_REGISTRY_URL
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-H45RC6HN.js";
|
|
30
30
|
import {
|
|
31
31
|
trackRegistryItemAdded
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-36CWAWB7.js";
|
|
33
33
|
import {
|
|
34
34
|
defineCommand
|
|
35
35
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
} from "./chunk-ZTZA4UWZ.js";
|
|
42
42
|
import {
|
|
43
43
|
ITEM_TYPE_DIRS
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-NZ7K76Y2.js";
|
|
45
45
|
import {
|
|
46
46
|
isProjectRootMissing,
|
|
47
47
|
realpath
|
|
@@ -204,6 +204,7 @@ async function metadataRequestError(response, fallback) {
|
|
|
204
204
|
return response.status === 401 ? new CredentialRejectedError(message) : new Error(message);
|
|
205
205
|
}
|
|
206
206
|
var LOGIN_EXPIRED = "Your login expired. Run hyperframes auth login, then publish again.";
|
|
207
|
+
var LOGIN_REQUIRED = "Publishing needs an account. Run hyperframes auth login to publish.";
|
|
207
208
|
var LOGIN_CHANGED = "Your login changed during publish. Run publish again.";
|
|
208
209
|
function rejectedCredentialMessage(credential) {
|
|
209
210
|
const envVar = envCredentialVar(credential.source);
|
|
@@ -619,8 +620,8 @@ async function publishProjectArchive(projectDir, opts = {}) {
|
|
|
619
620
|
throw new CredentialRejectedError("unclaimed publish");
|
|
620
621
|
}
|
|
621
622
|
} catch (error) {
|
|
622
|
-
if (error instanceof CredentialRejectedError
|
|
623
|
-
throw new Error(rejectedCredentialMessage(credential));
|
|
623
|
+
if (error instanceof CredentialRejectedError) {
|
|
624
|
+
throw new Error(credential ? rejectedCredentialMessage(credential) : LOGIN_REQUIRED);
|
|
624
625
|
}
|
|
625
626
|
throw error;
|
|
626
627
|
}
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveCliChromeGpuMode,
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForRuntimeReady
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-UF45OJ3N.js";
|
|
13
13
|
import {
|
|
14
14
|
launchManagedBrowser,
|
|
15
15
|
resolveManagedGpuMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-57SASPYR.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveCompositionViewportFromHtml
|
|
19
19
|
} from "./chunk-FH7WODJH.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveProject
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PRZDWAH3.js";
|
|
23
23
|
import {
|
|
24
24
|
defineCommand
|
|
25
25
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
import {
|
|
34
34
|
printDeprecationNotice,
|
|
35
35
|
withMeta
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-56RENSU4.js";
|
|
37
37
|
import {
|
|
38
38
|
decodeWellFormedEscapes
|
|
39
39
|
} from "./chunk-BSQ7XANM.js";
|
|
@@ -228,7 +228,7 @@ function extractCompositionErrorsFromLint(lintResult) {
|
|
|
228
228
|
async function localizeRemoteAssets(html) {
|
|
229
229
|
let dir;
|
|
230
230
|
try {
|
|
231
|
-
const { loadProducer } = await import("./producer-
|
|
231
|
+
const { loadProducer } = await import("./producer-66MQWVVQ.js");
|
|
232
232
|
const { localizeRemoteMediaSources, localizeRemoteImageSources, localizeRemoteFontFaces } = await loadProducer();
|
|
233
233
|
dir = mkdtempSync(join(tmpdir(), "hf-validate-assets-"));
|
|
234
234
|
const assetDir = dir;
|
|
@@ -249,9 +249,9 @@ async function localizeRemoteAssets(html) {
|
|
|
249
249
|
}
|
|
250
250
|
async function validateInBrowser(project, opts) {
|
|
251
251
|
const projectDir = project.dir;
|
|
252
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
252
|
+
const { bundleToSingleHtml } = await import("./compiler-RKH75FZH.js");
|
|
253
253
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
254
|
-
const { serveStaticProjectHtml } = await import("./staticProjectServer-
|
|
254
|
+
const { serveStaticProjectHtml } = await import("./staticProjectServer-DMG2CER4.js");
|
|
255
255
|
const { lintProject } = await import("./lintProject-BGDYHF3F.js");
|
|
256
256
|
const lintResult = await lintProject(projectDir);
|
|
257
257
|
const compositionErrors = extractCompositionErrorsFromLint(lintResult);
|
|
@@ -273,9 +273,9 @@ async function validateInBrowser(project, opts) {
|
|
|
273
273
|
try {
|
|
274
274
|
const browser = await ensureBrowser();
|
|
275
275
|
const puppeteer = await import("puppeteer-core");
|
|
276
|
-
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-
|
|
276
|
+
const { buildChromeArgs, analyzeClipMediaFit } = await import("./src-LZXECBBQ.js");
|
|
277
277
|
const requestedGpuMode = resolveCliChromeGpuMode();
|
|
278
|
-
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-
|
|
278
|
+
const { assertWebGpuAdapterAvailable, compositionRequiresWebGpu, resolveLocalWebGpu } = await import("./gpuPolicy-SYV7N237.js");
|
|
279
279
|
const resolvedGpuMode = await resolveManagedGpuMode(requestedGpuMode, browser.executablePath);
|
|
280
280
|
const requiresWebGpu = compositionRequiresWebGpu(html);
|
|
281
281
|
const { gpuConfig, softwareWebGpu } = resolveLocalWebGpu(resolvedGpuMode, requiresWebGpu);
|
|
@@ -7,10 +7,10 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
parseFeedbackRating,
|
|
9
9
|
trackRenderFeedback
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-36CWAWB7.js";
|
|
11
11
|
import {
|
|
12
12
|
shouldTrack
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VEAKQW4X.js";
|
|
14
14
|
import {
|
|
15
15
|
detectAgentRuntime
|
|
16
16
|
} from "./chunk-QWQ6GQTI.js";
|
|
@@ -10,20 +10,20 @@ import {
|
|
|
10
10
|
seekCompositionTimeline,
|
|
11
11
|
waitForCompositionFonts,
|
|
12
12
|
waitForRuntimeReady
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UF45OJ3N.js";
|
|
14
14
|
import {
|
|
15
15
|
launchManagedBrowser,
|
|
16
16
|
resolveManagedGpuMode
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-57SASPYR.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveDiagnosticNavigationTimeoutMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-H3JGPRWA.js";
|
|
21
21
|
import {
|
|
22
22
|
resolveProject
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PRZDWAH3.js";
|
|
24
24
|
import {
|
|
25
25
|
serveStaticProjectHtml
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AXATVUCD.js";
|
|
27
27
|
import {
|
|
28
28
|
defineCommand
|
|
29
29
|
} from "./chunk-S3S4TGEH.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
printDeprecationNotice,
|
|
39
39
|
withMeta
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-56RENSU4.js";
|
|
41
41
|
import {
|
|
42
42
|
normalizeErrorMessage
|
|
43
43
|
} from "./chunk-KNU5COPB.js";
|
|
@@ -708,7 +708,7 @@ async function collectTweenBoundaries(page) {
|
|
|
708
708
|
});
|
|
709
709
|
}
|
|
710
710
|
async function bundleProjectHtml(projectDir) {
|
|
711
|
-
const { bundleToSingleHtml } = await import("./compiler-
|
|
711
|
+
const { bundleToSingleHtml } = await import("./compiler-RKH75FZH.js");
|
|
712
712
|
return bundleToSingleHtml(projectDir);
|
|
713
713
|
}
|
|
714
714
|
async function alignViewportToComposition(page, url) {
|
|
@@ -730,13 +730,13 @@ async function alignViewportToComposition(page, url) {
|
|
|
730
730
|
async function runLayoutAudit(projectDir, opts) {
|
|
731
731
|
const { ensureBrowser } = await import("./manager-HEUPD2YB.js");
|
|
732
732
|
const puppeteer = await import("puppeteer-core");
|
|
733
|
-
const { buildChromeArgs } = await import("./src-
|
|
733
|
+
const { buildChromeArgs } = await import("./src-LZXECBBQ.js");
|
|
734
734
|
const {
|
|
735
735
|
assertWebGpuAdapterAvailable,
|
|
736
736
|
compositionRequiresWebGpu,
|
|
737
737
|
resolveLocalBrowserGpuMode,
|
|
738
738
|
resolveLocalWebGpu
|
|
739
|
-
} = await import("./gpuPolicy-
|
|
739
|
+
} = await import("./gpuPolicy-SYV7N237.js");
|
|
740
740
|
const html = await bundleProjectHtml(projectDir);
|
|
741
741
|
const server = await serveStaticProjectHtml(
|
|
742
742
|
projectDir,
|
|
@@ -7,7 +7,7 @@ var __dirname = __hf_dirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
resolveConfig,
|
|
9
9
|
usesSoftwareWebGpu
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A356JY2J.js";
|
|
11
11
|
|
|
12
12
|
// src/browser/gpuPolicy.ts
|
|
13
13
|
function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCER_BROWSER_GPU_MODE) {
|
|
@@ -17,7 +17,7 @@ function resolveLocalBrowserGpuMode(browserGpuArg, envMode = process.env.PRODUCE
|
|
|
17
17
|
return "auto";
|
|
18
18
|
}
|
|
19
19
|
async function resolveCaptureBrowserGpuMode(requestedMode, chromePath, probeLifecycle) {
|
|
20
|
-
const { resolveBrowserGpuMode } = await import("./src-
|
|
20
|
+
const { resolveBrowserGpuMode } = await import("./src-LZXECBBQ.js");
|
|
21
21
|
return resolveBrowserGpuMode(requestedMode, { chromePath, probeLifecycle });
|
|
22
22
|
}
|
|
23
23
|
function resolveLocalWebGpu(browserGpuMode, requiresWebGpu) {
|