PageSourceSearch

https://unframer.co/assets/is-svg-component-BQMeP-CJ.js

js unframer.co collected 2026-10-06 19:29:42 UTC 35,362 bytes, 1 lines download raw bytes

1globalThis.STRADA_RELEASE={commit:`8baab3aec8ff48dc5fbac483694f40eec8e5f6b2`,branch:`preview`,deploymentId:`8baab3aec8ff48dc5fbac483694f40eec8e5f6b2`};import{i as e}from"./rolldown-runtime-BO1D7fPK.js";function addUniqueItem(e,t){e.indexOf(t)===-1&&e.push(t)}function removeItem(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var clamp=(e,t,n)=>n>t?t:n<e?e:n,warning=()=>{},invariant=()=>{},t={},isNumericalString=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),isObject=e=>typeof e==`object`&&!!e,isZeroValueString=e=>/^0[^.\s]+$/u.test(e);function memo(e){let t;return()=>(t===void 0&&(t=e()),t)}var noop=e=>e,SubscriptionManager=class{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},secondsToMilliseconds=e=>e*1e3,millisecondsToSeconds=e=>e/1e3,velocityPerSecond=(e,t)=>t?1e3/t*e:0,isBezierDefinition=e=>Array.isArray(e)&&typeof e[0]==`number`,n=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function createRenderStep(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function triggerCallback(t){a.has(t)&&(s.schedule(t),e()),t(o)}let s={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(triggerCallback),t.clear(),r=!1,i&&(i=!1,s.process(e))}};return s}var r=40;function createRenderBatcher(e,i){let a=!1,o=!0,s={delta:0,timestamp:0,isProcessing:!1},flagRunNextFrame=()=>a=!0,c=n.reduce((e,t)=>(e[t]=createRenderStep(flagRunNextFrame),e),{}),{setup:l,read:u,resolveKeyframes:d,preUpdate:f,update:p,preRender:m,render:h,postRender:g}=c,processBatch=()=>{let n=t.useManualTiming,c=n?s.timestamp:performance.now();a=!1,n||(s.delta=o?1e3/60:Math.max(Math.min(c-s.timestamp,r),1)),s.timestamp=c,s.isProcessing=!0,l.process(s),u.process(s),d.process(s),f.process(s),p.process(s),m.process(s),h.process(s),g.process(s),s.isProcessing=!1,a&&i&&(o=!1,e(processBatch))},wake=()=>{a=!0,o=!0,s.isProcessing||e(processBatch)},_=n.reduce((e,t)=>{let n=c[t];return e[t]=(e,t=!1,r=!1)=>(a||wake(),n.schedule(e,t,r)),e},{}),cancel=e=>{for(let t=0;t<n.length;t++)c[n[t]].cancel(e)};return{schedule:_,cancel,state:s,steps:c}}var{schedule:i,cancel:a,state:o,steps:s}=createRenderBatcher(typeof requestAnimationFrame<`u`?requestAnimationFrame:noop,!0),c;function clearTime(){c=void 0}var l={now:()=>(c===void 0&&l.set(o.isProcessing||t.useManualTiming?o.timestamp:performance.now()),c),set:e=>{c=e,queueMicrotask(clearTime)}},checkStringStartsWith=e=>t=>typeof t==`string`&&t.startsWith(e),u=checkStringStartsWith(`--`),d=checkStringStartsWith(`var(--`),isCSSVariableToken=e=>d(e)?f.test(e.split(`/*`)[0].trim()):!1,f=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function containsCSSVariable(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var p={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},m={...p,transform:e=>clamp(0,1,e)},h={...p,default:1},sanitize=e=>Math.round(e*1e5)/1e5,g=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function isNullish(e){return e==null}var _=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,isColorString=(e,t)=>n=>!!(typeof n==`string`&&_.test(n)&&n.startsWith(e)||t&&!isNullish(n)&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(g);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},clampRgbUnit=e=>clamp(0,255,e),v={...p,transform:e=>Math.round(clampRgbUnit(e))},y={test:isColorString(`rgb`,`red`),parse:splitColor(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+v.transform(e)+`, `+v.transform(t)+`, `+v.transform(n)+`, `+sanitize(m.transform(r))+`)`};function parseHex(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
1a:i?parseInt(i,16)/255:1}}var b={test:isColorString(`#`),parse:parseHex,transform:y.transform},createUnitType=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),x=createUnitType(`deg`),S=createUnitType(`%`),C=createUnitType(`px`),ee=createUnitType(`vh`),te=createUnitType(`vw`),w={...S,parse:e=>S.parse(e)/100,transform:e=>S.transform(e*100)},T={test:isColorString(`hsl`,`hue`),parse:splitColor(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+S.transform(sanitize(t))+`, `+S.transform(sanitize(n))+`, `+sanitize(m.transform(r))+`)`},E={test:e=>y.test(e)||b.test(e)||T.test(e),parse:e=>y.test(e)?y.parse(e):T.test(e)?T.parse(e):b.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?y.transform(e):T.transform(e),getAnimatableNone:e=>{let t=E.parse(e);return t.alpha=0,E.transform(t)}},ne=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function test(e){return isNaN(e)&&typeof e==`string`&&(e.match(g)?.length||0)+(e.match(ne)?.length||0)>0}var re=`number`,ie=`color`,ae=`var`,oe=`var(`,D="${}",se=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function analyseComplexValue(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(se,e=>(E.test(e)?(r.color.push(a),i.push(ie),n.push(E.parse(e))):e.startsWith(oe)?(r.var.push(a),i.push(ae),n.push(e)):(r.number.push(a),i.push(re),n.push(parseFloat(e))),++a,D)).split(D),indexes:r,types:i}}function parseComplexValue(e){return analyseComplexValue(e).values}function buildTransformer({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===re?sanitize(r[a]):e===ie?E.transform(r[a]):r[a]}return i}}function createTransformer(e){return buildTransformer(analyseComplexValue(e))}var convertNumbersToZero=e=>typeof e==`number`?0:E.test(e)?E.getAnimatableNone(e):e,convertToZero=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:convertNumbersToZero(e);function getAnimatableNone$1(e){let t=analyseComplexValue(e);return buildTransformer(t)(t.values.map((e,n)=>convertToZero(e,t.split[n])))}e(getAnimatableNone$1,`getAnimatableNone`);var O={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1},mixNumber=(e,t,n)=>e+(t-e)*n,generateLinearEasing=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},isNotNull=e=>e!==null;function getFinalKeyframe(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(isNotNull),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var WithPromise=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}};function fillWildcards(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var radToDeg=e=>e*180/Math.PI,rotate=e=>rebaseAngle(radToDeg(Math.atan2(e[1],e[0]))),ce={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate,rotateZ:rotate,skewX:e=>radToDeg(Math.atan(e[1])),skewY:e=>radToDeg(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},rebaseAngle=e=>(e%=360,e<0&&(e+=360),e),k=rotate,scaleX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),scaleY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),le={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX,scaleY,scale:e=>(scaleX(e)+scaleY(e))/2,rotateX:e=>rebaseAngle(radToDeg(Math.atan2(e[6],e[5]))),rotateY:e=>rebaseAngle(radToDeg(Math.atan2(-e[2],e[0]))),rotateZ:k,rotate:k,skewX:e=>radToDeg(Math.atan(e[4])),skewY:e=>radToDeg(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function defaultTransformValue(e){return+!!e.includes(`scale`)}
1function parseValueFromTransform(e,t){if(!e||e===`none`)return defaultTransformValue(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=le,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=ce,i=t}if(!i)return defaultTransformValue(t);let a=r[t],o=i[1].split(`,`).map(convertTransformToNumber);return typeof a==`function`?a(o):o[a]}var readTransformValue=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return parseValueFromTransform(n,t)};function convertTransformToNumber(e){return parseFloat(e.trim())}var A=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],j=new Set([...A,`pathRotation`]),isNumOrPxType=e=>e===p||e===C,ue=new Set([`x`,`y`,`z`]),de=A.filter(e=>!ue.has(e));function removeNonTranslationalTransform(e){let t=[];return de.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var M={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>parseValueFromTransform(t,`x`),y:(e,{transform:t})=>parseValueFromTransform(t,`y`)};M.translateX=M.x,M.translateY=M.y;var N=new Set,P=!1,F=!1,I=!1;function measureAllKeyframes(){if(F){let e=Array.from(N).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=removeNonTranslationalTransform(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}F=!1,P=!1,N.forEach(e=>e.complete(I)),N.clear()}function readAllKeyframes(){N.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(F=!0)})}function flushKeyframeResolvers(){I=!0,readAllKeyframes(),measureAllKeyframes(),I=!1}var KeyframeResolver=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(N.add(this),P||(P=!0,i.read(readAllKeyframes),i.resolveKeyframes(measureAllKeyframes))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}fillWildcards(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),N.delete(this)}cancel(){this.state===`scheduled`&&(N.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},isCSSVar=e=>e.startsWith(`--`);function setStyle(e,t,n){isCSSVar(t)?e.style.setProperty(t,n):e.style[t]=n}var fe={};function memoSupports(e,t){let n=memo(e);return()=>fe[t]??n()}var pe=memoSupports(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),L=memoSupports(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),cubicBezierAsString=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,R={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing(e,t){if(e)return typeof e==`function`?L()?generateLinearEasing(e,t):`ease-out`:isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(e=>mapEasingToNativeEasing(e,t)||R.easeOut):R[e]}function startWaapiAnimation(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=mapEasingToNativeEasing(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function isGenerator(e){return typeof e==`function`&&`applyToOptions`in e}function applyGeneratorOptions({type:e,...t}){return isGenerator(e)&&L()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var NativeAnimation=class extends WithPromise{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=applyGeneratorOptions(e);this.animation=startWaapiAnimation(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=getFinalKeyframe(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),setStyle(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return millisecondsToSeconds(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+millisecondsToSeconds(e)}get time(){return millisecondsToSeconds(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=secondsToMilliseconds(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
1inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&pe()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),noop):r(this)}},z=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),B=30,isFloat=e=>!isNaN(parseFloat(e)),V={current:void 0},MotionValue=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=l.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=l.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=isFloat(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);let n=this.events[e].add(t);return e===`change`?()=>{n(),i.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return V.current&&V.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=l.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>B)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,B);return velocityPerSecond(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(e,t){return new MotionValue(e,t)}function getValueState(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function resolveVariantFromProps(e,t,n,r){if(typeof t==`function`){let[i,a]=getValueState(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=getValueState(r);t=t(n===void 0?e.custom:n,i,a)}return t}var isMotionValue=e=>!!(e&&e.getVelocity);function camelToDash(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var me=`data-`+camelToDash(`framerAppearId`),he={test:e=>e===`auto`,parse:e=>e},testValueType=e=>t=>t.test(e),H=[p,C,S,x,te,ee,he],findDimensionValueType=e=>H.find(testValueType(e)),ge=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function applyDefaultFilter(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(g)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ge.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var _e=/\b([a-z-]*)\(.*?\)/gu,U={...O,getAnimatableNone:e=>{let t=e.match(_e);return t?t.map(applyDefaultFilter).join(` `):e}},W={...O,getAnimatableNone:e=>{let t=O.parse(e);return O.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},G={...p,transform:Math.round},K={borderWidth:C,borderTopWidth:C,borderRightWidth:C,borderBottomWidth:C,borderLeftWidth:C,borderRadius:C,borderTopLeftRadius:C,borderTopRightRadius:C,borderBottomRightRadius:C,borderBottomLeftRadius:C,width:C,maxWidth:C,height:C,maxHeight:C,top:C,right:C,bottom:C,left:C,inset:C,insetBlock:C,insetBlockStart:C,insetBlockEnd:C,insetInline:C,insetInlineStart:C,insetInlineEnd:C,padding:C,paddingTop:C,paddingRight:C,paddingBottom:C,paddingLeft:C,paddingBlock:C,paddingBlockStart:C,paddingBlockEnd:C,paddingInline:C,paddingInlineStart:C,paddingInlineEnd:C,margin:C,marginTop:C,marginRight:C,marginBottom:C,marginLeft:C,marginBlock:C,marginBlockStart:C,marginBlockEnd:C,marginInline:C,marginInlineStart:C,marginInlineEnd:C,fontSize:C,backgroundPositionX:C,backgroundPositionY:C,rotate:x,pathRotation:x,rotateX:x,rotateY:x,rotateZ:x,scale:h,scaleX:h,scaleY:h,scaleZ:h,skew:x,skewX:x,skewY:x,distance:C,translateX:C,translateY:C,translateZ:C,x:C,y:C,z:C,perspective:C,transformPerspective:C,opacity:m,originX:w,originY:w,originZ:C,zIndex:G,fillOpacity:m,strokeOpacity:m,numOctaves:G},ve={...K,color:E,backgroundColor:E,outlineColor:E,fill:E,stroke:E,borderColor:E,borderTopColor:E,borderRightColor:E,borderBottomColor:E,borderLeftColor:E,filter:U,WebkitFilter:U,mask:W,WebkitMask:W},getDefaultValueType=e=>ve[e],ye=new Set([U,W]);function getAnimatableNone(e,t){let n=getDefaultValueType(e);return ye.has(n)||(n=O),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var q=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],getValueAsType=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function isHTMLElement(e){return isObject(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:J,cancel:be}=createRenderBatcher(queueMicrotask,!1),xe=[...H,E,O],findValueType=e=>xe.find(testValueType(e)),createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()}),Y=new WeakMap;function isAnimationControls(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function isVariantLabel(e){return typeof e==`string`||Array.isArray(e)}var Se=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Ce=[`initial`,...Se];function isControllingVariants(e){return isAnimationControls(e.animate)||Ce.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function updateMotionValuesFromProps(e,t,n){for(let r in t){let i=t[r],a=n[r];if(isMotionValue(i))e.addValue(r,i);else if(isMotionValue(a))e.addValue(r,motionValue(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,motionValue(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var X={current:null},Z={current:!1},we=typeof window<`u`;function initPrefersReducedMotion(){if(Z.current=!0,we){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),setReducedMotionPreferences=()=>X.current=e.matches;e.addEventListener(`change`,setReducedMotionPreferences),setReducedMotionPreferences()}else X.current=!1}}var Te=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Q={};function setFeatureDefinitions(e){Q=e}function getFeatureDefinitions(){return Q}var VisualElement=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:a,blockInitialAnimation:o,visualState:s},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=KeyframeResolver,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=l.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,i.render(this.render,!1,!0))};let{latestValues:u,renderState:d}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=d,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=a,this.options=c,this.blockInitialAnimation=!!o,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:f,...p}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in p){let t=p[e];u[e]!==void 0&&isMotionValue(t)&&t.set(u[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Y.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Z.current||initPrefersReducedMotion(),this.shouldReduceMotion=X.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),a(this.notifyUpdate),a(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&z.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new NativeAnimation({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:secondsToMilliseconds(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=j.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&i.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),a;typeof window<`u`&&window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),a&&a()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Q){let t=Q[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Te.length;t++){let n=Te[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=updateMotionValuesFromProps(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=motionValue(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(isNumericalString(n)||isZeroValueString(n))?n=parseFloat(n):!findValueType(n)&&O.test(t)&&(n=getAnimatableNone(e,t)),this.setBaseTarget(e,isMotionValue(n)?n.get():n)),isMotionValue(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=resolveVariantFromProps(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!isMotionValue(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){J.render(this.render)}},Ee={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},De=A.length;function buildTransform(e,t,n){let r=``,i=!0;for(let a=0;a<De;a++){let o=A[a],s=e[o];if(s===void 0)continue;let c=!0;
1if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=getValueAsType(s,K[o]);if(!c){i=!1;let t=Ee[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${getValueAsType(a,K.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function buildHTMLStyles(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(j.has(e)){o=!0;continue}if(u(e)){i[e]=n;continue}{let t=getValueAsType(n,K[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=buildTransform(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var $={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(C.test(e))e=parseFloat(e);else return e}return`${pixelsToPercent(e,t.target.x)}% ${pixelsToPercent(e,t.target.y)}%`}},Oe={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=O.parse(e);if(i.length>5)return r;let a=O.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=mixNumber(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},ke={borderRadius:{...$,applyTo:[...q]},borderTopLeftRadius:$,borderTopRightRadius:$,borderBottomLeftRadius:$,borderBottomRightRadius:$,boxShadow:Oe};function isForcedMotionValue(e,{layout:t,layoutId:n}){return j.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!ke[e]||e===`opacity`)}function scrapeMotionValuesFromProps$1(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(isMotionValue(r[t])||i&&isMotionValue(i[t])||isForcedMotionValue(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}e(scrapeMotionValuesFromProps$1,`scrapeMotionValuesFromProps`);var Ae={offset:`stroke-dashoffset`,array:`stroke-dasharray`},je={offset:`strokeDashoffset`,array:`strokeDasharray`};function buildSVGPath(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ae:je;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Me=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(buildHTMLStyles(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Me)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&buildSVGPath(d,i,a,o,!1)}var isSVGTag=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function scrapeMotionValuesFromProps(e,t,n){let r=scrapeMotionValuesFromProps$1(e,t,n);for(let n in e)if(isMotionValue(e[n])||isMotionValue(t[n])){let t=A.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Ne=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function isSVGComponent(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ne.indexOf(e)>-1||/[A-Z]/u.test(e))}export{analyseComplexValue as $,me as A,removeItem as At,setStyle as B,createDelta as C,isObject as Ct,getAnimatableNone as D,warning as Dt,q as E,invariant as Et,V as F,A as G,flushKeyframeResolvers as H,motionValue as I,readTransformValue as J,j as K,z as L,isMotionValue as M,resolveVariantFromProps as N,getDefaultValueType as O,clamp as Ot,MotionValue as P,mixNumber as Q,NativeAnimation as R,createBox as S,isZeroValueString as St,isHTMLElement as T,t as Tt,isNumOrPxType as U,KeyframeResolver as V,M as W,getFinalKeyframe as X,WithPromise as Y,generateLinearEasing as Z,Se as _,millisecondsToSeconds as _t,scrapeMotionValuesFromProps$1 as a,b as at,isAnimationControls as b,noop as bt,buildHTMLStyles as c,u as ct,setFeatureDefinitions as d,a as dt,O as et,initPrefersReducedMotion as f,i as ft,isVariantNode as g,velocityPerSecond as gt,isControllingVariants as h,isBezierDefinition as ht,buildSVGAttrs as i,C as it,camelToDash as j,findDimensionValueType as k,addUniqueItem as kt,VisualElement as l,isCSSVariableToken as lt,X as m,s as mt,scrapeMotionValuesFromProps as n,T as nt,isForcedMotionValue as o,y as ot,Z as p,o as pt,defaultTransformValue as q,isSVGTag as r,S as rt,ke as s,containsCSSVariable as st,isSVGComponent as t,E as tt,getFeatureDefinitions as u,l as ut,Ce as v,secondsToMilliseconds as vt,J as w,isNumericalString as wt,Y as x,memo as xt,isVariantLabel as y,SubscriptionManager as yt,isGenerator as z};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.