@vezham/start 0.2.0 → 0.2.1

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.
@@ -4,7 +4,7 @@ var dt = (e) => {
4
4
  var ht = (e, t, n) => t.has(e) || dt("Cannot " + n);
5
5
  var d = (e, t, n) => (ht(e, t, "read from private field"), n ? n.call(e) : t.get(e)), v = (e, t, n) => t.has(e) ? dt("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), p = (e, t, n, r) => (ht(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
6
6
  import * as k from "react";
7
- import { u as Ct, o as Tt } from "./index-Czq5KaIO.mjs";
7
+ import { u as Ct, o as Tt } from "./index-BsvrQ2Uq.mjs";
8
8
  import { jsx as xt } from "react/jsx-runtime";
9
9
  var h = {
10
10
  context: void 0,
@@ -2007,7 +2007,7 @@ var as = (e, t = !1) => {
2007
2007
  const t = qt(() => {
2008
2008
  const n = this, [r] = d(this, Z), [s] = d(this, J), [i] = d(this, ee), [o] = d(this, te), [l] = d(this, W);
2009
2009
  let a;
2010
- return d(this, ne) ? a = d(this, ne) : (a = jt(() => import("./J3FDRF32-DdhitL-G.mjs")), p(this, ne, a)), an(d(this, Ce), d(this, Y)), $t(a, Bt({
2010
+ return d(this, ne) ? a = d(this, ne) : (a = jt(() => import("./J3FDRF32-BmFo5HGb.mjs")), p(this, ne, a)), an(d(this, Ce), d(this, Y)), $t(a, Bt({
2011
2011
  get queryFlavor() {
2012
2012
  return d(n, Ee);
2013
2013
  },
@@ -2101,7 +2101,7 @@ var as = (e, t = !1) => {
2101
2101
  const t = qt(() => {
2102
2102
  const n = this, [r] = d(this, ie), [s] = d(this, oe), [i] = d(this, le), [o] = d(this, ae), [l] = d(this, re), [a] = d(this, ue);
2103
2103
  let u;
2104
- return d(this, ce) ? u = d(this, ce) : (u = jt(() => import("./3VW64HDT-C01Bk3OB.mjs")), p(this, ce, u)), an(d(this, Pe), d(this, se)), $t(u, Bt({
2104
+ return d(this, ce) ? u = d(this, ce) : (u = jt(() => import("./3VW64HDT-BpR9N6I5.mjs")), p(this, ce, u)), an(d(this, Pe), d(this, se)), $t(u, Bt({
2105
2105
  get queryFlavor() {
2106
2106
  return d(n, Ne);
2107
2107
  },
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-BM-G1h7Y.js"),qt=require("react");function be(t){let e;return()=>(e===void 0&&(e=t()),e)}const Te=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s},R=t=>t*1e3,I=t=>t/1e3;function W(t,e,n){const s=t.getProps();return c.resolveVariantFromProps(s,e,n!==void 0?n:s.custom,t)}const Yt=be(()=>window.ScrollTimeline!==void 0);class Xt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,n){for(let s=0;s<this.animations.length;s++)this.animations[s][e]=n}attachTimeline(e,n){const s=this.animations.map(i=>{if(Yt()&&i.attachTimeline)return i.attachTimeline(e);if(typeof n=="function")return n(i)});return()=>{s.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let n=0;n<this.animations.length;n++)e=Math.max(e,this.animations[n].duration);return e}runAll(e){this.animations.forEach(n=>n[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Zt extends Xt{then(e,n){return Promise.all(this.animations).then(e).catch(n)}}function it(t,e){return t?t[e]||t.default||t:void 0}const le=2e4;function rt(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<le;)e+=n,s=t.next(e);return e>=le?1/0:e}function Ve(t){return typeof t=="function"}function Ie(t,e){t.timeline=e,t.onfinish=null}const Se=t=>Array.isArray(t)&&typeof t[0]=="number",Jt={linearEasing:void 0};function Qt(t,e){const n=be(t);return()=>{var s;return(s=Jt[e])!==null&&s!==void 0?s:n()}}const Y=Qt(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ot=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r<i;r++)s+=t(Te(0,i-1,r))+", ";return`linear(${s.substring(0,s.length-2)})`};function at(t){return!!(typeof t=="function"&&Y()||!t||typeof t=="string"&&(t in ue||Y())||Se(t)||Array.isArray(t)&&t.every(at))}const U=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,ue={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:U([0,.65,.55,1]),circOut:U([.55,0,1,.45]),backIn:U([.31,.01,.66,-.59]),backOut:U([.33,1.53,.69,.99])};function lt(t,e){if(t)return typeof t=="function"&&Y()?ot(t,e):Se(t)?U(t):Array.isArray(t)?t.map(n=>lt(n,e)||ue.easeOut):ue[t]}const en={y:!1};function tn(){return en.y}function nn(t,e,n){var s;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const r=(s=void 0)!==null&&s!==void 0?s:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function ut(t,e){const n=nn(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Ee(t){return!(t.pointerType==="touch"||tn())}function sn(t,e,n={}){const[s,i,r]=ut(t,n),o=a=>{if(!Ee(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const d=h=>{Ee(h)&&(u(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return s.forEach(a=>{a.addEventListener("pointerenter",o,i)}),r}function Ke(t,e){const n=`${e}PointerCapture`;if(t.target instanceof Element&&n in t.target&&t.pointerId!==void 0)try{t.target[n](t.pointerId)}catch{}}const ct=(t,e)=>e?t===e?!0:ct(t,e.parentElement):!1,rn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,on=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function an(t){return on.has(t.tagName)||t.tabIndex!==-1}const $=new WeakSet;function Ne(t){return e=>{e.key==="Enter"&&t(e)}}function se(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const ln=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=Ne(()=>{if($.has(n))return;se(n,"down");const i=Ne(()=>{se(n,"up")}),r=()=>se(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Be(t){return rn(t)&&!0}function un(t,e,n={}){const[s,i,r]=ut(t,n),o=a=>{const l=a.currentTarget;if(!l||!Be(a)||$.has(l))return;$.add(l),Ke(a,"set");const u=e(l,a),d=(p,T)=>{l.removeEventListener("pointerup",h),l.removeEventListener("pointercancel",f),Ke(p,"release"),!(!Be(p)||!$.has(l))&&($.delete(l),typeof u=="function"&&u(p,{success:T}))},h=p=>{(p.isTrusted?cn(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?d(p,!1):d(p,!(l instanceof Element)||ct(l,p.target))},f=p=>{d(p,!1)};l.addEventListener("pointerup",h,i),l.addEventListener("pointercancel",f,i),l.addEventListener("lostpointercapture",f,i)};return s.forEach(a=>{a=n.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!an(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",o,i),l&&a.addEventListener("focus",u=>ln(u,i),i)}),r}function cn(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}const dt=new Set(["width","height","top","left","right","bottom",...c.transformPropOrder]);function dn(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,c.motionValue(n))}function hn(t,e){const n=W(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=c.resolveFinalValueInKeyframes(r[o]);dn(t,o,a)}}function fn(t){return!!(c.isMotionValue(t)&&t.add)}function pn(t,e){const n=t.getValue("willChange");if(fn(n))return n.add(e)}function mn(t){return t.props[c.optimizedAppearDataAttribute]}const ht=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,gn=1e-7,yn=12;function vn(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=ht(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>gn&&++a<yn);return o}function q(t,e,n,s){if(t===e&&n===s)return c.noop;const i=r=>vn(r,0,1,t,n);return r=>r===0||r===1?r:ht(i(r),e,s)}const ft=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,pt=t=>e=>1-t(1-e),mt=q(.33,1.53,.69,.99),Ae=pt(mt),gt=ft(Ae),yt=t=>(t*=2)<1?.5*Ae(t):.5*(2-Math.pow(2,-10*(t-1))),xe=t=>1-Math.sin(Math.acos(t)),bn=pt(xe),vt=ft(xe),bt=t=>/^0[^.\s]+$/u.test(t);function Tn(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||bt(t):!0}const j=t=>Math.round(t*1e5)/1e5,we=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Vn(t){return t==null}const Sn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Me=(t,e)=>n=>!!(typeof n=="string"&&Sn.test(n)&&n.startsWith(t)||e&&!Vn(n)&&Object.prototype.hasOwnProperty.call(n,e)),Tt=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(we);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},An=t=>c.clamp(0,255,t),ie={...c.number,transform:t=>Math.round(An(t))},K={test:Me("rgb","red"),parse:Tt("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+ie.transform(t)+", "+ie.transform(e)+", "+ie.transform(n)+", "+j(c.alpha.transform(s))+")"};function xn(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const ce={test:Me("#"),parse:xn,transform:K.transform},L={test:Me("hsl","hue"),parse:Tt("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+c.percent.transform(j(e))+", "+c.percent.transform(j(n))+", "+j(c.alpha.transform(s))+")"},M={test:t=>K.test(t)||ce.test(t)||L.test(t),parse:t=>K.test(t)?K.parse(t):L.test(t)?L.parse(t):ce.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?K.transform(t):L.transform(t)},wn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Mn(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(we))===null||e===void 0?void 0:e.length)||0)+(((n=t.match(wn))===null||n===void 0?void 0:n.length)||0)>0}const Vt="number",St="color",Pn="var",Cn="var(",Le="${}",Dn=/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 z(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(Dn,l=>(M.test(l)?(s.color.push(r),i.push(St),n.push(M.parse(l))):l.startsWith(Cn)?(s.var.push(r),i.push(Pn),n.push(l)):(s.number.push(r),i.push(Vt),n.push(parseFloat(l))),++r,Le)).split(Le);return{values:n,split:a,indexes:s,types:i}}function At(t){return z(t).values}function xt(t){const{split:e,types:n}=z(t),s=e.length;return i=>{let r="";for(let o=0;o<s;o++)if(r+=e[o],i[o]!==void 0){const a=n[o];a===Vt?r+=j(i[o]):a===St?r+=M.transform(i[o]):r+=i[o]}return r}}const Fn=t=>typeof t=="number"?0:t;function On(t){const e=At(t);return xt(t)(e.map(Fn))}const k={test:Mn,parse:At,createTransformer:xt,getAnimatableNone:On},Rn=new Set(["brightness","contrast","saturate","opacity"]);function In(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(we)||[];if(!s)return t;const i=n.replace(s,"");let r=Rn.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const En=/\b([a-z-]*)\(.*?\)/gu,de={...k,getAnimatableNone:t=>{const e=t.match(En);return e?e.map(In).join(" "):t}},Kn={...c.numberValueTypes,color:M,backgroundColor:M,outlineColor:M,fill:M,stroke:M,borderColor:M,borderTopColor:M,borderRightColor:M,borderBottomColor:M,borderLeftColor:M,filter:de,WebkitFilter:de},Pe=t=>Kn[t];function wt(t,e){let n=Pe(t);return n!==de&&(n=k),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Nn=new Set(["auto","none","0"]);function Bn(t,e,n){let s=0,i;for(;s<t.length&&!i;){const r=t[s];typeof r=="string"&&!Nn.has(r)&&z(r).values.length&&(i=t[s]),s++}if(i&&n)for(const r of e)t[r]=wt(n,i)}const _e=t=>t===c.number||t===c.px,ke=(t,e)=>parseFloat(t.split(", ")[e]),Ge=(t,e)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const i=s.match(/^matrix3d\((.+)\)$/u);if(i)return ke(i[1],e);{const r=s.match(/^matrix\((.+)\)$/u);return r?ke(r[1],t):0}},Ln=new Set(["x","y","z"]),_n=c.transformPropOrder.filter(t=>!Ln.has(t));function kn(t){const e=[];return _n.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const _={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:Ge(4,13),y:Ge(5,14)};_.translateX=_.x;_.translateY=_.y;const N=new Set;let he=!1,fe=!1;function Mt(){if(fe){const t=Array.from(N).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=kn(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))===null||a===void 0||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}fe=!1,he=!1,N.forEach(t=>t.complete()),N.clear()}function Pt(){N.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(fe=!0)})}function Gn(){Pt(),Mt()}class Ce{constructor(e,n,s,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(N.add(this),he||(he=!0,c.frame.read(Pt),c.frame.resolveKeyframes(Mt))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),a=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const l=s.readValue(n,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),N.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,N.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ct=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Un=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $n(t){const e=Un.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}const jn=4;function Dt(t,e,n=1){c.invariant(n<=jn,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[s,i]=$n(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Ct(o)?parseFloat(o):o}return c.isCSSVariableToken(i)?Dt(i,e,n+1):i}const Ft=t=>e=>e.test(t),Hn={test:t=>t==="auto",parse:t=>t},Ot=[c.number,c.px,c.percent,c.degrees,c.vw,c.vh,Hn],Ue=t=>Ot.find(Ft(t));class Rt extends Ce{constructor(e,n,s,i,r){super(e,n,s,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),c.isCSSVariableToken(u))){const d=Dt(u,n.current);d!==void 0&&(e[l]=d),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!dt.has(s)||e.length!==2)return;const[i,r]=e,o=Ue(i),a=Ue(r);if(o!==a)if(_e(o)&&_e(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)Tn(e[i])&&s.push(i);s.length&&Bn(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=_[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&e.getValue(s,i).jump(i,!1)}measureEndState(){var e;const{element:n,name:s,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const r=n.getValue(s);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,a=i[o];i[o]=_[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const $e=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(k.test(t)||t==="0")&&!t.startsWith("url("));function Wn(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function zn(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=$e(i,e),a=$e(r,e);return c.warning(o===a,`You are trying to animate ${e} from "${i}" to "${r}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${r} via the \`style\` property.`),!o||!a?!1:Wn(t)||(n==="spring"||Ve(n))&&s}const qn=t=>t!==null;function J(t,{repeat:e,repeatType:n="loop"},s){const i=t.filter(qn),r=e&&n!=="loop"&&e%2===1?0:i.length-1;return!r||s===void 0?i[r]:s}const Yn=40;class It{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=c.time.now(),this.options={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Yn?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Gn(),this._resolved}onKeyframesResolved(e,n){this.resolvedAt=c.time.now(),this.hasAttemptedResolve=!0;const{name:s,type:i,velocity:r,delay:o,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!zn(e,s,i,r))if(o)this.options.duration=0;else{l&&l(J(e,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const d=this.initPlayback(e,n);d!==!1&&(this._resolved={keyframes:e,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(e,n){return this.currentFinishedPromise.then(e,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const Q=(t,e,n)=>t+(e-t)*n;function re(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function Xn({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=re(l,a,t+1/3),r=re(l,a,t),o=re(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function X(t,e){return n=>n>0?e:t}const oe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Zn=[ce,K,L],Jn=t=>Zn.find(e=>e.test(t));function je(t){const e=Jn(t);if(c.warning(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let n=e.parse(t);return e===L&&(n=Xn(n)),n}const He=(t,e)=>{const n=je(t),s=je(e);if(!n||!s)return X(t,e);const i={...n};return r=>(i.red=oe(n.red,s.red,r),i.green=oe(n.green,s.green,r),i.blue=oe(n.blue,s.blue,r),i.alpha=Q(n.alpha,s.alpha,r),K.transform(i))},Qn=(t,e)=>n=>e(t(n)),ee=(...t)=>t.reduce(Qn),pe=new Set(["none","hidden"]);function es(t,e){return pe.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function ts(t,e){return n=>Q(t,e,n)}function De(t){return typeof t=="number"?ts:typeof t=="string"?c.isCSSVariableToken(t)?X:M.test(t)?He:is:Array.isArray(t)?Et:typeof t=="object"?M.test(t)?He:ns:X}function Et(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>De(r)(r,e[o]));return r=>{for(let o=0;o<s;o++)n[o]=i[o](r);return n}}function ns(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=De(t[i])(t[i],e[i]));return i=>{for(const r in s)n[r]=s[r](i);return n}}function ss(t,e){var n;const s=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],a=t.indexes[o][i[o]],l=(n=t.values[a])!==null&&n!==void 0?n:0;s[r]=l,i[o]++}return s}const is=(t,e)=>{const n=k.createTransformer(e),s=z(t),i=z(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?pe.has(t)&&!i.values.length||pe.has(e)&&!s.values.length?es(t,e):ee(Et(ss(s,i),i.values),n):(c.warning(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),X(t,e))};function Kt(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?Q(t,e,n):De(t)(t,e)}const rs=5;function Nt(t,e,n){const s=Math.max(e-rs,0);return c.velocityPerSecond(n-t(s),e-s)}const x={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},We=.001;function os({duration:t=x.duration,bounce:e=x.bounce,velocity:n=x.velocity,mass:s=x.mass}){let i,r;c.warning(t<=R(x.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=c.clamp(x.minDamping,x.maxDamping,o),t=c.clamp(x.minDuration,x.maxDuration,I(t)),o<1?(i=u=>{const d=u*o,h=d*t,f=d-n,p=me(u,o),T=Math.exp(-h);return We-f/p*T},r=u=>{const h=u*o*t,f=h*n+n,p=Math.pow(o,2)*Math.pow(u,2)*t,T=Math.exp(-h),b=me(Math.pow(u,2),o);return(-i(u)+We>0?-1:1)*((f-p)*T)/b}):(i=u=>{const d=Math.exp(-u*t),h=(u-n)*t+1;return-.001+d*h},r=u=>{const d=Math.exp(-u*t),h=(n-u)*(t*t);return d*h});const a=5/t,l=ls(i,r,a);if(t=R(t),isNaN(l))return{stiffness:x.stiffness,damping:x.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const as=12;function ls(t,e,n){let s=n;for(let i=1;i<as;i++)s=s-t(s)/e(s);return s}function me(t,e){return t*Math.sqrt(1-e*e)}const us=["duration","bounce"],cs=["stiffness","damping","mass"];function ze(t,e){return e.some(n=>t[n]!==void 0)}function ds(t){let e={velocity:x.velocity,stiffness:x.stiffness,damping:x.damping,mass:x.mass,isResolvedFromDuration:!1,...t};if(!ze(t,cs)&&ze(t,us))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*c.clamp(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:x.mass,stiffness:i,damping:r}}else{const n=os(t);e={...e,...n,mass:x.mass},e.isResolvedFromDuration=!0}return e}function Bt(t=x.visualDuration,e=x.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=ds({...n,velocity:-I(n.velocity||0)}),T=f||0,b=u/(2*Math.sqrt(l*d)),v=o-r,m=I(Math.sqrt(l/d)),V=Math.abs(v)<5;s||(s=V?x.restSpeed.granular:x.restSpeed.default),i||(i=V?x.restDelta.granular:x.restDelta.default);let S;if(b<1){const y=me(m,b);S=A=>{const w=Math.exp(-b*m*A);return o-w*((T+b*m*v)/y*Math.sin(y*A)+v*Math.cos(y*A))}}else if(b===1)S=y=>o-Math.exp(-m*y)*(v+(T+m*v)*y);else{const y=m*Math.sqrt(b*b-1);S=A=>{const w=Math.exp(-b*m*A),g=Math.min(y*A,300);return o-w*((T+b*m*v)*Math.sinh(g)+y*v*Math.cosh(g))/y}}const D={calculatedDuration:p&&h||null,next:y=>{const A=S(y);if(p)a.done=y>=h;else{let w=0;b<1&&(w=y===0?R(T):Nt(S,y,A));const g=Math.abs(w)<=s,C=Math.abs(o-A)<=i;a.done=g&&C}return a.value=a.done?o:A,a},toString:()=>{const y=Math.min(rt(D),le),A=ot(w=>D.next(y*w).value,y,30);return y+"ms "+A}};return D}function qe({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:d}){const h=t[0],f={done:!1,value:h},p=g=>a!==void 0&&g<a||l!==void 0&&g>l,T=g=>a===void 0?l:l===void 0||Math.abs(a-g)<Math.abs(l-g)?a:l;let b=n*e;const v=h+b,m=o===void 0?v:o(v);m!==v&&(b=m-h);const V=g=>-b*Math.exp(-g/s),S=g=>m+V(g),D=g=>{const C=V(g),F=S(g);f.done=Math.abs(C)<=u,f.value=f.done?m:F};let y,A;const w=g=>{p(f.value)&&(y=g,A=Bt({keyframes:[f.value,T(f.value)],velocity:Nt(S,g,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:d}))};return w(0),{calculatedDuration:null,next:g=>{let C=!1;return!A&&y===void 0&&(C=!0,D(g),w(g)),y!==void 0&&g>=y?A.next(g-y):(!C&&D(g),f)}}}const hs=q(.42,0,1,1),fs=q(0,0,.58,1),Lt=q(.42,0,.58,1),ps=t=>Array.isArray(t)&&typeof t[0]!="number",Ye={linear:c.noop,easeIn:hs,easeInOut:Lt,easeOut:fs,circIn:xe,circInOut:vt,circOut:bn,backIn:Ae,backInOut:gt,backOut:mt,anticipate:yt},Xe=t=>{if(Se(t)){c.invariant(t.length===4,"Cubic bezier arrays must contain four numerical values.");const[e,n,s,i]=t;return q(e,n,s,i)}else if(typeof t=="string")return c.invariant(Ye[t]!==void 0,`Invalid easing type '${t}'`),Ye[t];return t};function ms(t,e,n){const s=[],i=n||Kt,r=t.length-1;for(let o=0;o<r;o++){let a=i(t[o],t[o+1]);if(e){const l=Array.isArray(e)?e[o]||c.noop:e;a=ee(l,a)}s.push(a)}return s}function gs(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const r=t.length;if(c.invariant(r===e.length,"Both input and output ranges must be the same length"),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ms(e,s,i),l=a.length,u=d=>{if(o&&d<t[0])return e[0];let h=0;if(l>1)for(;h<t.length-2&&!(d<t[h+1]);h++);const f=Te(t[h],t[h+1],d);return a[h](f)};return n?d=>u(c.clamp(t[0],t[r-1],d)):u}function ys(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Te(0,e,s);t.push(Q(n,1,i))}}function vs(t){const e=[0];return ys(e,t.length-1),e}function bs(t,e){return t.map(n=>n*e)}function Ts(t,e){return t.map(()=>e||Lt).splice(0,t.length-1)}function H({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=ps(s)?s.map(Xe):Xe(s),r={done:!1,value:e[0]},o=bs(n&&n.length===e.length?n:vs(e),t),a=gs(o,e,{ease:Array.isArray(i)?i:Ts(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Vs=t=>{const e=({timestamp:n})=>t(n);return{start:()=>c.frame.update(e,!0),stop:()=>c.cancelFrame(e),now:()=>c.frameData.isProcessing?c.frameData.timestamp:c.time.now()}},Ss={decay:qe,inertia:qe,tween:H,keyframes:H,spring:Bt},As=t=>t/100;class Fe extends It{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:s,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Ce,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new o(r,a,n,s,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:n="keyframes",repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,a=Ve(n)?n:Ss[n]||H;let l,u;process.env.NODE_ENV!=="production"&&a!==H&&c.invariant(e.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),a!==H&&typeof e[0]!="number"&&(l=ee(As,Kt(e[0],e[1])),e=[0,100]);const d=a({...this.options,keyframes:e});r==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=rt(d));const{calculatedDuration:h}=d,f=h+i,p=f*(s+1)-i;return{generator:d,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:f,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,n=!1){const{resolved:s}=this;if(!s){const{keyframes:g}=this.options;return{done:!0,value:g[g.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:d,resolvedDuration:h}=s;if(this.startTime===null)return r.next(0);const{delay:f,repeat:p,repeatType:T,repeatDelay:b,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-d/this.speed,this.startTime)),n?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const m=this.currentTime-f*(this.speed>=0?1:-1),V=this.speed>=0?m<0:m>d;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let S=this.currentTime,D=r;if(p){const g=Math.min(this.currentTime,d)/h;let C=Math.floor(g),F=g%1;!F&&g>=1&&(F=1),F===1&&C--,C=Math.min(C,p+1),!!(C%2)&&(T==="reverse"?(F=1-F,b&&(F-=b/h)):T==="mirror"&&(D=o)),S=c.clamp(0,1,F)*h}const y=V?{done:!1,value:l[0]}:D.next(S);a&&(y.value=a(y.value));let{done:A}=y;!V&&u!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const w=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return w&&i!==void 0&&(y.value=J(l,this.options,i)),v&&v(y.value),w&&this.finish(),y}get duration(){const{resolved:e}=this;return e?I(e.calculatedDuration):0}get time(){return I(this.currentTime)}set time(e){e=R(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=I(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Vs,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}function xs(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){const u={[e]:n};l&&(u.offset=l);const d=lt(a,i);return Array.isArray(d)&&(u.easing=d),t.animate(u,{delay:s,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const ws=be(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Z=10,Ms=2e4;function Ps(t){return Ve(t.type)||t.type==="spring"||!at(t.ease)}function Cs(t,e){const n=new Fe({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:t[0]};const i=[];let r=0;for(;!s.done&&r<Ms;)s=n.sample(r),i.push(s.value),r+=Z;return{times:void 0,keyframes:i,duration:r-Z,ease:"linear"}}const _t={anticipate:yt,backInOut:gt,circInOut:vt};function Ds(t){return t in _t}class Ze extends It{constructor(e){super(e);const{name:n,motionValue:s,element:i,keyframes:r}=this.options;this.resolver=new Rt(r,(o,a)=>this.onKeyframesResolved(o,a),n,s,i),this.resolver.scheduleResolve()}initPlayback(e,n){let{duration:s=300,times:i,ease:r,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof r=="string"&&Y()&&Ds(r)&&(r=_t[r]),Ps(this.options)){const{onComplete:h,onUpdate:f,motionValue:p,element:T,...b}=this.options,v=Cs(e,b);e=v.keyframes,e.length===1&&(e[1]=e[0]),s=v.duration,i=v.times,r=v.ease,o="keyframes"}const d=xs(a.owner.current,l,e,{...this.options,duration:s,times:i,ease:r});return d.startTime=u??this.calcStartTime(),this.pendingTimeline?(Ie(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;a.set(J(e,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:s,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:n}=e;return I(n)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:n}=e;return I(n.currentTime||0)}set time(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=R(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:n}=e;return n.playbackRate}set speed(e){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:n}=e;return n.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:n}=e;return n.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:n}=this;if(!n)return c.noop;const{animation:s}=n;Ie(s,e)}return c.noop}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:n,keyframes:s,duration:i,type:r,ease:o,times:a}=e;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:d,onComplete:h,element:f,...p}=this.options,T=new Fe({...p,keyframes:s,duration:i,type:r,ease:o,times:a,isGenerator:!0}),b=R(this.time);u.setWithVelocity(T.sample(b-Z).value,T.sample(b).value,Z)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:n,name:s,repeatDelay:i,repeatType:r,damping:o,type:a}=e;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return ws()&&s&&c.acceleratedValues.has(s)&&!l&&!u&&!i&&r!=="mirror"&&o!==0&&a!=="inertia"}}const Fs={type:"spring",stiffness:500,damping:25,restSpeed:10},Os=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Rs={type:"keyframes",duration:.8},Is={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Es=(t,{keyframes:e})=>e.length>2?Rs:c.transformProps.has(t)?t.startsWith("scale")?Os(e[1]):Fs:Is;function Ks({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:a,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const Ns=(t,e,n,s={},i,r)=>o=>{const a=it(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-R(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};Ks(a)||(d={...d,...Es(t,d)}),d.duration&&(d.duration=R(d.duration)),d.repeatDelay&&(d.repeatDelay=R(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),c.MotionGlobalConfig.skipAnimations&&(h=!0,d.duration=0,d.delay=0),h&&!r&&e.get()!==void 0){const f=J(d.keyframes,a);if(f!==void 0)return c.frame.update(()=>{d.onUpdate(f),d.onComplete()}),new Zt([])}return!r&&Ze.supports(d)?new Ze(d):new Fe(d)};function Bs({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function kt(t,e,{delay:n=0,transitionOverride:s,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=e;s&&(o=s);const u=[],d=i&&t.animationState&&t.animationState.getState()[i];for(const h in l){const f=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),p=l[h];if(p===void 0||d&&Bs(d,h))continue;const T={delay:n,...it(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const m=mn(t);if(m){const V=window.MotionHandoffAnimation(m,h,c.frame);V!==null&&(T.startTime=V,b=!0)}}pn(t,h),f.start(Ns(h,f,p,t.shouldReduceMotion&&dt.has(h)?{type:!1}:T,t,b));const v=f.animation;v&&u.push(v)}return a&&Promise.all(u).then(()=>{c.frame.update(()=>{a&&hn(t,a)})}),u}function ge(t,e,n={}){var s;const i=W(t,e,n.type==="exit"?(s=t.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:r=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const o=i?()=>Promise.all(kt(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:f}=r;return Ls(t,e,d+u,h,f,n)}:()=>Promise.resolve(),{when:l}=r;if(l){const[u,d]=l==="beforeChildren"?[o,a]:[a,o];return u().then(()=>d())}else return Promise.all([o(),a(n.delay)])}function Ls(t,e,n=0,s=0,i=1,r){const o=[],a=(t.variantChildren.size-1)*s,l=i===1?(u=0)=>u*s:(u=0)=>a-u*s;return Array.from(t.variantChildren).sort(_s).forEach((u,d)=>{u.notify("AnimationStart",e),o.push(ge(u,e,{...r,delay:n+l(d)}).then(()=>u.notify("AnimationComplete",e)))}),Promise.all(o)}function _s(t,e){return t.sortNodePosition(e)}function ks(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>ge(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=ge(t,e,n);else{const i=typeof e=="function"?W(t,e,n.custom):e;s=Promise.all(kt(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}function Gt(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const Gs=c.variantProps.length;function Ut(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Ut(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<Gs;n++){const s=c.variantProps[n],i=t.props[s];(c.isVariantLabel(i)||i===!1)&&(e[s]=i)}return e}const Us=[...c.variantPriorityOrder].reverse(),$s=c.variantPriorityOrder.length;function js(t){return e=>Promise.all(e.map(({animation:n,options:s})=>ks(t,n,s)))}function Hs(t){let e=js(t),n=Je(),s=!0;const i=l=>(u,d)=>{var h;const f=W(t,d,l==="exit"?(h=t.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(f){const{transition:p,transitionEnd:T,...b}=f;u={...u,...b,...T}}return u};function r(l){e=l(t)}function o(l){const{props:u}=t,d=Ut(t.parent)||{},h=[],f=new Set;let p={},T=1/0;for(let v=0;v<$s;v++){const m=Us[v],V=n[m],S=u[m]!==void 0?u[m]:d[m],D=c.isVariantLabel(S),y=m===l?V.isActive:null;y===!1&&(T=v);let A=S===d[m]&&S!==u[m]&&D;if(A&&s&&t.manuallyAnimateOnMount&&(A=!1),V.protectedKeys={...p},!V.isActive&&y===null||!S&&!V.prevProp||c.isAnimationControls(S)||typeof S=="boolean")continue;const w=Ws(V.prevProp,S);let g=w||m===l&&V.isActive&&!A&&D||v>T&&D,C=!1;const F=Array.isArray(S)?S:[S];let B=F.reduce(i(m),{});y===!1&&(B={});const{prevResolvedValues:Oe={}}=V,zt={...Oe,...B},Re=P=>{g=!0,f.has(P)&&(C=!0,f.delete(P)),V.needsAnimating[P]=!0;const O=t.getValue(P);O&&(O.liveStyle=!1)};for(const P in zt){const O=B[P],te=Oe[P];if(p.hasOwnProperty(P))continue;let ne=!1;c.isKeyframesTarget(O)&&c.isKeyframesTarget(te)?ne=!Gt(O,te):ne=O!==te,ne?O!=null?Re(P):f.add(P):O!==void 0&&f.has(P)?Re(P):V.protectedKeys[P]=!0}V.prevProp=S,V.prevResolvedValues=B,V.isActive&&(p={...p,...B}),s&&t.blockInitialAnimation&&(g=!1),g&&(!(A&&w)||C)&&h.push(...F.map(P=>({animation:P,options:{type:m}})))}if(f.size){const v={};if(typeof u.initial!="boolean"){const m=W(t,Array.isArray(u.initial)?u.initial[0]:u.initial);m&&m.transition&&(v.transition=m.transition)}f.forEach(m=>{const V=t.getBaseTarget(m),S=t.getValue(m);S&&(S.liveStyle=!0),v[m]=V??null}),h.push({animation:v})}let b=!!h.length;return s&&(u.initial===!1||u.initial===u.animate)&&!t.manuallyAnimateOnMount&&(b=!1),s=!1,b?e(h):Promise.resolve()}function a(l,u){var d;if(n[l].isActive===u)return Promise.resolve();(d=t.variantChildren)===null||d===void 0||d.forEach(f=>{var p;return(p=f.animationState)===null||p===void 0?void 0:p.setActive(l,u)}),n[l].isActive=u;const h=o(l);for(const f in n)n[f].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Je(),s=!0}}}function Ws(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Gt(e,t):!1}function E(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Je(){return{animate:E(!0),whileInView:E(),whileHover:E(),whileTap:E(),whileDrag:E(),whileFocus:E(),exit:E()}}class G{constructor(e){this.isMounted=!1,this.node=e}update(){}}class zs extends G{constructor(e){super(e),e.animationState||(e.animationState=Hs(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();c.isAnimationControls(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}}let qs=0;class Ys extends G{constructor(){super(...arguments),this.id=qs++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Xs={animation:{Feature:zs},exit:{Feature:Ys}};function Qe(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function $t(t){return{point:{x:t.pageX,y:t.pageY}}}function Zs({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function Js(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}const et=()=>({min:0,max:0}),jt=()=>({x:et(),y:et()});function Qs(t,e){return Zs(Js(t.getBoundingClientRect(),e))}function tt(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&c.frame.postRender(()=>r(e,$t(e)))}class ei extends G{mount(){const{current:e}=this.node;e&&(this.unmount=sn(e,(n,s)=>(tt(this.node,s,"Start"),i=>tt(this.node,i,"End"))))}unmount(){}}class ti extends G{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ee(Qe(this.node.current,"focus",()=>this.onFocus()),Qe(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nt(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&c.frame.postRender(()=>r(e,$t(e)))}class ni extends G{mount(){const{current:e}=this.node;e&&(this.unmount=un(e,(n,s)=>(nt(this.node,s,"Start"),(i,{success:r})=>nt(this.node,i,r?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ye=new WeakMap,ae=new WeakMap,si=t=>{const e=ye.get(t.target);e&&e(t)},ii=t=>{t.forEach(si)};function ri({root:t,...e}){const n=t||document;ae.has(n)||ae.set(n,{});const s=ae.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(ii,{root:t,...e})),s[i]}function oi(t,e,n){const s=ri(e);return ye.set(t,n),s.observe(t),()=>{ye.delete(t),s.unobserve(t)}}const ai={some:0,all:1};class li extends G{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:ai[i]},a=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,r&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),f=u?d:h;f&&f(l)};return oi(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(ui(e,n))&&this.startObserver()}unmount(){}}function ui({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ci={inView:{Feature:li},tap:{Feature:ni},focus:{Feature:ti},hover:{Feature:ei}},ve={current:null},Ht={current:!1};function di(){if(Ht.current=!0,!!c.isBrowser)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>ve.current=t.matches;t.addListener(e),e()}else ve.current=!1}const hi=[...Ot,M,k],fi=t=>hi.find(Ft(t)),pi=new WeakMap;function mi(t,e,n){for(const s in e){const i=e[s],r=n[s];if(c.isMotionValue(i))t.addValue(s,i),process.env.NODE_ENV==="development"&&c.warnOnce(i.version==="12.4.10",`Attempting to mix Motion versions ${i.version} with 12.4.10 may not work as expected.`);else if(c.isMotionValue(r))t.addValue(s,c.motionValue(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,c.motionValue(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const st=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class gi{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ce,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},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=()=>{const p=c.time.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,c.frame.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!r,this.isControllingVariants=c.isControllingVariants(n),this.isVariantNode=c.isVariantNode(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const T=f[p];l[p]!==void 0&&c.isMotionValue(T)&&T.set(l[p],!1)}}mount(e){this.current=e,pi.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.forEach((n,s)=>this.bindToMotionValue(s,n)),Ht.current||di(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ve.current,process.env.NODE_ENV!=="production"&&c.warnOnce(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),c.cancelFrame(this.notifyUpdate),c.cancelFrame(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const n=this.features[e];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=c.transformProps.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&c.frame.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),r=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),n.owner&&n.stop()})}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 c.featureDefinitions){const n=c.featureDefinitions[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<st.length;s++){const i=st[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=mi(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=c.motionValue(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){var s;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(s=this.getBaseTargetFromProps(this.props,e))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ct(i)||bt(i))?i=parseFloat(i):!fi(i)&&k.test(n)&&(i=wt(e,n)),this.setBaseTarget(e,c.isMotionValue(i)?i.get():i)),c.isMotionValue(i)?i.get():i}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var n;const{initial:s}=this.props;let i;if(typeof s=="string"||typeof s=="object"){const o=c.resolveVariantFromProps(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[e])}if(s&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!c.isMotionValue(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new c.SubscriptionManager),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}}class Wt extends gi{constructor(){super(...arguments),this.KeyframeResolver=Rt}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){return e.style?e.style[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;c.isMotionValue(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function yi(t){return window.getComputedStyle(t)}class vi extends Wt{constructor(){super(...arguments),this.type="html",this.renderInstance=c.renderHTML}readValueFromInstance(e,n){if(c.transformProps.has(n)){const s=Pe(n);return s&&s.default||0}else{const s=yi(e),i=(c.isCSSVariableName(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Qs(e,n)}build(e,n,s){c.buildHTMLStyles(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return c.scrapeMotionValuesFromProps(e,n,s)}}class bi extends Wt{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&c.updateSVGDimensions(this.current,this.renderState)}}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(c.transformProps.has(n)){const s=Pe(n);return s&&s.default||0}return n=c.camelCaseAttributes.has(n)?n:c.camelToDash(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return c.scrapeMotionValuesFromProps$1(e,n,s)}onBindTransform(){this.current&&!this.renderState.dimensions&&c.frame.postRender(this.updateDimensions)}build(e,n,s){c.buildSVGAttrs(e,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,n,s,i){c.renderSVG(e,n,s,i)}mount(e){this.isSVGTag=c.isSVGTag(e.tagName),super.mount(e)}}const Ti=(t,e)=>c.isSVGComponent(t)?new bi(e):new vi(e,{allowProjection:t!==qt.Fragment}),Vi={renderer:Ti,...Xs,...ci};var Si=Vi;exports.default=Si;
@@ -0,0 +1 @@
1
+ "use strict";var pt=e=>{throw TypeError(e)};var vt=(e,t,n)=>t.has(e)||pt("Cannot "+n);var d=(e,t,n)=>(vt(e,t,"read from private field"),n?n.call(e):t.get(e)),v=(e,t,n)=>t.has(e)?pt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),p=(e,t,n,r)=>(vt(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);const pn=require("react"),$e=require("./index-BM-G1h7Y.js"),kt=require("react/jsx-runtime");function vn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=vn(pn);var h={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId(){return wt(this.context.count)},getNextContextId(){return wt(this.context.count++)}};function wt(e){const t=String(e),n=t.length-1;return h.context.id+(n?String.fromCharCode(96+n):"")+t}function ge(e){h.context=e}var wn=(e,t)=>e===t,je=Symbol("solid-proxy"),It=typeof Proxy=="function",dt=Symbol("solid-track"),Be={equals:wn},Rt=jt,$=1,qe=2,Mt={owned:null,cleanups:null,context:null,owner:null},Je={},m=null,et=null,bn=null,w=null,T=null,_=null,Ge=0;function B(e,t){const n=w,r=m,s=e.length===0,i=t===void 0?r:t,o=s?Mt:{owned:null,cleanups:null,context:i?i.context:null,owner:i},l=s?e:()=>e(()=>C(()=>we(o)));m=o,w=null;try{return V(l,!0)}finally{w=n,m=r}}function E(e,t){t=t?Object.assign({},Be,t):Be;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=s=>(typeof s=="function"&&(s=s(n.value)),$t(n,s));return[_t.bind(n),r]}function Dt(e,t,n){const r=He(e,t,!0,$);he(r)}function q(e,t,n){const r=He(e,t,!1,$);he(r)}function ht(e,t,n){Rt=Dn;const r=He(e,t,!1,$);(!n||!n.render)&&(r.user=!0),_?_.push(r):he(r)}function N(e,t,n){n=n?Object.assign({},Be,n):Be;const r=He(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,he(r),_t.bind(r)}function Sn(e){return e&&typeof e=="object"&&"then"in e}function En(e,t,n){let r,s,i;r=!0,s=e,i={};let o=null,l=Je,a=null,u=!1,f="initialValue"in i,c=typeof r=="function"&&N(r);const g=new Set,[y,S]=(i.storage||E)(i.initialValue),[x,j]=E(void 0),[U,M]=E(void 0,{equals:!1}),[I,D]=E(f?"ready":"unresolved");h.context&&(a=h.getNextContextId(),i.ssrLoadFrom==="initial"?l=i.initialValue:h.load&&h.has(a)&&(l=h.load(a)));function R(P,A,O,G){return o===P&&(o=null,G!==void 0&&(f=!0),(P===l||A===l)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated(G,{value:A})),l=Je,Ye(A,O)),A}function Ye(P,A){V(()=>{A===void 0&&S(()=>P),D(A!==void 0?"errored":f?"ready":"unresolved"),j(A);for(const O of g.keys())O.decrement();g.clear()},!1)}function We(){const P=In,A=y(),O=x();if(O!==void 0&&!o)throw O;return w&&w.user,A}function Ze(P=!0){if(P!==!1&&u)return;u=!1;const A=c?c():r;if(A==null||A===!1){R(o,C(y));return}const O=l!==Je?l:C(()=>s(A,{value:y(),refetching:P}));return Sn(O)?(o=O,"value"in O?(O.status==="success"?R(o,O.value,void 0,A):R(o,void 0,rt(O.value),A),O):(u=!0,queueMicrotask(()=>u=!1),V(()=>{D(f?"refreshing":"pending"),M()},!1),O.then(G=>R(O,G,void 0,A),G=>R(O,void 0,rt(G),A)))):(R(o,O,void 0,A),O)}return Object.defineProperties(We,{state:{get:()=>I()},error:{get:()=>x()},loading:{get(){const P=I();return P==="pending"||P==="refreshing"}},latest:{get(){if(!f)return We();const P=x();if(P&&!o)throw P;return y()}}}),c?Dt(()=>Ze(!1)):Ze(!1),[We,{refetch:Ze,mutate:S}]}function An(e){return V(e,!1)}function C(e){if(w===null)return e();const t=w;w=null;try{return e()}finally{w=t}}function On(e,t,n){const r=Array.isArray(e);let s,i=n&&n.defer;return o=>{let l;if(r){l=Array(e.length);for(let u=0;u<e.length;u++)l[u]=e[u]()}else l=e();if(i)return i=!1,o;const a=C(()=>t(l,s,o));return s=l,a}}function Lt(e){ht(()=>C(e))}function fe(e){return m===null||(m.cleanups===null?m.cleanups=[e]:m.cleanups.push(e)),e}function bt(){return m}function Cn(e,t){const n=m,r=w;m=e,w=null;try{return V(t,!0)}catch(s){gt(s)}finally{m=n,w=r}}function xn(e){const t=w,n=m;return Promise.resolve().then(()=>{w=t,m=n;let r;return V(e,!1),w=m=null,r?r.done:void 0})}var[Tn,ds]=E(!1);function Pn(){return[Tn,xn]}function Nn(e,t){const n=Symbol("context");return{id:n,Provider:Ln(n),defaultValue:e}}function kn(e){let t;return m&&m.context&&(t=m.context[e.id])!==void 0?t:e.defaultValue}function Vt(e){const t=N(e),n=N(()=>st(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}var In;function _t(){if(this.sources&&this.state)if(this.state===$)he(this);else{const e=T;T=null,V(()=>Ue(this),!1),T=e}if(w){const e=this.observers?this.observers.length:0;w.sources?(w.sources.push(this),w.sourceSlots.push(e)):(w.sources=[this],w.sourceSlots=[e]),this.observers?(this.observers.push(w),this.observerSlots.push(w.sources.length-1)):(this.observers=[w],this.observerSlots=[w.sources.length-1])}return this.value}function $t(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&V(()=>{for(let s=0;s<e.observers.length;s+=1){const i=e.observers[s],o=et&&et.running;o&&et.disposed.has(i),(o?!i.tState:!i.state)&&(i.pure?T.push(i):_.push(i),i.observers&&Bt(i)),o||(i.state=$)}if(T.length>1e6)throw T=[],new Error},!1)),t}function he(e){if(!e.fn)return;we(e);const t=Ge;Rn(e,e.value,t)}function Rn(e,t,n){let r;const s=m,i=w;w=m=e;try{r=e.fn(t)}catch(o){return e.pure&&(e.state=$,e.owned&&e.owned.forEach(we),e.owned=null),e.updatedAt=n+1,gt(o)}finally{w=i,m=s}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?$t(e,r):e.value=r,e.updatedAt=n)}function He(e,t,n,r=$,s){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:m,context:m?m.context:null,pure:n};return m===null||m!==Mt&&(m.owned?m.owned.push(i):m.owned=[i]),i}function Fe(e){if(e.state===0)return;if(e.state===qe)return Ue(e);if(e.suspense&&C(e.suspense.inFallback))return e.suspense.effects.push(e);const t=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt<Ge);)e.state&&t.push(e);for(let n=t.length-1;n>=0;n--)if(e=t[n],e.state===$)he(e);else if(e.state===qe){const r=T;T=null,V(()=>Ue(e,t[0]),!1),T=r}}function V(e,t){if(T)return e();let n=!1;t||(T=[]),_?n=!0:_=[],Ge++;try{const r=e();return Mn(n),r}catch(r){n||(_=null),T=null,gt(r)}}function Mn(e){if(T&&(jt(T),T=null),e)return;const t=_;_=null,t.length&&V(()=>Rt(t),!1)}function jt(e){for(let t=0;t<e.length;t++)Fe(e[t])}function Dn(e){let t,n=0;for(t=0;t<e.length;t++){const r=e[t];r.user?e[n++]=r:Fe(r)}if(h.context){if(h.count){h.effects||(h.effects=[]),h.effects.push(...e.slice(0,n));return}ge()}for(h.effects&&(h.done||!h.count)&&(e=[...h.effects,...e],n+=h.effects.length,delete h.effects),t=0;t<n;t++)Fe(e[t])}function Ue(e,t){e.state=0;for(let n=0;n<e.sources.length;n+=1){const r=e.sources[n];if(r.sources){const s=r.state;s===$?r!==t&&(!r.updatedAt||r.updatedAt<Ge)&&Fe(r):s===qe&&Ue(r,t)}}}function Bt(e){for(let t=0;t<e.observers.length;t+=1){const n=e.observers[t];n.state||(n.state=qe,n.pure?T.push(n):_.push(n),n.observers&&Bt(n))}}function we(e){let t;if(e.sources)for(;e.sources.length;){const n=e.sources.pop(),r=e.sourceSlots.pop(),s=n.observers;if(s&&s.length){const i=s.pop(),o=n.observerSlots.pop();r<s.length&&(i.sourceSlots[o]=r,s[r]=i,n.observerSlots[r]=o)}}if(e.tOwned){for(t=e.tOwned.length-1;t>=0;t--)we(e.tOwned[t]);delete e.tOwned}if(e.owned){for(t=e.owned.length-1;t>=0;t--)we(e.owned[t]);e.owned=null}if(e.cleanups){for(t=e.cleanups.length-1;t>=0;t--)e.cleanups[t]();e.cleanups=null}e.state=0}function rt(e){return e instanceof Error?e:new Error(typeof e=="string"?e:"Unknown error",{cause:e})}function gt(e,t=m){throw rt(e)}function st(e){if(typeof e=="function"&&!e.length)return st(e());if(Array.isArray(e)){const t=[];for(let n=0;n<e.length;n++){const r=st(e[n]);Array.isArray(r)?t.push.apply(t,r):t.push(r)}return t}return e}function Ln(e,t){return function(r){let s;return q(()=>s=C(()=>(m.context={...m.context,[e]:r.value},Vt(()=>r.children))),void 0),s}}var it=Symbol("fallback");function Ke(e){for(let t=0;t<e.length;t++)e[t]()}function Vn(e,t,n={}){let r=[],s=[],i=[],o=0,l=t.length>1?[]:null;return fe(()=>Ke(i)),()=>{let a=e()||[],u=a.length,f,c;return a[dt],C(()=>{let y,S,x,j,U,M,I,D,R;if(u===0)o!==0&&(Ke(i),i=[],r=[],s=[],o=0,l&&(l=[])),n.fallback&&(r=[it],s[0]=B(Ye=>(i[0]=Ye,n.fallback())),o=1);else if(o===0){for(s=new Array(u),c=0;c<u;c++)r[c]=a[c],s[c]=B(g);o=u}else{for(x=new Array(u),j=new Array(u),l&&(U=new Array(u)),M=0,I=Math.min(o,u);M<I&&r[M]===a[M];M++);for(I=o-1,D=u-1;I>=M&&D>=M&&r[I]===a[D];I--,D--)x[D]=s[I],j[D]=i[I],l&&(U[D]=l[I]);for(y=new Map,S=new Array(D+1),c=D;c>=M;c--)R=a[c],f=y.get(R),S[c]=f===void 0?-1:f,y.set(R,c);for(f=M;f<=I;f++)R=r[f],c=y.get(R),c!==void 0&&c!==-1?(x[c]=s[f],j[c]=i[f],l&&(U[c]=l[f]),c=S[c],y.set(R,c)):i[f]();for(c=M;c<u;c++)c in x?(s[c]=x[c],i[c]=j[c],l&&(l[c]=U[c],l[c](c))):s[c]=B(g);s=s.slice(0,o=u),r=a.slice(0)}return s});function g(y){if(i[c]=y,l){const[S,x]=E(c);return l[c]=x,t(a[c],S)}return t(a[c])}}}function _n(e,t,n={}){let r=[],s=[],i=[],o=[],l=0,a;return fe(()=>Ke(i)),()=>{const u=e()||[],f=u.length;return u[dt],C(()=>{if(f===0)return l!==0&&(Ke(i),i=[],r=[],s=[],l=0,o=[]),n.fallback&&(r=[it],s[0]=B(g=>(i[0]=g,n.fallback())),l=1),s;for(r[0]===it&&(i[0](),i=[],r=[],s=[],l=0),a=0;a<f;a++)a<r.length&&r[a]!==u[a]?o[a](()=>u[a]):a>=r.length&&(s[a]=B(c));for(;a<r.length;a++)i[a]();return l=o.length=i.length=f,r=u.slice(0),s=s.slice(0,l)});function c(g){i[a]=g;const[y,S]=E(u[a]);return o[a]=S,t(y,a)}}}function yt(e,t){return C(()=>e(t||{}))}function De(){return!0}var ot={get(e,t,n){return t===je?n:e.get(t)},has(e,t){return t===je?!0:e.has(t)},set:De,deleteProperty:De,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:De,deleteProperty:De}},ownKeys(e){return e.keys()}};function tt(e){return(e=typeof e=="function"?e():e)?e:{}}function $n(){for(let e=0,t=this.length;e<t;++e){const n=this[e]();if(n!==void 0)return n}}function mt(...e){let t=!1;for(let o=0;o<e.length;o++){const l=e[o];t=t||!!l&&je in l,e[o]=typeof l=="function"?(t=!0,N(l)):l}if(It&&t)return new Proxy({get(o){for(let l=e.length-1;l>=0;l--){const a=tt(e[l])[o];if(a!==void 0)return a}},has(o){for(let l=e.length-1;l>=0;l--)if(o in tt(e[l]))return!0;return!1},keys(){const o=[];for(let l=0;l<e.length;l++)o.push(...Object.keys(tt(e[l])));return[...new Set(o)]}},ot);const n={},r=Object.create(null);for(let o=e.length-1;o>=0;o--){const l=e[o];if(!l)continue;const a=Object.getOwnPropertyNames(l);for(let u=a.length-1;u>=0;u--){const f=a[u];if(f==="__proto__"||f==="constructor")continue;const c=Object.getOwnPropertyDescriptor(l,f);if(!r[f])r[f]=c.get?{enumerable:!0,configurable:!0,get:$n.bind(n[f]=[c.get.bind(l)])}:c.value!==void 0?c:void 0;else{const g=n[f];g&&(c.get?g.push(c.get.bind(l)):c.value!==void 0&&g.push(()=>c.value))}}}const s={},i=Object.keys(r);for(let o=i.length-1;o>=0;o--){const l=i[o],a=r[l];a&&a.get?Object.defineProperty(s,l,a):s[l]=a?a.value:void 0}return s}function qt(e,...t){if(It&&je in e){const s=new Set(t.length>1?t.flat():t[0]),i=t.map(o=>new Proxy({get(l){return o.includes(l)?e[l]:void 0},has(l){return o.includes(l)&&l in e},keys(){return o.filter(l=>l in e)}},ot));return i.push(new Proxy({get(o){return s.has(o)?void 0:e[o]},has(o){return s.has(o)?!1:o in e},keys(){return Object.keys(e).filter(o=>!s.has(o))}},ot)),i}const n={},r=t.map(()=>({}));for(const s of Object.getOwnPropertyNames(e)){const i=Object.getOwnPropertyDescriptor(e,s),o=!i.get&&!i.set&&i.enumerable&&i.writable&&i.configurable;let l=!1,a=0;for(const u of t)u.includes(s)&&(l=!0,o?r[a][s]=i.value:Object.defineProperty(r[a],s,i)),++a;l||(o?n[s]=i.value:Object.defineProperty(n,s,i))}return[...r,n]}function Ft(e){let t,n;const r=s=>{const i=h.context;if(i){const[l,a]=E();h.count||(h.count=0),h.count++,(n||(n=e())).then(u=>{!h.done&&ge(i),h.count--,a(()=>u.default),ge()}),t=l}else if(!t){const[l]=En(()=>(n||(n=e())).then(a=>a.default));t=l}let o;return N(()=>(o=t())?C(()=>{if(!i||h.done)return o(s);const l=h.context;ge(i);const a=o(s);return ge(l),a}):"")};return r.preload=()=>n||((n=e()).then(s=>t=()=>s.default),n),r}var jn=0;function Bn(){return h.context?h.getNextContextId():`cl-${jn++}`}var Ut=e=>`Stale read from <${e}>.`;function qn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return N(Vn(()=>e.each,e.children,t||void 0))}function Fn(e){const t="fallback"in e&&{fallback:()=>e.fallback};return N(_n(()=>e.each,e.children,t||void 0))}function Un(e){const t=e.keyed,n=N(()=>e.when,void 0,{equals:(r,s)=>t?r===s:!r==!s});return N(()=>{const r=n();if(r){const s=e.children;return typeof s=="function"&&s.length>0?C(()=>s(t?r:()=>{if(!C(n))throw Ut("Show");return e.when})):s}return e.fallback},void 0,void 0)}function Kn(e){let t=!1;const n=(i,o)=>(t?i[1]===o[1]:!i[1]==!o[1])&&i[2]===o[2],r=Vt(()=>e.children),s=N(()=>{let i=r();Array.isArray(i)||(i=[i]);for(let o=0;o<i.length;o++){const l=i[o].when;if(l)return t=!!i[o].keyed,[o,l,i[o]]}return[-1]},void 0,{equals:n});return N(()=>{const[i,o,l]=s();if(i<0)return e.fallback;const a=l.children;return typeof a=="function"&&a.length>0?C(()=>a(t?o:()=>{if(C(s)[0]!==i)throw Ut("Match");return l.when})):a},void 0,void 0)}function Qn(e){return e}var zn=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Gn=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...zn]),Hn=new Set(["innerHTML","textContent","innerText","children"]),Xn=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),Yn=Object.assign(Object.create(null),{class:"className",formnovalidate:{$:"formNoValidate",BUTTON:1,INPUT:1},ismap:{$:"isMap",IMG:1},nomodule:{$:"noModule",SCRIPT:1},playsinline:{$:"playsInline",VIDEO:1},readonly:{$:"readOnly",INPUT:1,TEXTAREA:1}});function Wn(e,t){const n=Yn[e];return typeof n=="object"?n[t]?n.$:void 0:n}var Zn=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Jn=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),er={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function tr(e,t,n){let r=n.length,s=t.length,i=r,o=0,l=0,a=t[s-1].nextSibling,u=null;for(;o<s||l<i;){if(t[o]===n[l]){o++,l++;continue}for(;t[s-1]===n[i-1];)s--,i--;if(s===o){const f=i<r?l?n[l-1].nextSibling:n[i-l]:a;for(;l<i;)e.insertBefore(n[l++],f)}else if(i===l)for(;o<s;)(!u||!u.has(t[o]))&&t[o].remove(),o++;else if(t[o]===n[i-1]&&n[l]===t[s-1]){const f=t[--s].nextSibling;e.insertBefore(n[l++],t[o++].nextSibling),e.insertBefore(n[--i],f),t[s]=n[i]}else{if(!u){u=new Map;let c=l;for(;c<i;)u.set(n[c],c++)}const f=u.get(t[o]);if(f!=null)if(l<f&&f<i){let c=o,g=1,y;for(;++c<s&&c<i&&!((y=u.get(t[c]))==null||y!==f+g);)g++;if(g>f-l){const S=t[o];for(;l<f;)e.insertBefore(n[l++],S)}else e.replaceChild(n[l++],t[o++])}else o++;else t[o++].remove()}}}var pe="_$DX_DELEGATE";function Kt(e,t,n,r={}){let s;return B(i=>{s=i,t===document?e():ze(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{s(),t.textContent=""}}function nr(e,t,n){let r;const s=()=>{const o=document.createElement("template");return o.innerHTML=e,o.content.firstChild},i=()=>(r||(r=s())).cloneNode(!0);return i.cloneNode=i,i}function Qt(e,t=window.document){const n=t[pe]||(t[pe]=new Set);for(let r=0,s=e.length;r<s;r++){const i=e[r];n.has(i)||(n.add(i),t.addEventListener(i,Yt))}}function rr(e=window.document){if(e[pe]){for(let t of e[pe].keys())e.removeEventListener(t,Yt);delete e[pe]}}function Qe(e,t,n){z(e)||(n==null?e.removeAttribute(t):e.setAttribute(t,n))}function sr(e,t,n,r){z(e)||(r==null?e.removeAttributeNS(t,n):e.setAttributeNS(t,n,r))}function ir(e,t,n){z(e)||(n?e.setAttribute(t,""):e.removeAttribute(t))}function zt(e,t){z(e)||(t==null?e.removeAttribute("class"):e.className=t)}function Gt(e,t,n,r){if(r)Array.isArray(n)?(e[`$$${t}`]=n[0],e[`$$${t}Data`]=n[1]):e[`$$${t}`]=n;else if(Array.isArray(n)){const s=n[0];e.addEventListener(t,n[0]=i=>s.call(e,n[1],i))}else e.addEventListener(t,n,typeof n!="function"&&n)}function or(e,t,n={}){const r=Object.keys(t||{}),s=Object.keys(n);let i,o;for(i=0,o=s.length;i<o;i++){const l=s[i];!l||l==="undefined"||t[l]||(St(e,l,!1),delete n[l])}for(i=0,o=r.length;i<o;i++){const l=r[i],a=!!t[l];!l||l==="undefined"||n[l]===a||!a||(St(e,l,!0),n[l]=a)}return n}function lr(e,t,n){if(!t)return n?Qe(e,"style"):t;const r=e.style;if(typeof t=="string")return r.cssText=t;typeof n=="string"&&(r.cssText=n=void 0),n||(n={}),t||(t={});let s,i;for(i in n)t[i]==null&&r.removeProperty(i),delete n[i];for(i in t)s=t[i],s!==n[i]&&(r.setProperty(i,s),n[i]=s);return n}function Ht(e,t={},n,r){const s={};return r||q(()=>s.children=be(e,t.children,s.children)),q(()=>typeof t.ref=="function"&&Xt(t.ref,e)),q(()=>ar(e,t,n,!0,s,!0)),s}function Xt(e,t,n){return C(()=>e(t,n))}function ze(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return be(e,t,r,n);q(s=>be(e,t(),s,n),r)}function ar(e,t,n,r,s={},i=!1){t||(t={});for(const o in s)if(!(o in t)){if(o==="children")continue;s[o]=Et(e,o,null,s[o],n,i,t)}for(const o in t){if(o==="children")continue;const l=t[o];s[o]=Et(e,o,l,s[o],n,i,t)}}function ur(e){let t,n;return!z()||!(t=h.registry.get(n=fr()))?e():(h.completed&&h.completed.add(t),h.registry.delete(n),t)}function z(e){return!!h.context&&!h.done&&(!e||e.isConnected)}function cr(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function St(e,t,n){const r=t.trim().split(/\s+/);for(let s=0,i=r.length;s<i;s++)e.classList.toggle(r[s],n)}function Et(e,t,n,r,s,i,o){let l,a,u,f,c;if(t==="style")return lr(e,n,r);if(t==="classList")return or(e,n,r);if(n===r)return r;if(t==="ref")i||n(e);else if(t.slice(0,3)==="on:"){const g=t.slice(3);r&&e.removeEventListener(g,r,typeof r!="function"&&r),n&&e.addEventListener(g,n,typeof n!="function"&&n)}else if(t.slice(0,10)==="oncapture:"){const g=t.slice(10);r&&e.removeEventListener(g,r,!0),n&&e.addEventListener(g,n,!0)}else if(t.slice(0,2)==="on"){const g=t.slice(2).toLowerCase(),y=Zn.has(g);if(!y&&r){const S=Array.isArray(r)?r[0]:r;e.removeEventListener(g,S)}(y||n)&&(Gt(e,g,n,y),y&&Qt([g]))}else if(t.slice(0,5)==="attr:")Qe(e,t.slice(5),n);else if(t.slice(0,5)==="bool:")ir(e,t.slice(5),n);else if((c=t.slice(0,5)==="prop:")||(u=Hn.has(t))||!s&&((f=Wn(t,e.tagName))||(a=Gn.has(t)))||(l=e.nodeName.includes("-")||"is"in o)){if(c)t=t.slice(5),a=!0;else if(z(e))return n;t==="class"||t==="className"?zt(e,n):l&&!a&&!u?e[cr(t)]=n:e[f||t]=n}else{const g=s&&t.indexOf(":")>-1&&er[t.split(":")[0]];g?sr(e,g,t,n):Qe(e,Xn[t]||t,n)}return n}function Yt(e){if(h.registry&&h.events&&h.events.find(([a,u])=>u===e))return;let t=e.target;const n=`$$${e.type}`,r=e.target,s=e.currentTarget,i=a=>Object.defineProperty(e,"target",{configurable:!0,value:a}),o=()=>{const a=t[n];if(a&&!t.disabled){const u=t[`${n}Data`];if(u!==void 0?a.call(t,u,e):a.call(t,e),e.cancelBubble)return}return t.host&&typeof t.host!="string"&&!t.host._$host&&t.contains(e.target)&&i(t.host),!0},l=()=>{for(;o()&&(t=t._$host||t.parentNode||t.host););};if(Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return t||document}}),h.registry&&!h.done&&(h.done=_$HY.done=!0),e.composedPath){const a=e.composedPath();i(a[0]);for(let u=0;u<a.length-2&&(t=a[u],!!o());u++){if(t._$host){t=t._$host,l();break}if(t.parentNode===s)break}}else l();i(r)}function be(e,t,n,r,s){const i=z(e);if(i){!n&&(n=[...e.childNodes]);let a=[];for(let u=0;u<n.length;u++){const f=n[u];f.nodeType===8&&f.data.slice(0,2)==="!$"?f.remove():a.push(f)}n=a}for(;typeof n=="function";)n=n();if(t===n)return n;const o=typeof t,l=r!==void 0;if(e=l&&n[0]&&n[0].parentNode||e,o==="string"||o==="number"){if(i||o==="number"&&(t=t.toString(),t===n))return n;if(l){let a=n[0];a&&a.nodeType===3?a.data!==t&&(a.data=t):a=document.createTextNode(t),n=H(e,n,r,a)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||o==="boolean"){if(i)return n;n=H(e,n,r)}else{if(o==="function")return q(()=>{let a=t();for(;typeof a=="function";)a=a();n=be(e,a,n,r)}),()=>n;if(Array.isArray(t)){const a=[],u=n&&Array.isArray(n);if(lt(a,t,n,s))return q(()=>n=be(e,a,n,r,!0)),()=>n;if(i){if(!a.length)return n;if(r===void 0)return n=[...e.childNodes];let f=a[0];if(f.parentNode!==e)return n;const c=[f];for(;(f=f.nextSibling)!==r;)c.push(f);return n=c}if(a.length===0){if(n=H(e,n,r),l)return n}else u?n.length===0?At(e,a,r):tr(e,n,a):(n&&H(e),At(e,a));n=a}else if(t.nodeType){if(i&&t.parentNode)return n=l?[t]:t;if(Array.isArray(n)){if(l)return n=H(e,n,r,t);H(e,n,null,t)}else n==null||n===""||!e.firstChild?e.appendChild(t):e.replaceChild(t,e.firstChild);n=t}}return n}function lt(e,t,n,r){let s=!1;for(let i=0,o=t.length;i<o;i++){let l=t[i],a=n&&n[e.length],u;if(!(l==null||l===!0||l===!1))if((u=typeof l)=="object"&&l.nodeType)e.push(l);else if(Array.isArray(l))s=lt(e,l,a)||s;else if(u==="function")if(r){for(;typeof l=="function";)l=l();s=lt(e,Array.isArray(l)?l:[l],Array.isArray(a)?a:[a])||s}else e.push(l),s=!0;else{const f=String(l);a&&a.nodeType===3&&a.data===f?e.push(a):e.push(document.createTextNode(f))}}return s}function At(e,t,n=null){for(let r=0,s=t.length;r<s;r++)e.insertBefore(t[r],n)}function H(e,t,n,r){if(n===void 0)return e.textContent="";const s=r||document.createTextNode("");if(t.length){let i=!1;for(let o=t.length-1;o>=0;o--){const l=t[o];if(s!==l){const a=l.parentNode===e;!i&&!o?a?e.replaceChild(s,l):e.insertBefore(s,n):a&&l.remove()}else i=!0}}else e.insertBefore(s,n);return[s]}function fr(){return h.getNextContextId()}var dr="http://www.w3.org/2000/svg";function Wt(e,t=!1){return t?document.createElementNS(dr,e):document.createElement(e)}function hr(e){const{useShadow:t}=e,n=document.createTextNode(""),r=()=>e.mount||document.body,s=bt();let i,o=!!h.context;return ht(()=>{o&&(bt().user=o=!1),i||(i=Cn(s,()=>N(()=>e.children)));const l=r();if(l instanceof HTMLHeadElement){const[a,u]=E(!1),f=()=>u(!0);B(c=>ze(l,()=>a()?c():i(),null)),fe(f)}else{const a=Wt(e.isSVG?"g":"div",e.isSVG),u=t&&a.attachShadow?a.attachShadow({mode:"open"}):a;Object.defineProperty(a,"_$host",{get(){return n.parentNode},configurable:!0}),ze(u,i),l.appendChild(a),e.ref&&e.ref(a),fe(()=>l.removeChild(a))}},void 0,{render:!o}),n}function gr(e){const[t,n]=qt(e,["component"]),r=N(()=>t.component);return N(()=>{const s=r();switch(typeof s){case"function":return C(()=>s(n));case"string":const i=Jn.has(s),o=h.context?ur():Wt(s,i);return Ht(o,n,i),o}})}var yr=class{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}getByKey(e){return this.keyToValue.get(e)}getByValue(e){return this.valueToKey.get(e)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}},Zt=class{constructor(e){this.generateIdentifier=e,this.kv=new yr}register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}clear(){this.kv.clear()}getIdentifier(e){return this.kv.getByValue(e)}getValue(e){return this.kv.getByKey(e)}},mr=class extends Zt{constructor(){super(e=>e.name),this.classToAllowedProps=new Map}register(e,t){typeof t=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),super.register(e,t.identifier)):super.register(e,t)}getAllowedProps(e){return this.classToAllowedProps.get(e)}};function pr(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function vr(e,t){const n=pr(e);if("find"in n)return n.find(t);const r=n;for(let s=0;s<r.length;s++){const i=r[s];if(t(i))return i}}function de(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function _e(e,t){return e.indexOf(t)!==-1}function Ot(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}var wr=class{constructor(){this.transfomers={}}register(e){this.transfomers[e.name]=e}findApplicable(e){return vr(this.transfomers,t=>t.isApplicable(e))}findByName(e){return this.transfomers[e]}},br=e=>Object.prototype.toString.call(e).slice(8,-1),Jt=e=>typeof e>"u",Sr=e=>e===null,Se=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,at=e=>Se(e)&&Object.keys(e).length===0,F=e=>Array.isArray(e),Er=e=>typeof e=="string",Ar=e=>typeof e=="number"&&!isNaN(e),Or=e=>typeof e=="boolean",Cr=e=>e instanceof RegExp,Ee=e=>e instanceof Map,Ae=e=>e instanceof Set,en=e=>br(e)==="Symbol",xr=e=>e instanceof Date&&!isNaN(e.valueOf()),Tr=e=>e instanceof Error,Ct=e=>typeof e=="number"&&isNaN(e),Pr=e=>Or(e)||Sr(e)||Jt(e)||Ar(e)||Er(e)||en(e),Nr=e=>typeof e=="bigint",kr=e=>e===1/0||e===-1/0,Ir=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),Rr=e=>e instanceof URL,tn=e=>e.replace(/\./g,"\\."),nt=e=>e.map(String).map(tn).join("."),ve=e=>{const t=[];let n="";for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"&&e.charAt(s+1)==="."){n+=".",s++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function L(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var nn=[L(Jt,"undefined",()=>null,()=>{}),L(Nr,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):e),L(xr,"Date",e=>e.toISOString(),e=>new Date(e)),L(Tr,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),L(Cr,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),L(Ae,"set",e=>[...e.values()],e=>new Set(e)),L(Ee,"map",e=>[...e.entries()],e=>new Map(e)),L(e=>Ct(e)||kr(e),"number",e=>Ct(e)?"NaN":e>0?"Infinity":"-Infinity",Number),L(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),L(Rr,"URL",e=>e.toString(),e=>new URL(e))];function Xe(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}var rn=Xe((e,t)=>en(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),Mr=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),sn=Xe(Ir,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=Mr[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function on(e,t){return e!=null&&e.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}var ln=Xe(on,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(s=>{r[s]=e[s]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),an=Xe((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),Dr=[ln,rn,an,sn],xt=(e,t)=>{const n=Ot(Dr,s=>s.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=Ot(nn,s=>s.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},un={};nn.forEach(e=>{un[e.annotation]=e});var Lr=(e,t,n)=>{if(F(t))switch(t[0]){case"symbol":return rn.untransform(e,t,n);case"class":return ln.untransform(e,t,n);case"custom":return an.untransform(e,t,n);case"typed-array":return sn.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=un[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},X=(e,t)=>{const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function cn(e){if(_e(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(_e(e,"prototype"))throw new Error("prototype is not allowed as a property");if(_e(e,"constructor"))throw new Error("constructor is not allowed as a property")}var Vr=(e,t)=>{cn(t);for(let n=0;n<t.length;n++){const r=t[n];if(Ae(e))e=X(e,+r);else if(Ee(e)){const s=+r,i=+t[++n]==0?"key":"value",o=X(e,s);switch(i){case"key":e=o;break;case"value":e=e.get(o);break}}else e=e[r]}return e},ut=(e,t,n)=>{if(cn(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const o=t[i];if(F(r)){const l=+o;r=r[l]}else if(Se(r))r=r[o];else if(Ae(r)){const l=+o;r=X(r,l)}else if(Ee(r)){if(i===t.length-2)break;const a=+o,u=+t[++i]==0?"key":"value",f=X(r,a);switch(u){case"key":r=f;break;case"value":r=r.get(f);break}}}const s=t[t.length-1];if(F(r)?r[+s]=n(r[+s]):Se(r)&&(r[s]=n(r[s])),Ae(r)){const i=X(r,+s),o=n(i);i!==o&&(r.delete(i),r.add(o))}if(Ee(r)){const i=+t[t.length-2],o=X(r,i);switch(+s==0?"key":"value"){case"key":{const a=n(o);r.set(a,r.get(o)),a!==o&&r.delete(o);break}case"value":{r.set(o,n(r.get(o)));break}}}return e};function ct(e,t,n=[]){if(!e)return;if(!F(e)){de(e,(i,o)=>ct(i,t,[...n,...ve(o)]));return}const[r,s]=e;s&&de(s,(i,o)=>{ct(i,t,[...n,...ve(o)])}),t(r,n)}function _r(e,t,n){return ct(t,(r,s)=>{e=ut(e,s,i=>Lr(i,r,n))}),e}function $r(e,t){function n(r,s){const i=Vr(e,ve(s));r.map(ve).forEach(o=>{e=ut(e,o,()=>i)})}if(F(t)){const[r,s]=t;r.forEach(i=>{e=ut(e,ve(i),()=>e)}),s&&de(s,n)}else de(t,n);return e}var jr=(e,t)=>Se(e)||F(e)||Ee(e)||Ae(e)||on(e,t);function Br(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function qr(e,t){const n={};let r;return e.forEach(s=>{if(s.length<=1)return;t||(s=s.map(l=>l.map(String)).sort((l,a)=>l.length-a.length));const[i,...o]=s;i.length===0?r=o.map(nt):n[nt(i)]=o.map(nt)}),r?at(n)?[r]:[r,n]:at(n)?void 0:n}var fn=(e,t,n,r,s=[],i=[],o=new Map)=>{const l=Pr(e);if(!l){Br(e,s,t);const y=o.get(e);if(y)return r?{transformedValue:null}:y}if(!jr(e,n)){const y=xt(e,n),S=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:e};return l||o.set(e,S),S}if(_e(i,e))return{transformedValue:null};const a=xt(e,n),u=(a==null?void 0:a.value)??e,f=F(u)?[]:{},c={};de(u,(y,S)=>{if(S==="__proto__"||S==="constructor"||S==="prototype")throw new Error(`Detected property ${S}. This is a prototype pollution risk, please remove it from your object.`);const x=fn(y,t,n,r,[...s,S],[...i,e],o);f[S]=x.transformedValue,F(x.annotations)?c[S]=x.annotations:Se(x.annotations)&&de(x.annotations,(j,U)=>{c[tn(S)+"."+U]=j})});const g=at(c)?{transformedValue:f,annotations:a?[a.type]:void 0}:{transformedValue:f,annotations:a?[a.type,c]:c};return l||o.set(e,g),g};function dn(e){return Object.prototype.toString.call(e).slice(8,-1)}function Tt(e){return dn(e)==="Array"}function Fr(e){if(dn(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function Ur(e,t,n,r,s){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),s&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ft(e,t={}){if(Tt(e))return e.map(s=>ft(s,t));if(!Fr(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((s,i)=>{if(Tt(t.props)&&!t.props.includes(i))return s;const o=e[i],l=ft(o,t);return Ur(s,i,l,e,t.nonenumerable),s},{})}var b=class{constructor({dedupe:e=!1}={}){this.classRegistry=new mr,this.symbolRegistry=new Zt(t=>t.description??""),this.customTransformerRegistry=new wr,this.allowedErrorProps=[],this.dedupe=e}serialize(e){const t=new Map,n=fn(e,t,this,this.dedupe),r={json:n.transformedValue};n.annotations&&(r.meta={...r.meta,values:n.annotations});const s=qr(t,this.dedupe);return s&&(r.meta={...r.meta,referentialEqualities:s}),r}deserialize(e){const{json:t,meta:n}=e;let r=ft(t);return n!=null&&n.values&&(r=_r(r,n.values,this)),n!=null&&n.referentialEqualities&&(r=$r(r,n.referentialEqualities)),r}stringify(e){return JSON.stringify(this.serialize(e))}parse(e){return this.deserialize(JSON.parse(e))}registerClass(e,t){this.classRegistry.register(e,t)}registerSymbol(e,t){this.symbolRegistry.register(e,t)}registerCustom(e,t){this.customTransformerRegistry.register({name:t,...e})}allowErrorProps(...e){this.allowedErrorProps.push(...e)}};b.defaultInstance=new b;b.serialize=b.defaultInstance.serialize.bind(b.defaultInstance);b.deserialize=b.defaultInstance.deserialize.bind(b.defaultInstance);b.stringify=b.defaultInstance.stringify.bind(b.defaultInstance);b.parse=b.defaultInstance.parse.bind(b.defaultInstance);b.registerClass=b.defaultInstance.registerClass.bind(b.defaultInstance);b.registerSymbol=b.defaultInstance.registerSymbol.bind(b.defaultInstance);b.registerCustom=b.defaultInstance.registerCustom.bind(b.defaultInstance);b.allowErrorProps=b.defaultInstance.allowErrorProps.bind(b.defaultInstance);var hn=b.serialize,Kr=b.stringify;function Qr(e){return e.state.fetchStatus==="fetching"?"fetching":e.getObserversCount()?e.state.fetchStatus==="paused"?"paused":e.isStale()?"stale":"fresh":"inactive"}function zr(e,t){return`${e}${t.charAt(0).toUpperCase()+t.slice(1)}`}function Gr({queryState:e,observerCount:t,isStale:n}){return e.fetchStatus==="fetching"?"blue":t?e.fetchStatus==="paused"?"purple":n?"yellow":"green":"gray"}function Hr({status:e,isPaused:t}){return t?"purple":e==="error"?"red":e==="pending"?"yellow":e==="success"?"green":"gray"}function Xr(e){return e==="fresh"?"green":e==="stale"?"yellow":e==="paused"?"purple":e==="inactive"?"gray":"blue"}var Yr=(e,t=!1)=>{const{json:n}=hn(e);return JSON.stringify(n,null,t?2:void 0)},Le=e=>e.state.fetchStatus!=="idle"?0:e.getObserversCount()?e.isStale()?2:1:3,Wr=(e,t)=>e.queryHash.localeCompare(t.queryHash),gn=(e,t)=>e.state.dataUpdatedAt<t.state.dataUpdatedAt?1:-1,Zr=(e,t)=>Le(e)===Le(t)?gn(e,t):Le(e)>Le(t)?1:-1,Jr={status:Zr,"query hash":Wr,"last updated":gn},Ve=e=>e.state.isPaused?0:e.state.status==="error"?2:e.state.status==="pending"?1:3,yn=(e,t)=>e.state.submittedAt<t.state.submittedAt?1:-1,es=(e,t)=>Ve(e)===Ve(t)?yn(e,t):Ve(e)>Ve(t)?1:-1,ts={status:es,"last updated":yn},ns=e=>e*parseFloat(getComputedStyle(document.documentElement).fontSize),rs=()=>{const[e,t]=E("dark");return Lt(()=>{const n=window.matchMedia("(prefers-color-scheme: dark)");t(n.matches?"dark":"light");const r=s=>{t(s.matches?"dark":"light")};n.addEventListener("change",r),fe(()=>n.removeEventListener("change",r))}),e},ye=(e,t,n)=>{if(t.length===0)return n;if(e instanceof Map){const r=new Map(e);if(t.length===1)return r.set(t[0],n),r;const[s,...i]=t;return r.set(s,ye(r.get(s),i,n)),r}if(e instanceof Set){const r=ye(Array.from(e),t,n);return new Set(r)}if(Array.isArray(e)){const r=[...e];if(t.length===1)return r[t[0]]=n,r;const[s,...i]=t;return r[s]=ye(r[s],i,n),r}if(e instanceof Object){const r={...e};if(t.length===1)return r[t[0]]=n,r;const[s,...i]=t;return r[s]=ye(r[s],i,n),r}return e},me=(e,t)=>{if(e instanceof Map){const n=new Map(e);if(t.length===1)return n.delete(t[0]),n;const[r,...s]=t;return n.set(r,me(n.get(r),s)),n}if(e instanceof Set){const n=me(Array.from(e),t);return new Set(n)}if(Array.isArray(e)){const n=[...e];if(t.length===1)return n.filter((i,o)=>o.toString()!==t[0]);const[r,...s]=t;return n[r]=me(n[r],s),n}if(e instanceof Object){const n={...e};if(t.length===1)return delete n[t[0]],n;const[r,...s]=t;return n[r]=me(n[r],s),n}return e},mn=(e,t)=>{if(!e||document.querySelector("#_goober")||(t==null?void 0:t.querySelector("#_goober")))return;const r=document.createElement("style"),s=document.createTextNode("");r.appendChild(s),r.id="_goober",r.setAttribute("nonce",e),t?t.appendChild(r):document.head.appendChild(r)},Y,Oe,Ce,xe,K,Te,W,Z,J,ee,te,ne,Pe,Pt,ss=(Pt=class{constructor(e){v(this,Y);v(this,Oe);v(this,Ce);v(this,xe);v(this,K,!1);v(this,Te);v(this,W);v(this,Z);v(this,J);v(this,ee);v(this,te);v(this,ne);v(this,Pe);const{client:t,queryFlavor:n,version:r,onlineManager:s,buttonPosition:i,position:o,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:f}=e;p(this,Y,E(t)),p(this,Ce,n),p(this,xe,r),p(this,Oe,s),p(this,Te,u),p(this,W,f),p(this,Z,E(i)),p(this,J,E(o)),p(this,ee,E(l)),p(this,te,E(a))}setButtonPosition(e){d(this,Z)[1](e)}setPosition(e){d(this,J)[1](e)}setInitialIsOpen(e){d(this,ee)[1](e)}setErrorTypes(e){d(this,te)[1](e)}setClient(e){d(this,Y)[1](e)}mount(e){if(d(this,K))throw new Error("Devtools is already mounted");const t=Kt(()=>{const n=this,[r]=d(this,Z),[s]=d(this,J),[i]=d(this,ee),[o]=d(this,te),[l]=d(this,Y);let a;return d(this,ne)?a=d(this,ne):(a=Ft(()=>Promise.resolve().then(()=>require("./J3FDRF32-x0Ykygn2.js"))),p(this,ne,a)),mn(d(this,Te),d(this,W)),yt(a,mt({get queryFlavor(){return d(n,Ce)},get version(){return d(n,xe)},get onlineManager(){return d(n,Oe)},get shadowDOMTarget(){return d(n,W)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return s()},get initialIsOpen(){return i()},get errorTypes(){return o()}}))},e);p(this,K,!0),p(this,Pe,t)}unmount(){var e;if(!d(this,K))throw new Error("Devtools is not mounted");(e=d(this,Pe))==null||e.call(this),p(this,K,!1)}},Y=new WeakMap,Oe=new WeakMap,Ce=new WeakMap,xe=new WeakMap,K=new WeakMap,Te=new WeakMap,W=new WeakMap,Z=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,Pe=new WeakMap,Pt),re,Ne,ke,Ie,Q,Re,se,ie,oe,le,ae,ue,ce,Me,Nt,is=(Nt=class{constructor(e){v(this,re);v(this,Ne);v(this,ke);v(this,Ie);v(this,Q,!1);v(this,Re);v(this,se);v(this,ie);v(this,oe);v(this,le);v(this,ae);v(this,ue);v(this,ce);v(this,Me);const{client:t,queryFlavor:n,version:r,onlineManager:s,buttonPosition:i,position:o,initialIsOpen:l,errorTypes:a,styleNonce:u,shadowDOMTarget:f,onClose:c}=e;p(this,re,E(t)),p(this,ke,n),p(this,Ie,r),p(this,Ne,s),p(this,Re,u),p(this,se,f),p(this,ie,E(i)),p(this,oe,E(o)),p(this,le,E(l)),p(this,ae,E(a)),p(this,ue,E(c))}setButtonPosition(e){d(this,ie)[1](e)}setPosition(e){d(this,oe)[1](e)}setInitialIsOpen(e){d(this,le)[1](e)}setErrorTypes(e){d(this,ae)[1](e)}setClient(e){d(this,re)[1](e)}setOnClose(e){d(this,ue)[1](()=>e)}mount(e){if(d(this,Q))throw new Error("Devtools is already mounted");const t=Kt(()=>{const n=this,[r]=d(this,ie),[s]=d(this,oe),[i]=d(this,le),[o]=d(this,ae),[l]=d(this,re),[a]=d(this,ue);let u;return d(this,ce)?u=d(this,ce):(u=Ft(()=>Promise.resolve().then(()=>require("./3VW64HDT-BnET31Hh.js"))),p(this,ce,u)),mn(d(this,Re),d(this,se)),yt(u,mt({get queryFlavor(){return d(n,ke)},get version(){return d(n,Ie)},get onlineManager(){return d(n,Ne)},get shadowDOMTarget(){return d(n,se)}},{get client(){return l()},get buttonPosition(){return r()},get position(){return s()},get initialIsOpen(){return i()},get errorTypes(){return o()},get onClose(){return a()}}))},e);p(this,Q,!0),p(this,Me,t)}unmount(){var e;if(!d(this,Q))throw new Error("Devtools is not mounted");(e=d(this,Me))==null||e.call(this),p(this,Q,!1)}},re=new WeakMap,Ne=new WeakMap,ke=new WeakMap,Ie=new WeakMap,Q=new WeakMap,Re=new WeakMap,se=new WeakMap,ie=new WeakMap,oe=new WeakMap,le=new WeakMap,ae=new WeakMap,ue=new WeakMap,ce=new WeakMap,Me=new WeakMap,Nt);function os(e){const t=$e.useQueryClient(e.client),n=k.useRef(null),{buttonPosition:r,position:s,initialIsOpen:i,errorTypes:o,styleNonce:l,shadowDOMTarget:a}=e,[u]=k.useState(new ss({client:t,queryFlavor:"React Query",version:"5",onlineManager:$e.onlineManager,buttonPosition:r,position:s,initialIsOpen:i,errorTypes:o,styleNonce:l,shadowDOMTarget:a}));return k.useEffect(()=>{u.setClient(t)},[t,u]),k.useEffect(()=>{r&&u.setButtonPosition(r)},[r,u]),k.useEffect(()=>{s&&u.setPosition(s)},[s,u]),k.useEffect(()=>{u.setInitialIsOpen(i||!1)},[i,u]),k.useEffect(()=>{u.setErrorTypes(o||[])},[o,u]),k.useEffect(()=>(n.current&&u.mount(n.current),()=>{u.unmount()}),[u]),kt.jsx("div",{dir:"ltr",className:"tsqd-parent-container",ref:n})}function ls(e){const t=$e.useQueryClient(e.client),n=k.useRef(null),{errorTypes:r,styleNonce:s,shadowDOMTarget:i}=e,[o]=k.useState(new is({client:t,queryFlavor:"React Query",version:"5",onlineManager:$e.onlineManager,buttonPosition:"bottom-left",position:"bottom",initialIsOpen:!0,errorTypes:r,styleNonce:s,shadowDOMTarget:i,onClose:e.onClose}));return k.useEffect(()=>{o.setClient(t)},[t,o]),k.useEffect(()=>{o.setOnClose(e.onClose??(()=>{}))},[e.onClose,o]),k.useEffect(()=>{o.setErrorTypes(r||[])},[r,o]),k.useEffect(()=>(n.current&&o.mount(n.current),()=>{o.unmount()}),[o]),kt.jsx("div",{style:{height:"500px",...e.style},className:"tsqd-parent-container",ref:n})}var as=process.env.NODE_ENV!=="development"?function(){return null}:os,us=process.env.NODE_ENV!=="development"?function(){return null}:ls;const cs=Object.freeze(Object.defineProperty({__proto__:null,ReactQueryDevtools:as,ReactQueryDevtoolsPanel:us},Symbol.toStringTag,{value:"Module"}));exports.$TRACK=dt;exports.Dynamic=gr;exports.For=qn;exports.Index=Fn;exports.Match=Qn;exports.Portal=hr;exports.Show=Un;exports.Switch=Kn;exports.addEventListener=Gt;exports.batch=An;exports.className=zt;exports.clearDelegatedEvents=rr;exports.convertRemToPixels=ns;exports.createComponent=yt;exports.createComputed=Dt;exports.createContext=Nn;exports.createEffect=ht;exports.createMemo=N;exports.createRenderEffect=q;exports.createRoot=B;exports.createSignal=E;exports.createUniqueId=Bn;exports.delegateEvents=Qt;exports.deleteNestedDataByPath=me;exports.displayValue=Yr;exports.getMutationStatusColor=Hr;exports.getPreferredColorScheme=rs;exports.getQueryStatusColor=Gr;exports.getQueryStatusColorByLabel=Xr;exports.getQueryStatusLabel=Qr;exports.getSidedProp=zr;exports.index=cs;exports.insert=ze;exports.mergeProps=mt;exports.mutationSortFns=ts;exports.on=On;exports.onCleanup=fe;exports.onMount=Lt;exports.serialize=hn;exports.setAttribute=Qe;exports.sortFns=Jr;exports.splitProps=qt;exports.spread=Ht;exports.stringify=Kr;exports.template=nr;exports.untrack=C;exports.updateNestedDataByPath=ye;exports.use=Xt;exports.useContext=kn;exports.useTransition=Pn;
@@ -1,4 +1,4 @@
1
- import { r as bt, t as Tt, a as bn, m as Q, i as O, b as Tn, n as q, c as De, d as Vt, e as k, p as ge, f as Vn, g as St, h as F, j as Fe, k as Y, l as Sn, v as An, q as xn, w as ie, s as ee, x as wn, y as He, z as ye, A as Mn, B as re, M as Cn, C as At, D as xt, E as wt, F as We, G as Mt, H as Pn, I as Ct, J as Dn, K as Fn, L as ze, S as Rn, N as In, O as On, P as En, Q as Kn, R as Nn, T as Bn, U as Ln, V as _n, W as kn, X as Gn, Y as Un, Z as $n } from "./index-Czq5KaIO.mjs";
1
+ import { r as bt, t as Tt, a as bn, m as Q, i as O, b as Tn, n as q, c as De, d as Vt, e as k, p as ge, f as Vn, g as St, h as F, j as Fe, k as Y, l as Sn, v as An, q as xn, w as ie, s as ee, x as wn, y as He, z as ye, A as Mn, B as re, M as Cn, C as At, D as xt, E as wt, F as We, G as Mt, H as Pn, I as Ct, J as Dn, K as Fn, L as ze, S as Rn, N as In, O as On, P as En, Q as Kn, R as Nn, T as Bn, U as Ln, V as _n, W as kn, X as Gn, Y as Un, Z as $n } from "./index-BsvrQ2Uq.mjs";
2
2
  import { Fragment as jn } from "react";
3
3
  // @__NO_SIDE_EFFECTS__
4
4
  function Re(t) {
package/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BM-G1h7Y.js");exports.Provider=e.Provider;exports.defineConfig=e.defineConfig;
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as r, $ as f } from "./index-Czq5KaIO.mjs";
1
+ import { _ as r, $ as f } from "./index-BsvrQ2Uq.mjs";
2
2
  export {
3
3
  r as Provider,
4
4
  f as defineConfig
@@ -2,5 +2,5 @@ import { Props } from './types';
2
2
  import { FC } from 'react';
3
3
 
4
4
  declare const Provider: FC<Props>;
5
- declare const defineConfig: ({ name, ...props }: Props) => void;
5
+ declare const defineConfig: (props: Props) => void;
6
6
  export { Provider, defineConfig };
@@ -3,10 +3,12 @@ import { ReactNode } from 'react';
3
3
  import { AxiosRequestConfig } from 'axios';
4
4
 
5
5
  interface AxiosProps {
6
+ defineEnv: (config: AxiosRequestConfig) => '';
6
7
  onRequest?: (config: AxiosRequestConfig) => {};
7
8
  onError?: (error: any) => {};
8
9
  }
9
10
  interface Props extends AxiosProps {
11
+ __DEV__: boolean;
10
12
  id?: string;
11
13
  className?: string;
12
14
  children?: ReactNode;
@@ -14,7 +16,7 @@ interface Props extends AxiosProps {
14
16
  disableAnimation?: boolean;
15
17
  vmode?: Vmode;
16
18
  strict?: boolean;
17
- name?: string;
19
+ name: string;
18
20
  version?: string;
19
21
  query?: boolean;
20
22
  store?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vezham/start",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A package for managing start",
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,10 +19,9 @@
19
19
  "dependencies": {
20
20
  "@tanstack/react-query": "^5.62.0",
21
21
  "@v0xoss/system": "^0.0.5",
22
- "@vezham/env": "0.2.0",
23
- "@vezham/shared-sw": "0.2.0",
24
- "@vezham/templates": "0.2.0",
25
- "@vezham/theme": "0.2.0",
22
+ "@vezham/shared-sw": "0.2.1",
23
+ "@vezham/templates": "0.2.1",
24
+ "@vezham/theme": "0.2.1",
26
25
  "axios": "^1.7.7",
27
26
  "sonner": "^1.7.0"
28
27
  },