@pixodesk/svg-animator-web 1.0.40 → 1.0.41
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/README.md +12 -4
- package/dist/{internal-BmFv1B6H.d.cts → PxAnimator-yjuSFhQw.d.cts} +8 -29
- package/dist/{internal-BmFv1B6H.d.ts → PxAnimator-yjuSFhQw.d.ts} +8 -29
- package/dist/{chunk-TNWZIIVG.js → chunk-BYDBNKO7.js} +1 -1
- package/dist/chunk-BYDBNKO7.js.map +1 -0
- package/dist/index.cjs +227 -230
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +222 -222
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.prerendered-waapi.umd.js +53 -53
- package/dist/index.prerendered-waapi.umd.js.map +1 -1
- package/dist/index.prerendered-waapi.umd.min.js +1 -1
- package/dist/index.prerendered.umd.js +68 -68
- package/dist/index.prerendered.umd.js.map +1 -1
- package/dist/index.prerendered.umd.min.js +1 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +24 -1
- package/dist/internal.d.ts +24 -1
- package/dist/internal.js +1 -1
- package/dist/internal.min.cjs +1 -1
- package/dist/pixodesk-svg-animator.umd.js +137 -137
- package/dist/pixodesk-svg-animator.umd.js.map +1 -1
- package/dist/pixodesk-svg-animator.umd.min.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-TNWZIIVG.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var PixodeskAnimator=(()=>{var t=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,c=(t,n)=>{for(var e in n||(n={}))l.call(n,e)&&u(t,e,n[e]);if(i)for(var e of i(n))s.call(n,e)&&u(t,e,n[e]);return t},a=(t,e)=>n(t,r(e)),f=(t,n)=>{var e={};for(var r in t)l.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&i)for(var r of i(t))n.indexOf(r)<0&&s.call(t,r)&&(e[r]=t[r]);return e},d={};function v(t){if(!t.length)return".";let n="";for(const e of t)e.startsWith("[")?n+=e:n+=(n?".":"")+e;return n}((n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})})(d,{PX_ANIMATOR_DOC_KEY:()=>Fe,createAnimator:()=>_e,setupAnimationTriggers:()=>we});var h=class{_canSanitize(t){return this.isValid(t)}optional(){return new m(this)}},m=class extends h{constructor(t){super(),this.inner=t,this._default=void 0}sanitize(t){if(null!=t)return this.inner._canSanitize(t)?this.inner.sanitize(t):void 0}isValid(t,n,e){return null==t||this.inner.isValid(t,n,e)}_canSanitize(t){return null==t||this.inner._canSanitize(t)}},p=class extends h{constructor(t=""){super(),this._default=t}sanitize(t){return"string"==typeof t?t:this._default}isValid(t,n,e){return"string"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected string, got "+typeof t),!1)}},y=class extends h{constructor(t=0){super(),this._default=t}sanitize(t){return"number"==typeof t&&isFinite(t)?t:this._default}isValid(t,n,e){return!("number"!=typeof t||!isFinite(t))||(null==n||n.errors.push(v(null!=e?e:[])+": expected finite number, got "+JSON.stringify(t)),!1)}},b=class extends h{constructor(t=!1){super(),this._default=t}sanitize(t){return"boolean"==typeof t?t:this._default}isValid(t,n,e){return"boolean"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected boolean, got "+typeof t),!1)}},g=class extends h{constructor(t){super(),this.value=t,this._default=t}sanitize(t){return t===this.value?this.value:this._default}isValid(t,n,e){return t===this.value||(null==n||n.errors.push(v(null!=e?e:[])+": expected "+JSON.stringify(this.value)+", got "+JSON.stringify(t)),!1)}},A=class extends h{constructor(t,n){super(),this.values=t,this._default=null!=n?n:t[0]}sanitize(t){return this.values.includes(t)?t:this._default}isValid(t,n,e){return!!this.values.includes(t)||(null==n||n.errors.push(v(null!=e?e:[])+": expected one of "+this.values.map(t=>JSON.stringify(t)).join(" | ")+", got "+JSON.stringify(t)),!1)}},w=class extends h{constructor(t,n){super(),this.l=t,this.h="union",this._default=null!=n?n:t[0]._default}sanitize(t){for(const n of this.l)if(n.isValid(t))return n.sanitize(t);return this._default}isValid(t,n,e){var r;const o=n&&{errors:[],warnings:[],strict:n.strict};if(this.l.some(n=>n.isValid(t,o,e?[...e]:void 0)))return!0;if(!n)return!1;const i=v(null!=e?e:[]);let l;n.errors.push(i+": no union member matched for value "+(null!=(r=JSON.stringify(t))?r:"").slice(0,240));let s=-1;const u=[];for(const r of this.l){const o={errors:[],warnings:[],strict:n.strict};if(r.isValid(t,o,e?[...e]:void 0),!o.errors.length)continue;const c=Math.max(...o.errors.map(t=>t.slice(0,t.indexOf(":")).length));if((c>s||c===s&&l&&o.errors.length<l.length)&&(s=c,l=o.errors),c<=i.length)for(const t of o.errors){const n=/: expected (.+?), got /.exec(t);n&&!u.includes(n[1])&&u.push(n[1])}}if(l&&s>i.length)for(const t of l.slice(0,4))n.errors.includes(t)||n.errors.push(t);else u.length&&n.errors.push(i+": expected "+u.join(" | "));return!1}_canSanitize(t){return this.l.some(n=>n._canSanitize(t))}},j=class extends h{constructor(t){super(),this._shape=t;const n={};for(const e of Object.keys(t))n[e]=t[e]._default;this._default=n}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e={};for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(null==n?void 0:n.strict)for(const t of Object.keys(r))t in this._shape||void 0!==r[t]&&(o.push(t),n.errors.push(v(o)+": unexpected extra key"),o.pop(),i=!1);return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},x=class extends h{constructor(t,n){super(),this._shape=t,this.m=n;const e={};for(const n of Object.keys(t))e[n]=t[n]._default;this._default=e}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e=c({},n);for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}if(this.m)for(const t of Object.keys(n))t in this._shape||(e[t]=this.m.sanitize(n[t]));return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(this.m)for(const t of Object.keys(r))t in this._shape||(o.push(t),this.m.isValid(r[t],n,o)||(i=!1),o.pop());return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},M=class extends h{constructor(t){super(),this.item=t,this._default=[]}sanitize(t){if(!Array.isArray(t))return[];const n=[];for(const e of t)this.item._canSanitize(e)&&n.push(this.item.sanitize(e));return n}isValid(t,n,e){if(!Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected array, got "+typeof t),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<t.length;e++)r.push("["+e+"]"),this.item.isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)}},k=class extends h{constructor(t){super(),this.value=t,this.h="record",this._default={}}sanitize(t){if(!t||"object"!=typeof t||Array.isArray(t))return{};const n={};for(const[e,r]of Object.entries(t))this.value._canSanitize(r)&&(n[e]=this.value.sanitize(r));return n}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object/record, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(const[e,i]of Object.entries(t))r.push(e),this.value.isValid(i,n,r)||(o=!1),r.pop();return o}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},O=class extends h{constructor(t,n){super(),this.fn=t,this._default=n,this.resolved=null}get schema(){var t;return null!=(t=this.resolved)?t:this.resolved=this.fn()}sanitize(t){return this.schema.sanitize(t)}isValid(t,n,e){return this.schema.isValid(t,n,e)}_canSanitize(t){return this.schema._canSanitize(t)}},z=class extends h{constructor(t){super(),this.l=t,this.h="tuple",this._default=t.map(t=>t._default)}sanitize(t){return Array.isArray(t)&&t.length===this.l.length?this.l.map((n,e)=>n.sanitize(t[e])):this._default}isValid(t,n,e){if(!Array.isArray(t)||t.length!==this.l.length)return null==n||n.errors.push(v(null!=e?e:[])+": expected tuple of length "+this.l.length+", got "+(Array.isArray(t)?"array["+t.length+"]":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<this.l.length;e++)r.push("["+e+"]"),this.l[e].isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)&&t.length===this.l.length}},S=(t="")=>new p(t),P=(t=0)=>new y(t),N=(t=!1)=>new b(t),C=t=>new g(t),T=(t,n)=>new A(t,n),V=(t,n)=>new w(t,n),R=t=>new j(t),U=(t,n)=>new x(t,n),_=t=>new M(t),E=t=>new k(t),F=t=>new z(t),I=(t,n)=>new O(t,n),D="block",W="inline",L="nearest",Z="root",q="center",B="bottom",G=["duration","iterations","engine","frameRate","trigger","delay","fillMode","direction","fill","resetOnFinish","timelineSource","scroll"],J={native:"native",js:"js"},K=a(c({},J),{auto:"auto"});function X(t){return t===K.native}var Y={startOn:"load",outAction:"continue",scrollIntoViewThreshold:0},H={start:"start",end:"end"},$={normal:"normal",alternate:"alternate"},Q="userSpaceOnUse",tt="objectBoundingBox",nt="transform";function et(t){var n;const e=(null==t?void 0:t.animator)||(null==(n=null==t?void 0:t.meta)?void 0:n.animator);if(!e)return;const r=ot.get(e);if(r)return r;const o=e,i=G.filter(t=>void 0!==o[t]),l=i.length?c({},o):e;for(const t of i)delete l[t];const s=function(t){const n=t.timeline;if(null==n||"object"!=typeof n)return t;const e=it.get(t);if(e)return e;const r=t,{timeline:o}=r,i=f(r,["timeline"]);if(void 0!==n.engine&&(i.engine=n.engine),void 0!==n.frameRate&&(i.frameRate=n.frameRate),"scroll"===n.type||"view"===n.type){i.timelineSource="scroll",void 0!==n.duration&&(i.duration=n.duration),void 0!==n.iterations&&(i.iterations=n.iterations);const t=c({},i.scroll||{});t.kind=n.type,void 0!==n.axis&&(t.axis=n.axis),void 0!==n.source&&(t.source=n.source),void 0!==n.subject&&(t.subject=n.subject),void 0!==n.smoothing&&(t.smoothing=n.smoothing),void 0!==n.range&&(t.range=n.range);const e=n.pin;"boolean"==typeof e?t.pin=e:e&&"object"==typeof e&&(t.pin=!0,void 0!==e.align&&(t.pinAlign=e.align),void 0!==e.offset&&(t.pinOffset=e.offset),void 0!==e.distance&&(t.pinDistance=e.distance)),i.scroll=t}else{if(void 0!==n.duration&&(i.duration=n.duration),void 0!==n.trigger){const t=n.trigger,{finishAction:e}=t,r=f(t,["finishAction"]);Object.keys(r).length&&(i.trigger=r),void 0!==e&&(i.resetOnFinish="reset"===e)}void 0!==n.delay&&(i.delay=n.delay),void 0!==n.iterations&&(i.iterations=n.iterations),void 0!==n.direction&&(i.direction=n.direction),void 0!==n.fillMode&&(i.fill=n.fillMode)}return it.set(t,i),i}(l);return ot.set(e,s),s}var rt,ot=new WeakMap,it=new WeakMap,lt=V([S(),F([P(),P(),P(),P()])]),st=V([S(),P(),_(P()),R({pathData:S()}),I(()=>_(Zt),[]),I(()=>pt,{})]),ut=R({time:P().optional(),value:st.optional(),easing:lt.optional(),tangentOut:F([P(),P()]).optional(),tangentIn:F([P(),P()]).optional()}),ct=t=>{var n,e;return null!=(e=null!=(n=t.time)?n:t.t)?e:0},at=t=>{var n;return null!=(n=t.value)?n:t.v},ft=t=>{var n;return null!=(n=t.easing)?n:t.e},dt=t=>t.tangentIn,vt=t=>t.tangentOut,ht=R({segmentCount:P().optional(),repeatAt:T([H.start,H.end]).optional(),direction:T([$.normal,$.alternate]).optional()}),mt=R({value:st.optional(),keyframes:_(ut).optional(),loop:V([ht,N()]).optional(),autoOrient:N().optional(),alongPathMode:T(["sampled","offsetPath"]).optional()}),pt=R({translate:F([P(),P()]).optional(),rotate:P().optional(),skew:P().optional(),scale:F([P(),P()]).optional(),origin:F([P(),P()]).optional()}),yt=(V([S(),pt,R({value:pt}),mt]),E(mt)),bt=V([S(),_(V([S(),yt])),yt]),gt=R({startOn:T(["load","mouseOver","click","scrollIntoView","programmatic"],Y.startOn).optional(),outAction:T(["continue","pause","reset","reverse"],Y.outAction).optional(),finishAction:T(["hold","reset"]).optional(),scrollIntoViewThreshold:P().optional()}),At=R({width:P(),pathData:S()}),wt=R({fontFamily:S(),fontStyle:S(),ascent:P(),unitsPerEm:P(),glyphs:E(At)}),jt=R({easings:E(F([P(),P(),P(),P()])).optional(),animations:E(yt).optional(),fonts:E(wt).optional()}),xt=R({phase:T(["cover","contain","entry","exit","entry-crossing","exit-crossing"]).optional(),fraction:P().optional()}),Mt=R({start:xt.optional(),end:xt.optional()}),kt=(R({kind:T(["view","scroll"]).optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:N().optional(),pinAlign:T(["top",q,B]).optional(),pinOffset:P().optional(),pinDistance:P().optional(),range:Mt.optional()}),R({align:T(["top",q,B]).optional(),offset:P().optional(),distance:P().optional()})),Ot=T([K.auto,K.native,K.js]).optional(),zt=R({type:C("time").optional(),engine:Ot,frameRate:P().optional(),duration:P().optional(),trigger:gt.optional(),delay:P().optional(),iterations:V([P(),C("infinite")]).optional(),fillMode:T(["forwards","backwards","both","none"]).optional(),direction:T(["normal","reverse","alternate","alternate-reverse"]).optional()}),St={duration:P().optional(),iterations:P().optional(),engine:Ot,frameRate:P().optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:V([N(),kt]).optional(),range:Mt.optional()},Pt=(rt=[zt,R(c({type:C("scroll")},St)),R(c({type:C("view")},St))],new class extends h{constructor(t,n,e){var r;super(),this.A=t,this.j=n,this.h="discriminatedUnion",this._default=null!=e?e:n[0]._default,this.M=new Map;for(const e of n){const n=e._shape[t];if(!n)continue;const o=null!=(r=n.inner)?r:n;this.M.set(o._default,e),n.inner&&(this.O=e)}}S(t){if(null===t||"object"!=typeof t||Array.isArray(t))return;const n=t[this.A];return null==n?this.O:this.M.get(n)}sanitize(t){var n;return(null!=(n=this.S(t))?n:this.j[0]).sanitize(t)}isValid(t,n,e){const r=this.S(t);if(!r){const r=null===t||"object"!=typeof t||Array.isArray(t)?void 0:t[this.A];return null==n||n.errors.push(v(null!=e?e:[])+": no discriminated union member matched "+this.A+"="+JSON.stringify(r)),!1}return r.isValid(t,n,e)}_canSanitize(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const n=this.S(t);return n?n._canSanitize(t):this.j[0]._canSanitize(t)}}("type",rt)),Nt=R({target:S(),animateWith:_(S())}),Ct=R({timeline:Pt.optional(),definitions:jt.optional(),bindings:_(Nt).optional(),debugGlobalName:S().optional(),version:S().optional()}),Tt=V([S(),P(),_(P()),R({value:new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return void 0!==t||(null==n||n.errors.push(v(null!=e?e:[])+": required value is missing"),!1)}_canSanitize(t){return void 0!==t}}}),pt]),Vt=V([P(),mt,R({value:P()})]),Rt=V([F([P(),P()]),mt,R({value:F([P(),P()])})]),Ut=V([S(),mt,R({value:S()})]),_t=R({translate:Rt.optional(),rotate:Vt.optional(),scale:Rt.optional(),skew:Vt.optional(),origin:Rt.optional()}),Et=R({copies:P().optional(),translate:Rt.optional(),rotate:Vt.optional(),skew:Vt.optional(),scale:Rt.optional(),origin:Rt.optional()}),Ft=R({source:S().optional(),maskType:T(["luminance","alpha"]).optional(),maskUnits:T([Q,tt]).optional(),maskContentUnits:T([Q,tt]).optional(),x:P().optional(),y:P().optional(),width:P().optional(),height:P().optional()}),It=R({pathData:Ut.optional()}),Dt=R({offset:Vt.optional(),range:Rt.optional(),subPaths:T(["separate","combined"]).optional()}),Wt=R({start:P().optional(),stretch:P().optional(),timeCrop:F([P(),P()]).optional()}),Lt=R({without:T(["translate"]).optional(),source:S().optional(),retime:Wt.optional()}),Zt=R({offset:P(),color:S()}),qt=V([_(Zt),R({value:_(Zt)}),mt]),Bt=R({type:T(["linear","radial"]),start:Rt.optional(),end:Rt.optional(),center:Rt.optional(),radius:Vt.optional(),focal:Rt.optional(),stops:qt.optional(),gradientUnits:T([Q,tt]).optional(),spreadMethod:T(["pad","reflect","repeat"]).optional(),gradientTransform:S().optional()}),Gt=Bt,Jt=R({pathData:S(),pathOverflow:T(["clip","extend"]).optional(),lengthAdjust:T(["spacing","spacingAndGlyphs"]).optional(),method:T(["align","stretch"]).optional(),spacing:T(["auto","exact"]).optional(),startOffset:Vt.optional(),textLength:Vt.optional()}),Kt=R({useGlyphs:N().optional()}),Xt=R({transformBy:_t.optional(),repeater:Et.optional(),maskedBy:Ft.optional(),clipPath:It.optional(),strokeTrim:Dt.optional(),clone:Lt.optional(),fillGradient:Bt.optional(),strokeGradient:Gt.optional(),textPath:Jt.optional(),text:Kt.optional()}),Yt=U({type:S(),domType:S().optional(),textContent:S().optional(),id:S().optional(),meta:(new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return!0}_canSanitize(t){return!0}}).optional(),effects:Xt.optional(),animate:bt.optional(),style:E(V([S(),P()])).optional()},Tt),Ht=U(a(c({},Yt._shape),{children:I(()=>_(Ht),[]).optional()}),Tt),$t=R({width:V([P(),S()]).optional(),height:V([P(),S()]).optional(),viewBox:S().optional(),animator:Ct.optional()});function Qt(t,n=!1){var e,r,o,i;const l=t.v,s=t.i,u=t.o,c=t.c;if(!l.length)return"";const a=[],f=l.length;a.push("M"+l[0][0]+","+l[0][1]);for(let t=1;t<f;t++){const o=l[t-1],i=null!=(e=null==u?void 0:u[t-1])?e:o,c=null!=(r=null==s?void 0:s[t])?r:l[t],f=l[t];n||i[0]!==o[0]||i[1]!==o[1]||c[0]!==f[0]||c[1]!==f[1]?a.push("C"+i[0]+","+i[1]+","+c[0]+","+c[1]+","+f[0]+","+f[1]):a.push("L"+f[0]+","+f[1])}if(c&&f>0){const t=l[f-1],e=null!=(o=null==u?void 0:u[f-1])?o:t,r=null!=(i=null==s?void 0:s[0])?i:l[0],c=l[0];!n&&e[0]===t[0]&&e[1]===t[1]&&r[0]===c[0]&&r[1]===c[1]||a.push("C"+e[0]+","+e[1]+","+r[0]+","+r[1]+","+c[0]+","+c[1]),a.push("z")}return a.join("")}function tn(t,n,e){return t+(n-t)*e}function nn(t,n,e){const r=[],o=Math.max(t.length,n.length);for(let i=0;i<o;i++)r[i]=tn(t[i]||0,n[i]||0,e);return r}function en(t,n,e){return[tn(t[0]||0,n[0]||0,e),tn(t[1]||0,n[1]||0,e),tn(t[2]||0,n[2]||0,e),tn(void 0===t[3]?1:t[3],void 0===n[3]?1:n[3],e)]}function rn(t,n,e){const r=Math.max(t.length,n.length),o=[];for(let i=0;i<r;i++)o.push(on(t[i],n[i],e));return o}function on(t,n,e){var r,o,i,l,s,u,c,a,f;if(!t||!n)return t||n||{v:[]};const d=Math.min(Math.max(e,0),1),v=Math.min(t.v.length,n.v.length),h=[],m=[],p=[];for(let e=0;e<v;e++){const f=t.v[e],v=n.v[e];h.push(nn(f,v,d));const y=null!=(o=null==(r=t.i)?void 0:r[e])?o:f,b=null!=(l=null==(i=n.i)?void 0:i[e])?l:v;m.push(nn(y,b,d));const g=null!=(u=null==(s=t.o)?void 0:s[e])?u:f,A=null!=(a=null==(c=n.o)?void 0:c[e])?a:v;p.push(nn(g,A,d))}return{v:h,i:m.length?m:void 0,o:p.length?p:void 0,c:null!=(f=t.c)?f:n.c}}function ln(t,n,e){if(e<=0)return 0;if(e>=1)return 1;const r=3*t,o=3*(n-t)-r,i=1-r-o;function l(t){return((i*t+o)*t+r)*t}function s(t){return(3*i*t+2*o)*t+r}let u=e,c=0,a=1;for(let t=0;t<8;t++){const t=l(u)-e;if(Math.abs(t)<1e-6)return u;const n=s(u);if(Math.abs(n)<1e-6)break;u-=t/n}for(u=e;c<a;){const t=l(u);if(Math.abs(t-e)<1e-6)return u;e>t?c=u:a=u,u=(a+c)/2}return u}function sn(t){const[n,e,r,o]=t,i=3*e,l=3*(o-e)-i,s=1-i-l;return function(t){return e=ln(n,r,t),((s*e+l)*e+i)*e;var e}}function un(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function cn(t,n){if(!t)return{left:void 0,right:void 0};if(n<=0)return{left:void 0,right:t};if(n>=1)return{left:t,right:void 0};const[e,r,o,i]=t,l=ln(e,o,n),s=[e,r],u=[o,i],{left:c,right:a}=function(t,n,e,r,o){const i=un(t,n,o),l=un(n,e,o),s=un(e,r,o),u=un(i,l,o),c=un(l,s,o),a=un(u,c,o);return{left:[t,i,u,a],right:[a,c,s,r]}}([0,0],s,u,[1,1],l),f=c[3][0],d=c[3][1];let v,h;f>1e-9&&Math.abs(d)>1e-9&&(v=[c[1][0]/f,c[1][1]/d,c[2][0]/f,c[2][1]/d]);const m=1-f,p=1-d;return m>1e-9&&Math.abs(p)>1e-9&&(h=[(a[1][0]-f)/m,(a[1][1]-d)/p,(a[2][0]-f)/m,(a[2][1]-d)/p]),{left:v,right:h}}function an(t){if(t)return[1-t[2],1-t[3],1-t[0],1-t[1]]}function fn(t){const n=Math.round(255*t[0]),e=Math.round(255*t[1]),r=Math.round(255*t[2]);return 4===t.length?"rgba("+n+","+e+","+r+","+t[3]+")":"rgb("+n+","+e+","+r+")"}function dn(t){if(t){if(Array.isArray(t))return t;if("string"==typeof t)return t.startsWith("#")?function(t){const n=t.slice(1),e=n.length<=4,r=e?n[0]+n[0]:n.slice(0,2),o=e?n[1]+n[1]:n.slice(2,4),i=e?n[2]+n[2]:n.slice(4,6),l=4===n.length?n[3]+n[3]:8===n.length?n.slice(6,8):null,s=[parseInt(r,16)/255,parseInt(o,16)/255,parseInt(i,16)/255];return null!==l&&s.push(parseInt(l,16)/255),s}(t):t.startsWith("rgb")?function(t){var n;const e=null==(n=t.match(/rgba?\((.*)\)/))?void 0:n[1];if(!e)throw new Error("Invalid rgb/rgba format");const r=e.split(",").map(t=>+t.trim());return[r[0]/255,r[1]/255,r[2]/255,...void 0!==r[3]?[r[3]]:[]]}(t):void console.warn("Unsupported color format: "+t)}}U(a(c(c({},Yt._shape),$t._shape),{type:C("svg"),children:_(Ht).optional()}),Tt),R({v:_(_(P())),i:_(_(P())).optional(),o:_(_(P())).optional(),c:N().optional()});var vn=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),hn=new Set(["translate","rotate","scale","skew"]),mn=new Set(["offset-distance","offsetDistance"]);function pn(t,n){var e;if(!t)return"";const r=null==(e=null==n?void 0:n.P)||e,o=[],i=t.translate,l=t.origin,s=t.rotate,u=t.skew,c=t.scale,a=r?"px":"",f=r?"deg":"";return i&&o.push("translate("+i[0]+a+","+i[1]+a+")"),l&&o.push("translate("+l[0]+a+","+l[1]+a+")"),null!=s&&o.push("rotate("+s+f+")"),null!=u&&o.push("skewX("+u+f+")"),c&&o.push("scale("+c[0]+","+c[1]+")"),l&&o.push("translate("+-l[0]+a+","+-l[1]+a+")"),o.join("")}var yn=new Set(["offset-distance","offsetDistance"]),bn=1e3;function gn(t){return!t.includes("-")&&/[a-z][A-Z]/.test(t)}var An=new Set(["viewBox","preserveAspectRatio","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","clipPathUnits","maskUnits","maskContentUnits","markerUnits","markerWidth","markerHeight","refX","refY","textLength","lengthAdjust","startOffset","filterUnits","primitiveUnits","tableValues","stdDeviation","baseFrequency","numOctaves","surfaceScale","diffuseConstant","specularConstant","specularExponent","kernelMatrix","kernelUnitLength","edgeMode","preserveAlpha","targetX","targetY"]);function wn(t){return An.has(t)?t:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function jn(t,n,e){return Math.max(n,Math.min(t,e))}function xn(t,n,e,r,o){if(o<=0)return[t[0],t[1]];if(o>=1)return[r[0],r[1]];const i=1-o,l=i*i,s=o*o,u=l*i,c=3*o*l,a=3*s*i,f=s*o;return[u*t[0]+c*n[0]+a*e[0]+f*r[0],u*t[1]+c*n[1]+a*e[1]+f*r[1]]}var Mn=1e-4;function kn(t,n,e,r,o){const i=On(t,n,e,r,o);return 0===i[0]&&0===i[1]?On(t,n,e,r,o<.5?o+Mn:o-Mn):i}function On(t,n,e,r,o){const i=1-o,l=3*i*i,s=6*o*i,u=3*o*o;return[l*(n[0]-t[0])+s*(e[0]-n[0])+u*(r[0]-e[0]),l*(n[1]-t[1])+s*(e[1]-n[1])+u*(r[1]-e[1])]}function zn(t,n){const{ts:e,ds:r}=t,o=e.length-1;if(n<=e[0])return r[0];if(n>=e[o])return r[o];let i=1,l=o;for(;i<l;){const t=i+l>>>1;e[t]<n?i=t+1:l=t}const s=e[l-1],u=e[l]-s,c=u>0?(n-s)/u:0;return r[l-1]+c*(r[l]-r[l-1])}function Sn(t){const n=at(t);if(!n)return;if(Array.isArray(n)&&n.length>=2&&"number"==typeof n[0]&&"number"==typeof n[1])return[n[0],n[1]];const e=n.translate;return Array.isArray(e)&&e.length>=2?[e[0],e[1]]:void 0}function Pn(t){return ct(t)}function Nn(t){return ft(t)}function Cn(t){const n=t.keyframes;if(!Array.isArray(n))return!1;if(t.autoOrient)return!0;for(const t of n)if(dt(t)||vt(t))return!0;return!1}var Tn=new WeakMap;function Vn(t,n,e,r){let o=Tn.get(t);const i=null==o?void 0:o.get(n);if(i)return i;const l=vt(t),s=dt(n),u=[e[0]+(l?l[0]:0),e[1]+(l?l[1]:0)],c=[r[0]+(s?s[0]:0),r[1]+(s?s[1]:0)],a=function(t,n,e,r,o=100){const i=o+1,l=new Float64Array(i),s=new Float64Array(i);let u=xn(t,n,e,r,0);l[0]=0,s[0]=0;let c=0;for(let a=1;a<i;a++){const i=a/o,f=xn(t,n,e,r,i),d=f[0]-u[0],v=f[1]-u[1];c+=Math.sqrt(d*d+v*v),l[a]=i,s[a]=c,u=f}return{ts:l,ds:s}}(e,u,c,r),f={P0:e,P1:u,P2:c,P3:r,N:a,C:a.ds[a.ds.length-1]};return o||(o=new WeakMap,Tn.set(t,o)),o.set(n,f),f}var Rn=.5,Un=5,_n=32;function En(t,n){var e,r,o;if(!Cn(t))return t;const i=t.keyframes;if(!Array.isArray(i)||i.length<2)return t;const l=!!t.autoOrient,s=null!=(e=null==n?void 0:n.flatnessTolerance)?e:Rn,u=null!=(r=null==n?void 0:n.rotationTolerance)?r:Un,c=null!=(o=null==n?void 0:n.maxSamplesPerSegment)?o:_n,a=[],f=Sn(i[0]);if(!f)return t;const d=l?function(t,n){const e=Sn(t),r=Sn(n);if(!e||!r)return 0;const o=Vn(t,n,e,r),i=kn(o.P0,o.P1,o.P2,o.P3,0);return 180*Math.atan2(i[1],i[0])/Math.PI}(i[0],i[1]):void 0;a.push(Fn(Pn(i[0]),Wn(In(i[0]),In(i[0]),0,f,d,l)));for(let t=0;t<i.length-1;t++){const n=i[t],e=i[t+1],r=Sn(n),o=Sn(e);r&&o?(l&&t>0&&Zn(a,n,e,r,o,u),Bn(a,n,e,r,o,l,s,u,c)):a.push(Fn(Pn(e),Wn(In(e),In(e),1,null!=o?o:[0,0],void 0,l)))}const v=Nn(i[i.length-1]);v&&(a[a.length-1].e=v),l&&function(t){let n;for(const e of t){const t=at(e);if(!t||"number"!=typeof t.rotate)continue;if(void 0===n){n=t.rotate;continue}let r=t.rotate;for(;r-n>180;)r-=360;for(;r-n<-180;)r+=360;t.rotate=r,n=r}}(a);const h={keyframes:a};return void 0!==t.loop&&(h.loop=t.loop),h}function Fn(t,n){return{t:t,v:n}}function In(t){const n=at(t);if(n&&"object"==typeof n&&!Array.isArray(n))return n}function Dn(t,n,e){if(void 0===t)return n;if(void 0===n)return t;if("number"==typeof t&&"number"==typeof n)return t+(n-t)*e;if(Array.isArray(t)&&Array.isArray(n)&&t.length===n.length){const r=new Array(t.length);for(let o=0;o<t.length;o++){const i="number"==typeof t[o]?t[o]:0,l="number"==typeof n[o]?n[o]:0;r[o]=i+(l-i)*e}return r}return e<.5?t:n}function Wn(t,n,e,r,o,i){const l={translate:r},s=new Set;if(t)for(const n of Object.keys(t))s.add(n);if(n)for(const t of Object.keys(n))s.add(t);for(const r of s){if("translate"===r)continue;if("rotate"===r&&i)continue;const o=null==t?void 0:t[r],s=null==n?void 0:n[r];void 0===o&&void 0===s||(l[r]=Dn(o,s,e))}return void 0!==o&&(l.rotate=o+Ln(t,n,e)),l}function Ln(t,n,e){const r="number"==typeof(null==t?void 0:t.rotate)?t.rotate:void 0,o="number"==typeof(null==n?void 0:n.rotate)?n.rotate:void 0;if(void 0===r&&void 0===o)return 0;const i=Dn(r,o,e);return"number"==typeof i?i:0}function Zn(t,n,e,r,o,i){const l=t[t.length-1],s=at(l),u=null==s?void 0:s.rotate;if("number"!=typeof u)return;const c=In(n),a=u-Ln(c,c,0),f=Vn(n,e,r,o),d=kn(f.P0,f.P1,f.P2,f.P3,0),v=180*Math.atan2(d[1],d[0])/Math.PI,h=function(t,n){let e=t-n;for(;e>180;)e-=360;for(;e<-180;)e+=360;return e}(v,a);if(Math.abs(h)<=i)return;const m=Pn(n),p=Math.min(m+qn,(m+Pn(e))/2),y=Wn(In(n),In(n),0,r,v,!0);t.push(Fn(p,y))}var qn=.05;function Bn(t,n,e,r,o,i,l,s,u){const c=Vn(n,e,r,o),a=Pn(n),f=Pn(e),d=Nn(n),v=(h=d)?sn([h[1],h[0],h[3],h[2]]):t=>t;var h;const m=In(n),p=In(e),y=function(t,n,e,r,o){const i=[];Gn(t.P0[0],t.P1[0],t.P2[0],t.P3[0],i),Gn(t.P0[1],t.P1[1],t.P2[1],t.P3[1],i),i.sort((t,n)=>t-n);const l=[0];for(const t of i)t>l[l.length-1]+1e-6&&t<.999999&&l.push(t);l.push(1);const s=[],u={T:o-l.length};for(let o=0;o<l.length-1;o++)Jn(l[o],l[o+1],s,t,n,e,r,u);return s}(c,i,l,s,u),b=[];for(const t of y){const n=zn(c.N,t),e=jn(c.C>0?n/c.C:t,0,1),r={u:jn(v(e),0,1),p:e,V:xn(c.P0,c.P1,c.P2,c.P3,t)};if(i){const n=kn(c.P0,c.P1,c.P2,c.P3,t);r.rotateDeg=180*Math.atan2(n[1],n[0])/Math.PI}b.push(r)}let g=d,A=0;const w=t.length-1;for(let n=0;n<b.length;n++){const e=b[n],r=A<1?jn((e.u-A)/(1-A),0,1):1,{left:o,right:l}=cn(g,r),s=0===n?w:t.length-1;o?t[s].e=o:delete t[s].e;const u=a+e.u*(f-a),c=Wn(m,p,e.p,e.V,e.rotateDeg,i);t.push(Fn(u,c)),g=l,A=e.u}}function Gn(t,n,e,r,o){const i=n-t,l=e-n,s=i-2*l+(r-e),u=2*(l-i),c=i;if(Math.abs(s)<1e-10){if(Math.abs(u)>1e-10){const t=-c/u;t>1e-6&&t<.999999&&o.push(t)}return}const a=u*u-4*s*c;if(a<0)return;const f=Math.sqrt(a),d=(-u-f)/(2*s),v=(-u+f)/(2*s);d>1e-6&&d<.999999&&o.push(d),v>1e-6&&v<.999999&&o.push(v)}function Jn(t,n,e,r,o,i,l,s){const u=(t+n)/2,c=xn(r.P0,r.P1,r.P2,r.P3,t),a=xn(r.P0,r.P1,r.P2,r.P3,n),f=n-t,d=xn(r.P0,r.P1,r.P2,r.P3,t+.25*f),v=xn(r.P0,r.P1,r.P2,r.P3,u),h=xn(r.P0,r.P1,r.P2,r.P3,t+.75*f),m=Math.max(Kn(d,c,a),Kn(v,c,a),Kn(h,c,a));let p=!0;if(o){const e=kn(r.P0,r.P1,r.P2,r.P3,t),o=kn(r.P0,r.P1,r.P2,r.P3,n),i=180*Math.atan2(e[1],e[0])/Math.PI,s=180*Math.atan2(o[1],o[0])/Math.PI;let u=Math.abs(i-s);u>180&&(u=360-u),u>l&&(p=!1)}m<=i&&p||s.T<=0||f<1e-6?e.push(n):(s.T-=1,Jn(t,u,e,r,o,i,l,s),Jn(u,n,e,r,o,i,l,s))}function Kn(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=r*r+o*o;if(i<1e-20){const e=t[0]-n[0],r=t[1]-n[1];return Math.sqrt(e*e+r*r)}const l=(t[0]-n[0])*o-(t[1]-n[1])*r;return Math.abs(l)/Math.sqrt(i)}var Xn=1;function Yn(t,n){if(t===n)return!0;if(typeof t!=typeof n||null===t||null===n||"object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;const e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(e=>Yn(t[e],n[e]))}function Hn(t){const n=[];let e;const r=function(t){const n=t.split(/([MLCZmlcz]|[\s,]+)/).map(t=>t.trim()).filter(t=>t&&","!==t),e=[];let r=null;for(const t of n)if(/[MLCZmlcz]/.test(t))r={type:t,values:[]},e.push(r);else if(r){const n=+t;r.values.push(Number.isNaN(n)?0:n)}return e}(t);for(const t of r){const r=t.type,o=t.values;if("M"===r||"m"===r){const t=o[0]||0,r=o[1]||0;e={v:[[t,r]],i:[[t,r]],o:[[t,r]],c:!1},n.push(e);continue}if(e||(e={v:[[0,0]],i:[[0,0]],o:[[0,0]],c:!1},n.push(e)),"L"===r){const t=o[0]||0,n=o[1]||0;e.v.push([t,n]),e.i.push([t,n]),e.o.push([t,n])}else if("C"===r){const t=o[0]||0,n=o[1]||0,r=o[2]||0,i=o[3]||0,l=o[4]||0,s=o[5]||0;e.o[e.o.length-1]=[t,n],e.v.push([l,s]),e.i.push([r,i]),e.o.push([l,s])}else"Z"===r||"z"===r?e.c=!0:console.warn('Unsupported path command "'+r+'"')}return n}function $n(t){return t.startsWith("path(")&&t.endsWith(")")?t.slice(5,-1):/^[MmZzLlHhVvCcSsQqTtAa]/.test(t)?t:void 0}function Qn(t){return"string"==typeof t&&void 0!==$n(t)}function te(t){if(t&&"object"==typeof t&&"string"==typeof t.pathData){const n=$n(t.pathData);return n?{paths:Hn(n)}:t}if(t&&"object"==typeof t&&"paths"in t){const n=t.paths;if(Array.isArray(n)&&n.length>0&&Qn(n[0])){const t=[];for(const e of n){const n=$n(e);n&&t.push(...Hn(n))}return{paths:t}}return t}if(Array.isArray(t)){if(t.length>0&&Qn(t[0])){const n=[];for(const e of t){const t=$n(e);t&&n.push(...Hn(t))}return{paths:n}}return{paths:t}}return Qn(t)?{paths:Hn($n(t))}:t}function ne(t,n){var e;if(t)return Array.isArray(t)?t:(null==(e=null==n?void 0:n.easings)?void 0:e[t])?n.easings[t]:void console.warn("Unknown easing name: "+t)}function ee(t,n){var e;if("string"==typeof t){const r=null==(e=null==n?void 0:n.animations)?void 0:e[t];return r||console.warn("Unknown animation name: "+t),r}return t}function re(t,n,e,r){var o,i;return"d"===t?{paths:rn(null!=(o=null==n?void 0:n.paths)?o:Array.isArray(n)?n:[],null!=(i=null==e?void 0:e.paths)?i:Array.isArray(e)?e:[],r)}:vn.has(t)?en(n||[0,0,0,1],e||[0,0,0,1],r):"transform"!==t||"object"!=typeof n||null===n||Array.isArray(n)||"object"!=typeof e||null===e||Array.isArray(e)?"rotate"===t&&"number"==typeof n&&"number"==typeof e?tn(n,e,r):hn.has(t)||"stroke-dasharray"===t||"strokeDasharray"===t?nn(n||[],e||[],r):tn(+(n||0),+(e||0),r):function(t,n,e){const r=new Set([...Object.keys(null!=t?t:{}),...Object.keys(null!=n?n:{})]),o={};for(const i of r){const r=null==t?void 0:t[i],l=null==n?void 0:n[i];if("rotate"===i||"skew"===i)o[i]=tn(+(null!=r?r:0),+(null!=l?l:0),e);else if("translate"===i||"scale"===i||"origin"===i){const t="scale"===i?[1,1]:[0,0];o[i]=nn(r||t,l||t,e)}else o[i]=null!=l?l:r}return o}(n,e,r)}function oe(t,n,e,r){var o;const i=n.keyframes||[],l=[];for(const n of i){const e=ct(n);let i=at(n);const s=ft(n);"d"===t&&(i=te(i));const u=gn(t)?wn(t):t;vn.has(u)&&(i=null!=(o=dn(i))?o:i);const c={t:e,v:i,e:ne(s,r)},a=dt(n),f=vt(n);a&&(c.tangentIn=a),f&&(c.tangentOut=f),l.push(c)}l.sort((t,n)=>{var e,r;return(null!=(e=t.t)?e:0)-(null!=(r=n.t)?r:0)});const s=n.loop,u=!0===s?{}:s||void 0;return u&&l.length>=2?function(t,n,e,r){var o,i,l,s,u;const f=n.length-1,d=jn(null!=(o=e.segmentCount)?o:f,1,f);let v;v=e.repeatAt===H.start?n.slice(0,d+1):n.slice(f-d);const h=null!=(i=n[0].t)?i:0,m=null!=(l=n[n.length-1].t)?l:0;let p,y;e.repeatAt===H.start?(p=0,y=h):(p=m,y=r);const b=y-p;if(b<=0)return n;const g=null!=(s=v[0].t)?s:0,A=(null!=(u=v[v.length-1].t)?u:0)-g;if(A<=0)return n;const w=v.map(t=>({R:(t.t-g)/A,v:t.v,e:t.e,tangentIn:dt(t),tangentOut:vt(t)})),j=Math.floor(b/A),x=b-j*A,M=x/A,k=[],O=e.repeatAt!==H.start,z=n[n.length-1];let S,P=!1;function N(n,e,r){var o;let i;if(e){i=[];for(let t=w.length-1;t>=0;t--)i.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else i=w;const l=void 0!==r?r:1;for(let e=0;e<i.length;e++){const r=i[e];if(r.R>l+1e-9){const o=i[e-1],s=r.R-o.R,u=(l-o.R)/s,c=o.e?sn(o.e)(u):u,a=re(t,o.v,r.v,c),{left:f}=cn(o.e,u);return k.length>0&&o.R<=l&&(k[k.length-1].e=f),void k.push({t:n+l*A,v:a,e:void 0})}const s=k.length>0?k[k.length-1]:z,u=O&&0===e&&void 0!==s&&Math.abs((null!=(o=s.t)?o:0)-(n+r.R*A))<1e-9;if(u){if(Yn(s.v,r.v)){k.length>0?(s.e=r.e,s.tangentOut=r.tangentOut):(S=r.e,P=!0);continue}k.length>0&&(delete s.tangentIn,delete s.tangentOut)}const c={t:n+r.R*A+(u?Xn:0),v:r.v,e:e<i.length-1?r.e:void 0};r.tangentIn&&(c.tangentIn=r.tangentIn),r.tangentOut&&(c.tangentOut=r.tangentOut),k.push(c)}}if(e.repeatAt===H.start){M>1e-9&&function(n,e,r){let o;if(e){o=[];for(let t=w.length-1;t>=0;t--)o.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else o=w;const i=1-r;for(let e=0;e<o.length;e++){const r=o[e];if(r.R<i-1e-9)continue;const l=o[e-1];if(l&&l.R<i-1e-9&&r.R>i+1e-9){const e=r.R-l.R,o=(i-l.R)/e,s=l.e?sn(l.e)(o):o,u=re(t,l.v,r.v,s),{right:c}=cn(l.e,o);k.push({t:n,v:u,e:c})}const s={t:n+(r.R-i)*A,v:r.v,e:e<o.length-1?r.e:void 0};r.tangentIn&&(s.tangentIn=r.tangentIn),r.tangentOut&&(s.tangentOut=r.tangentOut),k.push(s)}}(p,e.direction===$.alternate&&j%2==0,M);for(let t=0;t<j;t++){const n=j-1-t,r=e.direction===$.alternate&&n%2==0;N(p+x+t*A,r)}}else{for(let t=0;t<j;t++){const n=e.direction===$.alternate&&t%2==0;N(p+t*A,n)}if(M>1e-9){const t=e.direction===$.alternate&&j%2==0;N(p+j*A,t,M)}}return e.repeatAt===H.start?[...k,...n]:P&&n.length>0?[...n.slice(0,-1),a(c({},n[n.length-1]),{e:S}),...k]:[...n,...k]}(t,l,u,e):l}var ie=0;function le(t,n=J.native){const e=et(t)||{},r=function(t){var n;if(t)return null==(n=et(t))?void 0:n.definitions}(t),o=e.duration||1e3,i=[],l=(t,e,i)=>{if(0===e.length)return null;const l=function(t,n,e,r=J.native){const o={};for(const[i,l]of Object.entries(t)){if("transform"===i&&"offsetPath"===l.alongPathMode&&void 0!==t.offsetDistance)continue;const s=oe(i,l,n,e);if(s.length>0){const t={keyframes:s};void 0!==l.autoOrient&&(t.autoOrient=l.autoOrient),void 0!==l.loop&&(t.loop=l.loop),o[i]=r===J.native&&"transform"===i?En(t):t}}return o}(function(t,n){if(!t)return t;const e=n&&"object"==typeof n&&!Array.isArray(n)?n:function(t){var n,e;if(!t||"string"!=typeof t)return;const r={},o=/([a-zA-Z]+)\s*\(([^)]*)\)/g,i=["translate","rotate","skewX","scale"];let l,s=-1;for(;null!==(l=o.exec(t));){const t=l[1],o=i.indexOf(t);if(o<0||o<=s)return;s=o;const u=l[2].split(/[\s,]+/).filter(Boolean).map(Number);if(u.some(t=>Number.isNaN(t)))return;if("translate"===t){if(u.length<1||u.length>2)return;r.translate=[u[0],null!=(n=u[1])?n:0]}else if("rotate"===t){if(1!==u.length)return;r.rotate=u[0]}else if("skewX"===t){if(1!==u.length)return;r.skew=u[0]}else{if(u.length<1||u.length>2)return;r.scale=[u[0],null!=(e=u[1])?e:u[0]]}}return t.replace(/([a-zA-Z]+)\s*\(([^)]*)\)/g,"").replace(/[\s,]/g,"").length?void 0:Object.keys(r).length?r:void 0}(n);if(!e||!Object.keys(e).length)return t;const r=t=>t&&"object"==typeof t&&!Array.isArray(t)?c(c({},e),t):t,o=t[nt];if(o&&"object"==typeof o){const n=o;if(Array.isArray(n.keyframes)){const e=a(c({},n),{keyframes:n.keyframes.map(t=>a(c({},t),{value:r(t.value)}))});return void 0!==e.value&&(e.value=r(e.value)),a(c({},t),{transform:e})}return t}const i=Object.keys(t).filter(t=>hn.has(t));if(1!==i.length)return t;const l=i[0],s=t[l];if(!s||"object"!=typeof s||!Array.isArray(s.keyframes))return t;const u=a(c({},s),{keyframes:s.keyframes.map(t=>a(c({},t),{value:a(c({},e),{[l]:t.value})}))});void 0!==u.value&&(u.value=a(c({},e),{[l]:u.value}));const f=c({},t);return delete f[l],a(c({},f),{transform:u})}(function(t){const n={};for(const e of t)for(const[t,r]of Object.entries(e))n[t]=r;return n}(e),i),o,r,n);return 0===Object.keys(l).length?null:{id:t,animate:l}},s=function(t){var n;if(t)return null==(n=et(t))?void 0:n.bindings}(t);if(s)for(const t of s){const n=t.target.startsWith("#")?t.target.slice(1):t.target,e=t.animateWith.map(t=>ee(t,r)).filter(t=>!!t),o=l(n,e);o&&i.push(o)}const u=t=>{const n=t.animate;if(n&&Object.keys(n).length>0){const e=t.id||"_px_el_"+ ++ie;t.id=e;const o=l(e,function(t,n){if(!t)return[];const e=[];if("string"==typeof t){const r=ee(t,n);r&&e.push(r)}else if(Array.isArray(t))for(const r of t){const t=ee(r,n);t&&e.push(t)}else e.push(t);return e}(n,r),t.transform);o&&i.push(o)}if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n])};if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n]);return i}function se(t,n,e){var r,o,i,l;const s=n.keyframes||[];if(0===s.length)return null;const{U:u,_:c}=function(t,n){var e,r;const o=t.length-1;let i=t[0],l=t[o>0?1:0];for(let s=0;s<o;s++){const u=null!=(e=t[s].t)?e:0,c=null!=(r=t[s+1].t)?r:0;if(u<=n&&n<=c){i=t[s],l=t[s+1];break}n>c&&s===o-1&&(i=t[o>0?o-1:0],l=t[o])}return{U:i,_:l}}(s,e);let a=u===c?0:(f=e,d=null!=(r=u.t)?r:0,(v=null!=(o=c.t)?o:0)===d?0:0+(f-d)/(v-d)*1);var f,d,v;a=jn(a,0,1);const h=ft(u);if(h&&Array.isArray(h))try{a=sn(h)(a)}catch(t){}let m=gn(t)?wn(t):t,p=null;const y=null==u?void 0:u.v,b=null==c?void 0:c.v;if("d"===m)p=rn(null!=(i=null==y?void 0:y.paths)?i:Array.isArray(y)?y:[],null!=(l=null==b?void 0:b.paths)?l:Array.isArray(b)?b:[],a).map(t=>Qt(t)).join("");else if(vn.has(m))p=fn(en(y||[0,0,0,1],b||[0,0,0,1],a)),m=t;else if("stroke-dasharray"===m)p=nn(y||[],b||[],a).join(" "),m=t;else if("transform"!==m||null===y||"object"!=typeof y||Array.isArray(y))"translate"===m?(p="translate("+nn(y||[0,0],b||[0,0],a).join(",")+")",m="transform"):"rotate"===m?(p="rotate("+tn(+(y||0),+(b||0),a)+")",m="transform"):"scale"===m?(p="scale("+nn(y||[1,1],b||[1,1],a).join(",")+")",m="transform"):p=tn(+(y||0),+(b||0),a);else{const t=new Set([...y?Object.keys(y):[],...b?Object.keys(b):[]]),e={};for(const n of t){const t=null==y?void 0:y[n],r=null==b?void 0:b[n];if("rotate"===n||"skew"===n)e[n]=tn(+(null!=t?t:0),+(null!=r?r:0),a);else if("translate"===n||"scale"===n||"origin"===n){const o="scale"===n?[1,1]:[0,0],i=nn(t||o,r||o,a);e[n]=i}}if(Cn(n)){const t=y.translate,r=b.translate;if(Array.isArray(t)&&Array.isArray(r)){const o=function(t,n,e,r,o,i){const l=Vn(t,n,e,r),s=0===l.C?o:function(t,n){const e=n*t.ds[t.ds.length-1],{ts:r,ds:o}=t,i=o.length-1;if(e<=0)return r[0];if(e>=o[i])return r[i];let l=1,s=i;for(;l<s;){const t=l+s>>>1;o[t]<e?l=t+1:s=t}const u=o[s-1],c=o[s]-u,a=c>0?(e-u)/c:0;return r[s-1]+a*(r[s]-r[s-1])}(l.N,o),u=xn(l.P0,l.P1,l.P2,l.P3,s);if(!i)return{translate:u};const c=kn(l.P0,l.P1,l.P2,l.P3,s);return{translate:u,rotateDeg:180*Math.atan2(c[1],c[0])/Math.PI}}(u,c,[+t[0],+t[1]],[+r[0],+r[1]],a,!!n.autoOrient);e.translate=[o.translate[0],o.translate[1]],void 0!==o.rotateDeg&&(e.rotate=o.rotateDeg)}}p=pn(e,{P:!1}),m="transform"}return mn.has(m)&&"number"==typeof p&&(p=100*p+"%"),{k:m,v:null===p?"":""+p}}function ue(t,n){const e={};for(const[r,o]of Object.entries(t)){const t=se(r,o,n);t&&(e[t.k]=t.v)}return e}var ce="setPlaybackRate: rate must be finite and non-zero";function ae(t){return Number.isFinite(t)&&0!==t}function fe(t,n){return t>0?n===1/0?t:t*(n>0?n:1):0}function de(t,n){return Number.isNaN(t)||t<0?0:Number.isFinite(n)?t>n?n:t:Number.isFinite(t)?t:0}function ve(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:e===1/0?t%r/r:t>=r?1:t/r:0}function he(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:t>=1?r:t*r:0}function me(t){const n=globalThis;"function"!=typeof n.cancelAnimationFrame?n.clearTimeout(t):n.cancelAnimationFrame(t)}var pe={document:"document",host:"host",platform:"platform",usage:"usage",internal:"internal"};function ye(t,n){const e=n?n+" ":"";return{warn:(n,r,o)=>{if(null==t?void 0:t.onWarn)return void t.onWarn({kind:n,message:r,detail:o});if(null==t?void 0:t.muteWarn)return;const i=e+n+": "+r;void 0===o?console.warn(i):console.warn(i,o)},error:(n,r,o)=>{const i=function(t){return"string"==typeof t?new Error(t):t}(r);if(null==t?void 0:t.onError)return void t.onError({kind:n,message:i.message,error:i,detail:o});if(null==t?void 0:t.muteError)return;const l=e+n+": "+i.message;void 0===o?console.error(l):console.error(l,o)}}}function be(t){return"scroll"===(null==t?void 0:t.timelineSource)}var ge="cover";function Ae(t,n,e,r){var o;const[i,l]=function(t,n,e){const r=n,o=e;switch(t){case"cover":return[0,r+o];case"entry":return[0,Math.min(r,o)];case"contain":return[Math.min(r,o),Math.max(r,o)];case"exit":return[Math.max(r,o),r+o];case"entry-crossing":return[0,r];case"exit-crossing":return[o,r+o]}}(null!=(o=null==t?void 0:t.phase)?o:ge,e,r);return i+("number"==typeof(null==t?void 0:t.fraction)?t.fraction:n)*(l-i)}function we(t,n,e){const r=null!=e?e:ye(void 0,"[PxAnimator]"),o=[],i=()=>{for(const t of o.splice(0))t()},{startOn:l,outAction:s,scrollIntoViewThreshold:u}={startOn:null!=(a=null==(c=n)?void 0:c.startOn)?a:Y.startOn,outAction:null!=(f=null==c?void 0:c.outAction)?f:Y.outAction,scrollIntoViewThreshold:null!=(d=null==c?void 0:c.scrollIntoViewThreshold)?d:Y.scrollIntoViewThreshold};var c,a,f,d;const v=t.getRootElement();if(!v)return r.warn(pe.host,"setupAnimationTriggers: No root element found for animation."),i;let h=!1;const m=()=>{h&&(h=!1,t.setPlaybackRate(1)),t.play()},p=()=>{switch(s){case"pause":t.pause();break;case"reset":t.cancel();break;case"reverse":h=!0,t.setPlaybackRate(-1),t.play()}};switch(l){case"load":{const t=()=>m();"complete"===document.readyState?t():(window.addEventListener("load",t,{once:!0}),o.push(()=>window.removeEventListener("load",t)));break}case"mouseOver":{let t=!1;const n=()=>{t=!0,m()},e=()=>{t&&p()};v.addEventListener("mouseenter",n),v.addEventListener("mouseleave",e),o.push(()=>{v.removeEventListener("mouseenter",n),v.removeEventListener("mouseleave",e)});break}case"click":{const n=()=>{t.isPlaying()?p():m()};v.addEventListener("click",n),o.push(()=>v.removeEventListener("click",n));break}case"scrollIntoView":{const t=t=>{var n,e;const r=t.boundingClientRect,o=t.intersectionRect;if(!(null==r?void 0:r.height)||!o)return t.intersectionRatio;const i="undefined"!=typeof window&&window.innerHeight?window.innerHeight:1/0,l=null!=(e=null==(n=t.rootBounds)?void 0:n.height)?e:1/0,s=Math.min(i,l),u=Math.min(r.height,Number.isFinite(s)?s:r.height);return u>0?o.height/u:t.intersectionRatio},n=Array.from({length:21},(t,n)=>n/20);let e=!1;const r=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&t(n)>=u?(e=!0,m()):e&&(e=!1,p())})},{threshold:n});r.observe(v),o.push(()=>r.disconnect());break}}return i}function je(t){return"#"+t}function xe(t,n,e,r){var o;const i=et(t)||{},l=ye(e,"[PxAnimator]");if(!r)if(t.id){const n=je(t.id);(r=document.querySelector(n))||l.warn(pe.host,"createFrameLoopAnimator: No root element found for selector: "+n)}else l.warn(pe.host,"createFrameLoopAnimator: No root element provided");const s=function(t,n,e){var r;const o=et(t)||{},i=le(t,J.js),l=o.iterations;let s=1;"number"==typeof l&&(s=l||1),"infinite"===l&&(s=1/0),s<1&&(s=1);const u=+(o.duration||bn),c=u&&s?u*(s===1/0?1/0:s):u?(null!=s?s:1)*u:0,a=o.direction||"normal",f=null!=(r=o.fill)?r:"forwards",d="forwards"===f||"both"===f,v="backwards"===f||"both"===f;let h=null,m=!1,p=-(o.delay||0),y=0,b=1,g=!1;const A=o.frameRate,w=A&&A>0?1e3/A:0;let j=0;const x=()=>{const t=y?(Date.now()-y)*b:0;return p+t},M=()=>{let t=x();return Number.isFinite(c)&&t>c&&(t=c),t<0&&(t=0),t};function k(t){let e=function(){const n=u>0?u:1;let e=0,r=0;u>0?(t=jn(t,0,s*n),r=Math.max(0,Math.ceil(t/n)-1),r=Math.min(r,s-1),e=jn((t-r*n)/n,0,1)):e=t;const o=a||"normal";let i=e;return"reverse"===o?i=1-e:"alternate"===o?r%2==1&&(i=1-e):"alternate-reverse"===o&&r%2==0&&(i=1-e),i}();for(const t of i||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){console.warn("Empty or unresolved binding",t);continue}const o=ue(r,e*u);for(const[e,r]of Object.entries(o))n.setAttribute(t.id,e,r)}}o.delay&&(o.delay<0?k(M()):v&&k(0));const O=()=>!!m&&!!n.isConnected()&&(b<0?x()>0:!(Number.isFinite(c)&&M()>=c)),z=t=>{null!==h&&(me(h),h=null),(t||O())&&(h=function(t){const n=globalThis;return"function"==typeof n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,16)}(()=>{h=null,(()=>{var t,r;if(!n.isConnected())return void S();const o=M(),i=x();if(i<0&&b>0)v&&k(0);else{if(b<0&&i<=0)return S(),k(0),void(g||(g=!0,null==(t=null==e?void 0:e.onFinish)||t.call(e)));if(b>0&&c&&Number.isFinite(c)&&o>=c)return S(),k(d?c:0),void(g||(g=!0,null==(r=null==e?void 0:e.onFinish)||r.call(e)));if(w>0){const t=Date.now();if(j&&t-j<w)return;j=t}k(o)}})(),z()}))},S=()=>{if(!m)return;let t=x();Number.isFinite(c)&&t>c&&(t=c),p=t,y=0,m=!1,null!==h&&(me(h),h=null),t>=0?k(t):v&&k(0)},P={isReady:()=>!0,getRootElement:()=>null,isPlaying:()=>O(),play:()=>{var t;(()=>{if(!m){if(b>=0)Number.isFinite(c)&&p>=c&&(p=0);else if(p<=0){if(!Number.isFinite(c))return void console.warn("play: cannot start reverse playback of an infinite animation from time 0");p=c}g=!1,m=!0,y=Date.now(),z(!0)}})(),null==(t=null==e?void 0:e.onPlay)||t.call(e)},pause:()=>{var t;S(),null==(t=null==e?void 0:e.onPause)||t.call(e)},cancel:()=>{var t;S(),p=0,y=0,m=!1,g=!1,k(p),null==(t=null==e?void 0:e.onCancel)||t.call(e)},finish:()=>{((t=!0)=>{var n;p=Number.isFinite(c)?c:M(),y=0,m=!1,null!==h&&(me(h),h=null),k(d?p:0),t&&!g&&(g=!0,null==(n=null==e?void 0:e.onFinish)||n.call(e))})(!0)},setPlaybackRate:t=>{if(!ae(t))return void console.warn(ce);let n=x();Number.isFinite(c)&&n>c&&(n=c),t<0!=b<0&&(g=!1),b=t,p=n,m&&(y=Date.now())},getCurrentTime:()=>M(),setCurrentTime:t=>{t=de(t,c),p=t,m&&(y=Date.now()),(!Number.isFinite(c)||t<c)&&(g=!1),k(M())},getCurrentProgress:()=>ve(M(),u,s),setCurrentProgress:t=>{P.setCurrentTime(he(t,u,s))},destroy:()=>{var t;P.cancel(),null==(t=null==e?void 0:e.onRemove)||t.call(e)}};return P}(t,n||function(t,n){const e=new Set,r=null!=n?n:ye(void 0,"[PxAnimator]");return{isConnected:()=>!t||t.isConnected,setAttribute:(n,o,i)=>{o=wn(o);const l=je(n),s=(null==t?void 0:t.querySelectorAll(l))||document.querySelectorAll(l);0!==s.length||e.has(l)||(e.add(l),r.warn(pe.host,'setAttribute: No elements found for selector "'+l+'"'));for(let t=0;t<s.length;t++){const n=s[t],e="transform"===o&&"pattern"===n.tagName?"patternTransform":o;n.setAttribute(e,i),yn.has(o)&&(n.style[o]=i)}}}}(r,l),e),u=a(c({},s),{getRootElement:()=>r||null});if(be(i))i.trigger&&l.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(u,null!=(o=i.trigger)?o:{},l),n=u.destroy.bind(u);u.destroy=()=>{t(),n()}}return u}function Me(t,n,e,r){let o=at(t);const i=ft(t),l={offset:n,easing:i&&Array.isArray(i)?"cubic-bezier("+i.join(",")+")":void 0};let s,u=e;var c;return vn.has(e)&&Array.isArray(o)?s=fn(o):"transform"!==e||null===o||"object"!=typeof o||Array.isArray(o)?hn.has(e)?(Array.isArray(o)&&("translate"===e&&(o=o.map(t=>t+"px")),o=o.join(",")),"rotate"===e&&(o+="deg"),s=e+"("+o+")",u="transform"):s="d"===e?'path("'+(o&&"object"==typeof o&&Array.isArray(o.paths)?o.paths:[]).map(t=>Qt(t,!0)).join("")+'")':mn.has(e)&&"number"==typeof o?100*o+"%":""+o:(s=pn(o,{P:!0}),u="transform"),CSS.supports(wn(u),s)||r.add(u),u=(c=u).includes("-")?c.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()):c,l[u]=s,l}function ke(t,n,e){var r,o,i,l,s;const u=[];for(let f=0;f<n.length;f++){const d=n[f],v=null!=(r=d.t)?r:0;if(v<0){const e=n[f+1];if(e&&(null!=(o=e.t)?o:0)>=0){const n=(0-v)/((null!=(i=e.t)?i:0)-v),r=d.e?sn(d.e)(n):n,{right:o}=cn(d.e,n);u.push({t:0,v:re(t,d.v,e.v,r),e:o})}continue}if(v>e){const r=n[f-1];if(r&&(null!=(l=r.t)?l:0)<=e){const n=null!=(s=r.t)?s:0,o=(e-n)/(v-n),i=r.e?sn(r.e)(o):o,{left:l}=cn(r.e,o);u.length>0&&(u[u.length-1]=a(c({},u[u.length-1]),{e:l})),u.push({t:e,v:re(t,r.v,d.v,i),e:void 0})}break}u.push(d)}return u}function Oe(t,n,e){var r;const o=new Map;for(const[i,l]of Object.entries(t)){const t=e.duration||1,s=ke(i,l.keyframes||[],t),u=[];for(let e=0;e<s.length;e++){const o=s[e],l=Me(o,jn((null!=(r=o.t)?r:0)/t,0,1),i,n);0===e&&(l.offset||0)>0&&u.push(a(c({},l),{offset:0})),u.push(l)}u.length>0&&(u[u.length-1].offset||0)<1&&u.push(a(c({},u[u.length-1]),{offset:1})),u.length>0&&o.set(i,u)}return o}function ze(t,n,e,r,o){var i,l;const s=et(t)||{},u=ye(n,"[PxAnimator]");if(!e)if(t.id){const n=je(t.id);(e=document.querySelector(n))||u.warn(pe.host,"createWebApiAnimator: No root element found for selector: "+n)}else u.warn(pe.host,"createWebApiAnimator: No root element provided");const c=le(t,J.native),a=[],f=s.iterations;let d;"number"==typeof f&&(d=f),"infinite"===f&&(d=1/0);const v=new Set;let h=!1,m=!1;(null==c?void 0:c.length)||u.warn(pe.document,"createWebApiAnimator: No animation bindings defined");for(const t of c||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){u.warn(pe.document,"createWebApiAnimator: Empty or unresolved binding",t);continue}const l=je(t.id),c=(null==e?void 0:e.querySelectorAll(l))||document.querySelectorAll(l);0===c.length&&u.warn(pe.host,'createWebApiAnimator: No elements found for selector "'+l+'"');const f=Oe(r,v,s),p=s.delay&&s.delay>0?s.delay:void 0;let y;if(s.delay&&s.delay<0&&s.duration){const t=-s.delay;y=d===1/0?t%s.duration:Math.min(t,s.duration*(null!=d?d:1))}const b={duration:s.duration,delay:p,fill:null!=(i=s.fill)?i:"forwards",direction:s.direction,iterations:d};for(let t=0;t<c.length;t++){const e=c[t];for(const[,t]of f)if(t.length>0)try{const r=new KeyframeEffect(e,t,b),i=new Animation(r,o?o.timeline:document.timeline);if(o){const t=i;o.rangeStart&&(t.rangeStart=o.rangeStart),o.rangeEnd&&(t.rangeEnd=o.rangeEnd)}(null==n?void 0:n.onFinish)&&(i.onfinish=()=>{var t;h||(h=!0,null==(t=n.onFinish)||t.call(n))}),(null==n?void 0:n.onRemove)&&(i.onremove=()=>{var t;m||(m=!0,null==(t=n.onRemove)||t.call(n))}),void 0!==y&&(i.currentTime=y),a.push(i)}catch(t){u.warn(pe.internal,"createWebApiAnimator: could not build the animation",t)}}}if(!r&&v.size)return u.warn(pe.platform,"Unsupported CSS attrs: "+[...v].join(", ")),null;const p={isReady:()=>!0,getRootElement:()=>e||null,isPlaying:()=>{var t;return"running"===(null==(t=a[0])?void 0:t.playState)},play:()=>{var t;h=!1,a.forEach(t=>t.play()),null==(t=null==n?void 0:n.onPlay)||t.call(n)},pause:()=>{var t;a.forEach(t=>t.pause()),null==(t=null==n?void 0:n.onPause)||t.call(n)},cancel:()=>{var t;h=!1,a.forEach(t=>t.cancel()),null==(t=null==n?void 0:n.onCancel)||t.call(n)},finish:()=>{var t;for(const n of a)try{(null==(t=n.effect)?void 0:t.getTiming().iterations)===1/0?(n.effect.updateTiming({iterations:1}),n.finish(),n.effect.updateTiming({iterations:1/0})):n.finish()}catch(t){n.cancel()}},setPlaybackRate:t=>ae(t)?(a.forEach(n=>n.playbackRate=t),p):(u.warn(pe.usage,ce),p),getCurrentTime:()=>{var t,n;const e=null!=(n=null==(t=a[0])?void 0:t.currentTime)?n:null;return null!==e?+e:null},setCurrentTime:t=>{var n;const e=function(t,n){return t>0?n===1/0?1/0:t*(n>0?n:1):0}(null!=(n=s.duration)?n:0,null!=d?d:1),r=e>0?de(t,e):Math.max(0,t);h=!1,a.forEach(t=>{t.currentTime=r})},getCurrentProgress:()=>{var t;const n=p.getCurrentTime();return null===n?null:ve(n,null!=(t=s.duration)?t:0,null!=d?d:1)},setCurrentProgress:t=>{var n;p.setCurrentTime(he(t,null!=(n=s.duration)?n:0,null!=d?d:1))},destroy:()=>{var t;p.cancel(),a.splice(0,a.length),m||(m=!0,null==(t=null==n?void 0:n.onRemove)||t.call(n))}};if("scroll"===s.timelineSource)s.trigger&&u.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(p,null!=(l=s.trigger)?l:{},u),n=p.destroy.bind(p);p.destroy=()=>{t(),n()}}return o&&a.forEach(t=>t.play()),p}function Se(t,n,e){var r,o,i;const l="number"==typeof(null==t?void 0:t.fraction)?t.fraction:n,s=null==(o=null==(r=globalThis.CSS)?void 0:r.percent)?void 0:o.call(r,100*l);if(void 0!==s)return e?{rangeName:null!=(i=null==t?void 0:t.phase)?i:"cover",offset:s}:{offset:s}}function Pe(t,n){const e=document.body,r=document.documentElement;for(let o=t.parentElement;o;o=o.parentElement){if(o===e||o===r)return null;const t=getComputedStyle(o),i="y"===n?t.overflowY:t.overflowX;if("auto"===i||"scroll"===i||"hidden"===i||"overlay"===i)return o}return null}function Ne(){return document.scrollingElement||document.documentElement}var Ce="parent",Te="scroller";function Ve(t,n,e){var r,o;const i=null!=e?e:ye(void 0,"[PxAnimator]"),l=null==n?void 0:n.trim();if(!l)return t;if(l===Ce){let n=null;for(let e=t.parentElement;e&&e!==document.body;e=e.parentElement){const t=getComputedStyle(e).position;"sticky"!==t&&"fixed"!==t||(n=e)}return null!=(o=null!=(r=null==n?void 0:n.parentElement)?r:t.parentElement)?o:t}if(l===Te)return Pe(t,"y")||Pe(t,"x")||Ne();let s=null;try{s=document.querySelector(l)}catch(n){return i.warn(pe.document,'scroll timeline: subject "'+l+'" is not a valid selector — measuring the SVG itself'),t}return s||(i.warn(pe.host,'scroll timeline: subject "'+l+'" matched no element — measuring the SVG itself'),t)}function Re(t,n){const e=t;if(!(null==n?void 0:n.pin)||!e.style)return()=>{};const r=e.style,o=r.position,i=r.top;r.position="sticky";const l="center"===n.pinAlign?.5:"bottom"===n.pinAlign?1:0,s=()=>{var e;const o=null!=(e=n.pinOffset)?e:0;if(!l)return void(r.top=o+"px");const i=function(t){const n=Pe(t,"y");return n?n.clientHeight:document.documentElement.clientHeight}(t),s=t.getBoundingClientRect().height;r.top=Math.round((i-s)*l+o)+"px"};s();let u=null;const c=l?s:null;l&&(c&&window.addEventListener("resize",c),"undefined"!=typeof ResizeObserver&&(u=new ResizeObserver(s),u.observe(t)));let a=null;const f=t.parentElement;return n.pinDistance&&n.pinDistance>0&&f&&(a=document.createElement("div"),a.setAttribute("data-px-pin",""),a.style.height=100*n.pinDistance+"vh",f.insertBefore(a,t),a.appendChild(t)),()=>{c&&window.removeEventListener("resize",c),null==u||u.disconnect(),r.position=o,r.top=i,(null==a?void 0:a.parentElement)&&(a.parentElement.insertBefore(t,a),a.remove())}}function Ue(t,n,e){let r,o=n;t.resetOnFinish&&(o=a(c({},n),{onFinish:()=>{var t;null==(t=null==n?void 0:n.onFinish)||t.call(n),null==r||r.cancel()}}));const i=e(o);return r=i,t.debugGlobalName&&(window[t.debugGlobalName]=i),i}function _e(t){const n=function(t){if(!(null==t?void 0:t.doc))throw new Error("createAnimator: `doc` is required");return t.doc}(t);return function(t,n){try{return n()}catch(n){const e=function(t){return t instanceof Error?t:new Error(String(t))}(n);return ye(t,"[PxAnimator]").error(pe.internal,"createAnimator: could not build the player — "+e.message,e),{isReady:()=>!1,getRootElement:()=>null,isPlaying:()=>!1,play:()=>{},pause:()=>{},cancel:()=>{},finish:()=>{},setPlaybackRate:()=>{},getCurrentTime:()=>null,setCurrentTime:()=>{},getCurrentProgress:()=>null,setCurrentProgress:()=>{},destroy:()=>{}}}}(t,()=>function(t,n,e,r){const o=et(t)||{},i=ye(e,"[PxAnimator]");return be(o)?Ue(o,e,e=>{var l;let s=()=>{};if(o.engine!==K.js&&r){s=Re(r,o.scroll);const n=function(t,n,e){var r,o,i,l;const s=null!=e?e:ye(void 0,"[PxAnimator]");if(!n||!be(n))return null;const u=n.scroll||{},c=null!=(r=u.kind)?r:"view";if(u.smoothing)return s.warn(pe.platform,"scroll timeline: `smoothing` needs the built-in driver — using the built-in driver instead of the browser timeline"),null;const a=globalThis,f="view"===c,d=f?a.ViewTimeline:a.ScrollTimeline;if("function"!=typeof d)return null;const v=null!=(o=u.axis)?o:"block";let h;try{h=new d(f?{subject:Ve(t,u.subject,s),axis:v}:{source:"root"===u.source?Ne():Pe(t,"y")||Pe(t,"x")||Ne(),axis:v})}catch(t){return s.warn(pe.platform,"scroll timeline: native timeline construction failed — falling back to the player measuring progress itself",t),null}return{timeline:h,rangeStart:Se(null==(i=u.range)?void 0:i.start,0,f),rangeEnd:Se(null==(l=u.range)?void 0:l.end,1,f)}}(r,o,i);if(n){const i=ze(t,e,r,X(o.engine),n);if(i){const t=i.destroy.bind(i);return i.destroy=()=>{s(),t()},i}}s(),s=()=>{}}const u=(o.engine!==K.js?ze(t,e,r,X(o.engine)):null)||xe(t,n,e,r),c=(null==(l=u.getRootElement)?void 0:l.call(u))||r;if(c){s=Re(c,o.scroll);const t=("number"==typeof(null==(a=o)?void 0:a.duration)&&a.duration>0?a.duration:bn)*("number"==typeof(null==a?void 0:a.iterations)&&a.iterations>0?a.iterations:1),n=function(t,n,e,r){var o,i;if(!n||!be(n))return null;const l=null!=r?r:ye(void 0,"[PxAnimator]"),s=n.scroll||{},u=null!=(o=s.kind)?o:"view",c=Ve(t,s.subject,l),a=Pe(t,"y")||Pe(t,"x"),f="scroll"===u&&"root"===s.source?Ne():a||Ne(),d=f===Ne(),v=function(t,n){const e=null!=t?t:"block";if("x"===e||"y"===e)return e;const r=!!n&&n.startsWith("vertical");return"inline"===e?r?"y":"x":r?"x":"y"}(s.axis,getComputedStyle(f).writingMode),h=()=>{if("scroll"===u)return function(t,n,e){var r,o;const i=n>0?jn(t/n,0,1):1,l="number"==typeof(null==(r=null==e?void 0:e.start)?void 0:r.fraction)?e.start.fraction:0,s="number"==typeof(null==(o=null==e?void 0:e.end)?void 0:o.fraction)?e.end.fraction:1;return s<=l?i>=s?1:0:jn((i-l)/(s-l),0,1)}("y"===v?f.scrollTop:f.scrollLeft,"y"===v?f.scrollHeight-f.clientHeight:f.scrollWidth-f.clientWidth,s.range);const t=c.getBoundingClientRect();let n,e;if(d)n=0,e="y"===v?document.documentElement.clientHeight:document.documentElement.clientWidth;else{const t=f.getBoundingClientRect();n="y"===v?t.top:t.left,e="y"===v?f.clientHeight:f.clientWidth}return function(t,n,e,r){const o=e-t,i=Ae(null==r?void 0:r.start,0,n,e),l=Ae(null==r?void 0:r.end,1,n,e);return l<=i?o>=l?1:0:jn((o-i)/(l-i),0,1)}(("y"===v?t.top:t.left)-n,"y"===v?t.height:t.width,e,s.range)},m=Math.max(0,null!=(i=s.smoothing)?i:0)/1e3;let p=!1,y=null,b=null,g=0,A=null;const w=()=>{A=null,p||(t=>{if(!m)return void e(t);if(null===y)return y=t,void e(t);if(null!==b)return;g=0;const n=t=>{if(b=null,p)return;const r=g?Math.min(.1,(t-g)/1e3):1/60;g=t;const o=h(),i=1-Math.exp(-r/m);y+=(o-y)*i,Math.abs(o-y)<.001&&(y=o),e(y),y!==o&&(b=requestAnimationFrame(n))};b=requestAnimationFrame(n)})(h())},j=()=>{p||null!==A||(A=requestAnimationFrame(w))},x=d?window:f;let M;x.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j,{passive:!0}),"undefined"!=typeof ResizeObserver&&(M=new ResizeObserver(j),M.observe(c),c!==t&&M.observe(t),d||M.observe(f));const k={destroy:()=>{p||(p=!0,x.removeEventListener("scroll",j),window.removeEventListener("resize",j),null==M||M.disconnect(),null!==A&&(cancelAnimationFrame(A),A=null),null!==b&&(cancelAnimationFrame(b),b=null))},refresh:()=>{p||(y=h(),e(y))}};return k.refresh(),k}(c,o,n=>u.setCurrentTime(n*t),i);if(n){const t=u.destroy.bind(u);u.destroy=()=>{n.destroy(),s(),t()}}}else i.warn(pe.host,"scroll timeline: no root element to observe — animation will stay at frame 0");var a;return u}):Ue(o,e,e=>o.engine===K.js?xe(t,n,e,r):ze(t,e,r,X(o.engine))||xe(t,n,e,r))}(n,void 0,function(t){const{onPlay:n,onPause:e,onCancel:r,onFinish:o,onRemove:i,onStop:l,onWarn:s,onError:u,muteWarn:c,muteError:a}=null!=t?t:{},f=t=>t||l?()=>{null==t||t(),null==l||l()}:void 0;return{onPlay:n,onPause:f(e),onCancel:f(r),onFinish:f(o),onRemove:f(i),onWarn:s,onError:u,muteWarn:c,muteError:a}}(t),null))}var Ee,Fe="doc";return Ee=d,((n,r,i,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let i of o(r))l.call(n,i)||void 0===i||t(n,i,{get:()=>r[i],enumerable:!(s=e(r,i))||s.enumerable});return n})(t({},"__esModule",{value:!0}),Ee)})();
|
|
1
|
+
"use strict";var PixodeskAnimator=(()=>{var t=Object.defineProperty,n=Object.defineProperties,e=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,u=(n,e,r)=>e in n?t(n,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[e]=r,c=(t,n)=>{for(var e in n||(n={}))l.call(n,e)&&u(t,e,n[e]);if(i)for(var e of i(n))s.call(n,e)&&u(t,e,n[e]);return t},a=(t,e)=>n(t,r(e)),f=(t,n)=>{var e={};for(var r in t)l.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&i)for(var r of i(t))n.indexOf(r)<0&&s.call(t,r)&&(e[r]=t[r]);return e},d={};function v(t){if(!t.length)return".";let n="";for(const e of t)e.startsWith("[")?n+=e:n+=(n?".":"")+e;return n}((n,e)=>{for(var r in e)t(n,r,{get:e[r],enumerable:!0})})(d,{PX_ANIMATOR_DOC_KEY:()=>Fe,createAnimator:()=>_e,setupAnimationTriggers:()=>we});var h=class{_canSanitize(t){return this.isValid(t)}optional(){return new m(this)}},m=class extends h{constructor(t){super(),this.inner=t,this._default=void 0}sanitize(t){if(null!=t)return this.inner._canSanitize(t)?this.inner.sanitize(t):void 0}isValid(t,n,e){return null==t||this.inner.isValid(t,n,e)}_canSanitize(t){return null==t||this.inner._canSanitize(t)}},p=class extends h{constructor(t=""){super(),this._default=t}sanitize(t){return"string"==typeof t?t:this._default}isValid(t,n,e){return"string"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected string, got "+typeof t),!1)}},y=class extends h{constructor(t=0){super(),this._default=t}sanitize(t){return"number"==typeof t&&isFinite(t)?t:this._default}isValid(t,n,e){return!("number"!=typeof t||!isFinite(t))||(null==n||n.errors.push(v(null!=e?e:[])+": expected finite number, got "+JSON.stringify(t)),!1)}},b=class extends h{constructor(t=!1){super(),this._default=t}sanitize(t){return"boolean"==typeof t?t:this._default}isValid(t,n,e){return"boolean"==typeof t||(null==n||n.errors.push(v(null!=e?e:[])+": expected boolean, got "+typeof t),!1)}},g=class extends h{constructor(t){super(),this.value=t,this._default=t}sanitize(t){return t===this.value?this.value:this._default}isValid(t,n,e){return t===this.value||(null==n||n.errors.push(v(null!=e?e:[])+": expected "+JSON.stringify(this.value)+", got "+JSON.stringify(t)),!1)}},A=class extends h{constructor(t,n){super(),this.values=t,this._default=null!=n?n:t[0]}sanitize(t){return this.values.includes(t)?t:this._default}isValid(t,n,e){return!!this.values.includes(t)||(null==n||n.errors.push(v(null!=e?e:[])+": expected one of "+this.values.map(t=>JSON.stringify(t)).join(" | ")+", got "+JSON.stringify(t)),!1)}},w=class extends h{constructor(t,n){super(),this.l=t,this.h="union",this._default=null!=n?n:t[0]._default}sanitize(t){for(const n of this.l)if(n.isValid(t))return n.sanitize(t);return this._default}isValid(t,n,e){var r;const o=n&&{errors:[],warnings:[],strict:n.strict};if(this.l.some(n=>n.isValid(t,o,e?[...e]:void 0)))return!0;if(!n)return!1;const i=v(null!=e?e:[]);let l;n.errors.push(i+": no union member matched for value "+(null!=(r=JSON.stringify(t))?r:"").slice(0,240));let s=-1;const u=[];for(const r of this.l){const o={errors:[],warnings:[],strict:n.strict};if(r.isValid(t,o,e?[...e]:void 0),!o.errors.length)continue;const c=Math.max(...o.errors.map(t=>t.slice(0,t.indexOf(":")).length));if((c>s||c===s&&l&&o.errors.length<l.length)&&(s=c,l=o.errors),c<=i.length)for(const t of o.errors){const n=/: expected (.+?), got /.exec(t);n&&!u.includes(n[1])&&u.push(n[1])}}if(l&&s>i.length)for(const t of l.slice(0,4))n.errors.includes(t)||n.errors.push(t);else u.length&&n.errors.push(i+": expected "+u.join(" | "));return!1}_canSanitize(t){return this.l.some(n=>n._canSanitize(t))}},j=class extends h{constructor(t){super(),this._shape=t;const n={};for(const e of Object.keys(t))n[e]=t[e]._default;this._default=n}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e={};for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(null==n?void 0:n.strict)for(const t of Object.keys(r))t in this._shape||void 0!==r[t]&&(o.push(t),n.errors.push(v(o)+": unexpected extra key"),o.pop(),i=!1);return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},x=class extends h{constructor(t,n){super(),this._shape=t,this.m=n;const e={};for(const n of Object.keys(t))e[n]=t[n]._default;this._default=e}sanitize(t){const n=t&&"object"==typeof t&&!Array.isArray(t)?t:{},e=c({},n);for(const t of Object.keys(this._shape)){const r=this._shape[t].sanitize(n[t]);void 0!==r&&(e[t]=r)}if(this.m)for(const t of Object.keys(n))t in this._shape||(e[t]=this.m.sanitize(n[t]));return e}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=t,o=null!=e?e:[];let i=!0;for(const t of Object.keys(this._shape))o.push(t),this._shape[t].isValid(r[t],n,o)||(i=!1),o.pop();if(this.m)for(const t of Object.keys(r))t in this._shape||(o.push(t),this.m.isValid(r[t],n,o)||(i=!1),o.pop());return i}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},M=class extends h{constructor(t){super(),this.item=t,this._default=[]}sanitize(t){if(!Array.isArray(t))return[];const n=[];for(const e of t)this.item._canSanitize(e)&&n.push(this.item.sanitize(e));return n}isValid(t,n,e){if(!Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected array, got "+typeof t),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<t.length;e++)r.push("["+e+"]"),this.item.isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)}},k=class extends h{constructor(t){super(),this.value=t,this.h="record",this._default={}}sanitize(t){if(!t||"object"!=typeof t||Array.isArray(t))return{};const n={};for(const[e,r]of Object.entries(t))this.value._canSanitize(r)&&(n[e]=this.value.sanitize(r));return n}isValid(t,n,e){if(!t||"object"!=typeof t||Array.isArray(t))return null==n||n.errors.push(v(null!=e?e:[])+": expected object/record, got "+(Array.isArray(t)?"array":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(const[e,i]of Object.entries(t))r.push(e),this.value.isValid(i,n,r)||(o=!1),r.pop();return o}_canSanitize(t){return!!t&&"object"==typeof t&&!Array.isArray(t)}},O=class extends h{constructor(t,n){super(),this.fn=t,this._default=n,this.resolved=null}get schema(){var t;return null!=(t=this.resolved)?t:this.resolved=this.fn()}sanitize(t){return this.schema.sanitize(t)}isValid(t,n,e){return this.schema.isValid(t,n,e)}_canSanitize(t){return this.schema._canSanitize(t)}},z=class extends h{constructor(t){super(),this.l=t,this.h="tuple",this._default=t.map(t=>t._default)}sanitize(t){return Array.isArray(t)&&t.length===this.l.length?this.l.map((n,e)=>n.sanitize(t[e])):this._default}isValid(t,n,e){if(!Array.isArray(t)||t.length!==this.l.length)return null==n||n.errors.push(v(null!=e?e:[])+": expected tuple of length "+this.l.length+", got "+(Array.isArray(t)?"array["+t.length+"]":typeof t)),!1;const r=null!=e?e:[];let o=!0;for(let e=0;e<this.l.length;e++)r.push("["+e+"]"),this.l[e].isValid(t[e],n,r)||(o=!1),r.pop();return o}_canSanitize(t){return Array.isArray(t)&&t.length===this.l.length}},S=(t="")=>new p(t),P=(t=0)=>new y(t),N=(t=!1)=>new b(t),C=t=>new g(t),T=(t,n)=>new A(t,n),V=(t,n)=>new w(t,n),R=t=>new j(t),U=(t,n)=>new x(t,n),_=t=>new M(t),E=t=>new k(t),F=t=>new z(t),I=(t,n)=>new O(t,n),D="block",W="inline",L="nearest",Z="root",q="center",B="bottom",G=["duration","iterations","engine","frameRate","trigger","delay","fillMode","direction","fill","resetOnFinish","timelineSource","scroll"],J={native:"native",js:"js"},K=a(c({},J),{auto:"auto"});function X(t){return t===K.native}var Y={startOn:"load",outAction:"continue",scrollIntoViewThreshold:0},H={start:"start",end:"end"},$={normal:"normal",alternate:"alternate"},Q="userSpaceOnUse",tt="objectBoundingBox",nt="transform";function et(t){var n;const e=(null==t?void 0:t.animator)||(null==(n=null==t?void 0:t.meta)?void 0:n.animator);if(!e)return;const r=ot.get(e);if(r)return r;const o=e,i=G.filter(t=>void 0!==o[t]),l=i.length?c({},o):e;for(const t of i)delete l[t];const s=function(t){const n=t.timeline;if(null==n||"object"!=typeof n)return t;const e=it.get(t);if(e)return e;const r=t,{timeline:o}=r,i=f(r,["timeline"]);if(void 0!==n.engine&&(i.engine=n.engine),void 0!==n.frameRate&&(i.frameRate=n.frameRate),"scroll"===n.type||"view"===n.type){i.timelineSource="scroll",void 0!==n.duration&&(i.duration=n.duration),void 0!==n.iterations&&(i.iterations=n.iterations);const t=c({},i.scroll||{});t.kind=n.type,void 0!==n.axis&&(t.axis=n.axis),void 0!==n.source&&(t.source=n.source),void 0!==n.subject&&(t.subject=n.subject),void 0!==n.smoothing&&(t.smoothing=n.smoothing),void 0!==n.range&&(t.range=n.range);const e=n.pin;"boolean"==typeof e?t.pin=e:e&&"object"==typeof e&&(t.pin=!0,void 0!==e.align&&(t.pinAlign=e.align),void 0!==e.offset&&(t.pinOffset=e.offset),void 0!==e.distance&&(t.pinDistance=e.distance)),i.scroll=t}else{if(void 0!==n.duration&&(i.duration=n.duration),void 0!==n.trigger){const t=n.trigger,{finishAction:e}=t,r=f(t,["finishAction"]);Object.keys(r).length&&(i.trigger=r),void 0!==e&&(i.resetOnFinish="reset"===e)}void 0!==n.delay&&(i.delay=n.delay),void 0!==n.iterations&&(i.iterations=n.iterations),void 0!==n.direction&&(i.direction=n.direction),void 0!==n.fillMode&&(i.fill=n.fillMode)}return it.set(t,i),i}(l);return ot.set(e,s),s}var rt,ot=new WeakMap,it=new WeakMap,lt=V([S(),F([P(),P(),P(),P()])]),st=V([S(),P(),_(P()),R({pathData:S()}),I(()=>_(Zt),[]),I(()=>pt,{})]),ut=R({time:P().optional(),value:st.optional(),easing:lt.optional(),tangentOut:F([P(),P()]).optional(),tangentIn:F([P(),P()]).optional()}),ct=t=>{var n,e;return null!=(e=null!=(n=t.time)?n:t.t)?e:0},at=t=>{var n;return null!=(n=t.value)?n:t.v},ft=t=>{var n;return null!=(n=t.easing)?n:t.e},dt=t=>t.tangentIn,vt=t=>t.tangentOut,ht=R({segmentCount:P().optional(),repeatAt:T([H.start,H.end]).optional(),direction:T([$.normal,$.alternate]).optional()}),mt=R({value:st.optional(),keyframes:_(ut).optional(),loop:V([ht,N()]).optional(),autoOrient:N().optional(),alongPathMode:T(["sampled","offsetPath"]).optional()}),pt=R({translate:F([P(),P()]).optional(),rotate:P().optional(),skew:P().optional(),scale:F([P(),P()]).optional(),origin:F([P(),P()]).optional()}),yt=(V([S(),pt,R({value:pt}),mt]),E(mt)),bt=V([S(),_(V([S(),yt])),yt]),gt=R({startOn:T(["load","mouseOver","click","scrollIntoView","programmatic"],Y.startOn).optional(),outAction:T(["continue","pause","reset","reverse"],Y.outAction).optional(),finishAction:T(["hold","reset"]).optional(),scrollIntoViewThreshold:P().optional()}),At=R({width:P(),pathData:S()}),wt=R({fontFamily:S(),fontStyle:S(),ascent:P(),unitsPerEm:P(),glyphs:E(At)}),jt=R({easings:E(F([P(),P(),P(),P()])).optional(),animations:E(yt).optional(),fonts:E(wt).optional()}),xt=R({phase:T(["cover","contain","entry","exit","entry-crossing","exit-crossing"]).optional(),fraction:P().optional()}),Mt=R({start:xt.optional(),end:xt.optional()}),kt=(R({kind:T(["view","scroll"]).optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:N().optional(),pinAlign:T(["top",q,B]).optional(),pinOffset:P().optional(),pinDistance:P().optional(),range:Mt.optional()}),R({align:T(["top",q,B]).optional(),offset:P().optional(),distance:P().optional()})),Ot=T([K.auto,K.native,K.js]).optional(),zt=R({type:C("time").optional(),engine:Ot,frameRate:P().optional(),duration:P().optional(),trigger:gt.optional(),delay:P().optional(),iterations:V([P(),C("infinite")]).optional(),fillMode:T(["forwards","backwards","both","none"]).optional(),direction:T(["normal","reverse","alternate","alternate-reverse"]).optional()}),St={duration:P().optional(),iterations:P().optional(),engine:Ot,frameRate:P().optional(),axis:T([D,W,"x","y"]).optional(),source:T([L,Z]).optional(),subject:S().optional(),smoothing:P().optional(),pin:V([N(),kt]).optional(),range:Mt.optional()},Pt=(rt=[zt,R(c({type:C("scroll")},St)),R(c({type:C("view")},St))],new class extends h{constructor(t,n,e){var r;super(),this.A=t,this.j=n,this.h="discriminatedUnion",this._default=null!=e?e:n[0]._default,this.M=new Map;for(const e of n){const n=e._shape[t];if(!n)continue;const o=null!=(r=n.inner)?r:n;this.M.set(o._default,e),n.inner&&(this.O=e)}}S(t){if(null===t||"object"!=typeof t||Array.isArray(t))return;const n=t[this.A];return null==n?this.O:this.M.get(n)}sanitize(t){var n;return(null!=(n=this.S(t))?n:this.j[0]).sanitize(t)}isValid(t,n,e){const r=this.S(t);if(!r){const r=null===t||"object"!=typeof t||Array.isArray(t)?void 0:t[this.A];return null==n||n.errors.push(v(null!=e?e:[])+": no discriminated union member matched "+this.A+"="+JSON.stringify(r)),!1}return r.isValid(t,n,e)}_canSanitize(t){if(null===t||"object"!=typeof t||Array.isArray(t))return!1;const n=this.S(t);return n?n._canSanitize(t):this.j[0]._canSanitize(t)}}("type",rt)),Nt=R({target:S(),animateWith:_(S())}),Ct=R({timeline:Pt.optional(),definitions:jt.optional(),bindings:_(Nt).optional(),debugGlobalName:S().optional(),version:S().optional()}),Tt=V([S(),P(),_(P()),R({value:new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return void 0!==t||(null==n||n.errors.push(v(null!=e?e:[])+": required value is missing"),!1)}_canSanitize(t){return void 0!==t}}}),pt]),Vt=V([P(),mt,R({value:P()})]),Rt=V([F([P(),P()]),mt,R({value:F([P(),P()])})]),Ut=V([S(),mt,R({value:S()})]),_t=R({translate:Rt.optional(),rotate:Vt.optional(),scale:Rt.optional(),skew:Vt.optional(),origin:Rt.optional()}),Et=R({copies:P().optional(),translate:Rt.optional(),rotate:Vt.optional(),skew:Vt.optional(),scale:Rt.optional(),origin:Rt.optional()}),Ft=R({source:S().optional(),maskType:T(["luminance","alpha"]).optional(),maskUnits:T([Q,tt]).optional(),maskContentUnits:T([Q,tt]).optional(),x:P().optional(),y:P().optional(),width:P().optional(),height:P().optional()}),It=R({pathData:Ut.optional()}),Dt=R({offset:Vt.optional(),range:Rt.optional(),subPaths:T(["separate","combined"]).optional()}),Wt=R({start:P().optional(),stretch:P().optional(),timeCrop:F([P(),P()]).optional()}),Lt=R({without:T(["translate"]).optional(),source:S().optional(),retime:Wt.optional()}),Zt=R({offset:P(),color:S()}),qt=V([_(Zt),R({value:_(Zt)}),mt]),Bt=R({type:T(["linear","radial"]),start:Rt.optional(),end:Rt.optional(),center:Rt.optional(),radius:Vt.optional(),focal:Rt.optional(),stops:qt.optional(),gradientUnits:T([Q,tt]).optional(),spreadMethod:T(["pad","reflect","repeat"]).optional(),gradientTransform:S().optional()}),Gt=Bt,Jt=R({pathData:S(),pathOverflow:T(["clip","extend"]).optional(),lengthAdjust:T(["spacing","spacingAndGlyphs"]).optional(),method:T(["align","stretch"]).optional(),spacing:T(["auto","exact"]).optional(),startOffset:Vt.optional(),textLength:Vt.optional()}),Kt=R({useGlyphs:N().optional()}),Xt=R({transformBy:_t.optional(),repeater:Et.optional(),maskedBy:Ft.optional(),clipPath:It.optional(),strokeTrim:Dt.optional(),clone:Lt.optional(),fillGradient:Bt.optional(),strokeGradient:Gt.optional(),textPath:Jt.optional(),text:Kt.optional()}),Yt=U({type:S(),domType:S().optional(),textContent:S().optional(),id:S().optional(),meta:(new class extends h{constructor(){super(...arguments),this._default=void 0}sanitize(t){return t}isValid(t,n,e){return!0}_canSanitize(t){return!0}}).optional(),effects:Xt.optional(),animate:bt.optional(),style:E(V([S(),P()])).optional()},Tt),Ht=U(a(c({},Yt._shape),{children:I(()=>_(Ht),[]).optional()}),Tt),$t=R({width:V([P(),S()]).optional(),height:V([P(),S()]).optional(),viewBox:S().optional(),animator:Ct.optional()});function Qt(t,n=!1){var e,r,o,i;const l=t.v,s=t.i,u=t.o,c=t.c;if(!l.length)return"";const a=[],f=l.length;a.push("M"+l[0][0]+","+l[0][1]);for(let t=1;t<f;t++){const o=l[t-1],i=null!=(e=null==u?void 0:u[t-1])?e:o,c=null!=(r=null==s?void 0:s[t])?r:l[t],f=l[t];n||i[0]!==o[0]||i[1]!==o[1]||c[0]!==f[0]||c[1]!==f[1]?a.push("C"+i[0]+","+i[1]+","+c[0]+","+c[1]+","+f[0]+","+f[1]):a.push("L"+f[0]+","+f[1])}if(c&&f>0){const t=l[f-1],e=null!=(o=null==u?void 0:u[f-1])?o:t,r=null!=(i=null==s?void 0:s[0])?i:l[0],c=l[0];!n&&e[0]===t[0]&&e[1]===t[1]&&r[0]===c[0]&&r[1]===c[1]||a.push("C"+e[0]+","+e[1]+","+r[0]+","+r[1]+","+c[0]+","+c[1]),a.push("z")}return a.join("")}function tn(t,n,e){return t+(n-t)*e}function nn(t,n,e){const r=[],o=Math.max(t.length,n.length);for(let i=0;i<o;i++)r[i]=tn(t[i]||0,n[i]||0,e);return r}function en(t,n,e){return[tn(t[0]||0,n[0]||0,e),tn(t[1]||0,n[1]||0,e),tn(t[2]||0,n[2]||0,e),tn(void 0===t[3]?1:t[3],void 0===n[3]?1:n[3],e)]}function rn(t,n,e){const r=Math.max(t.length,n.length),o=[];for(let i=0;i<r;i++)o.push(on(t[i],n[i],e));return o}function on(t,n,e){var r,o,i,l,s,u,c,a,f;if(!t||!n)return t||n||{v:[]};const d=Math.min(Math.max(e,0),1),v=Math.min(t.v.length,n.v.length),h=[],m=[],p=[];for(let e=0;e<v;e++){const f=t.v[e],v=n.v[e];h.push(nn(f,v,d));const y=null!=(o=null==(r=t.i)?void 0:r[e])?o:f,b=null!=(l=null==(i=n.i)?void 0:i[e])?l:v;m.push(nn(y,b,d));const g=null!=(u=null==(s=t.o)?void 0:s[e])?u:f,A=null!=(a=null==(c=n.o)?void 0:c[e])?a:v;p.push(nn(g,A,d))}return{v:h,i:m.length?m:void 0,o:p.length?p:void 0,c:null!=(f=t.c)?f:n.c}}function ln(t,n,e){if(e<=0)return 0;if(e>=1)return 1;const r=3*t,o=3*(n-t)-r,i=1-r-o;function l(t){return((i*t+o)*t+r)*t}function s(t){return(3*i*t+2*o)*t+r}let u=e,c=0,a=1;for(let t=0;t<8;t++){const t=l(u)-e;if(Math.abs(t)<1e-6)return u;const n=s(u);if(Math.abs(n)<1e-6)break;u-=t/n}for(u=e;c<a;){const t=l(u);if(Math.abs(t-e)<1e-6)return u;e>t?c=u:a=u,u=(a+c)/2}return u}function sn(t){const[n,e,r,o]=t,i=3*e,l=3*(o-e)-i,s=1-i-l;return function(t){return e=ln(n,r,t),((s*e+l)*e+i)*e;var e}}function un(t,n,e){return[t[0]+(n[0]-t[0])*e,t[1]+(n[1]-t[1])*e]}function cn(t,n){if(!t)return{left:void 0,right:void 0};if(n<=0)return{left:void 0,right:t};if(n>=1)return{left:t,right:void 0};const[e,r,o,i]=t,l=ln(e,o,n),s=[e,r],u=[o,i],{left:c,right:a}=function(t,n,e,r,o){const i=un(t,n,o),l=un(n,e,o),s=un(e,r,o),u=un(i,l,o),c=un(l,s,o),a=un(u,c,o);return{left:[t,i,u,a],right:[a,c,s,r]}}([0,0],s,u,[1,1],l),f=c[3][0],d=c[3][1];let v,h;f>1e-9&&Math.abs(d)>1e-9&&(v=[c[1][0]/f,c[1][1]/d,c[2][0]/f,c[2][1]/d]);const m=1-f,p=1-d;return m>1e-9&&Math.abs(p)>1e-9&&(h=[(a[1][0]-f)/m,(a[1][1]-d)/p,(a[2][0]-f)/m,(a[2][1]-d)/p]),{left:v,right:h}}function an(t){if(t)return[1-t[2],1-t[3],1-t[0],1-t[1]]}function fn(t){const n=Math.round(255*t[0]),e=Math.round(255*t[1]),r=Math.round(255*t[2]);return 4===t.length?"rgba("+n+","+e+","+r+","+t[3]+")":"rgb("+n+","+e+","+r+")"}function dn(t){if(t){if(Array.isArray(t))return t;if("string"==typeof t)return t.startsWith("#")?function(t){const n=t.slice(1),e=n.length<=4,r=e?n[0]+n[0]:n.slice(0,2),o=e?n[1]+n[1]:n.slice(2,4),i=e?n[2]+n[2]:n.slice(4,6),l=4===n.length?n[3]+n[3]:8===n.length?n.slice(6,8):null,s=[parseInt(r,16)/255,parseInt(o,16)/255,parseInt(i,16)/255];return null!==l&&s.push(parseInt(l,16)/255),s}(t):t.startsWith("rgb")?function(t){var n;const e=null==(n=t.match(/rgba?\((.*)\)/))?void 0:n[1];if(!e)throw new Error("Invalid rgb/rgba format");const r=e.split(",").map(t=>+t.trim());return[r[0]/255,r[1]/255,r[2]/255,...void 0!==r[3]?[r[3]]:[]]}(t):void console.warn("Unsupported color format: "+t)}}U(a(c(c({},Yt._shape),$t._shape),{type:C("svg"),children:_(Ht).optional()}),Tt),R({v:_(_(P())),i:_(_(P())).optional(),o:_(_(P())).optional(),c:N().optional()});var vn=new Set(["color","fill","flood-color","lighting-color","stop-color","stroke"]),hn=new Set(["translate","rotate","scale","skew"]),mn=new Set(["offset-distance","offsetDistance"]);function pn(t,n){var e;if(!t)return"";const r=null==(e=null==n?void 0:n.P)||e,o=[],i=t.translate,l=t.origin,s=t.rotate,u=t.skew,c=t.scale,a=r?"px":"",f=r?"deg":"";return i&&o.push("translate("+i[0]+a+","+i[1]+a+")"),l&&o.push("translate("+l[0]+a+","+l[1]+a+")"),null!=s&&o.push("rotate("+s+f+")"),null!=u&&o.push("skewX("+u+f+")"),c&&o.push("scale("+c[0]+","+c[1]+")"),l&&o.push("translate("+-l[0]+a+","+-l[1]+a+")"),o.join("")}var yn=new Set(["offset-distance","offsetDistance"]),bn=1e3;function gn(t){return!t.includes("-")&&/[a-z][A-Z]/.test(t)}var An=new Set(["viewBox","preserveAspectRatio","gradientUnits","gradientTransform","spreadMethod","patternUnits","patternContentUnits","patternTransform","clipPathUnits","maskUnits","maskContentUnits","markerUnits","markerWidth","markerHeight","refX","refY","textLength","lengthAdjust","startOffset","filterUnits","primitiveUnits","tableValues","stdDeviation","baseFrequency","numOctaves","surfaceScale","diffuseConstant","specularConstant","specularExponent","kernelMatrix","kernelUnitLength","edgeMode","preserveAlpha","targetX","targetY"]);function wn(t){return An.has(t)?t:t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function jn(t,n,e){return Math.max(n,Math.min(t,e))}function xn(t,n,e,r,o){if(o<=0)return[t[0],t[1]];if(o>=1)return[r[0],r[1]];const i=1-o,l=i*i,s=o*o,u=l*i,c=3*o*l,a=3*s*i,f=s*o;return[u*t[0]+c*n[0]+a*e[0]+f*r[0],u*t[1]+c*n[1]+a*e[1]+f*r[1]]}var Mn=1e-4;function kn(t,n,e,r,o){const i=On(t,n,e,r,o);return 0===i[0]&&0===i[1]?On(t,n,e,r,o<.5?o+Mn:o-Mn):i}function On(t,n,e,r,o){const i=1-o,l=3*i*i,s=6*o*i,u=3*o*o;return[l*(n[0]-t[0])+s*(e[0]-n[0])+u*(r[0]-e[0]),l*(n[1]-t[1])+s*(e[1]-n[1])+u*(r[1]-e[1])]}function zn(t,n){const{ts:e,ds:r}=t,o=e.length-1;if(n<=e[0])return r[0];if(n>=e[o])return r[o];let i=1,l=o;for(;i<l;){const t=i+l>>>1;e[t]<n?i=t+1:l=t}const s=e[l-1],u=e[l]-s,c=u>0?(n-s)/u:0;return r[l-1]+c*(r[l]-r[l-1])}function Sn(t){const n=at(t);if(!n)return;if(Array.isArray(n)&&n.length>=2&&"number"==typeof n[0]&&"number"==typeof n[1])return[n[0],n[1]];const e=n.translate;return Array.isArray(e)&&e.length>=2?[e[0],e[1]]:void 0}function Pn(t){return ct(t)}function Nn(t){return ft(t)}function Cn(t){const n=t.keyframes;if(!Array.isArray(n))return!1;if(t.autoOrient)return!0;for(const t of n)if(dt(t)||vt(t))return!0;return!1}var Tn=new WeakMap;function Vn(t,n,e,r){let o=Tn.get(t);const i=null==o?void 0:o.get(n);if(i)return i;const l=vt(t),s=dt(n),u=[e[0]+(l?l[0]:0),e[1]+(l?l[1]:0)],c=[r[0]+(s?s[0]:0),r[1]+(s?s[1]:0)],a=function(t,n,e,r,o=100){const i=o+1,l=new Float64Array(i),s=new Float64Array(i);let u=xn(t,n,e,r,0);l[0]=0,s[0]=0;let c=0;for(let a=1;a<i;a++){const i=a/o,f=xn(t,n,e,r,i),d=f[0]-u[0],v=f[1]-u[1];c+=Math.sqrt(d*d+v*v),l[a]=i,s[a]=c,u=f}return{ts:l,ds:s}}(e,u,c,r),f={P0:e,P1:u,P2:c,P3:r,N:a,C:a.ds[a.ds.length-1]};return o||(o=new WeakMap,Tn.set(t,o)),o.set(n,f),f}var Rn=.5,Un=5,_n=32;function En(t,n){var e,r,o;if(!Cn(t))return t;const i=t.keyframes;if(!Array.isArray(i)||i.length<2)return t;const l=!!t.autoOrient,s=null!=(e=null==n?void 0:n.flatnessTolerance)?e:Rn,u=null!=(r=null==n?void 0:n.rotationTolerance)?r:Un,c=null!=(o=null==n?void 0:n.maxSamplesPerSegment)?o:_n,a=[],f=Sn(i[0]);if(!f)return t;const d=l?function(t,n){const e=Sn(t),r=Sn(n);if(!e||!r)return 0;const o=Vn(t,n,e,r),i=kn(o.P0,o.P1,o.P2,o.P3,0);return 180*Math.atan2(i[1],i[0])/Math.PI}(i[0],i[1]):void 0;a.push(Fn(Pn(i[0]),Wn(In(i[0]),In(i[0]),0,f,d,l)));for(let t=0;t<i.length-1;t++){const n=i[t],e=i[t+1],r=Sn(n),o=Sn(e);r&&o?(l&&t>0&&Zn(a,n,e,r,o,u),Bn(a,n,e,r,o,l,s,u,c)):a.push(Fn(Pn(e),Wn(In(e),In(e),1,null!=o?o:[0,0],void 0,l)))}const v=Nn(i[i.length-1]);v&&(a[a.length-1].e=v),l&&function(t){let n;for(const e of t){const t=at(e);if(!t||"number"!=typeof t.rotate)continue;if(void 0===n){n=t.rotate;continue}let r=t.rotate;for(;r-n>180;)r-=360;for(;r-n<-180;)r+=360;t.rotate=r,n=r}}(a);const h={keyframes:a};return void 0!==t.loop&&(h.loop=t.loop),h}function Fn(t,n){return{t:t,v:n}}function In(t){const n=at(t);if(n&&"object"==typeof n&&!Array.isArray(n))return n}function Dn(t,n,e){if(void 0===t)return n;if(void 0===n)return t;if("number"==typeof t&&"number"==typeof n)return t+(n-t)*e;if(Array.isArray(t)&&Array.isArray(n)&&t.length===n.length){const r=new Array(t.length);for(let o=0;o<t.length;o++){const i="number"==typeof t[o]?t[o]:0,l="number"==typeof n[o]?n[o]:0;r[o]=i+(l-i)*e}return r}return e<.5?t:n}function Wn(t,n,e,r,o,i){const l={translate:r},s=new Set;if(t)for(const n of Object.keys(t))s.add(n);if(n)for(const t of Object.keys(n))s.add(t);for(const r of s){if("translate"===r)continue;if("rotate"===r&&i)continue;const o=null==t?void 0:t[r],s=null==n?void 0:n[r];void 0===o&&void 0===s||(l[r]=Dn(o,s,e))}return void 0!==o&&(l.rotate=o+Ln(t,n,e)),l}function Ln(t,n,e){const r="number"==typeof(null==t?void 0:t.rotate)?t.rotate:void 0,o="number"==typeof(null==n?void 0:n.rotate)?n.rotate:void 0;if(void 0===r&&void 0===o)return 0;const i=Dn(r,o,e);return"number"==typeof i?i:0}function Zn(t,n,e,r,o,i){const l=t[t.length-1],s=at(l),u=null==s?void 0:s.rotate;if("number"!=typeof u)return;const c=In(n),a=u-Ln(c,c,0),f=Vn(n,e,r,o),d=kn(f.P0,f.P1,f.P2,f.P3,0),v=180*Math.atan2(d[1],d[0])/Math.PI,h=function(t,n){let e=t-n;for(;e>180;)e-=360;for(;e<-180;)e+=360;return e}(v,a);if(Math.abs(h)<=i)return;const m=Pn(n),p=Math.min(m+qn,(m+Pn(e))/2),y=Wn(In(n),In(n),0,r,v,!0);t.push(Fn(p,y))}var qn=.05;function Bn(t,n,e,r,o,i,l,s,u){const c=Vn(n,e,r,o),a=Pn(n),f=Pn(e),d=Nn(n),v=(h=d)?sn([h[1],h[0],h[3],h[2]]):t=>t;var h;const m=In(n),p=In(e),y=function(t,n,e,r,o){const i=[];Gn(t.P0[0],t.P1[0],t.P2[0],t.P3[0],i),Gn(t.P0[1],t.P1[1],t.P2[1],t.P3[1],i),i.sort((t,n)=>t-n);const l=[0];for(const t of i)t>l[l.length-1]+1e-6&&t<.999999&&l.push(t);l.push(1);const s=[],u={T:o-l.length};for(let o=0;o<l.length-1;o++)Jn(l[o],l[o+1],s,t,n,e,r,u);return s}(c,i,l,s,u),b=[];for(const t of y){const n=zn(c.N,t),e=jn(c.C>0?n/c.C:t,0,1),r={u:jn(v(e),0,1),p:e,V:xn(c.P0,c.P1,c.P2,c.P3,t)};if(i){const n=kn(c.P0,c.P1,c.P2,c.P3,t);r.rotateDeg=180*Math.atan2(n[1],n[0])/Math.PI}b.push(r)}let g=d,A=0;const w=t.length-1;for(let n=0;n<b.length;n++){const e=b[n],r=A<1?jn((e.u-A)/(1-A),0,1):1,{left:o,right:l}=cn(g,r),s=0===n?w:t.length-1;o?t[s].e=o:delete t[s].e;const u=a+e.u*(f-a),c=Wn(m,p,e.p,e.V,e.rotateDeg,i);t.push(Fn(u,c)),g=l,A=e.u}}function Gn(t,n,e,r,o){const i=n-t,l=e-n,s=i-2*l+(r-e),u=2*(l-i),c=i;if(Math.abs(s)<1e-10){if(Math.abs(u)>1e-10){const t=-c/u;t>1e-6&&t<.999999&&o.push(t)}return}const a=u*u-4*s*c;if(a<0)return;const f=Math.sqrt(a),d=(-u-f)/(2*s),v=(-u+f)/(2*s);d>1e-6&&d<.999999&&o.push(d),v>1e-6&&v<.999999&&o.push(v)}function Jn(t,n,e,r,o,i,l,s){const u=(t+n)/2,c=xn(r.P0,r.P1,r.P2,r.P3,t),a=xn(r.P0,r.P1,r.P2,r.P3,n),f=n-t,d=xn(r.P0,r.P1,r.P2,r.P3,t+.25*f),v=xn(r.P0,r.P1,r.P2,r.P3,u),h=xn(r.P0,r.P1,r.P2,r.P3,t+.75*f),m=Math.max(Kn(d,c,a),Kn(v,c,a),Kn(h,c,a));let p=!0;if(o){const e=kn(r.P0,r.P1,r.P2,r.P3,t),o=kn(r.P0,r.P1,r.P2,r.P3,n),i=180*Math.atan2(e[1],e[0])/Math.PI,s=180*Math.atan2(o[1],o[0])/Math.PI;let u=Math.abs(i-s);u>180&&(u=360-u),u>l&&(p=!1)}m<=i&&p||s.T<=0||f<1e-6?e.push(n):(s.T-=1,Jn(t,u,e,r,o,i,l,s),Jn(u,n,e,r,o,i,l,s))}function Kn(t,n,e){const r=e[0]-n[0],o=e[1]-n[1],i=r*r+o*o;if(i<1e-20){const e=t[0]-n[0],r=t[1]-n[1];return Math.sqrt(e*e+r*r)}const l=(t[0]-n[0])*o-(t[1]-n[1])*r;return Math.abs(l)/Math.sqrt(i)}var Xn=1;function Yn(t,n){if(t===n)return!0;if(typeof t!=typeof n||null===t||null===n||"object"!=typeof t)return!1;if(Array.isArray(t)!==Array.isArray(n))return!1;const e=Object.keys(t),r=Object.keys(n);return e.length===r.length&&e.every(e=>Yn(t[e],n[e]))}function Hn(t){const n=[];let e;const r=function(t){const n=t.split(/([MLCZmlcz]|[\s,]+)/).map(t=>t.trim()).filter(t=>t&&","!==t),e=[];let r=null;for(const t of n)if(/[MLCZmlcz]/.test(t))r={type:t,values:[]},e.push(r);else if(r){const n=+t;r.values.push(Number.isNaN(n)?0:n)}return e}(t);for(const t of r){const r=t.type,o=t.values;if("M"===r||"m"===r){const t=o[0]||0,r=o[1]||0;e={v:[[t,r]],i:[[t,r]],o:[[t,r]],c:!1},n.push(e);continue}if(e||(e={v:[[0,0]],i:[[0,0]],o:[[0,0]],c:!1},n.push(e)),"L"===r){const t=o[0]||0,n=o[1]||0;e.v.push([t,n]),e.i.push([t,n]),e.o.push([t,n])}else if("C"===r){const t=o[0]||0,n=o[1]||0,r=o[2]||0,i=o[3]||0,l=o[4]||0,s=o[5]||0;e.o[e.o.length-1]=[t,n],e.v.push([l,s]),e.i.push([r,i]),e.o.push([l,s])}else"Z"===r||"z"===r?e.c=!0:console.warn('Unsupported path command "'+r+'"')}return n}function $n(t){return t.startsWith("path(")&&t.endsWith(")")?t.slice(5,-1):/^[MmZzLlHhVvCcSsQqTtAa]/.test(t)?t:void 0}function Qn(t){return"string"==typeof t&&void 0!==$n(t)}function te(t){if(t&&"object"==typeof t&&"string"==typeof t.pathData){const n=$n(t.pathData);return n?{paths:Hn(n)}:t}if(t&&"object"==typeof t&&"paths"in t){const n=t.paths;if(Array.isArray(n)&&n.length>0&&Qn(n[0])){const t=[];for(const e of n){const n=$n(e);n&&t.push(...Hn(n))}return{paths:t}}return t}if(Array.isArray(t)){if(t.length>0&&Qn(t[0])){const n=[];for(const e of t){const t=$n(e);t&&n.push(...Hn(t))}return{paths:n}}return{paths:t}}return Qn(t)?{paths:Hn($n(t))}:t}function ne(t,n){var e;if(t)return Array.isArray(t)?t:(null==(e=null==n?void 0:n.easings)?void 0:e[t])?n.easings[t]:void console.warn("Unknown easing name: "+t)}function ee(t,n){var e;if("string"==typeof t){const r=null==(e=null==n?void 0:n.animations)?void 0:e[t];return r||console.warn("Unknown animation name: "+t),r}return t}function re(t,n,e,r){var o,i;return"d"===t?{paths:rn(null!=(o=null==n?void 0:n.paths)?o:Array.isArray(n)?n:[],null!=(i=null==e?void 0:e.paths)?i:Array.isArray(e)?e:[],r)}:vn.has(t)?en(n||[0,0,0,1],e||[0,0,0,1],r):"transform"!==t||"object"!=typeof n||null===n||Array.isArray(n)||"object"!=typeof e||null===e||Array.isArray(e)?"rotate"===t&&"number"==typeof n&&"number"==typeof e?tn(n,e,r):hn.has(t)||"stroke-dasharray"===t||"strokeDasharray"===t?nn(n||[],e||[],r):tn(+(n||0),+(e||0),r):function(t,n,e){const r=new Set([...Object.keys(null!=t?t:{}),...Object.keys(null!=n?n:{})]),o={};for(const i of r){const r=null==t?void 0:t[i],l=null==n?void 0:n[i];if("rotate"===i||"skew"===i)o[i]=tn(+(null!=r?r:0),+(null!=l?l:0),e);else if("translate"===i||"scale"===i||"origin"===i){const t="scale"===i?[1,1]:[0,0];o[i]=nn(r||t,l||t,e)}else o[i]=null!=l?l:r}return o}(n,e,r)}function oe(t,n,e,r){var o;const i=n.keyframes||[],l=[];for(const n of i){const e=ct(n);let i=at(n);const s=ft(n);"d"===t&&(i=te(i));const u=gn(t)?wn(t):t;vn.has(u)&&(i=null!=(o=dn(i))?o:i);const c={t:e,v:i,e:ne(s,r)},a=dt(n),f=vt(n);a&&(c.tangentIn=a),f&&(c.tangentOut=f),l.push(c)}l.sort((t,n)=>{var e,r;return(null!=(e=t.t)?e:0)-(null!=(r=n.t)?r:0)});const s=n.loop,u=!0===s?{}:s||void 0;return u&&l.length>=2?function(t,n,e,r){var o,i,l,s,u;const f=n.length-1,d=jn(null!=(o=e.segmentCount)?o:f,1,f);let v;v=e.repeatAt===H.start?n.slice(0,d+1):n.slice(f-d);const h=null!=(i=n[0].t)?i:0,m=null!=(l=n[n.length-1].t)?l:0;let p,y;e.repeatAt===H.start?(p=0,y=h):(p=m,y=r);const b=y-p;if(b<=0)return n;const g=null!=(s=v[0].t)?s:0,A=(null!=(u=v[v.length-1].t)?u:0)-g;if(A<=0)return n;const w=v.map(t=>({R:(t.t-g)/A,v:t.v,e:t.e,tangentIn:dt(t),tangentOut:vt(t)})),j=Math.floor(b/A),x=b-j*A,M=x/A,k=[],O=e.repeatAt!==H.start,z=n[n.length-1];let S,P=!1;function N(n,e,r){var o;let i;if(e){i=[];for(let t=w.length-1;t>=0;t--)i.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else i=w;const l=void 0!==r?r:1;for(let e=0;e<i.length;e++){const r=i[e];if(r.R>l+1e-9){const o=i[e-1],s=r.R-o.R,u=(l-o.R)/s,c=o.e?sn(o.e)(u):u,a=re(t,o.v,r.v,c),{left:f}=cn(o.e,u);return k.length>0&&o.R<=l&&(k[k.length-1].e=f),void k.push({t:n+l*A,v:a,e:void 0})}const s=k.length>0?k[k.length-1]:z,u=O&&0===e&&void 0!==s&&Math.abs((null!=(o=s.t)?o:0)-(n+r.R*A))<1e-9;if(u){if(Yn(s.v,r.v)){k.length>0?(s.e=r.e,s.tangentOut=r.tangentOut):(S=r.e,P=!0);continue}k.length>0&&(delete s.tangentIn,delete s.tangentOut)}const c={t:n+r.R*A+(u?Xn:0),v:r.v,e:e<i.length-1?r.e:void 0};r.tangentIn&&(c.tangentIn=r.tangentIn),r.tangentOut&&(c.tangentOut=r.tangentOut),k.push(c)}}if(e.repeatAt===H.start){M>1e-9&&function(n,e,r){let o;if(e){o=[];for(let t=w.length-1;t>=0;t--)o.push({R:1-w[t].R,v:w[t].v,e:t>0?an(w[t-1].e):void 0,tangentIn:w[t].tangentOut,tangentOut:w[t].tangentIn})}else o=w;const i=1-r;for(let e=0;e<o.length;e++){const r=o[e];if(r.R<i-1e-9)continue;const l=o[e-1];if(l&&l.R<i-1e-9&&r.R>i+1e-9){const e=r.R-l.R,o=(i-l.R)/e,s=l.e?sn(l.e)(o):o,u=re(t,l.v,r.v,s),{right:c}=cn(l.e,o);k.push({t:n,v:u,e:c})}const s={t:n+(r.R-i)*A,v:r.v,e:e<o.length-1?r.e:void 0};r.tangentIn&&(s.tangentIn=r.tangentIn),r.tangentOut&&(s.tangentOut=r.tangentOut),k.push(s)}}(p,e.direction===$.alternate&&j%2==0,M);for(let t=0;t<j;t++){const n=j-1-t,r=e.direction===$.alternate&&n%2==0;N(p+x+t*A,r)}}else{for(let t=0;t<j;t++){const n=e.direction===$.alternate&&t%2==0;N(p+t*A,n)}if(M>1e-9){const t=e.direction===$.alternate&&j%2==0;N(p+j*A,t,M)}}return e.repeatAt===H.start?[...k,...n]:P&&n.length>0?[...n.slice(0,-1),a(c({},n[n.length-1]),{e:S}),...k]:[...n,...k]}(t,l,u,e):l}var ie=0;function le(t,n=J.native){const e=et(t)||{},r=function(t){var n;if(t)return null==(n=et(t))?void 0:n.definitions}(t),o=e.duration||1e3,i=[],l=(t,e,i)=>{if(0===e.length)return null;const l=function(t,n,e,r=J.native){const o={};for(const[i,l]of Object.entries(t)){if("transform"===i&&"offsetPath"===l.alongPathMode&&void 0!==t.offsetDistance)continue;const s=oe(i,l,n,e);if(s.length>0){const t={keyframes:s};void 0!==l.autoOrient&&(t.autoOrient=l.autoOrient),void 0!==l.loop&&(t.loop=l.loop),o[i]=r===J.native&&"transform"===i?En(t):t}}return o}(function(t,n){if(!t)return t;const e=n&&"object"==typeof n&&!Array.isArray(n)?n:function(t){var n,e;if(!t||"string"!=typeof t)return;const r={},o=/([a-zA-Z]+)\s*\(([^)]*)\)/g,i=["translate","rotate","skewX","scale"];let l,s=-1;for(;null!==(l=o.exec(t));){const t=l[1],o=i.indexOf(t);if(o<0||o<=s)return;s=o;const u=l[2].split(/[\s,]+/).filter(Boolean).map(Number);if(u.some(t=>Number.isNaN(t)))return;if("translate"===t){if(u.length<1||u.length>2)return;r.translate=[u[0],null!=(n=u[1])?n:0]}else if("rotate"===t){if(1!==u.length)return;r.rotate=u[0]}else if("skewX"===t){if(1!==u.length)return;r.skew=u[0]}else{if(u.length<1||u.length>2)return;r.scale=[u[0],null!=(e=u[1])?e:u[0]]}}return t.replace(/([a-zA-Z]+)\s*\(([^)]*)\)/g,"").replace(/[\s,]/g,"").length?void 0:Object.keys(r).length?r:void 0}(n);if(!e||!Object.keys(e).length)return t;const r=t=>t&&"object"==typeof t&&!Array.isArray(t)?c(c({},e),t):t,o=t[nt];if(o&&"object"==typeof o){const n=o;if(Array.isArray(n.keyframes)){const e=a(c({},n),{keyframes:n.keyframes.map(t=>a(c({},t),{value:r(t.value)}))});return void 0!==e.value&&(e.value=r(e.value)),a(c({},t),{transform:e})}return t}const i=Object.keys(t).filter(t=>hn.has(t));if(1!==i.length)return t;const l=i[0],s=t[l];if(!s||"object"!=typeof s||!Array.isArray(s.keyframes))return t;const u=a(c({},s),{keyframes:s.keyframes.map(t=>a(c({},t),{value:a(c({},e),{[l]:t.value})}))});void 0!==u.value&&(u.value=a(c({},e),{[l]:u.value}));const f=c({},t);return delete f[l],a(c({},f),{transform:u})}(function(t){const n={};for(const e of t)for(const[t,r]of Object.entries(e))n[t]=r;return n}(e),i),o,r,n);return 0===Object.keys(l).length?null:{id:t,animate:l}},s=function(t){var n;if(t)return null==(n=et(t))?void 0:n.bindings}(t);if(s)for(const t of s){const n=t.target.startsWith("#")?t.target.slice(1):t.target,e=t.animateWith.map(t=>ee(t,r)).filter(t=>!!t),o=l(n,e);o&&i.push(o)}const u=t=>{const n=t.animate;if(n&&Object.keys(n).length>0){const e=t.id||"_px_el_"+ ++ie;t.id=e;const o=l(e,function(t,n){if(!t)return[];const e=[];if("string"==typeof t){const r=ee(t,n);r&&e.push(r)}else if(Array.isArray(t))for(const r of t){const t=ee(r,n);t&&e.push(t)}else e.push(t);return e}(n,r),t.transform);o&&i.push(o)}if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n])};if(t.children)for(let n=0;n<t.children.length;n++)u(t.children[n]);return i}function se(t,n,e){var r,o,i,l;const s=n.keyframes||[];if(0===s.length)return null;const{U:u,_:c}=function(t,n){var e,r;const o=t.length-1;let i=t[0],l=t[o>0?1:0];for(let s=0;s<o;s++){const u=null!=(e=t[s].t)?e:0,c=null!=(r=t[s+1].t)?r:0;if(u<=n&&n<=c){i=t[s],l=t[s+1];break}n>c&&s===o-1&&(i=t[o>0?o-1:0],l=t[o])}return{U:i,_:l}}(s,e);let a=u===c?0:(f=e,d=null!=(r=u.t)?r:0,(v=null!=(o=c.t)?o:0)===d?0:0+(f-d)/(v-d)*1);var f,d,v;a=jn(a,0,1);const h=ft(u);if(h&&Array.isArray(h))try{a=sn(h)(a)}catch(t){}let m=gn(t)?wn(t):t,p=null;const y=null==u?void 0:u.v,b=null==c?void 0:c.v;if("d"===m)p=rn(null!=(i=null==y?void 0:y.paths)?i:Array.isArray(y)?y:[],null!=(l=null==b?void 0:b.paths)?l:Array.isArray(b)?b:[],a).map(t=>Qt(t)).join("");else if(vn.has(m))p=fn(en(y||[0,0,0,1],b||[0,0,0,1],a)),m=t;else if("stroke-dasharray"===m)p=nn(y||[],b||[],a).join(" "),m=t;else if("transform"!==m||null===y||"object"!=typeof y||Array.isArray(y))"translate"===m?(p="translate("+nn(y||[0,0],b||[0,0],a).join(",")+")",m="transform"):"rotate"===m?(p="rotate("+tn(+(y||0),+(b||0),a)+")",m="transform"):"scale"===m?(p="scale("+nn(y||[1,1],b||[1,1],a).join(",")+")",m="transform"):p=tn(+(y||0),+(b||0),a);else{const t=new Set([...y?Object.keys(y):[],...b?Object.keys(b):[]]),e={};for(const n of t){const t=null==y?void 0:y[n],r=null==b?void 0:b[n];if("rotate"===n||"skew"===n)e[n]=tn(+(null!=t?t:0),+(null!=r?r:0),a);else if("translate"===n||"scale"===n||"origin"===n){const o="scale"===n?[1,1]:[0,0],i=nn(t||o,r||o,a);e[n]=i}}if(Cn(n)){const t=y.translate,r=b.translate;if(Array.isArray(t)&&Array.isArray(r)){const o=function(t,n,e,r,o,i){const l=Vn(t,n,e,r),s=0===l.C?o:function(t,n){const e=n*t.ds[t.ds.length-1],{ts:r,ds:o}=t,i=o.length-1;if(e<=0)return r[0];if(e>=o[i])return r[i];let l=1,s=i;for(;l<s;){const t=l+s>>>1;o[t]<e?l=t+1:s=t}const u=o[s-1],c=o[s]-u,a=c>0?(e-u)/c:0;return r[s-1]+a*(r[s]-r[s-1])}(l.N,o),u=xn(l.P0,l.P1,l.P2,l.P3,s);if(!i)return{translate:u};const c=kn(l.P0,l.P1,l.P2,l.P3,s);return{translate:u,rotateDeg:180*Math.atan2(c[1],c[0])/Math.PI}}(u,c,[+t[0],+t[1]],[+r[0],+r[1]],a,!!n.autoOrient);e.translate=[o.translate[0],o.translate[1]],void 0!==o.rotateDeg&&(e.rotate=o.rotateDeg)}}p=pn(e,{P:!1}),m="transform"}return mn.has(m)&&"number"==typeof p&&(p=100*p+"%"),{k:m,v:null===p?"":""+p}}function ue(t,n){const e={};for(const[r,o]of Object.entries(t)){const t=se(r,o,n);t&&(e[t.k]=t.v)}return e}var ce="setPlaybackRate: rate must be finite and non-zero";function ae(t){return Number.isFinite(t)&&0!==t}function fe(t,n){return t>0?n===1/0?t:t*(n>0?n:1):0}function de(t,n){return Number.isNaN(t)||t<0?0:Number.isFinite(n)?t>n?n:t:Number.isFinite(t)?t:0}function ve(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:e===1/0?t%r/r:t>=r?1:t/r:0}function he(t,n,e){const r=fe(n,e);return r>0&&Number.isFinite(t)?t<=0?0:t>=1?r:t*r:0}function me(t){const n=globalThis;"function"!=typeof n.cancelAnimationFrame?n.clearTimeout(t):n.cancelAnimationFrame(t)}var pe={document:"document",host:"host",platform:"platform",usage:"usage",internal:"internal"};function ye(t,n){const e=n?n+" ":"";return{warn:(n,r,o)=>{if(null==t?void 0:t.onWarn)return void t.onWarn({kind:n,message:r,detail:o});if(null==t?void 0:t.muteWarn)return;const i=e+n+": "+r;void 0===o?console.warn(i):console.warn(i,o)},error:(n,r,o)=>{const i=function(t){return"string"==typeof t?new Error(t):t}(r);if(null==t?void 0:t.onError)return void t.onError({kind:n,message:i.message,error:i,detail:o});if(null==t?void 0:t.muteError)return;const l=e+n+": "+i.message;void 0===o?console.error(l):console.error(l,o)}}}function be(t){return"scroll"===(null==t?void 0:t.timelineSource)}var ge="cover";function Ae(t,n,e,r){var o;const[i,l]=function(t,n,e){const r=n,o=e;switch(t){case"cover":return[0,r+o];case"entry":return[0,Math.min(r,o)];case"contain":return[Math.min(r,o),Math.max(r,o)];case"exit":return[Math.max(r,o),r+o];case"entry-crossing":return[0,r];case"exit-crossing":return[o,r+o]}}(null!=(o=null==t?void 0:t.phase)?o:ge,e,r);return i+("number"==typeof(null==t?void 0:t.fraction)?t.fraction:n)*(l-i)}function we(t,n,e){const r=null!=e?e:ye(void 0,"[PxAnimator]"),o=[],i=()=>{for(const t of o.splice(0))t()},{startOn:l,outAction:s,scrollIntoViewThreshold:u}=function(t){var n,e,r;return{startOn:null!=(n=null==t?void 0:t.startOn)?n:Y.startOn,outAction:null!=(e=null==t?void 0:t.outAction)?e:Y.outAction,scrollIntoViewThreshold:null!=(r=null==t?void 0:t.scrollIntoViewThreshold)?r:Y.scrollIntoViewThreshold}}(n),c=t.getRootElement();if(!c)return r.warn(pe.host,"setupAnimationTriggers: No root element found for animation."),i;let a=!1;const f=()=>{a&&(a=!1,t.setPlaybackRate(1)),t.play()},d=()=>{switch(s){case"pause":t.pause();break;case"reset":t.cancel();break;case"reverse":a=!0,t.setPlaybackRate(-1),t.play()}};switch(l){case"load":{const t=()=>f();"complete"===document.readyState?t():(window.addEventListener("load",t,{once:!0}),o.push(()=>window.removeEventListener("load",t)));break}case"mouseOver":{let t=!1;const n=()=>{t=!0,f()},e=()=>{t&&d()};c.addEventListener("mouseenter",n),c.addEventListener("mouseleave",e),o.push(()=>{c.removeEventListener("mouseenter",n),c.removeEventListener("mouseleave",e)});break}case"click":{const n=()=>{t.isPlaying()?d():f()};c.addEventListener("click",n),o.push(()=>c.removeEventListener("click",n));break}case"scrollIntoView":{const t=t=>{var n,e;const r=t.boundingClientRect,o=t.intersectionRect;if(!(null==r?void 0:r.height)||!o)return t.intersectionRatio;const i="undefined"!=typeof window&&window.innerHeight?window.innerHeight:1/0,l=null!=(e=null==(n=t.rootBounds)?void 0:n.height)?e:1/0,s=Math.min(i,l),u=Math.min(r.height,Number.isFinite(s)?s:r.height);return u>0?o.height/u:t.intersectionRatio},n=Array.from({length:21},(t,n)=>n/20);let e=!1;const r=new IntersectionObserver(n=>{n.forEach(n=>{n.isIntersecting&&t(n)>=u?(e=!0,f()):e&&(e=!1,d())})},{threshold:n});r.observe(c),o.push(()=>r.disconnect());break}}return i}function je(t){return"#"+t}function xe(t,n,e,r){var o;const i=et(t)||{},l=ye(e,"[PxAnimator]");if(!r)if(t.id){const n=je(t.id);(r=document.querySelector(n))||l.warn(pe.host,"createFrameLoopAnimator: No root element found for selector: "+n)}else l.warn(pe.host,"createFrameLoopAnimator: No root element provided");const s=function(t,n,e){var r;const o=et(t)||{},i=le(t,J.js),l=o.iterations;let s=1;"number"==typeof l&&(s=l||1),"infinite"===l&&(s=1/0),s<1&&(s=1);const u=+(o.duration||bn),c=u&&s?u*(s===1/0?1/0:s):u?(null!=s?s:1)*u:0,a=o.direction||"normal",f=null!=(r=o.fill)?r:"forwards",d="forwards"===f||"both"===f,v="backwards"===f||"both"===f;let h=null,m=!1,p=-(o.delay||0),y=0,b=1,g=!1;const A=o.frameRate,w=A&&A>0?1e3/A:0;let j=0;const x=()=>{const t=y?(Date.now()-y)*b:0;return p+t},M=()=>{let t=x();return Number.isFinite(c)&&t>c&&(t=c),t<0&&(t=0),t};function k(t){let e=function(){const n=u>0?u:1;let e=0,r=0;u>0?(t=jn(t,0,s*n),r=Math.max(0,Math.ceil(t/n)-1),r=Math.min(r,s-1),e=jn((t-r*n)/n,0,1)):e=t;const o=a||"normal";let i=e;return"reverse"===o?i=1-e:"alternate"===o?r%2==1&&(i=1-e):"alternate-reverse"===o&&r%2==0&&(i=1-e),i}();for(const t of i||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){console.warn("Empty or unresolved binding",t);continue}const o=ue(r,e*u);for(const[e,r]of Object.entries(o))n.setAttribute(t.id,e,r)}}o.delay&&(o.delay<0?k(M()):v&&k(0));const O=()=>!!m&&!!n.isConnected()&&(b<0?x()>0:!(Number.isFinite(c)&&M()>=c)),z=t=>{null!==h&&(me(h),h=null),(t||O())&&(h=function(t){const n=globalThis;return"function"==typeof n.requestAnimationFrame?n.requestAnimationFrame(t):n.setTimeout(t,16)}(()=>{h=null,(()=>{var t,r;if(!n.isConnected())return void S();const o=M(),i=x();if(i<0&&b>0)v&&k(0);else{if(b<0&&i<=0)return S(),k(0),void(g||(g=!0,null==(t=null==e?void 0:e.onFinish)||t.call(e)));if(b>0&&c&&Number.isFinite(c)&&o>=c)return S(),k(d?c:0),void(g||(g=!0,null==(r=null==e?void 0:e.onFinish)||r.call(e)));if(w>0){const t=Date.now();if(j&&t-j<w)return;j=t}k(o)}})(),z()}))},S=()=>{if(!m)return;let t=x();Number.isFinite(c)&&t>c&&(t=c),p=t,y=0,m=!1,null!==h&&(me(h),h=null),t>=0?k(t):v&&k(0)},P={isReady:()=>!0,getRootElement:()=>null,isPlaying:()=>O(),play:()=>{var t;(()=>{if(!m){if(b>=0)Number.isFinite(c)&&p>=c&&(p=0);else if(p<=0){if(!Number.isFinite(c))return void console.warn("play: cannot start reverse playback of an infinite animation from time 0");p=c}g=!1,m=!0,y=Date.now(),z(!0)}})(),null==(t=null==e?void 0:e.onPlay)||t.call(e)},pause:()=>{var t;S(),null==(t=null==e?void 0:e.onPause)||t.call(e)},cancel:()=>{var t;S(),p=0,y=0,m=!1,g=!1,k(p),null==(t=null==e?void 0:e.onCancel)||t.call(e)},finish:()=>{((t=!0)=>{var n;p=Number.isFinite(c)?c:M(),y=0,m=!1,null!==h&&(me(h),h=null),k(d?p:0),t&&!g&&(g=!0,null==(n=null==e?void 0:e.onFinish)||n.call(e))})(!0)},setPlaybackRate:t=>{if(!ae(t))return void console.warn(ce);let n=x();Number.isFinite(c)&&n>c&&(n=c),t<0!=b<0&&(g=!1),b=t,p=n,m&&(y=Date.now())},getCurrentTime:()=>M(),setCurrentTime:t=>{t=de(t,c),p=t,m&&(y=Date.now()),(!Number.isFinite(c)||t<c)&&(g=!1),k(M())},getCurrentProgress:()=>ve(M(),u,s),setCurrentProgress:t=>{P.setCurrentTime(he(t,u,s))},destroy:()=>{var t;P.cancel(),null==(t=null==e?void 0:e.onRemove)||t.call(e)}};return P}(t,n||function(t,n){const e=new Set,r=null!=n?n:ye(void 0,"[PxAnimator]");return{isConnected:()=>!t||t.isConnected,setAttribute:(n,o,i)=>{o=wn(o);const l=je(n),s=(null==t?void 0:t.querySelectorAll(l))||document.querySelectorAll(l);0!==s.length||e.has(l)||(e.add(l),r.warn(pe.host,'setAttribute: No elements found for selector "'+l+'"'));for(let t=0;t<s.length;t++){const n=s[t],e="transform"===o&&"pattern"===n.tagName?"patternTransform":o;n.setAttribute(e,i),yn.has(o)&&(n.style[o]=i)}}}}(r,l),e),u=a(c({},s),{getRootElement:()=>r||null});if(be(i))i.trigger&&l.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(u,null!=(o=i.trigger)?o:{},l),n=u.destroy.bind(u);u.destroy=()=>{t(),n()}}return u}function Me(t,n,e,r){let o=at(t);const i=ft(t),l={offset:n,easing:i&&Array.isArray(i)?"cubic-bezier("+i.join(",")+")":void 0};let s,u=e;var c;return vn.has(e)&&Array.isArray(o)?s=fn(o):"transform"!==e||null===o||"object"!=typeof o||Array.isArray(o)?hn.has(e)?(Array.isArray(o)&&("translate"===e&&(o=o.map(t=>t+"px")),o=o.join(",")),"rotate"===e&&(o+="deg"),s=e+"("+o+")",u="transform"):s="d"===e?'path("'+(o&&"object"==typeof o&&Array.isArray(o.paths)?o.paths:[]).map(t=>Qt(t,!0)).join("")+'")':mn.has(e)&&"number"==typeof o?100*o+"%":""+o:(s=pn(o,{P:!0}),u="transform"),CSS.supports(wn(u),s)||r.add(u),u=(c=u).includes("-")?c.replace(/-([a-z])/g,(t,n)=>n.toUpperCase()):c,l[u]=s,l}function ke(t,n,e){var r,o,i,l,s;const u=[];for(let f=0;f<n.length;f++){const d=n[f],v=null!=(r=d.t)?r:0;if(v<0){const e=n[f+1];if(e&&(null!=(o=e.t)?o:0)>=0){const n=(0-v)/((null!=(i=e.t)?i:0)-v),r=d.e?sn(d.e)(n):n,{right:o}=cn(d.e,n);u.push({t:0,v:re(t,d.v,e.v,r),e:o})}continue}if(v>e){const r=n[f-1];if(r&&(null!=(l=r.t)?l:0)<=e){const n=null!=(s=r.t)?s:0,o=(e-n)/(v-n),i=r.e?sn(r.e)(o):o,{left:l}=cn(r.e,o);u.length>0&&(u[u.length-1]=a(c({},u[u.length-1]),{e:l})),u.push({t:e,v:re(t,r.v,d.v,i),e:void 0})}break}u.push(d)}return u}function Oe(t,n,e){var r;const o=new Map;for(const[i,l]of Object.entries(t)){const t=e.duration||1,s=ke(i,l.keyframes||[],t),u=[];for(let e=0;e<s.length;e++){const o=s[e],l=Me(o,jn((null!=(r=o.t)?r:0)/t,0,1),i,n);0===e&&(l.offset||0)>0&&u.push(a(c({},l),{offset:0})),u.push(l)}u.length>0&&(u[u.length-1].offset||0)<1&&u.push(a(c({},u[u.length-1]),{offset:1})),u.length>0&&o.set(i,u)}return o}function ze(t,n,e,r,o){var i,l;const s=et(t)||{},u=ye(n,"[PxAnimator]");if(!e)if(t.id){const n=je(t.id);(e=document.querySelector(n))||u.warn(pe.host,"createWebApiAnimator: No root element found for selector: "+n)}else u.warn(pe.host,"createWebApiAnimator: No root element provided");const c=le(t,J.native),a=[],f=s.iterations;let d;"number"==typeof f&&(d=f),"infinite"===f&&(d=1/0);const v=new Set;let h=!1,m=!1;(null==c?void 0:c.length)||u.warn(pe.document,"createWebApiAnimator: No animation bindings defined");for(const t of c||[]){const r=t.animate;if(!r||"object"!=typeof r||Array.isArray(r)){u.warn(pe.document,"createWebApiAnimator: Empty or unresolved binding",t);continue}const l=je(t.id),c=(null==e?void 0:e.querySelectorAll(l))||document.querySelectorAll(l);0===c.length&&u.warn(pe.host,'createWebApiAnimator: No elements found for selector "'+l+'"');const f=Oe(r,v,s),p=s.delay&&s.delay>0?s.delay:void 0;let y;if(s.delay&&s.delay<0&&s.duration){const t=-s.delay;y=d===1/0?t%s.duration:Math.min(t,s.duration*(null!=d?d:1))}const b={duration:s.duration,delay:p,fill:null!=(i=s.fill)?i:"forwards",direction:s.direction,iterations:d};for(let t=0;t<c.length;t++){const e=c[t];for(const[,t]of f)if(t.length>0)try{const r=new KeyframeEffect(e,t,b),i=new Animation(r,o?o.timeline:document.timeline);if(o){const t=i;o.rangeStart&&(t.rangeStart=o.rangeStart),o.rangeEnd&&(t.rangeEnd=o.rangeEnd)}(null==n?void 0:n.onFinish)&&(i.onfinish=()=>{var t;h||(h=!0,null==(t=n.onFinish)||t.call(n))}),(null==n?void 0:n.onRemove)&&(i.onremove=()=>{var t;m||(m=!0,null==(t=n.onRemove)||t.call(n))}),void 0!==y&&(i.currentTime=y),a.push(i)}catch(t){u.warn(pe.internal,"createWebApiAnimator: could not build the animation",t)}}}if(!r&&v.size)return u.warn(pe.platform,"Unsupported CSS attrs: "+[...v].join(", ")),null;const p={isReady:()=>!0,getRootElement:()=>e||null,isPlaying:()=>{var t;return"running"===(null==(t=a[0])?void 0:t.playState)},play:()=>{var t;h=!1,a.forEach(t=>t.play()),null==(t=null==n?void 0:n.onPlay)||t.call(n)},pause:()=>{var t;a.forEach(t=>t.pause()),null==(t=null==n?void 0:n.onPause)||t.call(n)},cancel:()=>{var t;h=!1,a.forEach(t=>t.cancel()),null==(t=null==n?void 0:n.onCancel)||t.call(n)},finish:()=>{var t;for(const n of a)try{(null==(t=n.effect)?void 0:t.getTiming().iterations)===1/0?(n.effect.updateTiming({iterations:1}),n.finish(),n.effect.updateTiming({iterations:1/0})):n.finish()}catch(t){n.cancel()}},setPlaybackRate:t=>ae(t)?(a.forEach(n=>n.playbackRate=t),p):(u.warn(pe.usage,ce),p),getCurrentTime:()=>{var t,n;const e=null!=(n=null==(t=a[0])?void 0:t.currentTime)?n:null;return null!==e?+e:null},setCurrentTime:t=>{var n;const e=function(t,n){return t>0?n===1/0?1/0:t*(n>0?n:1):0}(null!=(n=s.duration)?n:0,null!=d?d:1),r=e>0?de(t,e):Math.max(0,t);h=!1,a.forEach(t=>{t.currentTime=r})},getCurrentProgress:()=>{var t;const n=p.getCurrentTime();return null===n?null:ve(n,null!=(t=s.duration)?t:0,null!=d?d:1)},setCurrentProgress:t=>{var n;p.setCurrentTime(he(t,null!=(n=s.duration)?n:0,null!=d?d:1))},destroy:()=>{var t;p.cancel(),a.splice(0,a.length),m||(m=!0,null==(t=null==n?void 0:n.onRemove)||t.call(n))}};if("scroll"===s.timelineSource)s.trigger&&u.warn(pe.usage,"scroll timeline: `animator.trigger` is ignored (triggers do not apply to scroll-driven playback)");else{const t=we(p,null!=(l=s.trigger)?l:{},u),n=p.destroy.bind(p);p.destroy=()=>{t(),n()}}return o&&a.forEach(t=>t.play()),p}function Se(t,n,e){var r,o,i;const l="number"==typeof(null==t?void 0:t.fraction)?t.fraction:n,s=null==(o=null==(r=globalThis.CSS)?void 0:r.percent)?void 0:o.call(r,100*l);if(void 0!==s)return e?{rangeName:null!=(i=null==t?void 0:t.phase)?i:"cover",offset:s}:{offset:s}}function Pe(t,n){const e=document.body,r=document.documentElement;for(let o=t.parentElement;o;o=o.parentElement){if(o===e||o===r)return null;const t=getComputedStyle(o),i="y"===n?t.overflowY:t.overflowX;if("auto"===i||"scroll"===i||"hidden"===i||"overlay"===i)return o}return null}function Ne(){return document.scrollingElement||document.documentElement}var Ce="parent",Te="scroller";function Ve(t,n,e){var r,o;const i=null!=e?e:ye(void 0,"[PxAnimator]"),l=null==n?void 0:n.trim();if(!l)return t;if(l===Ce){let n=null;for(let e=t.parentElement;e&&e!==document.body;e=e.parentElement){const t=getComputedStyle(e).position;"sticky"!==t&&"fixed"!==t||(n=e)}return null!=(o=null!=(r=null==n?void 0:n.parentElement)?r:t.parentElement)?o:t}if(l===Te)return Pe(t,"y")||Pe(t,"x")||Ne();let s=null;try{s=document.querySelector(l)}catch(n){return i.warn(pe.document,'scroll timeline: subject "'+l+'" is not a valid selector — measuring the SVG itself'),t}return s||(i.warn(pe.host,'scroll timeline: subject "'+l+'" matched no element — measuring the SVG itself'),t)}function Re(t,n){const e=t;if(!(null==n?void 0:n.pin)||!e.style)return()=>{};const r=e.style,o=r.position,i=r.top;r.position="sticky";const l="center"===n.pinAlign?.5:"bottom"===n.pinAlign?1:0,s=()=>{var e;const o=null!=(e=n.pinOffset)?e:0;if(!l)return void(r.top=o+"px");const i=function(t){const n=Pe(t,"y");return n?n.clientHeight:document.documentElement.clientHeight}(t),s=t.getBoundingClientRect().height;r.top=Math.round((i-s)*l+o)+"px"};s();let u=null;const c=l?s:null;l&&(c&&window.addEventListener("resize",c),"undefined"!=typeof ResizeObserver&&(u=new ResizeObserver(s),u.observe(t)));let a=null;const f=t.parentElement;return n.pinDistance&&n.pinDistance>0&&f&&(a=document.createElement("div"),a.setAttribute("data-px-pin",""),a.style.height=100*n.pinDistance+"vh",f.insertBefore(a,t),a.appendChild(t)),()=>{c&&window.removeEventListener("resize",c),null==u||u.disconnect(),r.position=o,r.top=i,(null==a?void 0:a.parentElement)&&(a.parentElement.insertBefore(t,a),a.remove())}}function Ue(t,n,e){let r,o=n;t.resetOnFinish&&(o=a(c({},n),{onFinish:()=>{var t;null==(t=null==n?void 0:n.onFinish)||t.call(n),null==r||r.cancel()}}));const i=e(o);return r=i,t.debugGlobalName&&(window[t.debugGlobalName]=i),i}function _e(t){const n=function(t){if(!(null==t?void 0:t.doc))throw new Error("createAnimator: `doc` is required");return t.doc}(t);return function(t,n){try{return n()}catch(n){const e=function(t){return t instanceof Error?t:new Error(String(t))}(n);return ye(t,"[PxAnimator]").error(pe.internal,"createAnimator: could not build the player — "+e.message,e),{isReady:()=>!1,getRootElement:()=>null,isPlaying:()=>!1,play:()=>{},pause:()=>{},cancel:()=>{},finish:()=>{},setPlaybackRate:()=>{},getCurrentTime:()=>null,setCurrentTime:()=>{},getCurrentProgress:()=>null,setCurrentProgress:()=>{},destroy:()=>{}}}}(t,()=>function(t,n,e,r){const o=et(t)||{},i=ye(e,"[PxAnimator]");return be(o)?Ue(o,e,e=>{var l;let s=()=>{};if(o.engine!==K.js&&r){s=Re(r,o.scroll);const n=function(t,n,e){var r,o,i,l;const s=null!=e?e:ye(void 0,"[PxAnimator]");if(!n||!be(n))return null;const u=n.scroll||{},c=null!=(r=u.kind)?r:"view";if(u.smoothing)return s.warn(pe.platform,"scroll timeline: `smoothing` needs the built-in driver — using the built-in driver instead of the browser timeline"),null;const a=globalThis,f="view"===c,d=f?a.ViewTimeline:a.ScrollTimeline;if("function"!=typeof d)return null;const v=null!=(o=u.axis)?o:"block";let h;try{h=new d(f?{subject:Ve(t,u.subject,s),axis:v}:{source:"root"===u.source?Ne():Pe(t,"y")||Pe(t,"x")||Ne(),axis:v})}catch(t){return s.warn(pe.platform,"scroll timeline: native timeline construction failed — falling back to the player measuring progress itself",t),null}return{timeline:h,rangeStart:Se(null==(i=u.range)?void 0:i.start,0,f),rangeEnd:Se(null==(l=u.range)?void 0:l.end,1,f)}}(r,o,i);if(n){const i=ze(t,e,r,X(o.engine),n);if(i){const t=i.destroy.bind(i);return i.destroy=()=>{s(),t()},i}}s(),s=()=>{}}const u=(o.engine!==K.js?ze(t,e,r,X(o.engine)):null)||xe(t,n,e,r),c=(null==(l=u.getRootElement)?void 0:l.call(u))||r;if(c){s=Re(c,o.scroll);const t=("number"==typeof(null==(a=o)?void 0:a.duration)&&a.duration>0?a.duration:bn)*("number"==typeof(null==a?void 0:a.iterations)&&a.iterations>0?a.iterations:1),n=function(t,n,e,r){var o,i;if(!n||!be(n))return null;const l=null!=r?r:ye(void 0,"[PxAnimator]"),s=n.scroll||{},u=null!=(o=s.kind)?o:"view",c=Ve(t,s.subject,l),a=Pe(t,"y")||Pe(t,"x"),f="scroll"===u&&"root"===s.source?Ne():a||Ne(),d=f===Ne(),v=function(t,n){const e=null!=t?t:"block";if("x"===e||"y"===e)return e;const r=!!n&&n.startsWith("vertical");return"inline"===e?r?"y":"x":r?"x":"y"}(s.axis,getComputedStyle(f).writingMode),h=()=>{if("scroll"===u)return function(t,n,e){var r,o;const i=n>0?jn(t/n,0,1):1,l="number"==typeof(null==(r=null==e?void 0:e.start)?void 0:r.fraction)?e.start.fraction:0,s="number"==typeof(null==(o=null==e?void 0:e.end)?void 0:o.fraction)?e.end.fraction:1;return s<=l?i>=s?1:0:jn((i-l)/(s-l),0,1)}("y"===v?f.scrollTop:f.scrollLeft,"y"===v?f.scrollHeight-f.clientHeight:f.scrollWidth-f.clientWidth,s.range);const t=c.getBoundingClientRect();let n,e;if(d)n=0,e="y"===v?document.documentElement.clientHeight:document.documentElement.clientWidth;else{const t=f.getBoundingClientRect();n="y"===v?t.top:t.left,e="y"===v?f.clientHeight:f.clientWidth}return function(t,n,e,r){const o=e-t,i=Ae(null==r?void 0:r.start,0,n,e),l=Ae(null==r?void 0:r.end,1,n,e);return l<=i?o>=l?1:0:jn((o-i)/(l-i),0,1)}(("y"===v?t.top:t.left)-n,"y"===v?t.height:t.width,e,s.range)},m=Math.max(0,null!=(i=s.smoothing)?i:0)/1e3;let p=!1,y=null,b=null,g=0,A=null;const w=()=>{A=null,p||(t=>{if(!m)return void e(t);if(null===y)return y=t,void e(t);if(null!==b)return;g=0;const n=t=>{if(b=null,p)return;const r=g?Math.min(.1,(t-g)/1e3):1/60;g=t;const o=h(),i=1-Math.exp(-r/m);y+=(o-y)*i,Math.abs(o-y)<.001&&(y=o),e(y),y!==o&&(b=requestAnimationFrame(n))};b=requestAnimationFrame(n)})(h())},j=()=>{p||null!==A||(A=requestAnimationFrame(w))},x=d?window:f;let M;x.addEventListener("scroll",j,{passive:!0}),window.addEventListener("resize",j,{passive:!0}),"undefined"!=typeof ResizeObserver&&(M=new ResizeObserver(j),M.observe(c),c!==t&&M.observe(t),d||M.observe(f));const k={destroy:()=>{p||(p=!0,x.removeEventListener("scroll",j),window.removeEventListener("resize",j),null==M||M.disconnect(),null!==A&&(cancelAnimationFrame(A),A=null),null!==b&&(cancelAnimationFrame(b),b=null))},refresh:()=>{p||(y=h(),e(y))}};return k.refresh(),k}(c,o,n=>u.setCurrentTime(n*t),i);if(n){const t=u.destroy.bind(u);u.destroy=()=>{n.destroy(),s(),t()}}}else i.warn(pe.host,"scroll timeline: no root element to observe — animation will stay at frame 0");var a;return u}):Ue(o,e,e=>o.engine===K.js?xe(t,n,e,r):ze(t,e,r,X(o.engine))||xe(t,n,e,r))}(n,void 0,function(t){const{onPlay:n,onPause:e,onCancel:r,onFinish:o,onRemove:i,onStop:l,onWarn:s,onError:u,muteWarn:c,muteError:a}=null!=t?t:{},f=t=>t||l?()=>{null==t||t(),null==l||l()}:void 0;return{onPlay:n,onPause:f(e),onCancel:f(r),onFinish:f(o),onRemove:f(i),onWarn:s,onError:u,muteWarn:c,muteError:a}}(t),null))}var Ee,Fe="doc";return Ee=d,((n,r,i,s)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let i of o(r))l.call(n,i)||void 0===i||t(n,i,{get:()=>r[i],enumerable:!(s=e(r,i))||s.enumerable});return n})(t({},"__esModule",{value:!0}),Ee)})();
|
package/dist/internal.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal.ts","../src/shared/PxAnimatorKeys.ts"],"sourcesContent":["/*---------------------------------------------------------------------------------------\n * Copyright (c) Pixodesk LTD.\n * Licensed under the MIT License. See the LICENSE file in the project root for details.\n *---------------------------------------------------------------------------------------*/\n\n// ============================================================================\n// @pixodesk/svg-animator-web/internal — NOT a public API.\n//\n// Everything here is `@internal`: exported so the Pixodesk editor and the sibling player\n// packages stay in lockstep with the player, and for no other reason. It may change in any\n// release, with no note and no deprecation. If you are not this repository, import from\n// `@pixodesk/svg-animator-web` instead — see
|
|
1
|
+
{"version":3,"sources":["../src/internal.ts","../src/shared/PxAnimatorKeys.ts"],"sourcesContent":["/*---------------------------------------------------------------------------------------\n * Copyright (c) Pixodesk LTD.\n * Licensed under the MIT License. See the LICENSE file in the project root for details.\n *---------------------------------------------------------------------------------------*/\n\n// ============================================================================\n// @pixodesk/svg-animator-web/internal — NOT a public API.\n//\n// Everything here is `@internal`: exported so the Pixodesk editor and the sibling player\n// packages stay in lockstep with the player, and for no other reason. It may change in any\n// release, with no note and no deprecation. If you are not this repository, import from\n// `@pixodesk/svg-animator-web` instead — see dev-docs/reviews/api-surface-review.md §4.\n//\n// These names are ALSO still on the main entry for this release, so the editor keeps working\n// against the published package until it moves across. The next release drops them from there.\n// ============================================================================\n\n// The key the editor writes into every exported SVG+JS (`createAnimator({\"doc\": …})`), so the\n// two sides cannot disagree about its spelling.\nexport { PX_ANIMATOR_DOC_KEY } from './shared/PxAnimatorKeys';\n\n// The public options plus `adapter` — what the React and Vue components build the player with.\nexport type { PxInternalAnimatorOptions } from './animator/PxAnimator';\n","/*---------------------------------------------------------------------------------------\n * Copyright (c) Pixodesk LTD.\n * Licensed under the MIT License. See the LICENSE file in the project root for details.\n *---------------------------------------------------------------------------------------*/\n\n/**\n * Wire keys shared by every entry point.\n *\n * These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a\n * top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /\n * `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so\n * importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —\n * which silently made the pre-rendered builds the same size as the full one until this\n * constant was moved out. See dev-docs/plans/prerendered-player-builds.md.\n *\n * That block is gone (API review §4) and the package now declares `\"sideEffects\": false`, but\n * keeping these here costs nothing and removes the trap for good.\n */\n\n/**\n * Key under which `createAnimator` options carry the inline animation document. The editor\n * writes it into every exported SVG+JS — `createAnimator({\"doc\": …})` — so it is part of the\n * export format, which is why it is a named constant and not a literal.\n * @internal\n */\nexport const PX_ANIMATOR_DOC_KEY = 'doc';\n\n/** Key under which `createAnimator` options carry the per-instance `timeline` override. */\nexport const PX_ANIMATOR_TIMELINE_KEY = 'timeline';\n\n/** Key that makes the override start from the player's default timeline instead of the document's. */\nexport const PX_ANIMATOR_RESET_KEY = 'resetTimeline';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACyBO,IAAM,sBAAsB;","names":[]}
|
package/dist/internal.d.cts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as PxInternalAnimatorOptions } from './PxAnimator-yjuSFhQw.cjs';
|
|
2
2
|
import '@pixodesk/svg-animator-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Wire keys shared by every entry point.
|
|
6
|
+
*
|
|
7
|
+
* These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a
|
|
8
|
+
* top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /
|
|
9
|
+
* `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so
|
|
10
|
+
* importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —
|
|
11
|
+
* which silently made the pre-rendered builds the same size as the full one until this
|
|
12
|
+
* constant was moved out. See dev-docs/plans/prerendered-player-builds.md.
|
|
13
|
+
*
|
|
14
|
+
* That block is gone (API review §4) and the package now declares `"sideEffects": false`, but
|
|
15
|
+
* keeping these here costs nothing and removes the trap for good.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Key under which `createAnimator` options carry the inline animation document. The editor
|
|
19
|
+
* writes it into every exported SVG+JS — `createAnimator({"doc": …})` — so it is part of the
|
|
20
|
+
* export format, which is why it is a named constant and not a literal.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
declare const PX_ANIMATOR_DOC_KEY = "doc";
|
|
24
|
+
|
|
25
|
+
export { PX_ANIMATOR_DOC_KEY };
|
package/dist/internal.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { e as PxInternalAnimatorOptions } from './PxAnimator-yjuSFhQw.js';
|
|
2
2
|
import '@pixodesk/svg-animator-core';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Wire keys shared by every entry point.
|
|
6
|
+
*
|
|
7
|
+
* These live here rather than in `PxAnimator.ts` on purpose: that module used to end with a
|
|
8
|
+
* top-level `if (typeof window !== 'undefined')` block publishing `createAnimator` /
|
|
9
|
+
* `loadTagAnimators` as globals. A module-level side effect cannot be tree-shaken, so
|
|
10
|
+
* importing ANY symbol from `PxAnimator.ts` pulled the entire full player in with it —
|
|
11
|
+
* which silently made the pre-rendered builds the same size as the full one until this
|
|
12
|
+
* constant was moved out. See dev-docs/plans/prerendered-player-builds.md.
|
|
13
|
+
*
|
|
14
|
+
* That block is gone (API review §4) and the package now declares `"sideEffects": false`, but
|
|
15
|
+
* keeping these here costs nothing and removes the trap for good.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Key under which `createAnimator` options carry the inline animation document. The editor
|
|
19
|
+
* writes it into every exported SVG+JS — `createAnimator({"doc": …})` — so it is part of the
|
|
20
|
+
* export format, which is why it is a named constant and not a literal.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
declare const PX_ANIMATOR_DOC_KEY = "doc";
|
|
24
|
+
|
|
25
|
+
export { PX_ANIMATOR_DOC_KEY };
|
package/dist/internal.js
CHANGED
package/dist/internal.min.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,
|
|
1
|
+
"use strict";var e,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,a={};((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(a,{PX_ANIMATOR_DOC_KEY:()=>c}),module.exports=(e=a,((e,a,c,p)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let c of o(a))n.call(e,c)||void 0===c||t(e,c,{get:()=>a[c],enumerable:!(p=r(a,c))||p.enumerable});return e})(t({},"__esModule",{value:!0}),e));var c="doc";
|