@jaabiri/bmad-studio 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.
- package/dist/index.js +1996 -0
- package/package.json +53 -0
- package/ui-dist/assets/_baseUniq-B_n4QFRL.js +1 -0
- package/ui-dist/assets/_workflowId.lazy-FP56r40x.js +12 -0
- package/ui-dist/assets/arc-D8SlLs2L.js +1 -0
- package/ui-dist/assets/architectureDiagram-Q4EWVU46-BhKy9qBN.js +36 -0
- package/ui-dist/assets/blockDiagram-DXYQGD6D-DHQ9TuqQ.js +132 -0
- package/ui-dist/assets/c4Diagram-AHTNJAMY-BTPifryG.js +10 -0
- package/ui-dist/assets/channel-qsfw27Pz.js +1 -0
- package/ui-dist/assets/chevron-right-C3gMQbwP.js +1 -0
- package/ui-dist/assets/chunk-4BX2VUAB-DJJtjuLz.js +1 -0
- package/ui-dist/assets/chunk-4TB4RGXK-ONYWO0S_.js +206 -0
- package/ui-dist/assets/chunk-55IACEB6-CKub8aEM.js +1 -0
- package/ui-dist/assets/chunk-EDXVE4YY-c2zVzCwr.js +1 -0
- package/ui-dist/assets/chunk-FMBD7UC4-CnUcBH4x.js +15 -0
- package/ui-dist/assets/chunk-OYMX7WX6-DI7UEGCn.js +231 -0
- package/ui-dist/assets/chunk-QZHKN3VN-Dlq9g4FR.js +1 -0
- package/ui-dist/assets/chunk-YZCP3GAM-CpE3yTZs.js +1 -0
- package/ui-dist/assets/classDiagram-6PBFFD2Q-C6zNtups.js +1 -0
- package/ui-dist/assets/classDiagram-v2-HSJHXN6E-C6zNtups.js +1 -0
- package/ui-dist/assets/clone-lFRGLeBs.js +1 -0
- package/ui-dist/assets/cose-bilkent-S5V4N54A-BcwRulTx.js +1 -0
- package/ui-dist/assets/cytoscape.esm-5J0xJHOV.js +321 -0
- package/ui-dist/assets/dagre-KV5264BT-kD6LwyTY.js +4 -0
- package/ui-dist/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/ui-dist/assets/diagram-5BDNPKRD-7BtLyPf7.js +10 -0
- package/ui-dist/assets/diagram-G4DWMVQ6-BeU21gzV.js +24 -0
- package/ui-dist/assets/diagram-MMDJMWI5-BcZe7DAu.js +43 -0
- package/ui-dist/assets/diagram-TYMM5635-30qZErT6.js +24 -0
- package/ui-dist/assets/erDiagram-SMLLAGMA-DZzYsGd-.js +85 -0
- package/ui-dist/assets/flowDiagram-DWJPFMVM-CEyo_5fY.js +162 -0
- package/ui-dist/assets/ganttDiagram-T4ZO3ILL-CdxjNHta.js +292 -0
- package/ui-dist/assets/gitGraphDiagram-UUTBAWPF-OI6nqhRA.js +106 -0
- package/ui-dist/assets/graph-CJuDDeAK.js +1 -0
- package/ui-dist/assets/index-1QFQcLya.js +56 -0
- package/ui-dist/assets/index-BvVxlmMK.js +29 -0
- package/ui-dist/assets/index-DPA4A8ah.js +9 -0
- package/ui-dist/assets/index-DbkfLjQe.js +1 -0
- package/ui-dist/assets/index-cvXQBc8Y.css +1 -0
- package/ui-dist/assets/infoDiagram-42DDH7IO-Bgvk_VTG.js +2 -0
- package/ui-dist/assets/init-Gi6I4Gst.js +1 -0
- package/ui-dist/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
- package/ui-dist/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
- package/ui-dist/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
- package/ui-dist/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
- package/ui-dist/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
- package/ui-dist/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
- package/ui-dist/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
- package/ui-dist/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
- package/ui-dist/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
- package/ui-dist/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
- package/ui-dist/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
- package/ui-dist/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
- package/ui-dist/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
- package/ui-dist/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
- package/ui-dist/assets/ishikawaDiagram-UXIWVN3A-Cz2e8g4P.js +70 -0
- package/ui-dist/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
- package/ui-dist/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
- package/ui-dist/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
- package/ui-dist/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
- package/ui-dist/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/ui-dist/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/ui-dist/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
- package/ui-dist/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
- package/ui-dist/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
- package/ui-dist/assets/journeyDiagram-VCZTEJTY-B7EdpiRX.js +139 -0
- package/ui-dist/assets/kanban-definition-6JOO6SKY-DiUf0qIs.js +89 -0
- package/ui-dist/assets/katex-BzTkCl_B.js +265 -0
- package/ui-dist/assets/layout-BhnDrrIT.js +1 -0
- package/ui-dist/assets/linear-BDwQpyTv.js +1 -0
- package/ui-dist/assets/mermaid.core-BR4XzyQe.js +303 -0
- package/ui-dist/assets/min-BJhF9j1-.js +1 -0
- package/ui-dist/assets/mindmap-definition-QFDTVHPH-D05ylhL6.js +96 -0
- package/ui-dist/assets/minus-M76p8_Mr.js +1 -0
- package/ui-dist/assets/ordinal-Cboi1Yqb.js +1 -0
- package/ui-dist/assets/pieDiagram-DEJITSTG-Bn-HlZLK.js +30 -0
- package/ui-dist/assets/proxy-B7DZsNQK.js +1 -0
- package/ui-dist/assets/quadrantDiagram-34T5L4WZ-BElRpUWb.js +7 -0
- package/ui-dist/assets/requirementDiagram-MS252O5E-CHPWxs3l.js +84 -0
- package/ui-dist/assets/sankeyDiagram-XADWPNL6-tlvafq0R.js +10 -0
- package/ui-dist/assets/sequenceDiagram-FGHM5R23-FgarYdCI.js +157 -0
- package/ui-dist/assets/sprint.lazy-CPHJj3lM.js +1 -0
- package/ui-dist/assets/stateDiagram-FHFEXIEX-BMEGKFsF.js +1 -0
- package/ui-dist/assets/stateDiagram-v2-QKLJ7IA2-BzoNePd4.js +1 -0
- package/ui-dist/assets/timeline-definition-GMOUNBTQ-REImLpEb.js +120 -0
- package/ui-dist/assets/timeline.lazy-BY5ZUkY-.js +1 -0
- package/ui-dist/assets/tooltip-DA8LKiqR.js +1 -0
- package/ui-dist/assets/validators-2LNt2eLU.js +1 -0
- package/ui-dist/assets/vennDiagram-DHZGUBPP-DcFGfj6d.js +34 -0
- package/ui-dist/assets/wardley-RL74JXVD-B9TLQgzI.js +162 -0
- package/ui-dist/assets/wardleyDiagram-NUSXRM2D-Hcgh3jSX.js +20 -0
- package/ui-dist/assets/x-CPRWsjef.js +1 -0
- package/ui-dist/assets/xychartDiagram-5P7HB3ND-BTe2ICiH.js +7 -0
- package/ui-dist/favicon.ico +0 -0
- package/ui-dist/index.html +32 -0
- package/ui-dist/logo192.png +0 -0
- package/ui-dist/logo512.png +0 -0
- package/ui-dist/manifest.json +25 -0
- package/ui-dist/robots.txt +3 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{K as Ra,M as Ms,N as nt,O as pn,Q as Xt,T as mn,U as gn,V as Vs,W as Ea,X as ue,Y as Ma,Z as Va,$ as Ds,a0 as or,r as b,a1 as ar,a2 as Da,j as Y,P as je,A as yn,C as Oa,b as lr,g as La,B as ka}from"./index-1QFQcLya.js";var Fa=class extends Ra{constructor(t,e){super(),this.options=e,this.#n=t,this.#i=null,this.#s=Ms(),this.bindMethods(),this.setOptions(e)}#n;#t=void 0;#p=void 0;#e=void 0;#o;#u;#s;#i;#m;#f;#h;#a;#l;#r;#d=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Os(this.#t,this.options)?this.#c():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vn(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vn(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#w(),this.#b(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#n.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof nt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#T(),this.#t.setOptions(this.options),e._defaulted&&!pn(this.options,e)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Ls(this.#t,n,this.options,e)&&this.#c(),this.updateResult(),s&&(this.#t!==n||nt(this.options.enabled,this.#t)!==nt(e.enabled,this.#t)||Xt(this.options.staleTime,this.#t)!==Xt(e.staleTime,this.#t))&&this.#g();const i=this.#y();s&&(this.#t!==n||nt(this.options.enabled,this.#t)!==nt(e.enabled,this.#t)||i!==this.#r)&&this.#v(i)}getOptimisticResult(t){const e=this.#n.getQueryCache().build(this.#n,t),n=this.createResult(e,t);return Ba(this,n)&&(this.#e=n,this.#u=this.options,this.#o=this.#t.state),n}getCurrentResult(){return this.#e}trackResult(t,e){return new Proxy(t,{get:(n,s)=>(this.trackProp(s),e?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(t){this.#d.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#n.defaultQueryOptions(t),n=this.#n.getQueryCache().build(this.#n,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#c({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#e))}#c(t){this.#T();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(mn)),e}#g(){this.#w();const t=Xt(this.options.staleTime,this.#t);if(gn.isServer()||this.#e.isStale||!Vs(t))return;const n=Ea(this.#e.dataUpdatedAt,t)+1;this.#a=ue.setTimeout(()=>{this.#e.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(t){this.#b(),this.#r=t,!(gn.isServer()||nt(this.options.enabled,this.#t)===!1||!Vs(this.#r)||this.#r===0)&&(this.#l=ue.setInterval(()=>{(this.options.refetchIntervalInBackground||Ma.isFocused())&&this.#c()},this.#r))}#x(){this.#g(),this.#v(this.#y())}#w(){this.#a&&(ue.clearTimeout(this.#a),this.#a=void 0)}#b(){this.#l&&(ue.clearInterval(this.#l),this.#l=void 0)}createResult(t,e){const n=this.#t,s=this.options,i=this.#e,o=this.#o,r=this.#u,c=t!==n?t.state:this.#p,{state:u}=t;let l={...u},f=!1,h;if(e._optimisticResults){const P=this.hasListeners(),V=!P&&Os(t,e),S=P&&Ls(t,n,e,s);(V||S)&&(l={...l,...Va(u.data,t.options)}),e._optimisticResults==="isRestoring"&&(l.fetchStatus="idle")}let{error:d,errorUpdatedAt:p,status:m}=l;h=l.data;let y=!1;if(e.placeholderData!==void 0&&h===void 0&&m==="pending"){let P;i?.isPlaceholderData&&e.placeholderData===r?.placeholderData?(P=i.data,y=!0):P=typeof e.placeholderData=="function"?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,P!==void 0&&(m="success",h=Ds(i?.data,P,e),f=!0)}if(e.select&&h!==void 0&&!y)if(i&&h===o?.data&&e.select===this.#m)h=this.#f;else try{this.#m=e.select,h=e.select(h),h=Ds(i?.data,h,e),this.#f=h,this.#i=null}catch(P){this.#i=P}this.#i&&(d=this.#i,h=this.#f,p=Date.now(),m="error");const g=l.fetchStatus==="fetching",x=m==="pending",v=m==="error",w=x&&g,T=h!==void 0,E={status:m,fetchStatus:l.fetchStatus,isPending:x,isSuccess:m==="success",isError:v,isInitialLoading:w,isLoading:w,data:h,dataUpdatedAt:l.dataUpdatedAt,error:d,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:l.dataUpdateCount>c.dataUpdateCount||l.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&!x,isLoadingError:v&&!T,isPaused:l.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:v&&T,isStale:Kn(t,e),refetch:this.refetch,promise:this.#s,isEnabled:nt(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const P=E.data!==void 0,V=E.status==="error"&&!P,S=O=>{V?O.reject(E.error):P&&O.resolve(E.data)},M=()=>{const O=this.#s=E.promise=Ms();S(O)},D=this.#s;switch(D.status){case"pending":t.queryHash===n.queryHash&&S(D);break;case"fulfilled":(V||E.data!==D.value)&&M();break;case"rejected":(!V||E.error!==D.reason)&&M();break}}return E}updateResult(){const t=this.#e,e=this.createResult(this.#t,this.options);if(this.#o=this.#t.state,this.#u=this.options,this.#o.data!==void 0&&(this.#h=this.#t),pn(e,t))return;this.#e=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,i=typeof s=="function"?s():s;if(i==="all"||!i&&!this.#d.size)return!0;const o=new Set(i??this.#d);return this.options.throwOnError&&o.add("error"),Object.keys(this.#e).some(r=>{const a=r;return this.#e[a]!==t[a]&&o.has(a)})};this.#S({listeners:n()})}#T(){const t=this.#n.getQueryCache().build(this.#n,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#p=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#S(t){or.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#e)}),this.#n.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Ia(t,e){return nt(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function Os(t,e){return Ia(t,e)||t.state.data!==void 0&&vn(t,e,e.refetchOnMount)}function vn(t,e,n){if(nt(e.enabled,t)!==!1&&Xt(e.staleTime,t)!=="static"){const s=typeof n=="function"?n(t):n;return s==="always"||s!==!1&&Kn(t,e)}return!1}function Ls(t,e,n,s){return(t!==e||nt(s.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&Kn(t,n)}function Kn(t,e){return nt(e.enabled,t)!==!1&&t.isStaleByTime(Xt(e.staleTime,t))}function Ba(t,e){return!pn(t.getCurrentResult(),e)}var cr=b.createContext(!1),ja=()=>b.useContext(cr);cr.Provider;function Na(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Wa=b.createContext(Na()),Ua=()=>b.useContext(Wa),$a=(t,e,n)=>{const s=n?.state.error&&typeof t.throwOnError=="function"?ar(t.throwOnError,[n.state.error,n]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(e.isReset()||(t.retryOnMount=!1))},_a=t=>{b.useEffect(()=>{t.clearReset()},[t])},Ha=({result:t,errorResetBoundary:e,throwOnError:n,query:s,suspense:i})=>t.isError&&!e.isReset()&&!t.isFetching&&s&&(i&&t.data===void 0||ar(n,[t.error,s])),za=t=>{if(t.suspense){const n=i=>i==="static"?i:Math.max(i??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...i)=>n(s(...i)):n(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Ka=(t,e)=>t.isLoading&&t.isFetching&&!e,Ga=(t,e)=>t?.suspense&&e.isPending,ks=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function Xa(t,e,n){const s=ja(),i=Ua(),o=Da(),r=o.defaultQueryOptions(t);o.getDefaultOptions().queries?._experimental_beforeQuery?.(r);const a=o.getQueryCache().get(r.queryHash);r._optimisticResults=s?"isRestoring":"optimistic",za(r),$a(r,i,a),_a(i);const c=!o.getQueryCache().get(r.queryHash),[u]=b.useState(()=>new e(o,r)),l=u.getOptimisticResult(r),f=!s&&t.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(h=>{const d=f?u.subscribe(or.batchCalls(h)):mn;return u.updateResult(),d},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),b.useEffect(()=>{u.setOptions(r)},[r,u]),Ga(r,l))throw ks(r,u,i);if(Ha({result:l,errorResetBoundary:i,throwOnError:r.throwOnError,query:a,suspense:r.suspense}))throw l.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(r,l),r.experimental_prefetchInRender&&!gn.isServer()&&Ka(l,s)&&(c?ks(r,u,i):a?.promise)?.catch(mn).finally(()=>{u.updateResult()}),r.notifyOnChangeProps?l:u.trackResult(l)}function lp(t,e){return Xa(t,Fa)}async function cp(){const t=await fetch("/api/state");if(!t.ok)throw new Error(`Failed to fetch project state: ${t.status}`);return t.json()}async function up(){const t=await fetch("/api/sprint");if(!t.ok)throw new Error(`Failed to fetch sprint status: ${t.status}`);const e=await t.json();return e.status==="no-sprint-data"?null:e}async function fp(t){const e=await fetch(`/api/document/${t}`);if(!e.ok)throw new Error(`Failed to fetch document: ${e.status}`);return e.json()}var Ya=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Qa="VisuallyHidden",ur=b.forwardRef((t,e)=>Y.jsx(je.span,{...t,ref:e,style:{...Ya,...t.style}}));ur.displayName=Qa;var hp=ur;function qa(t){const[e,n]=b.useState(void 0);return yn(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const s=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let r,a;if("borderBoxSize"in o){const c=o.borderBoxSize,u=Array.isArray(c)?c[0]:c;r=u.inlineSize,a=u.blockSize}else r=t.offsetWidth,a=t.offsetHeight;n({width:r,height:a})});return s.observe(t,{box:"border-box"}),()=>s.unobserve(t)}else n(void 0)},[t]),e}const Za=["top","right","bottom","left"],xt=Math.min,X=Math.max,Ae=Math.round,fe=Math.floor,ct=t=>({x:t,y:t}),Ja={left:"right",right:"left",bottom:"top",top:"bottom"};function xn(t,e,n){return X(t,xt(e,n))}function pt(t,e){return typeof t=="function"?t(e):t}function mt(t){return t.split("-")[0]}function Wt(t){return t.split("-")[1]}function Gn(t){return t==="x"?"y":"x"}function Xn(t){return t==="y"?"height":"width"}function lt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Yn(t){return Gn(lt(t))}function tl(t,e,n){n===void 0&&(n=!1);const s=Wt(t),i=Yn(t),o=Xn(i);let r=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(r=Ce(r)),[r,Ce(r)]}function el(t){const e=Ce(t);return[wn(t),e,wn(e)]}function wn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Fs=["left","right"],Is=["right","left"],nl=["top","bottom"],sl=["bottom","top"];function il(t,e,n){switch(t){case"top":case"bottom":return n?e?Is:Fs:e?Fs:Is;case"left":case"right":return e?nl:sl;default:return[]}}function rl(t,e,n,s){const i=Wt(t);let o=il(mt(t),n==="start",s);return i&&(o=o.map(r=>r+"-"+i),e&&(o=o.concat(o.map(wn)))),o}function Ce(t){const e=mt(t);return Ja[e]+t.slice(e.length)}function ol(t){return{top:0,right:0,bottom:0,left:0,...t}}function fr(t){return typeof t!="number"?ol(t):{top:t,right:t,bottom:t,left:t}}function Re(t){const{x:e,y:n,width:s,height:i}=t;return{width:s,height:i,top:n,left:e,right:e+s,bottom:n+i,x:e,y:n}}function Bs(t,e,n){let{reference:s,floating:i}=t;const o=lt(e),r=Yn(e),a=Xn(r),c=mt(e),u=o==="y",l=s.x+s.width/2-i.width/2,f=s.y+s.height/2-i.height/2,h=s[a]/2-i[a]/2;let d;switch(c){case"top":d={x:l,y:s.y-i.height};break;case"bottom":d={x:l,y:s.y+s.height};break;case"right":d={x:s.x+s.width,y:f};break;case"left":d={x:s.x-i.width,y:f};break;default:d={x:s.x,y:s.y}}switch(Wt(e)){case"start":d[r]-=h*(n&&u?-1:1);break;case"end":d[r]+=h*(n&&u?-1:1);break}return d}async function al(t,e){var n;e===void 0&&(e={});const{x:s,y:i,platform:o,rects:r,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=pt(e,t),p=fr(d),y=a[h?f==="floating"?"reference":"floating":f],g=Re(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(y)))==null||n?y:y.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:l,strategy:c})),x=f==="floating"?{x:s,y:i,width:r.floating.width,height:r.floating.height}:r.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),w=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},T=Re(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:c}):x);return{top:(g.top-T.top+p.top)/w.y,bottom:(T.bottom-g.bottom+p.bottom)/w.y,left:(g.left-T.left+p.left)/w.x,right:(T.right-g.right+p.right)/w.x}}const ll=50,cl=async(t,e,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:r}=n,a=r.detectOverflow?r:{...r,detectOverflow:al},c=await(r.isRTL==null?void 0:r.isRTL(e));let u=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:l,y:f}=Bs(u,s,c),h=s,d=0;const p={};for(let m=0;m<o.length;m++){const y=o[m];if(!y)continue;const{name:g,fn:x}=y,{x:v,y:w,data:T,reset:C}=await x({x:l,y:f,initialPlacement:s,placement:h,strategy:i,middlewareData:p,rects:u,platform:a,elements:{reference:t,floating:e}});l=v??l,f=w??f,p[g]={...p[g],...T},C&&d<ll&&(d++,typeof C=="object"&&(C.placement&&(h=C.placement),C.rects&&(u=C.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:l,y:f}=Bs(u,h,c)),m=-1)}return{x:l,y:f,placement:h,strategy:i,middlewareData:p}},ul=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:s,placement:i,rects:o,platform:r,elements:a,middlewareData:c}=e,{element:u,padding:l=0}=pt(t,e)||{};if(u==null)return{};const f=fr(l),h={x:n,y:s},d=Yn(i),p=Xn(d),m=await r.getDimensions(u),y=d==="y",g=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",w=o.reference[p]+o.reference[d]-h[d]-o.floating[p],T=h[d]-o.reference[d],C=await(r.getOffsetParent==null?void 0:r.getOffsetParent(u));let E=C?C[v]:0;(!E||!await(r.isElement==null?void 0:r.isElement(C)))&&(E=a.floating[v]||o.floating[p]);const P=w/2-T/2,V=E/2-m[p]/2-1,S=xt(f[g],V),M=xt(f[x],V),D=S,O=E-m[p]-M,L=E/2-m[p]/2+P,j=xn(D,L,O),k=!c.arrow&&Wt(i)!=null&&L!==j&&o.reference[p]/2-(L<D?S:M)-m[p]/2<0,W=k?L<D?L-D:L-O:0;return{[d]:h[d]+W,data:{[d]:j,centerOffset:L-j-W,...k&&{alignmentOffset:W}},reset:k}}}),fl=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,s;const{placement:i,middlewareData:o,rects:r,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=pt(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const g=mt(i),x=lt(a),v=mt(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),T=h||(v||!m?[Ce(a)]:el(a)),C=p!=="none";!h&&C&&T.push(...rl(a,m,p,w));const E=[a,...T],P=await c.detectOverflow(e,y),V=[];let S=((s=o.flip)==null?void 0:s.overflows)||[];if(l&&V.push(P[g]),f){const L=tl(i,r,w);V.push(P[L[0]],P[L[1]])}if(S=[...S,{placement:i,overflows:V}],!V.every(L=>L<=0)){var M,D;const L=(((M=o.flip)==null?void 0:M.index)||0)+1,j=E[L];if(j&&(!(f==="alignment"?x!==lt(j):!1)||S.every(R=>lt(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:L,overflows:S},reset:{placement:j}};let k=(D=S.filter(W=>W.overflows[0]<=0).sort((W,R)=>W.overflows[1]-R.overflows[1])[0])==null?void 0:D.placement;if(!k)switch(d){case"bestFit":{var O;const W=(O=S.filter(R=>{if(C){const F=lt(R.placement);return F===x||F==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((R,F)=>R[1]-F[1])[0])==null?void 0:O[0];W&&(k=W);break}case"initialPlacement":k=a;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function js(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ns(t){return Za.some(e=>t[e]>=0)}const hl=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:s}=e,{strategy:i="referenceHidden",...o}=pt(t,e);switch(i){case"referenceHidden":{const r=await s.detectOverflow(e,{...o,elementContext:"reference"}),a=js(r,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ns(a)}}}case"escaped":{const r=await s.detectOverflow(e,{...o,altBoundary:!0}),a=js(r,n.floating);return{data:{escapedOffsets:a,escaped:Ns(a)}}}default:return{}}}}},hr=new Set(["left","top"]);async function dl(t,e){const{placement:n,platform:s,elements:i}=t,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),r=mt(n),a=Wt(n),c=lt(n)==="y",u=hr.has(r)?-1:1,l=o&&c?-1:1,f=pt(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof p=="number"&&(d=a==="end"?p*-1:p),c?{x:d*l,y:h*u}:{x:h*u,y:d*l}}const pl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,s;const{x:i,y:o,placement:r,middlewareData:a}=e,c=await dl(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:i+c.x,y:o+c.y,data:{...c,placement:r}}}}},ml=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:s,placement:i,platform:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:c={fn:g=>{let{x,y:v}=g;return{x,y:v}}},...u}=pt(t,e),l={x:n,y:s},f=await o.detectOverflow(e,u),h=lt(mt(i)),d=Gn(h);let p=l[d],m=l[h];if(r){const g=d==="y"?"top":"left",x=d==="y"?"bottom":"right",v=p+f[g],w=p-f[x];p=xn(v,p,w)}if(a){const g=h==="y"?"top":"left",x=h==="y"?"bottom":"right",v=m+f[g],w=m-f[x];m=xn(v,m,w)}const y=c.fn({...e,[d]:p,[h]:m});return{...y,data:{x:y.x-n,y:y.y-s,enabled:{[d]:r,[h]:a}}}}}},gl=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:s,placement:i,rects:o,middlewareData:r}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=pt(t,e),l={x:n,y:s},f=lt(i),h=Gn(f);let d=l[h],p=l[f];const m=pt(a,e),y=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const v=h==="y"?"height":"width",w=o.reference[h]-o.floating[v]+y.mainAxis,T=o.reference[h]+o.reference[v]-y.mainAxis;d<w?d=w:d>T&&(d=T)}if(u){var g,x;const v=h==="y"?"width":"height",w=hr.has(mt(i)),T=o.reference[f]-o.floating[v]+(w&&((g=r.offset)==null?void 0:g[f])||0)+(w?0:y.crossAxis),C=o.reference[f]+o.reference[v]+(w?0:((x=r.offset)==null?void 0:x[f])||0)-(w?y.crossAxis:0);p<T?p=T:p>C&&(p=C)}return{[h]:d,[f]:p}}}},yl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,s;const{placement:i,rects:o,platform:r,elements:a}=e,{apply:c=()=>{},...u}=pt(t,e),l=await r.detectOverflow(e,u),f=mt(i),h=Wt(i),d=lt(i)==="y",{width:p,height:m}=o.floating;let y,g;f==="top"||f==="bottom"?(y=f,g=h===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(g=f,y=h==="end"?"top":"bottom");const x=m-l.top-l.bottom,v=p-l.left-l.right,w=xt(m-l[y],x),T=xt(p-l[g],v),C=!e.middlewareData.shift;let E=w,P=T;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(s=e.middlewareData.shift)!=null&&s.enabled.y&&(E=x),C&&!h){const S=X(l.left,0),M=X(l.right,0),D=X(l.top,0),O=X(l.bottom,0);d?P=p-2*(S!==0||M!==0?S+M:X(l.left,l.right)):E=m-2*(D!==0||O!==0?D+O:X(l.top,l.bottom))}await c({...e,availableWidth:P,availableHeight:E});const V=await r.getDimensions(a.floating);return p!==V.width||m!==V.height?{reset:{rects:!0}}:{}}}};function Ne(){return typeof window<"u"}function Ut(t){return dr(t)?(t.nodeName||"").toLowerCase():"#document"}function Q(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ht(t){var e;return(e=(dr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function dr(t){return Ne()?t instanceof Node||t instanceof Q(t).Node:!1}function it(t){return Ne()?t instanceof Element||t instanceof Q(t).Element:!1}function gt(t){return Ne()?t instanceof HTMLElement||t instanceof Q(t).HTMLElement:!1}function Ws(t){return!Ne()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Q(t).ShadowRoot}function ie(t){const{overflow:e,overflowX:n,overflowY:s,display:i}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+s+n)&&i!=="inline"&&i!=="contents"}function vl(t){return/^(table|td|th)$/.test(Ut(t))}function We(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const xl=/transform|translate|scale|rotate|perspective|filter/,wl=/paint|layout|strict|content/,Pt=t=>!!t&&t!=="none";let Xe;function Qn(t){const e=it(t)?rt(t):t;return Pt(e.transform)||Pt(e.translate)||Pt(e.scale)||Pt(e.rotate)||Pt(e.perspective)||!qn()&&(Pt(e.backdropFilter)||Pt(e.filter))||xl.test(e.willChange||"")||wl.test(e.contain||"")}function bl(t){let e=wt(t);for(;gt(e)&&!Bt(e);){if(Qn(e))return e;if(We(e))return null;e=wt(e)}return null}function qn(){return Xe==null&&(Xe=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Xe}function Bt(t){return/^(html|body|#document)$/.test(Ut(t))}function rt(t){return Q(t).getComputedStyle(t)}function Ue(t){return it(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function wt(t){if(Ut(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ws(t)&&t.host||ht(t);return Ws(e)?e.host:e}function pr(t){const e=wt(t);return Bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:gt(e)&&ie(e)?e:pr(e)}function Jt(t,e,n){var s;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=pr(t),o=i===((s=t.ownerDocument)==null?void 0:s.body),r=Q(i);if(o){const a=bn(r);return e.concat(r,r.visualViewport||[],ie(i)?i:[],a&&n?Jt(a):[])}else return e.concat(i,Jt(i,[],n))}function bn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function mr(t){const e=rt(t);let n=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const i=gt(t),o=i?t.offsetWidth:n,r=i?t.offsetHeight:s,a=Ae(n)!==o||Ae(s)!==r;return a&&(n=o,s=r),{width:n,height:s,$:a}}function Zn(t){return it(t)?t:t.contextElement}function It(t){const e=Zn(t);if(!gt(e))return ct(1);const n=e.getBoundingClientRect(),{width:s,height:i,$:o}=mr(e);let r=(o?Ae(n.width):n.width)/s,a=(o?Ae(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const Tl=ct(0);function gr(t){const e=Q(t);return!qn()||!e.visualViewport?Tl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sl(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Q(t)?!1:e}function Dt(t,e,n,s){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=Zn(t);let r=ct(1);e&&(s?it(s)&&(r=It(s)):r=It(t));const a=Sl(o,n,s)?gr(o):ct(0);let c=(i.left+a.x)/r.x,u=(i.top+a.y)/r.y,l=i.width/r.x,f=i.height/r.y;if(o){const h=Q(o),d=s&&it(s)?Q(s):s;let p=h,m=bn(p);for(;m&&s&&d!==p;){const y=It(m),g=m.getBoundingClientRect(),x=rt(m),v=g.left+(m.clientLeft+parseFloat(x.paddingLeft))*y.x,w=g.top+(m.clientTop+parseFloat(x.paddingTop))*y.y;c*=y.x,u*=y.y,l*=y.x,f*=y.y,c+=v,u+=w,p=Q(m),m=bn(p)}}return Re({width:l,height:f,x:c,y:u})}function $e(t,e){const n=Ue(t).scrollLeft;return e?e.left+n:Dt(ht(t)).left+n}function yr(t,e){const n=t.getBoundingClientRect(),s=n.left+e.scrollLeft-$e(t,n),i=n.top+e.scrollTop;return{x:s,y:i}}function Pl(t){let{elements:e,rect:n,offsetParent:s,strategy:i}=t;const o=i==="fixed",r=ht(s),a=e?We(e.floating):!1;if(s===r||a&&o)return n;let c={scrollLeft:0,scrollTop:0},u=ct(1);const l=ct(0),f=gt(s);if((f||!f&&!o)&&((Ut(s)!=="body"||ie(r))&&(c=Ue(s)),f)){const d=Dt(s);u=It(s),l.x=d.x+s.clientLeft,l.y=d.y+s.clientTop}const h=r&&!f&&!o?yr(r,c):ct(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+l.x+h.x,y:n.y*u.y-c.scrollTop*u.y+l.y+h.y}}function Al(t){return Array.from(t.getClientRects())}function Cl(t){const e=ht(t),n=Ue(t),s=t.ownerDocument.body,i=X(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),o=X(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let r=-n.scrollLeft+$e(t);const a=-n.scrollTop;return rt(s).direction==="rtl"&&(r+=X(e.clientWidth,s.clientWidth)-i),{width:i,height:o,x:r,y:a}}const Us=25;function Rl(t,e){const n=Q(t),s=ht(t),i=n.visualViewport;let o=s.clientWidth,r=s.clientHeight,a=0,c=0;if(i){o=i.width,r=i.height;const l=qn();(!l||l&&e==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}const u=$e(s);if(u<=0){const l=s.ownerDocument,f=l.body,h=getComputedStyle(f),d=l.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(s.clientWidth-f.clientWidth-d);p<=Us&&(o-=p)}else u<=Us&&(o+=u);return{width:o,height:r,x:a,y:c}}function El(t,e){const n=Dt(t,!0,e==="fixed"),s=n.top+t.clientTop,i=n.left+t.clientLeft,o=gt(t)?It(t):ct(1),r=t.clientWidth*o.x,a=t.clientHeight*o.y,c=i*o.x,u=s*o.y;return{width:r,height:a,x:c,y:u}}function $s(t,e,n){let s;if(e==="viewport")s=Rl(t,n);else if(e==="document")s=Cl(ht(t));else if(it(e))s=El(e,n);else{const i=gr(t);s={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Re(s)}function vr(t,e){const n=wt(t);return n===e||!it(n)||Bt(n)?!1:rt(n).position==="fixed"||vr(n,e)}function Ml(t,e){const n=e.get(t);if(n)return n;let s=Jt(t,[],!1).filter(a=>it(a)&&Ut(a)!=="body"),i=null;const o=rt(t).position==="fixed";let r=o?wt(t):t;for(;it(r)&&!Bt(r);){const a=rt(r),c=Qn(r);!c&&a.position==="fixed"&&(i=null),(o?!c&&!i:!c&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||ie(r)&&!c&&vr(t,r))?s=s.filter(l=>l!==r):i=a,r=wt(r)}return e.set(t,s),s}function Vl(t){let{element:e,boundary:n,rootBoundary:s,strategy:i}=t;const r=[...n==="clippingAncestors"?We(e)?[]:Ml(e,this._c):[].concat(n),s],a=$s(e,r[0],i);let c=a.top,u=a.right,l=a.bottom,f=a.left;for(let h=1;h<r.length;h++){const d=$s(e,r[h],i);c=X(d.top,c),u=xt(d.right,u),l=xt(d.bottom,l),f=X(d.left,f)}return{width:u-f,height:l-c,x:f,y:c}}function Dl(t){const{width:e,height:n}=mr(t);return{width:e,height:n}}function Ol(t,e,n){const s=gt(e),i=ht(e),o=n==="fixed",r=Dt(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const c=ct(0);function u(){c.x=$e(i)}if(s||!s&&!o)if((Ut(e)!=="body"||ie(i))&&(a=Ue(e)),s){const d=Dt(e,!0,o,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else i&&u();o&&!s&&i&&u();const l=i&&!s&&!o?yr(i,a):ct(0),f=r.left+a.scrollLeft-c.x-l.x,h=r.top+a.scrollTop-c.y-l.y;return{x:f,y:h,width:r.width,height:r.height}}function Ye(t){return rt(t).position==="static"}function _s(t,e){if(!gt(t)||rt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return ht(t)===n&&(n=n.ownerDocument.body),n}function xr(t,e){const n=Q(t);if(We(t))return n;if(!gt(t)){let i=wt(t);for(;i&&!Bt(i);){if(it(i)&&!Ye(i))return i;i=wt(i)}return n}let s=_s(t,e);for(;s&&vl(s)&&Ye(s);)s=_s(s,e);return s&&Bt(s)&&Ye(s)&&!Qn(s)?n:s||bl(t)||n}const Ll=async function(t){const e=this.getOffsetParent||xr,n=this.getDimensions,s=await n(t.floating);return{reference:Ol(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function kl(t){return rt(t).direction==="rtl"}const Fl={convertOffsetParentRelativeRectToViewportRelativeRect:Pl,getDocumentElement:ht,getClippingRect:Vl,getOffsetParent:xr,getElementRects:Ll,getClientRects:Al,getDimensions:Dl,getScale:It,isElement:it,isRTL:kl};function wr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Il(t,e){let n=null,s;const i=ht(t);function o(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function r(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),o();const u=t.getBoundingClientRect(),{left:l,top:f,width:h,height:d}=u;if(a||e(),!h||!d)return;const p=fe(f),m=fe(i.clientWidth-(l+h)),y=fe(i.clientHeight-(f+d)),g=fe(l),v={rootMargin:-p+"px "+-m+"px "+-y+"px "+-g+"px",threshold:X(0,xt(1,c))||1};let w=!0;function T(C){const E=C[0].intersectionRatio;if(E!==c){if(!w)return r();E?r(!1,E):s=setTimeout(()=>{r(!1,1e-7)},1e3)}E===1&&!wr(u,t.getBoundingClientRect())&&r(),w=!1}try{n=new IntersectionObserver(T,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,v)}n.observe(t)}return r(!0),o}function Bl(t,e,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,u=Zn(t),l=i||o?[...u?Jt(u):[],...e?Jt(e):[]]:[];l.forEach(g=>{i&&g.addEventListener("scroll",n,{passive:!0}),o&&g.addEventListener("resize",n)});const f=u&&a?Il(u,n):null;let h=-1,d=null;r&&(d=new ResizeObserver(g=>{let[x]=g;x&&x.target===u&&d&&e&&(d.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(e)})),n()}),u&&!c&&d.observe(u),e&&d.observe(e));let p,m=c?Dt(t):null;c&&y();function y(){const g=Dt(t);m&&!wr(m,g)&&n(),m=g,p=requestAnimationFrame(y)}return n(),()=>{var g;l.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),f?.(),(g=d)==null||g.disconnect(),d=null,c&&cancelAnimationFrame(p)}}const jl=pl,Nl=ml,Wl=fl,Ul=yl,$l=hl,Hs=ul,_l=gl,Hl=(t,e,n)=>{const s=new Map,i={platform:Fl,...n},o={...i.platform,_c:s};return cl(t,e,{...i,platform:o})};var zl=typeof document<"u",Kl=function(){},ge=zl?b.useLayoutEffect:Kl;function Ee(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,s,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(s=n;s--!==0;)if(!Ee(t[s],e[s]))return!1;return!0}if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(e,i[s]))return!1;for(s=n;s--!==0;){const o=i[s];if(!(o==="_owner"&&t.$$typeof)&&!Ee(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function br(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function zs(t,e){const n=br(t);return Math.round(e*n)/n}function Qe(t){const e=b.useRef(t);return ge(()=>{e.current=t}),e}function Gl(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:s=[],platform:i,elements:{reference:o,floating:r}={},transform:a=!0,whileElementsMounted:c,open:u}=t,[l,f]=b.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,d]=b.useState(s);Ee(h,s)||d(s);const[p,m]=b.useState(null),[y,g]=b.useState(null),x=b.useCallback(R=>{R!==C.current&&(C.current=R,m(R))},[]),v=b.useCallback(R=>{R!==E.current&&(E.current=R,g(R))},[]),w=o||p,T=r||y,C=b.useRef(null),E=b.useRef(null),P=b.useRef(l),V=c!=null,S=Qe(c),M=Qe(i),D=Qe(u),O=b.useCallback(()=>{if(!C.current||!E.current)return;const R={placement:e,strategy:n,middleware:h};M.current&&(R.platform=M.current),Hl(C.current,E.current,R).then(F=>{const _={...F,isPositioned:D.current!==!1};L.current&&!Ee(P.current,_)&&(P.current=_,Oa.flushSync(()=>{f(_)}))})},[h,e,n,M,D]);ge(()=>{u===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(R=>({...R,isPositioned:!1})))},[u]);const L=b.useRef(!1);ge(()=>(L.current=!0,()=>{L.current=!1}),[]),ge(()=>{if(w&&(C.current=w),T&&(E.current=T),w&&T){if(S.current)return S.current(w,T,O);O()}},[w,T,O,S,V]);const j=b.useMemo(()=>({reference:C,floating:E,setReference:x,setFloating:v}),[x,v]),k=b.useMemo(()=>({reference:w,floating:T}),[w,T]),W=b.useMemo(()=>{const R={position:n,left:0,top:0};if(!k.floating)return R;const F=zs(k.floating,l.x),_=zs(k.floating,l.y);return a?{...R,transform:"translate("+F+"px, "+_+"px)",...br(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,k.floating,l.x,l.y]);return b.useMemo(()=>({...l,update:O,refs:j,elements:k,floatingStyles:W}),[l,O,j,k,W])}const Xl=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:s,padding:i}=typeof t=="function"?t(n):t;return s&&e(s)?s.current!=null?Hs({element:s.current,padding:i}).fn(n):{}:s?Hs({element:s,padding:i}).fn(n):{}}}},Yl=(t,e)=>{const n=jl(t);return{name:n.name,fn:n.fn,options:[t,e]}},Ql=(t,e)=>{const n=Nl(t);return{name:n.name,fn:n.fn,options:[t,e]}},ql=(t,e)=>({fn:_l(t).fn,options:[t,e]}),Zl=(t,e)=>{const n=Wl(t);return{name:n.name,fn:n.fn,options:[t,e]}},Jl=(t,e)=>{const n=Ul(t);return{name:n.name,fn:n.fn,options:[t,e]}},tc=(t,e)=>{const n=$l(t);return{name:n.name,fn:n.fn,options:[t,e]}},ec=(t,e)=>{const n=Xl(t);return{name:n.name,fn:n.fn,options:[t,e]}};var nc="Arrow",Tr=b.forwardRef((t,e)=>{const{children:n,width:s=10,height:i=5,...o}=t;return Y.jsx(je.svg,{...o,ref:e,width:s,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tr.displayName=nc;var sc=Tr,Jn="Popper",[Sr,dp]=La(Jn),[ic,Pr]=Sr(Jn),Ar=t=>{const{__scopePopper:e,children:n}=t,[s,i]=b.useState(null);return Y.jsx(ic,{scope:e,anchor:s,onAnchorChange:i,children:n})};Ar.displayName=Jn;var Cr="PopperAnchor",Rr=b.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:s,...i}=t,o=Pr(Cr,n),r=b.useRef(null),a=lr(e,r),c=b.useRef(null);return b.useEffect(()=>{const u=c.current;c.current=s?.current||r.current,u!==c.current&&o.onAnchorChange(c.current)}),s?null:Y.jsx(je.div,{...i,ref:a})});Rr.displayName=Cr;var ts="PopperContent",[rc,oc]=Sr(ts),Er=b.forwardRef((t,e)=>{const{__scopePopper:n,side:s="bottom",sideOffset:i=0,align:o="center",alignOffset:r=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:l=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:d="optimized",onPlaced:p,...m}=t,y=Pr(ts,n),[g,x]=b.useState(null),v=lr(e,zt=>x(zt)),[w,T]=b.useState(null),C=qa(w),E=C?.width??0,P=C?.height??0,V=s+(o!=="center"?"-"+o:""),S=typeof l=="number"?l:{top:0,right:0,bottom:0,left:0,...l},M=Array.isArray(u)?u:[u],D=M.length>0,O={padding:S,boundary:M.filter(lc),altBoundary:D},{refs:L,floatingStyles:j,placement:k,isPositioned:W,middlewareData:R}=Gl({strategy:"fixed",placement:V,whileElementsMounted:(...zt)=>Bl(...zt,{animationFrame:d==="always"}),elements:{reference:y.anchor},middleware:[Yl({mainAxis:i+P,alignmentAxis:r}),c&&Ql({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ql():void 0,...O}),c&&Zl({...O}),Jl({...O,apply:({elements:zt,rects:Es,availableWidth:Sa,availableHeight:Pa})=>{const{width:Aa,height:Ca}=Es.reference,ce=zt.floating.style;ce.setProperty("--radix-popper-available-width",`${Sa}px`),ce.setProperty("--radix-popper-available-height",`${Pa}px`),ce.setProperty("--radix-popper-anchor-width",`${Aa}px`),ce.setProperty("--radix-popper-anchor-height",`${Ca}px`)}}),w&&ec({element:w,padding:a}),cc({arrowWidth:E,arrowHeight:P}),h&&tc({strategy:"referenceHidden",...O})]}),[F,_]=Dr(k),dt=ka(p);yn(()=>{W&&dt?.()},[W,dt]);const Ge=R.arrow?.x,xa=R.arrow?.y,wa=R.arrow?.centerOffset!==0,[ba,Ta]=b.useState();return yn(()=>{g&&Ta(window.getComputedStyle(g).zIndex)},[g]),Y.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:W?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ba,"--radix-popper-transform-origin":[R.transformOrigin?.x,R.transformOrigin?.y].join(" "),...R.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:Y.jsx(rc,{scope:n,placedSide:F,onArrowChange:T,arrowX:Ge,arrowY:xa,shouldHideArrow:wa,children:Y.jsx(je.div,{"data-side":F,"data-align":_,...m,ref:v,style:{...m.style,animation:W?void 0:"none"}})})})});Er.displayName=ts;var Mr="PopperArrow",ac={top:"bottom",right:"left",bottom:"top",left:"right"},Vr=b.forwardRef(function(e,n){const{__scopePopper:s,...i}=e,o=oc(Mr,s),r=ac[o.placedSide];return Y.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[r]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Y.jsx(sc,{...i,ref:n,style:{...i.style,display:"block"}})})});Vr.displayName=Mr;function lc(t){return t!==null}var cc=t=>({name:"transformOrigin",options:t,fn(e){const{placement:n,rects:s,middlewareData:i}=e,r=i.arrow?.centerOffset!==0,a=r?0:t.arrowWidth,c=r?0:t.arrowHeight,[u,l]=Dr(n),f={start:"0%",center:"50%",end:"100%"}[l],h=(i.arrow?.x??0)+a/2,d=(i.arrow?.y??0)+c/2;let p="",m="";return u==="bottom"?(p=r?f:`${h}px`,m=`${-c}px`):u==="top"?(p=r?f:`${h}px`,m=`${s.floating.height+c}px`):u==="right"?(p=`${-c}px`,m=r?f:`${d}px`):u==="left"&&(p=`${s.floating.width+c}px`,m=r?f:`${d}px`),{data:{x:p,y:m}}}});function Dr(t){const[e,n="center"]=t.split("-");return[e,n]}var pp=Ar,mp=Rr,gp=Er,yp=Vr;const Or=b.createContext({});function uc(t){const e=b.useRef(null);return e.current===null&&(e.current=t()),e.current}const fc=typeof window<"u",hc=fc?b.useLayoutEffect:b.useEffect,es=b.createContext(null);function ns(t,e){t.indexOf(e)===-1&&t.push(e)}function Me(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ft=(t,e,n)=>n>e?e:n<t?t:n;let ss=()=>{};const bt={},Lr=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function kr(t){return typeof t=="object"&&t!==null}const Fr=t=>/^0[^.\s]+$/u.test(t);function Ir(t){let e;return()=>(e===void 0&&(e=t()),e)}const J=t=>t,dc=(t,e)=>n=>e(t(n)),re=(...t)=>t.reduce(dc),te=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class is{constructor(){this.subscriptions=[]}add(e){return ns(this.subscriptions,e),()=>Me(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const q=t=>t*1e3,Z=t=>t/1e3;function Br(t,e){return e?t*(1e3/e):0}const jr=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,pc=1e-7,mc=12;function gc(t,e,n,s,i){let o,r,a=0;do r=e+(n-e)/2,o=jr(r,s,i)-t,o>0?n=r:e=r;while(Math.abs(o)>pc&&++a<mc);return r}function oe(t,e,n,s){if(t===e&&n===s)return J;const i=o=>gc(o,0,1,t,n);return o=>o===0||o===1?o:jr(i(o),e,s)}const Nr=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Wr=t=>e=>1-t(1-e),Ur=oe(.33,1.53,.69,.99),rs=Wr(Ur),$r=Nr(rs),_r=t=>t>=1?1:(t*=2)<1?.5*rs(t):.5*(2-Math.pow(2,-10*(t-1))),os=t=>1-Math.sin(Math.acos(t)),Hr=Wr(os),zr=Nr(os),yc=oe(.42,0,1,1),vc=oe(0,0,.58,1),Kr=oe(.42,0,.58,1),xc=t=>Array.isArray(t)&&typeof t[0]!="number",Gr=t=>Array.isArray(t)&&typeof t[0]=="number",wc={linear:J,easeIn:yc,easeInOut:Kr,easeOut:vc,circIn:os,circInOut:zr,circOut:Hr,backIn:rs,backInOut:$r,backOut:Ur,anticipate:_r},bc=t=>typeof t=="string",Ks=t=>{if(Gr(t)){ss(t.length===4);const[e,n,s,i]=t;return oe(e,n,s,i)}else if(bc(t))return wc[t];return t},he=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Tc(t,e){let n=new Set,s=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function c(l){r.has(l)&&(u.schedule(l),t()),l(a)}const u={schedule:(l,f=!1,h=!1)=>{const p=h&&i?n:s;return f&&r.add(l),p.add(l),l},cancel:l=>{s.delete(l),r.delete(l)},process:l=>{if(a=l,i){o=!0;return}i=!0;const f=n;n=s,s=f,n.forEach(c),n.clear(),i=!1,o&&(o=!1,u.process(l))}};return u}const Sc=40;function Xr(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,r=he.reduce((v,w)=>(v[w]=Tc(o),v),{}),{setup:a,read:c,resolveKeyframes:u,preUpdate:l,update:f,preRender:h,render:d,postRender:p}=r,m=()=>{const v=bt.useManualTiming,w=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(w-i.timestamp,Sc),1)),i.timestamp=w,i.isProcessing=!0,a.process(i),c.process(i),u.process(i),l.process(i),f.process(i),h.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(m))},y=()=>{n=!0,s=!0,i.isProcessing||t(m)};return{schedule:he.reduce((v,w)=>{const T=r[w];return v[w]=(C,E=!1,P=!1)=>(n||y(),T.schedule(C,E,P)),v},{}),cancel:v=>{for(let w=0;w<he.length;w++)r[he[w]].cancel(v)},state:i,steps:r}}const{schedule:I,cancel:Tt,state:H,steps:qe}=Xr(typeof requestAnimationFrame<"u"?requestAnimationFrame:J,!0);let ye;function Pc(){ye=void 0}const K={now:()=>(ye===void 0&&K.set(H.isProcessing||bt.useManualTiming?H.timestamp:performance.now()),ye),set:t=>{ye=t,queueMicrotask(Pc)}},Yr=t=>e=>typeof e=="string"&&e.startsWith(t),Qr=Yr("--"),Ac=Yr("var(--"),as=t=>Ac(t)?Cc.test(t.split("/*")[0].trim()):!1,Cc=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Gs(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const $t={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},ee={...$t,transform:t=>ft(0,1,t)},de={...$t,default:1},Yt=t=>Math.round(t*1e5)/1e5,ls=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Rc(t){return t==null}const Ec=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cs=(t,e)=>n=>!!(typeof n=="string"&&Ec.test(n)&&n.startsWith(t)||e&&!Rc(n)&&Object.prototype.hasOwnProperty.call(n,e)),qr=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,o,r,a]=s.match(ls);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},Mc=t=>ft(0,255,t),Ze={...$t,transform:t=>Math.round(Mc(t))},Rt={test:cs("rgb","red"),parse:qr("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Ze.transform(t)+", "+Ze.transform(e)+", "+Ze.transform(n)+", "+Yt(ee.transform(s))+")"};function Vc(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 Tn={test:cs("#"),parse:Vc,transform:Rt.transform},ae=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),yt=ae("deg"),ut=ae("%"),A=ae("px"),Dc=ae("vh"),Oc=ae("vw"),Xs={...ut,parse:t=>ut.parse(t)/100,transform:t=>ut.transform(t*100)},Lt={test:cs("hsl","hue"),parse:qr("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+ut.transform(Yt(e))+", "+ut.transform(Yt(n))+", "+Yt(ee.transform(s))+")"},U={test:t=>Rt.test(t)||Tn.test(t)||Lt.test(t),parse:t=>Rt.test(t)?Rt.parse(t):Lt.test(t)?Lt.parse(t):Tn.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Rt.transform(t):Lt.transform(t),getAnimatableNone:t=>{const e=U.parse(t);return e.alpha=0,U.transform(e)}},Lc=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function kc(t){return isNaN(t)&&typeof t=="string"&&(t.match(ls)?.length||0)+(t.match(Lc)?.length||0)>0}const Zr="number",Jr="color",Fc="var",Ic="var(",Ys="${}",Bc=/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 jt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(Bc,c=>(U.test(c)?(s.color.push(o),i.push(Jr),n.push(U.parse(c))):c.startsWith(Ic)?(s.var.push(o),i.push(Fc),n.push(c)):(s.number.push(o),i.push(Zr),n.push(parseFloat(c))),++o,Ys)).split(Ys);return{values:n,split:a,indexes:s,types:i}}function jc(t){return jt(t).values}function to({split:t,types:e}){const n=t.length;return s=>{let i="";for(let o=0;o<n;o++)if(i+=t[o],s[o]!==void 0){const r=e[o];r===Zr?i+=Yt(s[o]):r===Jr?i+=U.transform(s[o]):i+=s[o]}return i}}function Nc(t){return to(jt(t))}const Wc=t=>typeof t=="number"?0:U.test(t)?U.getAnimatableNone(t):t,Uc=(t,e)=>typeof t=="number"?e?.trim().endsWith("/")?t:0:Wc(t);function $c(t){const e=jt(t);return to(e)(e.values.map((s,i)=>Uc(s,e.split[i])))}const st={test:kc,parse:jc,createTransformer:Nc,getAnimatableNone:$c};function Je(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 _c({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,o=0,r=0;if(!e)i=o=r=n;else{const a=n<.5?n*(1+e):n+e-n*e,c=2*n-a;i=Je(c,a,t+1/3),o=Je(c,a,t),r=Je(c,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:s}}function Ve(t,e){return n=>n>0?e:t}const B=(t,e,n)=>t+(e-t)*n,tn=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},Hc=[Tn,Rt,Lt],zc=t=>Hc.find(e=>e.test(t));function Qs(t){const e=zc(t);if(!e)return!1;let n=e.parse(t);return e===Lt&&(n=_c(n)),n}const qs=(t,e)=>{const n=Qs(t),s=Qs(e);if(!n||!s)return Ve(t,e);const i={...n};return o=>(i.red=tn(n.red,s.red,o),i.green=tn(n.green,s.green,o),i.blue=tn(n.blue,s.blue,o),i.alpha=B(n.alpha,s.alpha,o),Rt.transform(i))},Sn=new Set(["none","hidden"]);function Kc(t,e){return Sn.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function Gc(t,e){return n=>B(t,e,n)}function us(t){return typeof t=="number"?Gc:typeof t=="string"?as(t)?Ve:U.test(t)?qs:Qc:Array.isArray(t)?eo:typeof t=="object"?U.test(t)?qs:Xc:Ve}function eo(t,e){const n=[...t],s=n.length,i=t.map((o,r)=>us(o)(o,e[r]));return o=>{for(let r=0;r<s;r++)n[r]=i[r](o);return n}}function Xc(t,e){const n={...t,...e},s={};for(const i in n)t[i]!==void 0&&e[i]!==void 0&&(s[i]=us(t[i])(t[i],e[i]));return i=>{for(const o in s)n[o]=s[o](i);return n}}function Yc(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i<e.values.length;i++){const o=e.types[i],r=t.indexes[o][s[o]],a=t.values[r]??0;n[i]=a,s[o]++}return n}const Qc=(t,e)=>{const n=st.createTransformer(e),s=jt(t),i=jt(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?Sn.has(t)&&!i.values.length||Sn.has(e)&&!s.values.length?Kc(t,e):re(eo(Yc(s,i),i.values),n):Ve(t,e)};function no(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?B(t,e,n):us(t)(t,e)}const qc=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>I.update(e,n),stop:()=>Tt(e),now:()=>H.isProcessing?H.timestamp:K.now()}},so=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let o=0;o<i;o++)s+=Math.round(t(o/(i-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},De=2e4;function fs(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<De;)e+=n,s=t.next(e);return e>=De?1/0:e}function Zc(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(fs(s),De);return{type:"keyframes",ease:o=>s.next(i*o).value/e,duration:Z(i)}}const N={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};function Pn(t,e){return t*Math.sqrt(1-e*e)}const Jc=12;function tu(t,e,n){let s=n;for(let i=1;i<Jc;i++)s=s-t(s)/e(s);return s}const en=.001;function eu({duration:t=N.duration,bounce:e=N.bounce,velocity:n=N.velocity,mass:s=N.mass}){let i,o,r=1-e;r=ft(N.minDamping,N.maxDamping,r),t=ft(N.minDuration,N.maxDuration,Z(t)),r<1?(i=u=>{const l=u*r,f=l*t,h=l-n,d=Pn(u,r),p=Math.exp(-f);return en-h/d*p},o=u=>{const f=u*r*t,h=f*n+n,d=Math.pow(r,2)*Math.pow(u,2)*t,p=Math.exp(-f),m=Pn(Math.pow(u,2),r);return(-i(u)+en>0?-1:1)*((h-d)*p)/m}):(i=u=>{const l=Math.exp(-u*t),f=(u-n)*t+1;return-en+l*f},o=u=>{const l=Math.exp(-u*t),f=(n-u)*(t*t);return l*f});const a=5/t,c=tu(i,o,a);if(t=q(t),isNaN(c))return{stiffness:N.stiffness,damping:N.damping,duration:t};{const u=Math.pow(c,2)*s;return{stiffness:u,damping:r*2*Math.sqrt(s*u),duration:t}}}const nu=["duration","bounce"],su=["stiffness","damping","mass"];function Zs(t,e){return e.some(n=>t[n]!==void 0)}function iu(t){let e={velocity:N.velocity,stiffness:N.stiffness,damping:N.damping,mass:N.mass,isResolvedFromDuration:!1,...t};if(!Zs(t,su)&&Zs(t,nu))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,o=2*ft(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:N.mass,stiffness:i,damping:o}}else{const n=eu({...t,velocity:0});e={...e,...n,mass:N.mass},e.isResolvedFromDuration=!0}return e}function Oe(t=N.visualDuration,e=N.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const o=n.keyframes[0],r=n.keyframes[n.keyframes.length-1],a={done:!1,value:o},{stiffness:c,damping:u,mass:l,duration:f,velocity:h,isResolvedFromDuration:d}=iu({...n,velocity:-Z(n.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(c*l)),y=r-o,g=Z(Math.sqrt(c/l)),x=Math.abs(y)<5;s||(s=x?N.restSpeed.granular:N.restSpeed.default),i||(i=x?N.restDelta.granular:N.restDelta.default);let v,w,T,C,E,P;if(m<1)T=Pn(g,m),C=(p+m*g*y)/T,v=S=>{const M=Math.exp(-m*g*S);return r-M*(C*Math.sin(T*S)+y*Math.cos(T*S))},E=m*g*C+y*T,P=m*g*y-C*T,w=S=>Math.exp(-m*g*S)*(E*Math.sin(T*S)+P*Math.cos(T*S));else if(m===1){v=M=>r-Math.exp(-g*M)*(y+(p+g*y)*M);const S=p+g*y;w=M=>Math.exp(-g*M)*(g*S*M-p)}else{const S=g*Math.sqrt(m*m-1);v=L=>{const j=Math.exp(-m*g*L),k=Math.min(S*L,300);return r-j*((p+m*g*y)*Math.sinh(k)+S*y*Math.cosh(k))/S};const M=(p+m*g*y)/S,D=m*g*M-y*S,O=m*g*y-M*S;w=L=>{const j=Math.exp(-m*g*L),k=Math.min(S*L,300);return j*(D*Math.sinh(k)+O*Math.cosh(k))}}const V={calculatedDuration:d&&f||null,velocity:S=>q(w(S)),next:S=>{if(!d&&m<1){const D=Math.exp(-m*g*S),O=Math.sin(T*S),L=Math.cos(T*S),j=r-D*(C*O+y*L),k=q(D*(E*O+P*L));return a.done=Math.abs(k)<=s&&Math.abs(r-j)<=i,a.value=a.done?r:j,a}const M=v(S);if(d)a.done=S>=f;else{const D=q(w(S));a.done=Math.abs(D)<=s&&Math.abs(r-M)<=i}return a.value=a.done?r:M,a},toString:()=>{const S=Math.min(fs(V),De),M=so(D=>V.next(S*D).value,S,30);return S+"ms "+M},toTransition:()=>{}};return V}Oe.applyToOptions=t=>{const e=Zc(t,100,Oe);return t.ease=e.ease,t.duration=q(e.duration),t.type="keyframes",t};const ru=5;function io(t,e,n){const s=Math.max(e-ru,0);return Br(n-t(s),e-s)}function An({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:c,restDelta:u=.5,restSpeed:l}){const f=t[0],h={done:!1,value:f},d=P=>a!==void 0&&P<a||c!==void 0&&P>c,p=P=>a===void 0?c:c===void 0||Math.abs(a-P)<Math.abs(c-P)?a:c;let m=n*e;const y=f+m,g=r===void 0?y:r(y);g!==y&&(m=g-f);const x=P=>-m*Math.exp(-P/s),v=P=>g+x(P),w=P=>{const V=x(P),S=v(P);h.done=Math.abs(V)<=u,h.value=h.done?g:S};let T,C;const E=P=>{d(h.value)&&(T=P,C=Oe({keyframes:[h.value,p(h.value)],velocity:io(v,P,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:l}))};return E(0),{calculatedDuration:null,next:P=>{let V=!1;return!C&&T===void 0&&(V=!0,w(P),E(P)),T!==void 0&&P>=T?C.next(P-T):(!V&&w(P),h)}}}function ou(t,e,n){const s=[],i=n||bt.mix||no,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const c=Array.isArray(e)?e[r]||J:e;a=re(c,a)}s.push(a)}return s}function au(t,e,{clamp:n=!0,ease:s,mixer:i}={}){const o=t.length;if(ss(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=ou(e,s,i),c=a.length,u=l=>{if(r&&l<t[0])return e[0];let f=0;if(c>1)for(;f<t.length-2&&!(l<t[f+1]);f++);const h=te(t[f],t[f+1],l);return a[f](h)};return n?l=>u(ft(t[0],t[o-1],l)):u}function lu(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=te(0,e,s);t.push(B(n,1,i))}}function cu(t){const e=[0];return lu(e,t.length-1),e}function uu(t,e){return t.map(n=>n*e)}function fu(t,e){return t.map(()=>e||Kr).splice(0,t.length-1)}function Qt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=xc(s)?s.map(Ks):Ks(s),o={done:!1,value:e[0]},r=uu(n&&n.length===e.length?n:cu(e),t),a=au(r,e,{ease:Array.isArray(i)?i:fu(e,i)});return{calculatedDuration:t,next:c=>(o.value=a(c),o.done=c>=t,o)}}const hu=t=>t!==null;function _e(t,{repeat:e,repeatType:n="loop"},s,i=1){const o=t.filter(hu),a=i<0||e&&n!=="loop"&&e%2===1?0:o.length-1;return!a||s===void 0?o[a]:s}const du={decay:An,inertia:An,tween:Qt,keyframes:Qt,spring:Oe};function ro(t){typeof t.type=="string"&&(t.type=du[t.type])}class hs{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const pu=t=>t/100;class Le extends hs{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==K.now()&&this.tick(K.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;ro(e);const{type:n=Qt,repeat:s=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=e;let{keyframes:a}=e;const c=n||Qt;c!==Qt&&typeof a[0]!="number"&&(this.mixKeyframes=re(pu,no(a[0],a[1])),a=[0,100]);const u=c({...e,keyframes:a});o==="mirror"&&(this.mirroredGenerator=c({...e,keyframes:[...a].reverse(),velocity:-r})),u.calculatedDuration===null&&(u.calculatedDuration=fs(u));const{calculatedDuration:l}=u;this.calculatedDuration=l,this.resolvedDuration=l+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:o,mirroredGenerator:r,resolvedDuration:a,calculatedDuration:c}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:l,repeat:f,repeatType:h,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,w=s;if(f){const P=Math.min(this.currentTime,i)/a;let V=Math.floor(P),S=P%1;!S&&P>=1&&(S=1),S===1&&V--,V=Math.min(V,f+1),V%2&&(h==="reverse"?(S=1-S,d&&(S-=d/a)):h==="mirror"&&(w=r)),v=ft(0,1,S)*a}let T;x?(this.delayState.value=l[0],T=this.delayState):T=w.next(v),o&&!x&&(T.value=o(T.value));let{done:C}=T;!x&&c!==null&&(C=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return E&&p!==An&&(T.value=_e(l,this.options,y,this.speed)),m&&m(T.value),E&&this.finish(),T}then(e,n){return this.finished.then(e,n)}get duration(){return Z(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(this.currentTime)}set time(e){e=q(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return io(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(K.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=Z(this.currentTime))}play(){if(this.isStopped)return;const{driver:e=qc,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(K.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}function mu(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const Et=t=>t*180/Math.PI,Cn=t=>{const e=Et(Math.atan2(t[1],t[0]));return Rn(e)},gu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Cn,rotateZ:Cn,skewX:t=>Et(Math.atan(t[1])),skewY:t=>Et(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Rn=t=>(t=t%360,t<0&&(t+=360),t),Js=Cn,ti=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),ei=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),yu={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ti,scaleY:ei,scale:t=>(ti(t)+ei(t))/2,rotateX:t=>Rn(Et(Math.atan2(t[6],t[5]))),rotateY:t=>Rn(Et(Math.atan2(-t[2],t[0]))),rotateZ:Js,rotate:Js,skewX:t=>Et(Math.atan(t[4])),skewY:t=>Et(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function En(t){return t.includes("scale")?1:0}function Mn(t,e){if(!t||t==="none")return En(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=yu,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=gu,i=a}if(!i)return En(e);const o=s[e],r=i[1].split(",").map(xu);return typeof o=="function"?o(r):r[o]}const vu=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Mn(n,e)};function xu(t){return parseFloat(t.trim())}const _t=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ht=new Set(_t),ni=t=>t===$t||t===A,wu=new Set(["x","y","z"]),bu=_t.filter(t=>!wu.has(t));function Tu(t){const e=[];return bu.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const vt={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-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:(t,{transform:e})=>Mn(e,"x"),y:(t,{transform:e})=>Mn(e,"y")};vt.translateX=vt.x;vt.translateY=vt.y;const Mt=new Set;let Vn=!1,Dn=!1,On=!1;function oo(){if(Dn){const t=Array.from(Mt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=Tu(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(([o,r])=>{s.getValue(o)?.set(r)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Dn=!1,Vn=!1,Mt.forEach(t=>t.complete(On)),Mt.clear()}function ao(){Mt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Dn=!0)})}function Su(){On=!0,ao(),oo(),On=!1}class ds{constructor(e,n,s,i,o,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(Mt.add(this),Vn||(Vn=!0,I.read(ao),I.resolveKeyframes(oo))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const o=i?.get(),r=e[e.length-1];if(o!==void 0)e[0]=o;else if(s&&n){const a=s.readValue(n,r);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=r),i&&o===void 0&&i.set(e[0])}mu(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Mt.delete(this)}cancel(){this.state==="scheduled"&&(Mt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Pu=t=>t.startsWith("--");function lo(t,e,n){Pu(e)?t.style.setProperty(e,n):t.style[e]=n}const Au={};function co(t,e){const n=Ir(t);return()=>Au[e]??n()}const Cu=co(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),uo=co(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Gt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,si={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gt([0,.65,.55,1]),circOut:Gt([.55,0,1,.45]),backIn:Gt([.31,.01,.66,-.59]),backOut:Gt([.33,1.53,.69,.99])};function fo(t,e){if(t)return typeof t=="function"?uo()?so(t,e):"ease-out":Gr(t)?Gt(t):Array.isArray(t)?t.map(n=>fo(n,e)||si.easeOut):si[t]}function Ru(t,e,n,{delay:s=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeOut",times:c}={},u=void 0){const l={[e]:n};c&&(l.offset=c);const f=fo(a,i);Array.isArray(f)&&(l.easing=f);const h={delay:s,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),t.animate(l,h)}function ho(t){return typeof t=="function"&&"applyToOptions"in t}function Eu({type:t,...e}){return ho(t)&&uo()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class po extends hs{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:o,allowFlatten:r=!1,finalKeyframe:a,onComplete:c}=e;this.isPseudoElement=!!o,this.allowFlatten=r,this.options=e,ss(typeof e.type!="string");const u=Eu(e);this.animation=Ru(n,s,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const l=_e(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(l),lo(n,s,l),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){const e=this.animation.effect?.getComputedTiming?.().duration||0;return Z(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+Z(e)}get time(){return Z(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=q(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&Cu()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),J):i(this)}}const mo={anticipate:_r,backInOut:$r,circInOut:zr};function Mu(t){return t in mo}function Vu(t){typeof t.ease=="string"&&Mu(t.ease)&&(t.ease=mo[t.ease])}const nn=10;class Du extends po{constructor(e){Vu(e),ro(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:o,...r}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new Le({...r,autoplay:!1}),c=Math.max(nn,K.now()-this.startTime),u=ft(0,nn,c-nn),l=a.sample(c).value,{name:f}=this.options;o&&f&&lo(o,f,l),n.setWithVelocity(a.sample(Math.max(0,c-u)).value,l,u),a.stop()}}const ii=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(st.test(t)||t==="0")&&!t.startsWith("url("));function Ou(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 Lu(t,e,n,s){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=ii(i,e),a=ii(o,e);return!r||!a?!1:Ou(t)||(n==="spring"||ho(n))&&s}function Ln(t){t.duration=0,t.type="keyframes"}const go=new Set(["opacity","clipPath","filter","transform"]),ku=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Fu(t){for(let e=0;e<t.length;e++)if(typeof t[e]=="string"&&ku.test(t[e]))return!0;return!1}const Iu=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Bu=Ir(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function ju(t){const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:o,type:r,keyframes:a}=t;if(!(e?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:l}=e.owner.getProps();return Bu()&&n&&(go.has(n)||Iu.has(n)&&Fu(a))&&(n!=="transform"||!l)&&!u&&!s&&i!=="mirror"&&o!==0&&r!=="inertia"}const Nu=40;class Wu extends hs{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",keyframes:a,name:c,motionValue:u,element:l,...f}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=K.now();const h={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:o,repeatType:r,name:c,motionValue:u,element:l,...f},d=l?.KeyframeResolver||ds;this.keyframeResolver=new d(a,(p,m,y)=>this.onKeyframesResolved(p,m,h,!y),c,u,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,n,s,i){this.keyframeResolver=void 0;const{name:o,type:r,velocity:a,delay:c,isHandoff:u,onUpdate:l}=s;this.resolvedAt=K.now();let f=!0;Lu(e,o,r,a)||(f=!1,(bt.instantAnimations||!c)&&l?.(_e(e,s,n)),e[0]=e[e.length-1],Ln(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>Nu?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},p=f&&!u&&ju(d),m=d.motionValue?.owner?.current;let y;if(p)try{y=new Du({...d,element:m})}catch{y=new Le(d)}else y=new Le(d);y.finished.then(()=>{this.notifyFinished()}).catch(J),this.pendingTimeline&&(this.stopTimeline=y.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=y}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Su()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function yo(t,e,n,s=0,i=1){const o=Array.from(t).sort((u,l)=>u.sortNodePosition(l)).indexOf(e),r=t.size,a=(r-1)*s;return typeof n=="function"?n(o,r):i===1?o*s:a-o*s}const Uu=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $u(t){const e=Uu.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function vo(t,e,n=1){const[s,i]=$u(t);if(!s)return;const o=window.getComputedStyle(e).getPropertyValue(s);if(o){const r=o.trim();return Lr(r)?parseFloat(r):r}return as(i)?vo(i,e,n+1):i}const _u={type:"spring",stiffness:500,damping:25,restSpeed:10},Hu=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),zu={type:"keyframes",duration:.8},Ku={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Gu=(t,{keyframes:e})=>e.length>2?zu:Ht.has(t)?t.startsWith("scale")?Hu(e[1]):_u:Ku;function xo(t,e){if(t?.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function ps(t,e){const n=t?.[e]??t?.default??t;return n!==t?xo(n,t):n}const Xu=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function Yu(t){for(const e in t)if(!Xu.has(e))return!0;return!1}const ms=(t,e,n,s={},i,o)=>r=>{const a=ps(s,t)||{},c=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-q(c);const l={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};Yu(a)||Object.assign(l,Gu(t,l)),l.duration&&(l.duration=q(l.duration)),l.repeatDelay&&(l.repeatDelay=q(l.repeatDelay)),l.from!==void 0&&(l.keyframes[0]=l.from);let f=!1;if((l.type===!1||l.duration===0&&!l.repeatDelay)&&(Ln(l),l.delay===0&&(f=!0)),(bt.instantAnimations||bt.skipAnimations||i?.shouldSkipAnimations)&&(f=!0,Ln(l),l.delay=0),l.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=_e(l.keyframes,a);if(h!==void 0){I.update(()=>{l.onUpdate(h),l.onComplete()});return}}return a.isSync?new Le(l):new Wu(l)};function ri(t){const e=[{},{}];return t?.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gs(t,e,n,s){if(typeof e=="function"){const[i,o]=ri(s);e=e(n!==void 0?n:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=ri(s);e=e(n!==void 0?n:t.custom,i,o)}return e}function Vt(t,e,n){const s=t.getProps();return gs(s,e,n!==void 0?n:s.custom,t)}const wo=new Set(["width","height","top","left","right","bottom",..._t]),oi=30,Qu=t=>!isNaN(parseFloat(t));class qu{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const i=K.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=K.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Qu(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new is);const s=this.events[e].add(n);return e==="change"?()=>{s(),I.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=K.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>oi)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,oi);return Br(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Nt(t,e){return new qu(t,e)}const kn=t=>Array.isArray(t);function Zu(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,Nt(n))}function Ju(t){return kn(t)?t[t.length-1]||0:t}function tf(t,e){const n=Vt(t,e);let{transitionEnd:s={},transition:i={},...o}=n||{};o={...o,...s};for(const r in o){const a=Ju(o[r]);Zu(t,r,a)}}const z=t=>!!(t&&t.getVelocity);function ef(t){return!!(z(t)&&t.add)}function Fn(t,e){const n=t.getValue("willChange");if(ef(n))return n.add(e);if(!n&&bt.WillChange){const s=new bt.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function ys(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const nf="framerAppearId",bo="data-"+ys(nf);function To(t){return t.props[bo]}function sf({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function So(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:o,transitionEnd:r,...a}=e;const c=t.getDefaultTransition();o=o?xo(o,c):c;const u=o?.reduceMotion;s&&(o=s);const l=[],f=i&&t.animationState&&t.animationState.getState()[i];for(const h in a){const d=t.getValue(h,t.latestValues[h]??null),p=a[h];if(p===void 0||f&&sf(f,h))continue;const m={delay:n,...ps(o||{},h)},y=d.get();if(y!==void 0&&!d.isAnimating()&&!Array.isArray(p)&&p===y&&!m.velocity){I.update(()=>d.set(p));continue}let g=!1;if(window.MotionHandoffAnimation){const w=To(t);if(w){const T=window.MotionHandoffAnimation(w,h,I);T!==null&&(m.startTime=T,g=!0)}}Fn(t,h);const x=u??t.shouldReduceMotion;d.start(ms(h,d,p,x&&wo.has(h)?{type:!1}:m,t,g));const v=d.animation;v&&l.push(v)}if(r){const h=()=>I.update(()=>{r&&tf(t,r)});l.length?Promise.all(l).then(h):h()}return l}function In(t,e,n={}){const s=Vt(t,e,n.type==="exit"?t.presenceContext?.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const o=s?()=>Promise.all(So(t,s,n)):()=>Promise.resolve(),r=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:l,staggerDirection:f}=i;return rf(t,e,c,u,l,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[c,u]=a==="beforeChildren"?[o,r]:[r,o];return c().then(()=>u())}else return Promise.all([o(),r(n.delay)])}function rf(t,e,n=0,s=0,i=0,o=1,r){const a=[];for(const c of t.variantChildren)c.notify("AnimationStart",e),a.push(In(c,e,{...r,delay:n+(typeof s=="function"?0:s)+yo(t.variantChildren,c,s,i,o)}).then(()=>c.notify("AnimationComplete",e)));return Promise.all(a)}function of(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(o=>In(t,o,n));s=Promise.all(i)}else if(typeof e=="string")s=In(t,e,n);else{const i=typeof e=="function"?Vt(t,e,n.custom):e;s=Promise.all(So(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const af={test:t=>t==="auto",parse:t=>t},Po=t=>e=>e.test(t),Ao=[$t,A,ut,yt,Oc,Dc,af],ai=t=>Ao.find(Po(t));function lf(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||Fr(t):!0}const cf=new Set(["brightness","contrast","saturate","opacity"]);function uf(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ls)||[];if(!s)return t;const i=n.replace(s,"");let o=cf.has(e)?1:0;return s!==n&&(o*=100),e+"("+o+i+")"}const ff=/\b([a-z-]*)\(.*?\)/gu,Bn={...st,getAnimatableNone:t=>{const e=t.match(ff);return e?e.map(uf).join(" "):t}},jn={...st,getAnimatableNone:t=>{const e=st.parse(t);return st.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},li={...$t,transform:Math.round},hf={rotate:yt,rotateX:yt,rotateY:yt,rotateZ:yt,scale:de,scaleX:de,scaleY:de,scaleZ:de,skew:yt,skewX:yt,skewY:yt,distance:A,translateX:A,translateY:A,translateZ:A,x:A,y:A,z:A,perspective:A,transformPerspective:A,opacity:ee,originX:Xs,originY:Xs,originZ:A},vs={borderWidth:A,borderTopWidth:A,borderRightWidth:A,borderBottomWidth:A,borderLeftWidth:A,borderRadius:A,borderTopLeftRadius:A,borderTopRightRadius:A,borderBottomRightRadius:A,borderBottomLeftRadius:A,width:A,maxWidth:A,height:A,maxHeight:A,top:A,right:A,bottom:A,left:A,inset:A,insetBlock:A,insetBlockStart:A,insetBlockEnd:A,insetInline:A,insetInlineStart:A,insetInlineEnd:A,padding:A,paddingTop:A,paddingRight:A,paddingBottom:A,paddingLeft:A,paddingBlock:A,paddingBlockStart:A,paddingBlockEnd:A,paddingInline:A,paddingInlineStart:A,paddingInlineEnd:A,margin:A,marginTop:A,marginRight:A,marginBottom:A,marginLeft:A,marginBlock:A,marginBlockStart:A,marginBlockEnd:A,marginInline:A,marginInlineStart:A,marginInlineEnd:A,fontSize:A,backgroundPositionX:A,backgroundPositionY:A,...hf,zIndex:li,fillOpacity:ee,strokeOpacity:ee,numOctaves:li},df={...vs,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Bn,WebkitFilter:Bn,mask:jn,WebkitMask:jn},Co=t=>df[t],pf=new Set([Bn,jn]);function Ro(t,e){let n=Co(t);return pf.has(n)||(n=st),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const mf=new Set(["auto","none","0"]);function gf(t,e,n){let s=0,i;for(;s<t.length&&!i;){const o=t[s];typeof o=="string"&&!mf.has(o)&&jt(o).values.length&&(i=t[s]),s++}if(i&&n)for(const o of e)t[o]=Ro(n,i)}class yf extends ds{constructor(e,n,s,i,o){super(e,n,s,i,o,!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 f=e[l];if(typeof f=="string"&&(f=f.trim(),as(f))){const h=vo(f,n.current);h!==void 0&&(e[l]=h),l===e.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!wo.has(s)||e.length!==2)return;const[i,o]=e,r=ai(i),a=ai(o),c=Gs(i),u=Gs(o);if(c!==u&&vt[s]){this.needsMeasurement=!0;return}if(r!==a)if(ni(r)&&ni(a))for(let l=0;l<e.length;l++){const f=e[l];typeof f=="string"&&(e[l]=parseFloat(f))}else vt[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let i=0;i<e.length;i++)(e[i]===null||lf(e[i]))&&s.push(i);s.length&&gf(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=vt[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(){const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=s.length-1,r=s[o];s[o]=vt[n](e.measureViewportBox(),window.getComputedStyle(e.current)),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([a,c])=>{e.getValue(a).set(c)}),this.resolveNoneKeyframes()}}function Eo(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const i=n?.[t]??s.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Mo=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function vf(t){return kr(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:xs}=Xr(queueMicrotask,!1),et={x:!1,y:!1};function Vo(){return et.x||et.y}function xf(t){return t==="x"||t==="y"?et[t]?null:(et[t]=!0,()=>{et[t]=!1}):et.x||et.y?null:(et.x=et.y=!0,()=>{et.x=et.y=!1})}function Do(t,e){const n=Eo(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function wf(t){return!(t.pointerType==="touch"||Vo())}function bf(t,e,n={}){const[s,i,o]=Do(t,n);return s.forEach(r=>{let a=!1,c=!1,u;const l=()=>{r.removeEventListener("pointerleave",p)},f=y=>{u&&(u(y),u=void 0),l()},h=y=>{a=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),c&&(c=!1,f(y))},d=()=>{a=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},p=y=>{if(y.pointerType!=="touch"){if(a){c=!0;return}f(y)}},m=y=>{if(!wf(y))return;c=!1;const g=e(r,y);typeof g=="function"&&(u=g,r.addEventListener("pointerleave",p,i))};r.addEventListener("pointerenter",m,i),r.addEventListener("pointerdown",d,i)}),o}const Oo=(t,e)=>e?t===e?!0:Oo(t,e.parentElement):!1,ws=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Tf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Sf(t){return Tf.has(t.tagName)||t.isContentEditable===!0}const Pf=new Set(["INPUT","SELECT","TEXTAREA"]);function Af(t){return Pf.has(t.tagName)||t.isContentEditable===!0}const ve=new WeakSet;function ci(t){return e=>{e.key==="Enter"&&t(e)}}function sn(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Cf=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=ci(()=>{if(ve.has(n))return;sn(n,"down");const i=ci(()=>{sn(n,"up")}),o=()=>sn(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",o,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function ui(t){return ws(t)&&!Vo()}const fi=new WeakSet;function Rf(t,e,n={}){const[s,i,o]=Do(t,n),r=a=>{const c=a.currentTarget;if(!ui(a)||fi.has(a))return;ve.add(c),n.stopPropagation&&fi.add(a);const u=e(c,a),l=(d,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),ve.has(c)&&ve.delete(c),ui(d)&&typeof u=="function"&&u(d,{success:p})},f=d=>{l(d,c===window||c===document||n.useGlobalTarget||Oo(c,d.target))},h=d=>{l(d,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",h,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",r,i),vf(a)&&(a.addEventListener("focus",u=>Cf(u,i)),!Sf(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),o}function bs(t){return kr(t)&&"ownerSVGElement"in t}const xe=new WeakMap;let we;const Lo=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:bs(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Ef=Lo("inline","width","offsetWidth"),Mf=Lo("block","height","offsetHeight");function Vf({target:t,borderBoxSize:e}){xe.get(t)?.forEach(n=>{n(t,{get width(){return Ef(t,e)},get height(){return Mf(t,e)}})})}function Df(t){t.forEach(Vf)}function Of(){typeof ResizeObserver>"u"||(we=new ResizeObserver(Df))}function Lf(t,e){we||Of();const n=Eo(t);return n.forEach(s=>{let i=xe.get(s);i||(i=new Set,xe.set(s,i)),i.add(e),we?.observe(s)}),()=>{n.forEach(s=>{const i=xe.get(s);i?.delete(e),i?.size||we?.unobserve(s)})}}const be=new Set;let kt;function kf(){kt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};be.forEach(e=>e(t))},window.addEventListener("resize",kt)}function Ff(t){return be.add(t),kt||kf(),()=>{be.delete(t),!be.size&&typeof kt=="function"&&(window.removeEventListener("resize",kt),kt=void 0)}}function hi(t,e){return typeof t=="function"?Ff(t):Lf(t,e)}function If(t){return bs(t)&&t.tagName==="svg"}const Bf=[...Ao,U,st],jf=t=>Bf.find(Po(t)),di=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ft=()=>({x:di(),y:di()}),pi=()=>({min:0,max:0}),$=()=>({x:pi(),y:pi()}),Nf=new WeakMap;function He(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function ne(t){return typeof t=="string"||Array.isArray(t)}const Ts=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ss=["initial",...Ts];function ze(t){return He(t.animate)||Ss.some(e=>ne(t[e]))}function ko(t){return!!(ze(t)||t.variants)}function Wf(t,e,n){for(const s in e){const i=e[s],o=n[s];if(z(i))t.addValue(s,i);else if(z(o))t.addValue(s,Nt(i,{owner:t}));else if(o!==i)if(t.hasValue(s)){const r=t.getValue(s);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(s);t.addValue(s,Nt(r!==void 0?r:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const Nn={current:null},Fo={current:!1},Uf=typeof window<"u";function $f(){if(Fo.current=!0,!!Uf)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Nn.current=t.matches;t.addEventListener("change",e),e()}else Nn.current=!1}const mi=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ke={};function Io(t){ke=t}function _f(){return ke}class Hf{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:r,visualState:a},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=ds,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=K.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,I.render(this.render,!1,!0))};const{latestValues:u,renderState:l}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=l,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=c,this.blockInitialAnimation=!!r,this.isControllingVariants=ze(n),this.isVariantNode=ko(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const p=h[d];u[d]!==void 0&&z(p)&&p.set(u[d])}}mount(e){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=e,Nf.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)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Fo.current||$f(),this.shouldReduceMotion=Nn.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Tt(this.notifyUpdate),Tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(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}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&go.has(e)&&this.current instanceof HTMLElement){const{factory:r,keyframes:a,times:c,ease:u,duration:l}=n.accelerate,f=new po({element:this.current,name:e,keyframes:a,times:c,ease:u,duration:q(l)}),h=r(f);this.valueSubscriptions.set(e,()=>{h(),f.cancel()});return}const s=Ht.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",r=>{this.latestValues[e]=r,this.props.onUpdate&&I.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),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 ke){const n=ke[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 o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):$()}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<mi.length;s++){const i=mi[s];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=Wf(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){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=Nt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Lr(s)||Fr(s))?s=parseFloat(s):!jf(s)&&st.test(n)&&(s=Ro(e,n)),this.setBaseTarget(e,z(s)?s.get():s)),z(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gs(this.props,n,this.presenceContext?.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!z(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new is),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){xs.render(this.render)}}class Bo extends Hf{constructor(){super(...arguments),this.KeyframeResolver=yf}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[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;z(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class St{constructor(e){this.isMounted=!1,this.node=e}update(){}}function jo({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function zf({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function Kf(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}}function rn(t){return t===void 0||t===1}function Wn({scale:t,scaleX:e,scaleY:n}){return!rn(t)||!rn(e)||!rn(n)}function Ct(t){return Wn(t)||No(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function No(t){return gi(t.x)||gi(t.y)}function gi(t){return t&&t!=="0%"}function Fe(t,e,n){const s=t-n,i=e*s;return n+i}function yi(t,e,n,s,i){return i!==void 0&&(t=Fe(t,i,s)),Fe(t,n,s)+e}function Un(t,e=0,n=1,s,i){t.min=yi(t.min,e,n,s,i),t.max=yi(t.max,e,n,s,i)}function Wo(t,{x:e,y:n}){Un(t.x,e.translate,e.scale,e.originPoint),Un(t.y,n.translate,n.scale,n.originPoint)}const vi=.999999999999,xi=1.0000000000001;function Gf(t,e,n,s=!1){const i=n.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=n[a],r=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(at(t.x,-o.scroll.offset.x),at(t.y,-o.scroll.offset.y)),r&&(e.x*=r.x.scale,e.y*=r.y.scale,Wo(t,r)),s&&Ct(o.latestValues)&&Te(t,o.latestValues,o.layout?.layoutBox))}e.x<xi&&e.x>vi&&(e.x=1),e.y<xi&&e.y>vi&&(e.y=1)}function at(t,e){t.min+=e,t.max+=e}function wi(t,e,n,s,i=.5){const o=B(t.min,t.max,i);Un(t,e,n,o,s)}function bi(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function Te(t,e,n){const s=n??t;wi(t.x,bi(e.x,s.x),e.scaleX,e.scale,e.originX),wi(t.y,bi(e.y,s.y),e.scaleY,e.scale,e.originY)}function Uo(t,e){return jo(Kf(t.getBoundingClientRect(),e))}function Xf(t,e,n){const s=Uo(t,n),{scroll:i}=e;return i&&(at(s.x,i.offset.x),at(s.y,i.offset.y)),s}const Yf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Qf=_t.length;function qf(t,e,n){let s="",i=!0;for(let o=0;o<Qf;o++){const r=_t[o],a=t[r];if(a===void 0)continue;let c=!0;if(typeof a=="number")c=a===(r.startsWith("scale")?1:0);else{const u=parseFloat(a);c=r.startsWith("scale")?u===1:u===0}if(!c||n){const u=Mo(a,vs[r]);if(!c){i=!1;const l=Yf[r]||r;s+=`${l}(${u}) `}n&&(e[r]=u)}}return s=s.trim(),n?s=n(e,i?"":s):i&&(s="none"),s}function Ps(t,e,n){const{style:s,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const c in e){const u=e[c];if(Ht.has(c)){r=!0;continue}else if(Qr(c)){i[c]=u;continue}else{const l=Mo(u,vs[c]);c.startsWith("origin")?(a=!0,o[c]=l):s[c]=l}}if(e.transform||(r||n?s.transform=qf(e,t.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:u="50%",originZ:l=0}=o;s.transformOrigin=`${c} ${u} ${l}`}}function $o(t,{style:e,vars:n},s,i){const o=t.style;let r;for(r in e)o[r]=e[r];i?.applyProjectionStyles(o,s);for(r in n)o.setProperty(r,n[r])}function Ti(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Kt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(A.test(t))t=parseFloat(t);else return t;const n=Ti(t,e.target.x),s=Ti(t,e.target.y);return`${n}% ${s}%`}},Zf={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=st.parse(t);if(i.length>5)return s;const o=st.createTransformer(t),r=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,c=n.y.scale*e.y;i[0+r]/=a,i[1+r]/=c;const u=B(a,c,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},$n={borderRadius:{...Kt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Kt,borderTopRightRadius:Kt,borderBottomLeftRadius:Kt,borderBottomRightRadius:Kt,boxShadow:Zf};function _o(t,{layout:e,layoutId:n}){return Ht.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!$n[t]||t==="opacity")}function As(t,e,n){const s=t.style,i=e?.style,o={};if(!s)return o;for(const r in s)(z(s[r])||i&&z(i[r])||_o(r,t)||n?.getValue(r)?.liveStyle!==void 0)&&(o[r]=s[r]);return o}function Jf(t){return window.getComputedStyle(t)}class th extends Bo{constructor(){super(...arguments),this.type="html",this.renderInstance=$o}readValueFromInstance(e,n){if(Ht.has(n))return this.projection?.isProjecting?En(n):vu(e,n);{const s=Jf(e),i=(Qr(n)?s.getPropertyValue(n):s[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:n}){return Uo(e,n)}build(e,n,s){Ps(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return As(e,n,s)}}const eh={offset:"stroke-dashoffset",array:"stroke-dasharray"},nh={offset:"strokeDashoffset",array:"strokeDasharray"};function sh(t,e,n=1,s=0,i=!0){t.pathLength=1;const o=i?eh:nh;t[o.offset]=`${-s}`,t[o.array]=`${e} ${n}`}const ih=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Ho(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:o=1,pathOffset:r=0,...a},c,u,l){if(Ps(t,a,u),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:f,style:h}=t;f.transform&&(h.transform=f.transform,delete f.transform),(h.transform||f.transformOrigin)&&(h.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),h.transform&&(h.transformBox=l?.transformBox??"fill-box",delete f.transformBox);for(const d of ih)f[d]!==void 0&&(h[d]=f[d],delete f[d]);e!==void 0&&(f.x=e),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),i!==void 0&&sh(f,i,o,r,!1)}const zo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),Ko=t=>typeof t=="string"&&t.toLowerCase()==="svg";function rh(t,e,n,s){$o(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(zo.has(i)?i:ys(i),e.attrs[i])}function Go(t,e,n){const s=As(t,e,n);for(const i in t)if(z(t[i])||z(e[i])){const o=_t.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[o]=t[i]}return s}class oh extends Bo{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=$}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Ht.has(n)){const s=Co(n);return s&&s.default||0}return n=zo.has(n)?n:ys(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return Go(e,n,s)}build(e,n,s){Ho(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){rh(e,n,s,i)}mount(e){this.isSVGTag=Ko(e.tagName),super.mount(e)}}const ah=Ss.length;function Xo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?Xo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<ah;n++){const s=Ss[n],i=t.props[s];(ne(i)||i===!1)&&(e[s]=i)}return e}function Yo(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 lh=[...Ts].reverse(),ch=Ts.length;function uh(t){return e=>Promise.all(e.map(({animation:n,options:s})=>of(t,n,s)))}function fh(t){let e=uh(t),n=Si(),s=!0,i=!1;const o=u=>(l,f)=>{const h=Vt(t,f,u==="exit"?t.presenceContext?.custom:void 0);if(h){const{transition:d,transitionEnd:p,...m}=h;l={...l,...m,...p}}return l};function r(u){e=u(t)}function a(u){const{props:l}=t,f=Xo(t.parent)||{},h=[],d=new Set;let p={},m=1/0;for(let g=0;g<ch;g++){const x=lh[g],v=n[x],w=l[x]!==void 0?l[x]:f[x],T=ne(w),C=x===u?v.isActive:null;C===!1&&(m=g);let E=w===f[x]&&w!==l[x]&&T;if(E&&(s||i)&&t.manuallyAnimateOnMount&&(E=!1),v.protectedKeys={...p},!v.isActive&&C===null||!w&&!v.prevProp||He(w)||typeof w=="boolean")continue;if(x==="exit"&&v.isActive&&C!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const P=hh(v.prevProp,w);let V=P||x===u&&v.isActive&&!E&&T||g>m&&T,S=!1;const M=Array.isArray(w)?w:[w];let D=M.reduce(o(x),{});C===!1&&(D={});const{prevResolvedValues:O={}}=v,L={...O,...D},j=R=>{V=!0,d.has(R)&&(S=!0,d.delete(R)),v.needsAnimating[R]=!0;const F=t.getValue(R);F&&(F.liveStyle=!1)};for(const R in L){const F=D[R],_=O[R];if(p.hasOwnProperty(R))continue;let dt=!1;kn(F)&&kn(_)?dt=!Yo(F,_):dt=F!==_,dt?F!=null?j(R):d.add(R):F!==void 0&&d.has(R)?j(R):v.protectedKeys[R]=!0}v.prevProp=w,v.prevResolvedValues=D,v.isActive&&(p={...p,...D}),(s||i)&&t.blockInitialAnimation&&(V=!1);const k=E&&P;V&&(!k||S)&&h.push(...M.map(R=>{const F={type:x};if(typeof R=="string"&&(s||i)&&!k&&t.manuallyAnimateOnMount&&t.parent){const{parent:_}=t,dt=Vt(_,R);if(_.enteringChildren&&dt){const{delayChildren:Ge}=dt.transition||{};F.delay=yo(_.enteringChildren,t,Ge)}}return{animation:R,options:F}}))}if(d.size){const g={};if(typeof l.initial!="boolean"){const x=Vt(t,Array.isArray(l.initial)?l.initial[0]:l.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const v=t.getBaseTarget(x),w=t.getValue(x);w&&(w.liveStyle=!0),g[x]=v??null}),h.push({animation:g})}let y=!!h.length;return s&&(l.initial===!1||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(y=!1),s=!1,i=!1,y?e(h):Promise.resolve()}function c(u,l){if(n[u].isActive===l)return Promise.resolve();t.variantChildren?.forEach(h=>h.animationState?.setActive(u,l)),n[u].isActive=l;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:c,setAnimateFunction:r,getState:()=>n,reset:()=>{n=Si(),i=!0}}}function hh(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!Yo(e,t):!1}function At(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Si(){return{animate:At(!0),whileInView:At(),whileHover:At(),whileTap:At(),whileDrag:At(),whileFocus:At(),exit:At()}}function _n(t,e){t.min=e.min,t.max=e.max}function tt(t,e){_n(t.x,e.x),_n(t.y,e.y)}function Pi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const Qo=1e-4,dh=1-Qo,ph=1+Qo,qo=.01,mh=0-qo,gh=0+qo;function G(t){return t.max-t.min}function yh(t,e,n){return Math.abs(t-e)<=n}function Ai(t,e,n,s=.5){t.origin=s,t.originPoint=B(e.min,e.max,t.origin),t.scale=G(n)/G(e),t.translate=B(n.min,n.max,t.origin)-t.originPoint,(t.scale>=dh&&t.scale<=ph||isNaN(t.scale))&&(t.scale=1),(t.translate>=mh&&t.translate<=gh||isNaN(t.translate))&&(t.translate=0)}function qt(t,e,n,s){Ai(t.x,e.x,n.x,s?s.originX:void 0),Ai(t.y,e.y,n.y,s?s.originY:void 0)}function Ci(t,e,n,s=0){const i=s?B(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+G(e)}function vh(t,e,n,s){Ci(t.x,e.x,n.x,s?.x),Ci(t.y,e.y,n.y,s?.y)}function Ri(t,e,n,s=0){const i=s?B(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+G(e)}function Ie(t,e,n,s){Ri(t.x,e.x,n.x,s?.x),Ri(t.y,e.y,n.y,s?.y)}function Ei(t,e,n,s,i){return t-=e,t=Fe(t,1/n,s),i!==void 0&&(t=Fe(t,1/i,s)),t}function xh(t,e=0,n=1,s=.5,i,o=t,r=t){if(ut.test(e)&&(e=parseFloat(e),e=B(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=B(o.min,o.max,s);t===o&&(a-=e),t.min=Ei(t.min,e,n,a,i),t.max=Ei(t.max,e,n,a,i)}function Mi(t,e,[n,s,i],o,r){xh(t,e[n],e[s],e[i],e.scale,o,r)}const wh=["x","scaleX","originX"],bh=["y","scaleY","originY"];function Vi(t,e,n,s){Mi(t.x,e,wh,n?n.x:void 0,s?s.x:void 0),Mi(t.y,e,bh,n?n.y:void 0,s?s.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function Zo(t){return Di(t.x)&&Di(t.y)}function Oi(t,e){return t.min===e.min&&t.max===e.max}function Th(t,e){return Oi(t.x,e.x)&&Oi(t.y,e.y)}function Li(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Jo(t,e){return Li(t.x,e.x)&&Li(t.y,e.y)}function ki(t){return G(t.x)/G(t.y)}function Fi(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function ot(t){return[t("x"),t("y")]}function Sh(t,e,n){let s="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=n?.z||0;if((i||o||r)&&(s=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:l,rotateX:f,rotateY:h,skewX:d,skewY:p}=n;u&&(s=`perspective(${u}px) ${s}`),l&&(s+=`rotate(${l}deg) `),f&&(s+=`rotateX(${f}deg) `),h&&(s+=`rotateY(${h}deg) `),d&&(s+=`skewX(${d}deg) `),p&&(s+=`skewY(${p}deg) `)}const a=t.x.scale*e.x,c=t.y.scale*e.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const ta=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Ph=ta.length,Ii=t=>typeof t=="string"?parseFloat(t):t,Bi=t=>typeof t=="number"||A.test(t);function Ah(t,e,n,s,i,o){i?(t.opacity=B(0,n.opacity??1,Ch(s)),t.opacityExit=B(e.opacity??1,0,Rh(s))):o&&(t.opacity=B(e.opacity??1,n.opacity??1,s));for(let r=0;r<Ph;r++){const a=ta[r];let c=ji(e,a),u=ji(n,a);if(c===void 0&&u===void 0)continue;c||(c=0),u||(u=0),c===0||u===0||Bi(c)===Bi(u)?(t[a]=Math.max(B(Ii(c),Ii(u),s),0),(ut.test(u)||ut.test(c))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=B(e.rotate||0,n.rotate||0,s))}function ji(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Ch=ea(0,.5,Hr),Rh=ea(.5,.95,J);function ea(t,e,n){return s=>s<t?0:s>e?1:n(te(t,e,s))}function Eh(t,e,n){const s=z(t)?t:Nt(t);return s.start(ms("",s,e,n)),s.animation}function se(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Mh=(t,e)=>t.depth-e.depth;class Vh{constructor(){this.children=[],this.isDirty=!1}add(e){ns(this.children,e),this.isDirty=!0}remove(e){Me(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Mh),this.isDirty=!1,this.children.forEach(e)}}function Dh(t,e){const n=K.now(),s=({timestamp:i})=>{const o=i-n;o>=e&&(Tt(s),t(o-e))};return I.setup(s,!0),()=>Tt(s)}function Se(t){return z(t)?t.get():t}class Oh{constructor(){this.members=[]}add(e){ns(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(Me(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(Me(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){const s=this.members[n];if(s.isPresent!==!1&&s.instance?.isConnected!==!1)return this.promote(s),!0}return!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=s.options,{layoutDependency:o}=e.options;(i===void 0||i!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const Pe={hasAnimatedSinceResize:!0,hasEverUpdated:!1},on=["","X","Y","Z"],Lh=1e3;let kh=0;function an(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function na(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=To(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",I,!(i||o))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&na(s)}function sa({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(r={},a=e?.()){this.id=kh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Bh),this.nodes.forEach(_h),this.nodes.forEach(Hh),this.nodes.forEach(jh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vh)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new is),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const c=this.eventHandlers.get(r);c&&c.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r){if(this.instance)return;this.isSVG=bs(r)&&!If(r),this.instance=r;const{layoutId:a,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||a)&&(this.isLayoutDirty=!0),t){let l,f=0;const h=()=>this.root.updateBlockedByResize=!1;I.read(()=>{f=window.innerWidth}),t(r,()=>{const d=window.innerWidth;d!==f&&(f=d,this.root.updateBlockedByResize=!0,l&&l(),l=Dh(h,250),Pe.hasAnimatedSinceResize&&(Pe.hasAnimatedSinceResize=!1,this.nodes.forEach(Ui)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||c)&&this.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Yh,{onLayoutAnimationStart:m,onLayoutAnimationComplete:y}=u.getProps(),g=!this.targetLayout||!Jo(this.targetLayout,d),x=!f&&h;if(this.options.layoutRoot||this.resumeFrom||x||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...ps(p,"layout"),onPlay:m,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(l,x)}else f||Ui(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(zh),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&na(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let l=0;l<this.path.length;l++){const f=this.path[l];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const c=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),c&&this.nodes.forEach(Wh),this.nodes.forEach(Ni);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Wi);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Uh),this.nodes.forEach($h),this.nodes.forEach(Fh),this.nodes.forEach(Ih)):this.nodes.forEach(Wi),this.clearAllSnapshots();const a=K.now();H.delta=ft(0,1e3/60,a-H.timestamp),H.timestamp=a,H.isProcessing=!0,qe.update.process(H),qe.preRender.process(H),qe.render.process(H),H.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,xs.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Nh),this.sharedNodes.forEach(Kh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!G(this.snapshot.measuredBox.x)&&!G(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=$()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a&&this.instance){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Zo(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,l=u!==this.prevTransformTemplateValue;r&&this.instance&&(a||Ct(this.latestValues)||l)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return r&&(c=this.removeTransform(c)),Qh(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:r}=this.options;if(!r)return $();const a=r.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(qh))){const{scroll:u}=this.root;u&&(at(a.x,u.offset.x),at(a.y,u.offset.y))}return a}removeElementScroll(r){const a=$();if(tt(a,r),this.scroll?.wasRoot)return a;for(let c=0;c<this.path.length;c++){const u=this.path[c],{scroll:l,options:f}=u;u!==this.root&&l&&f.layoutScroll&&(l.wasRoot&&tt(a,r),at(a.x,l.offset.x),at(a.y,l.offset.y))}return a}applyTransform(r,a=!1,c){const u=c||$();tt(u,r);for(let l=0;l<this.path.length;l++){const f=this.path[l];!a&&f.options.layoutScroll&&f.scroll&&f!==f.root&&(at(u.x,-f.scroll.offset.x),at(u.y,-f.scroll.offset.y)),Ct(f.latestValues)&&Te(u,f.latestValues,f.layout?.layoutBox)}return Ct(this.latestValues)&&Te(u,this.latestValues,this.layout?.layoutBox),u}removeTransform(r){const a=$();tt(a,r);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!Ct(u.latestValues))continue;let l;u.instance&&(Wn(u.latestValues)&&u.updateSnapshot(),l=$(),tt(l,u.measurePageBox())),Vi(a,u.latestValues,u.snapshot?.layoutBox,l)}return Ct(this.latestValues)&&Vi(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==H.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==a;if(!(r||c&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:l,layoutId:f}=this.options;if(!this.layout||!(l||f))return;this.resolvedRelativeTargetAt=H.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=$(),this.targetWithTransforms=$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vh(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):tt(this.target,this.layout.layoutBox),Wo(this.target,this.targetDelta)):tt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Wn(this.parent.latestValues)||No(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(r,a,c){this.relativeParent=r,this.linkedParentVersion=r.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=$(),this.relativeTargetOrigin=$(),Ie(this.relativeTargetOrigin,a,c,this.options.layoutAnchor||void 0),tt(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const r=this.getLead(),a=!!this.resumingFrom||this!==r;let c=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(c=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===H.timestamp&&(c=!1),c)return;const{layout:u,layoutId:l}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||l))return;tt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,h=this.treeScale.y;Gf(this.layoutCorrected,this.treeScale,this.path,a),r.layout&&!r.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(r.target=r.layout.layoutBox,r.targetWithTransforms=$());const{target:d}=r;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Pi(this.prevProjectionDelta.x,this.projectionDelta.x),Pi(this.prevProjectionDelta.y,this.projectionDelta.y)),qt(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==h||!Fi(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fi(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){if(this.options.visualElement?.scheduleRender(),r){const a=this.getStack();a&&a.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ft(),this.projectionDelta=Ft(),this.projectionDeltaWithTransform=Ft()}setAnimationOrigin(r,a=!1){const c=this.snapshot,u=c?c.latestValues:{},l={...this.latestValues},f=Ft();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=$(),d=c?c.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,y=this.getStack(),g=!y||y.members.length<=1,x=!!(m&&!g&&this.options.crossfade===!0&&!this.path.some(Xh));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const T=w/1e3;$i(f.x,r.x,T),$i(f.y,r.y,T),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ie(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Gh(this.relativeTarget,this.relativeTargetOrigin,h,T),v&&Th(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=$()),tt(v,this.relativeTarget)),m&&(this.animationValues=l,Ah(l,u,this.latestValues,T,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=I.update(()=>{Pe.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Nt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Eh(this.motionValue,[0,1e3],{...r,velocity:0,isSync:!0,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Lh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:c,layout:u,latestValues:l}=r;if(!(!a||!c||!u)){if(this!==r&&this.layout&&u&&ia(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||$();const f=G(this.layout.layoutBox.x);c.x.min=r.target.x.min,c.x.max=c.x.min+f;const h=G(this.layout.layoutBox.y);c.y.min=r.target.y.min,c.y.max=c.y.min+h}tt(a,c),Te(a,l),qt(this.projectionDeltaWithTransform,this.layoutCorrected,a,l)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new Oh),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){const{layoutId:r}=this.options;return r?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:r}=this.options;return r?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:c}=r;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const u={};c.z&&an("z",r,u,this.animationValues);for(let l=0;l<on.length;l++)an(`rotate${on[l]}`,r,u,this.animationValues),an(`skew${on[l]}`,r,u,this.animationValues);r.render();for(const l in u)r.setStaticValue(l,u[l]),this.animationValues&&(this.animationValues[l]=u[l]);r.scheduleRender()}applyProjectionStyles(r,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){r.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,r.visibility="",r.opacity="",r.pointerEvents=Se(a?.pointerEvents)||"",r.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(r.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,r.pointerEvents=Se(a?.pointerEvents)||""),this.hasProjected&&!Ct(this.latestValues)&&(r.transform=c?c({},""):"none",this.hasProjected=!1);return}r.visibility="";const l=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Sh(this.projectionDeltaWithTransform,this.treeScale,l);c&&(f=c(l,f)),r.transform=f;const{x:h,y:d}=this.projectionDelta;r.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?r.opacity=u===this?l.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:l.opacityExit:r.opacity=u===this?l.opacity!==void 0?l.opacity:"":l.opacityExit!==void 0?l.opacityExit:0;for(const p in $n){if(l[p]===void 0)continue;const{correct:m,applyTo:y,isCSSVariable:g}=$n[p],x=f==="none"?l[p]:m(l[p],u);if(y){const v=y.length;for(let w=0;w<v;w++)r[y[w]]=x}else g?this.options.visualElement.renderState.vars[p]=x:r[p]=x}this.options.layoutId&&(r.pointerEvents=u===this?Se(a?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>r.currentAnimation?.stop()),this.root.nodes.forEach(Ni),this.root.sharedNodes.clear()}}}function Fh(t){t.updateLayout()}function Ih(t){const e=t.resumeFrom?.snapshot||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=e.source!==t.layout.source;if(i==="size")ot(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=G(f);f.min=n[l].min,f.max=f.min+h});else if(i==="x"||i==="y"){const l=i==="x"?"y":"x";_n(o?e.measuredBox[l]:e.layoutBox[l],n[l])}else ia(i,e.layoutBox,n)&&ot(l=>{const f=o?e.measuredBox[l]:e.layoutBox[l],h=G(n[l]);f.max=f.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[l].max=t.relativeTarget[l].min+h)});const r=Ft();qt(r,n,e.layoutBox);const a=Ft();o?qt(a,t.applyTransform(s,!0),e.measuredBox):qt(a,n,e.layoutBox);const c=!Zo(r);let u=!1;if(!t.resumeFrom){const l=t.getClosestProjectingParent();if(l&&!l.resumeFrom){const{snapshot:f,layout:h}=l;if(f&&h){const d=t.options.layoutAnchor||void 0,p=$();Ie(p,e.layoutBox,f.layoutBox,d);const m=$();Ie(m,n,h.layoutBox,d),Jo(p,m)||(u=!0),l.options.layoutRoot&&(t.relativeTarget=m,t.relativeTargetOrigin=p,t.relativeParent=l)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:e,delta:a,layoutDelta:r,hasLayoutChanged:c,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Bh(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function jh(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Nh(t){t.clearSnapshot()}function Ni(t){t.clearMeasurements()}function Wh(t){t.isLayoutDirty=!0,t.updateLayout()}function Wi(t){t.isLayoutDirty=!1}function Uh(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function $h(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ui(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function _h(t){t.resolveTargetDelta()}function Hh(t){t.calcProjection()}function zh(t){t.resetSkewAndRotation()}function Kh(t){t.removeLeadSnapshot()}function $i(t,e,n){t.translate=B(e.translate,0,n),t.scale=B(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function _i(t,e,n,s){t.min=B(e.min,n.min,s),t.max=B(e.max,n.max,s)}function Gh(t,e,n,s){_i(t.x,e.x,n.x,s),_i(t.y,e.y,n.y,s)}function Xh(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Yh={duration:.45,ease:[.4,0,.1,1]},Hi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),zi=Hi("applewebkit/")&&!Hi("chrome/")?Math.round:J;function Ki(t){t.min=zi(t.min),t.max=zi(t.max)}function Qh(t){Ki(t.x),Ki(t.y)}function ia(t,e,n){return t==="position"||t==="preserve-aspect"&&!yh(ki(e),ki(n),.2)}function qh(t){return t!==t.root&&t.scroll?.wasRoot}const Zh=sa({attachResizeListener:(t,e)=>se(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),ln={current:void 0},ra=sa({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ln.current){const t=new Zh({});t.mount(window),t.setOptions({layoutScroll:!0}),ln.current=t}return ln.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),oa=b.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Jh(t=!0){const e=b.useContext(es);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,o=b.useId();b.useEffect(()=>{if(t)return i(o)},[t]);const r=b.useCallback(()=>t&&s&&s(o),[o,s,t]);return!n&&s?[!1,r]:[!0]}const aa=b.createContext({strict:!1}),Gi={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Xi=!1;function td(){if(Xi)return;const t={};for(const e in Gi)t[e]={isEnabled:n=>Gi[e].some(s=>!!n[s])};Io(t),Xi=!0}function la(){return td(),_f()}function ed(t){const e=la();for(const n in t)e[n]={...e[n],...t[n]};Io(e)}const nd=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Be(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nd.has(t)}let ca=t=>!Be(t);function sd(t){typeof t=="function"&&(ca=e=>e.startsWith("on")?!Be(e):t(e))}try{sd(require("@emotion/is-prop-valid").default)}catch{}function id(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||z(t[i])||(ca(i)||n===!0&&Be(i)||!e&&!Be(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const Ke=b.createContext({});function rd(t,e){if(ze(t)){const{initial:n,animate:s}=t;return{initial:n===!1||ne(n)?n:void 0,animate:ne(s)?s:void 0}}return t.inherit!==!1?e:{}}function od(t){const{initial:e,animate:n}=rd(t,b.useContext(Ke));return b.useMemo(()=>({initial:e,animate:n}),[Yi(e),Yi(n)])}function Yi(t){return Array.isArray(t)?t.join(" "):t}const Cs=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ua(t,e,n){for(const s in e)!z(e[s])&&!_o(s,n)&&(t[s]=e[s])}function ad({transformTemplate:t},e){return b.useMemo(()=>{const n=Cs();return Ps(n,e,t),Object.assign({},n.vars,n.style)},[e])}function ld(t,e){const n=t.style||{},s={};return ua(s,n,t),Object.assign(s,ad(t,e)),s}function cd(t,e){const n={},s=ld(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const fa=()=>({...Cs(),attrs:{}});function ud(t,e,n,s){const i=b.useMemo(()=>{const o=fa();return Ho(o,e,Ko(s),t.transformTemplate,t.style),{...o.attrs,style:{...o.style}}},[e]);if(t.style){const o={};ua(o,t.style,t),i.style={...o,...i.style}}return i}const fd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Rs(t){return typeof t!="string"||t.includes("-")?!1:!!(fd.indexOf(t)>-1||/[A-Z]/u.test(t))}function hd(t,e,n,{latestValues:s},i,o=!1,r){const c=(r??Rs(t)?ud:cd)(e,s,i,t),u=id(e,typeof t=="string",o),l=t!==b.Fragment?{...u,...c,ref:n}:{},{children:f}=e,h=b.useMemo(()=>z(f)?f.get():f,[f]);return b.createElement(t,{...l,children:h})}function dd({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:pd(n,s,i,t),renderState:e()}}function pd(t,e,n,s){const i={},o=s(t,{});for(const h in o)i[h]=Se(o[h]);let{initial:r,animate:a}=t;const c=ze(t),u=ko(t);e&&u&&!c&&t.inherit!==!1&&(r===void 0&&(r=e.initial),a===void 0&&(a=e.animate));let l=n?n.initial===!1:!1;l=l||r===!1;const f=l?a:r;if(f&&typeof f!="boolean"&&!He(f)){const h=Array.isArray(f)?f:[f];for(let d=0;d<h.length;d++){const p=gs(t,h[d]);if(p){const{transitionEnd:m,transition:y,...g}=p;for(const x in g){let v=g[x];if(Array.isArray(v)){const w=l?v.length-1:0;v=v[w]}v!==null&&(i[x]=v)}for(const x in m)i[x]=m[x]}}}return i}const ha=t=>(e,n)=>{const s=b.useContext(Ke),i=b.useContext(es),o=()=>dd(t,e,s,i);return n?o():uc(o)},md=ha({scrapeMotionValuesFromProps:As,createRenderState:Cs}),gd=ha({scrapeMotionValuesFromProps:Go,createRenderState:fa}),yd=Symbol.for("motionComponentSymbol");function vd(t,e,n){const s=b.useRef(n);b.useInsertionEffect(()=>{s.current=n});const i=b.useRef(null);return b.useCallback(o=>{o&&t.onMount?.(o);const r=s.current;if(typeof r=="function")if(o){const a=r(o);typeof a=="function"&&(i.current=a)}else i.current?(i.current(),i.current=null):r(o);else r&&(r.current=o);e&&(o?e.mount(o):e.unmount())},[e])}const da=b.createContext({});function Ot(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function xd(t,e,n,s,i,o){const{visualElement:r}=b.useContext(Ke),a=b.useContext(aa),c=b.useContext(es),u=b.useContext(oa),l=u.reducedMotion,f=u.skipAnimations,h=b.useRef(null),d=b.useRef(!1);s=s||a.renderer,!h.current&&s&&(h.current=s(t,{visualState:e,parent:r,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:l,skipAnimations:f,isSVG:o}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,m=b.useContext(da);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&wd(h.current,n,i,m);const y=b.useRef(!1);b.useInsertionEffect(()=>{p&&y.current&&p.update(n,c)});const g=n[bo],x=b.useRef(!!g&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return hc(()=>{d.current=!0,p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),x.current&&p.animationState&&p.animationState.animateChanges())}),b.useEffect(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),x.current=!1),p.enteringChildren=void 0)}),p}function wd(t,e,n,s){const{layoutId:i,layout:o,drag:r,dragConstraints:a,layoutScroll:c,layoutRoot:u,layoutAnchor:l,layoutCrossfade:f}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:pa(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!r||a&&Ot(a),visualElement:t,animationType:typeof o=="string"?o:"both",initialPromotionConfig:s,crossfade:f,layoutScroll:c,layoutRoot:u,layoutAnchor:l})}function pa(t){if(t)return t.options.allowProjection!==!1?t.projection:pa(t.parent)}function cn(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&ed(s);const o=n?n==="svg":Rs(t),r=o?gd:md;function a(u,l){let f;const h={...b.useContext(oa),...u,layoutId:bd(u)},{isStatic:d}=h,p=od(u),m=r(u,d);if(!d&&typeof window<"u"){Td();const y=Sd(h);f=y.MeasureLayout,p.visualElement=xd(t,m,h,i,y.ProjectionNode,o)}return Y.jsxs(Ke.Provider,{value:p,children:[f&&p.visualElement?Y.jsx(f,{visualElement:p.visualElement,...h}):null,hd(t,u,vd(m,p.visualElement,l),m,d,e,o)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const c=b.forwardRef(a);return c[yd]=t,c}function bd({layoutId:t}){const e=b.useContext(Or).id;return e&&t!==void 0?e+"-"+t:t}function Td(t,e){b.useContext(aa).strict}function Sd(t){const e=la(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n?.isEnabled(t)||s?.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function Pd(t,e){if(typeof Proxy>"u")return cn;const n=new Map,s=(o,r)=>cn(o,r,t,e),i=(o,r)=>s(o,r);return new Proxy(i,{get:(o,r)=>r==="create"?s:(n.has(r)||n.set(r,cn(r,void 0,t,e)),n.get(r))})}const Ad=(t,e)=>e.isSVG??Rs(t)?new oh(e):new th(e,{allowProjection:t!==b.Fragment});class Cd extends St{constructor(e){super(e),e.animationState||(e.animationState=fh(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();He(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(){this.node.animationState.reset(),this.unmountControls?.()}}let Rd=0;class Ed extends St{constructor(){super(...arguments),this.id=Rd++,this.isExitComplete=!1}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;if(e&&s===!1){if(this.isExitComplete){const{initial:o,custom:r}=this.node.getProps();if(typeof o=="string"){const a=Vt(this.node,o,r);if(a){const{transition:c,transitionEnd:u,...l}=a;for(const f in l)this.node.getValue(f)?.jump(l[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Md={animation:{Feature:Cd},exit:{Feature:Ed}};function le(t){return{point:{x:t.pageX,y:t.pageY}}}const Vd=t=>e=>ws(e)&&t(e,le(e));function Zt(t,e,n,s){return se(t,e,Vd(n),s)}const ma=({current:t})=>t?t.ownerDocument.defaultView:null,Qi=(t,e)=>Math.abs(t-e);function Dd(t,e){const n=Qi(t.x,e.x),s=Qi(t.y,e.y);return Math.sqrt(n**2+s**2)}const qi=new Set(["auto","scroll"]);class ga{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=pe(this.lastRawMoveEventInfo,this.transformPagePoint));const d=un(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=Dd(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:y}=d,{timestamp:g}=H;this.history.push({...y,timestamp:g});const{onStart:x,onMove:v}=this.handlers;p||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=pe(p,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:y,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=un(d.type==="pointercancel"?this.lastMoveEventInfo:pe(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,x),y&&y(d,x)},!ws(e))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=r,this.contextWindow=i||window;const c=le(e),u=pe(c,this.transformPagePoint),{point:l}=u,{timestamp:f}=H;this.history=[{...l,timestamp:f}];const{onSessionStart:h}=n;h&&h(e,un(u,this.history)),this.removeListeners=re(Zt(this.contextWindow,"pointermove",this.handlePointerMove),Zt(this.contextWindow,"pointerup",this.handlePointerUp),Zt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(qi.has(s.overflowX)||qi.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(e,i),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Tt(this.updatePoint)}}function pe(t,e){return e?{point:e(t.point)}:t}function Zi(t,e){return{x:t.x-e.x,y:t.y-e.y}}function un({point:t},e){return{point:t,delta:Zi(t,ya(e)),offset:Zi(t,Od(e)),velocity:Ld(e,.1)}}function Od(t){return t[0]}function ya(t){return t[t.length-1]}function Ld(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=ya(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>q(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>q(e)*2&&(s=t[1]);const o=Z(i.timestamp-s.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-s.x)/o,y:(i.y-s.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}function kd(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?B(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?B(n,t,s.max):Math.min(t,n)),t}function Ji(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function Fd(t,{top:e,left:n,bottom:s,right:i}){return{x:Ji(t.x,n,i),y:Ji(t.y,e,s)}}function tr(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function Id(t,e){return{x:tr(t.x,e.x),y:tr(t.y,e.y)}}function Bd(t,e){let n=.5;const s=G(t),i=G(e);return i>s?n=te(e.min,e.max-s,t.min):s>i&&(n=te(t.min,t.max-i,e.min)),ft(0,1,n)}function jd(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Hn=.35;function Nd(t=Hn){return t===!1?t=0:t===!0&&(t=Hn),{x:er(t,"left","right"),y:er(t,"top","bottom")}}function er(t,e,n){return{min:nr(t,e),max:nr(t,n)}}function nr(t,e){return typeof t=="number"?t:t[e]||0}const Wd=new WeakMap;class Ud{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=$(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=f=>{n&&this.snapToCursor(le(f).point),this.stopAnimation()},r=(f,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=xf(d),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ot(g=>{let x=this.getAxisMotionValue(g).get()||0;if(ut.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[g];w&&(x=G(w)*(parseFloat(x)/100))}}this.originPoint[g]=x}),m&&I.update(()=>m(f,h),!1,!0),Fn(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},a=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:y}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=h;if(p&&this.currentDirection===null){this.currentDirection=_d(g),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,g),this.updateAxis("y",h.point,g),this.visualElement.render(),y&&I.update(()=>y(f,h),!1,!0)},c=(f,h)=>{this.latestPointerEvent=f,this.latestPanInfo=h,this.stop(f,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:f}=this.getProps();(f||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ga(e,{onSessionStart:o,onStart:r,onMove:a,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:s,contextWindow:ma(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!s)return;const{velocity:r}=i;this.startAnimation(r);const{onDragEnd:a}=this.getProps();a&&I.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!me(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(r=kd(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,i=this.constraints;e&&Ot(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=Fd(s.layoutBox,e):this.constraints=!1,this.elastic=Nd(n),i!==this.constraints&&!Ot(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&ot(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=jd(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Ot(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=Xf(s,i.root,this.visualElement.getTransformPagePoint());let r=Id(i.layout.layoutBox,o);if(n){const a=n(zf(r));this.hasMutatedConstraints=!!a,a&&(r=jo(a))}return r}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},u=ot(l=>{if(!me(l,n,this.currentDirection))return;let f=c&&c[l]||{};(r===!0||r===l)&&(f={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:s?e[l]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(l,p)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Fn(this.visualElement,e),s.start(ms(e,s,0,n,this.visualElement,!1))}stopAnimation(){ot(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){ot(n=>{const{drag:s}=this.getProps();if(!me(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[n],c=o.get()||0;o.set(e[n]-B(r,a,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ot(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};ot(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const c=a.get();i[r]=Bd({min:c,max:c},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),ot(r=>{if(!me(r,e,null))return;const a=this.getAxisMotionValue(r),{min:c,max:u}=this.constraints[r];a.set(B(c,u,i[r]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Wd.set(this.visualElement,this);const e=this.visualElement.current,n=Zt(e,"pointerdown",u=>{const{drag:l,dragListener:f=!0}=this.getProps(),h=u.target,d=h!==e&&Af(h);l&&f&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();Ot(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=$d(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,r=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),I.read(i);const a=se(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:l})=>{this.isDragging&&l&&(ot(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=u[f].translate,h.set(h.get()+u[f].translate))}),this.visualElement.render())}));return()=>{a(),n(),r(),c&&c(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Hn,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function sr(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function $d(t,e,n){const s=hi(t,sr(n)),i=hi(e,sr(n));return()=>{s(),i()}}function me(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function _d(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class Hd extends St{constructor(e){super(e),this.removeGroupControls=J,this.removeListeners=J,this.controls=new Ud(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||J}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fn=t=>(e,n)=>{t&&I.update(()=>t(e,n),!1,!0)};class zd extends St{constructor(){super(...arguments),this.removePointerDownListener=J}onPointerDown(e){this.session=new ga(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ma(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:fn(e),onStart:fn(n),onMove:fn(s),onEnd:(o,r)=>{delete this.session,i&&I.postRender(()=>i(o,r))}}}mount(){this.removePointerDownListener=Zt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let hn=!1;class Kd extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:o}=e;o&&(n.group&&n.group.add(o),s&&s.register&&i&&s.register(o),hn&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Pe.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:o}=this.props,{projection:r}=s;return r&&(r.isPresent=o,e.layoutDependency!==n&&r.setOptions({...r.options,layoutDependency:n}),hn=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==o?r.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?r.promote():r.relegate()||I.postRender(()=>{const a=r.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),xs.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;hn=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function va(t){const[e,n]=Jh(),s=b.useContext(Or);return Y.jsx(Kd,{...t,layoutGroup:s,switchLayoutGroup:b.useContext(da),isPresent:e,safeToRemove:n})}const Gd={pan:{Feature:zd},drag:{Feature:Hd,ProjectionNode:ra,MeasureLayout:va}};function ir(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=s[i];o&&I.postRender(()=>o(e,le(e)))}class Xd extends St{mount(){const{current:e}=this.node;e&&(this.unmount=bf(e,(n,s)=>(ir(this.node,s,"Start"),i=>ir(this.node,i,"End"))))}unmount(){}}class Yd extends St{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=re(se(this.node.current,"focus",()=>this.onFocus()),se(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function rr(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),o=s[i];o&&I.postRender(()=>o(e,le(e)))}class Qd extends St{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Rf(e,(i,o)=>(rr(this.node,o,"Start"),(r,{success:a})=>rr(this.node,r,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:s?.tap===!1})}unmount(){}}const zn=new WeakMap,dn=new WeakMap,qd=t=>{const e=zn.get(t.target);e&&e(t)},Zd=t=>{t.forEach(qd)};function Jd({root:t,...e}){const n=t||document;dn.has(n)||dn.set(n,{});const s=dn.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(Zd,{root:t,...e})),s[i]}function tp(t,e,n){const s=Jd(e);return zn.set(t,n),s.observe(t),()=>{zn.delete(t),s.unobserve(t)}}const ep={some:0,all:1};class np extends St{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:o}=e,r={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:ep[i]},a=c=>{const{isIntersecting:u}=c;if(this.isInView===u||(this.isInView=u,o&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:l,onViewportLeave:f}=this.node.getProps(),h=u?l:f;h&&h(c)};this.stopObserver=tp(this.node.current,r,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(sp(e,n))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}function sp({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const ip={inView:{Feature:np},tap:{Feature:Qd},focus:{Feature:Yd},hover:{Feature:Xd}},rp={layout:{ProjectionNode:ra,MeasureLayout:va}},op={...Md,...ip,...Gd,...rp},xp=Pd(op,Ad);export{mp as A,gp as C,Or as L,oa as M,es as P,pp as R,Ya as V,yp as a,hp as b,dp as c,Jh as d,hc as e,lp as f,cp as g,Fo as h,vf as i,$f as j,up as k,fp as l,xp as m,Nn as p,uc as u};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{s as _e,g as Ae,q as ie,p as ke,a as Fe,b as Pe,_ as o,c as zt,l as bt,d as Lt,e as ve,z as Ce,G as D,i as Le,K as Ee}from"./mermaid.core-BR4XzyQe.js";import{l as ee}from"./linear-BDwQpyTv.js";import"./index-1QFQcLya.js";import"./init-Gi6I4Gst.js";import"./defaultLocale-DX6XiGOO.js";var Et=(function(){var t=o(function(M,r,l,x){for(l=l||{},x=M.length;x--;l[M[x]]=r);return l},"o"),n=[1,3],f=[1,4],d=[1,5],h=[1,6],p=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],_=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],a=[55,56,57],A=[2,36],u=[1,37],T=[1,36],q=[1,38],m=[1,35],b=[1,43],g=[1,41],G=[1,14],ht=[1,23],xt=[1,18],ft=[1,19],gt=[1,20],ct=[1,21],_t=[1,22],dt=[1,24],i=[1,25],Vt=[1,26],It=[1,27],wt=[1,28],Bt=[1,29],W=[1,32],U=[1,33],k=[1,34],F=[1,39],P=[1,40],v=[1,42],C=[1,44],O=[1,62],H=[1,61],L=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Rt=[1,65],Nt=[1,66],Wt=[1,67],Ut=[1,68],Qt=[1,69],Ot=[1,70],Ht=[1,71],Xt=[1,72],Mt=[1,73],Yt=[1,74],jt=[1,75],Gt=[1,76],I=[4,5,6,7,8,9,10,11,12,13,14,15,18],K=[1,90],Z=[1,91],J=[1,92],$=[1,99],tt=[1,93],et=[1,96],it=[1,94],at=[1,95],nt=[1,97],st=[1,98],At=[1,102],Kt=[10,55,56,57],R=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],kt={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:o(function(r,l,x,c,S,e,ut){var s=e.length-1;switch(S){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],c.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),c.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),c.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),c.setAccDescription(this.$);break;case 46:c.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:c.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:c.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:c.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:c.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:c.setXAxisLeftText(e[s-2]),c.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" ⟶ ",c.setXAxisLeftText(e[s-1]);break;case 53:c.setXAxisLeftText(e[s]);break;case 54:c.setYAxisBottomText(e[s-2]),c.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" ⟶ ",c.setYAxisBottomText(e[s-1]);break;case 56:c.setYAxisBottomText(e[s]);break;case 57:c.setQuadrant1Text(e[s]);break;case 58:c.setQuadrant2Text(e[s]);break;case 59:c.setQuadrant3Text(e[s]);break;case 60:c.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:d,56:h,57:p},{1:[3]},{18:n,26:8,27:2,28:f,55:d,56:h,57:p},{18:n,26:9,27:2,28:f,55:d,56:h,57:p},t(y,[2,33],{29:10}),t(_,[2,61]),t(_,[2,62]),t(_,[2,63]),{1:[2,30]},{1:[2,31]},t(a,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:u,5:T,10:q,12:m,13:b,14:g,18:G,25:ht,35:xt,37:ft,39:gt,41:ct,42:_t,48:dt,50:i,51:Vt,52:It,53:wt,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(y,[2,34]),{27:45,55:d,56:h,57:p},t(a,[2,37]),t(a,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:u,5:T,10:q,12:m,13:b,14:g,18:G,25:ht,35:xt,37:ft,39:gt,41:ct,42:_t,48:dt,50:i,51:Vt,52:It,53:wt,54:Bt,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,39]),t(a,[2,40]),t(a,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(a,[2,45]),t(a,[2,46]),{18:[1,50]},{4:u,5:T,10:q,12:m,13:b,14:g,43:51,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,10:q,12:m,13:b,14:g,43:52,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,10:q,12:m,13:b,14:g,43:53,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,10:q,12:m,13:b,14:g,43:54,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,10:q,12:m,13:b,14:g,43:55,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,10:q,12:m,13:b,14:g,43:56,58:31,60:W,61:U,63:k,64:F,65:P,66:v,67:C},{4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,44:[1,57],47:[1,58],58:60,59:59,63:k,64:F,65:P,66:v,67:C},t(L,[2,64]),t(L,[2,66]),t(L,[2,67]),t(L,[2,70]),t(L,[2,71]),t(L,[2,72]),t(L,[2,73]),t(L,[2,74]),t(L,[2,75]),t(L,[2,76]),t(L,[2,77]),t(L,[2,78]),t(L,[2,79]),t(L,[2,80]),t(y,[2,35]),t(a,[2,38]),t(a,[2,42]),t(a,[2,43]),t(a,[2,44]),{3:64,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,21:63},t(a,[2,53],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,49:[1,77],63:k,64:F,65:P,66:v,67:C}),t(a,[2,56],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,49:[1,78],63:k,64:F,65:P,66:v,67:C}),t(a,[2,57],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),t(a,[2,58],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),t(a,[2,59],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),t(a,[2,60],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),{45:[1,79]},{44:[1,80]},t(L,[2,65]),t(L,[2,81]),t(L,[2,82]),t(L,[2,83]),{3:82,4:Rt,5:Nt,6:Wt,7:Ut,8:Qt,9:Ot,10:Ht,11:Xt,12:Mt,13:Yt,14:jt,15:Gt,18:[1,81]},t(I,[2,23]),t(I,[2,1]),t(I,[2,2]),t(I,[2,3]),t(I,[2,4]),t(I,[2,5]),t(I,[2,6]),t(I,[2,7]),t(I,[2,8]),t(I,[2,9]),t(I,[2,10]),t(I,[2,11]),t(I,[2,12]),t(a,[2,52],{58:31,43:83,4:u,5:T,10:q,12:m,13:b,14:g,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),t(a,[2,55],{58:31,43:84,4:u,5:T,10:q,12:m,13:b,14:g,60:W,61:U,63:k,64:F,65:P,66:v,67:C}),{46:[1,85]},{45:[1,86]},{4:K,5:Z,6:J,8:$,11:tt,13:et,16:89,17:it,18:at,19:nt,20:st,22:88,23:87},t(I,[2,24]),t(a,[2,51],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),t(a,[2,54],{59:59,58:60,4:u,5:T,8:O,10:q,12:m,13:b,14:g,18:H,63:k,64:F,65:P,66:v,67:C}),t(a,[2,47],{22:88,16:89,23:100,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{46:[1,101]},t(a,[2,29],{10:At}),t(Kt,[2,27],{16:103,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),t(R,[2,25]),t(R,[2,13]),t(R,[2,14]),t(R,[2,15]),t(R,[2,16]),t(R,[2,17]),t(R,[2,18]),t(R,[2,19]),t(R,[2,20]),t(R,[2,21]),t(R,[2,22]),t(a,[2,49],{10:At}),t(a,[2,48],{22:88,16:89,23:104,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st}),{4:K,5:Z,6:J,8:$,11:tt,13:et,16:89,17:it,18:at,19:nt,20:st,22:105},t(R,[2,26]),t(a,[2,50],{10:At}),t(Kt,[2,28],{16:103,4:K,5:Z,6:J,8:$,11:tt,13:et,17:it,18:at,19:nt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:o(function(r,l){if(l.recoverable)this.trace(r);else{var x=new Error(r);throw x.hash=l,x}},"parseError"),parse:o(function(r){var l=this,x=[0],c=[],S=[null],e=[],ut=this.table,s="",yt=0,Zt=0,qe=2,Jt=1,me=e.slice.call(arguments,1),E=Object.create(this.lexer),Y={yy:{}};for(var Ft in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ft)&&(Y.yy[Ft]=this.yy[Ft]);E.setInput(r,Y.yy),Y.yy.lexer=E,Y.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Pt=E.yylloc;e.push(Pt);var be=E.options&&E.options.ranges;typeof Y.yy.parseError=="function"?this.parseError=Y.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Se(B){x.length=x.length-2*B,S.length=S.length-B,e.length=e.length-B}o(Se,"popStack");function $t(){var B;return B=c.pop()||E.lex()||Jt,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=l.symbols_[B]||B),B}o($t,"lex");for(var w,j,N,vt,rt={},Tt,X,te,qt;;){if(j=x[x.length-1],this.defaultActions[j]?N=this.defaultActions[j]:((w===null||typeof w>"u")&&(w=$t()),N=ut[j]&&ut[j][w]),typeof N>"u"||!N.length||!N[0]){var Ct="";qt=[];for(Tt in ut[j])this.terminals_[Tt]&&Tt>qe&&qt.push("'"+this.terminals_[Tt]+"'");E.showPosition?Ct="Parse error on line "+(yt+1)+`:
|
|
2
|
+
`+E.showPosition()+`
|
|
3
|
+
Expecting `+qt.join(", ")+", got '"+(this.terminals_[w]||w)+"'":Ct="Parse error on line "+(yt+1)+": Unexpected "+(w==Jt?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(Ct,{text:E.match,token:this.terminals_[w]||w,line:E.yylineno,loc:Pt,expected:qt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+w);switch(N[0]){case 1:x.push(w),S.push(E.yytext),e.push(E.yylloc),x.push(N[1]),w=null,Zt=E.yyleng,s=E.yytext,yt=E.yylineno,Pt=E.yylloc;break;case 2:if(X=this.productions_[N[1]][1],rt.$=S[S.length-X],rt._$={first_line:e[e.length-(X||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(X||1)].first_column,last_column:e[e.length-1].last_column},be&&(rt._$.range=[e[e.length-(X||1)].range[0],e[e.length-1].range[1]]),vt=this.performAction.apply(rt,[s,Zt,yt,Y.yy,N[1],S,e].concat(me)),typeof vt<"u")return vt;X&&(x=x.slice(0,-1*X*2),S=S.slice(0,-1*X),e=e.slice(0,-1*X)),x.push(this.productions_[N[1]][0]),S.push(rt.$),e.push(rt._$),te=ut[x[x.length-2]][x[x.length-1]],x.push(te);break;case 3:return!0}}return!0},"parse")},Te=(function(){var M={EOF:1,parseError:o(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:o(function(r,l){return this.yy=l||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var l=r.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:o(function(r){var l=r.length,x=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var S=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===c.length?this.yylloc.first_column:0)+c[c.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[S[0],S[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(r){this.unput(this.match.slice(r))},"less"),pastInput:o(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var r=this.pastInput(),l=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
5
|
+
`+l+"^"},"showPosition"),test_match:o(function(r,l){var x,c,S;if(this.options.backtrack_lexer&&(S={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(S.yylloc.range=this.yylloc.range.slice(0))),c=r[0].match(/(?:\r\n?|\n).*/g),c&&(this.yylineno+=c.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:c?c[c.length-1].length-c[c.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+r[0].length},this.yytext+=r[0],this.match+=r[0],this.matches=r,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(r[0].length),this.matched+=r[0],x=this.performAction.call(this,this.yy,this,l,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),x)return x;if(this._backtrack){for(var e in S)this[e]=S[e];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var r,l,x,c;this._more||(this.yytext="",this.match="");for(var S=this._currentRules(),e=0;e<S.length;e++)if(x=this._input.match(this.rules[S[e]]),x&&(!l||x[0].length>l[0].length)){if(l=x,c=e,this.options.backtrack_lexer){if(r=this.test_match(x,S[e]),r!==!1)return r;if(this._backtrack){l=!1;continue}else return!1}else if(!this.options.flex)break}return l?(r=this.test_match(l,S[c]),r!==!1?r:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var l=this.next();return l||this.lex()},"lex"),begin:o(function(l){this.conditionStack.push(l)},"begin"),popState:o(function(){var l=this.conditionStack.length-1;return l>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(l){return l=this.conditionStack.length-1-Math.abs(l||0),l>=0?this.conditionStack[l]:"INITIAL"},"topState"),pushState:o(function(l){this.begin(l)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(l,x,c,S){switch(c){case 0:break;case 1:break;case 2:return 55;case 3:break;case 4:return this.begin("title"),35;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),37;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),39;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 48;case 14:return 50;case 15:return 49;case 16:return 51;case 17:return 52;case 18:return 53;case 19:return 54;case 20:return 25;case 21:this.begin("md_string");break;case 22:return"MD_STR";case 23:this.popState();break;case 24:this.begin("string");break;case 25:this.popState();break;case 26:return"STR";case 27:this.begin("class_name");break;case 28:return this.popState(),47;case 29:return this.begin("point_start"),44;case 30:return this.begin("point_x"),45;case 31:this.popState();break;case 32:this.popState(),this.begin("point_y");break;case 33:return this.popState(),46;case 34:return 28;case 35:return 4;case 36:return 11;case 37:return 64;case 38:return 10;case 39:return 65;case 40:return 65;case 41:return 14;case 42:return 13;case 43:return 67;case 44:return 66;case 45:return 12;case 46:return 8;case 47:return 5;case 48:return 18;case 49:return 56;case 50:return 63;case 51:return 57}},"anonymous"),rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:classDef\b)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?::::)/i,/^(?:^\w+)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{class_name:{rules:[28],inclusive:!1},point_y:{rules:[33],inclusive:!1},point_x:{rules:[32],inclusive:!1},point_start:{rules:[30,31],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[22,23],inclusive:!1},string:{rules:[25,26],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,21,24,27,29,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],inclusive:!0}}};return M})();kt.lexer=Te;function pt(){this.yy={}}return o(pt,"Parser"),pt.prototype=kt,kt.Parser=pt,new pt})();Et.parser=Et;var De=Et,V=Ee(),ot,ze=(ot=class{constructor(){this.classes=new Map,this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:D.quadrantChart?.chartWidth||500,chartWidth:D.quadrantChart?.chartHeight||500,titlePadding:D.quadrantChart?.titlePadding||10,titleFontSize:D.quadrantChart?.titleFontSize||20,quadrantPadding:D.quadrantChart?.quadrantPadding||5,xAxisLabelPadding:D.quadrantChart?.xAxisLabelPadding||5,yAxisLabelPadding:D.quadrantChart?.yAxisLabelPadding||5,xAxisLabelFontSize:D.quadrantChart?.xAxisLabelFontSize||16,yAxisLabelFontSize:D.quadrantChart?.yAxisLabelFontSize||16,quadrantLabelFontSize:D.quadrantChart?.quadrantLabelFontSize||16,quadrantTextTopPadding:D.quadrantChart?.quadrantTextTopPadding||5,pointTextPadding:D.quadrantChart?.pointTextPadding||5,pointLabelFontSize:D.quadrantChart?.pointLabelFontSize||12,pointRadius:D.quadrantChart?.pointRadius||5,xAxisPosition:D.quadrantChart?.xAxisPosition||"top",yAxisPosition:D.quadrantChart?.yAxisPosition||"left",quadrantInternalBorderStrokeWidth:D.quadrantChart?.quadrantInternalBorderStrokeWidth||1,quadrantExternalBorderStrokeWidth:D.quadrantChart?.quadrantExternalBorderStrokeWidth||2}}getDefaultThemeConfig(){return{quadrant1Fill:V.quadrant1Fill,quadrant2Fill:V.quadrant2Fill,quadrant3Fill:V.quadrant3Fill,quadrant4Fill:V.quadrant4Fill,quadrant1TextFill:V.quadrant1TextFill,quadrant2TextFill:V.quadrant2TextFill,quadrant3TextFill:V.quadrant3TextFill,quadrant4TextFill:V.quadrant4TextFill,quadrantPointFill:V.quadrantPointFill,quadrantPointTextFill:V.quadrantPointTextFill,quadrantXAxisTextFill:V.quadrantXAxisTextFill,quadrantYAxisTextFill:V.quadrantYAxisTextFill,quadrantTitleFill:V.quadrantTitleFill,quadrantInternalBorderStrokeFill:V.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:V.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),this.classes=new Map,bt.info("clear called")}setData(n){this.data={...this.data,...n}}addPoints(n){this.data.points=[...n,...this.data.points]}addClass(n,f){this.classes.set(n,f)}setConfig(n){bt.trace("setConfig called with: ",n),this.config={...this.config,...n}}setThemeConfig(n){bt.trace("setThemeConfig called with: ",n),this.themeConfig={...this.themeConfig,...n}}calculateSpace(n,f,d,h){const p=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,y={top:n==="top"&&f?p:0,bottom:n==="bottom"&&f?p:0},_=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,a={left:this.config.yAxisPosition==="left"&&d?_:0,right:this.config.yAxisPosition==="right"&&d?_:0},A=this.config.titleFontSize+this.config.titlePadding*2,u={top:h?A:0},T=this.config.quadrantPadding+a.left,q=this.config.quadrantPadding+y.top+u.top,m=this.config.chartWidth-this.config.quadrantPadding*2-a.left-a.right,b=this.config.chartHeight-this.config.quadrantPadding*2-y.top-y.bottom-u.top,g=m/2,G=b/2;return{xAxisSpace:y,yAxisSpace:a,titleSpace:u,quadrantSpace:{quadrantLeft:T,quadrantTop:q,quadrantWidth:m,quadrantHalfWidth:g,quadrantHeight:b,quadrantHalfHeight:G}}}getAxisLabels(n,f,d,h){const{quadrantSpace:p,titleSpace:y}=h,{quadrantHalfHeight:_,quadrantHeight:a,quadrantLeft:A,quadrantHalfWidth:u,quadrantTop:T,quadrantWidth:q}=p,m=!!this.data.xAxisRightText,b=!!this.data.yAxisTopText,g=[];return this.data.xAxisLeftText&&f&&g.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+(m?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+T+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&f&&g.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:A+u+(m?u/2:0),y:n==="top"?this.config.xAxisLabelPadding+y.top:this.config.xAxisLabelPadding+T+a+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:m?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&d&&g.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+q+this.config.quadrantPadding,y:T+a-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&d&&g.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+A+q+this.config.quadrantPadding,y:T+_-(b?_/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:b?"center":"left",horizontalPos:"top",rotation:-90}),g}getQuadrants(n){const{quadrantSpace:f}=n,{quadrantHalfHeight:d,quadrantLeft:h,quadrantHalfWidth:p,quadrantTop:y}=f,_=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y,width:p,height:d,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y,width:p,height:d,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:h+p,y:y+d,width:p,height:d,fill:this.themeConfig.quadrant4Fill}];for(const a of _)a.text.x=a.x+a.width/2,this.data.points.length===0?(a.text.y=a.y+a.height/2,a.text.horizontalPos="middle"):(a.text.y=a.y+this.config.quadrantTextTopPadding,a.text.horizontalPos="top");return _}getQuadrantPoints(n){const{quadrantSpace:f}=n,{quadrantHeight:d,quadrantLeft:h,quadrantTop:p,quadrantWidth:y}=f,_=ee().domain([0,1]).range([h,y+h]),a=ee().domain([0,1]).range([d+p,p]);return this.data.points.map(u=>{const T=this.classes.get(u.className);return T&&(u={...T,...u}),{x:_(u.x),y:a(u.y),fill:u.color??this.themeConfig.quadrantPointFill,radius:u.radius??this.config.pointRadius,text:{text:u.text,fill:this.themeConfig.quadrantPointTextFill,x:_(u.x),y:a(u.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0},strokeColor:u.strokeColor??this.themeConfig.quadrantPointFill,strokeWidth:u.strokeWidth??"0px"}})}getBorders(n){const f=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:d}=n,{quadrantHalfHeight:h,quadrantHeight:p,quadrantLeft:y,quadrantHalfWidth:_,quadrantTop:a,quadrantWidth:A}=d;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-f,y1:a,x2:y+A+f,y2:a},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y+A,y1:a+f,x2:y+A,y2:a+p-f},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y-f,y1:a+p,x2:y+A+f,y2:a+p},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:y,y1:a+f,x2:y,y2:a+p-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+_,y1:a+f,x2:y+_,y2:a+p-f},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:y+f,y1:a+h,x2:y+A-f,y2:a+h}]}getTitle(n){if(n)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const n=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),f=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),d=this.config.showTitle&&!!this.data.titleText,h=this.data.points.length>0?"bottom":this.config.xAxisPosition,p=this.calculateSpace(h,n,f,d);return{points:this.getQuadrantPoints(p),quadrants:this.getQuadrants(p),axisLabels:this.getAxisLabels(h,n,f,p),borderLines:this.getBorders(p),title:this.getTitle(d)}}},o(ot,"QuadrantBuilder"),ot),lt,mt=(lt=class extends Error{constructor(n,f,d){super(`value for ${n} ${f} is invalid, please use a valid ${d}`),this.name="InvalidStyleError"}},o(lt,"InvalidStyleError"),lt);function Dt(t){return!/^#?([\dA-Fa-f]{6}|[\dA-Fa-f]{3})$/.test(t)}o(Dt,"validateHexCode");function ae(t){return!/^\d+$/.test(t)}o(ae,"validateNumber");function ne(t){return!/^\d+px$/.test(t)}o(ne,"validateSizeInPixels");var Ve=zt();function Q(t){return Le(t.trim(),Ve)}o(Q,"textSanitizer");var z=new ze;function se(t){z.setData({quadrant1Text:Q(t.text)})}o(se,"setQuadrant1Text");function re(t){z.setData({quadrant2Text:Q(t.text)})}o(re,"setQuadrant2Text");function oe(t){z.setData({quadrant3Text:Q(t.text)})}o(oe,"setQuadrant3Text");function le(t){z.setData({quadrant4Text:Q(t.text)})}o(le,"setQuadrant4Text");function he(t){z.setData({xAxisLeftText:Q(t.text)})}o(he,"setXAxisLeftText");function ce(t){z.setData({xAxisRightText:Q(t.text)})}o(ce,"setXAxisRightText");function de(t){z.setData({yAxisTopText:Q(t.text)})}o(de,"setYAxisTopText");function ue(t){z.setData({yAxisBottomText:Q(t.text)})}o(ue,"setYAxisBottomText");function St(t){const n={};for(const f of t){const[d,h]=f.trim().split(/\s*:\s*/);if(d==="radius"){if(ae(h))throw new mt(d,h,"number");n.radius=parseInt(h)}else if(d==="color"){if(Dt(h))throw new mt(d,h,"hex code");n.color=h}else if(d==="stroke-color"){if(Dt(h))throw new mt(d,h,"hex code");n.strokeColor=h}else if(d==="stroke-width"){if(ne(h))throw new mt(d,h,"number of pixels (eg. 10px)");n.strokeWidth=h}else throw new Error(`style named ${d} is not supported.`)}return n}o(St,"parseStyles");function xe(t,n,f,d,h){const p=St(h);z.addPoints([{x:f,y:d,text:Q(t.text),className:n,...p}])}o(xe,"addPoint");function fe(t,n){z.addClass(t,St(n))}o(fe,"addClass");function ge(t){z.setConfig({chartWidth:t})}o(ge,"setWidth");function pe(t){z.setConfig({chartHeight:t})}o(pe,"setHeight");function ye(){const t=zt(),{themeVariables:n,quadrantChart:f}=t;return f&&z.setConfig(f),z.setThemeConfig({quadrant1Fill:n.quadrant1Fill,quadrant2Fill:n.quadrant2Fill,quadrant3Fill:n.quadrant3Fill,quadrant4Fill:n.quadrant4Fill,quadrant1TextFill:n.quadrant1TextFill,quadrant2TextFill:n.quadrant2TextFill,quadrant3TextFill:n.quadrant3TextFill,quadrant4TextFill:n.quadrant4TextFill,quadrantPointFill:n.quadrantPointFill,quadrantPointTextFill:n.quadrantPointTextFill,quadrantXAxisTextFill:n.quadrantXAxisTextFill,quadrantYAxisTextFill:n.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:n.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:n.quadrantInternalBorderStrokeFill,quadrantTitleFill:n.quadrantTitleFill}),z.setData({titleText:ie()}),z.build()}o(ye,"getQuadrantData");var Ie=o(function(){z.clear(),Ce()},"clear"),we={setWidth:ge,setHeight:pe,setQuadrant1Text:se,setQuadrant2Text:re,setQuadrant3Text:oe,setQuadrant4Text:le,setXAxisLeftText:he,setXAxisRightText:ce,setYAxisTopText:de,setYAxisBottomText:ue,parseStyles:St,addPoint:xe,addClass:fe,getQuadrantData:ye,clear:Ie,setAccTitle:Pe,getAccTitle:Fe,setDiagramTitle:ke,getDiagramTitle:ie,getAccDescription:Ae,setAccDescription:_e},Be=o((t,n,f,d)=>{function h(i){return i==="top"?"hanging":"middle"}o(h,"getDominantBaseLine");function p(i){return i==="left"?"start":"middle"}o(p,"getTextAnchor");function y(i){return`translate(${i.x}, ${i.y}) rotate(${i.rotation||0})`}o(y,"getTransformation");const _=zt();bt.debug(`Rendering quadrant chart
|
|
7
|
+
`+t);const a=_.securityLevel;let A;a==="sandbox"&&(A=Lt("#i"+n));const T=(a==="sandbox"?Lt(A.nodes()[0].contentDocument.body):Lt("body")).select(`[id="${n}"]`),q=T.append("g").attr("class","main"),m=_.quadrantChart?.chartWidth??500,b=_.quadrantChart?.chartHeight??500;ve(T,b,m,_.quadrantChart?.useMaxWidth??!0),T.attr("viewBox","0 0 "+m+" "+b),d.db.setHeight(b),d.db.setWidth(m);const g=d.db.getQuadrantData(),G=q.append("g").attr("class","quadrants"),ht=q.append("g").attr("class","border"),xt=q.append("g").attr("class","data-points"),ft=q.append("g").attr("class","labels"),gt=q.append("g").attr("class","title");g.title&>.append("text").attr("x",0).attr("y",0).attr("fill",g.title.fill).attr("font-size",g.title.fontSize).attr("dominant-baseline",h(g.title.horizontalPos)).attr("text-anchor",p(g.title.verticalPos)).attr("transform",y(g.title)).text(g.title.text),g.borderLines&&ht.selectAll("line").data(g.borderLines).enter().append("line").attr("x1",i=>i.x1).attr("y1",i=>i.y1).attr("x2",i=>i.x2).attr("y2",i=>i.y2).style("stroke",i=>i.strokeFill).style("stroke-width",i=>i.strokeWidth);const ct=G.selectAll("g.quadrant").data(g.quadrants).enter().append("g").attr("class","quadrant");ct.append("rect").attr("x",i=>i.x).attr("y",i=>i.y).attr("width",i=>i.width).attr("height",i=>i.height).attr("fill",i=>i.fill),ct.append("text").attr("x",0).attr("y",0).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text)).text(i=>i.text.text),ft.selectAll("g.label").data(g.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(i=>i.text).attr("fill",i=>i.fill).attr("font-size",i=>i.fontSize).attr("dominant-baseline",i=>h(i.horizontalPos)).attr("text-anchor",i=>p(i.verticalPos)).attr("transform",i=>y(i));const dt=xt.selectAll("g.data-point").data(g.points).enter().append("g").attr("class","data-point");dt.append("circle").attr("cx",i=>i.x).attr("cy",i=>i.y).attr("r",i=>i.radius).attr("fill",i=>i.fill).attr("stroke",i=>i.strokeColor).attr("stroke-width",i=>i.strokeWidth),dt.append("text").attr("x",0).attr("y",0).text(i=>i.text.text).attr("fill",i=>i.text.fill).attr("font-size",i=>i.text.fontSize).attr("dominant-baseline",i=>h(i.text.horizontalPos)).attr("text-anchor",i=>p(i.text.verticalPos)).attr("transform",i=>y(i.text))},"draw"),Re={draw:Be},He={parser:De,db:we,renderer:Re,styles:o(()=>"","styles")};export{He as diagram};
|