ponzu 1.78.1 → 1.78.3
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/chromium.js +41 -10
- package/dist/index.js +51 -13
- package/package.json +1 -1
- package/studio/assets/{index-hYi5NSUG.js → index-CrJfa9LL.js} +2 -2
- package/studio/index.html +1 -1
package/dist/chromium.js
CHANGED
|
@@ -11817,7 +11817,7 @@ var SYSTEM = new Set([
|
|
|
11817
11817
|
|
|
11818
11818
|
// packages/render/src/document.ts
|
|
11819
11819
|
var ARTBOARD_BASE_CSS = `
|
|
11820
|
-
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; }
|
|
11820
|
+
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
11821
11821
|
[data-artboard] *, [data-artboard] *::before, [data-artboard] *::after { box-sizing: border-box; }
|
|
11822
11822
|
[data-artboard] img, [data-artboard] video, [data-artboard] svg { max-width: none; }
|
|
11823
11823
|
`;
|
|
@@ -14038,6 +14038,8 @@ function motionRuntime() {
|
|
|
14038
14038
|
const root = document.querySelector("[data-artboard]");
|
|
14039
14039
|
const STATES = ["hover", "active", "focus-visible", "focus-within", "focus"];
|
|
14040
14040
|
const ANIMATION_BUDGET = 100;
|
|
14041
|
+
const VIDEO_STALL_MS = 1e4;
|
|
14042
|
+
const stalledVideos = new WeakSet;
|
|
14041
14043
|
let entries = [];
|
|
14042
14044
|
let trigger = "load";
|
|
14043
14045
|
let loadSettled = 0;
|
|
@@ -14254,21 +14256,50 @@ function motionRuntime() {
|
|
|
14254
14256
|
for (const s of svgs())
|
|
14255
14257
|
s.setCurrentTime((base + t) / 1000);
|
|
14256
14258
|
}
|
|
14257
|
-
|
|
14258
|
-
|
|
14259
|
-
await Promise.all(videos().map((v) => new Promise((resolve) => {
|
|
14259
|
+
function seekVideo(v, t) {
|
|
14260
|
+
return new Promise((resolve) => {
|
|
14260
14261
|
const dur = v.duration;
|
|
14261
14262
|
if (!Number.isFinite(dur) || dur <= 0)
|
|
14262
14263
|
return resolve();
|
|
14263
14264
|
const s = (base + t) / 1000;
|
|
14264
|
-
const target = v.loop ? s % dur : Math.min(s, dur);
|
|
14265
|
-
if (Math.abs(v.currentTime - target) < 0.001)
|
|
14265
|
+
const target = v.loop ? (s % dur + dur) % dur : Math.min(Math.max(s, 0), dur);
|
|
14266
|
+
if (Math.abs(v.currentTime - target) < 0.001 && v.readyState >= 2)
|
|
14267
|
+
return resolve();
|
|
14268
|
+
if (stalledVideos.has(v)) {
|
|
14269
|
+
v.currentTime = target;
|
|
14266
14270
|
return resolve();
|
|
14267
|
-
|
|
14268
|
-
|
|
14269
|
-
|
|
14271
|
+
}
|
|
14272
|
+
const from = v.currentTime;
|
|
14273
|
+
let seeked = false;
|
|
14274
|
+
let shown = typeof v.requestVideoFrameCallback !== "function";
|
|
14275
|
+
const done = () => {
|
|
14276
|
+
if (!seeked || !shown)
|
|
14277
|
+
return;
|
|
14278
|
+
clearTimeout(timer);
|
|
14279
|
+
resolve();
|
|
14280
|
+
};
|
|
14281
|
+
const timer = setTimeout(() => {
|
|
14282
|
+
stalledVideos.add(v);
|
|
14283
|
+
resolve();
|
|
14284
|
+
}, VIDEO_STALL_MS);
|
|
14285
|
+
const ours = (media) => media <= target + 0.001 && (seeked || target < from || media > from + 0.001);
|
|
14286
|
+
const drawn = (_now, frame) => {
|
|
14287
|
+
if (!ours(frame.mediaTime))
|
|
14288
|
+
return void v.requestVideoFrameCallback(drawn);
|
|
14289
|
+
shown = true;
|
|
14290
|
+
done();
|
|
14291
|
+
};
|
|
14292
|
+
v.requestVideoFrameCallback?.(drawn);
|
|
14293
|
+
v.addEventListener("seeked", () => {
|
|
14294
|
+
seeked = true;
|
|
14295
|
+
done();
|
|
14296
|
+
}, { once: true });
|
|
14270
14297
|
v.currentTime = target;
|
|
14271
|
-
})
|
|
14298
|
+
});
|
|
14299
|
+
}
|
|
14300
|
+
async function seek(t) {
|
|
14301
|
+
setTime(t);
|
|
14302
|
+
await Promise.all(videos().map((v) => seekVideo(v, t)));
|
|
14272
14303
|
await frame();
|
|
14273
14304
|
return round(now);
|
|
14274
14305
|
}
|
package/dist/index.js
CHANGED
|
@@ -41737,7 +41737,7 @@ var SYSTEM = new Set([
|
|
|
41737
41737
|
|
|
41738
41738
|
// packages/render/src/document.ts
|
|
41739
41739
|
var ARTBOARD_BASE_CSS = `
|
|
41740
|
-
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; }
|
|
41740
|
+
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
41741
41741
|
[data-artboard] *, [data-artboard] *::before, [data-artboard] *::after { box-sizing: border-box; }
|
|
41742
41742
|
[data-artboard] img, [data-artboard] video, [data-artboard] svg { max-width: none; }
|
|
41743
41743
|
`;
|
|
@@ -42130,6 +42130,8 @@ function motionRuntime() {
|
|
|
42130
42130
|
const root = document.querySelector("[data-artboard]");
|
|
42131
42131
|
const STATES = ["hover", "active", "focus-visible", "focus-within", "focus"];
|
|
42132
42132
|
const ANIMATION_BUDGET = 100;
|
|
42133
|
+
const VIDEO_STALL_MS = 1e4;
|
|
42134
|
+
const stalledVideos = new WeakSet;
|
|
42133
42135
|
let entries = [];
|
|
42134
42136
|
let trigger = "load";
|
|
42135
42137
|
let loadSettled = 0;
|
|
@@ -42346,21 +42348,50 @@ function motionRuntime() {
|
|
|
42346
42348
|
for (const s of svgs())
|
|
42347
42349
|
s.setCurrentTime((base + t) / 1000);
|
|
42348
42350
|
}
|
|
42349
|
-
|
|
42350
|
-
|
|
42351
|
-
await Promise.all(videos().map((v) => new Promise((resolve) => {
|
|
42351
|
+
function seekVideo(v, t) {
|
|
42352
|
+
return new Promise((resolve) => {
|
|
42352
42353
|
const dur = v.duration;
|
|
42353
42354
|
if (!Number.isFinite(dur) || dur <= 0)
|
|
42354
42355
|
return resolve();
|
|
42355
42356
|
const s = (base + t) / 1000;
|
|
42356
|
-
const target = v.loop ? s % dur : Math.min(s, dur);
|
|
42357
|
-
if (Math.abs(v.currentTime - target) < 0.001)
|
|
42357
|
+
const target = v.loop ? (s % dur + dur) % dur : Math.min(Math.max(s, 0), dur);
|
|
42358
|
+
if (Math.abs(v.currentTime - target) < 0.001 && v.readyState >= 2)
|
|
42358
42359
|
return resolve();
|
|
42359
|
-
|
|
42360
|
-
|
|
42361
|
-
|
|
42360
|
+
if (stalledVideos.has(v)) {
|
|
42361
|
+
v.currentTime = target;
|
|
42362
|
+
return resolve();
|
|
42363
|
+
}
|
|
42364
|
+
const from = v.currentTime;
|
|
42365
|
+
let seeked = false;
|
|
42366
|
+
let shown = typeof v.requestVideoFrameCallback !== "function";
|
|
42367
|
+
const done = () => {
|
|
42368
|
+
if (!seeked || !shown)
|
|
42369
|
+
return;
|
|
42370
|
+
clearTimeout(timer);
|
|
42371
|
+
resolve();
|
|
42372
|
+
};
|
|
42373
|
+
const timer = setTimeout(() => {
|
|
42374
|
+
stalledVideos.add(v);
|
|
42375
|
+
resolve();
|
|
42376
|
+
}, VIDEO_STALL_MS);
|
|
42377
|
+
const ours = (media) => media <= target + 0.001 && (seeked || target < from || media > from + 0.001);
|
|
42378
|
+
const drawn = (_now, frame) => {
|
|
42379
|
+
if (!ours(frame.mediaTime))
|
|
42380
|
+
return void v.requestVideoFrameCallback(drawn);
|
|
42381
|
+
shown = true;
|
|
42382
|
+
done();
|
|
42383
|
+
};
|
|
42384
|
+
v.requestVideoFrameCallback?.(drawn);
|
|
42385
|
+
v.addEventListener("seeked", () => {
|
|
42386
|
+
seeked = true;
|
|
42387
|
+
done();
|
|
42388
|
+
}, { once: true });
|
|
42362
42389
|
v.currentTime = target;
|
|
42363
|
-
})
|
|
42390
|
+
});
|
|
42391
|
+
}
|
|
42392
|
+
async function seek(t) {
|
|
42393
|
+
setTime(t);
|
|
42394
|
+
await Promise.all(videos().map((v) => seekVideo(v, t)));
|
|
42364
42395
|
await frame();
|
|
42365
42396
|
return round(now);
|
|
42366
42397
|
}
|
|
@@ -44809,7 +44840,10 @@ class Design {
|
|
|
44809
44840
|
}
|
|
44810
44841
|
async close() {
|
|
44811
44842
|
this.stopWatching?.();
|
|
44812
|
-
|
|
44843
|
+
for (let saving;saving !== this.saving || this.saveTimer; ) {
|
|
44844
|
+
saving = this.saving;
|
|
44845
|
+
await this.flush();
|
|
44846
|
+
}
|
|
44813
44847
|
this.closed = true;
|
|
44814
44848
|
}
|
|
44815
44849
|
}
|
|
@@ -45180,6 +45214,7 @@ class LocalCatalog {
|
|
|
45180
45214
|
extra = new Set;
|
|
45181
45215
|
foundAt = new Map;
|
|
45182
45216
|
temp;
|
|
45217
|
+
saving = Promise.resolve();
|
|
45183
45218
|
constructor(opts = {}) {
|
|
45184
45219
|
this.opts = opts;
|
|
45185
45220
|
this.db = new CatalogDb(opts.dbFile);
|
|
@@ -45296,6 +45331,9 @@ class LocalCatalog {
|
|
|
45296
45331
|
await this.ready();
|
|
45297
45332
|
await this.discovering;
|
|
45298
45333
|
}
|
|
45334
|
+
async saved() {
|
|
45335
|
+
await this.saving;
|
|
45336
|
+
}
|
|
45299
45337
|
close() {
|
|
45300
45338
|
this.db.close();
|
|
45301
45339
|
}
|
|
@@ -45385,7 +45423,7 @@ class LocalCatalog {
|
|
|
45385
45423
|
return;
|
|
45386
45424
|
this.granted.add(guard);
|
|
45387
45425
|
this.db.grant(guard);
|
|
45388
|
-
this.saveState();
|
|
45426
|
+
this.saving = this.saving.then(() => this.saveState());
|
|
45389
45427
|
}
|
|
45390
45428
|
importState() {
|
|
45391
45429
|
const file = this.opts.stateFile;
|
|
@@ -49938,7 +49976,7 @@ function remoteUpdater(endpoint, token) {
|
|
|
49938
49976
|
// apps/cli/package.json
|
|
49939
49977
|
var package_default = {
|
|
49940
49978
|
name: "ponzu",
|
|
49941
|
-
version: "1.78.
|
|
49979
|
+
version: "1.78.3",
|
|
49942
49980
|
description: "The open source canvas your agent draws on in HTML and CSS.",
|
|
49943
49981
|
type: "module",
|
|
49944
49982
|
license: "MIT",
|
package/package.json
CHANGED
|
@@ -2044,7 +2044,7 @@ Zilla Slab Highlight;400,700
|
|
|
2044
2044
|
}
|
|
2045
2045
|
return issues;
|
|
2046
2046
|
})()`,ft=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-sans-serif`,`ui-serif`,`ui-monospace`,`ui-rounded`,`math`,`emoji`,`fangsong`,`inherit`,`initial`,`unset`,`revert`]),pt=new Set([`-apple-system`,`blinkmacsystemfont`,`segoe ui`,`helvetica`,`helvetica neue`,`arial`,`sf pro`,`sf pro text`,`sf pro display`,`sf mono`,`menlo`,`monaco`,`consolas`,`times`,`times new roman`,`georgia`,`courier`,`courier new`,`apple color emoji`]),mt=`
|
|
2047
|
-
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; }
|
|
2047
|
+
[data-artboard] { display: flex; flex-direction: column; position: relative; overflow: hidden; box-sizing: border-box; background: #fff; color: #000; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
|
2048
2048
|
[data-artboard] *, [data-artboard] *::before, [data-artboard] *::after { box-sizing: border-box; }
|
|
2049
2049
|
[data-artboard] img, [data-artboard] video, [data-artboard] svg { max-width: none; }
|
|
2050
2050
|
`;function ht(e){return e.replace(/<\/(style)/gi,`<\\/$1`)}function gt(e,t){return e.replace(/\(\s*prefers-color-scheme\s*:\s*(light|dark)\s*\)/gi,(e,n)=>n.toLowerCase()===t?`(min-width: 0px)`:`(not (min-width: 0px))`)}var _t=[256,512,1024,2048,4096,8192];function vt(e){for(let t of _t)if(t>=e)return t;return _t[_t.length-1]}var yt=/\.(jpe?g|png|webp|avif|bmp|gif)$/i;function bt(e){let t=e.replace(/[?#].*$/,``);return yt.test(t)}function xt(e,t,n){let r=n.replace(/\/$/,``);if(e.startsWith(`${r}/assets/`)){let n=e.replace(/([?&])w=\d+(&|$)/,(e,t,n)=>n?t:``),r=n.indexOf(`#`),i=r<0?n:n.slice(0,r),a=r<0?``:n.slice(r);return`${i}${i.includes(`?`)?`&`:`?`}w=${t}${a}`}return/^https?:\/\//i.test(e)&&!e.startsWith(`${wt(r)}/`)?`${wt(r)}/api/image?w=${t}&url=${encodeURIComponent(e)}`:null}function St(e,t){let n=t.replace(/\/$/,``),r=`${wt(n)}/api/image?`;return e.startsWith(r)?new URLSearchParams(e.slice(r.length)).get(`url`)??e:e.startsWith(`${n}/assets/`)&&/[?&]w=\d+/.test(e)?e.replace(/([?&])w=\d+(&?)/,(e,t,n)=>n?t:``).replace(/[?&]$/,``):e}function Ct(e,t,n){let r=t.replace(/\/$/,``);if(e.startsWith(`${r}/assets/`))return bt(e);if(!/^https?:\/\//i.test(e)||e.startsWith(`${wt(r)}/`))return!1;if(bt(e))return!0;let i=n?.tag.toLowerCase();return i===`img`&&(n.attr===`src`||n.attr===`srcset`)||i===`source`&&n.attr===`srcset`||i===`image`&&(n.attr===`href`||n.attr===`xlink:href`)}function wt(e){let t=/^(https?:\/\/[^/]+)/i.exec(e);return t?t[1]:``}function Tt(e,t){return t?Se(e,e=>Dt(e,t)):e}function Et(e){return e.match(/@font-face\s*\{[^}]*\}/gi)??[]}function Dt(e,t){if(!t||/^(https?:|data:|blob:|#|\/\/)/i.test(e))return e;let n=e.replace(/^(\.\.\/)+/,``).replace(/^\.\//,``).replace(/^\//,``);return`${t.replace(/\/$/,``)}/${n}`}var Ot=`(() => {
|
|
@@ -2330,7 +2330,7 @@ Zilla Slab Highlight;400,700
|
|
|
2330
2330
|
}
|
|
2331
2331
|
}
|
|
2332
2332
|
return issues.slice(0, 10);
|
|
2333
|
-
})()`;function At(){let e=window;if(e.__ponzuMotion)return;let t=document.querySelector(`[data-artboard]`),n=[`hover`,`active`,`focus-visible`,`focus-within`,`focus`],r=[],i=`load`,a=0,o=0,s=0,c=null,l=null,u=[],d=null,f=e=>e.id===`ponzu-act`,p=()=>new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(()=>e()))),m=e=>Math.round(e*10)/10,h=e=>e?.closest(`[data-id]`)?.getAttribute(`data-id`)??``,g=e=>e.getAttribute(`data-name`)||e.tagName.toLowerCase(),_=e=>t?t.getAttribute(`data-id`)===e?t:t.querySelector(`[data-id="${CSS.escape(e)}"]`):null,v=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),y=()=>t?[...t.querySelectorAll(`animate, animateTransform, animateMotion, set`)]:[],b=()=>t?[...t.querySelectorAll(`svg`)].filter(e=>!e.parentElement?.closest(`svg`)):[],x=()=>t?[...t.querySelectorAll(`video`)]:[],S=e=>{if(!e)return null;let t=/^\s*(-?\d*\.?\d+)\s*(ms|s|min|h)?\s*$/.exec(e);if(!t)return null;let n=Number(t[1]),r=t[2]??`s`;return r===`ms`?n:r===`s`?n*1e3:r===`min`?n*6e4:n*36e5};function C(e){let t=e.animationName,n=e.effect;if(typeof t!=`string`||!n?.target)return!1;let r=getComputedStyle(n.target,n.pseudoElement),i=r.animationName.split(`,`).map(e=>e.trim()),a=r.animationPlayState.split(`,`).map(e=>e.trim()),o=i.indexOf(t);return o>=0&&a[o%a.length]===`paused`}function w(e,t){for(let n of e){let e=n.timeline===document.timeline,i=e&&C(n);e&&(n.pause(),n.currentTime=0),r.push({anim:n,base:0,trigger:t,paused:i,time:e})}}function T(t){let n=t.anim,r=n.effect;if(!r)return null;let i=r.getTiming(),a=r.getComputedTiming(),o=r.getKeyframes(),s=typeof n.animationName==`string`,c=typeof n.transitionProperty==`string`,l=new Set;if(c)l.add(n.transitionProperty);else for(let e of o)for(let t of Object.keys(e))[`offset`,`computedOffset`,`easing`,`composite`].includes(t)||l.add(v(t));let u=t.time?`time`:e.ViewTimeline!==void 0&&n.timeline instanceof e.ViewTimeline?`view`:`scroll`,d=Number.isFinite(a.iterations)?a.iterations:null,f=t.time&&Number(a.duration)||0,p=t.time&&d!==null?Number(a.endTime)||0:null,g={id:h(r.target),kind:c?`transition`:`animation`,name:s?n.animationName:c?n.transitionProperty:n.id||`animation`,properties:[...l],delay:m(Number(i.delay)||0),duration:m(f),iterations:d,direction:String(i.direction??`normal`),easing:String(s?o[0]?.easing??`ease`:i.easing??`linear`),end:p===null?null:m(p),timeline:u};return r.pseudoElement&&(g.pseudo=r.pseudoElement),t.paused&&(g.paused=!0),g}function E(e){let t=S(e.getAttribute(`dur`))??0,n=S(e.getAttribute(`begin`))??0,r=e.getAttribute(`repeatCount`),i=r===`indefinite`||e.getAttribute(`repeatDur`)===`indefinite`?null:Number(r)||1;return{id:h(e.parentElement),kind:`smil`,name:e.getAttribute(`attributeName`)??e.tagName,properties:[e.getAttribute(`attributeName`)??`path`],delay:m(n),duration:m(t),iterations:i,direction:`normal`,easing:e.getAttribute(`calcMode`)??`linear`,end:i===null?null:m(n+t*i),timeline:`time`}}function D(e=!0){let t=[];for(let n of r){if(n.trigger!==i||!e&&f(n.anim))continue;let r=T(n);r&&t.push(r)}if(i===`load`){for(let e of y())t.push(E(e));for(let e of x()){let n=Number.isFinite(e.duration)?m(e.duration*1e3):0;t.push({id:h(e),kind:`video`,name:/^(data|blob):/.test(e.currentSrc)?`video`:e.currentSrc.split(`/`).pop()||`video`,properties:[],delay:0,duration:n,iterations:e.loop?null:1,direction:`normal`,easing:`linear`,end:e.loop||!n?null:n,timeline:`time`})}}return t}function O(){let e=new Set;for(let t of r){if(t.trigger!==i||!t.time||t.paused)continue;let n=t.anim.effect;n?.target&&!Number.isFinite(n.getComputedTiming().iterations)&&e.add(n.target)}if(i===`load`)for(let t of y())t.parentElement&&E(t).iterations===null&&e.add(t.parentElement);let t=0;for(let n of e){let e=n;for(let t=n;t instanceof SVGElement;t=t.parentElement)e=t;let r=e.getBoundingClientRect();t=Math.max(t,r.width,r.height)}return m(t)}function k(){let e=D(),t=0,n=0,r=0,a=!1;for(let i of e)if(!(i.timeline!==`time`||i.paused)){if(i.end!==null)t=Math.max(t,i.end);else if(i.duration>0||i.kind!==`video`){a=!0;let e=i.duration*(i.direction.includes(`alternate`)?2:1);r=Math.max(r,e),t=Math.max(t,i.delay),n=Math.max(n,i.delay+e)}}let o={trigger:i,animations:(d?D(!1):e).slice(0,60),settled:m(t),loops:a,cycle:m(r),loopSize:a?O():0,end:m(Math.max(t,n)),at:m(s)};return d&&i===`load`&&(o.act=d.summary),o}function A(e){s=e;for(let t of r)t.time&&!t.paused&&t.anim.playState!==`idle`&&(t.anim.currentTime=t.base+e);for(let t of b())t.setCurrentTime((o+e)/1e3)}async function j(e){return A(e),await Promise.all(x().map(t=>new Promise(n=>{let r=t.duration;if(!Number.isFinite(r)||r<=0)return n();let i=(o+e)/1e3,a=t.loop?i%r:Math.min(i,r);if(Math.abs(t.currentTime-a)<.001)return n();let s=()=>n();t.addEventListener(`seeked`,s,{once:!0}),setTimeout(s,1500),t.currentTime=a}))),await p(),m(s)}function M(){if(!t)return k();let n=t.parentNode,o=t.nextSibling;n.removeChild(t),document.body.offsetHeight,n.insertBefore(t,o),d=e.__ponzuAct?.mount(t)??null,r=[],w(document.getAnimations(),`load`);for(let e of b())e.pauseAnimations(),e.setCurrentTime(0);for(let e of x())e.pause();return i=`load`,a=k().settled,k()}function N(){if(l)return l;let e=[],t=RegExp(`:(${n.join(`|`)})(?![\\w-])`,`g`),r=n=>{for(let i of[...n])i instanceof CSSStyleRule&&t.test(i.selectorText)&&(t.lastIndex=0,i.selectorText=i.selectorText.replace(t,(e,t)=>`:is(:${t},[data-ponzu-${t}])`),e.push(i)),t.lastIndex=0,`cssRules`in i&&i.cssRules&&r(i.cssRules)};for(let e of[...document.styleSheets])try{r(e.cssRules)}catch{}return l=e,e}function P(e){if(!t)return{error:`No artboard on the page.`};let n=e=>{let t=[];for(let n=e;n;n=n.parentElement)t.push(n);return t},c=[];e.hover&&c.push([`hover`,e.hover,`:hover`]),e.press&&c.push([`press`,e.press,`:active`]),e.focus&&c.push([`focus`,e.focus,`:focus`]);let l=[];for(let[e,t,n]of c){let r=_(t);if(!r)return{error:`No node ${t} in this artboard.`};l.push([e,r,n])}A(a);for(let e of r)e.base=a;o=a,s=0,document.body.offsetHeight;let d=N(),f=d.map(L),p=l.flatMap(([,e])=>[...n(e),...e.querySelectorAll(`*`)]),m=F()+I(p);for(let[e,t]of l){if(e===`hover`||e===`press`)for(let e of n(t))e.setAttribute(`data-ponzu-hover`,``);if(e===`press`)for(let e of n(t))e.setAttribute(`data-ponzu-active`,``);if(e===`focus`){t.focus?.({preventScroll:!0}),t.setAttribute(`data-ponzu-focus`,``),t.setAttribute(`data-ponzu-focus-visible`,``);for(let e of n(t))e.setAttribute(`data-ponzu-focus-within`,``)}}let v=new Set(r.map(e=>e.anim)),y=document.getAnimations().filter(e=>!v.has(e)),b=d.filter((e,t)=>L(e)!==f[t]);if(!y.length&&F()+I(p)===m){let e=b.some(ee);for(let[t,n,r]of l){let i=t===`press`?`:active or :hover`:r,a=t===`press`?`pressing`:t===`hover`?`hovering`:`focusing`;u.push({id:h(n),kind:`no-state-style`,message:e?`a ${i} rule matches ${g(n)}, but ${a} it changes nothing: inline styles beat <style> rules. Mark the state's declarations !important`:b.length?`a ${i} rule matches ${g(n)}, but ${a} it changes nothing: its values are what's already there`:`no ${i} rule matches ${g(n)} or its ancestors, so ${a} it changes nothing`})}}return r=r.filter(e=>e.anim.playState!==`idle`),i=l.map(([e,t])=>`${e} ${h(t)}`).join(`, `),w(y,i),k()}function F(){if(!t)return``;let e=[`color`,`background-color`,`background-image`,`border-color`,`outline-color`,`outline-style`,`box-shadow`,`opacity`,`transform`,`translate`,`scale`,`rotate`,`filter`,`text-decoration-line`,`visibility`,`display`,`width`,`height`],n=[t,...t.querySelectorAll(`*`)].slice(0,3e3),r=``;for(let t of n){let n=getComputedStyle(t);for(let t of e)r+=`${n.getPropertyValue(t)}|`;for(let n of[`::before`,`::after`]){let i=getComputedStyle(t,n);if(i.content!==`none`)for(let t of e)r+=`${i.getPropertyValue(t)}|`}}return r}function I(e){let t=``;for(let n of e.slice(0,300)){let e=getComputedStyle(n);for(let n=0;n<e.length;n++)t+=`${e.getPropertyValue(e[n])}|`}return t}function ee(e){let n=e.selectorText.replace(/::?(before|after|marker|placeholder)(?![\w-])/g,``),r;try{r=[t,...t.querySelectorAll(`*`)].filter(e=>e.matches(n))}catch{return!1}for(let t=0;t<e.style.length;t++){let n=e.style[t];if(e.style.getPropertyPriority(n)!==`important`)for(let t of r){let r=t.style;if(r?.getPropertyValue(n)&&r.getPropertyValue(n)!==e.style.getPropertyValue(n))return!0}}return!1}function L(e){let n=e.selectorText.replace(/::?(before|after|marker|placeholder|selection|first-line|first-letter|backdrop|file-selector-button)(?![\w-])/g,``);try{return t.matches(n)||!!t.querySelector(n)}catch{return!1}}async function te(e){if(await Promise.all(x().map(e=>new Promise(t=>{if(e.readyState>=1||e.error||!(e.currentSrc||e.src))return t();e.addEventListener(`loadedmetadata`,()=>t(),{once:!0}),e.addEventListener(`error`,()=>t(),{once:!0}),setTimeout(t,2e3)}))),M(),e.interact&&Object.values(e.interact).some(Boolean)){let t=P(e.interact);if(`error`in t)return t}return await j(e.at??R()),k()}function R(){return d&&i===`load`?d.summary.poster:k().settled}function z(e){let t=Math.max(1,Math.min(24,Math.round(e.frames??9))),n=(e,n)=>t===1||n<=e?[e]:Array.from({length:t},(r,i)=>m(e+(n-e)*i/(t-1)));if(e.scroll){let t=_(e.scroll);if(!t)return{steps:[],error:`No node ${e.scroll} in this artboard.`};let r=t.scrollHeight-t.clientHeight,i=t.scrollWidth-t.clientWidth;return r<=1&&i<=1?{steps:[],error:`${e.scroll} doesn't scroll: its content fits inside it. Give it a fixed height and overflow: auto, with content taller than that.`}:(c={el:t,axis:r>1?`y`:`x`},{steps:n(0,Math.round(r>1?r:i)).map(e=>({scroll:Math.round(e),label:`${Math.round(e)}px`}))})}let r=k();if(d&&i===`load`&&!e.frames&&e.from===void 0&&e.to===void 0){let e=d.summary,t=e.loop?e.duration-1:e.duration,n=e.beats.filter(e=>e.end>e.start||/^(poster|reset)/.test(e.text)),r=n.length>23?Array.from({length:23},(e,t)=>n[Math.round(t*(n.length-1)/22)]):n,i=[{t:0,label:`0ms start`}];for(let e of r){let n=m(Math.min(t,/^reset/.test(e.text)?e.start:e.end));if(i.some(e=>e.t===n))continue;let r=e.text.length>34?`${e.text.slice(0,33)}…`:e.text;i.push({t:n,label:`${Math.round(n)}ms ${r}`})}return i.sort((e,t)=>e.t-t.t),{steps:i}}let a=e.from??0,o=e.to??Math.min(r.end,d?Math.max(1e4,d.summary.duration):1e4);return{steps:n(a,Math.max(a,o)).map(e=>({t:e,label:`${Math.round(e)}ms${e===r.settled&&r.animations.length?` settled`:``}`}))}}function ne(e){c&&(c.axis===`y`?c.el.scrollTop=e:c.el.scrollLeft=e)}async function re(e){e.scroll===void 0?await j(e.t??0):(ne(e.scroll),await p())}function ie(e){let n=document.querySelector(e.selector);if(!n||!t)return null;let r=[],i=s;for(let t of e.steps.length?e.steps:[{label:``}])t.scroll===void 0?t.t!==void 0&&A(t.t):ne(t.scroll),r.push(n.getBoundingClientRect());ne(0),A(i);let a=t.getBoundingClientRect(),o=Math.max(a.left,Math.min(...r.map(e=>e.left))),c=Math.max(a.top,Math.min(...r.map(e=>e.top))),l=Math.min(a.right,Math.max(...r.map(e=>e.right))),u=Math.min(a.bottom,Math.max(...r.map(e=>e.bottom)));return{x:o,y:c,width:Math.max(1,l-o),height:Math.max(1,u-c)}}async function ae(){ne(0),await j(R())}function oe(){let e=[...u,...d?.issues??[]];if(!t)return e;let n=new Set,i=e=>{for(let t of[...e])t instanceof CSSKeyframesRule?n.add(t.name):`cssRules`in t&&t.cssRules&&i(t.cssRules)};for(let e of[...document.styleSheets])try{i(e.cssRules)}catch{}for(let r of[t,...t.querySelectorAll(`*`)]){let t=getComputedStyle(r);if(t.animationName!==`none`&&t.display!==`none`)for(let i of t.animationName.split(`,`)){let t=i.trim();t&&t!==`none`&&!n.has(t)&&e.push({id:h(r),kind:`missing-keyframes`,message:`@keyframes ${t} isn't defined here, so ${g(r)} doesn't animate. Define it in a <style> inside this artboard`})}}let a=new Set;for(let t of r){if(!t.time||t.paused||t.anim.playState===`idle`)continue;let n=t.anim.effect,r=n?.target;if(!n||!r||n.pseudoElement)continue;let i=n.getComputedTiming();if(!Number.isFinite(i.endTime)||t.base+s<Number(i.endTime)||i.fill===`forwards`||i.fill===`both`||!n.getKeyframes().some(e=>`opacity`in e)||getComputedStyle(r).opacity!==`0`)continue;let o=t.anim.currentTime;t.anim.currentTime=Math.max(0,Number(i.endTime)-1);let c=getComputedStyle(r).opacity;if(t.anim.currentTime=o,Number(c)<.05)continue;let l=h(r);if(a.has(l))continue;a.add(l);let u=t.anim.animationName??t.anim.transitionProperty??``;e.push({id:l,kind:`hidden-after-animation`,message:`${g(r)} is invisible once ${u} ends: without animation-fill-mode: forwards it snaps back to opacity: 0`})}let o=se();return o&&e.push(o),e}function se(){let e=/^(transform|translate|rotate|scale|opacity|filter|backdrop-filter)$/,n=new Set,i=new Map,a=0;for(let t of r){let r=t.anim.effect,o=r?.target;if(!t.time||!r||!o||t.anim.playState===`idle`||n.has(o))continue;let s=r.getComputedTiming(),c=!Number.isFinite(s.endTime),l=!c&&(s.fill===`forwards`||s.fill===`both`)&&r.getKeyframes().some(t=>Object.keys(t).some(t=>e.test(v(t))));if(!c&&!l)continue;n.add(o),l&&a++;let u=t.anim.animationName??t.anim.transitionProperty??`animation`,d=i.get(u);d?d.push(o):i.set(u,[o])}if(n.size<=100)return null;let o=[...i].sort((e,t)=>t[1].length-e[1].length),s=o[0][1],c=s[0];for(;c!==t&&!s.every(e=>c.contains(e));)c=c.parentElement??t;let l=o.slice(0,3).map(([e,t])=>`${e} on ${t.length}`),u=o.slice(3);u.length&&l.push(`${u.length} more on ${u.reduce((e,[,t])=>e+t.length,0)}`);let d=l.join(`, `),f=a?`. ${a} keep their layer after ending (fill-mode forwards or both): put the end state in their style and use backwards`:``;return{id:h(c),kind:`animation-budget`,message:`${n.size} elements animate at once (${d}): each is its own layer, and past 100 the canvas drops frames, even panning. Animate a few HTML wrappers instead, one per row or one around the group; an SVG <g> repaints everything in it every frame${f}`}}e.__ponzuMotion={hold:M,interact:P,prepare:te,seek:j,info:k,plan:z,apply:re,box:ie,settle:ae,lint:oe}}`${At.toString()}`;function jt(e,t){return`window.__ponzuMotion.${e}(${t===void 0?``:JSON.stringify(t)})`}`${dt}${Ot}${jt(`lint`)}${kt}`,new TextEncoder;function Mt(e){return[e>>>24&255,e>>>16&255,e>>>8&255,e&255]}[65536,0,0,0,65536,0,0,0,1073741824].flatMap(Mt);function Nt(){let e=window;if(e.__ponzuLoop)return;let t=document.querySelector(`[data-artboard]`),n=[],r=[],i=[],a=[],o=null,s=(e,t)=>t?s(t,e%t):e,c=(e,t)=>e/s(e,t)*t,l=e=>e?.closest(`[data-id]`)?.getAttribute(`data-id`)??``,u=e=>[...e.matchAll(/(-?\d*\.?\d+)px/g)].map(e=>Number(e[1])),d=e=>{let t=[],n=0,r=``;for(let i of e)i===`(`&&n++,i===`)`&&n--,i===`,`&&!n?(t.push(r),r=``):r+=i;return[...t,r]},f={l:0,t:0,r:0,b:0},p=(e,t)=>({l:Math.max(e.l,t.l),t:Math.max(e.t,t.t),r:Math.max(e.r,t.r),b:Math.max(e.b,t.b)}),m=(e,t)=>({l:e.l+t.l,t:e.t+t.t,r:e.r+t.r,b:e.b+t.b}),h=(e,t,n)=>({l:Math.max(0,n-e),t:Math.max(0,n-t),r:Math.max(0,n+e),b:Math.max(0,n+t)}),g=e=>e===`none`?f:d(e).reduce((e,t)=>{if(/\binset\b/.test(t))return e;let[n=0,r=0,i=0,a=0]=u(t);return p(e,h(n,r,i+a))},f),_=e=>{let t=f;for(let n of e.matchAll(/blur\(\s*(\d*\.?\d+)px\s*\)/g)){let e=3*Number(n[1]);t=m(t,{l:e,t:e,r:e,b:e})}for(let n of e.matchAll(/drop-shadow\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g)){let[e=0,r=0,i=0]=u(n[1]);t=m(t,h(e,r,3*i))}return t};function v(e){let t=e.animationName,n=e.effect;if(typeof t!=`string`||!n?.target)return!1;let r=getComputedStyle(n.target,n.pseudoElement),i=r.animationName.split(`,`).map(e=>e.trim()),a=r.animationPlayState.split(`,`).map(e=>e.trim()),o=i.indexOf(t);return o>=0&&a[o%a.length]===`paused`}function y(){let e=[];if(!t)return e;n=document.getAnimations().filter(e=>e.timeline===document.timeline&&!v(e));for(let t of n){let n=t.effect;if(!n?.target)continue;let r=n.getComputedTiming();if(Number.isFinite(r.iterations))continue;let i=Number(r.duration);if(!(i>0))continue;let a=i*(String(n.getTiming().direction??``).includes(`alternate`)?2:1);e.push({el:n.target,cycle:a,anim:t,pseudo:!!n.pseudoElement})}r=[...t.querySelectorAll(`svg`)].filter(e=>!e.parentElement?.closest(`svg`));for(let n of t.querySelectorAll(`animate, animateTransform, animateMotion, set`)){let t=n.getAttribute(`repeatCount`)===`indefinite`||n.getAttribute(`repeatDur`)===`indefinite`,r=/^\s*(\d*\.?\d+)\s*(ms|s)?\s*$/.exec(n.getAttribute(`dur`)??``);if(!t||!r)continue;let i=Number(r[1])*(r[2]===`ms`?1:1e3),a=n.targetElement??n.parentElement;i>0&&a&&e.push({el:a,cycle:i,pseudo:!1})}return e}function b(e){for(let t of n)t.currentTime=e;for(let t of r)t.setCurrentTime(e/1e3)}function x(e){if(!t)return{regions:[],still:[]};let n=y(),o=t.getBoundingClientRect(),s=new Map,u=e=>{let t=s.get(e);if(t===void 0){let n=getComputedStyle(e);t=n.overflowX!==`visible`||n.overflowY!==`visible`||/paint|strict|content/.test(n.contain),s.set(e,t)}return t},d=n.map(()=>({l:1/0,t:1/0,r:-1/0,b:-1/0})),f=(e,t)=>{if(!t.width&&!t.height)return;let n=d[e];n.l=Math.min(n.l,t.left),n.t=Math.min(n.t,t.top),n.r=Math.max(n.r,t.right),n.b=Math.max(n.b,t.bottom)},h=Math.max(1e3,...n.filter(e=>!e.anim).map(e=>e.cycle));b(e.t0);for(let t=0;t<e.samples;t++){for(let r of n)r.anim&&(r.anim.currentTime=e.t0+r.cycle*t/e.samples);for(let n of r)n.setCurrentTime((e.t0+h*t/e.samples)/1e3);n.forEach((e,t)=>{f(t,e.el.getBoundingClientRect());let n=e.el.getElementsByTagName(`*`);for(let e=0;e<n.length&&e<300;e++)f(t,n[e].getBoundingClientRect())})}let v=n.map((e,n)=>{let r=d[n];if(!Number.isFinite(r.l))return null;let i=getComputedStyle(e.el),a=i.outlineStyle===`none`?0:Math.max(0,Number.parseFloat(i.outlineWidth)+Number.parseFloat(i.outlineOffset)),s=2+(e.pseudo?24:0),c=m(p(p(g(i.boxShadow),g(i.textShadow)),{l:a,t:a,r:a,b:a}),_(i.filter)),l=e=>s+Math.min(160,e),f=r.l-l(c.l),h=r.t-l(c.t),v=r.r+l(c.r),y=r.b+l(c.b);for(let n=e.el.parentElement;n&&n!==t.parentElement;n=n.parentElement){if(n!==t&&!u(n))continue;let e=n.getBoundingClientRect();f=Math.max(f,e.left),h=Math.max(h,e.top),v=Math.min(v,e.right),y=Math.min(y,e.bottom)}return f=Math.max(f,o.left),h=Math.max(h,o.top),v=Math.min(v,o.right),y=Math.min(y,o.bottom),v-f>=1&&y-h>=1?{l:f,t:h,r:v,b:y}:null}),x=[];v.forEach((e,t)=>e&&x.push({...e,members:[t]})),x.sort((e,t)=>e.t-t.t);for(let e=!0;e;){e=!1;let t=[];for(let n of x){let r=t.find(e=>e.l<n.r&&n.l<e.r&&e.t<n.b&&n.t<e.b);r?(r.l=Math.min(r.l,n.l),r.t=Math.min(r.t,n.t),r.r=Math.max(r.r,n.r),r.b=Math.max(r.b,n.b),r.members.push(...n.members),e=!0):t.push(n)}x=t}let S=t=>{let r=1;for(let i of t)if(r=c(r,Math.max(1,Math.round(n[i].cycle))),r>e.maxPeriod)return 1/0;return r},C=e=>(e.r-e.l)*(e.b-e.t);for(let e=!0;e;){e=!1;outer:for(let t=0;t<x.length;t++)for(let n=t+1;n<x.length;n++){let r=x[t],i=x[n],a=S(r.members),o=S(i.members),s=c(a,o);if(!Number.isFinite(s)||s>Math.max(a,o))continue;let l={l:Math.min(r.l,i.l),t:Math.min(r.t,i.t),r:Math.max(r.r,i.r),b:Math.max(r.b,i.b)};if(!(C(l)>1.6*(C(r)+C(i)))){x[t]={...l,members:[...r.members,...i.members]},x.splice(n,1),e=!0;break outer}}}let w=[];i=[],a=[];let T=[];for(let t of x){let s=S(t.members),c={x:Math.floor(t.l-o.left),y:Math.floor(t.t-o.top),width:Math.ceil(t.r-o.left)-Math.floor(t.l-o.left),height:Math.ceil(t.b-o.top)-Math.floor(t.t-o.top)};if(s>e.maxPeriod){T.push({...c,period:null,reason:`period`});continue}let u=[...new Set(t.members.map(e=>l(n[e].el)))].filter(Boolean);i.push(t.members.flatMap(e=>n[e].anim?[n[e].anim]:[])),a.push(r.filter(e=>t.members.some(t=>!n[t].anim&&e.contains(n[t].el)))),w.push({...c,period:s,ids:u,animations:t.members.length})}return b(e.t0),{regions:w,still:T}}let S=[],C=[`avc1.4d0028`,`avc1.640028`,`avc1.42001f`,`avc1.640033`],w=``;async function T(e,t,n){if(typeof VideoEncoder>`u`)return w=isSecureContext?`no WebCodecs`:`not a secure context`,null;let r={width:e,height:t,framerate:60,avc:{format:`avc`}},i=[];for(let e of C)i.push({...r,codec:e,bitrateMode:`quantizer`});for(let e of[`no-preference`,`prefer-software`])for(let t of C)i.push({...r,codec:t,bitrate:n,hardwareAcceleration:e,latencyMode:`quality`});for(let e of i)try{if((await VideoEncoder.isConfigSupported(e)).supported)return e}catch(e){w=String(e)}return w||=`no H.264 encoder for ${e}x${t}`,null}async function E(e){S=[];for(let t of e){let e=Math.round(Math.max(4e5,t.w*t.h*60*.12)),n=await T(t.w,t.h,e);if(!n)return w;let r=new OffscreenCanvas(t.w,t.h),i={...t,canvas:r,ctx:r.getContext(`2d`),chunks:[],keys:[],stamps:[],description:null,error:null,n:0,sample:0,qp:n.bitrateMode===`quantizer`};i.enc=new VideoEncoder({output:(e,t)=>{let n=new Uint8Array(e.byteLength);e.copyTo(n),i.chunks.push(n),i.keys.push(e.type===`key`),i.stamps.push(e.timestamp);let r=t?.decoderConfig?.description;r&&!i.description&&(i.description=r instanceof ArrayBuffer?new Uint8Array(r.slice(0)):new Uint8Array(r.buffer,r.byteOffset,r.byteLength).slice())},error:e=>{i.error=String(e)}}),i.enc.configure(n),S.push(i)}return``}let D=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));function O(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}async function k(e,t){let n=await createImageBitmap(new Blob([D(e)],{type:`image/png`}));for(let e of t){let t=S[e.track];t.ctx.drawImage(n,e.sx,e.sy,e.sw,e.sh,0,0,t.w,t.h);for(let e=0;e<2;e++){let e=new VideoFrame(t.canvas,{timestamp:t.sample*16667,duration:16667});t.enc.encode(e,{keyFrame:t.sample%1200==0,...t.qp?{avc:{quantizer:18}}:{}}),e.close(),t.sample++}t.n++}for(n.close();S.some(e=>e.enc.encodeQueueSize>8);)await new Promise(e=>setTimeout(e,1))}async function A(){let e=[];for(let t of S){await t.enc.flush(),t.enc.close();let n=t.stamps.every((e,n)=>n===0||e>t.stamps[n-1]);e.push({error:t.error??(n?null:`encoder reordered frames`),description:t.description?O(t.description):``,samples:t.chunks.map(O),keys:t.keys})}return S=[],e}function j(e){o={anims:e.flatMap(e=>i[e]??[]),svgs:[...new Set(e.flatMap(e=>a[e]??[]))]};let t=new Set(o.anims);for(let e of n)t.has(e)?(e.playState===`idle`&&e.play(),e.pause()):e.effect?.getTiming().iterations===1/0&&e.cancel()}async function M(e){if(e.png&&await k(e.png,e.crops??[]),!o)return b(e.t);for(let t of o.anims)t.currentTime=e.t;for(let t of o.svgs)t.setCurrentTime(e.t/1e3)}e.__ponzuLoop={plan:x,setTime:b,focus:j,open:E,step:M,finish:A}}`${Nt.toString()}`;var W=c(f(),1),Pt=1.5,Ft=.8,It=8,Lt=.5;function Rt(e,t){return vt(Math.min(e*t,512))}function zt(e,t,n,r){return!r||!Bt(e,t,n)?e:xt(e,r,t)??e}function Bt(e,t,n){return/\.gif$/i.test(e.replace(/[?#].*$/,``))||n?.attr===`style`&&!e.startsWith(`${t.replace(/\/$/,``)}/assets/`)?!1:Ct(e,t,n)}function Vt(e,t){if(St(e,t)===e)return 0;let n=Number(/[?&]w=(\d+)/.exec(e)?.[1]);return _t.includes(n)?n:0}function Ht(e,t){if(!(e>0))return t;let n=vt(e);return n>t||vt(e*Pt)<t?n:t}function Ut(e,t,n,r,i,a=1/0){if(!(n>0&&r>0))return e;let o=Math.max(e/n,t/r)*n,s=Math.min(e/n,t/r)*n;return i===`contain`?s:i===`none`?Number.isFinite(a)?a:o:i===`scale-down`?Math.min(s,a):o}function Wt(e,t,n,r,i,a=1){let[o=`auto`,s=`auto`]=(n.split(`,`)[0]??``).trim().split(/\s+/),c=(e,t)=>e.endsWith(`%`)?Number.parseFloat(e)/100*t:e.endsWith(`px`)?Number.parseFloat(e)*a:NaN;if(o===`cover`)return r?Math.max(e,t*r):1/0;if(o===`contain`)return r?Math.min(e,t*r):e;let l=c(o,e);if(Number.isFinite(l))return l;let u=c(s,t);return Number.isFinite(u)&&r?u*r:i??1/0}var Gt=new Map,Kt=class{root;assetBase;targets=[];steps=new Map;detail=null;generation=0;recheck=0;onLoad=()=>this.soon();onError=e=>{let t=e.target,n=this.targets.find(e=>e.el===t||e.kind===`img`&&e.sources.some(e=>e.el===t));n&&n.step&&(this.apply(n,0),n.step=0,n.failed=!0)};constructor(e,t){this.root=e,this.assetBase=t,e.addEventListener(`load`,this.onLoad,!0),e.addEventListener(`error`,this.onError,!0)}stepFor(e){return this.steps.get(e)}reset(){this.generation++,this.targets=[];let e=this.assetBase,t=t=>St(t,e),n=t=>{let n=0;for(let r of t)r&&(n=Math.max(n,Vt(r,e)));return n};for(let r of this.root.querySelectorAll(`*`)){let i=r.localName;if(i===`img`){let e=r,i=e.getAttribute(`src`)??void 0,a=e.getAttribute(`srcset`)??void 0,o=e.parentElement?.localName===`picture`?[...e.parentElement.children].filter(e=>e.localName===`source`&&e.hasAttribute(`srcset`)).map(e=>({el:e,srcset:e.getAttribute(`srcset`)})):[],s=n([i,...Yt(a),...o.flatMap(e=>Yt(e.srcset))]);s&&this.targets.push({kind:`img`,el:e,src:i&&t(i),srcset:a&&we(a,t),sources:o.map(e=>({el:e.el,srcset:we(e.srcset,t)})),step:s})}else if(i===`image`&&r instanceof SVGElement){let n=r.hasAttribute(`href`)?`href`:`xlink:href`,i=r.getAttribute(n)??``,a=Vt(i,e);a&&this.targets.push({kind:`svg`,el:r,attr:n,url:t(i),step:a})}else if(i===`style`){let e=r.textContent??``,i=n(Xt(e));if(i){let n=Se(e,t);this.targets.push({kind:`sheet`,el:r,text:n,urls:Xt(n),step:i})}}let a=r.getAttribute(`style`);if(a&&/url\(|image-set\(/i.test(a)){let e=n(Xt(a));if(e){let n=Se(a,t);this.targets.push({kind:`style`,el:r,style:n,urls:Xt(n),step:e})}}}let r=this.detail;r&&!r.moving&&!r.hidden&&this.soon()}update(e){let t=this.detail;this.detail=e,e.hidden||!this.targets.length?$t.delete(this):e.moving?($t.add(this),tn()):($t.delete(this),(!t||t.moving||t.hidden||t.scale!==e.scale)&&this.size(!1))}size(e){let t=Zt(),n=this.root.querySelector(`[data-artboard]`);if(!n||!Qt(n.getBoundingClientRect(),t))return;let r=window.devicePixelRatio||1,i=this.generation;for(let a of this.targets){if(!a.el.isConnected||a.failed)continue;let o=(a.kind===`sheet`?n:a.el).getBoundingClientRect();if(!(o.width>0&&o.height>0)||!Qt(o,t))continue;let s=this.need(a,o,r);if(s===null)continue;let c=Ht(s,a.step),l=this.originalWidth(a);if(l&&c>a.step&&a.step>=l*Ft||c===a.step||c===a.want||e&&c<a.step)continue;a.want=c;let u=this.urlsFor(a,c);Promise.all(u.map(e=>sn(e,St(e,this.assetBase)))).then(e=>{i===this.generation&&a.want===c&&(a.want=void 0,e.every(Boolean)&&!this.detail?.moving&&this.apply(a,c))})}}need(e,t,n){let r=t.width*n,i=t.height*n;if(e.kind===`img`){let a=e.el;if(!a.complete||!a.naturalWidth)return null;e.fit??=getComputedStyle(a).objectFit;let o=a.offsetWidth?t.width/a.offsetWidth:1;return Ut(r,i,a.naturalWidth,a.naturalHeight,e.fit,a.naturalWidth*o*n)}if(e.kind===`svg`){let t=Gt.get(e.url);return/slice/.test(e.el.getAttribute(`preserveAspectRatio`)??``)?t?Math.max(r,i*(t.w/t.h)):(this.learn(e),null):r}if(e.kind===`style`){let a=e.el;e.size??=getComputedStyle(a).backgroundSize||`auto`;let o=Gt.get(e.urls[0]??``),s=a.offsetWidth?t.width/a.offsetWidth:1,c=Wt(r,i,e.size,o&&o.w/o.h,o&&o.w*s*n,s*n);return Number.isFinite(c)?c:(o||this.learn(e),null)}return r}urlsFor(e,t){let n=n=>zt(n,this.assetBase,{tag:e.el.localName,attr:`src`},t);if(e.kind===`img`){let t=e.el.currentSrc,r=t?St(t,this.assetBase):e.src;return r?[n(r)]:[]}return e.kind===`svg`?[n(e.url)]:Jt(e.urls,this.assetBase,e.el.localName,t)}apply(e,t){e.step=t;for(let n of qt(e))this.steps.set(n,t);let n=this.assetBase,r=r=>i=>zt(i,n,{tag:e.el.localName,attr:r},t);if(e.kind===`img`){for(let t of e.sources)t.el.setAttribute(`srcset`,we(t.srcset,r(`srcset`)));e.srcset!==void 0&&e.el.setAttribute(`srcset`,we(e.srcset,r(`srcset`))),e.src!==void 0&&e.el.setAttribute(`src`,r(`src`)(e.src))}else e.kind===`svg`?e.el.setAttribute(e.attr,r(e.attr)(e.url)):e.kind===`style`?e.el.setAttribute(`style`,Se(e.style,r(`style`))):e.el.textContent=Se(e.text,r(`style`))}originalWidth(e){if(e.kind===`img`){let t=e.el.currentSrc?St(e.el.currentSrc,this.assetBase):e.src,n=t?Gt.get(t):void 0;return n?n.w:!e.srcset&&!e.sources.length&&e.el.naturalWidth||void 0}if(e.kind===`svg`)return Gt.get(e.url)?.w;if(e.kind===`style`)return Gt.get(e.urls[0]??``)?.w}async learn(e){let t=e.kind===`style`?e.urls[0]:e.kind===`svg`?e.url:void 0;!t||Gt.has(t)||rn.has(t)||(rn.add(t),await sn(zt(t,this.assetBase,{tag:e.el.localName,attr:`src`},e.step),t),this.soon())}soon(){this.recheck||=window.setTimeout(()=>{this.recheck=0;let e=this.detail;e&&!e.moving&&!e.hidden&&this.size(!1)},120)}dispose(){this.generation++,$t.delete(this),clearTimeout(this.recheck),this.root.removeEventListener(`load`,this.onLoad,!0),this.root.removeEventListener(`error`,this.onError,!0)}};function qt(e){return e.kind===`img`?[e.src,...Yt(e.srcset),...e.sources.flatMap(e=>Yt(e.srcset))].filter(e=>!!e):e.kind===`svg`?[e.url]:e.urls}function Jt(e,t,n,r){let i=[];for(let a of e){let e=zt(a,t,{tag:n,attr:`style`},r);e!==a&&i.push(e)}return i}function Yt(e){return e?Te(e).map(e=>e.url):[]}function Xt(e){let t=new Set;return Se(e,e=>(t.add(e),e)),[...t]}function Zt(){let e=window.innerWidth,t=window.innerHeight;return{x0:-e*Lt,y0:-t*Lt,x1:e*1.5,y1:t*1.5}}function Qt(e,t){return e.right>t.x0&&e.left<t.x1&&e.bottom>t.y0&&e.top<t.y1}var $t=new Set,en=0;function tn(){en||=window.setInterval(()=>{if(!$t.size)clearInterval(en),en=0;else for(let e of $t)e.size(!0)},200)}var nn=new Map,rn=new Set,an=0,on=[];function sn(e,t){let n=nn.get(e);return n||(n=(async()=>{an>=It&&await new Promise(e=>on.push(e)),an++;try{let n=new Image;return n.decoding=`async`,n.src=e,await n.decode(),n.naturalWidth&&Gt.set(t,{w:n.naturalWidth,h:n.naturalHeight}),!0}catch{return!1}finally{an--,on.shift()?.()}})(),nn.set(e,n),nn.size>4e3&&nn.delete(nn.keys().next().value),n)}var cn=new WeakMap;function ln(){let e=window;return e.__ponzuAct||Ge(We()),e.__ponzuAct}function un(e){dn(e);let t=e.querySelector(`[data-artboard]`);if(!t?.querySelector(`script[type="ponzu/act"]`))return;let n;try{n=ln().mount(t)}catch(e){console.warn(`ponzu: scene script failed`,e);return}if(!n)return;let r=n,i=()=>{if(typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches)for(let e of r.animations)e.currentTime=r.summary.poster,e.pause()};i();let a=0,o=!0,s=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{if(o)try{r.rebuild(),i()}catch{}})},c=new WeakSet,l=e=>{e.target&&!c.has(e.target)&&(c.add(e.target),s())};document.fonts?.status===`loading`&&document.fonts.ready.then(s),t.addEventListener(`load`,l,!0),cn.set(e,{scene:r,stop:()=>{o=!1,cancelAnimationFrame(a),t.removeEventListener(`load`,l,!0),r.cancel()}})}function dn(e){cn.get(e)?.stop(),cn.delete(e)}function fn(e){return cn.get(e)?.scene.animations??[]}var pn=48,mn=8,hn=new Set([`transform`,`opacity`,`filter`,`rotate`,`scale`,`translate`,`backdropFilter`]),gn=new Set([`offset`,`easing`,`composite`,`computedOffset`]),_n=`http://www.w3.org/2000/svg`,vn=1200,yn=[`color`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`font-family`,`font-size`,`font-weight`,`font-style`],bn=`
|
|
2333
|
+
})()`;function At(){let e=window;if(e.__ponzuMotion)return;let t=document.querySelector(`[data-artboard]`),n=[`hover`,`active`,`focus-visible`,`focus-within`,`focus`],r=new WeakSet,i=[],a=`load`,o=0,s=0,c=0,l=null,u=null,d=[],f=null,p=e=>e.id===`ponzu-act`,m=()=>new Promise(e=>requestAnimationFrame(()=>requestAnimationFrame(()=>e()))),h=e=>Math.round(e*10)/10,g=e=>e?.closest(`[data-id]`)?.getAttribute(`data-id`)??``,_=e=>e.getAttribute(`data-name`)||e.tagName.toLowerCase(),v=e=>t?t.getAttribute(`data-id`)===e?t:t.querySelector(`[data-id="${CSS.escape(e)}"]`):null,y=e=>e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`),b=()=>t?[...t.querySelectorAll(`animate, animateTransform, animateMotion, set`)]:[],x=()=>t?[...t.querySelectorAll(`svg`)].filter(e=>!e.parentElement?.closest(`svg`)):[],S=()=>t?[...t.querySelectorAll(`video`)]:[],C=e=>{if(!e)return null;let t=/^\s*(-?\d*\.?\d+)\s*(ms|s|min|h)?\s*$/.exec(e);if(!t)return null;let n=Number(t[1]),r=t[2]??`s`;return r===`ms`?n:r===`s`?n*1e3:r===`min`?n*6e4:n*36e5};function w(e){let t=e.animationName,n=e.effect;if(typeof t!=`string`||!n?.target)return!1;let r=getComputedStyle(n.target,n.pseudoElement),i=r.animationName.split(`,`).map(e=>e.trim()),a=r.animationPlayState.split(`,`).map(e=>e.trim()),o=i.indexOf(t);return o>=0&&a[o%a.length]===`paused`}function T(e,t){for(let n of e){let e=n.timeline===document.timeline,r=e&&w(n);e&&(n.pause(),n.currentTime=0),i.push({anim:n,base:0,trigger:t,paused:r,time:e})}}function E(t){let n=t.anim,r=n.effect;if(!r)return null;let i=r.getTiming(),a=r.getComputedTiming(),o=r.getKeyframes(),s=typeof n.animationName==`string`,c=typeof n.transitionProperty==`string`,l=new Set;if(c)l.add(n.transitionProperty);else for(let e of o)for(let t of Object.keys(e))[`offset`,`computedOffset`,`easing`,`composite`].includes(t)||l.add(y(t));let u=t.time?`time`:e.ViewTimeline!==void 0&&n.timeline instanceof e.ViewTimeline?`view`:`scroll`,d=Number.isFinite(a.iterations)?a.iterations:null,f=t.time&&Number(a.duration)||0,p=t.time&&d!==null?Number(a.endTime)||0:null,m={id:g(r.target),kind:c?`transition`:`animation`,name:s?n.animationName:c?n.transitionProperty:n.id||`animation`,properties:[...l],delay:h(Number(i.delay)||0),duration:h(f),iterations:d,direction:String(i.direction??`normal`),easing:String(s?o[0]?.easing??`ease`:i.easing??`linear`),end:p===null?null:h(p),timeline:u};return r.pseudoElement&&(m.pseudo=r.pseudoElement),t.paused&&(m.paused=!0),m}function D(e){let t=C(e.getAttribute(`dur`))??0,n=C(e.getAttribute(`begin`))??0,r=e.getAttribute(`repeatCount`),i=r===`indefinite`||e.getAttribute(`repeatDur`)===`indefinite`?null:Number(r)||1;return{id:g(e.parentElement),kind:`smil`,name:e.getAttribute(`attributeName`)??e.tagName,properties:[e.getAttribute(`attributeName`)??`path`],delay:h(n),duration:h(t),iterations:i,direction:`normal`,easing:e.getAttribute(`calcMode`)??`linear`,end:i===null?null:h(n+t*i),timeline:`time`}}function O(e=!0){let t=[];for(let n of i){if(n.trigger!==a||!e&&p(n.anim))continue;let r=E(n);r&&t.push(r)}if(a===`load`){for(let e of b())t.push(D(e));for(let e of S()){let n=Number.isFinite(e.duration)?h(e.duration*1e3):0;t.push({id:g(e),kind:`video`,name:/^(data|blob):/.test(e.currentSrc)?`video`:e.currentSrc.split(`/`).pop()||`video`,properties:[],delay:0,duration:n,iterations:e.loop?null:1,direction:`normal`,easing:`linear`,end:e.loop||!n?null:n,timeline:`time`})}}return t}function k(){let e=new Set;for(let t of i){if(t.trigger!==a||!t.time||t.paused)continue;let n=t.anim.effect;n?.target&&!Number.isFinite(n.getComputedTiming().iterations)&&e.add(n.target)}if(a===`load`)for(let t of b())t.parentElement&&D(t).iterations===null&&e.add(t.parentElement);let t=0;for(let n of e){let e=n;for(let t=n;t instanceof SVGElement;t=t.parentElement)e=t;let r=e.getBoundingClientRect();t=Math.max(t,r.width,r.height)}return h(t)}function A(){let e=O(),t=0,n=0,r=0,i=!1;for(let a of e)if(!(a.timeline!==`time`||a.paused)){if(a.end!==null)t=Math.max(t,a.end);else if(a.duration>0||a.kind!==`video`){i=!0;let e=a.duration*(a.direction.includes(`alternate`)?2:1);r=Math.max(r,e),t=Math.max(t,a.delay),n=Math.max(n,a.delay+e)}}let o={trigger:a,animations:(f?O(!1):e).slice(0,60),settled:h(t),loops:i,cycle:h(r),loopSize:i?k():0,end:h(Math.max(t,n)),at:h(c)};return f&&a===`load`&&(o.act=f.summary),o}function j(e){c=e;for(let t of i)t.time&&!t.paused&&t.anim.playState!==`idle`&&(t.anim.currentTime=t.base+e);for(let t of x())t.setCurrentTime((s+e)/1e3)}function M(e,t){return new Promise(n=>{let i=e.duration;if(!Number.isFinite(i)||i<=0)return n();let a=(s+t)/1e3,o=e.loop?(a%i+i)%i:Math.min(Math.max(a,0),i);if(Math.abs(e.currentTime-o)<.001&&e.readyState>=2)return n();if(r.has(e))return e.currentTime=o,n();let c=e.currentTime,l=!1,u=typeof e.requestVideoFrameCallback!=`function`,d=()=>{l&&u&&(clearTimeout(f),n())},f=setTimeout(()=>{r.add(e),n()},1e4),p=e=>e<=o+.001&&(l||o<c||e>c+.001),m=(t,n)=>{if(!p(n.mediaTime))return void e.requestVideoFrameCallback(m);u=!0,d()};e.requestVideoFrameCallback?.(m),e.addEventListener(`seeked`,()=>{l=!0,d()},{once:!0}),e.currentTime=o})}async function N(e){return j(e),await Promise.all(S().map(t=>M(t,e))),await m(),h(c)}function P(){if(!t)return A();let n=t.parentNode,r=t.nextSibling;n.removeChild(t),document.body.offsetHeight,n.insertBefore(t,r),f=e.__ponzuAct?.mount(t)??null,i=[],T(document.getAnimations(),`load`);for(let e of x())e.pauseAnimations(),e.setCurrentTime(0);for(let e of S())e.pause();return a=`load`,o=A().settled,A()}function F(){if(u)return u;let e=[],t=RegExp(`:(${n.join(`|`)})(?![\\w-])`,`g`),r=n=>{for(let i of[...n])i instanceof CSSStyleRule&&t.test(i.selectorText)&&(t.lastIndex=0,i.selectorText=i.selectorText.replace(t,(e,t)=>`:is(:${t},[data-ponzu-${t}])`),e.push(i)),t.lastIndex=0,`cssRules`in i&&i.cssRules&&r(i.cssRules)};for(let e of[...document.styleSheets])try{r(e.cssRules)}catch{}return u=e,e}function I(e){if(!t)return{error:`No artboard on the page.`};let n=e=>{let t=[];for(let n=e;n;n=n.parentElement)t.push(n);return t},r=[];e.hover&&r.push([`hover`,e.hover,`:hover`]),e.press&&r.push([`press`,e.press,`:active`]),e.focus&&r.push([`focus`,e.focus,`:focus`]);let l=[];for(let[e,t,n]of r){let r=v(t);if(!r)return{error:`No node ${t} in this artboard.`};l.push([e,r,n])}j(o);for(let e of i)e.base=o;s=o,c=0,document.body.offsetHeight;let u=F(),f=u.map(R),p=l.flatMap(([,e])=>[...n(e),...e.querySelectorAll(`*`)]),m=ee()+L(p);for(let[e,t]of l){if(e===`hover`||e===`press`)for(let e of n(t))e.setAttribute(`data-ponzu-hover`,``);if(e===`press`)for(let e of n(t))e.setAttribute(`data-ponzu-active`,``);if(e===`focus`){t.focus?.({preventScroll:!0}),t.setAttribute(`data-ponzu-focus`,``),t.setAttribute(`data-ponzu-focus-visible`,``);for(let e of n(t))e.setAttribute(`data-ponzu-focus-within`,``)}}let h=new Set(i.map(e=>e.anim)),y=document.getAnimations().filter(e=>!h.has(e)),b=u.filter((e,t)=>R(e)!==f[t]);if(!y.length&&ee()+L(p)===m){let e=b.some(te);for(let[t,n,r]of l){let i=t===`press`?`:active or :hover`:r,a=t===`press`?`pressing`:t===`hover`?`hovering`:`focusing`;d.push({id:g(n),kind:`no-state-style`,message:e?`a ${i} rule matches ${_(n)}, but ${a} it changes nothing: inline styles beat <style> rules. Mark the state's declarations !important`:b.length?`a ${i} rule matches ${_(n)}, but ${a} it changes nothing: its values are what's already there`:`no ${i} rule matches ${_(n)} or its ancestors, so ${a} it changes nothing`})}}return i=i.filter(e=>e.anim.playState!==`idle`),a=l.map(([e,t])=>`${e} ${g(t)}`).join(`, `),T(y,a),A()}function ee(){if(!t)return``;let e=[`color`,`background-color`,`background-image`,`border-color`,`outline-color`,`outline-style`,`box-shadow`,`opacity`,`transform`,`translate`,`scale`,`rotate`,`filter`,`text-decoration-line`,`visibility`,`display`,`width`,`height`],n=[t,...t.querySelectorAll(`*`)].slice(0,3e3),r=``;for(let t of n){let n=getComputedStyle(t);for(let t of e)r+=`${n.getPropertyValue(t)}|`;for(let n of[`::before`,`::after`]){let i=getComputedStyle(t,n);if(i.content!==`none`)for(let t of e)r+=`${i.getPropertyValue(t)}|`}}return r}function L(e){let t=``;for(let n of e.slice(0,300)){let e=getComputedStyle(n);for(let n=0;n<e.length;n++)t+=`${e.getPropertyValue(e[n])}|`}return t}function te(e){let n=e.selectorText.replace(/::?(before|after|marker|placeholder)(?![\w-])/g,``),r;try{r=[t,...t.querySelectorAll(`*`)].filter(e=>e.matches(n))}catch{return!1}for(let t=0;t<e.style.length;t++){let n=e.style[t];if(e.style.getPropertyPriority(n)!==`important`)for(let t of r){let r=t.style;if(r?.getPropertyValue(n)&&r.getPropertyValue(n)!==e.style.getPropertyValue(n))return!0}}return!1}function R(e){let n=e.selectorText.replace(/::?(before|after|marker|placeholder|selection|first-line|first-letter|backdrop|file-selector-button)(?![\w-])/g,``);try{return t.matches(n)||!!t.querySelector(n)}catch{return!1}}async function z(e){if(await Promise.all(S().map(e=>new Promise(t=>{if(e.readyState>=1||e.error||!(e.currentSrc||e.src))return t();e.addEventListener(`loadedmetadata`,()=>t(),{once:!0}),e.addEventListener(`error`,()=>t(),{once:!0}),setTimeout(t,2e3)}))),P(),e.interact&&Object.values(e.interact).some(Boolean)){let t=I(e.interact);if(`error`in t)return t}return await N(e.at??ne()),A()}function ne(){return f&&a===`load`?f.summary.poster:A().settled}function re(e){let t=Math.max(1,Math.min(24,Math.round(e.frames??9))),n=(e,n)=>t===1||n<=e?[e]:Array.from({length:t},(r,i)=>h(e+(n-e)*i/(t-1)));if(e.scroll){let t=v(e.scroll);if(!t)return{steps:[],error:`No node ${e.scroll} in this artboard.`};let r=t.scrollHeight-t.clientHeight,i=t.scrollWidth-t.clientWidth;return r<=1&&i<=1?{steps:[],error:`${e.scroll} doesn't scroll: its content fits inside it. Give it a fixed height and overflow: auto, with content taller than that.`}:(l={el:t,axis:r>1?`y`:`x`},{steps:n(0,Math.round(r>1?r:i)).map(e=>({scroll:Math.round(e),label:`${Math.round(e)}px`}))})}let r=A();if(f&&a===`load`&&!e.frames&&e.from===void 0&&e.to===void 0){let e=f.summary,t=e.loop?e.duration-1:e.duration,n=e.beats.filter(e=>e.end>e.start||/^(poster|reset)/.test(e.text)),r=n.length>23?Array.from({length:23},(e,t)=>n[Math.round(t*(n.length-1)/22)]):n,i=[{t:0,label:`0ms start`}];for(let e of r){let n=h(Math.min(t,/^reset/.test(e.text)?e.start:e.end));if(i.some(e=>e.t===n))continue;let r=e.text.length>34?`${e.text.slice(0,33)}…`:e.text;i.push({t:n,label:`${Math.round(n)}ms ${r}`})}return i.sort((e,t)=>e.t-t.t),{steps:i}}let i=e.from??0,o=e.to??Math.min(r.end,f?Math.max(1e4,f.summary.duration):1e4);return{steps:n(i,Math.max(i,o)).map(e=>({t:e,label:`${Math.round(e)}ms${e===r.settled&&r.animations.length?` settled`:``}`}))}}function ie(e){l&&(l.axis===`y`?l.el.scrollTop=e:l.el.scrollLeft=e)}async function ae(e){e.scroll===void 0?await N(e.t??0):(ie(e.scroll),await m())}function oe(e){let n=document.querySelector(e.selector);if(!n||!t)return null;let r=[],i=c;for(let t of e.steps.length?e.steps:[{label:``}])t.scroll===void 0?t.t!==void 0&&j(t.t):ie(t.scroll),r.push(n.getBoundingClientRect());ie(0),j(i);let a=t.getBoundingClientRect(),o=Math.max(a.left,Math.min(...r.map(e=>e.left))),s=Math.max(a.top,Math.min(...r.map(e=>e.top))),l=Math.min(a.right,Math.max(...r.map(e=>e.right))),u=Math.min(a.bottom,Math.max(...r.map(e=>e.bottom)));return{x:o,y:s,width:Math.max(1,l-o),height:Math.max(1,u-s)}}async function se(){ie(0),await N(ne())}function ce(){let e=[...d,...f?.issues??[]];if(!t)return e;let n=new Set,r=e=>{for(let t of[...e])t instanceof CSSKeyframesRule?n.add(t.name):`cssRules`in t&&t.cssRules&&r(t.cssRules)};for(let e of[...document.styleSheets])try{r(e.cssRules)}catch{}for(let r of[t,...t.querySelectorAll(`*`)]){let t=getComputedStyle(r);if(t.animationName!==`none`&&t.display!==`none`)for(let i of t.animationName.split(`,`)){let t=i.trim();t&&t!==`none`&&!n.has(t)&&e.push({id:g(r),kind:`missing-keyframes`,message:`@keyframes ${t} isn't defined here, so ${_(r)} doesn't animate. Define it in a <style> inside this artboard`})}}let a=new Set;for(let t of i){if(!t.time||t.paused||t.anim.playState===`idle`)continue;let n=t.anim.effect,r=n?.target;if(!n||!r||n.pseudoElement)continue;let i=n.getComputedTiming();if(!Number.isFinite(i.endTime)||t.base+c<Number(i.endTime)||i.fill===`forwards`||i.fill===`both`||!n.getKeyframes().some(e=>`opacity`in e)||getComputedStyle(r).opacity!==`0`)continue;let o=t.anim.currentTime;t.anim.currentTime=Math.max(0,Number(i.endTime)-1);let s=getComputedStyle(r).opacity;if(t.anim.currentTime=o,Number(s)<.05)continue;let l=g(r);if(a.has(l))continue;a.add(l);let u=t.anim.animationName??t.anim.transitionProperty??``;e.push({id:l,kind:`hidden-after-animation`,message:`${_(r)} is invisible once ${u} ends: without animation-fill-mode: forwards it snaps back to opacity: 0`})}let o=B();return o&&e.push(o),e}function B(){let e=/^(transform|translate|rotate|scale|opacity|filter|backdrop-filter)$/,n=new Set,r=new Map,a=0;for(let t of i){let i=t.anim.effect,o=i?.target;if(!t.time||!i||!o||t.anim.playState===`idle`||n.has(o))continue;let s=i.getComputedTiming(),c=!Number.isFinite(s.endTime),l=!c&&(s.fill===`forwards`||s.fill===`both`)&&i.getKeyframes().some(t=>Object.keys(t).some(t=>e.test(y(t))));if(!c&&!l)continue;n.add(o),l&&a++;let u=t.anim.animationName??t.anim.transitionProperty??`animation`,d=r.get(u);d?d.push(o):r.set(u,[o])}if(n.size<=100)return null;let o=[...r].sort((e,t)=>t[1].length-e[1].length),s=o[0][1],c=s[0];for(;c!==t&&!s.every(e=>c.contains(e));)c=c.parentElement??t;let l=o.slice(0,3).map(([e,t])=>`${e} on ${t.length}`),u=o.slice(3);u.length&&l.push(`${u.length} more on ${u.reduce((e,[,t])=>e+t.length,0)}`);let d=l.join(`, `),f=a?`. ${a} keep their layer after ending (fill-mode forwards or both): put the end state in their style and use backwards`:``;return{id:g(c),kind:`animation-budget`,message:`${n.size} elements animate at once (${d}): each is its own layer, and past 100 the canvas drops frames, even panning. Animate a few HTML wrappers instead, one per row or one around the group; an SVG <g> repaints everything in it every frame${f}`}}e.__ponzuMotion={hold:P,interact:I,prepare:z,seek:N,info:A,plan:re,apply:ae,box:oe,settle:se,lint:ce}}`${At.toString()}`;function jt(e,t){return`window.__ponzuMotion.${e}(${t===void 0?``:JSON.stringify(t)})`}`${dt}${Ot}${jt(`lint`)}${kt}`,new TextEncoder;function Mt(e){return[e>>>24&255,e>>>16&255,e>>>8&255,e&255]}[65536,0,0,0,65536,0,0,0,1073741824].flatMap(Mt);function Nt(){let e=window;if(e.__ponzuLoop)return;let t=document.querySelector(`[data-artboard]`),n=[],r=[],i=[],a=[],o=null,s=(e,t)=>t?s(t,e%t):e,c=(e,t)=>e/s(e,t)*t,l=e=>e?.closest(`[data-id]`)?.getAttribute(`data-id`)??``,u=e=>[...e.matchAll(/(-?\d*\.?\d+)px/g)].map(e=>Number(e[1])),d=e=>{let t=[],n=0,r=``;for(let i of e)i===`(`&&n++,i===`)`&&n--,i===`,`&&!n?(t.push(r),r=``):r+=i;return[...t,r]},f={l:0,t:0,r:0,b:0},p=(e,t)=>({l:Math.max(e.l,t.l),t:Math.max(e.t,t.t),r:Math.max(e.r,t.r),b:Math.max(e.b,t.b)}),m=(e,t)=>({l:e.l+t.l,t:e.t+t.t,r:e.r+t.r,b:e.b+t.b}),h=(e,t,n)=>({l:Math.max(0,n-e),t:Math.max(0,n-t),r:Math.max(0,n+e),b:Math.max(0,n+t)}),g=e=>e===`none`?f:d(e).reduce((e,t)=>{if(/\binset\b/.test(t))return e;let[n=0,r=0,i=0,a=0]=u(t);return p(e,h(n,r,i+a))},f),_=e=>{let t=f;for(let n of e.matchAll(/blur\(\s*(\d*\.?\d+)px\s*\)/g)){let e=3*Number(n[1]);t=m(t,{l:e,t:e,r:e,b:e})}for(let n of e.matchAll(/drop-shadow\(([^()]*(?:\([^()]*\)[^()]*)*)\)/g)){let[e=0,r=0,i=0]=u(n[1]);t=m(t,h(e,r,3*i))}return t};function v(e){let t=e.animationName,n=e.effect;if(typeof t!=`string`||!n?.target)return!1;let r=getComputedStyle(n.target,n.pseudoElement),i=r.animationName.split(`,`).map(e=>e.trim()),a=r.animationPlayState.split(`,`).map(e=>e.trim()),o=i.indexOf(t);return o>=0&&a[o%a.length]===`paused`}function y(){let e=[];if(!t)return e;n=document.getAnimations().filter(e=>e.timeline===document.timeline&&!v(e));for(let t of n){let n=t.effect;if(!n?.target)continue;let r=n.getComputedTiming();if(Number.isFinite(r.iterations))continue;let i=Number(r.duration);if(!(i>0))continue;let a=i*(String(n.getTiming().direction??``).includes(`alternate`)?2:1);e.push({el:n.target,cycle:a,anim:t,pseudo:!!n.pseudoElement})}r=[...t.querySelectorAll(`svg`)].filter(e=>!e.parentElement?.closest(`svg`));for(let n of t.querySelectorAll(`animate, animateTransform, animateMotion, set`)){let t=n.getAttribute(`repeatCount`)===`indefinite`||n.getAttribute(`repeatDur`)===`indefinite`,r=/^\s*(\d*\.?\d+)\s*(ms|s)?\s*$/.exec(n.getAttribute(`dur`)??``);if(!t||!r)continue;let i=Number(r[1])*(r[2]===`ms`?1:1e3),a=n.targetElement??n.parentElement;i>0&&a&&e.push({el:a,cycle:i,pseudo:!1})}return e}function b(e){for(let t of n)t.currentTime=e;for(let t of r)t.setCurrentTime(e/1e3)}function x(e){if(!t)return{regions:[],still:[]};let n=y(),o=t.getBoundingClientRect(),s=new Map,u=e=>{let t=s.get(e);if(t===void 0){let n=getComputedStyle(e);t=n.overflowX!==`visible`||n.overflowY!==`visible`||/paint|strict|content/.test(n.contain),s.set(e,t)}return t},d=n.map(()=>({l:1/0,t:1/0,r:-1/0,b:-1/0})),f=(e,t)=>{if(!t.width&&!t.height)return;let n=d[e];n.l=Math.min(n.l,t.left),n.t=Math.min(n.t,t.top),n.r=Math.max(n.r,t.right),n.b=Math.max(n.b,t.bottom)},h=Math.max(1e3,...n.filter(e=>!e.anim).map(e=>e.cycle));b(e.t0);for(let t=0;t<e.samples;t++){for(let r of n)r.anim&&(r.anim.currentTime=e.t0+r.cycle*t/e.samples);for(let n of r)n.setCurrentTime((e.t0+h*t/e.samples)/1e3);n.forEach((e,t)=>{f(t,e.el.getBoundingClientRect());let n=e.el.getElementsByTagName(`*`);for(let e=0;e<n.length&&e<300;e++)f(t,n[e].getBoundingClientRect())})}let v=n.map((e,n)=>{let r=d[n];if(!Number.isFinite(r.l))return null;let i=getComputedStyle(e.el),a=i.outlineStyle===`none`?0:Math.max(0,Number.parseFloat(i.outlineWidth)+Number.parseFloat(i.outlineOffset)),s=2+(e.pseudo?24:0),c=m(p(p(g(i.boxShadow),g(i.textShadow)),{l:a,t:a,r:a,b:a}),_(i.filter)),l=e=>s+Math.min(160,e),f=r.l-l(c.l),h=r.t-l(c.t),v=r.r+l(c.r),y=r.b+l(c.b);for(let n=e.el.parentElement;n&&n!==t.parentElement;n=n.parentElement){if(n!==t&&!u(n))continue;let e=n.getBoundingClientRect();f=Math.max(f,e.left),h=Math.max(h,e.top),v=Math.min(v,e.right),y=Math.min(y,e.bottom)}return f=Math.max(f,o.left),h=Math.max(h,o.top),v=Math.min(v,o.right),y=Math.min(y,o.bottom),v-f>=1&&y-h>=1?{l:f,t:h,r:v,b:y}:null}),x=[];v.forEach((e,t)=>e&&x.push({...e,members:[t]})),x.sort((e,t)=>e.t-t.t);for(let e=!0;e;){e=!1;let t=[];for(let n of x){let r=t.find(e=>e.l<n.r&&n.l<e.r&&e.t<n.b&&n.t<e.b);r?(r.l=Math.min(r.l,n.l),r.t=Math.min(r.t,n.t),r.r=Math.max(r.r,n.r),r.b=Math.max(r.b,n.b),r.members.push(...n.members),e=!0):t.push(n)}x=t}let S=t=>{let r=1;for(let i of t)if(r=c(r,Math.max(1,Math.round(n[i].cycle))),r>e.maxPeriod)return 1/0;return r},C=e=>(e.r-e.l)*(e.b-e.t);for(let e=!0;e;){e=!1;outer:for(let t=0;t<x.length;t++)for(let n=t+1;n<x.length;n++){let r=x[t],i=x[n],a=S(r.members),o=S(i.members),s=c(a,o);if(!Number.isFinite(s)||s>Math.max(a,o))continue;let l={l:Math.min(r.l,i.l),t:Math.min(r.t,i.t),r:Math.max(r.r,i.r),b:Math.max(r.b,i.b)};if(!(C(l)>1.6*(C(r)+C(i)))){x[t]={...l,members:[...r.members,...i.members]},x.splice(n,1),e=!0;break outer}}}let w=[];i=[],a=[];let T=[];for(let t of x){let s=S(t.members),c={x:Math.floor(t.l-o.left),y:Math.floor(t.t-o.top),width:Math.ceil(t.r-o.left)-Math.floor(t.l-o.left),height:Math.ceil(t.b-o.top)-Math.floor(t.t-o.top)};if(s>e.maxPeriod){T.push({...c,period:null,reason:`period`});continue}let u=[...new Set(t.members.map(e=>l(n[e].el)))].filter(Boolean);i.push(t.members.flatMap(e=>n[e].anim?[n[e].anim]:[])),a.push(r.filter(e=>t.members.some(t=>!n[t].anim&&e.contains(n[t].el)))),w.push({...c,period:s,ids:u,animations:t.members.length})}return b(e.t0),{regions:w,still:T}}let S=[],C=[`avc1.4d0028`,`avc1.640028`,`avc1.42001f`,`avc1.640033`],w=``;async function T(e,t,n){if(typeof VideoEncoder>`u`)return w=isSecureContext?`no WebCodecs`:`not a secure context`,null;let r={width:e,height:t,framerate:60,avc:{format:`avc`}},i=[];for(let e of C)i.push({...r,codec:e,bitrateMode:`quantizer`});for(let e of[`no-preference`,`prefer-software`])for(let t of C)i.push({...r,codec:t,bitrate:n,hardwareAcceleration:e,latencyMode:`quality`});for(let e of i)try{if((await VideoEncoder.isConfigSupported(e)).supported)return e}catch(e){w=String(e)}return w||=`no H.264 encoder for ${e}x${t}`,null}async function E(e){S=[];for(let t of e){let e=Math.round(Math.max(4e5,t.w*t.h*60*.12)),n=await T(t.w,t.h,e);if(!n)return w;let r=new OffscreenCanvas(t.w,t.h),i={...t,canvas:r,ctx:r.getContext(`2d`),chunks:[],keys:[],stamps:[],description:null,error:null,n:0,sample:0,qp:n.bitrateMode===`quantizer`};i.enc=new VideoEncoder({output:(e,t)=>{let n=new Uint8Array(e.byteLength);e.copyTo(n),i.chunks.push(n),i.keys.push(e.type===`key`),i.stamps.push(e.timestamp);let r=t?.decoderConfig?.description;r&&!i.description&&(i.description=r instanceof ArrayBuffer?new Uint8Array(r.slice(0)):new Uint8Array(r.buffer,r.byteOffset,r.byteLength).slice())},error:e=>{i.error=String(e)}}),i.enc.configure(n),S.push(i)}return``}let D=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0));function O(e){let t=``;for(let n=0;n<e.length;n+=32768)t+=String.fromCharCode(...e.subarray(n,n+32768));return btoa(t)}async function k(e,t){let n=await createImageBitmap(new Blob([D(e)],{type:`image/png`}));for(let e of t){let t=S[e.track];t.ctx.drawImage(n,e.sx,e.sy,e.sw,e.sh,0,0,t.w,t.h);for(let e=0;e<2;e++){let e=new VideoFrame(t.canvas,{timestamp:t.sample*16667,duration:16667});t.enc.encode(e,{keyFrame:t.sample%1200==0,...t.qp?{avc:{quantizer:18}}:{}}),e.close(),t.sample++}t.n++}for(n.close();S.some(e=>e.enc.encodeQueueSize>8);)await new Promise(e=>setTimeout(e,1))}async function A(){let e=[];for(let t of S){await t.enc.flush(),t.enc.close();let n=t.stamps.every((e,n)=>n===0||e>t.stamps[n-1]);e.push({error:t.error??(n?null:`encoder reordered frames`),description:t.description?O(t.description):``,samples:t.chunks.map(O),keys:t.keys})}return S=[],e}function j(e){o={anims:e.flatMap(e=>i[e]??[]),svgs:[...new Set(e.flatMap(e=>a[e]??[]))]};let t=new Set(o.anims);for(let e of n)t.has(e)?(e.playState===`idle`&&e.play(),e.pause()):e.effect?.getTiming().iterations===1/0&&e.cancel()}async function M(e){if(e.png&&await k(e.png,e.crops??[]),!o)return b(e.t);for(let t of o.anims)t.currentTime=e.t;for(let t of o.svgs)t.setCurrentTime(e.t/1e3)}e.__ponzuLoop={plan:x,setTime:b,focus:j,open:E,step:M,finish:A}}`${Nt.toString()}`;var W=c(f(),1),Pt=1.5,Ft=.8,It=8,Lt=.5;function Rt(e,t){return vt(Math.min(e*t,512))}function zt(e,t,n,r){return!r||!Bt(e,t,n)?e:xt(e,r,t)??e}function Bt(e,t,n){return/\.gif$/i.test(e.replace(/[?#].*$/,``))||n?.attr===`style`&&!e.startsWith(`${t.replace(/\/$/,``)}/assets/`)?!1:Ct(e,t,n)}function Vt(e,t){if(St(e,t)===e)return 0;let n=Number(/[?&]w=(\d+)/.exec(e)?.[1]);return _t.includes(n)?n:0}function Ht(e,t){if(!(e>0))return t;let n=vt(e);return n>t||vt(e*Pt)<t?n:t}function Ut(e,t,n,r,i,a=1/0){if(!(n>0&&r>0))return e;let o=Math.max(e/n,t/r)*n,s=Math.min(e/n,t/r)*n;return i===`contain`?s:i===`none`?Number.isFinite(a)?a:o:i===`scale-down`?Math.min(s,a):o}function Wt(e,t,n,r,i,a=1){let[o=`auto`,s=`auto`]=(n.split(`,`)[0]??``).trim().split(/\s+/),c=(e,t)=>e.endsWith(`%`)?Number.parseFloat(e)/100*t:e.endsWith(`px`)?Number.parseFloat(e)*a:NaN;if(o===`cover`)return r?Math.max(e,t*r):1/0;if(o===`contain`)return r?Math.min(e,t*r):e;let l=c(o,e);if(Number.isFinite(l))return l;let u=c(s,t);return Number.isFinite(u)&&r?u*r:i??1/0}var Gt=new Map,Kt=class{root;assetBase;targets=[];steps=new Map;detail=null;generation=0;recheck=0;onLoad=()=>this.soon();onError=e=>{let t=e.target,n=this.targets.find(e=>e.el===t||e.kind===`img`&&e.sources.some(e=>e.el===t));n&&n.step&&(this.apply(n,0),n.step=0,n.failed=!0)};constructor(e,t){this.root=e,this.assetBase=t,e.addEventListener(`load`,this.onLoad,!0),e.addEventListener(`error`,this.onError,!0)}stepFor(e){return this.steps.get(e)}reset(){this.generation++,this.targets=[];let e=this.assetBase,t=t=>St(t,e),n=t=>{let n=0;for(let r of t)r&&(n=Math.max(n,Vt(r,e)));return n};for(let r of this.root.querySelectorAll(`*`)){let i=r.localName;if(i===`img`){let e=r,i=e.getAttribute(`src`)??void 0,a=e.getAttribute(`srcset`)??void 0,o=e.parentElement?.localName===`picture`?[...e.parentElement.children].filter(e=>e.localName===`source`&&e.hasAttribute(`srcset`)).map(e=>({el:e,srcset:e.getAttribute(`srcset`)})):[],s=n([i,...Yt(a),...o.flatMap(e=>Yt(e.srcset))]);s&&this.targets.push({kind:`img`,el:e,src:i&&t(i),srcset:a&&we(a,t),sources:o.map(e=>({el:e.el,srcset:we(e.srcset,t)})),step:s})}else if(i===`image`&&r instanceof SVGElement){let n=r.hasAttribute(`href`)?`href`:`xlink:href`,i=r.getAttribute(n)??``,a=Vt(i,e);a&&this.targets.push({kind:`svg`,el:r,attr:n,url:t(i),step:a})}else if(i===`style`){let e=r.textContent??``,i=n(Xt(e));if(i){let n=Se(e,t);this.targets.push({kind:`sheet`,el:r,text:n,urls:Xt(n),step:i})}}let a=r.getAttribute(`style`);if(a&&/url\(|image-set\(/i.test(a)){let e=n(Xt(a));if(e){let n=Se(a,t);this.targets.push({kind:`style`,el:r,style:n,urls:Xt(n),step:e})}}}let r=this.detail;r&&!r.moving&&!r.hidden&&this.soon()}update(e){let t=this.detail;this.detail=e,e.hidden||!this.targets.length?$t.delete(this):e.moving?($t.add(this),tn()):($t.delete(this),(!t||t.moving||t.hidden||t.scale!==e.scale)&&this.size(!1))}size(e){let t=Zt(),n=this.root.querySelector(`[data-artboard]`);if(!n||!Qt(n.getBoundingClientRect(),t))return;let r=window.devicePixelRatio||1,i=this.generation;for(let a of this.targets){if(!a.el.isConnected||a.failed)continue;let o=(a.kind===`sheet`?n:a.el).getBoundingClientRect();if(!(o.width>0&&o.height>0)||!Qt(o,t))continue;let s=this.need(a,o,r);if(s===null)continue;let c=Ht(s,a.step),l=this.originalWidth(a);if(l&&c>a.step&&a.step>=l*Ft||c===a.step||c===a.want||e&&c<a.step)continue;a.want=c;let u=this.urlsFor(a,c);Promise.all(u.map(e=>sn(e,St(e,this.assetBase)))).then(e=>{i===this.generation&&a.want===c&&(a.want=void 0,e.every(Boolean)&&!this.detail?.moving&&this.apply(a,c))})}}need(e,t,n){let r=t.width*n,i=t.height*n;if(e.kind===`img`){let a=e.el;if(!a.complete||!a.naturalWidth)return null;e.fit??=getComputedStyle(a).objectFit;let o=a.offsetWidth?t.width/a.offsetWidth:1;return Ut(r,i,a.naturalWidth,a.naturalHeight,e.fit,a.naturalWidth*o*n)}if(e.kind===`svg`){let t=Gt.get(e.url);return/slice/.test(e.el.getAttribute(`preserveAspectRatio`)??``)?t?Math.max(r,i*(t.w/t.h)):(this.learn(e),null):r}if(e.kind===`style`){let a=e.el;e.size??=getComputedStyle(a).backgroundSize||`auto`;let o=Gt.get(e.urls[0]??``),s=a.offsetWidth?t.width/a.offsetWidth:1,c=Wt(r,i,e.size,o&&o.w/o.h,o&&o.w*s*n,s*n);return Number.isFinite(c)?c:(o||this.learn(e),null)}return r}urlsFor(e,t){let n=n=>zt(n,this.assetBase,{tag:e.el.localName,attr:`src`},t);if(e.kind===`img`){let t=e.el.currentSrc,r=t?St(t,this.assetBase):e.src;return r?[n(r)]:[]}return e.kind===`svg`?[n(e.url)]:Jt(e.urls,this.assetBase,e.el.localName,t)}apply(e,t){e.step=t;for(let n of qt(e))this.steps.set(n,t);let n=this.assetBase,r=r=>i=>zt(i,n,{tag:e.el.localName,attr:r},t);if(e.kind===`img`){for(let t of e.sources)t.el.setAttribute(`srcset`,we(t.srcset,r(`srcset`)));e.srcset!==void 0&&e.el.setAttribute(`srcset`,we(e.srcset,r(`srcset`))),e.src!==void 0&&e.el.setAttribute(`src`,r(`src`)(e.src))}else e.kind===`svg`?e.el.setAttribute(e.attr,r(e.attr)(e.url)):e.kind===`style`?e.el.setAttribute(`style`,Se(e.style,r(`style`))):e.el.textContent=Se(e.text,r(`style`))}originalWidth(e){if(e.kind===`img`){let t=e.el.currentSrc?St(e.el.currentSrc,this.assetBase):e.src,n=t?Gt.get(t):void 0;return n?n.w:!e.srcset&&!e.sources.length&&e.el.naturalWidth||void 0}if(e.kind===`svg`)return Gt.get(e.url)?.w;if(e.kind===`style`)return Gt.get(e.urls[0]??``)?.w}async learn(e){let t=e.kind===`style`?e.urls[0]:e.kind===`svg`?e.url:void 0;!t||Gt.has(t)||rn.has(t)||(rn.add(t),await sn(zt(t,this.assetBase,{tag:e.el.localName,attr:`src`},e.step),t),this.soon())}soon(){this.recheck||=window.setTimeout(()=>{this.recheck=0;let e=this.detail;e&&!e.moving&&!e.hidden&&this.size(!1)},120)}dispose(){this.generation++,$t.delete(this),clearTimeout(this.recheck),this.root.removeEventListener(`load`,this.onLoad,!0),this.root.removeEventListener(`error`,this.onError,!0)}};function qt(e){return e.kind===`img`?[e.src,...Yt(e.srcset),...e.sources.flatMap(e=>Yt(e.srcset))].filter(e=>!!e):e.kind===`svg`?[e.url]:e.urls}function Jt(e,t,n,r){let i=[];for(let a of e){let e=zt(a,t,{tag:n,attr:`style`},r);e!==a&&i.push(e)}return i}function Yt(e){return e?Te(e).map(e=>e.url):[]}function Xt(e){let t=new Set;return Se(e,e=>(t.add(e),e)),[...t]}function Zt(){let e=window.innerWidth,t=window.innerHeight;return{x0:-e*Lt,y0:-t*Lt,x1:e*1.5,y1:t*1.5}}function Qt(e,t){return e.right>t.x0&&e.left<t.x1&&e.bottom>t.y0&&e.top<t.y1}var $t=new Set,en=0;function tn(){en||=window.setInterval(()=>{if(!$t.size)clearInterval(en),en=0;else for(let e of $t)e.size(!0)},200)}var nn=new Map,rn=new Set,an=0,on=[];function sn(e,t){let n=nn.get(e);return n||(n=(async()=>{an>=It&&await new Promise(e=>on.push(e)),an++;try{let n=new Image;return n.decoding=`async`,n.src=e,await n.decode(),n.naturalWidth&&Gt.set(t,{w:n.naturalWidth,h:n.naturalHeight}),!0}catch{return!1}finally{an--,on.shift()?.()}})(),nn.set(e,n),nn.size>4e3&&nn.delete(nn.keys().next().value),n)}var cn=new WeakMap;function ln(){let e=window;return e.__ponzuAct||Ge(We()),e.__ponzuAct}function un(e){dn(e);let t=e.querySelector(`[data-artboard]`);if(!t?.querySelector(`script[type="ponzu/act"]`))return;let n;try{n=ln().mount(t)}catch(e){console.warn(`ponzu: scene script failed`,e);return}if(!n)return;let r=n,i=()=>{if(typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches)for(let e of r.animations)e.currentTime=r.summary.poster,e.pause()};i();let a=0,o=!0,s=()=>{cancelAnimationFrame(a),a=requestAnimationFrame(()=>{if(o)try{r.rebuild(),i()}catch{}})},c=new WeakSet,l=e=>{e.target&&!c.has(e.target)&&(c.add(e.target),s())};document.fonts?.status===`loading`&&document.fonts.ready.then(s),t.addEventListener(`load`,l,!0),cn.set(e,{scene:r,stop:()=>{o=!1,cancelAnimationFrame(a),t.removeEventListener(`load`,l,!0),r.cancel()}})}function dn(e){cn.get(e)?.stop(),cn.delete(e)}function fn(e){return cn.get(e)?.scene.animations??[]}var pn=48,mn=8,hn=new Set([`transform`,`opacity`,`filter`,`rotate`,`scale`,`translate`,`backdropFilter`]),gn=new Set([`offset`,`easing`,`composite`,`computedOffset`]),_n=`http://www.w3.org/2000/svg`,vn=1200,yn=[`color`,`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`stroke-width`,`font-family`,`font-size`,`font-weight`,`font-style`],bn=`
|
|
2334
2334
|
[data-pz-field] > :not([data-pz-image]) { visibility: hidden !important; }
|
|
2335
2335
|
[data-pz-field] :not([data-pz-image]) { animation: none !important; transition: none !important; }
|
|
2336
2336
|
:not([data-pz-field]) > [data-pz-image] { display: none; }
|
package/studio/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<link rel="icon" href="/favicon.svg" />
|
|
8
8
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
9
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400..600&family=Funnel+Display:wght@700&family=IBM+Plex+Mono:wght@400;500&display=swap" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
+
<script type="module" crossorigin src="/assets/index-CrJfa9LL.js"></script>
|
|
11
11
|
<link rel="stylesheet" crossorigin href="/assets/index-BZh-aQhF.css">
|
|
12
12
|
</head>
|
|
13
13
|
<body>
|