@mp-front/components 0.0.1-next-4 → 0.0.1-next-6
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/classNames-CN12fVA7.cjs +1 -0
- package/dist/{index-C3AiNKcY.js → classNames-EUcv3dqx.js} +174 -189
- package/dist/components/checkbox/checkbox.component.d.ts +2 -3
- package/dist/components/checkbox/checkbox.component.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.icon.d.ts +4 -0
- package/dist/components/checkbox/checkbox.icon.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.label.d.ts +10 -0
- package/dist/components/checkbox/checkbox.label.d.ts.map +1 -0
- package/dist/components/checkbox/checkbox.types.d.ts +5 -0
- package/dist/components/checkbox/checkbox.types.d.ts.map +1 -1
- package/dist/components/steps/steps.component.d.ts +1 -1
- package/dist/components/steps/steps.component.d.ts.map +1 -1
- package/dist/components/steps/steps.stories.d.ts +4 -0
- package/dist/components/steps/steps.stories.d.ts.map +1 -1
- package/dist/components/steps/steps.types.d.ts +2 -0
- package/dist/components/steps/steps.types.d.ts.map +1 -1
- package/dist/index-B2-I-g4_.js +18 -0
- package/dist/index-CFlnP8Em.cjs +1 -0
- package/dist/layout/content.component.d.ts.map +1 -1
- package/dist/ui-components-hooks.js +1 -1
- package/dist/ui-components-index.cjs +29 -33
- package/dist/ui-components-index.js +6746 -6721
- package/dist/ui-components-layout.cjs +39 -39
- package/dist/ui-components-layout.js +5658 -5617
- package/dist/ui-components-utils.cjs +1 -1
- package/dist/ui-components-utils.js +7 -6
- package/dist/{useTranslation-Cenukg7h.js → useTranslation-DlVfOUdM.js} +3 -3
- package/package.json +1 -1
- package/dist/index-Dm9rKIx2.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const pe=require("./index-BP9HuXkV.cjs"),_=require("react"),bs=require("react-dom"),Hg=require("./useTranslation-CnSCmJou.cjs");function ff(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=ff(_),ii=ff(bs);var Gg="Separator",Ul="horizontal",Wg=["horizontal","vertical"],pf=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=Ul,...o}=e,i=Xg(r)?r:Ul,c=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return pe.jsxRuntimeExports.jsx(pe.Primitive.div,{"data-orientation":i,...c,...o,ref:t})});pf.displayName=Gg;function Xg(e){return Wg.includes(e)}var Kg=pf;function hf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Yg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hf(e))&&(r&&(r+=" "),r+=t);return r}const ws="-",qg=e=>{const t=Qg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const i=o.split(ws);return i[0]===""&&i.length!==1&&i.shift(),mf(i,t)||Zg(o)},getConflictingClassGroupIds:(o,i)=>{const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}}},mf=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?mf(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(ws);return(n=t.validators.find(({validator:c})=>c(l)))==null?void 0:n.classGroupId},Hl=/^\[(.+)\]$/,Zg=e=>{if(Hl.test(e)){const t=Hl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Qg=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return e0(Object.entries(e.classGroups),n).forEach(([o,i])=>{Ta(i,r,o,t)}),r},Ta=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Gl(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(Jg(o)){Ta(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{Ta(l,Gl(t,i),n,r)})})},Gl=(e,t)=>{let n=e;return t.split(ws).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},Jg=e=>e.isThemeGetter,e0=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,c])=>[t+l,c])):i);return[n,o]}):e,t0=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}},vf="!",n0=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,l=c=>{const u=[];let s=0,a=0,d;for(let v=0;v<c.length;v++){let y=c[v];if(s===0){if(y===o&&(r||c.slice(v,v+i)===t)){u.push(c.slice(a,v)),a=v+i;continue}if(y==="/"){d=v;continue}}y==="["?s++:y==="]"&&s--}const f=u.length===0?c:c.substring(a),p=f.startsWith(vf),m=p?f.substring(1):f,h=d&&d>a?d-a:void 0;return{modifiers:u,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?c=>n({className:c,parseClassName:l}):l},r0=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},o0=e=>({cache:t0(e.cacheSize),parseClassName:n0(e),...qg(e)}),i0=/\s+/,a0=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(i0);let c="";for(let u=l.length-1;u>=0;u-=1){const s=l[u],{modifiers:a,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(s);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){c=s+(c.length>0?" "+c:c);continue}if(h=r(f),!h){c=s+(c.length>0?" "+c:c);continue}m=!1}const v=r0(a).join(":"),y=d?v+vf:v,b=y+h;if(i.includes(b))continue;i.push(b);const x=o(h,m);for(let S=0;S<x.length;++S){const E=x[S];i.push(y+E)}c=s+(c.length>0?" "+c:c)}return c};function s0(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=gf(t))&&(r&&(r+=" "),r+=n);return r}const gf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=gf(e[r]))&&(n&&(n+=" "),n+=t);return n};function l0(e,...t){let n,r,o,i=l;function l(u){const s=t.reduce((a,d)=>d(a),e());return n=o0(s),r=n.cache.get,o=n.cache.set,i=c,c(u)}function c(u){const s=r(u);if(s)return s;const a=a0(u,n);return o(u,a),a}return function(){return i(s0.apply(null,arguments))}}const fe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},yf=/^\[(?:([a-z-]+):)?(.+)\]$/i,u0=/^\d+\/\d+$/,c0=new Set(["px","full","screen"]),d0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,f0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,h0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>pn(e)||c0.has(e)||u0.test(e),yt=e=>En(e,"length",S0),pn=e=>!!e&&!Number.isNaN(Number(e)),Ui=e=>En(e,"number",pn),kn=e=>!!e&&Number.isInteger(Number(e)),v0=e=>e.endsWith("%")&&pn(e.slice(0,-1)),ie=e=>yf.test(e),bt=e=>d0.test(e),g0=new Set(["length","size","percentage"]),y0=e=>En(e,g0,bf),b0=e=>En(e,"position",bf),w0=new Set(["image","url"]),x0=e=>En(e,w0,_0),E0=e=>En(e,"",C0),Dn=()=>!0,En=(e,t,n)=>{const r=yf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},S0=e=>f0.test(e)&&!p0.test(e),bf=()=>!1,C0=e=>h0.test(e),_0=e=>m0.test(e),P0=()=>{const e=fe("colors"),t=fe("spacing"),n=fe("blur"),r=fe("brightness"),o=fe("borderColor"),i=fe("borderRadius"),l=fe("borderSpacing"),c=fe("borderWidth"),u=fe("contrast"),s=fe("grayscale"),a=fe("hueRotate"),d=fe("invert"),f=fe("gap"),p=fe("gradientColorStops"),m=fe("gradientColorStopPositions"),h=fe("inset"),v=fe("margin"),y=fe("opacity"),b=fe("padding"),x=fe("saturate"),S=fe("scale"),E=fe("sepia"),A=fe("skew"),j=fe("space"),O=fe("translate"),T=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ie,t],R=()=>[ie,t],$=()=>["",ft,yt],F=()=>["auto",pn,ie],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>["start","end","center","between","around","evenly","stretch"],L=()=>["","0",ie],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[pn,ie];return{cacheSize:500,separator:":",theme:{colors:[Dn],spacing:[ft,yt],blur:["none","",bt,ie],brightness:D(),borderColor:[e],borderRadius:["none","","full",bt,ie],borderSpacing:R(),borderWidth:$(),contrast:D(),grayscale:L(),hueRotate:D(),invert:L(),gap:R(),gradientColorStops:[e],gradientColorStopPositions:[v0,yt],inset:k(),margin:k(),opacity:D(),padding:R(),saturate:D(),scale:D(),sepia:L(),skew:D(),space:R(),translate:R()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),ie]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",kn,ie]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:L()}],shrink:[{shrink:L()}],order:[{order:["first","last","none",kn,ie]}],"grid-cols":[{"grid-cols":[Dn]}],"col-start-end":[{col:["auto",{span:["full",kn,ie]},ie]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Dn]}],"row-start-end":[{row:["auto",{span:[kn,ie]},ie]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...G()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...G(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...G(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[j]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[j]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ui]}],"font-family":[{font:[Dn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",pn,Ui]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,yt]}],"underline-offset":[{"underline-offset":["auto",ft,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),b0]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",y0]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},x0]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ft,ie]}],"outline-w":[{outline:[ft,yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ft,yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,E0]}],"shadow-color":[{shadow:[Dn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",bt,ie]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[E]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[E]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[kn,ie]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ft,yt,Ui]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},R0=l0(P0),he=(...e)=>R0(Yg(e)),gn=he,an=(e,t)=>`${e}-${t}`,O0=(e,t)=>t?[(t==null?void 0:t.sm)&&`sm:${an(e,t.sm)}`,(t==null?void 0:t.md)&&`md:${an(e,t.md)}`,(t==null?void 0:t.lg)&&`lg:${an(e,t.lg)}`,(t==null?void 0:t.xl)&&`xl:${an(e,t.xl)}`].filter(Boolean):[],Hi=(e,t)=>{const n=[];if(typeof t=="number"||typeof t=="string")n.push(an(e,t));else if(t&&t){const[r,o]=t;n.push(an(e,r)),n.push(...O0(e,o))}return n.join(" ")},T0=({className:e,...t})=>pe.jsxRuntimeExports.jsx("div",{className:gn("[&_svg]:w-40",e),...t}),j0=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.86879 5.11875C2.52504 3.25 4.28754 2 6.26879 2H25.7813C27.7625 2 29.525 3.25 30.1813 5.11875L31.3313 8.40625C32.0188 10.375 31.3938 12.4 30.025 13.6812V25.5063C30.025 27.9937 28.0125 30.0063 25.525 30.0063H6.52504C4.03754 30.0063 2.02504 27.9937 2.02504 25.5063V13.6812C0.656291 12.4 0.0312907 10.375 0.718791 8.40625L1.86879 5.11875ZM5.02504 14.9875V20H27.025V14.9875C26.9 14.9938 26.7813 15 26.6563 15C25.2938 15 24.0438 14.4437 23.1438 13.5437C22.2313 14.4437 20.9813 15 19.5875 15C18.2 15 16.9375 14.4375 16.025 13.5312C15.1125 14.4375 13.85 15 12.4625 15C11.0688 15 9.81879 14.4437 8.90629 13.5437C8.00629 14.45 6.76254 15 5.39379 15C5.26879 15 5.14379 14.9938 5.01879 14.9875H5.02504ZM10.8813 5L10.4063 9.73125C10.2875 10.9437 11.2375 12 12.4563 12C13.5938 12 14.5188 11.075 14.5188 9.9375V5H10.875H10.8813ZM17.525 9.9375C17.525 11.075 18.45 12 19.5875 12C20.8063 12 21.7625 10.9437 21.6375 9.73125L21.1625 5H17.5188V9.9375H17.525ZM24.7063 10.2375C24.8063 11.2375 25.65 12 26.65 12C28 12 28.9438 10.6687 28.4938 9.4L27.35 6.1125C27.1188 5.44375 26.4875 5 25.7813 5H24.1813L24.7063 10.2375ZM5.40004 12C6.40629 12 7.24379 11.2375 7.34379 10.2375L7.86879 5H6.26879C5.56254 5 4.93754 5.44375 4.70004 6.1125L3.55004 9.4C3.10629 10.675 4.05004 12 5.39379 12H5.40004ZM5.02504 25.5C5.02504 26.3312 5.69379 27 6.52504 27H25.525C26.3563 27 27.025 26.3312 27.025 25.5V23H5.02504V25.5Z"})),M0=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.7688 8.45C15.5563 7.80625 16.7125 7.85625 17.4438 8.5875L25.4438 16.5875C26.0188 17.1625 26.1875 18.0188 25.875 18.7688C25.5625 19.5188 24.8375 20 24.0313 20H8.03127C7.22502 20 6.49377 19.5125 6.18127 18.7625C5.86877 18.0125 6.04377 17.1563 6.61877 16.5875L14.6188 8.5875L14.7688 8.45Z"}));var Gi={exports:{}},Ln={};/**
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./index-BP9HuXkV.cjs"),gn=require("./classNames-CN12fVA7.cjs"),_=require("react"),ws=require("react-dom"),z0=require("./useTranslation-CnSCmJou.cjs");function ff(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const g=ff(_),oi=ff(ws);var U0="Separator",Hl="horizontal",H0=["horizontal","vertical"],pf=g.forwardRef((e,t)=>{const{decorative:n,orientation:r=Hl,...o}=e,i=W0(r)?r:Hl,u=n?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return he.jsxRuntimeExports.jsx(he.Primitive.div,{"data-orientation":i,...u,...o,ref:t})});pf.displayName=U0;function W0(e){return H0.includes(e)}var G0=pf;const X0=({className:e,...t})=>he.jsxRuntimeExports.jsx("div",{className:gn.cn("[&_svg]:w-40",e),...t}),K0=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M1.86879 5.11875C2.52504 3.25 4.28754 2 6.26879 2H25.7813C27.7625 2 29.525 3.25 30.1813 5.11875L31.3313 8.40625C32.0188 10.375 31.3938 12.4 30.025 13.6812V25.5063C30.025 27.9937 28.0125 30.0063 25.525 30.0063H6.52504C4.03754 30.0063 2.02504 27.9937 2.02504 25.5063V13.6812C0.656291 12.4 0.0312907 10.375 0.718791 8.40625L1.86879 5.11875ZM5.02504 14.9875V20H27.025V14.9875C26.9 14.9938 26.7813 15 26.6563 15C25.2938 15 24.0438 14.4437 23.1438 13.5437C22.2313 14.4437 20.9813 15 19.5875 15C18.2 15 16.9375 14.4375 16.025 13.5312C15.1125 14.4375 13.85 15 12.4625 15C11.0688 15 9.81879 14.4437 8.90629 13.5437C8.00629 14.45 6.76254 15 5.39379 15C5.26879 15 5.14379 14.9938 5.01879 14.9875H5.02504ZM10.8813 5L10.4063 9.73125C10.2875 10.9437 11.2375 12 12.4563 12C13.5938 12 14.5188 11.075 14.5188 9.9375V5H10.875H10.8813ZM17.525 9.9375C17.525 11.075 18.45 12 19.5875 12C20.8063 12 21.7625 10.9437 21.6375 9.73125L21.1625 5H17.5188V9.9375H17.525ZM24.7063 10.2375C24.8063 11.2375 25.65 12 26.65 12C28 12 28.9438 10.6687 28.4938 9.4L27.35 6.1125C27.1188 5.44375 26.4875 5 25.7813 5H24.1813L24.7063 10.2375ZM5.40004 12C6.40629 12 7.24379 11.2375 7.34379 10.2375L7.86879 5H6.26879C5.56254 5 4.93754 5.44375 4.70004 6.1125L3.55004 9.4C3.10629 10.675 4.05004 12 5.39379 12H5.40004ZM5.02504 25.5C5.02504 26.3312 5.69379 27 6.52504 27H25.525C26.3563 27 27.025 26.3312 27.025 25.5V23H5.02504V25.5Z"})),Y0=e=>g.createElement("svg",{height:"1em",width:"1em",fill:"currentColor",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M14.7688 8.45C15.5563 7.80625 16.7125 7.85625 17.4438 8.5875L25.4438 16.5875C26.0188 17.1625 26.1875 18.0188 25.875 18.7688C25.5625 19.5188 24.8375 20 24.0313 20H8.03127C7.22502 20 6.49377 19.5125 6.18127 18.7625C5.86877 18.0125 6.04377 17.1563 6.61877 16.5875L14.6188 8.5875L14.7688 8.45Z"}));var zi={exports:{}},kn={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var Wl;function
|
|
9
|
+
*/var Wl;function q0(){if(Wl)return kn;Wl=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var u in o)u!=="key"&&(i[u]=o[u])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:i}}return kn.Fragment=t,kn.jsx=n,kn.jsxs=n,kn}var Nr={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
17
|
+
*/var Gl;function Z0(){return Gl||(Gl=1,process.env.NODE_ENV!=="production"&&(function(){function e(S){if(S==null)return null;if(typeof S=="function")return S.$$typeof===W?null:S.displayName||S.name||null;if(typeof S=="string")return S;switch(S){case T:return"Fragment";case C:return"Portal";case j:return"Profiler";case A:return"StrictMode";case O:return"Suspense";case $:return"SuspenseList"}if(typeof S=="object")switch(typeof S.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),S.$$typeof){case P:return(S.displayName||"Context")+".Provider";case R:return(S._context.displayName||"Context")+".Consumer";case k:var Z=S.render;return S=S.displayName,S||(S=Z.displayName||Z.name||"",S=S!==""?"ForwardRef("+S+")":"ForwardRef"),S;case F:return Z=S.displayName||null,Z!==null?Z:e(S.type)||"Memo";case H:Z=S._payload,S=S._init;try{return e(S(Z))}catch{}}return null}function t(S){return""+S}function n(S){try{t(S);var Z=!1}catch{Z=!0}if(Z){Z=console;var Q=Z.error,le=typeof Symbol=="function"&&Symbol.toStringTag&&S[Symbol.toStringTag]||S.constructor.name||"Object";return Q.call(Z,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",le),t(S)}}function r(){}function o(){if(X===0){ne=console.log,te=console.info,V=console.warn,q=console.error,K=console.group,U=console.groupCollapsed,oe=console.groupEnd;var S={configurable:!0,enumerable:!0,value:r,writable:!0};Object.defineProperties(console,{info:S,log:S,warn:S,error:S,group:S,groupCollapsed:S,groupEnd:S})}X++}function i(){if(X--,X===0){var S={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},S,{value:ne}),info:D({},S,{value:te}),warn:D({},S,{value:V}),error:D({},S,{value:q}),group:D({},S,{value:K}),groupCollapsed:D({},S,{value:U}),groupEnd:D({},S,{value:oe})})}0>X&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function l(S){if(I===void 0)try{throw Error()}catch(Q){var Z=Q.stack.trim().match(/\n( *(at )?)/);I=Z&&Z[1]||"",fe=-1<Q.stack.indexOf(`
|
|
18
18
|
at`)?" (<anonymous>)":-1<Q.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
-
`+I+
|
|
19
|
+
`+I+S+fe}function u(S,Z){if(!S||ke)return"";var Q=Be.get(S);if(Q!==void 0)return Q;ke=!0,Q=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var le=null;le=N.H,N.H=null,o();try{var Re={DetermineComponentFrameRoot:function(){try{if(Z){var gt=function(){throw Error()};if(Object.defineProperty(gt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(gt,[])}catch(dt){var Dr=dt}Reflect.construct(S,[],gt)}else{try{gt.call()}catch(dt){Dr=dt}S.call(gt.prototype)}}else{try{throw Error()}catch(dt){Dr=dt}(gt=S())&&typeof gt.catch=="function"&>.catch(function(){})}}catch(dt){if(dt&&Dr&&typeof dt.stack=="string")return[dt.stack,Dr.stack]}return[null,null]}};Re.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var ve=Object.getOwnPropertyDescriptor(Re.DetermineComponentFrameRoot,"name");ve&&ve.configurable&&Object.defineProperty(Re.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var ae=Re.DetermineComponentFrameRoot(),ct=ae[0],en=ae[1];if(ct&&en){var Oe=ct.split(`
|
|
20
20
|
`),Ft=en.split(`
|
|
21
21
|
`);for(ae=ve=0;ve<Oe.length&&!Oe[ve].includes("DetermineComponentFrameRoot");)ve++;for(;ae<Ft.length&&!Ft[ae].includes("DetermineComponentFrameRoot");)ae++;if(ve===Oe.length||ae===Ft.length)for(ve=Oe.length-1,ae=Ft.length-1;1<=ve&&0<=ae&&Oe[ve]!==Ft[ae];)ae--;for(;1<=ve&&0<=ae;ve--,ae--)if(Oe[ve]!==Ft[ae]){if(ve!==1||ae!==1)do if(ve--,ae--,0>ae||Oe[ve]!==Ft[ae]){var An=`
|
|
22
|
-
`+Oe[ve].replace(" at new "," at ");return
|
|
22
|
+
`+Oe[ve].replace(" at new "," at ");return S.displayName&&An.includes("<anonymous>")&&(An=An.replace("<anonymous>",S.displayName)),typeof S=="function"&&Be.set(S,An),An}while(1<=ve&&0<=ae);break}}}finally{ke=!1,N.H=le,i(),Error.prepareStackTrace=Q}return Oe=(Oe=S?S.displayName||S.name:"")?l(Oe):"",typeof S=="function"&&Be.set(S,Oe),Oe}function c(S){if(S==null)return"";if(typeof S=="function"){var Z=S.prototype;return u(S,!(!Z||!Z.isReactComponent))}if(typeof S=="string")return l(S);switch(S){case O:return l("Suspense");case $:return l("SuspenseList")}if(typeof S=="object")switch(S.$$typeof){case k:return S=u(S.render,!1),S;case F:return c(S.type);case H:Z=S._payload,S=S._init;try{return c(S(Z))}catch{}}return""}function s(){var S=N.A;return S===null?null:S.getOwner()}function a(S){if(M.call(S,"key")){var Z=Object.getOwnPropertyDescriptor(S,"key").get;if(Z&&Z.isReactWarning)return!1}return S.key!==void 0}function d(S,Z){function Q(){Ar||(Ar=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",Z))}Q.isReactWarning=!0,Object.defineProperty(S,"key",{get:Q,configurable:!0})}function f(){var S=e(this.type);return kr[S]||(kr[S]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),S=this.props.ref,S!==void 0?S:null}function p(S,Z,Q,le,Re,ve){return Q=ve.ref,S={$$typeof:E,type:S,key:Z,props:ve,_owner:Re},(Q!==void 0?Q:null)!==null?Object.defineProperty(S,"ref",{enumerable:!1,get:f}):Object.defineProperty(S,"ref",{enumerable:!1,value:null}),S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(S,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S}function m(S,Z,Q,le,Re,ve){if(typeof S=="string"||typeof S=="function"||S===T||S===j||S===A||S===O||S===$||S===B||typeof S=="object"&&S!==null&&(S.$$typeof===H||S.$$typeof===F||S.$$typeof===P||S.$$typeof===R||S.$$typeof===k||S.$$typeof===ee||S.getModuleId!==void 0)){var ae=Z.children;if(ae!==void 0)if(le)if(J(ae)){for(le=0;le<ae.length;le++)h(ae[le],S);Object.freeze&&Object.freeze(ae)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else h(ae,S)}else ae="",(S===void 0||typeof S=="object"&&S!==null&&Object.keys(S).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),S===null?le="null":J(S)?le="array":S!==void 0&&S.$$typeof===E?(le="<"+(e(S.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):le=typeof S,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",le,ae);if(M.call(Z,"key")){ae=e(S);var ct=Object.keys(Z).filter(function(Oe){return Oe!=="key"});le=0<ct.length?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}",Lt[ae+le]||(ct=0<ct.length?"{"+ct.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
23
|
let props = %s;
|
|
24
24
|
<%s {...props} />
|
|
25
25
|
React keys must be passed directly to JSX without using spread:
|
|
26
26
|
let props = %s;
|
|
27
|
-
<%s key={someKey} {...props} />`,le,ae,ct,ae),
|
|
27
|
+
<%s key={someKey} {...props} />`,le,ae,ct,ae),Lt[ae+le]=!0)}if(ae=null,Q!==void 0&&(n(Q),ae=""+Q),a(Z)&&(n(Z.key),ae=""+Z.key),"key"in Z){Q={};for(var en in Z)en!=="key"&&(Q[en]=Z[en])}else Q=Z;return ae&&d(Q,typeof S=="function"?S.displayName||S.name||"Unknown":S),p(S,ae,ve,Re,s(),Q)}function h(S,Z){if(typeof S=="object"&&S&&S.$$typeof!==It){if(J(S))for(var Q=0;Q<S.length;Q++){var le=S[Q];v(le)&&y(le,Z)}else if(v(S))S._store&&(S._store.validated=1);else if(S===null||typeof S!="object"?Q=null:(Q=G&&S[G]||S["@@iterator"],Q=typeof Q=="function"?Q:null),typeof Q=="function"&&Q!==S.entries&&(Q=Q.call(S),Q!==S))for(;!(S=Q.next()).done;)v(S.value)&&y(S.value,Z)}}function v(S){return typeof S=="object"&&S!==null&&S.$$typeof===E}function y(S,Z){if(S._store&&!S._store.validated&&S.key==null&&(S._store.validated=1,Z=b(Z),!Ul[Z])){Ul[Z]=!0;var Q="";S&&S._owner!=null&&S._owner!==s()&&(Q=null,typeof S._owner.tag=="number"?Q=e(S._owner.type):typeof S._owner.name=="string"&&(Q=S._owner.name),Q=" It was passed a child from "+Q+".");var le=N.getCurrentStack;N.getCurrentStack=function(){var Re=c(S.type);return le&&(Re+=le()||""),Re},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',Z,Q),N.getCurrentStack=le}}function b(S){var Z="",Q=s();return Q&&(Q=e(Q.type))&&(Z=`
|
|
28
28
|
|
|
29
|
-
Check the render method of \``+Q+"`."),Z||(
|
|
29
|
+
Check the render method of \``+Q+"`."),Z||(S=e(S))&&(Z=`
|
|
30
30
|
|
|
31
|
-
Check the top-level render call using <`+C+">."),Z}var x=_,S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),P=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),X=Symbol.iterator,G=Symbol.for("react.client.reference"),L=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,D=Object.assign,ee=Symbol.for("react.client.reference"),J=Array.isArray,K=0,ne,te,V,q,Y,U,oe;r.__reactDisabledLog=!0;var I,de,ke=!1,Be=new(typeof WeakMap=="function"?WeakMap:Map),It=Symbol.for("react.client.reference"),kr,Dr={},Nt={},zl={};Ir.Fragment=A,Ir.jsx=function(C,Z,Q,le,Re){return m(C,Z,Q,!1,le,Re)},Ir.jsxs=function(C,Z,Q,le,Re){return m(C,Z,Q,!0,le,Re)}})()),Ir}var Kl;function D0(){return Kl||(Kl=1,process.env.NODE_ENV==="production"?Gi.exports=A0():Gi.exports=k0()),Gi.exports}var w=D0();function Yl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ai(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Yl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Yl(e[o],null)}}}}function re(...e){return g.useCallback(ai(...e),e)}function _t(e){const t=I0(e),n=g.forwardRef((r,o)=>{const{children:i,...l}=r,c=g.Children.toArray(i),u=c.find(F0);if(u){const s=u.props.children,a=c.map(d=>d===u?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:d);return w.jsx(t,{...l,ref:o,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return w.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var L0=_t("Slot");function I0(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const l=$0(o),c=V0(i,o.props);return o.type!==g.Fragment&&(c.ref=r?ai(r,l):l),g.cloneElement(o,c)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var wf=Symbol("radix.slottable");function N0(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=wf,t}function F0(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===wf}function V0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const c=i(...l);return o(...l),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function $0(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var B0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=B0.reduce((e,t)=>{const n=_t(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:l,...c}=o,u=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(u,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function xf(e,t){e&&ii.flushSync(()=>e.dispatchEvent(t))}var Se=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},z0="Portal",Ef=g.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[i,l]=g.useState(!1);Se(()=>l(!0),[]);const c=r||i&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return c?bs.createPortal(w.jsx(z.div,{...o,ref:t}),c):null});Ef.displayName=z0;const U0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_1359_16290)"},g.createElement("path",{d:"M13.422 5.75502L8.37215 10.8048C8.19178 10.9856 7.97752 11.129 7.74166 11.2268C7.50579 11.3246 7.25295 11.375 6.9976 11.375C6.74224 11.375 6.4894 11.3246 6.25353 11.2268C6.01767 11.129 5.80341 10.9856 5.62304 10.8048L0.573244 5.75502C-0.655085 4.52669 0.222293 2.42098 1.95755 2.42098L12.0571 2.42098C13.7924 2.42098 14.6503 4.52669 13.422 5.75502Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1359_16290"},g.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(14 14) rotate(-180)"})))),H0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 15 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M5.88995 10.1388L5.86646 10.1623L0 4.29579L1.91024 2.38556L5.89003 6.36536L12.2554 0L14.1656 1.91024L5.91352 10.1623L5.88995 10.1388Z",fill:"currentColor"})),G0=e=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",...e},g.createElement("path",{d:"M21.2805 18.736C20.7752 17.5392 20.0419 16.452 19.1216 15.5351C18.204 14.6156 17.117 13.8825 15.9207 13.3762C15.9099 13.3709 15.8992 13.3682 15.8885 13.3628C17.5573 12.1575 18.6421 10.1941 18.6421 7.97889C18.6421 4.30924 15.6689 1.33603 11.9992 1.33603C8.32959 1.33603 5.35637 4.30924 5.35637 7.97889C5.35637 10.1941 6.44119 12.1575 8.10994 13.3655C8.09923 13.3709 8.08852 13.3735 8.0778 13.3789C6.8778 13.8851 5.80102 14.611 4.87691 15.5378C3.95738 16.4554 3.22424 17.5424 2.71798 18.7387C2.22063 19.9099 1.9524 21.1656 1.9278 22.4378C1.92709 22.4664 1.9321 22.4948 1.94255 22.5215C1.953 22.5481 1.96867 22.5723 1.98864 22.5928C2.00861 22.6133 2.03247 22.6296 2.05883 22.6407C2.08518 22.6518 2.11349 22.6575 2.14209 22.6575H3.74923C3.86709 22.6575 3.96084 22.5637 3.96352 22.4485C4.01709 20.3807 4.84744 18.4441 6.3153 16.9762C7.83405 15.4575 9.85102 14.6217 11.9992 14.6217C14.1474 14.6217 16.1644 15.4575 17.6832 16.9762C19.151 18.4441 19.9814 20.3807 20.0349 22.4485C20.0376 22.5664 20.1314 22.6575 20.2492 22.6575H21.8564C21.885 22.6575 21.9133 22.6518 21.9396 22.6407C21.966 22.6296 21.9899 22.6133 22.0098 22.5928C22.0298 22.5723 22.0455 22.5481 22.0559 22.5215C22.0664 22.4948 22.0714 22.4664 22.0707 22.4378C22.0439 21.1575 21.7787 19.9119 21.2805 18.736ZM11.9992 12.586C10.7698 12.586 9.61262 12.1066 8.74209 11.236C7.87155 10.3655 7.39209 9.20835 7.39209 7.97889C7.39209 6.74942 7.87155 5.59228 8.74209 4.72174C9.61262 3.85121 10.7698 3.37174 11.9992 3.37174C13.2287 3.37174 14.3858 3.85121 15.2564 4.72174C16.1269 5.59228 16.6064 6.74942 16.6064 7.97889C16.6064 9.20835 16.1269 10.3655 15.2564 11.236C14.3858 12.1066 13.2287 12.586 11.9992 12.586Z"})),W0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_13053_6230)"},g.createElement("path",{d:"M7 0.875C3.61758 0.875 0.875 3.61758 0.875 7C0.875 10.3824 3.61758 13.125 7 13.125C10.3824 13.125 13.125 10.3824 13.125 7C13.125 3.61758 10.3824 0.875 7 0.875ZM9.26133 9.32695L8.35898 9.32285L7 7.70273L5.64238 9.32148L4.73867 9.32559C4.67852 9.32559 4.6293 9.27773 4.6293 9.21621C4.6293 9.19023 4.63887 9.16563 4.65527 9.14512L6.43398 7.02598L4.65527 4.9082C4.63875 4.88817 4.62959 4.86308 4.6293 4.83711C4.6293 4.77695 4.67852 4.72773 4.73867 4.72773L5.64238 4.73184L7 6.35195L8.35762 4.7332L9.25996 4.7291C9.32012 4.7291 9.36934 4.77695 9.36934 4.83848C9.36934 4.86445 9.35977 4.88906 9.34336 4.90957L7.56738 7.02734L9.34473 9.14648C9.36113 9.16699 9.3707 9.1916 9.3707 9.21758C9.3707 9.27773 9.32148 9.32695 9.26133 9.32695Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_13053_6230"},g.createElement("rect",{width:14,height:14,fill:"white"})))),X0=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("rect",{width:16,height:16,fill:"currentColor"}));function K0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sf=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"}),Y0="VisuallyHidden",Cf=g.forwardRef((e,t)=>w.jsx(z.span,{...e,ref:t,style:{...Sf,...e.style}}));Cf.displayName=Y0;var q0=Cf;function Z0(e,t){const n=g.createContext(t),r=i=>{const{children:l,...c}=i,u=g.useMemo(()=>c,Object.values(c));return w.jsx(n.Provider,{value:u,children:l})};r.displayName=e+"Provider";function o(i){const l=g.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function xe(e,t=[]){let n=[];function r(i,l){const c=g.createContext(l),u=n.length;n=[...n,l];const s=d=>{var f;const{scope:p,children:m,...h}=d,v=((f=p==null?void 0:p[e])==null?void 0:f[u])||c,y=g.useMemo(()=>h,Object.values(h));return w.jsx(v.Provider,{value:y,children:m})};s.displayName=i+"Provider";function a(d,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[u])||c,h=g.useContext(m);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[s,a]}const o=()=>{const i=n.map(l=>g.createContext(l));return function(l){const c=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:c}}),[l,c])}};return o.scopeName=e,[r,Q0(o,...t)]}function Q0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((l,{useScope:c,scopeName:u})=>{const s=c(o)[`__scope${u}`];return{...l,...s}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function cr(e){const t=e+"CollectionProvider",[n,r]=xe(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:v,children:y}=h,b=_.useRef(null),x=_.useRef(new Map).current;return w.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:y})};l.displayName=t;const c=e+"CollectionSlot",u=_t(c),s=_.forwardRef((h,v)=>{const{scope:y,children:b}=h,x=i(c,y),S=re(v,x.collectionRef);return w.jsx(u,{ref:S,children:b})});s.displayName=c;const a=e+"CollectionItemSlot",d="data-radix-collection-item",f=_t(a),p=_.forwardRef((h,v)=>{const{scope:y,children:b,...x}=h,S=_.useRef(null),E=re(v,S),A=i(a,y);return _.useEffect(()=>(A.itemMap.set(S,{ref:S,...x}),()=>void A.itemMap.delete(S))),w.jsx(f,{[d]:"",ref:E,children:b})});p.displayName=a;function m(h){const v=i(e+"CollectionConsumer",h);return _.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((x,S)=>b.indexOf(x.ref.current)-b.indexOf(S.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:l,Slot:s,ItemSlot:p},m,r]}function N(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var J0=g[" useInsertionEffect ".trim().toString()]||Se;function Fe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=ey({defaultProp:t,onChange:n}),c=e!==void 0,u=c?e:o;{const a=g.useRef(e!==void 0);g.useEffect(()=>{const d=a.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),a.current=c},[c,r])}const s=g.useCallback(a=>{var d;if(c){const f=ty(a)?a(e):a;f!==e&&((d=l.current)==null||d.call(l,f))}else i(a)},[c,e,i,l]);return[u,s]}function ey({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return J0(()=>{i.current=t},[t]),g.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function ty(e){return typeof e=="function"}function ny(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Ve=e=>{const{present:t,children:n}=e,r=ry(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=re(r.ref,oy(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};Ve.displayName="Presence";function ry(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[c,u]=ny(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const s=Nr(r.current);i.current=c==="mounted"?s:"none"},[c]),Se(()=>{const s=r.current,a=o.current;if(a!==e){const d=i.current,f=Nr(s);e?u("MOUNT"):f==="none"||(s==null?void 0:s.display)==="none"?u("UNMOUNT"):u(a&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,u]),Se(()=>{if(t){let s;const a=t.ownerDocument.defaultView??window,d=p=>{const m=Nr(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(u("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",s=a.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=p=>{p.target===t&&(i.current=Nr(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{a.clearTimeout(s),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:g.useCallback(s=>{r.current=s?getComputedStyle(s):null,n(s)},[])}}function Nr(e){return(e==null?void 0:e.animationName)||"none"}function oy(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var iy=g[" useId ".trim().toString()]||(()=>{}),ay=0;function qe(e){const[t,n]=g.useState(iy());return Se(()=>{n(r=>r??String(ay++))},[e]),t?`radix-${t}`:""}var si="Collapsible",[sy,_f]=xe(si),[ly,xs]=sy(si),Pf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...c}=e,[u,s]=Fe({prop:r,defaultProp:o??!1,onChange:l,caller:si});return w.jsx(ly,{scope:n,disabled:i,contentId:qe(),open:u,onOpenToggle:g.useCallback(()=>s(a=>!a),[s]),children:w.jsx(z.div,{"data-state":Ss(u),"data-disabled":i?"":void 0,...c,ref:t})})});Pf.displayName=si;var Rf="CollapsibleTrigger",Of=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=xs(Rf,n);return w.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ss(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:N(e.onClick,o.onOpenToggle)})});Of.displayName=Rf;var Es="CollapsibleContent",Tf=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=xs(Es,e.__scopeCollapsible);return w.jsx(Ve,{present:n||o.open,children:({present:i})=>w.jsx(uy,{...r,ref:t,present:i})})});Tf.displayName=Es;var uy=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=xs(Es,n),[c,u]=g.useState(r),s=g.useRef(null),a=re(t,s),d=g.useRef(0),f=d.current,p=g.useRef(0),m=p.current,h=l.open||c,v=g.useRef(h),y=g.useRef(void 0);return g.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),Se(()=>{const b=s.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();d.current=x.height,p.current=x.width,v.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),u(r)}},[l.open,r]),w.jsx(z.div,{"data-state":Ss(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...i,ref:a,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&o})});function Ss(e){return e?"open":"closed"}var cy=Pf,dy=Of,fy=Tf,py=g.createContext(void 0);function qt(e){const t=g.useContext(py);return e||t||"ltr"}var et="Accordion",hy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Cs,my,vy]=cr(et),[li]=xe(et,[vy,_f]),_s=_f(),gy=_.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return w.jsx(Cs.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?w.jsx(xy,{...i,ref:t}):w.jsx(wy,{...o,ref:t})})});gy.displayName=et;var[jf,yy]=li(et),[Mf,by]=li(et,{collapsible:!1}),wy=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[c,u]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:et});return w.jsx(jf,{scope:e.__scopeAccordion,value:_.useMemo(()=>c?[c]:[],[c]),onItemOpen:u,onItemClose:_.useCallback(()=>i&&u(""),[i,u]),children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:i,children:w.jsx(Af,{...l,ref:t})})})}),xy=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:et}),u=_.useCallback(a=>c((d=[])=>[...d,a]),[c]),s=_.useCallback(a=>c((d=[])=>d.filter(f=>f!==a)),[c]);return w.jsx(jf,{scope:e.__scopeAccordion,value:l,onItemOpen:u,onItemClose:s,children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:!0,children:w.jsx(Af,{...i,ref:t})})})}),[Ey,ui]=li(et),Af=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,c=_.useRef(null),u=re(c,t),s=my(n),a=qt(o)==="ltr",d=N(e.onKeyDown,f=>{var p;if(!hy.includes(f.key))return;const m=f.target,h=s().filter(O=>{var T;return!((T=O.ref.current)!=null&&T.disabled)}),v=h.findIndex(O=>O.ref.current===m),y=h.length;if(v===-1)return;f.preventDefault();let b=v;const x=0,S=y-1,E=()=>{b=v+1,b>S&&(b=x)},A=()=>{b=v-1,b<x&&(b=S)};switch(f.key){case"Home":b=x;break;case"End":b=S;break;case"ArrowRight":i==="horizontal"&&(a?E():A());break;case"ArrowDown":i==="vertical"&&E();break;case"ArrowLeft":i==="horizontal"&&(a?A():E());break;case"ArrowUp":i==="vertical"&&A();break}const j=b%y;(p=h[j].ref.current)==null||p.focus()});return w.jsx(Ey,{scope:n,disabled:r,direction:o,orientation:i,children:w.jsx(Cs.Slot,{scope:n,children:w.jsx(z.div,{...l,"data-orientation":i,ref:u,onKeyDown:r?void 0:d})})})}),Vo="AccordionItem",[Sy,Ps]=li(Vo),kf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=ui(Vo,n),l=yy(Vo,n),c=_s(n),u=qe(),s=r&&l.value.includes(r)||!1,a=i.disabled||e.disabled;return w.jsx(Sy,{scope:n,open:s,disabled:a,triggerId:u,children:w.jsx(cy,{"data-orientation":i.orientation,"data-state":Vf(s),...c,...o,ref:t,disabled:a,open:s,onOpenChange:d=>{d?l.onItemOpen(r):l.onItemClose(r)}})})});kf.displayName=Vo;var Df="AccordionHeader",Lf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(Df,n);return w.jsx(z.h3,{"data-orientation":o.orientation,"data-state":Vf(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Lf.displayName=Df;var ja="AccordionTrigger",If=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(ja,n),l=by(ja,n),c=_s(n);return w.jsx(Cs.ItemSlot,{scope:n,children:w.jsx(dy,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...c,...r,ref:t})})});If.displayName=ja;var Nf="AccordionContent",Ff=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=ui(et,n),i=Ps(Nf,n),l=_s(n);return w.jsx(fy,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ff.displayName=Nf;function Vf(e){return e?"open":"closed"}var Cy=kf,_y=Lf,Py=If,Ry=Ff;function Ze(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Oy(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ty="DismissableLayer",Ma="dismissableLayer.update",jy="dismissableLayer.pointerDownOutside",My="dismissableLayer.focusOutside",ql,$f=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sn=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:c,...u}=e,s=g.useContext($f),[a,d]=g.useState(null),f=(a==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),m=re(t,j=>d(j)),h=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=a?h.indexOf(a):-1,x=s.layersWithOutsidePointerEventsDisabled.size>0,S=b>=y,E=Dy(j=>{const O=j.target,T=[...s.branches].some(P=>P.contains(O));!S||T||(o==null||o(j),l==null||l(j),j.defaultPrevented||c==null||c())},f),A=Ly(j=>{const O=j.target;[...s.branches].some(T=>T.contains(O))||(i==null||i(j),l==null||l(j),j.defaultPrevented||c==null||c())},f);return Oy(j=>{b===s.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&c&&(j.preventDefault(),c()))},f),g.useEffect(()=>{if(a)return n&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(ql=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(a)),s.layers.add(a),Zl(),()=>{n&&s.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ql)}},[a,f,n,s]),g.useEffect(()=>()=>{a&&(s.layers.delete(a),s.layersWithOutsidePointerEventsDisabled.delete(a),Zl())},[a,s]),g.useEffect(()=>{const j=()=>p({});return document.addEventListener(Ma,j),()=>document.removeEventListener(Ma,j)},[]),w.jsx(z.div,{...u,ref:m,style:{pointerEvents:x?S?"auto":"none":void 0,...e.style},onFocusCapture:N(e.onFocusCapture,A.onFocusCapture),onBlurCapture:N(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:N(e.onPointerDownCapture,E.onPointerDownCapture)})});Sn.displayName=Ty;var Ay="DismissableLayerBranch",ky=g.forwardRef((e,t)=>{const n=g.useContext($f),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(z.div,{...e,ref:o})});ky.displayName=Ay;function Dy(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let u=function(){Bf(jy,n,s,{discrete:!0})};const s={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=u,t.addEventListener("click",o.current,{once:!0})):u()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Ly(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Bf(My,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zl(){const e=new CustomEvent(Ma);document.dispatchEvent(e)}function Bf(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?xf(o,i):o.dispatchEvent(i)}var Wi="focusScope.autoFocusOnMount",Xi="focusScope.autoFocusOnUnmount",Ql={bubbles:!1,cancelable:!0},Iy="FocusScope",dr=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[c,u]=g.useState(null),s=Ze(o),a=Ze(i),d=g.useRef(null),f=re(t,h=>u(h)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let h=function(x){if(p.paused||!c)return;const S=x.target;c.contains(S)?d.current=S:xt(d.current,{select:!0})},v=function(x){if(p.paused||!c)return;const S=x.relatedTarget;S!==null&&(c.contains(S)||xt(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&xt(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return c&&b.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,c,p.paused]),g.useEffect(()=>{if(c){eu.add(p);const h=document.activeElement;if(!c.contains(h)){const v=new CustomEvent(Wi,Ql);c.addEventListener(Wi,s),c.dispatchEvent(v),v.defaultPrevented||(Ny(zy(zf(c)),{select:!0}),document.activeElement===h&&xt(c))}return()=>{c.removeEventListener(Wi,s),setTimeout(()=>{const v=new CustomEvent(Xi,Ql);c.addEventListener(Xi,a),c.dispatchEvent(v),v.defaultPrevented||xt(h??document.body,{select:!0}),c.removeEventListener(Xi,a),eu.remove(p)},0)}}},[c,s,a,p]);const m=g.useCallback(h=>{if(!n&&!r||p.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[x,S]=Fy(b);x&&S?!h.shiftKey&&y===S?(h.preventDefault(),n&&xt(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&xt(S,{select:!0})):y===b&&h.preventDefault()}},[n,r,p.paused]);return w.jsx(z.div,{tabIndex:-1,...l,ref:f,onKeyDown:m})});dr.displayName=Iy;function Ny(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xt(r,{select:t}),document.activeElement!==n)return}function Fy(e){const t=zf(e),n=Jl(t,e),r=Jl(t.reverse(),e);return[n,r]}function zf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Jl(e,t){for(const n of e)if(!Vy(n,{upTo:t}))return n}function Vy(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function $y(e){return e instanceof HTMLInputElement&&"select"in e}function xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$y(e)&&t&&e.select()}}var eu=By();function By(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=tu(e,t),e.unshift(t)},remove(t){var n;e=tu(e,t),(n=e[0])==null||n.resume()}}}function tu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zy(e){return e.filter(t=>t.tagName!=="A")}var Ki=0;function ci(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??nu()),document.body.insertAdjacentElement("beforeend",e[1]??nu()),Ki++,()=>{Ki===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Ki--}},[])}function nu(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Uf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Uy(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Mo="right-scroll-bar-position",Ao="width-before-scroll-bar",Hy="with-scroll-bars-hidden",Gy="--removed-body-scroll-bar-size";function Yi(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wy(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Xy=typeof window<"u"?g.useLayoutEffect:g.useEffect,ru=new WeakMap;function Ky(e,t){var n=Wy(null,function(r){return e.forEach(function(o){return Yi(o,r)})});return Xy(function(){var r=ru.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(c){i.has(c)||Yi(c,null)}),i.forEach(function(c){o.has(c)||Yi(c,l)})}ru.set(n,e)},[e]),n}function Yy(e){return e}function qy(e,t){t===void 0&&(t=Yy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(i),l=n}var u=function(){var a=l;l=[],a.forEach(i)},s=function(){return Promise.resolve().then(u)};s(),n={push:function(a){l.push(a),s()},filter:function(a){return l=l.filter(a),n}}}};return o}function Zy(e){e===void 0&&(e={});var t=qy(null);return t.options=tt({async:!0,ssr:!1},e),t}var Hf=function(e){var t=e.sideCar,n=Uf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,tt({},n))};Hf.isSideCarExport=!0;function Qy(e,t){return e.useMedium(t),Hf}var Gf=Zy(),qi=function(){},di=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:qi,onWheelCapture:qi,onTouchMoveCapture:qi}),o=r[0],i=r[1],l=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,a=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,S=Uf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=f,A=Ky([n,t]),j=tt(tt({},S),o);return g.createElement(g.Fragment,null,a&&g.createElement(E,{sideCar:Gf,removeScrollBar:s,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),l?g.cloneElement(g.Children.only(c),tt(tt({},j),{ref:A})):g.createElement(b,tt({},j,{className:u,ref:A}),c))});di.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};di.classNames={fullWidth:Ao,zeroRight:Mo};var Jy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function e1(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Jy();return t&&e.setAttribute("nonce",t),e}function t1(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function n1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var r1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=e1())&&(t1(t,n),n1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},o1=function(){var e=r1();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Wf=function(){var e=o1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},i1={left:0,top:0,right:0,gap:0},Zi=function(e){return parseInt(e||"",10)||0},a1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Zi(n),Zi(r),Zi(o)]},s1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return i1;var t=a1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},l1=Wf(),hn="data-scroll-locked",u1=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
-
.`.concat(
|
|
31
|
+
Check the top-level render call using <`+S+">."),Z}var x=_,E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),P=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),B=Symbol.for("react.offscreen"),G=Symbol.iterator,W=Symbol.for("react.client.reference"),N=x.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,D=Object.assign,ee=Symbol.for("react.client.reference"),J=Array.isArray,X=0,ne,te,V,q,K,U,oe;r.__reactDisabledLog=!0;var I,fe,ke=!1,Be=new(typeof WeakMap=="function"?WeakMap:Map),It=Symbol.for("react.client.reference"),Ar,kr={},Lt={},Ul={};Nr.Fragment=T,Nr.jsx=function(S,Z,Q,le,Re){return m(S,Z,Q,!1,le,Re)},Nr.jsxs=function(S,Z,Q,le,Re){return m(S,Z,Q,!0,le,Re)}})()),Nr}var Xl;function Q0(){return Xl||(Xl=1,process.env.NODE_ENV==="production"?zi.exports=q0():zi.exports=Z0()),zi.exports}var w=Q0();function Kl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ii(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Kl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Kl(e[o],null)}}}}function re(...e){return g.useCallback(ii(...e),e)}function _t(e){const t=eg(e),n=g.forwardRef((r,o)=>{const{children:i,...l}=r,u=g.Children.toArray(i),c=u.find(ng);if(c){const s=c.props.children,a=u.map(d=>d===c?g.Children.count(s)>1?g.Children.only(null):g.isValidElement(s)?s.props.children:null:d);return w.jsx(t,{...l,ref:o,children:g.isValidElement(s)?g.cloneElement(s,void 0,a):null})}return w.jsx(t,{...l,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var J0=_t("Slot");function eg(e){const t=g.forwardRef((n,r)=>{const{children:o,...i}=n;if(g.isValidElement(o)){const l=og(o),u=rg(i,o.props);return o.type!==g.Fragment&&(u.ref=r?ii(r,l):l),g.cloneElement(o,u)}return g.Children.count(o)>1?g.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hf=Symbol("radix.slottable");function tg(e){const t=({children:n})=>w.jsx(w.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=hf,t}function ng(e){return g.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hf}function rg(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const u=i(...l);return o(...l),u}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function og(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var ig=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],z=ig.reduce((e,t)=>{const n=_t(`Primitive.${t}`),r=g.forwardRef((o,i)=>{const{asChild:l,...u}=o,c=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(c,{...u,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function mf(e,t){e&&oi.flushSync(()=>e.dispatchEvent(t))}var Ce=globalThis!=null&&globalThis.document?g.useLayoutEffect:()=>{},ag="Portal",vf=g.forwardRef((e,t)=>{var n;const{container:r,...o}=e,[i,l]=g.useState(!1);Ce(()=>l(!0),[]);const u=r||i&&((n=globalThis==null?void 0:globalThis.document)==null?void 0:n.body);return u?ws.createPortal(w.jsx(z.div,{...o,ref:t}),u):null});vf.displayName=ag;function gf(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=gf(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function sg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gf(e))&&(r&&(r+=" "),r+=t);return r}const xs="-",lg=e=>{const t=cg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{const i=o.split(xs);return i[0]===""&&i.length!==1&&i.shift(),yf(i,t)||ug(o)},getConflictingClassGroupIds:(o,i)=>{const l=n[o]||[];return i&&r[o]?[...l,...r[o]]:l}}},yf=(e,t)=>{var n;if(e.length===0)return t.classGroupId;const r=e[0],o=t.nextPart.get(r),i=o?yf(e.slice(1),o):void 0;if(i)return i;if(t.validators.length===0)return;const l=e.join(xs);return(n=t.validators.find(({validator:u})=>u(l)))==null?void 0:n.classGroupId},Yl=/^\[(.+)\]$/,ug=e=>{if(Yl.test(e)){const t=Yl.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},cg=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return fg(Object.entries(e.classGroups),n).forEach(([o,i])=>{Ta(i,r,o,t)}),r},Ta=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:ql(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(dg(o)){Ta(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,l])=>{Ta(l,ql(t,i),n,r)})})},ql=(e,t)=>{let n=e;return t.split(xs).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},dg=e=>e.isThemeGetter,fg=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([l,u])=>[t+l,u])):i);return[n,o]}):e,pg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,l)=>{n.set(i,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let l=n.get(i);if(l!==void 0)return l;if((l=r.get(i))!==void 0)return o(i,l),l},set(i,l){n.has(i)?n.set(i,l):o(i,l)}}},bf="!",hg=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,l=u=>{const c=[];let s=0,a=0,d;for(let v=0;v<u.length;v++){let y=u[v];if(s===0){if(y===o&&(r||u.slice(v,v+i)===t)){c.push(u.slice(a,v)),a=v+i;continue}if(y==="/"){d=v;continue}}y==="["?s++:y==="]"&&s--}const f=c.length===0?u:u.substring(a),p=f.startsWith(bf),m=p?f.substring(1):f,h=d&&d>a?d-a:void 0;return{modifiers:c,hasImportantModifier:p,baseClassName:m,maybePostfixModifierPosition:h}};return n?u=>n({className:u,parseClassName:l}):l},mg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},vg=e=>({cache:pg(e.cacheSize),parseClassName:hg(e),...lg(e)}),gg=/\s+/,yg=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],l=e.trim().split(gg);let u="";for(let c=l.length-1;c>=0;c-=1){const s=l[c],{modifiers:a,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:p}=n(s);let m=!!p,h=r(m?f.substring(0,p):f);if(!h){if(!m){u=s+(u.length>0?" "+u:u);continue}if(h=r(f),!h){u=s+(u.length>0?" "+u:u);continue}m=!1}const v=mg(a).join(":"),y=d?v+bf:v,b=y+h;if(i.includes(b))continue;i.push(b);const x=o(h,m);for(let E=0;E<x.length;++E){const C=x[E];i.push(y+C)}u=s+(u.length>0?" "+u:u)}return u};function bg(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=wf(t))&&(r&&(r+=" "),r+=n);return r}const wf=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=wf(e[r]))&&(n&&(n+=" "),n+=t);return n};function wg(e,...t){let n,r,o,i=l;function l(c){const s=t.reduce((a,d)=>d(a),e());return n=vg(s),r=n.cache.get,o=n.cache.set,i=u,u(c)}function u(c){const s=r(c);if(s)return s;const a=yg(c,n);return o(c,a),a}return function(){return i(bg.apply(null,arguments))}}const pe=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},xf=/^\[(?:([a-z-]+):)?(.+)\]$/i,xg=/^\d+\/\d+$/,Eg=new Set(["px","full","screen"]),Cg=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Sg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,_g=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Pg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Rg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>pn(e)||Eg.has(e)||xg.test(e),yt=e=>En(e,"length",Ng),pn=e=>!!e&&!Number.isNaN(Number(e)),Ui=e=>En(e,"number",pn),Dn=e=>!!e&&Number.isInteger(Number(e)),Og=e=>e.endsWith("%")&&pn(e.slice(0,-1)),ie=e=>xf.test(e),bt=e=>Cg.test(e),Tg=new Set(["length","size","percentage"]),jg=e=>En(e,Tg,Ef),Mg=e=>En(e,"position",Ef),Ag=new Set(["image","url"]),kg=e=>En(e,Ag,Lg),Dg=e=>En(e,"",Ig),Nn=()=>!0,En=(e,t,n)=>{const r=xf.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Ng=e=>Sg.test(e)&&!_g.test(e),Ef=()=>!1,Ig=e=>Pg.test(e),Lg=e=>Rg.test(e),Fg=()=>{const e=pe("colors"),t=pe("spacing"),n=pe("blur"),r=pe("brightness"),o=pe("borderColor"),i=pe("borderRadius"),l=pe("borderSpacing"),u=pe("borderWidth"),c=pe("contrast"),s=pe("grayscale"),a=pe("hueRotate"),d=pe("invert"),f=pe("gap"),p=pe("gradientColorStops"),m=pe("gradientColorStopPositions"),h=pe("inset"),v=pe("margin"),y=pe("opacity"),b=pe("padding"),x=pe("saturate"),E=pe("scale"),C=pe("sepia"),T=pe("skew"),A=pe("space"),j=pe("translate"),R=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto",ie,t],O=()=>[ie,t],$=()=>["",ft,yt],F=()=>["auto",pn,ie],H=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",ie],M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>[pn,ie];return{cacheSize:500,separator:":",theme:{colors:[Nn],spacing:[ft,yt],blur:["none","",bt,ie],brightness:D(),borderColor:[e],borderRadius:["none","","full",bt,ie],borderSpacing:O(),borderWidth:$(),contrast:D(),grayscale:N(),hueRotate:D(),invert:N(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[Og,yt],inset:k(),margin:k(),opacity:D(),padding:O(),saturate:D(),scale:D(),sepia:N(),skew:D(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[bt]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...H(),ie]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Dn,ie]}],basis:[{basis:k()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Dn,ie]}],"grid-cols":[{"grid-cols":[Nn]}],"col-start-end":[{col:["auto",{span:["full",Dn,ie]},ie]}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":[Nn]}],"row-start-end":[{row:["auto",{span:[Dn,ie]},ie]}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...W()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...W(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...W(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[v]}],mx:[{mx:[v]}],my:[{my:[v]}],ms:[{ms:[v]}],me:[{me:[v]}],mt:[{mt:[v]}],mr:[{mr:[v]}],mb:[{mb:[v]}],ml:[{ml:[v]}],"space-x":[{"space-x":[A]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[A]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[bt]},bt]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",bt,yt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ui]}],"font-family":[{font:[Nn]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",pn,Ui]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ft,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",ft,yt]}],"underline-offset":[{"underline-offset":["auto",ft,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...H(),Mg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",jg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},kg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[u]}],"border-w-x":[{"border-x":[u]}],"border-w-y":[{"border-y":[u]}],"border-w-s":[{"border-s":[u]}],"border-w-e":[{"border-e":[u]}],"border-w-t":[{"border-t":[u]}],"border-w-r":[{"border-r":[u]}],"border-w-b":[{"border-b":[u]}],"border-w-l":[{"border-l":[u]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[u]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[u]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[ft,ie]}],"outline-w":[{outline:[ft,yt]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[ft,yt]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",bt,Dg]}],"shadow-color":[{shadow:[Nn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",bt,ie]}],grayscale:[{grayscale:[s]}],"hue-rotate":[{"hue-rotate":[a]}],invert:[{invert:[d]}],saturate:[{saturate:[x]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[s]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[a]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:D()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:D()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Dn,ie]}],"translate-x":[{"translate-x":[j]}],"translate-y":[{"translate-y":[j]}],"skew-x":[{"skew-x":[T]}],"skew-y":[{"skew-y":[T]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[ft,yt,Ui]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Vg=wg(Fg),me=(...e)=>Vg(sg(e)),$g=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_1359_16290)"},g.createElement("path",{d:"M13.422 5.75502L8.37215 10.8048C8.19178 10.9856 7.97752 11.129 7.74166 11.2268C7.50579 11.3246 7.25295 11.375 6.9976 11.375C6.74224 11.375 6.4894 11.3246 6.25353 11.2268C6.01767 11.129 5.80341 10.9856 5.62304 10.8048L0.573244 5.75502C-0.655085 4.52669 0.222293 2.42098 1.95755 2.42098L12.0571 2.42098C13.7924 2.42098 14.6503 4.52669 13.422 5.75502Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_1359_16290"},g.createElement("rect",{width:14,height:14,fill:"white",transform:"translate(14 14) rotate(-180)"})))),Bg=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 15 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("path",{d:"M5.88995 10.1388L5.86646 10.1623L0 4.29579L1.91024 2.38556L5.89003 6.36536L12.2554 0L14.1656 1.91024L5.91352 10.1623L5.88995 10.1388Z",fill:"currentColor"})),zg=e=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"currentColor",viewBox:"0 0 24 24",...e},g.createElement("path",{d:"M21.2805 18.736C20.7752 17.5392 20.0419 16.452 19.1216 15.5351C18.204 14.6156 17.117 13.8825 15.9207 13.3762C15.9099 13.3709 15.8992 13.3682 15.8885 13.3628C17.5573 12.1575 18.6421 10.1941 18.6421 7.97889C18.6421 4.30924 15.6689 1.33603 11.9992 1.33603C8.32959 1.33603 5.35637 4.30924 5.35637 7.97889C5.35637 10.1941 6.44119 12.1575 8.10994 13.3655C8.09923 13.3709 8.08852 13.3735 8.0778 13.3789C6.8778 13.8851 5.80102 14.611 4.87691 15.5378C3.95738 16.4554 3.22424 17.5424 2.71798 18.7387C2.22063 19.9099 1.9524 21.1656 1.9278 22.4378C1.92709 22.4664 1.9321 22.4948 1.94255 22.5215C1.953 22.5481 1.96867 22.5723 1.98864 22.5928C2.00861 22.6133 2.03247 22.6296 2.05883 22.6407C2.08518 22.6518 2.11349 22.6575 2.14209 22.6575H3.74923C3.86709 22.6575 3.96084 22.5637 3.96352 22.4485C4.01709 20.3807 4.84744 18.4441 6.3153 16.9762C7.83405 15.4575 9.85102 14.6217 11.9992 14.6217C14.1474 14.6217 16.1644 15.4575 17.6832 16.9762C19.151 18.4441 19.9814 20.3807 20.0349 22.4485C20.0376 22.5664 20.1314 22.6575 20.2492 22.6575H21.8564C21.885 22.6575 21.9133 22.6518 21.9396 22.6407C21.966 22.6296 21.9899 22.6133 22.0098 22.5928C22.0298 22.5723 22.0455 22.5481 22.0559 22.5215C22.0664 22.4948 22.0714 22.4664 22.0707 22.4378C22.0439 21.1575 21.7787 19.9119 21.2805 18.736ZM11.9992 12.586C10.7698 12.586 9.61262 12.1066 8.74209 11.236C7.87155 10.3655 7.39209 9.20835 7.39209 7.97889C7.39209 6.74942 7.87155 5.59228 8.74209 4.72174C9.61262 3.85121 10.7698 3.37174 11.9992 3.37174C13.2287 3.37174 14.3858 3.85121 15.2564 4.72174C16.1269 5.59228 16.6064 6.74942 16.6064 7.97889C16.6064 9.20835 16.1269 10.3655 15.2564 11.236C14.3858 12.1066 13.2287 12.586 11.9992 12.586Z"})),Ug=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("g",{clipPath:"url(#clip0_13053_6230)"},g.createElement("path",{d:"M7 0.875C3.61758 0.875 0.875 3.61758 0.875 7C0.875 10.3824 3.61758 13.125 7 13.125C10.3824 13.125 13.125 10.3824 13.125 7C13.125 3.61758 10.3824 0.875 7 0.875ZM9.26133 9.32695L8.35898 9.32285L7 7.70273L5.64238 9.32148L4.73867 9.32559C4.67852 9.32559 4.6293 9.27773 4.6293 9.21621C4.6293 9.19023 4.63887 9.16563 4.65527 9.14512L6.43398 7.02598L4.65527 4.9082C4.63875 4.88817 4.62959 4.86308 4.6293 4.83711C4.6293 4.77695 4.67852 4.72773 4.73867 4.72773L5.64238 4.73184L7 6.35195L8.35762 4.7332L9.25996 4.7291C9.32012 4.7291 9.36934 4.77695 9.36934 4.83848C9.36934 4.86445 9.35977 4.88906 9.34336 4.90957L7.56738 7.02734L9.34473 9.14648C9.36113 9.16699 9.3707 9.1916 9.3707 9.21758C9.3707 9.27773 9.32148 9.32695 9.26133 9.32695Z"})),g.createElement("defs",null,g.createElement("clipPath",{id:"clip0_13053_6230"},g.createElement("rect",{width:14,height:14,fill:"white"})))),Hg=e=>g.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},g.createElement("rect",{width:16,height:16,fill:"currentColor"})),an=(e,t)=>`${e}-${t}`,Wg=(e,t)=>t?[(t==null?void 0:t.sm)&&`sm:${an(e,t.sm)}`,(t==null?void 0:t.md)&&`md:${an(e,t.md)}`,(t==null?void 0:t.lg)&&`lg:${an(e,t.lg)}`,(t==null?void 0:t.xl)&&`xl:${an(e,t.xl)}`].filter(Boolean):[],Hi=(e,t)=>{const n=[];if(typeof t=="number"||typeof t=="string")n.push(an(e,t));else if(t&&t){const[r,o]=t;n.push(an(e,r)),n.push(...Wg(e,o))}return n.join(" ")};function Gg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cf=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"}),Xg="VisuallyHidden",Sf=g.forwardRef((e,t)=>w.jsx(z.span,{...e,ref:t,style:{...Cf,...e.style}}));Sf.displayName=Xg;var Kg=Sf;function Yg(e,t){const n=g.createContext(t),r=i=>{const{children:l,...u}=i,c=g.useMemo(()=>u,Object.values(u));return w.jsx(n.Provider,{value:c,children:l})};r.displayName=e+"Provider";function o(i){const l=g.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function xe(e,t=[]){let n=[];function r(i,l){const u=g.createContext(l),c=n.length;n=[...n,l];const s=d=>{var f;const{scope:p,children:m,...h}=d,v=((f=p==null?void 0:p[e])==null?void 0:f[c])||u,y=g.useMemo(()=>h,Object.values(h));return w.jsx(v.Provider,{value:y,children:m})};s.displayName=i+"Provider";function a(d,f){var p;const m=((p=f==null?void 0:f[e])==null?void 0:p[c])||u,h=g.useContext(m);if(h)return h;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[s,a]}const o=()=>{const i=n.map(l=>g.createContext(l));return function(l){const u=(l==null?void 0:l[e])||i;return g.useMemo(()=>({[`__scope${e}`]:{...l,[e]:u}}),[l,u])}};return o.scopeName=e,[r,qg(o,...t)]}function qg(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const i=r.reduce((l,{useScope:u,scopeName:c})=>{const s=u(o)[`__scope${c}`];return{...l,...s}},{});return g.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function ur(e){const t=e+"CollectionProvider",[n,r]=xe(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=h=>{const{scope:v,children:y}=h,b=_.useRef(null),x=_.useRef(new Map).current;return w.jsx(o,{scope:v,itemMap:x,collectionRef:b,children:y})};l.displayName=t;const u=e+"CollectionSlot",c=_t(u),s=_.forwardRef((h,v)=>{const{scope:y,children:b}=h,x=i(u,y),E=re(v,x.collectionRef);return w.jsx(c,{ref:E,children:b})});s.displayName=u;const a=e+"CollectionItemSlot",d="data-radix-collection-item",f=_t(a),p=_.forwardRef((h,v)=>{const{scope:y,children:b,...x}=h,E=_.useRef(null),C=re(v,E),T=i(a,y);return _.useEffect(()=>(T.itemMap.set(E,{ref:E,...x}),()=>void T.itemMap.delete(E))),w.jsx(f,{[d]:"",ref:C,children:b})});p.displayName=a;function m(h){const v=i(e+"CollectionConsumer",h);return _.useCallback(()=>{const y=v.collectionRef.current;if(!y)return[];const b=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(v.itemMap.values()).sort((x,E)=>b.indexOf(x.ref.current)-b.indexOf(E.ref.current))},[v.collectionRef,v.itemMap])}return[{Provider:l,Slot:s,ItemSlot:p},m,r]}function L(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e==null||e(r),n===!1||!r.defaultPrevented)return t==null?void 0:t(r)}}var Zg=g[" useInsertionEffect ".trim().toString()]||Ce;function Fe({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,l]=Qg({defaultProp:t,onChange:n}),u=e!==void 0,c=u?e:o;{const a=g.useRef(e!==void 0);g.useEffect(()=>{const d=a.current;d!==u&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),a.current=u},[u,r])}const s=g.useCallback(a=>{var d;if(u){const f=Jg(a)?a(e):a;f!==e&&((d=l.current)==null||d.call(l,f))}else i(a)},[u,e,i,l]);return[c,s]}function Qg({defaultProp:e,onChange:t}){const[n,r]=g.useState(e),o=g.useRef(n),i=g.useRef(t);return Zg(()=>{i.current=t},[t]),g.useEffect(()=>{var l;o.current!==n&&((l=i.current)==null||l.call(i,n),o.current=n)},[n,o]),[n,r,i]}function Jg(e){return typeof e=="function"}function ey(e,t){return g.useReducer((n,r)=>t[n][r]??n,e)}var Ve=e=>{const{present:t,children:n}=e,r=ty(t),o=typeof n=="function"?n({present:r.isPresent}):g.Children.only(n),i=re(r.ref,ny(o));return typeof n=="function"||r.isPresent?g.cloneElement(o,{ref:i}):null};Ve.displayName="Presence";function ty(e){const[t,n]=g.useState(),r=g.useRef(null),o=g.useRef(e),i=g.useRef("none"),l=e?"mounted":"unmounted",[u,c]=ey(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return g.useEffect(()=>{const s=Ir(r.current);i.current=u==="mounted"?s:"none"},[u]),Ce(()=>{const s=r.current,a=o.current;if(a!==e){const d=i.current,f=Ir(s);e?c("MOUNT"):f==="none"||(s==null?void 0:s.display)==="none"?c("UNMOUNT"):c(a&&d!==f?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ce(()=>{if(t){let s;const a=t.ownerDocument.defaultView??window,d=p=>{const m=Ir(r.current).includes(CSS.escape(p.animationName));if(p.target===t&&m&&(c("ANIMATION_END"),!o.current)){const h=t.style.animationFillMode;t.style.animationFillMode="forwards",s=a.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=h)})}},f=p=>{p.target===t&&(i.current=Ir(r.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{a.clearTimeout(s),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:g.useCallback(s=>{r.current=s?getComputedStyle(s):null,n(s)},[])}}function Ir(e){return(e==null?void 0:e.animationName)||"none"}function ny(e){var t,n;let r=(t=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=(n=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}var ry=g[" useId ".trim().toString()]||(()=>{}),oy=0;function qe(e){const[t,n]=g.useState(ry());return Ce(()=>{n(r=>r??String(oy++))},[e]),t?`radix-${t}`:""}var ai="Collapsible",[iy,_f]=xe(ai),[ay,Es]=iy(ai),Pf=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:o,disabled:i,onOpenChange:l,...u}=e,[c,s]=Fe({prop:r,defaultProp:o??!1,onChange:l,caller:ai});return w.jsx(ay,{scope:n,disabled:i,contentId:qe(),open:c,onOpenToggle:g.useCallback(()=>s(a=>!a),[s]),children:w.jsx(z.div,{"data-state":Ss(c),"data-disabled":i?"":void 0,...u,ref:t})})});Pf.displayName=ai;var Rf="CollapsibleTrigger",Of=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,o=Es(Rf,n);return w.jsx(z.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Ss(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:L(e.onClick,o.onOpenToggle)})});Of.displayName=Rf;var Cs="CollapsibleContent",Tf=g.forwardRef((e,t)=>{const{forceMount:n,...r}=e,o=Es(Cs,e.__scopeCollapsible);return w.jsx(Ve,{present:n||o.open,children:({present:i})=>w.jsx(sy,{...r,ref:t,present:i})})});Tf.displayName=Cs;var sy=g.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:o,...i}=e,l=Es(Cs,n),[u,c]=g.useState(r),s=g.useRef(null),a=re(t,s),d=g.useRef(0),f=d.current,p=g.useRef(0),m=p.current,h=l.open||u,v=g.useRef(h),y=g.useRef(void 0);return g.useEffect(()=>{const b=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(b)},[]),Ce(()=>{const b=s.current;if(b){y.current=y.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const x=b.getBoundingClientRect();d.current=x.height,p.current=x.width,v.current||(b.style.transitionDuration=y.current.transitionDuration,b.style.animationName=y.current.animationName),c(r)}},[l.open,r]),w.jsx(z.div,{"data-state":Ss(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!h,...i,ref:a,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&o})});function Ss(e){return e?"open":"closed"}var ly=Pf,uy=Of,cy=Tf,dy=g.createContext(void 0);function qt(e){const t=g.useContext(dy);return e||t||"ltr"}var et="Accordion",fy=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_s,py,hy]=ur(et),[si]=xe(et,[hy,_f]),Ps=_f(),my=_.forwardRef((e,t)=>{const{type:n,...r}=e,o=r,i=r;return w.jsx(_s.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?w.jsx(by,{...i,ref:t}):w.jsx(yy,{...o,ref:t})})});my.displayName=et;var[jf,vy]=si(et),[Mf,gy]=si(et,{collapsible:!1}),yy=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},collapsible:i=!1,...l}=e,[u,c]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:et});return w.jsx(jf,{scope:e.__scopeAccordion,value:_.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:_.useCallback(()=>i&&c(""),[i,c]),children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:i,children:w.jsx(Af,{...l,ref:t})})})}),by=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,u]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:et}),c=_.useCallback(a=>u((d=[])=>[...d,a]),[u]),s=_.useCallback(a=>u((d=[])=>d.filter(f=>f!==a)),[u]);return w.jsx(jf,{scope:e.__scopeAccordion,value:l,onItemOpen:c,onItemClose:s,children:w.jsx(Mf,{scope:e.__scopeAccordion,collapsible:!0,children:w.jsx(Af,{...i,ref:t})})})}),[wy,li]=si(et),Af=_.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:o,orientation:i="vertical",...l}=e,u=_.useRef(null),c=re(u,t),s=py(n),a=qt(o)==="ltr",d=L(e.onKeyDown,f=>{var p;if(!fy.includes(f.key))return;const m=f.target,h=s().filter(j=>{var R;return!((R=j.ref.current)!=null&&R.disabled)}),v=h.findIndex(j=>j.ref.current===m),y=h.length;if(v===-1)return;f.preventDefault();let b=v;const x=0,E=y-1,C=()=>{b=v+1,b>E&&(b=x)},T=()=>{b=v-1,b<x&&(b=E)};switch(f.key){case"Home":b=x;break;case"End":b=E;break;case"ArrowRight":i==="horizontal"&&(a?C():T());break;case"ArrowDown":i==="vertical"&&C();break;case"ArrowLeft":i==="horizontal"&&(a?T():C());break;case"ArrowUp":i==="vertical"&&T();break}const A=b%y;(p=h[A].ref.current)==null||p.focus()});return w.jsx(wy,{scope:n,disabled:r,direction:o,orientation:i,children:w.jsx(_s.Slot,{scope:n,children:w.jsx(z.div,{...l,"data-orientation":i,ref:c,onKeyDown:r?void 0:d})})})}),Fo="AccordionItem",[xy,Rs]=si(Fo),kf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...o}=e,i=li(Fo,n),l=vy(Fo,n),u=Ps(n),c=qe(),s=r&&l.value.includes(r)||!1,a=i.disabled||e.disabled;return w.jsx(xy,{scope:n,open:s,disabled:a,triggerId:c,children:w.jsx(ly,{"data-orientation":i.orientation,"data-state":Vf(s),...u,...o,ref:t,disabled:a,open:s,onOpenChange:d=>{d?l.onItemOpen(r):l.onItemClose(r)}})})});kf.displayName=Fo;var Df="AccordionHeader",Nf=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=li(et,n),i=Rs(Df,n);return w.jsx(z.h3,{"data-orientation":o.orientation,"data-state":Vf(i.open),"data-disabled":i.disabled?"":void 0,...r,ref:t})});Nf.displayName=Df;var ja="AccordionTrigger",If=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=li(et,n),i=Rs(ja,n),l=gy(ja,n),u=Ps(n);return w.jsx(_s.ItemSlot,{scope:n,children:w.jsx(uy,{"aria-disabled":i.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:i.triggerId,...u,...r,ref:t})})});If.displayName=ja;var Lf="AccordionContent",Ff=_.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,o=li(et,n),i=Rs(Lf,n),l=Ps(n);return w.jsx(cy,{role:"region","aria-labelledby":i.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});Ff.displayName=Lf;function Vf(e){return e?"open":"closed"}var Ey=kf,Cy=Nf,Sy=If,_y=Ff;function Ze(e){const t=g.useRef(e);return g.useEffect(()=>{t.current=e}),g.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Py(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);g.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Ry="DismissableLayer",Ma="dismissableLayer.update",Oy="dismissableLayer.pointerDownOutside",Ty="dismissableLayer.focusOutside",Zl,$f=g.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Cn=g.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...c}=e,s=g.useContext($f),[a,d]=g.useState(null),f=(a==null?void 0:a.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=g.useState({}),m=re(t,A=>d(A)),h=Array.from(s.layers),[v]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=h.indexOf(v),b=a?h.indexOf(a):-1,x=s.layersWithOutsidePointerEventsDisabled.size>0,E=b>=y,C=Ay(A=>{const j=A.target,R=[...s.branches].some(P=>P.contains(j));!E||R||(o==null||o(A),l==null||l(A),A.defaultPrevented||u==null||u())},f),T=ky(A=>{const j=A.target;[...s.branches].some(R=>R.contains(j))||(i==null||i(A),l==null||l(A),A.defaultPrevented||u==null||u())},f);return Py(A=>{b===s.layers.size-1&&(r==null||r(A),!A.defaultPrevented&&u&&(A.preventDefault(),u()))},f),g.useEffect(()=>{if(a)return n&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Zl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(a)),s.layers.add(a),Ql(),()=>{n&&s.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Zl)}},[a,f,n,s]),g.useEffect(()=>()=>{a&&(s.layers.delete(a),s.layersWithOutsidePointerEventsDisabled.delete(a),Ql())},[a,s]),g.useEffect(()=>{const A=()=>p({});return document.addEventListener(Ma,A),()=>document.removeEventListener(Ma,A)},[]),w.jsx(z.div,{...c,ref:m,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:L(e.onFocusCapture,T.onFocusCapture),onBlurCapture:L(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:L(e.onPointerDownCapture,C.onPointerDownCapture)})});Cn.displayName=Ry;var jy="DismissableLayerBranch",My=g.forwardRef((e,t)=>{const n=g.useContext($f),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),w.jsx(z.div,{...e,ref:o})});My.displayName=jy;function Ay(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1),o=g.useRef(()=>{});return g.useEffect(()=>{const i=u=>{if(u.target&&!r.current){let c=function(){Bf(Oy,n,s,{discrete:!0})};const s={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function ky(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),r=g.useRef(!1);return g.useEffect(()=>{const o=i=>{i.target&&!r.current&&Bf(Ty,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ql(){const e=new CustomEvent(Ma);document.dispatchEvent(e)}function Bf(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?mf(o,i):o.dispatchEvent(i)}var Wi="focusScope.autoFocusOnMount",Gi="focusScope.autoFocusOnUnmount",Jl={bubbles:!1,cancelable:!0},Dy="FocusScope",cr=g.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,c]=g.useState(null),s=Ze(o),a=Ze(i),d=g.useRef(null),f=re(t,h=>c(h)),p=g.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;g.useEffect(()=>{if(r){let h=function(x){if(p.paused||!u)return;const E=x.target;u.contains(E)?d.current=E:xt(d.current,{select:!0})},v=function(x){if(p.paused||!u)return;const E=x.relatedTarget;E!==null&&(u.contains(E)||xt(d.current,{select:!0}))},y=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&xt(u)};document.addEventListener("focusin",h),document.addEventListener("focusout",v);const b=new MutationObserver(y);return u&&b.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",v),b.disconnect()}}},[r,u,p.paused]),g.useEffect(()=>{if(u){tu.add(p);const h=document.activeElement;if(!u.contains(h)){const v=new CustomEvent(Wi,Jl);u.addEventListener(Wi,s),u.dispatchEvent(v),v.defaultPrevented||(Ny($y(zf(u)),{select:!0}),document.activeElement===h&&xt(u))}return()=>{u.removeEventListener(Wi,s),setTimeout(()=>{const v=new CustomEvent(Gi,Jl);u.addEventListener(Gi,a),u.dispatchEvent(v),v.defaultPrevented||xt(h??document.body,{select:!0}),u.removeEventListener(Gi,a),tu.remove(p)},0)}}},[u,s,a,p]);const m=g.useCallback(h=>{if(!n&&!r||p.paused)return;const v=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,y=document.activeElement;if(v&&y){const b=h.currentTarget,[x,E]=Iy(b);x&&E?!h.shiftKey&&y===E?(h.preventDefault(),n&&xt(x,{select:!0})):h.shiftKey&&y===x&&(h.preventDefault(),n&&xt(E,{select:!0})):y===b&&h.preventDefault()}},[n,r,p.paused]);return w.jsx(z.div,{tabIndex:-1,...l,ref:f,onKeyDown:m})});cr.displayName=Dy;function Ny(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xt(r,{select:t}),document.activeElement!==n)return}function Iy(e){const t=zf(e),n=eu(t,e),r=eu(t.reverse(),e);return[n,r]}function zf(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eu(e,t){for(const n of e)if(!Ly(n,{upTo:t}))return n}function Ly(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Fy(e){return e instanceof HTMLInputElement&&"select"in e}function xt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Fy(e)&&t&&e.select()}}var tu=Vy();function Vy(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=nu(e,t),e.unshift(t)},remove(t){var n;e=nu(e,t),(n=e[0])==null||n.resume()}}}function nu(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function $y(e){return e.filter(t=>t.tagName!=="A")}var Xi=0;function ui(){g.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ru()),document.body.insertAdjacentElement("beforeend",e[1]??ru()),Xi++,()=>{Xi===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Xi--}},[])}function ru(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var tt=function(){return tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},tt.apply(this,arguments)};function Uf(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function By(e,t,n){for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var jo="right-scroll-bar-position",Mo="width-before-scroll-bar",zy="with-scroll-bars-hidden",Uy="--removed-body-scroll-bar-size";function Ki(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Hy(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Wy=typeof window<"u"?g.useLayoutEffect:g.useEffect,ou=new WeakMap;function Gy(e,t){var n=Hy(null,function(r){return e.forEach(function(o){return Ki(o,r)})});return Wy(function(){var r=ou.get(n);if(r){var o=new Set(r),i=new Set(e),l=n.current;o.forEach(function(u){i.has(u)||Ki(u,null)}),i.forEach(function(u){o.has(u)||Ki(u,l)})}ou.set(n,e)},[e]),n}function Xy(e){return e}function Ky(e,t){t===void 0&&(t=Xy);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,r);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(r=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){r=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var c=function(){var a=l;l=[],a.forEach(i)},s=function(){return Promise.resolve().then(c)};s(),n={push:function(a){l.push(a),s()},filter:function(a){return l=l.filter(a),n}}}};return o}function Yy(e){e===void 0&&(e={});var t=Ky(null);return t.options=tt({async:!0,ssr:!1},e),t}var Hf=function(e){var t=e.sideCar,n=Uf(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return g.createElement(r,tt({},n))};Hf.isSideCarExport=!0;function qy(e,t){return e.useMedium(t),Hf}var Wf=Yy(),Yi=function(){},ci=g.forwardRef(function(e,t){var n=g.useRef(null),r=g.useState({onScrollCapture:Yi,onWheelCapture:Yi,onTouchMoveCapture:Yi}),o=r[0],i=r[1],l=e.forwardProps,u=e.children,c=e.className,s=e.removeScrollBar,a=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,v=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,x=e.gapMode,E=Uf(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=f,T=Gy([n,t]),A=tt(tt({},E),o);return g.createElement(g.Fragment,null,a&&g.createElement(C,{sideCar:Wf,removeScrollBar:s,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:x}),l?g.cloneElement(g.Children.only(u),tt(tt({},A),{ref:T})):g.createElement(b,tt({},A,{className:c,ref:T}),u))});ci.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ci.classNames={fullWidth:Mo,zeroRight:jo};var Zy=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Qy(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Zy();return t&&e.setAttribute("nonce",t),e}function Jy(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function e1(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var t1=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Qy())&&(Jy(t,n),e1(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},n1=function(){var e=t1();return function(t,n){g.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Gf=function(){var e=n1(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},r1={left:0,top:0,right:0,gap:0},qi=function(e){return parseInt(e||"",10)||0},o1=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[qi(n),qi(r),qi(o)]},i1=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return r1;var t=o1(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},a1=Gf(),hn="data-scroll-locked",s1=function(e,t,n,r){var o=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
|
|
32
|
+
.`.concat(zy,` {
|
|
33
33
|
overflow: hidden `).concat(r,`;
|
|
34
|
-
padding-right: `).concat(
|
|
34
|
+
padding-right: `).concat(u,"px ").concat(r,`;
|
|
35
35
|
}
|
|
36
36
|
body[`).concat(hn,`] {
|
|
37
37
|
overflow: hidden `).concat(r,`;
|
|
@@ -42,37 +42,37 @@ Check the top-level render call using <`+C+">."),Z}var x=_,S=Symbol.for("react.t
|
|
|
42
42
|
padding-right: `).concat(l,`px;
|
|
43
43
|
margin-left:0;
|
|
44
44
|
margin-top:0;
|
|
45
|
-
margin-right: `).concat(
|
|
46
|
-
`),n==="padding"&&"padding-right: ".concat(
|
|
45
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
46
|
+
`),n==="padding"&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
.`).concat(
|
|
50
|
-
right: `).concat(
|
|
49
|
+
.`).concat(jo,` {
|
|
50
|
+
right: `).concat(u,"px ").concat(r,`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
.`).concat(
|
|
54
|
-
margin-right: `).concat(
|
|
53
|
+
.`).concat(Mo,` {
|
|
54
|
+
margin-right: `).concat(u,"px ").concat(r,`;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.`).concat(
|
|
57
|
+
.`).concat(jo," .").concat(jo,` {
|
|
58
58
|
right: 0 `).concat(r,`;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.`).concat(
|
|
61
|
+
.`).concat(Mo," .").concat(Mo,` {
|
|
62
62
|
margin-right: 0 `).concat(r,`;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
body[`).concat(hn,`] {
|
|
66
|
-
`).concat(
|
|
66
|
+
`).concat(Uy,": ").concat(u,`px;
|
|
67
67
|
}
|
|
68
|
-
`)},
|
|
68
|
+
`)},iu=function(){var e=parseInt(document.body.getAttribute(hn)||"0",10);return isFinite(e)?e:0},l1=function(){g.useEffect(function(){return document.body.setAttribute(hn,(iu()+1).toString()),function(){var e=iu()-1;e<=0?document.body.removeAttribute(hn):document.body.setAttribute(hn,e.toString())}},[])},u1=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;l1();var i=g.useMemo(function(){return i1(o)},[o]);return g.createElement(a1,{styles:s1(i,!t,o,n?"":"!important")})},Aa=!1;if(typeof window<"u")try{var Lr=Object.defineProperty({},"passive",{get:function(){return Aa=!0,!0}});window.addEventListener("test",Lr,Lr),window.removeEventListener("test",Lr,Lr)}catch{Aa=!1}var tn=Aa?{passive:!1}:!1,c1=function(e){return e.tagName==="TEXTAREA"},Xf=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!c1(e)&&n[t]==="visible")},d1=function(e){return Xf(e,"overflowY")},f1=function(e){return Xf(e,"overflowX")},au=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Kf(e,r);if(o){var i=Yf(e,r),l=i[1],u=i[2];if(l>u)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},p1=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},h1=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Kf=function(e,t){return e==="v"?d1(t):f1(t)},Yf=function(e,t){return e==="v"?p1(t):h1(t)},m1=function(e,t){return e==="h"&&t==="rtl"?-1:1},v1=function(e,t,n,r,o){var i=m1(e,window.getComputedStyle(t).direction),l=i*r,u=n.target,c=t.contains(u),s=!1,a=l>0,d=0,f=0;do{if(!u)break;var p=Yf(e,u),m=p[0],h=p[1],v=p[2],y=h-v-i*m;(m||y)&&Kf(e,u)&&(d+=y,f+=m);var b=u.parentNode;u=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!c&&u!==document.body||c&&(t.contains(u)||t===u));return(a&&Math.abs(d)<1||!a&&Math.abs(f)<1)&&(s=!0),s},Fr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},su=function(e){return[e.deltaX,e.deltaY]},lu=function(e){return e&&"current"in e?e.current:e},g1=function(e,t){return e[0]===t[0]&&e[1]===t[1]},y1=function(e){return`
|
|
69
69
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
70
70
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
71
|
-
`)},
|
|
71
|
+
`)},b1=0,nn=[];function w1(e){var t=g.useRef([]),n=g.useRef([0,0]),r=g.useRef(),o=g.useState(b1++)[0],i=g.useState(Gf)[0],l=g.useRef(e);g.useEffect(function(){l.current=e},[e]),g.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=By([e.lockRef.current],(e.shards||[]).map(lu)).filter(Boolean);return h.forEach(function(v){return v.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(v){return v.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=g.useCallback(function(h,v){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!l.current.allowPinchZoom;var y=Fr(h),b=n.current,x="deltaX"in h?h.deltaX:b[0]-y[0],E="deltaY"in h?h.deltaY:b[1]-y[1],C,T=h.target,A=Math.abs(x)>Math.abs(E)?"h":"v";if("touches"in h&&A==="h"&&T.type==="range")return!1;var j=window.getSelection(),R=j&&j.anchorNode,P=R?R===T||R.contains(T):!1;if(P)return!1;var k=au(A,T);if(!k)return!0;if(k?C=A:(C=A==="v"?"h":"v",k=au(A,T)),!k)return!1;if(!r.current&&"changedTouches"in h&&(x||E)&&(r.current=C),!C)return!0;var O=r.current||C;return v1(O,v,h,O==="h"?x:E)},[]),c=g.useCallback(function(h){var v=h;if(!(!nn.length||nn[nn.length-1]!==i)){var y="deltaY"in v?su(v):Fr(v),b=t.current.filter(function(C){return C.name===v.type&&(C.target===v.target||v.target===C.shadowParent)&&g1(C.delta,y)})[0];if(b&&b.should){v.cancelable&&v.preventDefault();return}if(!b){var x=(l.current.shards||[]).map(lu).filter(Boolean).filter(function(C){return C.contains(v.target)}),E=x.length>0?u(v,x[0]):!l.current.noIsolation;E&&v.cancelable&&v.preventDefault()}}},[]),s=g.useCallback(function(h,v,y,b){var x={name:h,delta:v,target:y,should:b,shadowParent:x1(y)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(E){return E!==x})},1)},[]),a=g.useCallback(function(h){n.current=Fr(h),r.current=void 0},[]),d=g.useCallback(function(h){s(h.type,su(h),h.target,u(h,e.lockRef.current))},[]),f=g.useCallback(function(h){s(h.type,Fr(h),h.target,u(h,e.lockRef.current))},[]);g.useEffect(function(){return nn.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,tn),document.addEventListener("touchmove",c,tn),document.addEventListener("touchstart",a,tn),function(){nn=nn.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,tn),document.removeEventListener("touchmove",c,tn),document.removeEventListener("touchstart",a,tn)}},[]);var p=e.removeScrollBar,m=e.inert;return g.createElement(g.Fragment,null,m?g.createElement(i,{styles:y1(o)}):null,p?g.createElement(u1,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function x1(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const E1=qy(Wf,w1);var dr=g.forwardRef(function(e,t){return g.createElement(ci,tt({},e,{ref:t,sideCar:E1}))});dr.classNames=ci.classNames;var C1=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},rn=new WeakMap,Vr=new WeakMap,$r={},Zi=0,qf=function(e){return e&&(e.host||qf(e.parentNode))},S1=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=qf(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_1=function(e,t,n,r){var o=S1(t,Array.isArray(e)?e:[e]);$r[n]||($r[n]=new WeakMap);var i=$r[n],l=[],u=new Set,c=new Set(o),s=function(d){!d||u.has(d)||(u.add(d),s(d.parentNode))};o.forEach(s);var a=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(u.has(f))a(f);else try{var p=f.getAttribute(r),m=p!==null&&p!=="false",h=(rn.get(f)||0)+1,v=(i.get(f)||0)+1;rn.set(f,h),i.set(f,v),l.push(f),h===1&&m&&Vr.set(f,!0),v===1&&f.setAttribute(n,"true"),m||f.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",f,y)}})};return a(t),u.clear(),Zi++,function(){l.forEach(function(d){var f=rn.get(d)-1,p=i.get(d)-1;rn.set(d,f),i.set(d,p),f||(Vr.has(d)||d.removeAttribute(r),Vr.delete(d)),p||d.removeAttribute(n)}),Zi--,Zi||(rn=new WeakMap,rn=new WeakMap,Vr=new WeakMap,$r={})}},di=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=C1(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),_1(r,o,n,"aria-hidden")):function(){return null}},Zf="Dialog",[Qf]=xe(Zf),[Z2,lt]=Qf(Zf),Jf="DialogTrigger",P1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Jf,n),i=re(t,o.triggerRef);return w.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Ts(o.open),...r,ref:i,onClick:L(e.onClick,o.onOpenToggle)})});P1.displayName=Jf;var R1="DialogPortal",[Q2,ep]=Qf(R1,{forceMount:void 0}),Vo="DialogOverlay",O1=g.forwardRef((e,t)=>{const n=ep(Vo,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt(Vo,e.__scopeDialog);return i.modal?w.jsx(Ve,{present:r||i.open,children:w.jsx(j1,{...o,ref:t})}):null});O1.displayName=Vo;var T1=_t("DialogOverlay.RemoveScroll"),j1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Vo,n);return w.jsx(dr,{as:T1,allowPinchZoom:!0,shards:[o.contentRef],children:w.jsx(z.div,{"data-state":Ts(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Gt="DialogContent",M1=g.forwardRef((e,t)=>{const n=ep(Gt,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=lt(Gt,e.__scopeDialog);return w.jsx(Ve,{present:r||i.open,children:i.modal?w.jsx(A1,{...o,ref:t}):w.jsx(k1,{...o,ref:t})})});M1.displayName=Gt;var A1=g.forwardRef((e,t)=>{const n=lt(Gt,e.__scopeDialog),r=g.useRef(null),o=re(t,n.contentRef,r);return g.useEffect(()=>{const i=r.current;if(i)return di(i)},[]),w.jsx(tp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,i=>{var l;i.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,i=>{const l=i.detail.originalEvent,u=l.button===0&&l.ctrlKey===!0;(l.button===2||u)&&i.preventDefault()}),onFocusOutside:L(e.onFocusOutside,i=>i.preventDefault())})}),k1=g.forwardRef((e,t)=>{const n=lt(Gt,e.__scopeDialog),r=g.useRef(!1),o=g.useRef(!1);return w.jsx(tp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,u;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;(u=n.triggerRef.current)!=null&&u.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),tp=g.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,u=lt(Gt,n),c=g.useRef(null),s=re(t,c);return ui(),w.jsxs(w.Fragment,{children:[w.jsx(cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Cn,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Ts(u.open),...l,ref:s,onDismiss:()=>u.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(L1,{titleId:u.titleId}),w.jsx(V1,{contentRef:c,descriptionId:u.descriptionId})]})]})}),Os="DialogTitle",D1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(Os,n);return w.jsx(z.h2,{id:o.titleId,...r,ref:t})});D1.displayName=Os;var np="DialogDescription",N1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(np,n);return w.jsx(z.p,{id:o.descriptionId,...r,ref:t})});N1.displayName=np;var rp="DialogClose",I1=g.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=lt(rp,n);return w.jsx(z.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});I1.displayName=rp;function Ts(e){return e?"open":"closed"}var op="DialogTitleWarning",[J2,ip]=Yg(op,{contentName:Gt,titleName:Os,docsSlug:"dialog"}),L1=({titleId:e})=>{const t=ip(op),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
72
72
|
|
|
73
73
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
74
74
|
|
|
75
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null}
|
|
75
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return g.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},F1="DialogDescriptionWarning",V1=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ip(F1).contentName}}.`;return g.useEffect(()=>{var r;const o=(r=e.current)==null?void 0:r.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},Qi={exports:{}},Ji={};/**
|
|
76
76
|
* @license React
|
|
77
77
|
* use-sync-external-store-shim.production.js
|
|
78
78
|
*
|
|
@@ -80,7 +80,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
80
80
|
*
|
|
81
81
|
* This source code is licensed under the MIT license found in the
|
|
82
82
|
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/var
|
|
83
|
+
*/var uu;function $1(){if(uu)return Ji;uu=1;var e=_;function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function u(d,f){var p=f(),m=r({inst:{value:p,getSnapshot:f}}),h=m[0].inst,v=m[1];return i(function(){h.value=p,h.getSnapshot=f,c(h)&&v({inst:h})},[d,p,f]),o(function(){return c(h)&&v({inst:h}),d(function(){c(h)&&v({inst:h})})},[d]),l(p),p}function c(d){var f=d.getSnapshot;d=d.value;try{var p=f();return!n(d,p)}catch{return!0}}function s(d,f){return f()}var a=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?s:u;return Ji.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:a,Ji}var cu={};/**
|
|
84
84
|
* @license React
|
|
85
85
|
* use-sync-external-store-shim.development.js
|
|
86
86
|
*
|
|
@@ -88,48 +88,48 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the MIT license found in the
|
|
90
90
|
* LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/var cu;function U1(){return cu||(cu=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){a||o.startTransition===void 0||(a=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!d){var v=m();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=l({inst:{value:h,getSnapshot:m}});var y=v[0].inst,b=v[1];return u(function(){y.value=h,y.getSnapshot=m,n(y)&&b({inst:y})},[p,h,m]),c(function(){return n(y)&&b({inst:y}),p(function(){n(y)&&b({inst:y})})},[p]),s(h),h}function n(p){var m=p.getSnapshot;p=p.value;try{var h=m();return!i(p,h)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=_,i=typeof Object.is=="function"?Object.is:e,l=o.useState,c=o.useEffect,u=o.useLayoutEffect,s=o.useDebugValue,a=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;uu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),uu}var du;function H1(){return du||(du=1,process.env.NODE_ENV==="production"?Ji.exports=z1():Ji.exports=U1()),Ji.exports}var G1=H1();function W1(){return G1.useSyncExternalStore(X1,()=>!0,()=>!1)}function X1(){return()=>{}}var Ts="Avatar",[K1]=xe(Ts),[Y1,ap]=K1(Ts),sp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return w.jsx(Y1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:w.jsx(z.span,{...r,ref:t})})});sp.displayName=Ts;var lp="AvatarImage",up=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,l=ap(lp,n),c=q1(r,i),u=Ze(s=>{o(s),l.onImageLoadingStatusChange(s)});return Se(()=>{c!=="idle"&&u(c)},[c,u]),c==="loaded"?w.jsx(z.img,{...i,ref:t,src:r}):null});up.displayName=lp;var cp="AvatarFallback",dp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=ap(cp,n),[l,c]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const u=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(u)}},[r]),l&&i.imageLoadingStatus!=="loaded"?w.jsx(z.span,{...o,ref:t}):null});dp.displayName=cp;function fu(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function q1(e,{referrerPolicy:t,crossOrigin:n}){const r=W1(),o=g.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[l,c]=g.useState(()=>fu(i,e));return Se(()=>{c(fu(i,e))},[i,e]),Se(()=>{const u=d=>()=>{c(d)};if(!i)return;const s=u("loaded"),a=u("error");return i.addEventListener("load",s),i.addEventListener("error",a),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",s),i.removeEventListener("error",a)}},[i,n,t]),l}var Z1=sp,Q1=up,J1=dp;function pr(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function hr(e){const[t,n]=g.useState(void 0);return Se(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,c;if("borderBoxSize"in i){const u=i.borderBoxSize,s=Array.isArray(u)?u[0]:u;l=s.inlineSize,c=s.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var pi="Checkbox",[eb]=xe(pi),[tb,js]=eb(pi);function nb(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:l,name:c,onCheckedChange:u,required:s,value:a="on",internal_do_not_use_render:d}=e,[f,p]=Fe({prop:n,defaultProp:o??!1,onChange:u,caller:pi}),[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useRef(!1),x=m?!!l||!!m.closest("form"):!0,S={checked:f,disabled:i,setChecked:p,control:m,setControl:h,name:c,form:l,value:a,hasConsumerStoppedPropagationRef:b,required:s,defaultChecked:Ct(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:y};return w.jsx(tb,{scope:t,...S,children:ob(d)?d(S):r})}var fp="CheckboxTrigger",pp=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:l,disabled:c,checked:u,required:s,setControl:a,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=js(fp,e),h=re(o,a),v=g.useRef(u);return g.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const b=()=>d(v.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,d]),w.jsx(z.button,{type:"button",role:"checkbox","aria-checked":Ct(u)?"mixed":u,"aria-required":s,"data-state":yp(u),"data-disabled":c?"":void 0,disabled:c,value:l,...r,ref:h,onKeyDown:N(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:N(n,y=>{d(b=>Ct(b)?!0:!b),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});pp.displayName=fp;var hp=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u,onCheckedChange:s,form:a,...d}=e;return w.jsx(nb,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:c,required:l,onCheckedChange:s,name:r,form:a,value:u,internal_do_not_use_render:({isFormControl:f})=>w.jsxs(w.Fragment,{children:[w.jsx(pp,{...d,ref:t,__scopeCheckbox:n}),f&&w.jsx(gp,{__scopeCheckbox:n})]})})});hp.displayName=pi;var mp="CheckboxIndicator",rb=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=js(mp,n);return w.jsx(Ve,{present:r||Ct(i.checked)||i.checked===!0,children:w.jsx(z.span,{"data-state":yp(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});rb.displayName=mp;var vp="CheckboxBubbleInput",gp=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:l,required:c,disabled:u,name:s,value:a,form:d,bubbleInput:f,setBubbleInput:p}=js(vp,e),m=re(n,p),h=pr(i),v=hr(r);g.useEffect(()=>{const b=f;if(!b)return;const x=window.HTMLInputElement.prototype,S=Object.getOwnPropertyDescriptor(x,"checked").set,E=!o.current;if(h!==i&&S){const A=new Event("click",{bubbles:E});b.indeterminate=Ct(i),S.call(b,Ct(i)?!1:i),b.dispatchEvent(A)}},[f,h,i,o]);const y=g.useRef(Ct(i)?!1:i);return w.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:c,disabled:u,name:s,value:a,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gp.displayName=vp;function ob(e){return typeof e=="function"}function Ct(e){return e==="indeterminate"}function yp(e){return Ct(e)?"indeterminate":e?"checked":"unchecked"}const ib=["top","right","bottom","left"],Pt=Math.min,Ie=Math.max,Bo=Math.round,zr=Math.floor,rt=e=>({x:e,y:e}),ab={left:"right",right:"left",bottom:"top",top:"bottom"},sb={start:"end",end:"start"};function ka(e,t,n){return Ie(e,Pt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function Cn(e){return e.split("-")[1]}function Ms(e){return e==="x"?"y":"x"}function As(e){return e==="y"?"height":"width"}const lb=new Set(["top","bottom"]);function nt(e){return lb.has(ht(e))?"y":"x"}function ks(e){return Ms(nt(e))}function ub(e,t,n){n===void 0&&(n=!1);const r=Cn(e),o=ks(e),i=As(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=zo(l)),[l,zo(l)]}function cb(e){const t=zo(e);return[Da(e),t,Da(t)]}function Da(e){return e.replace(/start|end/g,t=>sb[t])}const pu=["left","right"],hu=["right","left"],db=["top","bottom"],fb=["bottom","top"];function pb(e,t,n){switch(e){case"top":case"bottom":return n?t?hu:pu:t?pu:hu;case"left":case"right":return t?db:fb;default:return[]}}function hb(e,t,n,r){const o=Cn(e);let i=pb(ht(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Da)))),i}function zo(e){return e.replace(/left|right|bottom|top/g,t=>ab[t])}function mb(e){return{top:0,right:0,bottom:0,left:0,...e}}function bp(e){return typeof e!="number"?mb(e):{top:e,right:e,bottom:e,left:e}}function Uo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function mu(e,t,n){let{reference:r,floating:o}=e;const i=nt(t),l=ks(t),c=As(l),u=ht(t),s=i==="y",a=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[c]/2-o[c]/2;let p;switch(u){case"top":p={x:a,y:r.y-o.height};break;case"bottom":p={x:a,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Cn(t)){case"start":p[l]-=f*(n&&s?-1:1);break;case"end":p[l]+=f*(n&&s?-1:1);break}return p}const vb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,c=i.filter(Boolean),u=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:d}=mu(s,r,u),f=r,p={},m=0;for(let h=0;h<c.length;h++){const{name:v,fn:y}=c[h],{x:b,y:x,data:S,reset:E}=await y({x:a,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});a=b??a,d=x??d,p={...p,[v]:{...p[v],...S}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(s=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:a,y:d}=mu(s,f,u)),h=-1)}return{x:a,y:d,placement:f,strategy:o,middlewareData:p}};async function Jn(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:c,strategy:u}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=pt(t,e),m=bp(p),h=c[f?d==="floating"?"reference":"floating":d],v=Uo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:a,strategy:u})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Uo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:b,strategy:u}):y);return{top:(v.top-S.top+m.top)/x.y,bottom:(S.bottom-v.bottom+m.bottom)/x.y,left:(v.left-S.left+m.left)/x.x,right:(S.right-v.right+m.right)/x.x}}const gb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:c,middlewareData:u}=t,{element:s,padding:a=0}=pt(e,t)||{};if(s==null)return{};const d=bp(a),f={x:n,y:r},p=ks(o),m=As(p),h=await l.getDimensions(s),v=p==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",S=i.reference[m]+i.reference[p]-f[p]-i.floating[m],E=f[p]-i.reference[p],A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let j=A?A[x]:0;(!j||!await(l.isElement==null?void 0:l.isElement(A)))&&(j=c.floating[x]||i.floating[m]);const O=S/2-E/2,T=j/2-h[m]/2-1,P=Pt(d[y],T),k=Pt(d[b],T),R=P,$=j-h[m]-k,F=j/2-h[m]/2+O,H=ka(R,F,$),B=!u.arrow&&Cn(o)!=null&&F!==H&&i.reference[m]/2-(F<R?P:k)-h[m]/2<0,X=B?F<R?F-R:F-$:0;return{[p]:f[p]+X,data:{[p]:H,centerOffset:F-H-X,...B&&{alignmentOffset:X}},reset:B}}}),yb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:c,platform:u,elements:s}=t,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ht(o),b=nt(c),x=ht(c)===c,S=await(u.isRTL==null?void 0:u.isRTL(s.floating)),E=f||(x||!h?[zo(c)]:cb(c)),A=m!=="none";!f&&A&&E.push(...hb(c,h,m,S));const j=[c,...E],O=await Jn(t,v),T=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(a&&T.push(O[y]),d){const F=ub(o,l,S);T.push(O[F[0]],O[F[1]])}if(P=[...P,{placement:o,overflows:T}],!T.every(F=>F<=0)){var k,R;const F=(((k=i.flip)==null?void 0:k.index)||0)+1,H=j[F];if(H&&(!(d==="alignment"&&b!==nt(H))||P.every(X=>nt(X.placement)===b?X.overflows[0]>0:!0)))return{data:{index:F,overflows:P},reset:{placement:H}};let B=(R=P.filter(X=>X.overflows[0]<=0).sort((X,G)=>X.overflows[1]-G.overflows[1])[0])==null?void 0:R.placement;if(!B)switch(p){case"bestFit":{var $;const X=($=P.filter(G=>{if(A){const L=nt(G.placement);return L===b||L==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(L=>L>0).reduce((L,M)=>L+M,0)]).sort((G,L)=>G[1]-L[1])[0])==null?void 0:$[0];X&&(B=X);break}case"initialPlacement":B=c;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function vu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gu(e){return ib.some(t=>e[t]>=0)}const bb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=pt(e,t);switch(r){case"referenceHidden":{const i=await Jn(t,{...o,elementContext:"reference"}),l=vu(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:gu(l)}}}case"escaped":{const i=await Jn(t,{...o,altBoundary:!0}),l=vu(i,n.floating);return{data:{escapedOffsets:l,escaped:gu(l)}}}default:return{}}}}},wp=new Set(["left","top"]);async function wb(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ht(n),c=Cn(n),u=nt(n)==="y",s=wp.has(l)?-1:1,a=i&&u?-1:1,d=pt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return c&&typeof m=="number"&&(p=c==="end"?m*-1:m),u?{x:p*a,y:f*s}:{x:f*s,y:p*a}}const xb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:c}=t,u=await wb(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},Eb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:v=>{let{x:y,y:b}=v;return{x:y,y:b}}},...u}=pt(e,t),s={x:n,y:r},a=await Jn(t,u),d=nt(ht(o)),f=Ms(d);let p=s[f],m=s[d];if(i){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",b=p+a[v],x=p-a[y];p=ka(b,p,x)}if(l){const v=d==="y"?"top":"left",y=d==="y"?"bottom":"right",b=m+a[v],x=m-a[y];m=ka(b,m,x)}const h=c.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:i,[d]:l}}}}}},Sb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:c=0,mainAxis:u=!0,crossAxis:s=!0}=pt(e,t),a={x:n,y:r},d=nt(o),f=Ms(d);let p=a[f],m=a[d];const h=pt(c,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(u){const x=f==="y"?"height":"width",S=i.reference[f]-i.floating[x]+v.mainAxis,E=i.reference[f]+i.reference[x]-v.mainAxis;p<S?p=S:p>E&&(p=E)}if(s){var y,b;const x=f==="y"?"width":"height",S=wp.has(ht(o)),E=i.reference[d]-i.floating[x]+(S&&((y=l.offset)==null?void 0:y[d])||0)+(S?0:v.crossAxis),A=i.reference[d]+i.reference[x]+(S?0:((b=l.offset)==null?void 0:b[d])||0)-(S?v.crossAxis:0);m<E?m=E:m>A&&(m=A)}return{[f]:p,[d]:m}}}},Cb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:c}=t,{apply:u=()=>{},...s}=pt(e,t),a=await Jn(t,s),d=ht(o),f=Cn(o),p=nt(o)==="y",{width:m,height:h}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=f===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(y=d,v=f==="end"?"top":"bottom");const b=h-a.top-a.bottom,x=m-a.left-a.right,S=Pt(h-a[v],b),E=Pt(m-a[y],x),A=!t.middlewareData.shift;let j=S,O=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=b),A&&!f){const P=Ie(a.left,0),k=Ie(a.right,0),R=Ie(a.top,0),$=Ie(a.bottom,0);p?O=m-2*(P!==0||k!==0?P+k:Ie(a.left,a.right)):j=h-2*(R!==0||$!==0?R+$:Ie(a.top,a.bottom))}await u({...t,availableWidth:O,availableHeight:j});const T=await l.getDimensions(c.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function hi(){return typeof window<"u"}function _n(e){return xp(e)?(e.nodeName||"").toLowerCase():"#document"}function Ne(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(xp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xp(e){return hi()?e instanceof Node||e instanceof Ne(e).Node:!1}function Qe(e){return hi()?e instanceof Element||e instanceof Ne(e).Element:!1}function at(e){return hi()?e instanceof HTMLElement||e instanceof Ne(e).HTMLElement:!1}function yu(e){return!hi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ne(e).ShadowRoot}const _b=new Set(["inline","contents"]);function mr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_b.has(o)}const Pb=new Set(["table","td","th"]);function Rb(e){return Pb.has(_n(e))}const Ob=[":popover-open",":modal"];function mi(e){return Ob.some(t=>{try{return e.matches(t)}catch{return!1}})}const Tb=["transform","translate","scale","rotate","perspective"],jb=["transform","translate","scale","rotate","perspective","filter"],Mb=["paint","layout","strict","content"];function Ds(e){const t=Ls(),n=Qe(e)?Je(e):e;return Tb.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||jb.some(r=>(n.willChange||"").includes(r))||Mb.some(r=>(n.contain||"").includes(r))}function Ab(e){let t=Rt(e);for(;at(t)&&!yn(t);){if(Ds(t))return t;if(mi(t))return null;t=Rt(t)}return null}function Ls(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const kb=new Set(["html","body","#document"]);function yn(e){return kb.has(_n(e))}function Je(e){return Ne(e).getComputedStyle(e)}function vi(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||yu(e)&&e.host||ut(e);return yu(t)?t.host:t}function Ep(e){const t=Rt(e);return yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:at(t)&&mr(t)?t:Ep(t)}function er(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ep(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Ne(o);if(i){const c=La(l);return t.concat(l,l.visualViewport||[],mr(o)?o:[],c&&n?er(c):[])}return t.concat(o,er(o,[],n))}function La(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Sp(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=at(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,c=Bo(n)!==i||Bo(r)!==l;return c&&(n=i,r=l),{width:n,height:r,$:c}}function Is(e){return Qe(e)?e:e.contextElement}function mn(e){const t=Is(e);if(!at(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Sp(t);let l=(i?Bo(n.width):n.width)/r,c=(i?Bo(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const Db=rt(0);function Cp(e){const t=Ne(e);return!Ls()||!t.visualViewport?Db:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Lb(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ne(e)?!1:t}function Xt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Is(e);let l=rt(1);t&&(r?Qe(r)&&(l=mn(r)):l=mn(e));const c=Lb(i,n,r)?Cp(i):rt(0);let u=(o.left+c.x)/l.x,s=(o.top+c.y)/l.y,a=o.width/l.x,d=o.height/l.y;if(i){const f=Ne(i),p=r&&Qe(r)?Ne(r):r;let m=f,h=La(m);for(;h&&r&&p!==m;){const v=mn(h),y=h.getBoundingClientRect(),b=Je(h),x=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,S=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;u*=v.x,s*=v.y,a*=v.x,d*=v.y,u+=x,s+=S,m=Ne(h),h=La(m)}}return Uo({width:a,height:d,x:u,y:s})}function gi(e,t){const n=vi(e).scrollLeft;return t?t.left+n:Xt(ut(e)).left+n}function _p(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-gi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Ib(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=ut(r),c=t?mi(t.floating):!1;if(r===l||c&&i)return n;let u={scrollLeft:0,scrollTop:0},s=rt(1);const a=rt(0),d=at(r);if((d||!d&&!i)&&((_n(r)!=="body"||mr(l))&&(u=vi(r)),at(r))){const p=Xt(r);s=mn(r),a.x=p.x+r.clientLeft,a.y=p.y+r.clientTop}const f=l&&!d&&!i?_p(l,u):rt(0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-u.scrollLeft*s.x+a.x+f.x,y:n.y*s.y-u.scrollTop*s.y+a.y+f.y}}function Nb(e){return Array.from(e.getClientRects())}function Fb(e){const t=ut(e),n=vi(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+gi(e);const c=-n.scrollTop;return Je(r).direction==="rtl"&&(l+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:c}}const bu=25;function Vb(e,t){const n=Ne(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){i=o.width,l=o.height;const a=Ls();(!a||a&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}const s=gi(r);if(s<=0){const a=r.ownerDocument,d=a.body,f=getComputedStyle(d),p=a.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=bu&&(i-=m)}else s<=bu&&(i+=s);return{width:i,height:l,x:c,y:u}}const $b=new Set(["absolute","fixed"]);function Bb(e,t){const n=Xt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=at(e)?mn(e):rt(1),l=e.clientWidth*i.x,c=e.clientHeight*i.y,u=o*i.x,s=r*i.y;return{width:l,height:c,x:u,y:s}}function wu(e,t,n){let r;if(t==="viewport")r=Vb(e,n);else if(t==="document")r=Fb(ut(e));else if(Qe(t))r=Bb(t,n);else{const o=Cp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Uo(r)}function Pp(e,t){const n=Rt(e);return n===t||!Qe(n)||yn(n)?!1:Je(n).position==="fixed"||Pp(n,t)}function zb(e,t){const n=t.get(e);if(n)return n;let r=er(e,[],!1).filter(c=>Qe(c)&&_n(c)!=="body"),o=null;const i=Je(e).position==="fixed";let l=i?Rt(e):e;for(;Qe(l)&&!yn(l);){const c=Je(l),u=Ds(l);!u&&c.position==="fixed"&&(o=null),(i?!u&&!o:!u&&c.position==="static"&&o&&$b.has(o.position)||mr(l)&&!u&&Pp(e,l))?r=r.filter(s=>s!==l):o=c,l=Rt(l)}return t.set(e,r),r}function Ub(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?mi(t)?[]:zb(t,this._c):[].concat(n),r],l=i[0],c=i.reduce((u,s)=>{const a=wu(t,s,o);return u.top=Ie(a.top,u.top),u.right=Pt(a.right,u.right),u.bottom=Pt(a.bottom,u.bottom),u.left=Ie(a.left,u.left),u},wu(t,l,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Hb(e){const{width:t,height:n}=Sp(e);return{width:t,height:n}}function Gb(e,t,n){const r=at(t),o=ut(t),i=n==="fixed",l=Xt(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const u=rt(0);function s(){u.x=gi(o)}if(r||!r&&!i)if((_n(t)!=="body"||mr(o))&&(c=vi(t)),r){const p=Xt(t,!0,i,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else o&&s();i&&!r&&o&&s();const a=o&&!r&&!i?_p(o,c):rt(0),d=l.left+c.scrollLeft-u.x-a.x,f=l.top+c.scrollTop-u.y-a.y;return{x:d,y:f,width:l.width,height:l.height}}function ta(e){return Je(e).position==="static"}function xu(e,t){if(!at(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Rp(e,t){const n=Ne(e);if(mi(e))return n;if(!at(e)){let o=Rt(e);for(;o&&!yn(o);){if(Qe(o)&&!ta(o))return o;o=Rt(o)}return n}let r=xu(e,t);for(;r&&Rb(r)&&ta(r);)r=xu(r,t);return r&&yn(r)&&ta(r)&&!Ds(r)?n:r||Ab(e)||n}const Wb=async function(e){const t=this.getOffsetParent||Rp,n=this.getDimensions,r=await n(e.floating);return{reference:Gb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Xb(e){return Je(e).direction==="rtl"}const Kb={convertOffsetParentRelativeRectToViewportRelativeRect:Ib,getDocumentElement:ut,getClippingRect:Ub,getOffsetParent:Rp,getElementRects:Wb,getClientRects:Nb,getDimensions:Hb,getScale:mn,isElement:Qe,isRTL:Xb};function Op(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Yb(e,t){let n=null,r;const o=ut(e);function i(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),i();const s=e.getBoundingClientRect(),{left:a,top:d,width:f,height:p}=s;if(c||t(),!f||!p)return;const m=zr(d),h=zr(o.clientWidth-(a+f)),v=zr(o.clientHeight-(d+p)),y=zr(a),b={rootMargin:-m+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ie(0,Pt(1,u))||1};let x=!0;function S(E){const A=E[0].intersectionRatio;if(A!==u){if(!x)return l();A?l(!1,A):r=setTimeout(()=>{l(!1,1e-7)},1e3)}A===1&&!Op(s,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(S,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return l(!0),i}function qb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,s=Is(e),a=o||i?[...s?er(s):[],...er(t)]:[];a.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=s&&c?Yb(s,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),s&&!u&&p.observe(s),p.observe(t));let m,h=u?Xt(e):null;u&&v();function v(){const y=Xt(e);h&&!Op(h,y)&&n(),h=y,m=requestAnimationFrame(v)}return n(),()=>{var y;a.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,u&&cancelAnimationFrame(m)}}const Zb=xb,Qb=Eb,Jb=yb,ew=Cb,tw=bb,Eu=gb,nw=Sb,rw=(e,t,n)=>{const r=new Map,o={platform:Kb,...n},i={...o.platform,_c:r};return vb(e,t,{...o,platform:i})};var ow=typeof document<"u",iw=function(){},ko=ow?_.useLayoutEffect:iw;function Ho(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ho(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ho(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Tp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Su(e,t){const n=Tp(e);return Math.round(t*n)/n}function na(e){const t=g.useRef(e);return ko(()=>{t.current=e}),t}function aw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:c=!0,whileElementsMounted:u,open:s}=e,[a,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Ho(f,r)||p(r);const[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useCallback(G=>{G!==A.current&&(A.current=G,h(G))},[]),x=g.useCallback(G=>{G!==j.current&&(j.current=G,y(G))},[]),S=i||m,E=l||v,A=g.useRef(null),j=g.useRef(null),O=g.useRef(a),T=u!=null,P=na(u),k=na(o),R=na(s),$=g.useCallback(()=>{if(!A.current||!j.current)return;const G={placement:t,strategy:n,middleware:f};k.current&&(G.platform=k.current),rw(A.current,j.current,G).then(L=>{const M={...L,isPositioned:R.current!==!1};F.current&&!Ho(O.current,M)&&(O.current=M,ii.flushSync(()=>{d(M)}))})},[f,t,n,k,R]);ko(()=>{s===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,d(G=>({...G,isPositioned:!1})))},[s]);const F=g.useRef(!1);ko(()=>(F.current=!0,()=>{F.current=!1}),[]),ko(()=>{if(S&&(A.current=S),E&&(j.current=E),S&&E){if(P.current)return P.current(S,E,$);$()}},[S,E,$,P,T]);const H=g.useMemo(()=>({reference:A,floating:j,setReference:b,setFloating:x}),[b,x]),B=g.useMemo(()=>({reference:S,floating:E}),[S,E]),X=g.useMemo(()=>{const G={position:n,left:0,top:0};if(!B.floating)return G;const L=Su(B.floating,a.x),M=Su(B.floating,a.y);return c?{...G,transform:"translate("+L+"px, "+M+"px)",...Tp(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:L,top:M}},[n,c,B.floating,a.x,a.y]);return g.useMemo(()=>({...a,update:$,refs:H,elements:B,floatingStyles:X}),[a,$,H,B,X])}const sw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Eu({element:r.current,padding:o}).fn(n):{}:r?Eu({element:r,padding:o}).fn(n):{}}}},lw=(e,t)=>({...Zb(e),options:[e,t]}),uw=(e,t)=>({...Qb(e),options:[e,t]}),cw=(e,t)=>({...nw(e),options:[e,t]}),dw=(e,t)=>({...Jb(e),options:[e,t]}),fw=(e,t)=>({...ew(e),options:[e,t]}),pw=(e,t)=>({...tw(e),options:[e,t]}),hw=(e,t)=>({...sw(e),options:[e,t]});var mw="Arrow",jp=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(z.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});jp.displayName=mw;var vw=jp,Ns="Popper",[Mp,jt]=xe(Ns),[gw,Ap]=Mp(Ns),kp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return w.jsx(gw,{scope:t,anchor:r,onAnchorChange:o,children:n})};kp.displayName=Ns;var Dp="PopperAnchor",Lp=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ap(Dp,n),l=g.useRef(null),c=re(t,l),u=g.useRef(null);return g.useEffect(()=>{const s=u.current;u.current=(r==null?void 0:r.current)||l.current,s!==u.current&&i.onAnchorChange(u.current)}),r?null:w.jsx(z.div,{...o,ref:c})});Lp.displayName=Dp;var Fs="PopperContent",[yw,bw]=Mp(Fs),Ip=g.forwardRef((e,t)=>{var n,r,o,i,l,c;const{__scopePopper:u,side:s="bottom",sideOffset:a=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:S,...E}=e,A=Ap(Fs,u),[j,O]=g.useState(null),T=re(t,de=>O(de)),[P,k]=g.useState(null),R=hr(P),$=(R==null?void 0:R.width)??0,F=(R==null?void 0:R.height)??0,H=s+(d!=="center"?"-"+d:""),B=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},X=Array.isArray(h)?h:[h],G=X.length>0,L={padding:B,boundary:X.filter(xw),altBoundary:G},{refs:M,floatingStyles:D,placement:ee,isPositioned:J,middlewareData:K}=aw({strategy:"fixed",placement:H,whileElementsMounted:(...de)=>qb(...de,{animationFrame:x==="always"}),elements:{reference:A.anchor},middleware:[lw({mainAxis:a+F,alignmentAxis:f}),m&&uw({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?cw():void 0,...L}),m&&dw({...L}),fw({...L,apply:({elements:de,rects:ke,availableWidth:Be,availableHeight:It})=>{const{width:kr,height:Dr}=ke.reference,Nt=de.floating.style;Nt.setProperty("--radix-popper-available-width",`${Be}px`),Nt.setProperty("--radix-popper-available-height",`${It}px`),Nt.setProperty("--radix-popper-anchor-width",`${kr}px`),Nt.setProperty("--radix-popper-anchor-height",`${Dr}px`)}}),P&&hw({element:P,padding:p}),Ew({arrowWidth:$,arrowHeight:F}),b&&pw({strategy:"referenceHidden",...L})]}),[ne,te]=Vp(ee),V=Ze(S);Se(()=>{J&&(V==null||V())},[J,V]);const q=(n=K.arrow)==null?void 0:n.x,Y=(r=K.arrow)==null?void 0:r.y,U=((o=K.arrow)==null?void 0:o.centerOffset)!==0,[oe,I]=g.useState();return Se(()=>{j&&I(window.getComputedStyle(j).zIndex)},[j]),w.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:J?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=K.transformOrigin)==null?void 0:i.x,(l=K.transformOrigin)==null?void 0:l.y].join(" "),...((c=K.hide)==null?void 0:c.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(yw,{scope:u,placedSide:ne,onArrowChange:k,arrowX:q,arrowY:Y,shouldHideArrow:U,children:w.jsx(z.div,{"data-side":ne,"data-align":te,...E,ref:T,style:{...E.style,animation:J?void 0:"none"}})})})});Ip.displayName=Fs;var Np="PopperArrow",ww={top:"bottom",right:"left",bottom:"top",left:"right"},Fp=g.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=bw(Np,n),i=ww[o.placedSide];return w.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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:w.jsx(vw,{...r,ref:t,style:{...r.style,display:"block"}})})});Fp.displayName=Np;function xw(e){return e!==null}var Ew=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:c}=t,u=((n=c.arrow)==null?void 0:n.centerOffset)!==0,s=u?0:e.arrowWidth,a=u?0:e.arrowHeight,[d,f]=Vp(i),p={start:"0%",center:"50%",end:"100%"}[f],m=(((r=c.arrow)==null?void 0:r.x)??0)+s/2,h=(((o=c.arrow)==null?void 0:o.y)??0)+a/2;let v="",y="";return d==="bottom"?(v=u?p:`${m}px`,y=`${-a}px`):d==="top"?(v=u?p:`${m}px`,y=`${l.floating.height+a}px`):d==="right"?(v=`${-a}px`,y=u?p:`${h}px`):d==="left"&&(v=`${l.floating.width+a}px`,y=u?p:`${h}px`),{data:{x:v,y}}}});function Vp(e){const[t,n="center"]=e.split("-");return[t,n]}var Sw=kp,vr=Lp,yi=Ip,bi=Fp,ra="rovingFocusGroup.onEntryFocus",Cw={bubbles:!1,cancelable:!0},gr="RovingFocusGroup",[Ia,$p,_w]=cr(gr),[Pw,Mt]=xe(gr,[_w]),[Rw,Ow]=Pw(gr),Bp=g.forwardRef((e,t)=>w.jsx(Ia.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Ia.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Tw,{...e,ref:t})})}));Bp.displayName=gr;var Tw=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:u,onEntryFocus:s,preventScrollOnEntryFocus:a=!1,...d}=e,f=g.useRef(null),p=re(t,f),m=qt(i),[h,v]=Fe({prop:l,defaultProp:c??null,onChange:u,caller:gr}),[y,b]=g.useState(!1),x=Ze(s),S=$p(n),E=g.useRef(!1),[A,j]=g.useState(0);return g.useEffect(()=>{const O=f.current;if(O)return O.addEventListener(ra,x),()=>O.removeEventListener(ra,x)},[x]),w.jsx(Rw,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:h,onItemFocus:g.useCallback(O=>v(O),[v]),onItemShiftTab:g.useCallback(()=>b(!0),[]),onFocusableItemAdd:g.useCallback(()=>j(O=>O+1),[]),onFocusableItemRemove:g.useCallback(()=>j(O=>O-1),[]),children:w.jsx(z.div,{tabIndex:y||A===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:N(e.onMouseDown,()=>{E.current=!0}),onFocus:N(e.onFocus,O=>{const T=!E.current;if(O.target===O.currentTarget&&T&&!y){const P=new CustomEvent(ra,Cw);if(O.currentTarget.dispatchEvent(P),!P.defaultPrevented){const k=S().filter(H=>H.focusable),R=k.find(H=>H.active),$=k.find(H=>H.id===h),F=[R,$,...k].filter(Boolean).map(H=>H.ref.current);Hp(F,a)}}E.current=!1}),onBlur:N(e.onBlur,()=>b(!1))})})}),zp="RovingFocusGroupItem",Up=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:l,...c}=e,u=qe(),s=i||u,a=Ow(zp,n),d=a.currentTabStopId===s,f=$p(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=a;return g.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),w.jsx(Ia.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:w.jsx(z.span,{tabIndex:d?0:-1,"data-orientation":a.orientation,...c,ref:t,onMouseDown:N(e.onMouseDown,v=>{r?a.onItemFocus(s):v.preventDefault()}),onFocus:N(e.onFocus,()=>a.onItemFocus(s)),onKeyDown:N(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){a.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Aw(v,a.orientation,a.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=f().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const x=b.indexOf(v.currentTarget);b=a.loop?kw(b,x+1):b.slice(x+1)}setTimeout(()=>Hp(b))}}),children:typeof l=="function"?l({isCurrentTabStop:d,hasTabStop:h!=null}):l})})});Up.displayName=zp;var jw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Mw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Aw(e,t,n){const r=Mw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return jw[r]}function Hp(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function kw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var wi=Bp,xi=Up,Na=["Enter"," "],Dw=["ArrowDown","PageUp","Home"],Gp=["ArrowUp","PageDown","End"],Lw=[...Dw,...Gp],Iw={ltr:[...Na,"ArrowRight"],rtl:[...Na,"ArrowLeft"]},Nw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yr="Menu",[tr,Fw,Vw]=cr(yr),[Zt,Wp]=xe(yr,[Vw,jt,Mt]),Ei=jt(),Xp=Mt(),[$w,Qt]=Zt(yr),[Bw,br]=Zt(yr),Kp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,c=Ei(t),[u,s]=g.useState(null),a=g.useRef(!1),d=Ze(i),f=qt(o);return g.useEffect(()=>{const p=()=>{a.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>a.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),w.jsx(Sw,{...c,children:w.jsx($w,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:s,children:w.jsx(Bw,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:a,dir:f,modal:l,children:r})})})};Kp.displayName=yr;var zw="MenuAnchor",Vs=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ei(n);return w.jsx(vr,{...o,...r,ref:t})});Vs.displayName=zw;var $s="MenuPortal",[Uw,Yp]=Zt($s,{forceMount:void 0}),qp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qt($s,t);return w.jsx(Uw,{scope:t,forceMount:n,children:w.jsx(Ve,{present:n||i.open,children:w.jsx(Ef,{asChild:!0,container:o,children:r})})})};qp.displayName=$s;var He="MenuContent",[Hw,Bs]=Zt(He),Zp=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=br(He,e.__scopeMenu);return w.jsx(tr.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(tr.Slot,{scope:e.__scopeMenu,children:l.modal?w.jsx(Gw,{...o,ref:t}):w.jsx(Ww,{...o,ref:t})})})})}),Gw=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return fi(i)},[]),w.jsx(zs,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:N(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ww=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu);return w.jsx(zs,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Xw=_t("MenuContent.ScrollLock"),zs=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:u,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=Qt(He,n),y=br(He,n),b=Ei(n),x=Xp(n),S=Fw(n),[E,A]=g.useState(null),j=g.useRef(null),O=re(t,j,v.onContentChange),T=g.useRef(0),P=g.useRef(""),k=g.useRef(0),R=g.useRef(null),$=g.useRef("right"),F=g.useRef(0),H=m?fr:g.Fragment,B=m?{as:Xw,allowPinchZoom:!0}:void 0,X=L=>{var M,D;const ee=P.current+L,J=S().filter(Y=>!Y.disabled),K=document.activeElement,ne=(M=J.find(Y=>Y.ref.current===K))==null?void 0:M.textValue,te=J.map(Y=>Y.textValue),V=ix(te,ee,ne),q=(D=J.find(Y=>Y.textValue===V))==null?void 0:D.ref.current;(function Y(U){P.current=U,window.clearTimeout(T.current),U!==""&&(T.current=window.setTimeout(()=>Y(""),1e3))})(ee),q&&setTimeout(()=>q.focus())};g.useEffect(()=>()=>window.clearTimeout(T.current),[]),ci();const G=g.useCallback(L=>{var M,D;return $.current===((M=R.current)==null?void 0:M.side)&&sx(L,(D=R.current)==null?void 0:D.area)},[]);return w.jsx(Hw,{scope:n,searchRef:P,onItemEnter:g.useCallback(L=>{G(L)&&L.preventDefault()},[G]),onItemLeave:g.useCallback(L=>{var M;G(L)||((M=j.current)==null||M.focus(),A(null))},[G]),onTriggerLeave:g.useCallback(L=>{G(L)&&L.preventDefault()},[G]),pointerGraceTimerRef:k,onPointerGraceIntentChange:g.useCallback(L=>{R.current=L},[]),children:w.jsx(H,{...B,children:w.jsx(dr,{asChild:!0,trapped:o,onMountAutoFocus:N(i,L=>{var M;L.preventDefault(),(M=j.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:w.jsx(wi,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:E,onCurrentTabStopIdChange:A,onEntryFocus:N(u,L=>{y.isUsingKeyboardRef.current||L.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(yi,{role:"menu","aria-orientation":"vertical","data-state":ph(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...h,ref:O,style:{outline:"none",...h.style},onKeyDown:N(h.onKeyDown,L=>{const M=L.target.closest("[data-radix-menu-content]")===L.currentTarget,D=L.ctrlKey||L.altKey||L.metaKey,ee=L.key.length===1;M&&(L.key==="Tab"&&L.preventDefault(),!D&&ee&&X(L.key));const J=j.current;if(L.target!==J||!Lw.includes(L.key))return;L.preventDefault();const K=S().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);Gp.includes(L.key)&&K.reverse(),rx(K)}),onBlur:N(e.onBlur,L=>{L.currentTarget.contains(L.target)||(window.clearTimeout(T.current),P.current="")}),onPointerMove:N(e.onPointerMove,nr(L=>{const M=L.target,D=F.current!==L.clientX;if(L.currentTarget.contains(M)&&D){const ee=L.clientX>F.current?"right":"left";$.current=ee,F.current=L.clientX}}))})})})})})})});Zp.displayName=He;var Kw="MenuGroup",Us=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"group",...r,ref:t})});Us.displayName=Kw;var Yw="MenuLabel",Qp=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{...r,ref:t})});Qp.displayName=Yw;var Go="MenuItem",Cu="menu.itemSelect",Si=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),l=br(Go,e.__scopeMenu),c=Bs(Go,e.__scopeMenu),u=re(t,i),s=g.useRef(!1),a=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(Cu,{bubbles:!0,cancelable:!0});d.addEventListener(Cu,p=>r==null?void 0:r(p),{once:!0}),xf(d,f),f.defaultPrevented?s.current=!1:l.onClose()}};return w.jsx(Jp,{...o,ref:u,disabled:n,onClick:N(e.onClick,a),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),s.current=!0},onPointerUp:N(e.onPointerUp,d=>{var f;s.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:N(e.onKeyDown,d=>{const f=c.searchRef.current!=="";n||f&&d.key===" "||Na.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Si.displayName=Go;var Jp=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=Bs(Go,n),c=Xp(n),u=g.useRef(null),s=re(t,u),[a,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const m=u.current;m&&p((m.textContent??"").trim())},[i.children]),w.jsx(tr.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:w.jsx(xi,{asChild:!0,...c,focusable:!r,children:w.jsx(z.div,{role:"menuitem","data-highlighted":a?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:s,onPointerMove:N(e.onPointerMove,nr(m=>{r?l.onItemLeave(m):(l.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:N(e.onPointerLeave,nr(m=>l.onItemLeave(m))),onFocus:N(e.onFocus,()=>d(!0)),onBlur:N(e.onBlur,()=>d(!1))})})})}),qw="MenuCheckboxItem",eh=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(ih,{scope:e.__scopeMenu,checked:n,children:w.jsx(Si,{role:"menuitemcheckbox","aria-checked":Wo(n)?"mixed":n,...o,ref:t,"data-state":Gs(n),onSelect:N(o.onSelect,()=>r==null?void 0:r(Wo(n)?!0:!n),{checkForDefaultPrevented:!1})})})});eh.displayName=qw;var th="MenuRadioGroup",[Zw,Qw]=Zt(th,{value:void 0,onValueChange:()=>{}}),nh=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Ze(r);return w.jsx(Zw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(Us,{...o,ref:t})})});nh.displayName=th;var rh="MenuRadioItem",oh=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Qw(rh,e.__scopeMenu),i=n===o.value;return w.jsx(ih,{scope:e.__scopeMenu,checked:i,children:w.jsx(Si,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Gs(i),onSelect:N(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});oh.displayName=rh;var Hs="MenuItemIndicator",[ih,Jw]=Zt(Hs,{checked:!1}),ah=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Jw(Hs,n);return w.jsx(Ve,{present:r||Wo(i.checked)||i.checked===!0,children:w.jsx(z.span,{...o,ref:t,"data-state":Gs(i.checked)})})});ah.displayName=Hs;var ex="MenuSeparator",sh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});sh.displayName=ex;var tx="MenuArrow",lh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=Ei(n);return w.jsx(bi,{...o,...r,ref:t})});lh.displayName=tx;var nx="MenuSub",[Q2,uh]=Zt(nx),Wn="MenuSubTrigger",ch=g.forwardRef((e,t)=>{const n=Qt(Wn,e.__scopeMenu),r=br(Wn,e.__scopeMenu),o=uh(Wn,e.__scopeMenu),i=Bs(Wn,e.__scopeMenu),l=g.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:u}=i,s={__scopeMenu:e.__scopeMenu},a=g.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return g.useEffect(()=>a,[a]),g.useEffect(()=>{const d=c.current;return()=>{window.clearTimeout(d),u(null)}},[c,u]),w.jsx(Vs,{asChild:!0,...s,children:w.jsx(Jp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ph(n.open),...e,ref:ai(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:N(e.onPointerMove,nr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),a()},100))})),onPointerLeave:N(e.onPointerLeave,nr(d=>{var f,p;a();const m=(f=n.content)==null?void 0:f.getBoundingClientRect();if(m){const h=(p=n.content)==null?void 0:p.dataset.side,v=h==="right",y=v?-5:5,b=m[v?"left":"right"],x=m[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:N(e.onKeyDown,d=>{var f;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||Iw[r.dir].includes(d.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),d.preventDefault())})})})});ch.displayName=Wn;var dh="MenuSubContent",fh=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=br(He,e.__scopeMenu),c=uh(dh,e.__scopeMenu),u=g.useRef(null),s=re(t,u);return w.jsx(tr.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(tr.Slot,{scope:e.__scopeMenu,children:w.jsx(zs,{id:c.contentId,"aria-labelledby":c.triggerId,...o,ref:s,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{var d;l.isUsingKeyboardRef.current&&((d=u.current)==null||d.focus()),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:N(e.onFocusOutside,a=>{a.target!==c.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:N(e.onEscapeKeyDown,a=>{l.onClose(),a.preventDefault()}),onKeyDown:N(e.onKeyDown,a=>{var d;const f=a.currentTarget.contains(a.target),p=Nw[l.dir].includes(a.key);f&&p&&(i.onOpenChange(!1),(d=c.trigger)==null||d.focus(),a.preventDefault())})})})})})});fh.displayName=dh;function ph(e){return e?"open":"closed"}function Wo(e){return e==="indeterminate"}function Gs(e){return Wo(e)?"indeterminate":e?"checked":"unchecked"}function rx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function ox(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ix(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=ox(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ax(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],s=c.x,a=c.y,d=u.x,f=u.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function sx(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ax(n,t)}function nr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var lx=Kp,ux=Vs,cx=qp,dx=Zp,fx=Us,px=Qp,hx=Si,mx=eh,vx=nh,gx=oh,yx=ah,bx=sh,wx=lh,xx=ch,Ex=fh,Ci="DropdownMenu",[Sx]=xe(Ci,[Wp]),Ae=Wp(),[Cx,hh]=Sx(Ci),mh=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:c=!0}=e,u=Ae(t),s=g.useRef(null),[a,d]=Fe({prop:o,defaultProp:i??!1,onChange:l,caller:Ci});return w.jsx(Cx,{scope:t,triggerId:qe(),triggerRef:s,contentId:qe(),open:a,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:c,children:w.jsx(lx,{...u,open:a,onOpenChange:d,dir:r,modal:c,children:n})})};mh.displayName=Ci;var vh="DropdownMenuTrigger",gh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=hh(vh,n),l=Ae(n);return w.jsx(ux,{asChild:!0,...l,children:w.jsx(z.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ai(t,i.triggerRef),onPointerDown:N(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(i.onOpenToggle(),i.open||c.preventDefault())}),onKeyDown:N(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&i.onOpenToggle(),c.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});gh.displayName=vh;var _x="DropdownMenuPortal",yh=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ae(t);return w.jsx(cx,{...r,...n})};yh.displayName=_x;var bh="DropdownMenuContent",wh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hh(bh,n),i=Ae(n),l=g.useRef(!1);return w.jsx(dx,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:N(e.onCloseAutoFocus,c=>{var u;l.current||(u=o.triggerRef.current)==null||u.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:N(e.onInteractOutside,c=>{const u=c.detail.originalEvent,s=u.button===0&&u.ctrlKey===!0,a=u.button===2||s;(!o.modal||a)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wh.displayName=bh;var Px="DropdownMenuGroup",Rx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(fx,{...o,...r,ref:t})});Rx.displayName=Px;var Ox="DropdownMenuLabel",xh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(px,{...o,...r,ref:t})});xh.displayName=Ox;var Tx="DropdownMenuItem",Eh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(hx,{...o,...r,ref:t})});Eh.displayName=Tx;var jx="DropdownMenuCheckboxItem",Mx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(mx,{...o,...r,ref:t})});Mx.displayName=jx;var Ax="DropdownMenuRadioGroup",kx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(vx,{...o,...r,ref:t})});kx.displayName=Ax;var Dx="DropdownMenuRadioItem",Lx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(gx,{...o,...r,ref:t})});Lx.displayName=Dx;var Ix="DropdownMenuItemIndicator",Nx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(yx,{...o,...r,ref:t})});Nx.displayName=Ix;var Fx="DropdownMenuSeparator",Sh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(bx,{...o,...r,ref:t})});Sh.displayName=Fx;var Vx="DropdownMenuArrow",$x=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(wx,{...o,...r,ref:t})});$x.displayName=Vx;var Bx="DropdownMenuSubTrigger",zx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(xx,{...o,...r,ref:t})});zx.displayName=Bx;var Ux="DropdownMenuSubContent",Hx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(Ex,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Hx.displayName=Ux;var Gx=mh,Wx=gh,Xx=yh,Kx=wh,Yx=xh,qx=Eh,Zx=Sh,Qx="Label",Ch=g.forwardRef((e,t)=>w.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Ch.displayName=Qx;var[Ws]=xe("Form"),Xs="Form",[Jx,wr]=Ws(Xs),[eE,_h]=Ws(Xs),tE=g.forwardRef((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=()=>{},...o}=e,i=g.useRef(null),l=re(t,i),[c,u]=g.useState({}),s=g.useCallback(P=>c[P],[c]),a=g.useCallback((P,k)=>u(R=>({...R,[P]:{...R[P]??{},...k}})),[]),d=g.useCallback(P=>{u(k=>({...k,[P]:void 0})),b(k=>({...k,[P]:{}}))},[]),[f,p]=g.useState({}),m=g.useCallback(P=>f[P]??[],[f]),h=g.useCallback((P,k)=>{p(R=>({...R,[P]:[...R[P]??[],k]}))},[]),v=g.useCallback((P,k)=>{p(R=>({...R,[P]:(R[P]??[]).filter($=>$.id!==k)}))},[]),[y,b]=g.useState({}),x=g.useCallback(P=>y[P]??{},[y]),S=g.useCallback((P,k)=>{b(R=>({...R,[P]:{...R[P]??{},...k}}))},[]),[E,A]=g.useState({}),j=g.useCallback((P,k)=>{A(R=>{const $=new Set(R[P]).add(k);return{...R,[P]:$}})},[]),O=g.useCallback((P,k)=>{A(R=>{const $=new Set(R[P]);return $.delete(k),{...R,[P]:$}})},[]),T=g.useCallback(P=>Array.from(E[P]??[]).join(" ")||void 0,[E]);return w.jsx(Jx,{scope:n,getFieldValidity:s,onFieldValidityChange:a,getFieldCustomMatcherEntries:m,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:v,getFieldCustomErrors:x,onFieldCustomErrorsChange:S,onFieldValiditionClear:d,children:w.jsx(eE,{scope:n,onFieldMessageIdAdd:j,onFieldMessageIdRemove:O,getFieldDescription:T,children:w.jsx(z.form,{...o,ref:l,onInvalid:N(e.onInvalid,P=>{const k=Ph(P.currentTarget);k===P.target&&k.focus(),P.preventDefault()}),onSubmit:N(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:N(e.onReset,r)})})})});tE.displayName=Xs;var Ks="FormField",[nE,Ys]=Ws(Ks),rE=g.forwardRef((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,l=wr(Ks,n).getFieldValidity(r),c=qe();return w.jsx(nE,{scope:n,id:c,name:r,serverInvalid:o,children:w.jsx(z.div,{"data-valid":Zs(l,o),"data-invalid":Qs(l,o),...i,ref:t})})});rE.displayName=Ks;var Fa="FormLabel",oE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=wr(Fa,n),i=Ys(Fa,n),l=r.htmlFor||i.id,c=o.getFieldValidity(i.name);return w.jsx(Ch,{"data-valid":Zs(c,i.serverInvalid),"data-invalid":Qs(c,i.serverInvalid),...r,ref:t,htmlFor:l})});oE.displayName=Fa;var Do="FormControl",iE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=wr(Do,n),i=Ys(Do,n),l=_h(Do,n),c=g.useRef(null),u=re(t,c),s=r.name||i.name,a=r.id||i.id,d=o.getFieldCustomMatcherEntries(s),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:m}=o,h=g.useCallback(async b=>{if(Rh(b.validity)){const R=oa(b.validity);f(s,R);return}const x=b.form?new FormData(b.form):new FormData,S=[b.value,x],E=[],A=[];d.forEach(R=>{mE(R,S)?A.push(R):vE(R)&&E.push(R)});const j=E.map(({id:R,match:$})=>[R,$(...S)]),O=Object.fromEntries(j),T=Object.values(O).some(Boolean),P=T;b.setCustomValidity(P?rr:"");const k=oa(b.validity);if(f(s,k),p(s,O),!T&&A.length>0){const R=A.map(({id:X,match:G})=>G(...S).then(L=>[X,L])),$=await Promise.all(R),F=Object.fromEntries($),H=Object.values(F).some(Boolean);b.setCustomValidity(H?rr:"");const B=oa(b.validity);f(s,B),p(s,F)}},[d,s,p,f]);g.useEffect(()=>{const b=c.current;if(b){const x=()=>h(b);return b.addEventListener("change",x),()=>b.removeEventListener("change",x)}},[h]);const v=g.useCallback(()=>{const b=c.current;b&&(b.setCustomValidity(""),m(s))},[s,m]);g.useEffect(()=>{var b;const x=(b=c.current)==null?void 0:b.form;if(x)return x.addEventListener("reset",v),()=>x.removeEventListener("reset",v)},[v]),g.useEffect(()=>{const b=c.current,x=b==null?void 0:b.closest("form");if(x&&i.serverInvalid){const S=Ph(x);S===b&&S.focus()}},[i.serverInvalid]);const y=o.getFieldValidity(s);return w.jsx(z.input,{"data-valid":Zs(y,i.serverInvalid),"data-invalid":Qs(y,i.serverInvalid),"aria-invalid":i.serverInvalid?!0:void 0,"aria-describedby":l.getFieldDescription(s),title:"",...r,ref:u,id:a,name:s,onInvalid:N(e.onInvalid,b=>{const x=b.currentTarget;h(x)}),onChange:N(e.onChange,b=>{v()})})});iE.displayName=Do;var rr="This value is not valid",aE={badInput:rr,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},xr="FormMessage",sE=g.forwardRef((e,t)=>{const{match:n,name:r,...o}=e,i=Ys(xr,e.__scopeForm),l=r??i.name;return n===void 0?w.jsx(qs,{...o,ref:t,name:l,children:e.children||rr}):typeof n=="function"?w.jsx(uE,{match:n,...o,ref:t,name:l}):w.jsx(lE,{match:n,...o,ref:t,name:l})});sE.displayName=xr;var lE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...l}=e,c=wr(xr,l.__scopeForm).getFieldValidity(o);return r||c!=null&&c[n]?w.jsx(qs,{ref:t,...l,name:o,children:i??aE[n]}):null}),uE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:l,...c}=e,u=wr(xr,c.__scopeForm),s=g.useRef(null),a=re(t,s),d=qe(),f=i??d,p=g.useMemo(()=>({id:f,match:n}),[f,n]),{onFieldCustomMatcherEntryAdd:m,onFieldCustomMatcherEntryRemove:h}=u;g.useEffect(()=>(m(o,p),()=>h(o,p.id)),[p,o,m,h]);const v=u.getFieldValidity(o),y=u.getFieldCustomErrors(o)[f];return r||v&&!Rh(v)&&y?w.jsx(qs,{id:f,ref:a,...c,name:o,children:l??rr}):null}),qs=g.forwardRef((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,l=_h(xr,n),c=qe(),u=r??c,{onFieldMessageIdAdd:s,onFieldMessageIdRemove:a}=l;return g.useEffect(()=>(s(o,u),()=>a(o,u)),[o,u,s,a]),w.jsx(z.span,{id:u,...i,ref:t})}),cE="FormSubmit",dE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e;return w.jsx(z.button,{type:"submit",...r,ref:t})});dE.displayName=cE;function oa(e){const t={};for(const n in e)t[n]=e[n];return t}function fE(e){return e instanceof HTMLElement}function pE(e){return"validity"in e}function hE(e){return pE(e)&&(e.validity.valid===!1||e.getAttribute("aria-invalid")==="true")}function Ph(e){const t=e.elements,[n]=Array.from(t).filter(fE).filter(hE);return n}function mE(e,t){return e.match.constructor.name==="AsyncFunction"||gE(e.match,t)}function vE(e){return e.match.constructor.name==="Function"}function gE(e,t){return e(...t)instanceof Promise}function Rh(e){let t=!1;for(const n in e){const r=n;if(r!=="valid"&&r!=="customError"&&e[r]){t=!0;break}}return t}function Zs(e,t){if((e==null?void 0:e.valid)===!0&&!t)return!0}function Qs(e,t){if((e==null?void 0:e.valid)===!1||t)return!0}function Xo(e,[t,n]){return Math.min(n,Math.max(t,e))}var Oh="Popover",[Th]=xe(Oh,[jt]),_i=jt(),[J2,Jt]=Th(Oh),jh="PopoverAnchor",yE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(jh,n),i=_i(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:c}=o;return g.useEffect(()=>(l(),()=>c()),[l,c]),w.jsx(vr,{...i,...r,ref:t})});yE.displayName=jh;var Mh="PopoverTrigger",bE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(Mh,n),i=_i(n),l=re(t,o.triggerRef),c=w.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dh(o.open),...r,ref:l,onClick:N(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?c:w.jsx(vr,{asChild:!0,...i,children:c})});bE.displayName=Mh;var wE="PopoverPortal",[ej,xE]=Th(wE,{forceMount:void 0}),bn="PopoverContent",EE=g.forwardRef((e,t)=>{const n=xE(bn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Jt(bn,e.__scopePopover);return w.jsx(Ve,{present:r||i.open,children:i.modal?w.jsx(CE,{...o,ref:t}):w.jsx(_E,{...o,ref:t})})});EE.displayName=bn;var SE=_t("PopoverContent.RemoveScroll"),CE=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(null),o=re(t,r),i=g.useRef(!1);return g.useEffect(()=>{const l=r.current;if(l)return fi(l)},[]),w.jsx(fr,{as:SE,allowPinchZoom:!0,children:w.jsx(Ah,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:N(e.onCloseAutoFocus,l=>{var c;l.preventDefault(),i.current||(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:N(e.onPointerDownOutside,l=>{const c=l.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0,s=c.button===2||u;i.current=s},{checkForDefaultPrevented:!1}),onFocusOutside:N(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),_E=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return w.jsx(Ah,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;(c=n.triggerRef.current)!=null&&c.contains(u)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Ah=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:s,onInteractOutside:a,...d}=e,f=Jt(bn,n),p=_i(n);return ci(),w.jsx(dr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:s,onDismiss:()=>f.onOpenChange(!1),children:w.jsx(yi,{"data-state":Dh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kh="PopoverClose",PE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(kh,n);return w.jsx(z.button,{type:"button",...r,ref:t,onClick:N(e.onClick,()=>o.onOpenChange(!1))})});PE.displayName=kh;var RE="PopoverArrow",OE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=_i(n);return w.jsx(bi,{...o,...r,ref:t})});OE.displayName=RE;function Dh(e){return e?"open":"closed"}var Js="Progress",el=100,[TE]=xe(Js),[jE,ME]=TE(Js),AE=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=DE,...l}=e;(o||o===0)&&!_u(o)&&console.error(LE(`${o}`,"Progress"));const c=_u(o)?o:el;r!==null&&!Pu(r,c)&&console.error(IE(`${r}`,"Progress"));const u=Pu(r,c)?r:null,s=Ko(u)?i(u,c):void 0;return w.jsx(jE,{scope:n,value:u,max:c,children:w.jsx(z.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Ko(u)?u:void 0,"aria-valuetext":s,role:"progressbar","data-state":Ih(u,c),"data-value":u??void 0,"data-max":c,...l,ref:t})})});AE.displayName=Js;var Lh="ProgressIndicator",kE=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=ME(Lh,n);return w.jsx(z.div,{"data-state":Ih(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});kE.displayName=Lh;function DE(e,t){return`${Math.round(e/t*100)}%`}function Ih(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Ko(e){return typeof e=="number"}function _u(e){return Ko(e)&&!isNaN(e)&&e>0}function Pu(e,t){return Ko(e)&&!isNaN(e)&&e<=t&&e>=0}function LE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${el}\`.`}function IE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
91
|
+
*/var du;function B1(){return du||(du=1,process.env.NODE_ENV!=="production"&&(function(){function e(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}function t(p,m){a||o.startTransition===void 0||(a=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=m();if(!d){var v=m();i(h,v)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),d=!0)}v=l({inst:{value:h,getSnapshot:m}});var y=v[0].inst,b=v[1];return c(function(){y.value=h,y.getSnapshot=m,n(y)&&b({inst:y})},[p,h,m]),u(function(){return n(y)&&b({inst:y}),p(function(){n(y)&&b({inst:y})})},[p]),s(h),h}function n(p){var m=p.getSnapshot;p=p.value;try{var h=m();return!i(p,h)}catch{return!0}}function r(p,m){return m()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=_,i=typeof Object.is=="function"?Object.is:e,l=o.useState,u=o.useEffect,c=o.useLayoutEffect,s=o.useDebugValue,a=!1,d=!1,f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;cu.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:f,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),cu}var fu;function z1(){return fu||(fu=1,process.env.NODE_ENV==="production"?Qi.exports=$1():Qi.exports=B1()),Qi.exports}var U1=z1();function H1(){return U1.useSyncExternalStore(W1,()=>!0,()=>!1)}function W1(){return()=>{}}var js="Avatar",[G1]=xe(js),[X1,ap]=G1(js),sp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=g.useState("idle");return w.jsx(X1,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i,children:w.jsx(z.span,{...r,ref:t})})});sp.displayName=js;var lp="AvatarImage",up=g.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=()=>{},...i}=e,l=ap(lp,n),u=K1(r,i),c=Ze(s=>{o(s),l.onImageLoadingStatusChange(s)});return Ce(()=>{u!=="idle"&&c(u)},[u,c]),u==="loaded"?w.jsx(z.img,{...i,ref:t,src:r}):null});up.displayName=lp;var cp="AvatarFallback",dp=g.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=ap(cp,n),[l,u]=g.useState(r===void 0);return g.useEffect(()=>{if(r!==void 0){const c=window.setTimeout(()=>u(!0),r);return()=>window.clearTimeout(c)}},[r]),l&&i.imageLoadingStatus!=="loaded"?w.jsx(z.span,{...o,ref:t}):null});dp.displayName=cp;function pu(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function K1(e,{referrerPolicy:t,crossOrigin:n}){const r=H1(),o=g.useRef(null),i=r?(o.current||(o.current=new window.Image),o.current):null,[l,u]=g.useState(()=>pu(i,e));return Ce(()=>{u(pu(i,e))},[i,e]),Ce(()=>{const c=d=>()=>{u(d)};if(!i)return;const s=c("loaded"),a=c("error");return i.addEventListener("load",s),i.addEventListener("error",a),t&&(i.referrerPolicy=t),typeof n=="string"&&(i.crossOrigin=n),()=>{i.removeEventListener("load",s),i.removeEventListener("error",a)}},[i,n,t]),l}var Y1=sp,q1=up,Z1=dp;function fr(e){const t=g.useRef({value:e,previous:e});return g.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function pr(e){const[t,n]=g.useState(void 0);return Ce(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let l,u;if("borderBoxSize"in i){const c=i.borderBoxSize,s=Array.isArray(c)?c[0]:c;l=s.inlineSize,u=s.blockSize}else l=e.offsetWidth,u=e.offsetHeight;n({width:l,height:u})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var fi="Checkbox",[Q1]=xe(fi),[J1,Ms]=Q1(fi);function eb(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:o,disabled:i,form:l,name:u,onCheckedChange:c,required:s,value:a="on",internal_do_not_use_render:d}=e,[f,p]=Fe({prop:n,defaultProp:o??!1,onChange:c,caller:fi}),[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useRef(!1),x=m?!!l||!!m.closest("form"):!0,E={checked:f,disabled:i,setChecked:p,control:m,setControl:h,name:u,form:l,value:a,hasConsumerStoppedPropagationRef:b,required:s,defaultChecked:St(o)?!1:o,isFormControl:x,bubbleInput:v,setBubbleInput:y};return w.jsx(J1,{scope:t,...E,children:nb(d)?d(E):r})}var fp="CheckboxTrigger",pp=g.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},o)=>{const{control:i,value:l,disabled:u,checked:c,required:s,setControl:a,setChecked:d,hasConsumerStoppedPropagationRef:f,isFormControl:p,bubbleInput:m}=Ms(fp,e),h=re(o,a),v=g.useRef(c);return g.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const b=()=>d(v.current);return y.addEventListener("reset",b),()=>y.removeEventListener("reset",b)}},[i,d]),w.jsx(z.button,{type:"button",role:"checkbox","aria-checked":St(c)?"mixed":c,"aria-required":s,"data-state":yp(c),"data-disabled":u?"":void 0,disabled:u,value:l,...r,ref:h,onKeyDown:L(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:L(n,y=>{d(b=>St(b)?!0:!b),m&&p&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});pp.displayName=fp;var hp=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:o,defaultChecked:i,required:l,disabled:u,value:c,onCheckedChange:s,form:a,...d}=e;return w.jsx(eb,{__scopeCheckbox:n,checked:o,defaultChecked:i,disabled:u,required:l,onCheckedChange:s,name:r,form:a,value:c,internal_do_not_use_render:({isFormControl:f})=>w.jsxs(w.Fragment,{children:[w.jsx(pp,{...d,ref:t,__scopeCheckbox:n}),f&&w.jsx(gp,{__scopeCheckbox:n})]})})});hp.displayName=fi;var mp="CheckboxIndicator",tb=g.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...o}=e,i=Ms(mp,n);return w.jsx(Ve,{present:r||St(i.checked)||i.checked===!0,children:w.jsx(z.span,{"data-state":yp(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t,style:{pointerEvents:"none",...e.style}})})});tb.displayName=mp;var vp="CheckboxBubbleInput",gp=g.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:l,required:u,disabled:c,name:s,value:a,form:d,bubbleInput:f,setBubbleInput:p}=Ms(vp,e),m=re(n,p),h=fr(i),v=pr(r);g.useEffect(()=>{const b=f;if(!b)return;const x=window.HTMLInputElement.prototype,E=Object.getOwnPropertyDescriptor(x,"checked").set,C=!o.current;if(h!==i&&E){const T=new Event("click",{bubbles:C});b.indeterminate=St(i),E.call(b,St(i)?!1:i),b.dispatchEvent(T)}},[f,h,i,o]);const y=g.useRef(St(i)?!1:i);return w.jsx(z.input,{type:"checkbox","aria-hidden":!0,defaultChecked:l??y.current,required:u,disabled:c,name:s,value:a,form:d,...t,tabIndex:-1,ref:m,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});gp.displayName=vp;function nb(e){return typeof e=="function"}function St(e){return e==="indeterminate"}function yp(e){return St(e)?"indeterminate":e?"checked":"unchecked"}const rb=["top","right","bottom","left"],Pt=Math.min,Ie=Math.max,$o=Math.round,Br=Math.floor,rt=e=>({x:e,y:e}),ob={left:"right",right:"left",bottom:"top",top:"bottom"},ib={start:"end",end:"start"};function ka(e,t,n){return Ie(e,Pt(t,n))}function pt(e,t){return typeof e=="function"?e(t):e}function ht(e){return e.split("-")[0]}function Sn(e){return e.split("-")[1]}function As(e){return e==="x"?"y":"x"}function ks(e){return e==="y"?"height":"width"}const ab=new Set(["top","bottom"]);function nt(e){return ab.has(ht(e))?"y":"x"}function Ds(e){return As(nt(e))}function sb(e,t,n){n===void 0&&(n=!1);const r=Sn(e),o=Ds(e),i=ks(o);let l=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Bo(l)),[l,Bo(l)]}function lb(e){const t=Bo(e);return[Da(e),t,Da(t)]}function Da(e){return e.replace(/start|end/g,t=>ib[t])}const hu=["left","right"],mu=["right","left"],ub=["top","bottom"],cb=["bottom","top"];function db(e,t,n){switch(e){case"top":case"bottom":return n?t?mu:hu:t?hu:mu;case"left":case"right":return t?ub:cb;default:return[]}}function fb(e,t,n,r){const o=Sn(e);let i=db(ht(e),n==="start",r);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(Da)))),i}function Bo(e){return e.replace(/left|right|bottom|top/g,t=>ob[t])}function pb(e){return{top:0,right:0,bottom:0,left:0,...e}}function bp(e){return typeof e!="number"?pb(e):{top:e,right:e,bottom:e,left:e}}function zo(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function vu(e,t,n){let{reference:r,floating:o}=e;const i=nt(t),l=Ds(t),u=ks(l),c=ht(t),s=i==="y",a=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[u]/2-o[u]/2;let p;switch(c){case"top":p={x:a,y:r.y-o.height};break;case"bottom":p={x:a,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Sn(t)){case"start":p[l]-=f*(n&&s?-1:1);break;case"end":p[l]+=f*(n&&s?-1:1);break}return p}async function hb(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:l,elements:u,strategy:c}=e,{boundary:s="clippingAncestors",rootBoundary:a="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=pt(t,e),m=bp(p),h=u[f?d==="floating"?"reference":"floating":d],v=zo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(h)))==null||n?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:s,rootBoundary:a,strategy:c})),y=d==="floating"?{x:r,y:o,width:l.floating.width,height:l.floating.height}:l.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),x=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},E=zo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-E.top+m.top)/x.y,bottom:(E.bottom-v.bottom+m.bottom)/x.y,left:(v.left-E.left+m.left)/x.x,right:(E.right-v.right+m.right)/x.x}}const mb=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:a,y:d}=vu(s,r,c),f=r,p={},m=0;for(let v=0;v<u.length;v++){var h;const{name:y,fn:b}=u[v],{x,y:E,data:C,reset:T}=await b({x:a,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:s,platform:{...l,detectOverflow:(h=l.detectOverflow)!=null?h:hb},elements:{reference:e,floating:t}});a=x??a,d=E??d,p={...p,[y]:{...p[y],...C}},T&&m<=50&&(m++,typeof T=="object"&&(T.placement&&(f=T.placement),T.rects&&(s=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:a,y:d}=vu(s,f,c)),v=-1)}return{x:a,y:d,placement:f,strategy:o,middlewareData:p}},vb=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:l,elements:u,middlewareData:c}=t,{element:s,padding:a=0}=pt(e,t)||{};if(s==null)return{};const d=bp(a),f={x:n,y:r},p=Ds(o),m=ks(p),h=await l.getDimensions(s),v=p==="y",y=v?"top":"left",b=v?"bottom":"right",x=v?"clientHeight":"clientWidth",E=i.reference[m]+i.reference[p]-f[p]-i.floating[m],C=f[p]-i.reference[p],T=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s));let A=T?T[x]:0;(!A||!await(l.isElement==null?void 0:l.isElement(T)))&&(A=u.floating[x]||i.floating[m]);const j=E/2-C/2,R=A/2-h[m]/2-1,P=Pt(d[y],R),k=Pt(d[b],R),O=P,$=A-h[m]-k,F=A/2-h[m]/2+j,H=ka(O,F,$),B=!c.arrow&&Sn(o)!=null&&F!==H&&i.reference[m]/2-(F<O?P:k)-h[m]/2<0,G=B?F<O?F-O:F-$:0;return{[p]:f[p]+G,data:{[p]:H,centerOffset:F-H-G,...B&&{alignmentOffset:G}},reset:B}}}),gb=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:l,initialPlacement:u,platform:c,elements:s}=t,{mainAxis:a=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=pt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=ht(o),b=nt(u),x=ht(u)===u,E=await(c.isRTL==null?void 0:c.isRTL(s.floating)),C=f||(x||!h?[Bo(u)]:lb(u)),T=m!=="none";!f&&T&&C.push(...fb(u,h,m,E));const A=[u,...C],j=await c.detectOverflow(t,v),R=[];let P=((r=i.flip)==null?void 0:r.overflows)||[];if(a&&R.push(j[y]),d){const F=sb(o,l,E);R.push(j[F[0]],j[F[1]])}if(P=[...P,{placement:o,overflows:R}],!R.every(F=>F<=0)){var k,O;const F=(((k=i.flip)==null?void 0:k.index)||0)+1,H=A[F];if(H&&(!(d==="alignment"&&b!==nt(H))||P.every(G=>nt(G.placement)===b?G.overflows[0]>0:!0)))return{data:{index:F,overflows:P},reset:{placement:H}};let B=(O=P.filter(G=>G.overflows[0]<=0).sort((G,W)=>G.overflows[1]-W.overflows[1])[0])==null?void 0:O.placement;if(!B)switch(p){case"bestFit":{var $;const G=($=P.filter(W=>{if(T){const N=nt(W.placement);return N===b||N==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(N=>N>0).reduce((N,M)=>N+M,0)]).sort((W,N)=>W[1]-N[1])[0])==null?void 0:$[0];G&&(B=G);break}case"initialPlacement":B=u;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function gu(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yu(e){return rb.some(t=>e[t]>=0)}const yb=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=pt(e,t);switch(o){case"referenceHidden":{const l=await r.detectOverflow(t,{...i,elementContext:"reference"}),u=gu(l,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:yu(u)}}}case"escaped":{const l=await r.detectOverflow(t,{...i,altBoundary:!0}),u=gu(l,n.floating);return{data:{escapedOffsets:u,escaped:yu(u)}}}default:return{}}}}},wp=new Set(["left","top"]);async function bb(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),l=ht(n),u=Sn(n),c=nt(n)==="y",s=wp.has(l)?-1:1,a=i&&c?-1:1,d=pt(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&typeof m=="number"&&(p=u==="end"?m*-1:m),c?{x:p*a,y:f*s}:{x:f*s,y:p*a}}const wb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:l,middlewareData:u}=t,c=await bb(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:l}}}}},xb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:l=!0,crossAxis:u=!1,limiter:c={fn:y=>{let{x:b,y:x}=y;return{x:b,y:x}}},...s}=pt(e,t),a={x:n,y:r},d=await i.detectOverflow(t,s),f=nt(ht(o)),p=As(f);let m=a[p],h=a[f];if(l){const y=p==="y"?"top":"left",b=p==="y"?"bottom":"right",x=m+d[y],E=m-d[b];m=ka(x,m,E)}if(u){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",x=h+d[y],E=h-d[b];h=ka(x,h,E)}const v=c.fn({...t,[p]:m,[f]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:l,[f]:u}}}}}},Eb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:c=!0,crossAxis:s=!0}=pt(e,t),a={x:n,y:r},d=nt(o),f=As(d);let p=a[f],m=a[d];const h=pt(u,t),v=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){const x=f==="y"?"height":"width",E=i.reference[f]-i.floating[x]+v.mainAxis,C=i.reference[f]+i.reference[x]-v.mainAxis;p<E?p=E:p>C&&(p=C)}if(s){var y,b;const x=f==="y"?"width":"height",E=wp.has(ht(o)),C=i.reference[d]-i.floating[x]+(E&&((y=l.offset)==null?void 0:y[d])||0)+(E?0:v.crossAxis),T=i.reference[d]+i.reference[x]+(E?0:((b=l.offset)==null?void 0:b[d])||0)-(E?v.crossAxis:0);m<C?m=C:m>T&&(m=T)}return{[f]:p,[d]:m}}}},Cb=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:l,elements:u}=t,{apply:c=()=>{},...s}=pt(e,t),a=await l.detectOverflow(t,s),d=ht(o),f=Sn(o),p=nt(o)==="y",{width:m,height:h}=i.floating;let v,y;d==="top"||d==="bottom"?(v=d,y=f===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(y=d,v=f==="end"?"top":"bottom");const b=h-a.top-a.bottom,x=m-a.left-a.right,E=Pt(h-a[v],b),C=Pt(m-a[y],x),T=!t.middlewareData.shift;let A=E,j=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(j=x),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(A=b),T&&!f){const P=Ie(a.left,0),k=Ie(a.right,0),O=Ie(a.top,0),$=Ie(a.bottom,0);p?j=m-2*(P!==0||k!==0?P+k:Ie(a.left,a.right)):A=h-2*(O!==0||$!==0?O+$:Ie(a.top,a.bottom))}await c({...t,availableWidth:j,availableHeight:A});const R=await l.getDimensions(u.floating);return m!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function pi(){return typeof window<"u"}function _n(e){return xp(e)?(e.nodeName||"").toLowerCase():"#document"}function Le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ut(e){var t;return(t=(xp(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function xp(e){return pi()?e instanceof Node||e instanceof Le(e).Node:!1}function Qe(e){return pi()?e instanceof Element||e instanceof Le(e).Element:!1}function at(e){return pi()?e instanceof HTMLElement||e instanceof Le(e).HTMLElement:!1}function bu(e){return!pi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Le(e).ShadowRoot}const Sb=new Set(["inline","contents"]);function hr(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Je(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Sb.has(o)}const _b=new Set(["table","td","th"]);function Pb(e){return _b.has(_n(e))}const Rb=[":popover-open",":modal"];function hi(e){return Rb.some(t=>{try{return e.matches(t)}catch{return!1}})}const Ob=["transform","translate","scale","rotate","perspective"],Tb=["transform","translate","scale","rotate","perspective","filter"],jb=["paint","layout","strict","content"];function Ns(e){const t=Is(),n=Qe(e)?Je(e):e;return Ob.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Tb.some(r=>(n.willChange||"").includes(r))||jb.some(r=>(n.contain||"").includes(r))}function Mb(e){let t=Rt(e);for(;at(t)&&!yn(t);){if(Ns(t))return t;if(hi(t))return null;t=Rt(t)}return null}function Is(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ab=new Set(["html","body","#document"]);function yn(e){return Ab.has(_n(e))}function Je(e){return Le(e).getComputedStyle(e)}function mi(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Rt(e){if(_n(e)==="html")return e;const t=e.assignedSlot||e.parentNode||bu(e)&&e.host||ut(e);return bu(t)?t.host:t}function Ep(e){const t=Rt(e);return yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:at(t)&&hr(t)?t:Ep(t)}function Jn(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ep(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),l=Le(o);if(i){const u=Na(l);return t.concat(l,l.visualViewport||[],hr(o)?o:[],u&&n?Jn(u):[])}return t.concat(o,Jn(o,[],n))}function Na(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Cp(e){const t=Je(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=at(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,u=$o(n)!==i||$o(r)!==l;return u&&(n=i,r=l),{width:n,height:r,$:u}}function Ls(e){return Qe(e)?e:e.contextElement}function mn(e){const t=Ls(e);if(!at(t))return rt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Cp(t);let l=(i?$o(n.width):n.width)/r,u=(i?$o(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const kb=rt(0);function Sp(e){const t=Le(e);return!Is()||!t.visualViewport?kb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Db(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Le(e)?!1:t}function Xt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ls(e);let l=rt(1);t&&(r?Qe(r)&&(l=mn(r)):l=mn(e));const u=Db(i,n,r)?Sp(i):rt(0);let c=(o.left+u.x)/l.x,s=(o.top+u.y)/l.y,a=o.width/l.x,d=o.height/l.y;if(i){const f=Le(i),p=r&&Qe(r)?Le(r):r;let m=f,h=Na(m);for(;h&&r&&p!==m;){const v=mn(h),y=h.getBoundingClientRect(),b=Je(h),x=y.left+(h.clientLeft+parseFloat(b.paddingLeft))*v.x,E=y.top+(h.clientTop+parseFloat(b.paddingTop))*v.y;c*=v.x,s*=v.y,a*=v.x,d*=v.y,c+=x,s+=E,m=Le(h),h=Na(m)}}return zo({width:a,height:d,x:c,y:s})}function vi(e,t){const n=mi(e).scrollLeft;return t?t.left+n:Xt(ut(e)).left+n}function _p(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-vi(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Nb(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",l=ut(r),u=t?hi(t.floating):!1;if(r===l||u&&i)return n;let c={scrollLeft:0,scrollTop:0},s=rt(1);const a=rt(0),d=at(r);if((d||!d&&!i)&&((_n(r)!=="body"||hr(l))&&(c=mi(r)),at(r))){const p=Xt(r);s=mn(r),a.x=p.x+r.clientLeft,a.y=p.y+r.clientTop}const f=l&&!d&&!i?_p(l,c):rt(0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+a.x+f.x,y:n.y*s.y-c.scrollTop*s.y+a.y+f.y}}function Ib(e){return Array.from(e.getClientRects())}function Lb(e){const t=ut(e),n=mi(e),r=e.ownerDocument.body,o=Ie(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ie(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+vi(e);const u=-n.scrollTop;return Je(r).direction==="rtl"&&(l+=Ie(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:l,y:u}}const wu=25;function Fb(e,t){const n=Le(e),r=ut(e),o=n.visualViewport;let i=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){i=o.width,l=o.height;const a=Is();(!a||a&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}const s=vi(r);if(s<=0){const a=r.ownerDocument,d=a.body,f=getComputedStyle(d),p=a.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(r.clientWidth-d.clientWidth-p);m<=wu&&(i-=m)}else s<=wu&&(i+=s);return{width:i,height:l,x:u,y:c}}const Vb=new Set(["absolute","fixed"]);function $b(e,t){const n=Xt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=at(e)?mn(e):rt(1),l=e.clientWidth*i.x,u=e.clientHeight*i.y,c=o*i.x,s=r*i.y;return{width:l,height:u,x:c,y:s}}function xu(e,t,n){let r;if(t==="viewport")r=Fb(e,n);else if(t==="document")r=Lb(ut(e));else if(Qe(t))r=$b(t,n);else{const o=Sp(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zo(r)}function Pp(e,t){const n=Rt(e);return n===t||!Qe(n)||yn(n)?!1:Je(n).position==="fixed"||Pp(n,t)}function Bb(e,t){const n=t.get(e);if(n)return n;let r=Jn(e,[],!1).filter(u=>Qe(u)&&_n(u)!=="body"),o=null;const i=Je(e).position==="fixed";let l=i?Rt(e):e;for(;Qe(l)&&!yn(l);){const u=Je(l),c=Ns(l);!c&&u.position==="fixed"&&(o=null),(i?!c&&!o:!c&&u.position==="static"&&o&&Vb.has(o.position)||hr(l)&&!c&&Pp(e,l))?r=r.filter(s=>s!==l):o=u,l=Rt(l)}return t.set(e,r),r}function zb(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?hi(t)?[]:Bb(t,this._c):[].concat(n),r],l=i[0],u=i.reduce((c,s)=>{const a=xu(t,s,o);return c.top=Ie(a.top,c.top),c.right=Pt(a.right,c.right),c.bottom=Pt(a.bottom,c.bottom),c.left=Ie(a.left,c.left),c},xu(t,l,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Ub(e){const{width:t,height:n}=Cp(e);return{width:t,height:n}}function Hb(e,t,n){const r=at(t),o=ut(t),i=n==="fixed",l=Xt(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const c=rt(0);function s(){c.x=vi(o)}if(r||!r&&!i)if((_n(t)!=="body"||hr(o))&&(u=mi(t)),r){const p=Xt(t,!0,i,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&s();i&&!r&&o&&s();const a=o&&!r&&!i?_p(o,u):rt(0),d=l.left+u.scrollLeft-c.x-a.x,f=l.top+u.scrollTop-c.y-a.y;return{x:d,y:f,width:l.width,height:l.height}}function ea(e){return Je(e).position==="static"}function Eu(e,t){if(!at(e)||Je(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ut(e)===n&&(n=n.ownerDocument.body),n}function Rp(e,t){const n=Le(e);if(hi(e))return n;if(!at(e)){let o=Rt(e);for(;o&&!yn(o);){if(Qe(o)&&!ea(o))return o;o=Rt(o)}return n}let r=Eu(e,t);for(;r&&Pb(r)&&ea(r);)r=Eu(r,t);return r&&yn(r)&&ea(r)&&!Ns(r)?n:r||Mb(e)||n}const Wb=async function(e){const t=this.getOffsetParent||Rp,n=this.getDimensions,r=await n(e.floating);return{reference:Hb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gb(e){return Je(e).direction==="rtl"}const Xb={convertOffsetParentRelativeRectToViewportRelativeRect:Nb,getDocumentElement:ut,getClippingRect:zb,getOffsetParent:Rp,getElementRects:Wb,getClientRects:Ib,getDimensions:Ub,getScale:mn,isElement:Qe,isRTL:Gb};function Op(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Kb(e,t){let n=null,r;const o=ut(e);function i(){var u;clearTimeout(r),(u=n)==null||u.disconnect(),n=null}function l(u,c){u===void 0&&(u=!1),c===void 0&&(c=1),i();const s=e.getBoundingClientRect(),{left:a,top:d,width:f,height:p}=s;if(u||t(),!f||!p)return;const m=Br(d),h=Br(o.clientWidth-(a+f)),v=Br(o.clientHeight-(d+p)),y=Br(a),b={rootMargin:-m+"px "+-h+"px "+-v+"px "+-y+"px",threshold:Ie(0,Pt(1,c))||1};let x=!0;function E(C){const T=C[0].intersectionRatio;if(T!==c){if(!x)return l();T?l(!1,T):r=setTimeout(()=>{l(!1,1e-7)},1e3)}T===1&&!Op(s,e.getBoundingClientRect())&&l(),x=!1}try{n=new IntersectionObserver(E,{...b,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,b)}n.observe(e)}return l(!0),i}function Yb(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,s=Ls(e),a=o||i?[...s?Jn(s):[],...Jn(t)]:[];a.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const d=s&&u?Kb(s,n):null;let f=-1,p=null;l&&(p=new ResizeObserver(y=>{let[b]=y;b&&b.target===s&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(t)})),n()}),s&&!c&&p.observe(s),p.observe(t));let m,h=c?Xt(e):null;c&&v();function v(){const y=Xt(e);h&&!Op(h,y)&&n(),h=y,m=requestAnimationFrame(v)}return n(),()=>{var y;a.forEach(b=>{o&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(m)}}const qb=wb,Zb=xb,Qb=gb,Jb=Cb,ew=yb,Cu=vb,tw=Eb,nw=(e,t,n)=>{const r=new Map,o={platform:Xb,...n},i={...o.platform,_c:r};return mb(e,t,{...o,platform:i})};var rw=typeof document<"u",ow=function(){},Ao=rw?_.useLayoutEffect:ow;function Uo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Uo(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Uo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Tp(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Su(e,t){const n=Tp(e);return Math.round(t*n)/n}function ta(e){const t=g.useRef(e);return Ao(()=>{t.current=e}),t}function iw(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:c,open:s}=e,[a,d]=g.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=g.useState(r);Uo(f,r)||p(r);const[m,h]=g.useState(null),[v,y]=g.useState(null),b=g.useCallback(W=>{W!==T.current&&(T.current=W,h(W))},[]),x=g.useCallback(W=>{W!==A.current&&(A.current=W,y(W))},[]),E=i||m,C=l||v,T=g.useRef(null),A=g.useRef(null),j=g.useRef(a),R=c!=null,P=ta(c),k=ta(o),O=ta(s),$=g.useCallback(()=>{if(!T.current||!A.current)return;const W={placement:t,strategy:n,middleware:f};k.current&&(W.platform=k.current),nw(T.current,A.current,W).then(N=>{const M={...N,isPositioned:O.current!==!1};F.current&&!Uo(j.current,M)&&(j.current=M,oi.flushSync(()=>{d(M)}))})},[f,t,n,k,O]);Ao(()=>{s===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,d(W=>({...W,isPositioned:!1})))},[s]);const F=g.useRef(!1);Ao(()=>(F.current=!0,()=>{F.current=!1}),[]),Ao(()=>{if(E&&(T.current=E),C&&(A.current=C),E&&C){if(P.current)return P.current(E,C,$);$()}},[E,C,$,P,R]);const H=g.useMemo(()=>({reference:T,floating:A,setReference:b,setFloating:x}),[b,x]),B=g.useMemo(()=>({reference:E,floating:C}),[E,C]),G=g.useMemo(()=>{const W={position:n,left:0,top:0};if(!B.floating)return W;const N=Su(B.floating,a.x),M=Su(B.floating,a.y);return u?{...W,transform:"translate("+N+"px, "+M+"px)",...Tp(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:M}},[n,u,B.floating,a.x,a.y]);return g.useMemo(()=>({...a,update:$,refs:H,elements:B,floatingStyles:G}),[a,$,H,B,G])}const aw=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Cu({element:r.current,padding:o}).fn(n):{}:r?Cu({element:r,padding:o}).fn(n):{}}}},sw=(e,t)=>({...qb(e),options:[e,t]}),lw=(e,t)=>({...Zb(e),options:[e,t]}),uw=(e,t)=>({...tw(e),options:[e,t]}),cw=(e,t)=>({...Qb(e),options:[e,t]}),dw=(e,t)=>({...Jb(e),options:[e,t]}),fw=(e,t)=>({...ew(e),options:[e,t]}),pw=(e,t)=>({...aw(e),options:[e,t]});var hw="Arrow",jp=g.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return w.jsx(z.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});jp.displayName=hw;var mw=jp,Fs="Popper",[Mp,jt]=xe(Fs),[vw,Ap]=Mp(Fs),kp=e=>{const{__scopePopper:t,children:n}=e,[r,o]=g.useState(null);return w.jsx(vw,{scope:t,anchor:r,onAnchorChange:o,children:n})};kp.displayName=Fs;var Dp="PopperAnchor",Np=g.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ap(Dp,n),l=g.useRef(null),u=re(t,l),c=g.useRef(null);return g.useEffect(()=>{const s=c.current;c.current=(r==null?void 0:r.current)||l.current,s!==c.current&&i.onAnchorChange(c.current)}),r?null:w.jsx(z.div,{...o,ref:u})});Np.displayName=Dp;var Vs="PopperContent",[gw,yw]=Mp(Vs),Ip=g.forwardRef((e,t)=>{var n,r,o,i,l,u;const{__scopePopper:c,side:s="bottom",sideOffset:a=0,align:d="center",alignOffset:f=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:h=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:E,...C}=e,T=Ap(Vs,c),[A,j]=g.useState(null),R=re(t,fe=>j(fe)),[P,k]=g.useState(null),O=pr(P),$=(O==null?void 0:O.width)??0,F=(O==null?void 0:O.height)??0,H=s+(d!=="center"?"-"+d:""),B=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},G=Array.isArray(h)?h:[h],W=G.length>0,N={padding:B,boundary:G.filter(ww),altBoundary:W},{refs:M,floatingStyles:D,placement:ee,isPositioned:J,middlewareData:X}=iw({strategy:"fixed",placement:H,whileElementsMounted:(...fe)=>Yb(...fe,{animationFrame:x==="always"}),elements:{reference:T.anchor},middleware:[sw({mainAxis:a+F,alignmentAxis:f}),m&&lw({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?uw():void 0,...N}),m&&cw({...N}),dw({...N,apply:({elements:fe,rects:ke,availableWidth:Be,availableHeight:It})=>{const{width:Ar,height:kr}=ke.reference,Lt=fe.floating.style;Lt.setProperty("--radix-popper-available-width",`${Be}px`),Lt.setProperty("--radix-popper-available-height",`${It}px`),Lt.setProperty("--radix-popper-anchor-width",`${Ar}px`),Lt.setProperty("--radix-popper-anchor-height",`${kr}px`)}}),P&&pw({element:P,padding:p}),xw({arrowWidth:$,arrowHeight:F}),b&&fw({strategy:"referenceHidden",...N})]}),[ne,te]=Vp(ee),V=Ze(E);Ce(()=>{J&&(V==null||V())},[J,V]);const q=(n=X.arrow)==null?void 0:n.x,K=(r=X.arrow)==null?void 0:r.y,U=((o=X.arrow)==null?void 0:o.centerOffset)!==0,[oe,I]=g.useState();return Ce(()=>{A&&I(window.getComputedStyle(A).zIndex)},[A]),w.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:J?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=X.transformOrigin)==null?void 0:i.x,(l=X.transformOrigin)==null?void 0:l.y].join(" "),...((u=X.hide)==null?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(gw,{scope:c,placedSide:ne,onArrowChange:k,arrowX:q,arrowY:K,shouldHideArrow:U,children:w.jsx(z.div,{"data-side":ne,"data-align":te,...C,ref:R,style:{...C.style,animation:J?void 0:"none"}})})})});Ip.displayName=Vs;var Lp="PopperArrow",bw={top:"bottom",right:"left",bottom:"top",left:"right"},Fp=g.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,o=yw(Lp,n),i=bw[o.placedSide];return w.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]: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:w.jsx(mw,{...r,ref:t,style:{...r.style,display:"block"}})})});Fp.displayName=Lp;function ww(e){return e!==null}var xw=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:l,middlewareData:u}=t,c=((n=u.arrow)==null?void 0:n.centerOffset)!==0,s=c?0:e.arrowWidth,a=c?0:e.arrowHeight,[d,f]=Vp(i),p={start:"0%",center:"50%",end:"100%"}[f],m=(((r=u.arrow)==null?void 0:r.x)??0)+s/2,h=(((o=u.arrow)==null?void 0:o.y)??0)+a/2;let v="",y="";return d==="bottom"?(v=c?p:`${m}px`,y=`${-a}px`):d==="top"?(v=c?p:`${m}px`,y=`${l.floating.height+a}px`):d==="right"?(v=`${-a}px`,y=c?p:`${h}px`):d==="left"&&(v=`${l.floating.width+a}px`,y=c?p:`${h}px`),{data:{x:v,y}}}});function Vp(e){const[t,n="center"]=e.split("-");return[t,n]}var Ew=kp,mr=Np,gi=Ip,yi=Fp,na="rovingFocusGroup.onEntryFocus",Cw={bubbles:!1,cancelable:!0},vr="RovingFocusGroup",[Ia,$p,Sw]=ur(vr),[_w,Mt]=xe(vr,[Sw]),[Pw,Rw]=_w(vr),Bp=g.forwardRef((e,t)=>w.jsx(Ia.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Ia.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Ow,{...e,ref:t})})}));Bp.displayName=vr;var Ow=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:l,defaultCurrentTabStopId:u,onCurrentTabStopIdChange:c,onEntryFocus:s,preventScrollOnEntryFocus:a=!1,...d}=e,f=g.useRef(null),p=re(t,f),m=qt(i),[h,v]=Fe({prop:l,defaultProp:u??null,onChange:c,caller:vr}),[y,b]=g.useState(!1),x=Ze(s),E=$p(n),C=g.useRef(!1),[T,A]=g.useState(0);return g.useEffect(()=>{const j=f.current;if(j)return j.addEventListener(na,x),()=>j.removeEventListener(na,x)},[x]),w.jsx(Pw,{scope:n,orientation:r,dir:m,loop:o,currentTabStopId:h,onItemFocus:g.useCallback(j=>v(j),[v]),onItemShiftTab:g.useCallback(()=>b(!0),[]),onFocusableItemAdd:g.useCallback(()=>A(j=>j+1),[]),onFocusableItemRemove:g.useCallback(()=>A(j=>j-1),[]),children:w.jsx(z.div,{tabIndex:y||T===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:L(e.onMouseDown,()=>{C.current=!0}),onFocus:L(e.onFocus,j=>{const R=!C.current;if(j.target===j.currentTarget&&R&&!y){const P=new CustomEvent(na,Cw);if(j.currentTarget.dispatchEvent(P),!P.defaultPrevented){const k=E().filter(H=>H.focusable),O=k.find(H=>H.active),$=k.find(H=>H.id===h),F=[O,$,...k].filter(Boolean).map(H=>H.ref.current);Hp(F,a)}}C.current=!1}),onBlur:L(e.onBlur,()=>b(!1))})})}),zp="RovingFocusGroupItem",Up=g.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:l,...u}=e,c=qe(),s=i||c,a=Rw(zp,n),d=a.currentTabStopId===s,f=$p(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=a;return g.useEffect(()=>{if(r)return p(),()=>m()},[r,p,m]),w.jsx(Ia.ItemSlot,{scope:n,id:s,focusable:r,active:o,children:w.jsx(z.span,{tabIndex:d?0:-1,"data-orientation":a.orientation,...u,ref:t,onMouseDown:L(e.onMouseDown,v=>{r?a.onItemFocus(s):v.preventDefault()}),onFocus:L(e.onFocus,()=>a.onItemFocus(s)),onKeyDown:L(e.onKeyDown,v=>{if(v.key==="Tab"&&v.shiftKey){a.onItemShiftTab();return}if(v.target!==v.currentTarget)return;const y=Mw(v,a.orientation,a.dir);if(y!==void 0){if(v.metaKey||v.ctrlKey||v.altKey||v.shiftKey)return;v.preventDefault();let b=f().filter(x=>x.focusable).map(x=>x.ref.current);if(y==="last")b.reverse();else if(y==="prev"||y==="next"){y==="prev"&&b.reverse();const x=b.indexOf(v.currentTarget);b=a.loop?Aw(b,x+1):b.slice(x+1)}setTimeout(()=>Hp(b))}}),children:typeof l=="function"?l({isCurrentTabStop:d,hasTabStop:h!=null}):l})})});Up.displayName=zp;var Tw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function jw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Mw(e,t,n){const r=jw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Tw[r]}function Hp(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Aw(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bi=Bp,wi=Up,La=["Enter"," "],kw=["ArrowDown","PageUp","Home"],Wp=["ArrowUp","PageDown","End"],Dw=[...kw,...Wp],Nw={ltr:[...La,"ArrowRight"],rtl:[...La,"ArrowLeft"]},Iw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gr="Menu",[er,Lw,Fw]=ur(gr),[Zt,Gp]=xe(gr,[Fw,jt,Mt]),xi=jt(),Xp=Mt(),[Vw,Qt]=Zt(gr),[$w,yr]=Zt(gr),Kp=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:l=!0}=e,u=xi(t),[c,s]=g.useState(null),a=g.useRef(!1),d=Ze(i),f=qt(o);return g.useEffect(()=>{const p=()=>{a.current=!0,document.addEventListener("pointerdown",m,{capture:!0,once:!0}),document.addEventListener("pointermove",m,{capture:!0,once:!0})},m=()=>a.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",m,{capture:!0}),document.removeEventListener("pointermove",m,{capture:!0})}},[]),w.jsx(Ew,{...u,children:w.jsx(Vw,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:s,children:w.jsx($w,{scope:t,onClose:g.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:a,dir:f,modal:l,children:r})})})};Kp.displayName=gr;var Bw="MenuAnchor",$s=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xi(n);return w.jsx(mr,{...o,...r,ref:t})});$s.displayName=Bw;var Bs="MenuPortal",[zw,Yp]=Zt(Bs,{forceMount:void 0}),qp=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=Qt(Bs,t);return w.jsx(zw,{scope:t,forceMount:n,children:w.jsx(Ve,{present:n||i.open,children:w.jsx(vf,{asChild:!0,container:o,children:r})})})};qp.displayName=Bs;var He="MenuContent",[Uw,zs]=Zt(He),Zp=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=yr(He,e.__scopeMenu);return w.jsx(er.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(er.Slot,{scope:e.__scopeMenu,children:l.modal?w.jsx(Hw,{...o,ref:t}):w.jsx(Ww,{...o,ref:t})})})})}),Hw=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu),r=g.useRef(null),o=re(t,r);return g.useEffect(()=>{const i=r.current;if(i)return di(i)},[]),w.jsx(Us,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:L(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Ww=g.forwardRef((e,t)=>{const n=Qt(He,e.__scopeMenu);return w.jsx(Us,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Gw=_t("MenuContent.ScrollLock"),Us=g.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:u,onEntryFocus:c,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,v=Qt(He,n),y=yr(He,n),b=xi(n),x=Xp(n),E=Lw(n),[C,T]=g.useState(null),A=g.useRef(null),j=re(t,A,v.onContentChange),R=g.useRef(0),P=g.useRef(""),k=g.useRef(0),O=g.useRef(null),$=g.useRef("right"),F=g.useRef(0),H=m?dr:g.Fragment,B=m?{as:Gw,allowPinchZoom:!0}:void 0,G=N=>{var M,D;const ee=P.current+N,J=E().filter(K=>!K.disabled),X=document.activeElement,ne=(M=J.find(K=>K.ref.current===X))==null?void 0:M.textValue,te=J.map(K=>K.textValue),V=ox(te,ee,ne),q=(D=J.find(K=>K.textValue===V))==null?void 0:D.ref.current;(function K(U){P.current=U,window.clearTimeout(R.current),U!==""&&(R.current=window.setTimeout(()=>K(""),1e3))})(ee),q&&setTimeout(()=>q.focus())};g.useEffect(()=>()=>window.clearTimeout(R.current),[]),ui();const W=g.useCallback(N=>{var M,D;return $.current===((M=O.current)==null?void 0:M.side)&&ax(N,(D=O.current)==null?void 0:D.area)},[]);return w.jsx(Uw,{scope:n,searchRef:P,onItemEnter:g.useCallback(N=>{W(N)&&N.preventDefault()},[W]),onItemLeave:g.useCallback(N=>{var M;W(N)||((M=A.current)==null||M.focus(),T(null))},[W]),onTriggerLeave:g.useCallback(N=>{W(N)&&N.preventDefault()},[W]),pointerGraceTimerRef:k,onPointerGraceIntentChange:g.useCallback(N=>{O.current=N},[]),children:w.jsx(H,{...B,children:w.jsx(cr,{asChild:!0,trapped:o,onMountAutoFocus:L(i,N=>{var M;N.preventDefault(),(M=A.current)==null||M.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:w.jsx(Cn,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:w.jsx(bi,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:C,onCurrentTabStopIdChange:T,onEntryFocus:L(c,N=>{y.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(gi,{role:"menu","aria-orientation":"vertical","data-state":ph(v.open),"data-radix-menu-content":"",dir:y.dir,...b,...h,ref:j,style:{outline:"none",...h.style},onKeyDown:L(h.onKeyDown,N=>{const M=N.target.closest("[data-radix-menu-content]")===N.currentTarget,D=N.ctrlKey||N.altKey||N.metaKey,ee=N.key.length===1;M&&(N.key==="Tab"&&N.preventDefault(),!D&&ee&&G(N.key));const J=A.current;if(N.target!==J||!Dw.includes(N.key))return;N.preventDefault();const X=E().filter(ne=>!ne.disabled).map(ne=>ne.ref.current);Wp.includes(N.key)&&X.reverse(),nx(X)}),onBlur:L(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(R.current),P.current="")}),onPointerMove:L(e.onPointerMove,tr(N=>{const M=N.target,D=F.current!==N.clientX;if(N.currentTarget.contains(M)&&D){const ee=N.clientX>F.current?"right":"left";$.current=ee,F.current=N.clientX}}))})})})})})})});Zp.displayName=He;var Xw="MenuGroup",Hs=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"group",...r,ref:t})});Hs.displayName=Xw;var Kw="MenuLabel",Qp=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{...r,ref:t})});Qp.displayName=Kw;var Ho="MenuItem",_u="menu.itemSelect",Ei=g.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=g.useRef(null),l=yr(Ho,e.__scopeMenu),u=zs(Ho,e.__scopeMenu),c=re(t,i),s=g.useRef(!1),a=()=>{const d=i.current;if(!n&&d){const f=new CustomEvent(_u,{bubbles:!0,cancelable:!0});d.addEventListener(_u,p=>r==null?void 0:r(p),{once:!0}),mf(d,f),f.defaultPrevented?s.current=!1:l.onClose()}};return w.jsx(Jp,{...o,ref:c,disabled:n,onClick:L(e.onClick,a),onPointerDown:d=>{var f;(f=e.onPointerDown)==null||f.call(e,d),s.current=!0},onPointerUp:L(e.onPointerUp,d=>{var f;s.current||(f=d.currentTarget)==null||f.click()}),onKeyDown:L(e.onKeyDown,d=>{const f=u.searchRef.current!=="";n||f&&d.key===" "||La.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});Ei.displayName=Ho;var Jp=g.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,l=zs(Ho,n),u=Xp(n),c=g.useRef(null),s=re(t,c),[a,d]=g.useState(!1),[f,p]=g.useState("");return g.useEffect(()=>{const m=c.current;m&&p((m.textContent??"").trim())},[i.children]),w.jsx(er.ItemSlot,{scope:n,disabled:r,textValue:o??f,children:w.jsx(wi,{asChild:!0,...u,focusable:!r,children:w.jsx(z.div,{role:"menuitem","data-highlighted":a?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:s,onPointerMove:L(e.onPointerMove,tr(m=>{r?l.onItemLeave(m):(l.onItemEnter(m),m.defaultPrevented||m.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:L(e.onPointerLeave,tr(m=>l.onItemLeave(m))),onFocus:L(e.onFocus,()=>d(!0)),onBlur:L(e.onBlur,()=>d(!1))})})})}),Yw="MenuCheckboxItem",eh=g.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return w.jsx(ih,{scope:e.__scopeMenu,checked:n,children:w.jsx(Ei,{role:"menuitemcheckbox","aria-checked":Wo(n)?"mixed":n,...o,ref:t,"data-state":Gs(n),onSelect:L(o.onSelect,()=>r==null?void 0:r(Wo(n)?!0:!n),{checkForDefaultPrevented:!1})})})});eh.displayName=Yw;var th="MenuRadioGroup",[qw,Zw]=Zt(th,{value:void 0,onValueChange:()=>{}}),nh=g.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Ze(r);return w.jsx(qw,{scope:e.__scopeMenu,value:n,onValueChange:i,children:w.jsx(Hs,{...o,ref:t})})});nh.displayName=th;var rh="MenuRadioItem",oh=g.forwardRef((e,t)=>{const{value:n,...r}=e,o=Zw(rh,e.__scopeMenu),i=n===o.value;return w.jsx(ih,{scope:e.__scopeMenu,checked:i,children:w.jsx(Ei,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Gs(i),onSelect:L(r.onSelect,()=>{var l;return(l=o.onValueChange)==null?void 0:l.call(o,n)},{checkForDefaultPrevented:!1})})})});oh.displayName=rh;var Ws="MenuItemIndicator",[ih,Qw]=Zt(Ws,{checked:!1}),ah=g.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Qw(Ws,n);return w.jsx(Ve,{present:r||Wo(i.checked)||i.checked===!0,children:w.jsx(z.span,{...o,ref:t,"data-state":Gs(i.checked)})})});ah.displayName=Ws;var Jw="MenuSeparator",sh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return w.jsx(z.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});sh.displayName=Jw;var ex="MenuArrow",lh=g.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=xi(n);return w.jsx(yi,{...o,...r,ref:t})});lh.displayName=ex;var tx="MenuSub",[ej,uh]=Zt(tx),Gn="MenuSubTrigger",ch=g.forwardRef((e,t)=>{const n=Qt(Gn,e.__scopeMenu),r=yr(Gn,e.__scopeMenu),o=uh(Gn,e.__scopeMenu),i=zs(Gn,e.__scopeMenu),l=g.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:c}=i,s={__scopeMenu:e.__scopeMenu},a=g.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return g.useEffect(()=>a,[a]),g.useEffect(()=>{const d=u.current;return()=>{window.clearTimeout(d),c(null)}},[u,c]),w.jsx($s,{asChild:!0,...s,children:w.jsx(Jp,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":ph(n.open),...e,ref:ii(t,o.onTriggerChange),onClick:d=>{var f;(f=e.onClick)==null||f.call(e,d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:L(e.onPointerMove,tr(d=>{i.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(i.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),a()},100))})),onPointerLeave:L(e.onPointerLeave,tr(d=>{var f,p;a();const m=(f=n.content)==null?void 0:f.getBoundingClientRect();if(m){const h=(p=n.content)==null?void 0:p.dataset.side,v=h==="right",y=v?-5:5,b=m[v?"left":"right"],x=m[v?"right":"left"];i.onPointerGraceIntentChange({area:[{x:d.clientX+y,y:d.clientY},{x:b,y:m.top},{x,y:m.top},{x,y:m.bottom},{x:b,y:m.bottom}],side:h}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(d),d.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:L(e.onKeyDown,d=>{var f;const p=i.searchRef.current!=="";e.disabled||p&&d.key===" "||Nw[r.dir].includes(d.key)&&(n.onOpenChange(!0),(f=n.content)==null||f.focus(),d.preventDefault())})})})});ch.displayName=Gn;var dh="MenuSubContent",fh=g.forwardRef((e,t)=>{const n=Yp(He,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Qt(He,e.__scopeMenu),l=yr(He,e.__scopeMenu),u=uh(dh,e.__scopeMenu),c=g.useRef(null),s=re(t,c);return w.jsx(er.Provider,{scope:e.__scopeMenu,children:w.jsx(Ve,{present:r||i.open,children:w.jsx(er.Slot,{scope:e.__scopeMenu,children:w.jsx(Us,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:s,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:a=>{var d;l.isUsingKeyboardRef.current&&((d=c.current)==null||d.focus()),a.preventDefault()},onCloseAutoFocus:a=>a.preventDefault(),onFocusOutside:L(e.onFocusOutside,a=>{a.target!==u.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:L(e.onEscapeKeyDown,a=>{l.onClose(),a.preventDefault()}),onKeyDown:L(e.onKeyDown,a=>{var d;const f=a.currentTarget.contains(a.target),p=Iw[l.dir].includes(a.key);f&&p&&(i.onOpenChange(!1),(d=u.trigger)==null||d.focus(),a.preventDefault())})})})})})});fh.displayName=dh;function ph(e){return e?"open":"closed"}function Wo(e){return e==="indeterminate"}function Gs(e){return Wo(e)?"indeterminate":e?"checked":"unchecked"}function nx(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function rx(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function ox(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=rx(e,Math.max(o,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function ix(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const u=t[i],c=t[l],s=u.x,a=u.y,d=c.x,f=c.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function ax(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return ix(n,t)}function tr(e){return t=>t.pointerType==="mouse"?e(t):void 0}var sx=Kp,lx=$s,ux=qp,cx=Zp,dx=Hs,fx=Qp,px=Ei,hx=eh,mx=nh,vx=oh,gx=ah,yx=sh,bx=lh,wx=ch,xx=fh,Ci="DropdownMenu",[Ex]=xe(Ci,[Gp]),Ae=Gp(),[Cx,hh]=Ex(Ci),mh=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=Ae(t),s=g.useRef(null),[a,d]=Fe({prop:o,defaultProp:i??!1,onChange:l,caller:Ci});return w.jsx(Cx,{scope:t,triggerId:qe(),triggerRef:s,contentId:qe(),open:a,onOpenChange:d,onOpenToggle:g.useCallback(()=>d(f=>!f),[d]),modal:u,children:w.jsx(sx,{...c,open:a,onOpenChange:d,dir:r,modal:u,children:n})})};mh.displayName=Ci;var vh="DropdownMenuTrigger",gh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=hh(vh,n),l=Ae(n);return w.jsx(lx,{asChild:!0,...l,children:w.jsx(z.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:ii(t,i.triggerRef),onPointerDown:L(e.onPointerDown,u=>{!r&&u.button===0&&u.ctrlKey===!1&&(i.onOpenToggle(),i.open||u.preventDefault())}),onKeyDown:L(e.onKeyDown,u=>{r||(["Enter"," "].includes(u.key)&&i.onOpenToggle(),u.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(u.key)&&u.preventDefault())})})})});gh.displayName=vh;var Sx="DropdownMenuPortal",yh=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Ae(t);return w.jsx(ux,{...r,...n})};yh.displayName=Sx;var bh="DropdownMenuContent",wh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=hh(bh,n),i=Ae(n),l=g.useRef(!1);return w.jsx(cx,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:L(e.onCloseAutoFocus,u=>{var c;l.current||(c=o.triggerRef.current)==null||c.focus(),l.current=!1,u.preventDefault()}),onInteractOutside:L(e.onInteractOutside,u=>{const c=u.detail.originalEvent,s=c.button===0&&c.ctrlKey===!0,a=c.button===2||s;(!o.modal||a)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wh.displayName=bh;var _x="DropdownMenuGroup",Px=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(dx,{...o,...r,ref:t})});Px.displayName=_x;var Rx="DropdownMenuLabel",xh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(fx,{...o,...r,ref:t})});xh.displayName=Rx;var Ox="DropdownMenuItem",Eh=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(px,{...o,...r,ref:t})});Eh.displayName=Ox;var Tx="DropdownMenuCheckboxItem",jx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(hx,{...o,...r,ref:t})});jx.displayName=Tx;var Mx="DropdownMenuRadioGroup",Ax=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(mx,{...o,...r,ref:t})});Ax.displayName=Mx;var kx="DropdownMenuRadioItem",Dx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(vx,{...o,...r,ref:t})});Dx.displayName=kx;var Nx="DropdownMenuItemIndicator",Ix=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(gx,{...o,...r,ref:t})});Ix.displayName=Nx;var Lx="DropdownMenuSeparator",Ch=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(yx,{...o,...r,ref:t})});Ch.displayName=Lx;var Fx="DropdownMenuArrow",Vx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(bx,{...o,...r,ref:t})});Vx.displayName=Fx;var $x="DropdownMenuSubTrigger",Bx=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(wx,{...o,...r,ref:t})});Bx.displayName=$x;var zx="DropdownMenuSubContent",Ux=g.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ae(n);return w.jsx(xx,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ux.displayName=zx;var Hx=mh,Wx=gh,Gx=yh,Xx=wh,Kx=xh,Yx=Eh,qx=Ch,Zx="Label",Sh=g.forwardRef((e,t)=>w.jsx(z.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));Sh.displayName=Zx;var[Xs]=xe("Form"),Ks="Form",[Qx,br]=Xs(Ks),[Jx,_h]=Xs(Ks),eE=g.forwardRef((e,t)=>{const{__scopeForm:n,onClearServerErrors:r=()=>{},...o}=e,i=g.useRef(null),l=re(t,i),[u,c]=g.useState({}),s=g.useCallback(P=>u[P],[u]),a=g.useCallback((P,k)=>c(O=>({...O,[P]:{...O[P]??{},...k}})),[]),d=g.useCallback(P=>{c(k=>({...k,[P]:void 0})),b(k=>({...k,[P]:{}}))},[]),[f,p]=g.useState({}),m=g.useCallback(P=>f[P]??[],[f]),h=g.useCallback((P,k)=>{p(O=>({...O,[P]:[...O[P]??[],k]}))},[]),v=g.useCallback((P,k)=>{p(O=>({...O,[P]:(O[P]??[]).filter($=>$.id!==k)}))},[]),[y,b]=g.useState({}),x=g.useCallback(P=>y[P]??{},[y]),E=g.useCallback((P,k)=>{b(O=>({...O,[P]:{...O[P]??{},...k}}))},[]),[C,T]=g.useState({}),A=g.useCallback((P,k)=>{T(O=>{const $=new Set(O[P]).add(k);return{...O,[P]:$}})},[]),j=g.useCallback((P,k)=>{T(O=>{const $=new Set(O[P]);return $.delete(k),{...O,[P]:$}})},[]),R=g.useCallback(P=>Array.from(C[P]??[]).join(" ")||void 0,[C]);return w.jsx(Qx,{scope:n,getFieldValidity:s,onFieldValidityChange:a,getFieldCustomMatcherEntries:m,onFieldCustomMatcherEntryAdd:h,onFieldCustomMatcherEntryRemove:v,getFieldCustomErrors:x,onFieldCustomErrorsChange:E,onFieldValiditionClear:d,children:w.jsx(Jx,{scope:n,onFieldMessageIdAdd:A,onFieldMessageIdRemove:j,getFieldDescription:R,children:w.jsx(z.form,{...o,ref:l,onInvalid:L(e.onInvalid,P=>{const k=Ph(P.currentTarget);k===P.target&&k.focus(),P.preventDefault()}),onSubmit:L(e.onSubmit,r,{checkForDefaultPrevented:!1}),onReset:L(e.onReset,r)})})})});eE.displayName=Ks;var Ys="FormField",[tE,qs]=Xs(Ys),nE=g.forwardRef((e,t)=>{const{__scopeForm:n,name:r,serverInvalid:o=!1,...i}=e,l=br(Ys,n).getFieldValidity(r),u=qe();return w.jsx(tE,{scope:n,id:u,name:r,serverInvalid:o,children:w.jsx(z.div,{"data-valid":Qs(l,o),"data-invalid":Js(l,o),...i,ref:t})})});nE.displayName=Ys;var Fa="FormLabel",rE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=br(Fa,n),i=qs(Fa,n),l=r.htmlFor||i.id,u=o.getFieldValidity(i.name);return w.jsx(Sh,{"data-valid":Qs(u,i.serverInvalid),"data-invalid":Js(u,i.serverInvalid),...r,ref:t,htmlFor:l})});rE.displayName=Fa;var ko="FormControl",oE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e,o=br(ko,n),i=qs(ko,n),l=_h(ko,n),u=g.useRef(null),c=re(t,u),s=r.name||i.name,a=r.id||i.id,d=o.getFieldCustomMatcherEntries(s),{onFieldValidityChange:f,onFieldCustomErrorsChange:p,onFieldValiditionClear:m}=o,h=g.useCallback(async b=>{if(Rh(b.validity)){const O=ra(b.validity);f(s,O);return}const x=b.form?new FormData(b.form):new FormData,E=[b.value,x],C=[],T=[];d.forEach(O=>{hE(O,E)?T.push(O):mE(O)&&C.push(O)});const A=C.map(({id:O,match:$})=>[O,$(...E)]),j=Object.fromEntries(A),R=Object.values(j).some(Boolean),P=R;b.setCustomValidity(P?nr:"");const k=ra(b.validity);if(f(s,k),p(s,j),!R&&T.length>0){const O=T.map(({id:G,match:W})=>W(...E).then(N=>[G,N])),$=await Promise.all(O),F=Object.fromEntries($),H=Object.values(F).some(Boolean);b.setCustomValidity(H?nr:"");const B=ra(b.validity);f(s,B),p(s,F)}},[d,s,p,f]);g.useEffect(()=>{const b=u.current;if(b){const x=()=>h(b);return b.addEventListener("change",x),()=>b.removeEventListener("change",x)}},[h]);const v=g.useCallback(()=>{const b=u.current;b&&(b.setCustomValidity(""),m(s))},[s,m]);g.useEffect(()=>{var b;const x=(b=u.current)==null?void 0:b.form;if(x)return x.addEventListener("reset",v),()=>x.removeEventListener("reset",v)},[v]),g.useEffect(()=>{const b=u.current,x=b==null?void 0:b.closest("form");if(x&&i.serverInvalid){const E=Ph(x);E===b&&E.focus()}},[i.serverInvalid]);const y=o.getFieldValidity(s);return w.jsx(z.input,{"data-valid":Qs(y,i.serverInvalid),"data-invalid":Js(y,i.serverInvalid),"aria-invalid":i.serverInvalid?!0:void 0,"aria-describedby":l.getFieldDescription(s),title:"",...r,ref:c,id:a,name:s,onInvalid:L(e.onInvalid,b=>{const x=b.currentTarget;h(x)}),onChange:L(e.onChange,b=>{v()})})});oE.displayName=ko;var nr="This value is not valid",iE={badInput:nr,patternMismatch:"This value does not match the required pattern",rangeOverflow:"This value is too large",rangeUnderflow:"This value is too small",stepMismatch:"This value does not match the required step",tooLong:"This value is too long",tooShort:"This value is too short",typeMismatch:"This value does not match the required type",valid:void 0,valueMissing:"This value is missing"},wr="FormMessage",aE=g.forwardRef((e,t)=>{const{match:n,name:r,...o}=e,i=qs(wr,e.__scopeForm),l=r??i.name;return n===void 0?w.jsx(Zs,{...o,ref:t,name:l,children:e.children||nr}):typeof n=="function"?w.jsx(lE,{match:n,...o,ref:t,name:l}):w.jsx(sE,{match:n,...o,ref:t,name:l})});aE.displayName=wr;var sE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,children:i,...l}=e,u=br(wr,l.__scopeForm).getFieldValidity(o);return r||u!=null&&u[n]?w.jsx(Zs,{ref:t,...l,name:o,children:i??iE[n]}):null}),lE=g.forwardRef((e,t)=>{const{match:n,forceMatch:r=!1,name:o,id:i,children:l,...u}=e,c=br(wr,u.__scopeForm),s=g.useRef(null),a=re(t,s),d=qe(),f=i??d,p=g.useMemo(()=>({id:f,match:n}),[f,n]),{onFieldCustomMatcherEntryAdd:m,onFieldCustomMatcherEntryRemove:h}=c;g.useEffect(()=>(m(o,p),()=>h(o,p.id)),[p,o,m,h]);const v=c.getFieldValidity(o),y=c.getFieldCustomErrors(o)[f];return r||v&&!Rh(v)&&y?w.jsx(Zs,{id:f,ref:a,...u,name:o,children:l??nr}):null}),Zs=g.forwardRef((e,t)=>{const{__scopeForm:n,id:r,name:o,...i}=e,l=_h(wr,n),u=qe(),c=r??u,{onFieldMessageIdAdd:s,onFieldMessageIdRemove:a}=l;return g.useEffect(()=>(s(o,c),()=>a(o,c)),[o,c,s,a]),w.jsx(z.span,{id:c,...i,ref:t})}),uE="FormSubmit",cE=g.forwardRef((e,t)=>{const{__scopeForm:n,...r}=e;return w.jsx(z.button,{type:"submit",...r,ref:t})});cE.displayName=uE;function ra(e){const t={};for(const n in e)t[n]=e[n];return t}function dE(e){return e instanceof HTMLElement}function fE(e){return"validity"in e}function pE(e){return fE(e)&&(e.validity.valid===!1||e.getAttribute("aria-invalid")==="true")}function Ph(e){const t=e.elements,[n]=Array.from(t).filter(dE).filter(pE);return n}function hE(e,t){return e.match.constructor.name==="AsyncFunction"||vE(e.match,t)}function mE(e){return e.match.constructor.name==="Function"}function vE(e,t){return e(...t)instanceof Promise}function Rh(e){let t=!1;for(const n in e){const r=n;if(r!=="valid"&&r!=="customError"&&e[r]){t=!0;break}}return t}function Qs(e,t){if((e==null?void 0:e.valid)===!0&&!t)return!0}function Js(e,t){if((e==null?void 0:e.valid)===!1||t)return!0}function Go(e,[t,n]){return Math.min(n,Math.max(t,e))}var Oh="Popover",[Th]=xe(Oh,[jt]),Si=jt(),[tj,Jt]=Th(Oh),jh="PopoverAnchor",gE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(jh,n),i=Si(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=o;return g.useEffect(()=>(l(),()=>u()),[l,u]),w.jsx(mr,{...i,...r,ref:t})});gE.displayName=jh;var Mh="PopoverTrigger",yE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(Mh,n),i=Si(n),l=re(t,o.triggerRef),u=w.jsx(z.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Dh(o.open),...r,ref:l,onClick:L(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?u:w.jsx(mr,{asChild:!0,...i,children:u})});yE.displayName=Mh;var bE="PopoverPortal",[nj,wE]=Th(bE,{forceMount:void 0}),bn="PopoverContent",xE=g.forwardRef((e,t)=>{const n=wE(bn,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=Jt(bn,e.__scopePopover);return w.jsx(Ve,{present:r||i.open,children:i.modal?w.jsx(CE,{...o,ref:t}):w.jsx(SE,{...o,ref:t})})});xE.displayName=bn;var EE=_t("PopoverContent.RemoveScroll"),CE=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(null),o=re(t,r),i=g.useRef(!1);return g.useEffect(()=>{const l=r.current;if(l)return di(l)},[]),w.jsx(dr,{as:EE,allowPinchZoom:!0,children:w.jsx(Ah,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:L(e.onCloseAutoFocus,l=>{var u;l.preventDefault(),i.current||(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:L(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0,s=u.button===2||c;i.current=s},{checkForDefaultPrevented:!1}),onFocusOutside:L(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1})})})}),SE=g.forwardRef((e,t)=>{const n=Jt(bn,e.__scopePopover),r=g.useRef(!1),o=g.useRef(!1);return w.jsx(Ah,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var l,u;(l=e.onCloseAutoFocus)==null||l.call(e,i),i.defaultPrevented||(r.current||(u=n.triggerRef.current)==null||u.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,u;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=i.target;(u=n.triggerRef.current)!=null&&u.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Ah=g.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:s,onInteractOutside:a,...d}=e,f=Jt(bn,n),p=Si(n);return ui(),w.jsx(cr,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:w.jsx(Cn,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:a,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:s,onDismiss:()=>f.onOpenChange(!1),children:w.jsx(gi,{"data-state":Dh(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),kh="PopoverClose",_E=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Jt(kh,n);return w.jsx(z.button,{type:"button",...r,ref:t,onClick:L(e.onClick,()=>o.onOpenChange(!1))})});_E.displayName=kh;var PE="PopoverArrow",RE=g.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=Si(n);return w.jsx(yi,{...o,...r,ref:t})});RE.displayName=PE;function Dh(e){return e?"open":"closed"}var el="Progress",tl=100,[OE]=xe(el),[TE,jE]=OE(el),ME=g.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:o,getValueLabel:i=kE,...l}=e;(o||o===0)&&!Pu(o)&&console.error(DE(`${o}`,"Progress"));const u=Pu(o)?o:tl;r!==null&&!Ru(r,u)&&console.error(NE(`${r}`,"Progress"));const c=Ru(r,u)?r:null,s=Xo(c)?i(c,u):void 0;return w.jsx(TE,{scope:n,value:c,max:u,children:w.jsx(z.div,{"aria-valuemax":u,"aria-valuemin":0,"aria-valuenow":Xo(c)?c:void 0,"aria-valuetext":s,role:"progressbar","data-state":Ih(c,u),"data-value":c??void 0,"data-max":u,...l,ref:t})})});ME.displayName=el;var Nh="ProgressIndicator",AE=g.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,o=jE(Nh,n);return w.jsx(z.div,{"data-state":Ih(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...r,ref:t})});AE.displayName=Nh;function kE(e,t){return`${Math.round(e/t*100)}%`}function Ih(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Xo(e){return typeof e=="number"}function Pu(e){return Xo(e)&&!isNaN(e)&&e>0}function Ru(e,t){return Xo(e)&&!isNaN(e)&&e<=t&&e>=0}function DE(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${tl}\`.`}function NE(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
92
92
|
- a positive number
|
|
93
|
-
- less than the value passed to \`max\` (or ${
|
|
93
|
+
- less than the value passed to \`max\` (or ${tl} if no \`max\` prop is set)
|
|
94
94
|
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
95
95
|
|
|
96
|
-
Defaulting to \`null\`.`}var tl="Radio",[NE,Nh]=xe(tl),[FE,VE]=NE(tl),Fh=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:l,value:c="on",onCheck:u,form:s,...a}=e,[d,f]=g.useState(null),p=re(t,v=>f(v)),m=g.useRef(!1),h=d?s||!!d.closest("form"):!0;return w.jsxs(FE,{scope:n,checked:o,disabled:l,children:[w.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":zh(o),"data-disabled":l?"":void 0,disabled:l,value:c,...a,ref:p,onClick:N(e.onClick,v=>{o||u==null||u(),h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),h&&w.jsx(Bh,{control:d,bubbles:!m.current,name:r,value:c,checked:o,required:i,disabled:l,form:s,style:{transform:"translateX(-100%)"}})]})});Fh.displayName=tl;var Vh="RadioIndicator",$h=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=VE(Vh,n);return w.jsx(Ve,{present:r||i.checked,children:w.jsx(z.span,{"data-state":zh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});$h.displayName=Vh;var $E="RadioBubbleInput",Bh=g.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=pr(n),s=hr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[u,n,r]),w.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bh.displayName=$E;function zh(e){return e?"checked":"unchecked"}var BE=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Pi="RadioGroup",[zE]=xe(Pi,[Mt,Nh]),Uh=Mt(),Hh=Nh(),[UE,HE]=zE(Pi),GE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:c=!1,orientation:u,dir:s,loop:a=!0,onValueChange:d,...f}=e,p=Uh(n),m=qt(s),[h,v]=Fe({prop:i,defaultProp:o??null,onChange:d,caller:Pi});return w.jsx(UE,{scope:n,name:r,required:l,disabled:c,value:h,onValueChange:v,children:w.jsx(wi,{asChild:!0,...p,orientation:u,dir:m,loop:a,children:w.jsx(z.div,{role:"radiogroup","aria-required":l,"aria-orientation":u,"data-disabled":c?"":void 0,dir:m,...f,ref:t})})})});GE.displayName=Pi;var Gh="RadioGroupItem",WE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=HE(Gh,n),l=i.disabled||r,c=Uh(n),u=Hh(n),s=g.useRef(null),a=re(t,s),d=i.value===o.value,f=g.useRef(!1);return g.useEffect(()=>{const p=h=>{BE.includes(h.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),w.jsx(xi,{asChild:!0,...c,focusable:!l,active:d,children:w.jsx(Fh,{disabled:l,required:i.required,checked:d,...u,...o,name:i.name,ref:a,onCheck:()=>i.onValueChange(o.value),onKeyDown:N(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:N(o.onFocus,()=>{var p;f.current&&((p=s.current)==null||p.click())})})})});WE.displayName=Gh;var XE="RadioGroupIndicator",KE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Hh(n);return w.jsx($h,{...o,...r,ref:t})});KE.displayName=XE;var YE=[" ","Enter","ArrowUp","ArrowDown"],qE=[" ","Enter"],Ri="Select",[nl,Oi,ZE]=cr(Ri),[Pn]=xe(Ri,[ZE,jt]),rl=jt(),[tj,At]=Pn(Ri),[nj,QE]=Pn(Ri),Wh="SelectTrigger",JE=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=rl(n),l=At(Wh,n),c=l.disabled||r,u=re(t,l.onTriggerChange),s=Oi(n),a=g.useRef("touch"),[d,f,p]=im(h=>{const v=s().filter(x=>!x.disabled),y=v.find(x=>x.value===l.value),b=am(v,h,y);b!==void 0&&l.onValueChange(b.value)}),m=h=>{c||(l.onOpenChange(!0),p()),h&&(l.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return w.jsx(vr,{asChild:!0,...i,children:w.jsx(z.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":om(l.value)?"":void 0,...o,ref:u,onClick:N(o.onClick,h=>{h.currentTarget.focus(),a.current!=="mouse"&&m(h)}),onPointerDown:N(o.onPointerDown,h=>{a.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(m(h),h.preventDefault())}),onKeyDown:N(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&YE.includes(h.key)&&(m(),h.preventDefault())})})})});JE.displayName=Wh;var Xh="SelectValue",eS=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...c}=e,u=At(Xh,n),{onValueNodeHasChildrenChange:s}=u,a=i!==void 0,d=re(t,u.onValueNodeChange);return Se(()=>{s(a)},[s,a]),w.jsx(z.span,{...c,ref:d,style:{pointerEvents:"none"},children:om(u.value)?w.jsx(w.Fragment,{children:l}):i})});eS.displayName=Xh;var tS="SelectIcon",nS=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});nS.displayName=tS;var Kt="SelectContent",rS=g.forwardRef((e,t)=>{const n=At(Kt,e.__scopeSelect),[r,o]=g.useState();if(Se(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?ii.createPortal(w.jsx(Kh,{scope:e.__scopeSelect,children:w.jsx(nl.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(Yh,{...e,ref:t})});rS.displayName=Kt;var Ke=10,[Kh,kt]=Pn(Kt),oS="SelectContentImpl",iS=_t("SelectContent.RemoveScroll"),Yh=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:c,sideOffset:u,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...y}=e,b=At(Kt,n),[x,S]=g.useState(null),[E,A]=g.useState(null),j=re(t,V=>S(V)),[O,T]=g.useState(null),[P,k]=g.useState(null),R=Oi(n),[$,F]=g.useState(!1),H=g.useRef(!1);g.useEffect(()=>{if(x)return fi(x)},[x]),ci();const B=g.useCallback(V=>{const[q,...Y]=R().map(I=>I.ref.current),[U]=Y.slice(-1),oe=document.activeElement;for(const I of V)if(I===oe||(I==null||I.scrollIntoView({block:"nearest"}),I===q&&E&&(E.scrollTop=0),I===U&&E&&(E.scrollTop=E.scrollHeight),I==null||I.focus(),document.activeElement!==oe))return},[R,E]),X=g.useCallback(()=>B([O,x]),[B,O,x]);g.useEffect(()=>{$&&X()},[$,X]);const{onOpenChange:G,triggerPointerDownPosRef:L}=b;g.useEffect(()=>{if(x){let V={x:0,y:0};const q=U=>{var oe,I;V={x:Math.abs(Math.round(U.pageX)-(((oe=L.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(U.pageY)-(((I=L.current)==null?void 0:I.y)??0))}},Y=U=>{V.x<=10&&V.y<=10?U.preventDefault():x.contains(U.target)||G(!1),document.removeEventListener("pointermove",q),L.current=null};return L.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",Y,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",Y,{capture:!0})}}},[x,G,L]),g.useEffect(()=>{const V=()=>G(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[G]);const[M,D]=im(V=>{const q=R().filter(oe=>!oe.disabled),Y=q.find(oe=>oe.ref.current===document.activeElement),U=am(q,V,Y);U&&setTimeout(()=>U.ref.current.focus())}),ee=g.useCallback((V,q,Y)=>{const U=!H.current&&!Y;(b.value!==void 0&&b.value===q||U)&&(T(V),U&&(H.current=!0))},[b.value]),J=g.useCallback(()=>x==null?void 0:x.focus(),[x]),K=g.useCallback((V,q,Y)=>{const U=!H.current&&!Y;(b.value!==void 0&&b.value===q||U)&&k(V)},[b.value]),ne=r==="popper"?Va:qh,te=ne===Va?{side:c,sideOffset:u,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return w.jsx(Kh,{scope:n,content:x,viewport:E,onViewportChange:A,itemRefCallback:ee,selectedItem:O,onItemLeave:J,itemTextRefCallback:K,focusSelectedItem:X,selectedItemText:P,position:r,isPositioned:$,searchRef:M,children:w.jsx(fr,{as:iS,allowPinchZoom:!0,children:w.jsx(dr,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:N(o,V=>{var q;(q=b.trigger)==null||q.focus({preventScroll:!0}),V.preventDefault()}),children:w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(ne,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault(),...y,...te,onPlaced:()=>F(!0),ref:j,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:N(y.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&D(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let Y=R().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(V.key)&&(Y=Y.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const U=V.target,oe=Y.indexOf(U);Y=Y.slice(oe+1)}setTimeout(()=>B(Y)),V.preventDefault()}})})})})})})});Yh.displayName=oS;var aS="SelectItemAlignedPosition",qh=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=At(Kt,n),l=kt(Kt,n),[c,u]=g.useState(null),[s,a]=g.useState(null),d=re(t,j=>a(j)),f=Oi(n),p=g.useRef(!1),m=g.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=l,x=g.useCallback(()=>{if(i.trigger&&i.valueNode&&c&&s&&h&&v&&y){const j=i.trigger.getBoundingClientRect(),O=s.getBoundingClientRect(),T=i.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(i.dir!=="rtl"){const U=P.left-O.left,oe=T.left-U,I=j.left-oe,de=j.width+I,ke=Math.max(de,O.width),Be=window.innerWidth-Ke,It=Xo(oe,[Ke,Math.max(Ke,Be-ke)]);c.style.minWidth=de+"px",c.style.left=It+"px"}else{const U=O.right-P.right,oe=window.innerWidth-T.right-U,I=window.innerWidth-j.right-oe,de=j.width+I,ke=Math.max(de,O.width),Be=window.innerWidth-Ke,It=Xo(oe,[Ke,Math.max(Ke,Be-ke)]);c.style.minWidth=de+"px",c.style.right=It+"px"}const k=f(),R=window.innerHeight-Ke*2,$=h.scrollHeight,F=window.getComputedStyle(s),H=parseInt(F.borderTopWidth,10),B=parseInt(F.paddingTop,10),X=parseInt(F.borderBottomWidth,10),G=parseInt(F.paddingBottom,10),L=H+B+$+G+X,M=Math.min(v.offsetHeight*5,L),D=window.getComputedStyle(h),ee=parseInt(D.paddingTop,10),J=parseInt(D.paddingBottom,10),K=j.top+j.height/2-Ke,ne=R-K,te=v.offsetHeight/2,V=v.offsetTop+te,q=H+B+V,Y=L-q;if(q<=K){const U=k.length>0&&v===k[k.length-1].ref.current;c.style.bottom="0px";const oe=s.clientHeight-h.offsetTop-h.offsetHeight,I=Math.max(ne,te+(U?J:0)+oe+X),de=q+I;c.style.height=de+"px"}else{const U=k.length>0&&v===k[0].ref.current;c.style.top="0px";const oe=Math.max(K,H+h.offsetTop+(U?ee:0)+te)+Y;c.style.height=oe+"px",h.scrollTop=q-K+h.offsetTop}c.style.margin=`${Ke}px 0`,c.style.minHeight=M+"px",c.style.maxHeight=R+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,c,s,h,v,y,i.dir,r]);Se(()=>x(),[x]);const[S,E]=g.useState();Se(()=>{s&&E(window.getComputedStyle(s).zIndex)},[s]);const A=g.useCallback(j=>{j&&m.current===!0&&(x(),b==null||b(),m.current=!1)},[x,b]);return w.jsx(lS,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:p,onScrollButtonChange:A,children:w.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:S},children:w.jsx(z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qh.displayName=aS;var sS="SelectPopperPosition",Va=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ke,...i}=e,l=rl(n);return w.jsx(yi,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=sS;var[lS,ol]=Pn(Kt,{}),$a="SelectViewport",uS=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kt($a,n),l=ol($a,n),c=re(t,i.onViewportChange),u=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(nl.Slot,{scope:n,children:w.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:N(o.onScroll,s=>{const a=s.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&d){const p=Math.abs(u.current-a.scrollTop);if(p>0){const m=window.innerHeight-Ke*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<m){const b=y+p,x=Math.min(m,b),S=b-x;d.style.height=x+"px",d.style.bottom==="0px"&&(a.scrollTop=S>0?S:0,d.style.justifyContent="flex-end")}}}u.current=a.scrollTop})})})]})});uS.displayName=$a;var Zh="SelectGroup",[cS,dS]=Pn(Zh),fS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qe();return w.jsx(cS,{scope:n,id:o,children:w.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});fS.displayName=Zh;var Qh="SelectLabel",pS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=dS(Qh,n);return w.jsx(z.div,{id:o.id,...r,ref:t})});pS.displayName=Qh;var Yo="SelectItem",[hS,Jh]=Pn(Yo),em=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,c=At(Yo,n),u=kt(Yo,n),s=c.value===r,[a,d]=g.useState(i??""),[f,p]=g.useState(!1),m=re(t,b=>{var x;return(x=u.itemRefCallback)==null?void 0:x.call(u,b,r,o)}),h=qe(),v=g.useRef("touch"),y=()=>{o||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(hS,{scope:n,value:r,disabled:o,textId:h,isSelected:s,onItemTextChange:g.useCallback(b=>{d(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:w.jsx(nl.ItemSlot,{scope:n,value:r,disabled:o,textValue:a,children:w.jsx(z.div,{role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":s&&f,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:m,onFocus:N(l.onFocus,()=>p(!0)),onBlur:N(l.onBlur,()=>p(!1)),onClick:N(l.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:N(l.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:N(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:N(l.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=u.onItemLeave)==null||x.call(u):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(l.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=u.onItemLeave)==null||x.call(u))}),onKeyDown:N(l.onKeyDown,b=>{var x;((x=u.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(qE.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});em.displayName=Yo;var Xn="SelectItemText",tm=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=At(Xn,n),c=kt(Xn,n),u=Jh(Xn,n),s=QE(Xn,n),[a,d]=g.useState(null),f=re(t,y=>d(y),u.onItemTextChange,y=>{var b;return(b=c.itemTextRefCallback)==null?void 0:b.call(c,y,u.value,u.disabled)}),p=a==null?void 0:a.textContent,m=g.useMemo(()=>w.jsx("option",{value:u.value,disabled:u.disabled,children:p},u.value),[u.disabled,u.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=s;return Se(()=>(h(m),()=>v(m)),[h,v,m]),w.jsxs(w.Fragment,{children:[w.jsx(z.span,{id:u.textId,...i,ref:f}),u.isSelected&&l.valueNode&&!l.valueNodeHasChildren?ii.createPortal(i.children,l.valueNode):null]})});tm.displayName=Xn;var nm="SelectItemIndicator",mS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Jh(nm,n).isSelected?w.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});mS.displayName=nm;var Ba="SelectScrollUpButton",vS=g.forwardRef((e,t)=>{const n=kt(Ba,e.__scopeSelect),r=ol(Ba,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let c=function(){const s=u.scrollTop>0;i(s)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop-u.offsetHeight)}}):null});vS.displayName=Ba;var za="SelectScrollDownButton",gS=g.forwardRef((e,t)=>{const n=kt(za,e.__scopeSelect),r=ol(za,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Se(()=>{if(n.viewport&&n.isPositioned){let c=function(){const s=u.scrollHeight-u.clientHeight,a=Math.ceil(u.scrollTop)<s;i(a)};const u=n.viewport;return c(),u.addEventListener("scroll",c),()=>u.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:u}=n;c&&u&&(c.scrollTop=c.scrollTop+u.offsetHeight)}}):null});gS.displayName=za;var rm=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kt("SelectScrollButton",n),l=g.useRef(null),c=Oi(n),u=g.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return g.useEffect(()=>()=>u(),[u]),Se(()=>{var s;const a=c().find(d=>d.ref.current===document.activeElement);(s=a==null?void 0:a.ref.current)==null||s.scrollIntoView({block:"nearest"})},[c]),w.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:N(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:N(o.onPointerMove,()=>{var s;(s=i.onItemLeave)==null||s.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:N(o.onPointerLeave,()=>{u()})})}),yS="SelectSeparator",bS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});bS.displayName=yS;var Ua="SelectArrow",wS=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=rl(n),i=At(Ua,n),l=kt(Ua,n);return i.open&&l.position==="popper"?w.jsx(bi,{...o,...r,ref:t}):null});wS.displayName=Ua;var xS="SelectBubbleInput",ES=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(r,o),l=pr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLSelectElement.prototype,s=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&s){const a=new Event("change",{bubbles:!0});s.call(c,t),c.dispatchEvent(a)}},[l,t]),w.jsx(z.select,{...n,style:{...Sf,...n.style},ref:i,defaultValue:t})});ES.displayName=xS;function om(e){return e===""||e===void 0}function im(e){const t=Ze(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(l=>{const c=n.current+l;t(c),(function u(s){n.current=s,window.clearTimeout(r.current),s!==""&&(r.current=window.setTimeout(()=>u(""),1e3))})(c)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function am(e,t,n){const r=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=SS(e,Math.max(o,0));r.length===1&&(i=i.filter(c=>c!==n));const l=i.find(c=>c.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function SS(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var CS=em,_S=tm,sm=["PageUp","PageDown"],lm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],um={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rn="Slider",[Ha,PS,RS]=cr(Rn),[cm]=xe(Rn,[RS]),[OS,Ti]=cm(Rn),TS=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:c=!1,minStepsBetweenThumbs:u=0,defaultValue:s=[r],value:a,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,v=g.useRef(new Set),y=g.useRef(0),b=l==="horizontal"?jS:MS,[x=[],S]=Fe({prop:a,defaultProp:s,onChange:P=>{var k;(k=[...v.current][y.current])==null||k.focus(),d(P)}}),E=g.useRef(x);function A(P){const k=VS(x,P);T(P,k)}function j(P){T(P,y.current)}function O(){const P=E.current[y.current];x[y.current]!==P&&f(x)}function T(P,k,{commit:R}={commit:!1}){const $=US(i),F=HS(Math.round((P-r)/i)*i+r,$),H=Xo(F,[r,o]);S((B=[])=>{const X=NS(B,H,k);if(zS(X,u*i)){y.current=X.indexOf(H);const G=String(X)!==String(B);return G&&R&&f(X),G?X:B}else return B})}return w.jsx(OS,{scope:e.__scopeSlider,name:n,disabled:c,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:x,orientation:l,form:m,children:w.jsx(Ha.Provider,{scope:e.__scopeSlider,children:w.jsx(Ha.Slot,{scope:e.__scopeSlider,children:w.jsx(b,{"aria-disabled":c,"data-disabled":c?"":void 0,...h,ref:t,onPointerDown:N(h.onPointerDown,()=>{c||(E.current=x)}),min:r,max:o,inverted:p,onSlideStart:c?void 0:A,onSlideMove:c?void 0:j,onSlideEnd:c?void 0:O,onHomeKeyDown:()=>!c&&T(r,0,{commit:!0}),onEndKeyDown:()=>!c&&T(o,x.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:k})=>{if(!c){const R=sm.includes(P.key)||P.shiftKey&&lm.includes(P.key)?10:1,$=y.current,F=x[$],H=i*R*k;T(F+H,$,{commit:!0})}}})})})})});TS.displayName=Rn;var[dm,fm]=cm(Rn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),jS=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:c,onSlideEnd:u,onStepKeyDown:s,...a}=e,[d,f]=g.useState(null),p=re(t,x=>f(x)),m=g.useRef(void 0),h=qt(o),v=h==="ltr",y=v&&!i||!v&&i;function b(x){const S=m.current||d.getBoundingClientRect(),E=[0,S.width],A=il(E,y?[n,r]:[r,n]);return m.current=S,A(x-S.left)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:w.jsx(pm,{dir:h,"data-orientation":"horizontal",...a,ref:p,style:{...a.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const S=b(x.clientX);l==null||l(S)},onSlideMove:x=>{const S=b(x.clientX);c==null||c(S)},onSlideEnd:()=>{m.current=void 0,u==null||u()},onStepKeyDown:x=>{const S=um[y?"from-left":"from-right"].includes(x.key);s==null||s({event:x,direction:S?-1:1})}})})}),MS=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:c,onStepKeyDown:u,...s}=e,a=g.useRef(null),d=re(t,a),f=g.useRef(void 0),p=!o;function m(h){const v=f.current||a.current.getBoundingClientRect(),y=[0,v.height],b=il(y,p?[r,n]:[n,r]);return f.current=v,b(h-v.top)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:w.jsx(pm,{"data-orientation":"vertical",...s,ref:d,style:{...s.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=m(h.clientY);i==null||i(v)},onSlideMove:h=>{const v=m(h.clientY);l==null||l(v)},onSlideEnd:()=>{f.current=void 0,c==null||c()},onStepKeyDown:h=>{const v=um[p?"from-bottom":"from-top"].includes(h.key);u==null||u({event:h,direction:v?-1:1})}})})}),pm=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:c,onStepKeyDown:u,...s}=e,a=Ti(Rn,n);return w.jsx(z.span,{...s,ref:t,onKeyDown:N(e.onKeyDown,d=>{d.key==="Home"?(l(d),d.preventDefault()):d.key==="End"?(c(d),d.preventDefault()):sm.concat(lm).includes(d.key)&&(u(d),d.preventDefault())}),onPointerDown:N(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),a.thumbs.has(f)?f.focus():r(d)}),onPointerMove:N(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:N(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),hm="SliderTrack",AS=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ti(hm,n);return w.jsx(z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});AS.displayName=hm;var Ga="SliderRange",kS=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Ti(Ga,n),i=fm(Ga,n),l=g.useRef(null),c=re(t,l),u=o.values.length,s=o.values.map(f=>vm(f,o.min,o.max)),a=u>1?Math.min(...s):0,d=100-Math.max(...s);return w.jsx(z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:c,style:{...e.style,[i.startEdge]:a+"%",[i.endEdge]:d+"%"}})});kS.displayName=Ga;var Wa="SliderThumb",DS=g.forwardRef((e,t)=>{const n=PS(e.__scopeSlider),[r,o]=g.useState(null),i=re(t,c=>o(c)),l=g.useMemo(()=>r?n().findIndex(c=>c.ref.current===r):-1,[n,r]);return w.jsx(LS,{...e,ref:i,index:l})}),LS=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,l=Ti(Wa,n),c=fm(Wa,n),[u,s]=g.useState(null),a=re(t,b=>s(b)),d=u?l.form||!!u.closest("form"):!0,f=hr(u),p=l.values[r],m=p===void 0?0:vm(p,l.min,l.max),h=FS(r,l.values.length),v=f==null?void 0:f[c.size],y=v?$S(v,m,c.direction):0;return g.useEffect(()=>{if(u)return l.thumbs.add(u),()=>{l.thumbs.delete(u)}},[u,l.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[c.startEdge]:`calc(${m}% + ${y}px)`},children:[w.jsx(Ha.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(z.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":l.min,"aria-valuenow":p,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:a,style:p===void 0?{display:"none"}:e.style,onFocus:N(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),d&&w.jsx(mm,{name:o??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:p},r)]})});DS.displayName=Wa;var IS="RadioBubbleInput",mm=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(o,r),l=pr(t);return g.useEffect(()=>{const c=o.current;if(!c)return;const u=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(u,"value").set;if(l!==t&&s){const a=new Event("input",{bubbles:!0});s.call(c,t),c.dispatchEvent(a)}},[l,t]),w.jsx(z.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});mm.displayName=IS;function NS(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function vm(e,t,n){const r=100/(n-t)*(e-t);return Xo(r,[0,100])}function FS(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function VS(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function $S(e,t,n){const r=e/2,o=il([0,50],[0,r]);return(r-o(t)*n)*n}function BS(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function zS(e,t){if(t>0){const n=BS(e);return Math.min(...n)>=t}return!0}function il(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function US(e){return(String(e).split(".")[1]||"").length}function HS(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var ji="Switch",[GS]=xe(ji),[WS,XS]=GS(ji),KS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:c,value:u="on",onCheckedChange:s,form:a,...d}=e,[f,p]=g.useState(null),m=re(t,x=>p(x)),h=g.useRef(!1),v=f?a||!!f.closest("form"):!0,[y,b]=Fe({prop:o,defaultProp:i??!1,onChange:s,caller:ji});return w.jsxs(WS,{scope:n,checked:y,disabled:c,children:[w.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":bm(y),"data-disabled":c?"":void 0,disabled:c,value:u,...d,ref:m,onClick:N(e.onClick,x=>{b(S=>!S),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&w.jsx(ym,{control:f,bubbles:!h.current,name:r,value:u,checked:y,required:l,disabled:c,form:a,style:{transform:"translateX(-100%)"}})]})});KS.displayName=ji;var gm="SwitchThumb",YS=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=XS(gm,n);return w.jsx(z.span,{"data-state":bm(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});YS.displayName=gm;var qS="SwitchBubbleInput",ym=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),c=re(l,i),u=pr(n),s=hr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(u!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[u,n,r]),w.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:c,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ym.displayName=qS;function bm(e){return e?"checked":"unchecked"}var Mi="Tabs",[ZS]=xe(Mi,[Mt]),wm=Mt(),[QS,al]=ZS(Mi),JS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:c,activationMode:u="automatic",...s}=e,a=qt(c),[d,f]=Fe({prop:r,onChange:o,defaultProp:i??"",caller:Mi});return w.jsx(QS,{scope:n,baseId:qe(),value:d,onValueChange:f,orientation:l,dir:a,activationMode:u,children:w.jsx(z.div,{dir:a,"data-orientation":l,...s,ref:t})})});JS.displayName=Mi;var xm="TabsList",eC=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=al(xm,n),l=wm(n);return w.jsx(wi,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:w.jsx(z.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});eC.displayName=xm;var Em="TabsTrigger",tC=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,l=al(Em,n),c=wm(n),u=Cm(l.baseId,r),s=_m(l.baseId,r),a=r===l.value;return w.jsx(xi,{asChild:!0,...c,focusable:!o,active:a,children:w.jsx(z.button,{type:"button",role:"tab","aria-selected":a,"aria-controls":s,"data-state":a?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:u,...i,ref:t,onMouseDown:N(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?l.onValueChange(r):d.preventDefault()}),onKeyDown:N(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&l.onValueChange(r)}),onFocus:N(e.onFocus,()=>{const d=l.activationMode!=="manual";!a&&!o&&d&&l.onValueChange(r)})})})});tC.displayName=Em;var Sm="TabsContent",nC=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...l}=e,c=al(Sm,n),u=Cm(c.baseId,r),s=_m(c.baseId,r),a=r===c.value,d=g.useRef(a);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),w.jsx(Ve,{present:o||a,children:({present:f})=>w.jsx(z.div,{"data-state":a?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":u,hidden:!f,id:s,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});nC.displayName=Sm;function Cm(e,t){return`${e}-trigger-${t}`}function _m(e,t){return`${e}-content-${t}`}var Pm="Toggle",Rm=g.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[l,c]=Fe({prop:n,onChange:o,defaultProp:r??!1,caller:Pm});return w.jsx(z.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:N(e.onClick,()=>{e.disabled||c(!l)})})});Rm.displayName=Pm;var Dt="ToggleGroup",[Om]=xe(Dt,[Mt]),Tm=Mt(),jm=_.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return w.jsx(rC,{...o,ref:t})}if(n==="multiple"){const o=r;return w.jsx(oC,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Dt}\``)});jm.displayName=Dt;var[Mm,Am]=Om(Dt),rC=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"single",value:_.useMemo(()=>l?[l]:[],[l]),onItemActivate:c,onItemDeactivate:_.useCallback(()=>c(""),[c]),children:w.jsx(km,{...i,ref:t})})}),oC=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,c]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),u=_.useCallback(a=>c((d=[])=>[...d,a]),[c]),s=_.useCallback(a=>c((d=[])=>d.filter(f=>f!==a)),[c]);return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:u,onItemDeactivate:s,children:w.jsx(km,{...i,ref:t})})});jm.displayName=Dt;var[iC,aC]=Om(Dt),km=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:l,loop:c=!0,...u}=e,s=Tm(n),a=qt(l),d={role:"group",dir:a,...u};return w.jsx(iC,{scope:n,rovingFocus:o,disabled:r,children:o?w.jsx(wi,{asChild:!0,...s,orientation:i,dir:a,loop:c,children:w.jsx(z.div,{...d,ref:t})}):w.jsx(z.div,{...d,ref:t})})}),qo="ToggleGroupItem",sC=_.forwardRef((e,t)=>{const n=Am(qo,e.__scopeToggleGroup),r=aC(qo,e.__scopeToggleGroup),o=Tm(e.__scopeToggleGroup),i=n.value.includes(e.value),l=r.disabled||e.disabled,c={...e,pressed:i,disabled:l},u=_.useRef(null);return r.rovingFocus?w.jsx(xi,{asChild:!0,...o,focusable:!l,active:i,ref:u,children:w.jsx(Ru,{...c,ref:t})}):w.jsx(Ru,{...c,ref:t})});sC.displayName=qo;var Ru=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=Am(qo,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},c=i.type==="single"?l:void 0;return w.jsx(Rm,{...c,...o,ref:t,onPressedChange:u=>{u?i.onItemActivate(r):i.onItemDeactivate(r)}})}),[Ai]=xe("Tooltip",[jt]),sl=jt(),lC="TooltipProvider",Ou="tooltip.open",[rj,Dm]=Ai(lC),Lm="Tooltip",[oj,ki]=Ai(Lm),Xa="TooltipTrigger",uC=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ki(Xa,n),i=Dm(Xa,n),l=sl(n),c=g.useRef(null),u=re(t,c,o.onTriggerChange),s=g.useRef(!1),a=g.useRef(!1),d=g.useCallback(()=>s.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(vr,{asChild:!0,...l,children:w.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:u,onPointerMove:N(e.onPointerMove,f=>{f.pointerType!=="touch"&&!a.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),a.current=!0)}),onPointerLeave:N(e.onPointerLeave,()=>{o.onTriggerLeave(),a.current=!1}),onPointerDown:N(e.onPointerDown,()=>{o.open&&o.onClose(),s.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:N(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:N(e.onBlur,o.onClose),onClick:N(e.onClick,o.onClose)})})});uC.displayName=Xa;var cC="TooltipPortal",[ij,dC]=Ai(cC,{forceMount:void 0}),wn="TooltipContent",fC=g.forwardRef((e,t)=>{const n=dC(wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=ki(wn,e.__scopeTooltip);return w.jsx(Ve,{present:r||l.open,children:l.disableHoverableContent?w.jsx(Im,{side:o,...i,ref:t}):w.jsx(pC,{side:o,...i,ref:t})})}),pC=g.forwardRef((e,t)=>{const n=ki(wn,e.__scopeTooltip),r=Dm(wn,e.__scopeTooltip),o=g.useRef(null),i=re(t,o),[l,c]=g.useState(null),{trigger:u,onClose:s}=n,a=o.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{c(null),d(!1)},[d]),p=g.useCallback((m,h)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=yC(y,v.getBoundingClientRect()),x=bC(y,b),S=wC(h.getBoundingClientRect()),E=EC([...x,...S]);c(E),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(u&&a){const m=v=>p(v,a),h=v=>p(v,u);return u.addEventListener("pointerleave",m),a.addEventListener("pointerleave",h),()=>{u.removeEventListener("pointerleave",m),a.removeEventListener("pointerleave",h)}}},[u,a,p,f]),g.useEffect(()=>{if(l){const m=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},b=(u==null?void 0:u.contains(v))||(a==null?void 0:a.contains(v)),x=!xC(y,l);b?f():x&&(f(),s())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,a,l,s,f]),w.jsx(Im,{...e,ref:i})}),[hC,mC]=Ai(Lm,{isInside:!1}),vC=N0("TooltipContent"),Im=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...c}=e,u=ki(wn,n),s=sl(n),{onClose:a}=u;return g.useEffect(()=>(document.addEventListener(Ou,a),()=>document.removeEventListener(Ou,a)),[a]),g.useEffect(()=>{if(u.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(u.trigger)&&a()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[u.trigger,a]),w.jsx(Sn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d=>d.preventDefault(),onDismiss:a,children:w.jsxs(yi,{"data-state":u.stateAttribute,...s,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(vC,{children:r}),w.jsx(hC,{scope:n,isInside:!0,children:w.jsx(q0,{id:u.contentId,role:"tooltip",children:o||r})})]})})});fC.displayName=wn;var Nm="TooltipArrow",gC=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sl(n);return mC(Nm,n).isInside?null:w.jsx(bi,{...o,...r,ref:t})});gC.displayName=Nm;function yC(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function bC(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function wC(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function xC(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const c=t[i],u=t[l],s=c.x,a=c.y,d=u.x,f=u.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function EC(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),SC(t)}function SC(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Cy,{className:he("overflow-hidden rounded-xl shadow-(--box-shadow-accordion)",t),ref:r,...n,children:e}));_.forwardRef(({children:e,className:t,triggerIcon:n,...r},o)=>w.jsx(_y,{className:"flex",children:w.jsxs(Py,{className:he("group flex h-14 flex-1 cursor-pointer items-center justify-between px-6 text-[15px] leading-none bg-white space-x-2",t),ref:o,...r,children:[e,n??w.jsx(U0,{className:"size-3 shrink-0 transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 fill-primary-blue"})]})}));const ll=_.createContext({});function ul(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fm=typeof window<"u",Vm=Fm?_.useLayoutEffect:_.useEffect,Di=_.createContext(null);function cl(e,t){e.indexOf(t)===-1&&e.push(t)}function dl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const st=(e,t,n)=>n>t?t:n<e?e:n;function Ka(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let On=()=>{},mt=()=>{};var Tu;typeof process<"u"&&((Tu=process.env)==null?void 0:Tu.NODE_ENV)!=="production"&&(On=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Ka(t,n))},mt=(e,t,n)=>{if(!e)throw new Error(Ka(t,n))});const vt={},$m=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Bm(e){return typeof e=="object"&&e!==null}const zm=e=>/^0[^.\s]+$/u.test(e);function fl(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ge=e=>e,CC=(e,t)=>n=>t(e(n)),Er=(...e)=>e.reduce(CC),or=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class pl{constructor(){this.subscriptions=[]}add(t){return cl(this.subscriptions,t),()=>dl(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const l=this.subscriptions[i];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=e=>e*1e3,Ue=e=>e/1e3;function Um(e,t){return t?e*(1e3/t):0}const ju=new Set;function hl(e,t,n){e||ju.has(t)||(console.warn(Ka(t,n)),ju.add(t))}const Hm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_C=1e-7,PC=12;function RC(e,t,n,r,o){let i,l,c=0;do l=t+(n-t)/2,i=Hm(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>_C&&++c<PC);return l}function Sr(e,t,n,r){if(e===t&&n===r)return Ge;const o=i=>RC(i,0,1,e,n);return i=>i===0||i===1?i:Hm(o(i),t,r)}const Gm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Wm=e=>t=>1-e(1-t),Xm=Sr(.33,1.53,.69,.99),ml=Wm(Xm),Km=Gm(ml),Ym=e=>(e*=2)<1?.5*ml(e):.5*(2-Math.pow(2,-10*(e-1))),vl=e=>1-Math.sin(Math.acos(e)),qm=Wm(vl),Zm=Gm(vl),OC=Sr(.42,0,1,1),TC=Sr(0,0,.58,1),Qm=Sr(.42,0,.58,1),jC=e=>Array.isArray(e)&&typeof e[0]!="number",Jm=e=>Array.isArray(e)&&typeof e[0]=="number",Mu={linear:Ge,easeIn:OC,easeInOut:Qm,easeOut:TC,circIn:vl,circInOut:Zm,circOut:qm,backIn:ml,backInOut:Km,backOut:Xm,anticipate:Ym},MC=e=>typeof e=="string",Au=e=>{if(Jm(e)){mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Sr(t,n,r,o)}else if(MC(e))return mt(Mu[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Mu[e];return e},Ur=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function AC(e,t){let n=new Set,r=new Set,o=!1,i=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function u(a){l.has(a)&&(s.schedule(a),e()),a(c)}const s={schedule:(a,d=!1,f=!1)=>{const p=f&&o?n:r;return d&&l.add(a),p.has(a)||p.add(a),a},cancel:a=>{r.delete(a),l.delete(a)},process:a=>{if(c=a,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(u),n.clear(),o=!1,i&&(i=!1,s.process(a))}};return s}const kC=40;function ev(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=Ur.reduce((y,b)=>(y[b]=AC(i),y),{}),{setup:c,read:u,resolveKeyframes:s,preUpdate:a,update:d,preRender:f,render:p,postRender:m}=l,h=()=>{const y=vt.useManualTiming?o.timestamp:performance.now();n=!1,vt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,kC),1)),o.timestamp=y,o.isProcessing=!0,c.process(o),u.process(o),s.process(o),a.process(o),d.process(o),f.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:Ur.reduce((y,b)=>{const x=l[b];return y[b]=(S,E=!1,A=!1)=>(n||v(),x.schedule(S,E,A)),y},{}),cancel:y=>{for(let b=0;b<Ur.length;b++)l[Ur[b]].cancel(y)},state:o,steps:l}}const{schedule:me,cancel:Ot,state:_e,steps:ia}=ev(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ge,!0);let Lo;function DC(){Lo=void 0}const je={now:()=>(Lo===void 0&&je.set(_e.isProcessing||vt.useManualTiming?_e.timestamp:performance.now()),Lo),set:e=>{Lo=e,queueMicrotask(DC)}},tv=e=>t=>typeof t=="string"&&t.startsWith(e),nv=tv("--"),LC=tv("var(--"),gl=e=>LC(e)?IC.test(e.split("/*")[0].trim()):!1,IC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ku(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ir={...Tn,transform:e=>st(0,1,e)},Hr={...Tn,default:1},qn=e=>Math.round(e*1e5)/1e5,yl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function NC(e){return e==null}const FC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,bl=(e,t)=>n=>!!(typeof n=="string"&&FC.test(n)&&n.startsWith(e)||t&&!NC(n)&&Object.prototype.hasOwnProperty.call(n,t)),rv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,l,c]=r.match(yl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},VC=e=>st(0,255,e),aa={...Tn,transform:e=>Math.round(VC(e))},Ut={test:bl("rgb","red"),parse:rv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+aa.transform(e)+", "+aa.transform(t)+", "+aa.transform(n)+", "+qn(ir.transform(r))+")"};function $C(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ya={test:bl("#"),parse:$C,transform:Ut.transform},Cr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Et=Cr("deg"),it=Cr("%"),W=Cr("px"),BC=Cr("vh"),zC=Cr("vw"),Du={...it,parse:e=>it.parse(e)/100,transform:e=>it.transform(e*100)},sn={test:bl("hsl","hue"),parse:rv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+it.transform(qn(t))+", "+it.transform(qn(n))+", "+qn(ir.transform(r))+")"},Ee={test:e=>Ut.test(e)||Ya.test(e)||sn.test(e),parse:e=>Ut.test(e)?Ut.parse(e):sn.test(e)?sn.parse(e):Ya.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ut.transform(e):sn.transform(e),getAnimatableNone:e=>{const t=Ee.parse(e);return t.alpha=0,Ee.transform(t)}},UC=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function HC(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(yl))==null?void 0:t.length)||0)+(((n=e.match(UC))==null?void 0:n.length)||0)>0}const ov="number",iv="color",GC="var",WC="var(",Lu="${}",XC=/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 ar(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(XC,c=>(Ee.test(c)?(r.color.push(i),o.push(iv),n.push(Ee.parse(c))):c.startsWith(WC)?(r.var.push(i),o.push(GC),n.push(c)):(r.number.push(i),o.push(ov),n.push(parseFloat(c))),++i,Lu)).split(Lu);return{values:n,split:l,indexes:r,types:o}}function av(e){return ar(e).values}function sv(e){const{split:t,types:n}=ar(e),r=t.length;return o=>{let i="";for(let l=0;l<r;l++)if(i+=t[l],o[l]!==void 0){const c=n[l];c===ov?i+=qn(o[l]):c===iv?i+=Ee.transform(o[l]):i+=o[l]}return i}}const KC=e=>typeof e=="number"?0:Ee.test(e)?Ee.getAnimatableNone(e):e;function YC(e){const t=av(e);return sv(e)(t.map(KC))}const Tt={test:HC,parse:av,createTransformer:sv,getAnimatableNone:YC};function sa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function qC({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,u=2*n-c;o=sa(u,c,e+1/3),i=sa(u,c,e),l=sa(u,c,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}function Zo(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,la=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},ZC=[Ya,Ut,sn],QC=e=>ZC.find(t=>t.test(e));function Iu(e){const t=QC(e);if(On(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===sn&&(n=qC(n)),n}const Nu=(e,t)=>{const n=Iu(e),r=Iu(t);if(!n||!r)return Zo(e,t);const o={...n};return i=>(o.red=la(n.red,r.red,i),o.green=la(n.green,r.green,i),o.blue=la(n.blue,r.blue,i),o.alpha=ye(n.alpha,r.alpha,i),Ut.transform(o))},qa=new Set(["none","hidden"]);function JC(e,t){return qa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function e_(e,t){return n=>ye(e,t,n)}function wl(e){return typeof e=="number"?e_:typeof e=="string"?gl(e)?Zo:Ee.test(e)?Nu:r_:Array.isArray(e)?lv:typeof e=="object"?Ee.test(e)?Nu:t_:Zo}function lv(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>wl(i)(i,t[l]));return i=>{for(let l=0;l<r;l++)n[l]=o[l](i);return n}}function t_(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=wl(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function n_(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],l=e.indexes[i][r[i]],c=e.values[l]??0;n[o]=c,r[i]++}return n}const r_=(e,t)=>{const n=Tt.createTransformer(t),r=ar(e),o=ar(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?qa.has(e)&&!o.values.length||qa.has(t)&&!r.values.length?JC(e,t):Er(lv(n_(r,o),o.values),n):(On(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),Zo(e,t))};function uv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):wl(e)(e,t)}const o_=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>me.update(t,n),stop:()=>Ot(t),now:()=>_e.isProcessing?_e.timestamp:je.now()}},cv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Qo=2e4;function xl(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Qo;)t+=n,r=e.next(t);return t>=Qo?1/0:t}function i_(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(xl(r),Qo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const a_=5;function dv(e,t,n){const r=Math.max(t-a_,0);return Um(n-e(r),t-r)}const ge={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},ua=.001;function s_({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let o,i;On(e<=ot(ge.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-t;l=st(ge.minDamping,ge.maxDamping,l),e=st(ge.minDuration,ge.maxDuration,Ue(e)),l<1?(o=s=>{const a=s*l,d=a*e,f=a-n,p=Za(s,l),m=Math.exp(-d);return ua-f/p*m},i=s=>{const a=s*l*e,d=a*n+n,f=Math.pow(l,2)*Math.pow(s,2)*e,p=Math.exp(-a),m=Za(Math.pow(s,2),l);return(-o(s)+ua>0?-1:1)*((d-f)*p)/m}):(o=s=>{const a=Math.exp(-s*e),d=(s-n)*e+1;return-ua+a*d},i=s=>{const a=Math.exp(-s*e),d=(n-s)*(e*e);return a*d});const c=5/e,u=u_(o,i,c);if(e=ot(e),isNaN(u))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const s=Math.pow(u,2)*r;return{stiffness:s,damping:l*2*Math.sqrt(r*s),duration:e}}}const l_=12;function u_(e,t,n){let r=n;for(let o=1;o<l_;o++)r=r-e(r)/t(r);return r}function Za(e,t){return e*Math.sqrt(1-t*t)}const c_=["duration","bounce"],d_=["stiffness","damping","mass"];function Fu(e,t){return t.some(n=>e[n]!==void 0)}function f_(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!Fu(e,d_)&&Fu(e,c_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*st(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ge.mass,stiffness:o,damping:i}}else{const n=s_(e);t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function Jo(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:i},{stiffness:u,damping:s,mass:a,duration:d,velocity:f,isResolvedFromDuration:p}=f_({...n,velocity:-Ue(n.velocity||0)}),m=f||0,h=s/(2*Math.sqrt(u*a)),v=l-i,y=Ue(Math.sqrt(u/a)),b=Math.abs(v)<5;r||(r=b?ge.restSpeed.granular:ge.restSpeed.default),o||(o=b?ge.restDelta.granular:ge.restDelta.default);let x;if(h<1){const E=Za(y,h);x=A=>{const j=Math.exp(-h*y*A);return l-j*((m+h*y*v)/E*Math.sin(E*A)+v*Math.cos(E*A))}}else if(h===1)x=E=>l-Math.exp(-y*E)*(v+(m+y*v)*E);else{const E=y*Math.sqrt(h*h-1);x=A=>{const j=Math.exp(-h*y*A),O=Math.min(E*A,300);return l-j*((m+h*y*v)*Math.sinh(O)+E*v*Math.cosh(O))/E}}const S={calculatedDuration:p&&d||null,next:E=>{const A=x(E);if(p)c.done=E>=d;else{let j=E===0?m:0;h<1&&(j=E===0?ot(m):dv(x,E,A));const O=Math.abs(j)<=r,T=Math.abs(l-A)<=o;c.done=O&&T}return c.value=c.done?l:A,c},toString:()=>{const E=Math.min(xl(S),Qo),A=cv(j=>S.next(E*j).value,E,30);return E+"ms "+A},toTransition:()=>{}};return S}Jo.applyToOptions=e=>{const t=i_(e,100,Jo);return e.ease=t.ease,e.duration=ot(t.duration),e.type="keyframes",e};function Qa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:c,max:u,restDelta:s=.5,restSpeed:a}){const d=e[0],f={done:!1,value:d},p=O=>c!==void 0&&O<c||u!==void 0&&O>u,m=O=>c===void 0?u:u===void 0||Math.abs(c-O)<Math.abs(u-O)?c:u;let h=n*t;const v=d+h,y=l===void 0?v:l(v);y!==v&&(h=y-d);const b=O=>-h*Math.exp(-O/r),x=O=>y+b(O),S=O=>{const T=b(O),P=x(O);f.done=Math.abs(T)<=s,f.value=f.done?y:P};let E,A;const j=O=>{p(f.value)&&(E=O,A=Jo({keyframes:[f.value,m(f.value)],velocity:dv(x,O,f.value),damping:o,stiffness:i,restDelta:s,restSpeed:a}))};return j(0),{calculatedDuration:null,next:O=>{let T=!1;return!A&&E===void 0&&(T=!0,S(O),j(O)),E!==void 0&&O>=E?A.next(O-E):(!T&&S(O),f)}}}function p_(e,t,n){const r=[],o=n||vt.mix||uv,i=e.length-1;for(let l=0;l<i;l++){let c=o(e[l],e[l+1]);if(t){const u=Array.isArray(t)?t[l]||Ge:t;c=Er(u,c)}r.push(c)}return r}function h_(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(mt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=p_(t,r,o),u=c.length,s=a=>{if(l&&a<e[0])return t[0];let d=0;if(u>1)for(;d<e.length-2&&!(a<e[d+1]);d++);const f=or(e[d],e[d+1],a);return c[d](f)};return n?a=>s(st(e[0],e[i-1],a)):s}function m_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=or(0,t,r);e.push(ye(n,1,o))}}function v_(e){const t=[0];return m_(t,e.length-1),t}function g_(e,t){return e.map(n=>n*t)}function y_(e,t){return e.map(()=>t||Qm).splice(0,e.length-1)}function ln({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=jC(r)?r.map(Au):Au(r),i={done:!1,value:t[0]},l=g_(n&&n.length===t.length?n:v_(t),e),c=h_(l,t,{ease:Array.isArray(o)?o:y_(t,o)});return{calculatedDuration:e,next:u=>(i.value=c(u),i.done=u>=e,i)}}const b_=e=>e!==null;function El(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(b_),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const w_={decay:Qa,inertia:Qa,tween:ln,keyframes:ln,spring:Jo};function fv(e){typeof e.type=="string"&&(e.type=w_[e.type])}class Sl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const x_=e=>e/100;class Cl extends Sl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:o}=this.options;o&&o.updatedAt!==je.now()&&this.tick(je.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fv(t);const{type:n=ln,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=t;let{keyframes:c}=t;const u=n||ln;process.env.NODE_ENV!=="production"&&u!==ln&&mt(c.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${c}`,"spring-two-frames"),u!==ln&&typeof c[0]!="number"&&(this.mixKeyframes=Er(x_,uv(c[0],c[1])),c=[0,100]);const s=u({...t,keyframes:c});i==="mirror"&&(this.mirroredGenerator=u({...t,keyframes:[...c].reverse(),velocity:-l})),s.calculatedDuration===null&&(s.calculatedDuration=xl(s));const{calculatedDuration:a}=s;this.calculatedDuration=a,this.resolvedDuration=a+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=s}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:u}=this;if(this.startTime===null)return r.next(0);const{delay:s=0,keyframes:a,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-s*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,S=r;if(d){const O=Math.min(this.currentTime,o)/c;let T=Math.floor(O),P=O%1;!P&&O>=1&&(P=1),P===1&&T--,T=Math.min(T,d+1),T%2&&(f==="reverse"?(P=1-P,p&&(P-=p/c)):f==="mirror"&&(S=l)),x=st(0,1,P)*c}const E=b?{done:!1,value:a[0]}:S.next(x);i&&(E.value=i(E.value));let{done:A}=E;!b&&u!==null&&(A=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return j&&m!==Qa&&(E.value=El(a,this.options,v,this.speed)),h&&h(E.value),j&&this.finish(),E}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var n;t=ot(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(je.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var t,n;if(this.isStopped)return;const{driver:r=o_,startTime:o}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),(n=(t=this.options).onPlay)==null||n.call(t);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=o??i),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(je.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function E_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ht=e=>e*180/Math.PI,Ja=e=>{const t=Ht(Math.atan2(e[1],e[0]));return es(t)},S_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ja,rotateZ:Ja,skewX:e=>Ht(Math.atan(e[1])),skewY:e=>Ht(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},es=e=>(e=e%360,e<0&&(e+=360),e),Vu=Ja,$u=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Bu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),C_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$u,scaleY:Bu,scale:e=>($u(e)+Bu(e))/2,rotateX:e=>es(Ht(Math.atan2(e[6],e[5]))),rotateY:e=>es(Ht(Math.atan2(-e[2],e[0]))),rotateZ:Vu,rotate:Vu,skewX:e=>Ht(Math.atan(e[4])),skewY:e=>Ht(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ts(e){return e.includes("scale")?1:0}function ns(e,t){if(!e||e==="none")return ts(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=C_,o=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=S_,o=c}if(!o)return ts(t);const i=r[t],l=o[1].split(",").map(P_);return typeof i=="function"?i(l):l[i]}const __=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ns(n,t)};function P_(e){return parseFloat(e.trim())}const jn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mn=new Set(jn),zu=e=>e===Tn||e===W,R_=new Set(["x","y","z"]),O_=jn.filter(e=>!R_.has(e));function T_(e){const t=[];return O_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const St={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ns(t,"x"),y:(e,{transform:t})=>ns(t,"y")};St.translateX=St.x;St.translateY=St.y;const Gt=new Set;let rs=!1,os=!1,is=!1;function pv(){if(os){const e=Array.from(Gt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=T_(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var c;(c=r.getValue(i))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}os=!1,rs=!1,Gt.forEach(e=>e.complete(is)),Gt.clear()}function hv(){Gt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(os=!0)})}function j_(){is=!0,hv(),pv(),is=!1}class _l{constructor(t,n,r,o,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Gt.add(this),rs||(rs=!0,me.read(hv),me.resolveKeyframes(pv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),l=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),o&&i===void 0&&o.set(t[0])}E_(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Gt.delete(this)}cancel(){this.state==="scheduled"&&(Gt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const M_=e=>e.startsWith("--");function A_(e,t,n){M_(t)?e.style.setProperty(t,n):e.style[t]=n}const k_=fl(()=>window.ScrollTimeline!==void 0),D_={};function L_(e,t){const n=fl(e);return()=>D_[t]??n()}const mv=L_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Uu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kn([0,.65,.55,1]),circOut:Kn([.55,0,1,.45]),backIn:Kn([.31,.01,.66,-.59]),backOut:Kn([.33,1.53,.69,.99])};function vv(e,t){if(e)return typeof e=="function"?mv()?cv(e,t):"ease-out":Jm(e)?Kn(e):Array.isArray(e)?e.map(n=>vv(n,t)||Uu.easeOut):Uu[e]}function I_(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:c="easeOut",times:u}={},s=void 0){const a={[t]:n};u&&(a.offset=u);const d=vv(c,o);Array.isArray(d)&&(a.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return s&&(f.pseudoElement=s),e.animate(a,f)}function gv(e){return typeof e=="function"&&"applyToOptions"in e}function N_({type:e,...t}){return gv(e)&&mv()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class F_ extends Sl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:c,onComplete:u}=t;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=t,mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const s=N_(t);this.animation=I_(n,r,o,s,i),s.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const a=El(o,this.options,c,this.speed);this.updateMotionValue?this.updateMotionValue(a):A_(n,r,a),this.animation.cancel()}u==null||u(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var t,n;const r=((n=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:n.call(t).duration)||0;return Ue(Number(r))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&k_()?(this.animation.timeline=t,Ge):n(this)}}const yv={anticipate:Ym,backInOut:Km,circInOut:Zm};function V_(e){return e in yv}function $_(e){typeof e.ease=="string"&&V_(e.ease)&&(e.ease=yv[e.ease])}const ca=10;class B_ extends F_{constructor(t){$_(t),fv(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new Cl({...l,autoplay:!1}),u=Math.max(ca,je.now()-this.startTime),s=st(0,ca,u-ca);n.setWithVelocity(c.sample(Math.max(0,u-s)).value,c.sample(u).value,s),c.stop()}}const Hu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function z_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function U_(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],l=Hu(o,t),c=Hu(i,t);return On(l===c,`You are trying to animate ${t} from "${o}" to "${i}". "${l?i:o}" is not an animatable value.`,"value-not-animatable"),!l||!c?!1:z_(e)||(n==="spring"||gv(n))&&r}function as(e){e.duration=0,e.type="keyframes"}const H_=new Set(["opacity","clipPath","filter","transform"]),G_=fl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function W_(e){var t;const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:c}=e;if(!(((t=n==null?void 0:n.owner)==null?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:s}=n.owner.getProps();return G_()&&r&&H_.has(r)&&(r!=="transform"||!s)&&!u&&!o&&i!=="mirror"&&l!==0&&c!=="inertia"}const X_=40;class K_ extends Sl{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:l="loop",keyframes:c,name:u,motionValue:s,element:a,...d}){var f;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=je.now();const p={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:l,name:u,motionValue:s,element:a,...d},m=(a==null?void 0:a.KeyframeResolver)||_l;this.keyframeResolver=new m(c,(h,v,y)=>this.onKeyframesResolved(h,v,p,!y),u,s,a),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(t,n,r,o){var i,l;this.keyframeResolver=void 0;const{name:c,type:u,velocity:s,delay:a,isHandoff:d,onUpdate:f}=r;this.resolvedAt=je.now(),U_(t,c,u,s)||((vt.instantAnimations||!a)&&(f==null||f(El(t,r,n))),t[0]=t[t.length-1],as(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>X_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&W_(p),h=(l=(i=p.motionValue)==null?void 0:i.owner)==null?void 0:l.current,v=m?new B_({...p,element:h}):new Cl(p);v.finished.then(()=>{this.notifyFinished()}).catch(Ge),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),j_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function bv(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,s)=>u.sortNodePosition(s)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(i,l):o===1?i*r:c-i*r}const Y_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function q_(e){const t=Y_.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const Z_=4;function wv(e,t,n=1){mt(n<=Z_,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=q_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return $m(l)?parseFloat(l):l}return gl(o)?wv(o,t,n+1):o}const Q_={type:"spring",stiffness:500,damping:25,restSpeed:10},J_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),eP={type:"keyframes",duration:.8},tP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nP=(e,{keyframes:t})=>t.length>2?eP:Mn.has(e)?e.startsWith("scale")?J_(t[1]):Q_:tP,rP=e=>e!==null;function oP(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(rP),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Pl(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function iP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:c,from:u,elapsed:s,...a}){return!!Object.keys(a).length}const Rl=(e,t,n,r={},o,i)=>l=>{const c=Pl(r,e)||{},u=c.delay||r.delay||0;let{elapsed:s=0}=r;s=s-ot(u);const a={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-s,onUpdate:f=>{t.set(f),c.onUpdate&&c.onUpdate(f)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:i?void 0:o};iP(c)||Object.assign(a,nP(e,a)),a.duration&&(a.duration=ot(a.duration)),a.repeatDelay&&(a.repeatDelay=ot(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let d=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(as(a),a.delay===0&&(d=!0)),(vt.instantAnimations||vt.skipAnimations)&&(d=!0,as(a),a.delay=0),a.allowFlatten=!c.type&&!c.ease,d&&!i&&t.get()!==void 0){const f=oP(a.keyframes,c);if(f!==void 0){me.update(()=>{a.onUpdate(f),a.onComplete()});return}}return c.isSync?new Cl(a):new K_(a)};function Gu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Ol(e,t,n,r){if(typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vn(e,t,n){const r=e.getProps();return Ol(r,t,n!==void 0?n:r.custom,e)}const xv=new Set(["width","height","top","left","right","bottom",...jn]),Wu=30,aP=e=>!isNaN(parseFloat(e));class sP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=je.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=aP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&hl(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new pl);const r=this.events[t].add(n);return t==="change"?()=>{r(),me.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Wu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Wu);return Um(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new sP(e,t)}const ss=e=>Array.isArray(e);function lP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function uP(e){return ss(e)?e[e.length-1]||0:e}function cP(e,t){const n=vn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const c=uP(i[l]);lP(e,l,c)}}const Pe=e=>!!(e&&e.getVelocity);function dP(e){return!!(Pe(e)&&e.add)}function ls(e,t){const n=e.getValue("willChange");if(dP(n))return n.add(t);if(!n&&vt.WillChange){const r=new vt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Tl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const fP="framerAppearId",Ev="data-"+Tl(fP);function Sv(e){return e.props[Ev]}function pP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Cv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...c}=t;r&&(i=r);const u=[],s=o&&e.animationState&&e.animationState.getState()[o];for(const a in c){const d=e.getValue(a,e.latestValues[a]??null),f=c[a];if(f===void 0||s&&pP(s,a))continue;const p={delay:n,...Pl(i||{},a)},m=d.get();if(m!==void 0&&!d.isAnimating&&!Array.isArray(f)&&f===m&&!p.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){const y=Sv(e);if(y){const b=window.MotionHandoffAnimation(y,a,me);b!==null&&(p.startTime=b,h=!0)}}ls(e,a),d.start(Rl(a,d,f,e.shouldReduceMotion&&xv.has(a)?{type:!1}:p,e,h));const v=d.animation;v&&u.push(v)}return l&&Promise.all(u).then(()=>{me.update(()=>{l&&cP(e,l)})}),u}function us(e,t,n={}){var r;const o=vn(e,t,n.type==="exit"?(r=e.presenceContext)==null?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(Cv(e,o,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:a=0,staggerChildren:d,staggerDirection:f}=i;return hP(e,t,s,a,d,f,n)}:()=>Promise.resolve(),{when:u}=i;if(u){const[s,a]=u==="beforeChildren"?[l,c]:[c,l];return s().then(()=>a())}else return Promise.all([l(),c(n.delay)])}function hP(e,t,n=0,r=0,o=0,i=1,l){const c=[];for(const u of e.variantChildren)u.notify("AnimationStart",t),c.push(us(u,t,{...l,delay:n+(typeof r=="function"?0:r)+bv(e.variantChildren,u,r,o,i)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(c)}function mP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>us(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=us(e,t,n);else{const o=typeof t=="function"?vn(e,t,n.custom):t;r=Promise.all(Cv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const vP={test:e=>e==="auto",parse:e=>e},_v=e=>t=>t.test(e),Pv=[Tn,W,it,Et,zC,BC,vP],Xu=e=>Pv.find(_v(e));function gP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zm(e):!0}const yP=new Set(["brightness","contrast","saturate","opacity"]);function bP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(yl)||[];if(!r)return e;const o=n.replace(r,"");let i=yP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const wP=/\b([a-z-]*)\(.*?\)/gu,cs={...Tt,getAnimatableNone:e=>{const t=e.match(wP);return t?t.map(bP).join(" "):e}},Ku={...Tn,transform:Math.round},xP={rotate:Et,rotateX:Et,rotateY:Et,rotateZ:Et,scale:Hr,scaleX:Hr,scaleY:Hr,scaleZ:Hr,skew:Et,skewX:Et,skewY:Et,distance:W,translateX:W,translateY:W,translateZ:W,x:W,y:W,z:W,perspective:W,transformPerspective:W,opacity:ir,originX:Du,originY:Du,originZ:W},jl={borderWidth:W,borderTopWidth:W,borderRightWidth:W,borderBottomWidth:W,borderLeftWidth:W,borderRadius:W,radius:W,borderTopLeftRadius:W,borderTopRightRadius:W,borderBottomRightRadius:W,borderBottomLeftRadius:W,width:W,maxWidth:W,height:W,maxHeight:W,top:W,right:W,bottom:W,left:W,inset:W,insetBlock:W,insetBlockStart:W,insetBlockEnd:W,insetInline:W,insetInlineStart:W,insetInlineEnd:W,padding:W,paddingTop:W,paddingRight:W,paddingBottom:W,paddingLeft:W,paddingBlock:W,paddingBlockStart:W,paddingBlockEnd:W,paddingInline:W,paddingInlineStart:W,paddingInlineEnd:W,margin:W,marginTop:W,marginRight:W,marginBottom:W,marginLeft:W,marginBlock:W,marginBlockStart:W,marginBlockEnd:W,marginInline:W,marginInlineStart:W,marginInlineEnd:W,backgroundPositionX:W,backgroundPositionY:W,...xP,zIndex:Ku,fillOpacity:ir,strokeOpacity:ir,numOctaves:Ku},EP={...jl,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:cs,WebkitFilter:cs},Rv=e=>EP[e];function Ov(e,t){let n=Rv(e);return n!==cs&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const SP=new Set(["auto","none","0"]);function CP(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!SP.has(i)&&ar(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ov(n,o)}class _P extends _l{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let d=t[a];if(typeof d=="string"&&(d=d.trim(),gl(d))){const f=wv(d,n.current);f!==void 0&&(t[a]=f),a===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!xv.has(r)||t.length!==2)return;const[o,i]=t,l=Xu(o),c=Xu(i),u=ku(o),s=ku(i);if(u!==s&&St[r]){this.needsMeasurement=!0;return}if(l!==c)if(zu(l)&&zu(c))for(let a=0;a<t.length;a++){const d=t[a];typeof d=="string"&&(t[a]=parseFloat(d))}else St[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||gP(t[o]))&&r.push(o);r.length&&CP(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=St[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const l=o.length-1,c=o[l];o[l]=St[r](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(t=this.removedTransforms)!=null&&t.length&&this.removedTransforms.forEach(([u,s])=>{n.getValue(u).set(s)}),this.resolveNoneKeyframes()}}function PP(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Tv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function jv(e){return Bm(e)&&"offsetHeight"in e}const{schedule:Ml}=ev(queueMicrotask,!1),Ye={x:!1,y:!1};function Mv(){return Ye.x||Ye.y}function RP(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function Av(e,t){const n=PP(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function Yu(e){return!(e.pointerType==="touch"||Mv())}function OP(e,t,n={}){const[r,o,i]=Av(e,n),l=c=>{if(!Yu(c))return;const{target:u}=c,s=t(u,c);if(typeof s!="function"||!u)return;const a=d=>{Yu(d)&&(s(d),u.removeEventListener("pointerleave",a))};u.addEventListener("pointerleave",a,o)};return r.forEach(c=>{c.addEventListener("pointerenter",l,o)}),i}const kv=(e,t)=>t?e===t?!0:kv(e,t.parentElement):!1,Al=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,TP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Dv(e){return TP.has(e.tagName)||e.isContentEditable===!0}const Io=new WeakSet;function qu(e){return t=>{t.key==="Enter"&&e(t)}}function da(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const jP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=qu(()=>{if(Io.has(n))return;da(n,"down");const o=qu(()=>{da(n,"up")}),i=()=>da(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Zu(e){return Al(e)&&!Mv()}function MP(e,t,n={}){const[r,o,i]=Av(e,n),l=c=>{const u=c.currentTarget;if(!Zu(c))return;Io.add(u);const s=t(u,c),a=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),Io.has(u)&&Io.delete(u),Zu(p)&&typeof s=="function"&&s(p,{success:m})},d=p=>{a(p,u===window||u===document||n.useGlobalTarget||kv(u,p.target))},f=p=>{a(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,o),jv(c)&&(c.addEventListener("focus",u=>jP(u,o)),!Dv(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),i}function Lv(e){return Bm(e)&&"ownerSVGElement"in e}function AP(e){return Lv(e)&&e.tagName==="svg"}const kP=[...Pv,Ee,Tt],DP=e=>kP.find(_v(e)),Qu=()=>({translate:0,scale:1,origin:0,originPoint:0}),un=()=>({x:Qu(),y:Qu()}),Ju=()=>({min:0,max:0}),Ce=()=>({x:Ju(),y:Ju()}),ds={current:null},Iv={current:!1},LP=typeof window<"u";function IP(){if(Iv.current=!0,!!LP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ds.current=e.matches;e.addEventListener("change",t),t()}else ds.current=!1}const NP=new WeakMap;function Li(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sr(e){return typeof e=="string"||Array.isArray(e)}const kl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dl=["initial",...kl];function Ii(e){return Li(e.animate)||Dl.some(t=>sr(e[t]))}function Nv(e){return!!(Ii(e)||e.variants)}function FP(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Pe(o))e.addValue(r,o);else if(Pe(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,xn(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ec=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ei={};function Fv(e){ei=e}function VP(){return ei}class $P{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:l},c={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=_l,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=je.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,me.render(this.render,!1,!0))};const{latestValues:u,renderState:s}=l;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=s,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=c,this.blockInitialAnimation=!!i,this.isControllingVariants=Ii(n),this.isVariantNode=Nv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:a,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const p=d[f];u[f]!==void 0&&Pe(p)&&p.set(u[f])}}mount(t){var n;this.current=t,NP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Iv.current||IP(),this.shouldReduceMotion=ds.current),process.env.NODE_ENV!=="production"&&hl(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Mn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&me.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in ei){const n=ei[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ce()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ec.length;r++){const o=ec[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,l=t[i];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=FP(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&($m(r)||zm(r))?r=parseFloat(r):!DP(r)&&Tt.test(n)&&(r=Ov(t,n)),this.setBaseTarget(t,Pe(r)?r.get():r)),Pe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Ol(this.props,r,(n=this.presenceContext)==null?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new pl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ml.render(this.render)}}class Vv extends $P{constructor(){super(...arguments),this.KeyframeResolver=_P}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Lt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function $v({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function zP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function fa(e){return e===void 0||e===1}function fs({scale:e,scaleX:t,scaleY:n}){return!fa(e)||!fa(t)||!fa(n)}function zt(e){return fs(e)||Bv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Bv(e){return tc(e.x)||tc(e.y)}function tc(e){return e&&e!=="0%"}function ti(e,t,n){const r=e-n,o=t*r;return n+o}function nc(e,t,n,r,o){return o!==void 0&&(e=ti(e,o,r)),ti(e,n,r)+t}function ps(e,t=0,n=1,r,o){e.min=nc(e.min,t,n,r,o),e.max=nc(e.max,t,n,r,o)}function zv(e,{x:t,y:n}){ps(e.x,t.translate,t.scale,t.originPoint),ps(e.y,n.translate,n.scale,n.originPoint)}const rc=.999999999999,oc=1.0000000000001;function UP(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,l;for(let c=0;c<o;c++){i=n[c],l=i.projectionDelta;const{visualElement:u}=i.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&dn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,zv(e,l)),r&&zt(i.latestValues)&&dn(e,i.latestValues))}t.x<oc&&t.x>rc&&(t.x=1),t.y<oc&&t.y>rc&&(t.y=1)}function cn(e,t){e.min=e.min+t,e.max=e.max+t}function ic(e,t,n,r,o=.5){const i=ye(e.min,e.max,o);ps(e,t,n,i,r)}function dn(e,t){ic(e.x,t.x,t.scaleX,t.scale,t.originX),ic(e.y,t.y,t.scaleY,t.scale,t.originY)}function Uv(e,t){return $v(zP(e.getBoundingClientRect(),t))}function HP(e,t,n){const r=Uv(e,n),{scroll:o}=t;return o&&(cn(r.x,o.offset.x),cn(r.y,o.offset.y)),r}const GP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},WP=jn.length;function XP(e,t,n){let r="",o=!0;for(let i=0;i<WP;i++){const l=jn[i],c=e[l];if(c===void 0)continue;let u=!0;if(typeof c=="number"?u=c===(l.startsWith("scale")?1:0):u=parseFloat(c)===0,!u||n){const s=Tv(c,jl[l]);if(!u){o=!1;const a=GP[l]||l;r+=`${a}(${s}) `}n&&(t[l]=s)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Ll(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let l=!1,c=!1;for(const u in t){const s=t[u];if(Mn.has(u)){l=!0;continue}else if(nv(u)){o[u]=s;continue}else{const a=Tv(s,jl[u]);u.startsWith("origin")?(c=!0,i[u]=a):r[u]=a}}if(t.transform||(l||n?r.transform=XP(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:u="50%",originY:s="50%",originZ:a=0}=i;r.transformOrigin=`${u} ${s} ${a}`}}function Hv(e,{style:t,vars:n},r,o){const i=e.style;let l;for(l in t)i[l]=t[l];o==null||o.applyProjectionStyles(i,r);for(l in n)i.setProperty(l,n[l])}function ac(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const In={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(W.test(e))e=parseFloat(e);else return e;const n=ac(e,t.target.x),r=ac(e,t.target.y);return`${n}% ${r}%`}},KP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tt.parse(e);if(o.length>5)return r;const i=Tt.createTransformer(e),l=typeof o[0]!="number"?1:0,c=n.x.scale*t.x,u=n.y.scale*t.y;o[0+l]/=c,o[1+l]/=u;const s=ye(c,u,.5);return typeof o[2+l]=="number"&&(o[2+l]/=s),typeof o[3+l]=="number"&&(o[3+l]/=s),i(o)}},hs={borderRadius:{...In,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:In,borderTopRightRadius:In,borderBottomLeftRadius:In,borderBottomRightRadius:In,boxShadow:KP};function Gv(e,{layout:t,layoutId:n}){return Mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!hs[e]||e==="opacity")}function Il(e,t,n){var r;const o=e.style,i=t==null?void 0:t.style,l={};if(!o)return l;for(const c in o)(Pe(o[c])||i&&Pe(i[c])||Gv(c,e)||((r=n==null?void 0:n.getValue(c))==null?void 0:r.liveStyle)!==void 0)&&(l[c]=o[c]);return l}function YP(e){return window.getComputedStyle(e)}class qP extends Vv{constructor(){super(...arguments),this.type="html",this.renderInstance=Hv}readValueFromInstance(t,n){var r;if(Mn.has(n))return(r=this.projection)!=null&&r.isProjecting?ts(n):__(t,n);{const o=YP(t),i=(nv(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Uv(t,n)}build(t,n,r){Ll(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Il(t,n,r)}}const ZP={offset:"stroke-dashoffset",array:"stroke-dasharray"},QP={offset:"strokeDashoffset",array:"strokeDasharray"};function JP(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?ZP:QP;e[i.offset]=W.transform(-r);const l=W.transform(t),c=W.transform(n);e[i.array]=`${l} ${c}`}const eR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Wv(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:l=0,...c},u,s,a){if(Ll(e,c,s),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(a==null?void 0:a.transformBox)??"fill-box",delete d.transformBox);for(const p of eR)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&JP(d,o,i,l,!1)}const Xv=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"]),Kv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function tR(e,t,n,r){Hv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Xv.has(o)?o:Tl(o),t.attrs[o])}function Yv(e,t,n){const r=Il(e,t,n);for(const o in e)if(Pe(e[o])||Pe(t[o])){const i=jn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class nR extends Vv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ce}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mn.has(n)){const r=Rv(n);return r&&r.default||0}return n=Xv.has(n)?n:Tl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Yv(t,n,r)}build(t,n,r){Wv(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){tR(t,n,r,o)}mount(t){this.isSVGTag=Kv(t.tagName),super.mount(t)}}const rR=Dl.length;function qv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<rR;n++){const r=Dl[n],o=e.props[r];(sr(o)||o===!1)&&(t[r]=o)}return t}function Zv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const oR=[...kl].reverse(),iR=kl.length;function aR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>mP(e,n,r)))}function sR(e){let t=aR(e),n=sc(),r=!0;const o=u=>(s,a)=>{var d;const f=vn(e,a,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;s={...s,...h,...m}}return s};function i(u){t=u(e)}function l(u){const{props:s}=e,a=qv(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let v=0;v<iR;v++){const y=oR[v],b=n[y],x=s[y]!==void 0?s[y]:a[y],S=sr(x),E=y===u?b.isActive:null;E===!1&&(m=v);let A=x===a[y]&&x!==s[y]&&S;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...p},!b.isActive&&E===null||!x&&!b.prevProp||Li(x)||typeof x=="boolean")continue;const j=lR(b.prevProp,x);let O=j||y===u&&b.isActive&&!A&&S||v>m&&S,T=!1;const P=Array.isArray(x)?x:[x];let k=P.reduce(o(y),{});E===!1&&(k={});const{prevResolvedValues:R={}}=b,$={...R,...k},F=B=>{O=!0,f.has(B)&&(T=!0,f.delete(B)),b.needsAnimating[B]=!0;const X=e.getValue(B);X&&(X.liveStyle=!1)};for(const B in $){const X=k[B],G=R[B];if(p.hasOwnProperty(B))continue;let L=!1;ss(X)&&ss(G)?L=!Zv(X,G):L=X!==G,L?X!=null?F(B):f.add(B):X!==void 0&&f.has(B)?F(B):b.protectedKeys[B]=!0}b.prevProp=x,b.prevResolvedValues=k,b.isActive&&(p={...p,...k}),r&&e.blockInitialAnimation&&(O=!1);const H=A&&j;O&&(!H||T)&&d.push(...P.map(B=>{const X={type:y};if(typeof B=="string"&&r&&!H&&e.manuallyAnimateOnMount&&e.parent){const{parent:G}=e,L=vn(G,B);if(G.enteringChildren&&L){const{delayChildren:M}=L.transition||{};X.delay=bv(G.enteringChildren,e,M)}}return{animation:B,options:X}}))}if(f.size){const v={};if(typeof s.initial!="boolean"){const y=vn(e,Array.isArray(s.initial)?s.initial[0]:s.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),v[y]=b??null}),d.push({animation:v})}let h=!!d.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function c(u,s){var a;if(n[u].isActive===s)return Promise.resolve();(a=e.variantChildren)==null||a.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(u,s)}),n[u].isActive=s;const d=l(u);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:c,setAnimateFunction:i,getState:()=>n,reset:()=>{n=sc()}}}function lR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Zv(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sc(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}function lc(e,t){e.min=t.min,e.max=t.max}function We(e,t){lc(e.x,t.x),lc(e.y,t.y)}function uc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Qv=1e-4,uR=1-Qv,cR=1+Qv,Jv=.01,dR=0-Jv,fR=0+Jv;function Me(e){return e.max-e.min}function pR(e,t,n){return Math.abs(e-t)<=n}function cc(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Me(n)/Me(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=uR&&e.scale<=cR||isNaN(e.scale))&&(e.scale=1),(e.translate>=dR&&e.translate<=fR||isNaN(e.translate))&&(e.translate=0)}function Zn(e,t,n,r){cc(e.x,t.x,n.x,r?r.originX:void 0),cc(e.y,t.y,n.y,r?r.originY:void 0)}function dc(e,t,n){e.min=n.min+t.min,e.max=e.min+Me(t)}function hR(e,t,n){dc(e.x,t.x,n.x),dc(e.y,t.y,n.y)}function fc(e,t,n){e.min=t.min-n.min,e.max=e.min+Me(t)}function ni(e,t,n){fc(e.x,t.x,n.x),fc(e.y,t.y,n.y)}function pc(e,t,n,r,o){return e-=t,e=ti(e,1/n,r),o!==void 0&&(e=ti(e,1/o,r)),e}function mR(e,t=0,n=1,r=.5,o,i=e,l=e){if(it.test(t)&&(t=parseFloat(t),t=ye(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ye(i.min,i.max,r);e===i&&(c-=t),e.min=pc(e.min,t,n,c,o),e.max=pc(e.max,t,n,c,o)}function hc(e,t,[n,r,o],i,l){mR(e,t[n],t[r],t[o],t.scale,i,l)}const vR=["x","scaleX","originX"],gR=["y","scaleY","originY"];function mc(e,t,n,r){hc(e.x,t,vR,n?n.x:void 0,r?r.x:void 0),hc(e.y,t,gR,n?n.y:void 0,r?r.y:void 0)}function vc(e){return e.translate===0&&e.scale===1}function eg(e){return vc(e.x)&&vc(e.y)}function gc(e,t){return e.min===t.min&&e.max===t.max}function yR(e,t){return gc(e.x,t.x)&&gc(e.y,t.y)}function yc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function tg(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function bc(e){return Me(e.x)/Me(e.y)}function wc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ze(e){return[e("x"),e("y")]}function bR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||i||l)&&(r=`translate3d(${o}px, ${i}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:s,rotate:a,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;s&&(r=`perspective(${s}px) ${r}`),a&&(r+=`rotate(${a}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const c=e.x.scale*t.x,u=e.y.scale*t.y;return(c!==1||u!==1)&&(r+=`scale(${c}, ${u})`),r||"none"}const ng=["TopLeft","TopRight","BottomLeft","BottomRight"],wR=ng.length,xc=e=>typeof e=="string"?parseFloat(e):e,Ec=e=>typeof e=="number"||W.test(e);function xR(e,t,n,r,o,i){o?(e.opacity=ye(0,n.opacity??1,ER(r)),e.opacityExit=ye(t.opacity??1,0,SR(r))):i&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let l=0;l<wR;l++){const c=`border${ng[l]}Radius`;let u=Sc(t,c),s=Sc(n,c);u===void 0&&s===void 0||(u||(u=0),s||(s=0),u===0||s===0||Ec(u)===Ec(s)?(e[c]=Math.max(ye(xc(u),xc(s),r),0),(it.test(s)||it.test(u))&&(e[c]+="%")):e[c]=s)}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function Sc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ER=rg(0,.5,qm),SR=rg(.5,.95,Ge);function rg(e,t,n){return r=>r<e?0:r>t?1:n(or(e,t,r))}function CR(e,t,n){const r=Pe(e)?e:xn(e);return r.start(Rl("",r,t,n)),r.animation}function lr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const _R=(e,t)=>e.depth-t.depth;class PR{constructor(){this.children=[],this.isDirty=!1}add(t){cl(this.children,t),this.isDirty=!0}remove(t){dl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(_R),this.isDirty=!1,this.children.forEach(t)}}function RR(e,t){const n=je.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return me.setup(r,!0),()=>Ot(r)}function No(e){return Pe(e)?e.get():e}class OR{constructor(){this.members=[]}add(t){cl(this.members,t),t.scheduleRender()}remove(t){if(dl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Fo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},pa=["","X","Y","Z"],TR=1e3;let jR=0;function ha(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function og(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",me,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&og(r)}function ig({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},l=t==null?void 0:t()){this.id=jR++,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(kR),this.nodes.forEach(NR),this.nodes.forEach(FR),this.nodes.forEach(DR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new PR)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new pl),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const c=this.eventHandlers.get(i);c&&c.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=Lv(i)&&!AP(i),this.instance=i;const{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(c||l)&&(this.isLayoutDirty=!0),e){let s,a=0;const d=()=>this.root.updateBlockedByResize=!1;me.read(()=>{a=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==a&&(a=f,this.root.updateBlockedByResize=!0,s&&s(),s=RR(d,250),Fo.hasAnimatedSinceResize&&(Fo.hasAnimatedSinceResize=!1,this.nodes.forEach(Pc)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:s,hasLayoutChanged:a,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||UR,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=u.getProps(),v=!this.targetLayout||!tg(this.targetLayout,f),y=!a&&d;if(this.options.layoutRoot||this.resumeFrom||y||a&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Pl(p,"layout"),onPlay:m,onComplete:h};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(s,y)}else a||Pc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(VR),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&og(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const a=this.path[s];a.shouldResetTransform=!0,a.updateScroll("snapshot"),a.options.layoutRoot&&a.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Cc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(_c);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(IR),this.nodes.forEach(MR),this.nodes.forEach(AR)):this.nodes.forEach(_c),this.clearAllSnapshots();const i=je.now();_e.delta=st(0,1e3/60,i-_e.timestamp),_e.timestamp=i,_e.isProcessing=!0,ia.update.process(_e),ia.preRender.process(_e),ia.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ml.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LR),this.sharedNodes.forEach($R)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,me.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){me.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(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 i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Ce(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!eg(this.projectionDelta),c=this.getTransformTemplate(),u=c?c(this.latestValues,""):void 0,s=u!==this.prevTransformTemplateValue;i&&this.instance&&(l||zt(this.latestValues)||s)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return i&&(c=this.removeTransform(c)),HR(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:l}=this.options;if(!l)return Ce();const c=l.measureViewportBox();if(!((i=this.scroll)!=null&&i.wasRoot||this.path.some(GR))){const{scroll:u}=this.root;u&&(cn(c.x,u.offset.x),cn(c.y,u.offset.y))}return c}removeElementScroll(i){var l;const c=Ce();if(We(c,i),(l=this.scroll)!=null&&l.wasRoot)return c;for(let u=0;u<this.path.length;u++){const s=this.path[u],{scroll:a,options:d}=s;s!==this.root&&a&&d.layoutScroll&&(a.wasRoot&&We(c,i),cn(c.x,a.offset.x),cn(c.y,a.offset.y))}return c}applyTransform(i,l=!1){const c=Ce();We(c,i);for(let u=0;u<this.path.length;u++){const s=this.path[u];!l&&s.options.layoutScroll&&s.scroll&&s!==s.root&&dn(c,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),zt(s.latestValues)&&dn(c,s.latestValues)}return zt(this.latestValues)&&dn(c,this.latestValues),c}removeTransform(i){const l=Ce();We(l,i);for(let c=0;c<this.path.length;c++){const u=this.path[c];if(!u.instance||!zt(u.latestValues))continue;fs(u.latestValues)&&u.updateSnapshot();const s=Ce(),a=u.measurePageBox();We(s,a),mc(l,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,s)}return zt(this.latestValues)&&mc(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==_e.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var l;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==c;if(!(i||u&&this.isSharedProjectionDirty||this.isProjectionDirty||(l=this.parent)!=null&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:a}=this.options;if(!this.layout||!(s||a))return;this.resolvedRelativeTargetAt=_e.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ce(),this.targetWithTransforms=Ce()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):We(this.target,this.layout.layoutBox),zv(this.target,this.targetDelta)):We(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||fs(this.parent.latestValues)||Bv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,l,c){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ce(),this.relativeTargetOrigin=Ce(),ni(this.relativeTargetOrigin,l,c),We(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var i;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let u=!0;if((this.isProjectionDirty||(i=this.parent)!=null&&i.isProjectionDirty)&&(u=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===_e.timestamp&&(u=!1),u)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;We(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;UP(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ce());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(uc(this.prevProjectionDelta.x,this.projectionDelta.x),uc(this.prevProjectionDelta.y,this.projectionDelta.y)),Zn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!wc(this.projectionDelta.x,this.prevProjectionDelta.x)||!wc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),i){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=un(),this.projectionDelta=un(),this.projectionDeltaWithTransform=un()}setAnimationOrigin(i,l=!1){const c=this.snapshot,u=c?c.latestValues:{},s={...this.latestValues},a=un();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Ce(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,h=this.getStack(),v=!h||h.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(zR));this.animationProgress=0;let b;this.mixTargetDelta=x=>{const S=x/1e3;Rc(a.x,i.x,S),Rc(a.y,i.y,S),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ni(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),BR(this.relativeTarget,this.relativeTargetOrigin,d,S),b&&yR(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Ce()),We(b,this.relativeTarget)),m&&(this.animationValues=s,xR(s,u,this.latestValues,S,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var l,c,u;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(u=(c=this.resumingFrom)==null?void 0:c.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=me.update(()=>{Fo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.currentAnimation=CR(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(TR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:c,layout:u,latestValues:s}=i;if(!(!l||!c||!u)){if(this!==i&&this.layout&&u&&ag(this.options.animationType,this.layout.layoutBox,u.layoutBox)){c=this.target||Ce();const a=Me(this.layout.layoutBox.x);c.x.min=i.target.x.min,c.x.max=c.x.min+a;const d=Me(this.layout.layoutBox.y);c.y.min=i.target.y.min,c.y.max=c.y.min+d}We(l,c),dn(l,s),Zn(this.projectionDeltaWithTransform,this.layoutCorrected,l,s)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new OR),this.sharedNodes.get(i).add(l);const c=l.options.initialPromotionConfig;l.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:l}=this.options;return l?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:l}=this.options;return l?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:c}={}){const u=this.getStack();u&&u.promote(this,c),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:c}=i;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const u={};c.z&&ha("z",i,u,this.animationValues);for(let s=0;s<pa.length;s++)ha(`rotate${pa[s]}`,i,u,this.animationValues),ha(`skew${pa[s]}`,i,u,this.animationValues);i.render();for(const s in u)i.setStaticValue(s,u[s]),this.animationValues&&(this.animationValues[s]=u[s]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const c=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=No(l==null?void 0:l.pointerEvents)||"",i.transform=c?c(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=No(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!zt(this.latestValues)&&(i.transform=c?c({},""):"none",this.hasProjected=!1);return}i.visibility="";const s=u.animationValues||u.latestValues;this.applyTransformsToTarget();let a=bR(this.projectionDeltaWithTransform,this.treeScale,s);c&&(a=c(s,a)),i.transform=a;const{x:d,y:f}=this.projectionDelta;i.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,u.animationValues?i.opacity=u===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=u===this?s.opacity!==void 0?s.opacity:"":s.opacityExit!==void 0?s.opacityExit:0;for(const p in hs){if(s[p]===void 0)continue;const{correct:m,applyTo:h,isCSSVariable:v}=hs[p],y=a==="none"?s[p]:m(s[p],u);if(h){const b=h.length;for(let x=0;x<b;x++)i[h[x]]=y}else v?this.options.visualElement.renderState.vars[p]=y:i[p]=y}this.options.layoutId&&(i.pointerEvents=u===this?No(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var l;return(l=i.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(Cc),this.root.sharedNodes.clear()}}}function MR(e){e.updateLayout()}function AR(e){var t;const n=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,l=n.source!==e.layout.source;i==="size"?ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(f);f.min=r[d].min,f.max=f.min+p}):ag(i,n.layoutBox,r)&&ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const c=un();Zn(c,r,n.layoutBox);const u=un();l?Zn(u,e.applyTransform(o,!0),n.measuredBox):Zn(u,r,n.layoutBox);const s=!eg(c);let a=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Ce();ni(m,n.layoutBox,f.layoutBox);const h=Ce();ni(h,r,p.layoutBox),tg(m,h)||(a=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:u,layoutDelta:c,hasLayoutChanged:s,hasRelativeLayoutChanged:a})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function kR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LR(e){e.clearSnapshot()}function Cc(e){e.clearMeasurements()}function _c(e){e.isLayoutDirty=!1}function IR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Pc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function NR(e){e.resolveTargetDelta()}function FR(e){e.calcProjection()}function VR(e){e.resetSkewAndRotation()}function $R(e){e.removeLeadSnapshot()}function Rc(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Oc(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function BR(e,t,n,r){Oc(e.x,t.x,n.x,r),Oc(e.y,t.y,n.y,r)}function zR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const UR={duration:.45,ease:[.4,0,.1,1]},Tc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jc=Tc("applewebkit/")&&!Tc("chrome/")?Math.round:Ge;function Mc(e){e.min=jc(e.min),e.max=jc(e.max)}function HR(e){Mc(e.x),Mc(e.y)}function ag(e,t,n){return e==="position"||e==="preserve-aspect"&&!pR(bc(t),bc(n),.2)}function GR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const WR=ig({attachResizeListener:(e,t)=>lr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ma={current:void 0},sg=ig({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ma.current){const e=new WR({});e.mount(window),e.setOptions({layoutScroll:!0}),ma.current=e}return ma.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Nl=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Ac(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function XR(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Ac(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Ac(e[o],null)}}}}function KR(...e){return g.useCallback(XR(...e),e)}class YR extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=jv(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function qR({children:e,isPresent:t,anchorX:n,root:r}){var o;const i=_.useId(),l=_.useRef(null),c=_.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=_.useContext(Nl),s=((o=e.props)==null?void 0:o.ref)??(e==null?void 0:e.ref),a=KR(l,s);return _.useInsertionEffect(()=>{const{width:d,height:f,top:p,left:m,right:h}=c.current;if(t||!l.current||!d||!f)return;const v=n==="left"?`left: ${m}`:`right: ${h}`;l.current.dataset.motionPopId=i;const y=document.createElement("style");u&&(y.nonce=u);const b=r??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
97
|
-
[data-motion-pop-id="${
|
|
96
|
+
Defaulting to \`null\`.`}var nl="Radio",[IE,Lh]=xe(nl),[LE,FE]=IE(nl),Fh=g.forwardRef((e,t)=>{const{__scopeRadio:n,name:r,checked:o=!1,required:i,disabled:l,value:u="on",onCheck:c,form:s,...a}=e,[d,f]=g.useState(null),p=re(t,v=>f(v)),m=g.useRef(!1),h=d?s||!!d.closest("form"):!0;return w.jsxs(LE,{scope:n,checked:o,disabled:l,children:[w.jsx(z.button,{type:"button",role:"radio","aria-checked":o,"data-state":zh(o),"data-disabled":l?"":void 0,disabled:l,value:u,...a,ref:p,onClick:L(e.onClick,v=>{o||c==null||c(),h&&(m.current=v.isPropagationStopped(),m.current||v.stopPropagation())})}),h&&w.jsx(Bh,{control:d,bubbles:!m.current,name:r,value:u,checked:o,required:i,disabled:l,form:s,style:{transform:"translateX(-100%)"}})]})});Fh.displayName=nl;var Vh="RadioIndicator",$h=g.forwardRef((e,t)=>{const{__scopeRadio:n,forceMount:r,...o}=e,i=FE(Vh,n);return w.jsx(Ve,{present:r||i.checked,children:w.jsx(z.span,{"data-state":zh(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:t})})});$h.displayName=Vh;var VE="RadioBubbleInput",Bh=g.forwardRef(({__scopeRadio:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),u=re(l,i),c=fr(n),s=pr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[c,n,r]),w.jsx(z.input,{type:"radio","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Bh.displayName=VE;function zh(e){return e?"checked":"unchecked"}var $E=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],_i="RadioGroup",[BE]=xe(_i,[Mt,Lh]),Uh=Mt(),Hh=Lh(),[zE,UE]=BE(_i),HE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,name:r,defaultValue:o,value:i,required:l=!1,disabled:u=!1,orientation:c,dir:s,loop:a=!0,onValueChange:d,...f}=e,p=Uh(n),m=qt(s),[h,v]=Fe({prop:i,defaultProp:o??null,onChange:d,caller:_i});return w.jsx(zE,{scope:n,name:r,required:l,disabled:u,value:h,onValueChange:v,children:w.jsx(bi,{asChild:!0,...p,orientation:c,dir:m,loop:a,children:w.jsx(z.div,{role:"radiogroup","aria-required":l,"aria-orientation":c,"data-disabled":u?"":void 0,dir:m,...f,ref:t})})})});HE.displayName=_i;var Wh="RadioGroupItem",WE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,disabled:r,...o}=e,i=UE(Wh,n),l=i.disabled||r,u=Uh(n),c=Hh(n),s=g.useRef(null),a=re(t,s),d=i.value===o.value,f=g.useRef(!1);return g.useEffect(()=>{const p=h=>{$E.includes(h.key)&&(f.current=!0)},m=()=>f.current=!1;return document.addEventListener("keydown",p),document.addEventListener("keyup",m),()=>{document.removeEventListener("keydown",p),document.removeEventListener("keyup",m)}},[]),w.jsx(wi,{asChild:!0,...u,focusable:!l,active:d,children:w.jsx(Fh,{disabled:l,required:i.required,checked:d,...c,...o,name:i.name,ref:a,onCheck:()=>i.onValueChange(o.value),onKeyDown:L(p=>{p.key==="Enter"&&p.preventDefault()}),onFocus:L(o.onFocus,()=>{var p;f.current&&((p=s.current)==null||p.click())})})})});WE.displayName=Wh;var GE="RadioGroupIndicator",XE=g.forwardRef((e,t)=>{const{__scopeRadioGroup:n,...r}=e,o=Hh(n);return w.jsx($h,{...o,...r,ref:t})});XE.displayName=GE;var KE=[" ","Enter","ArrowUp","ArrowDown"],YE=[" ","Enter"],Pi="Select",[rl,Ri,qE]=ur(Pi),[Pn]=xe(Pi,[qE,jt]),ol=jt(),[rj,At]=Pn(Pi),[oj,ZE]=Pn(Pi),Gh="SelectTrigger",QE=g.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...o}=e,i=ol(n),l=At(Gh,n),u=l.disabled||r,c=re(t,l.onTriggerChange),s=Ri(n),a=g.useRef("touch"),[d,f,p]=im(h=>{const v=s().filter(x=>!x.disabled),y=v.find(x=>x.value===l.value),b=am(v,h,y);b!==void 0&&l.onValueChange(b.value)}),m=h=>{u||(l.onOpenChange(!0),p()),h&&(l.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)})};return w.jsx(mr,{asChild:!0,...i,children:w.jsx(z.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":om(l.value)?"":void 0,...o,ref:c,onClick:L(o.onClick,h=>{h.currentTarget.focus(),a.current!=="mouse"&&m(h)}),onPointerDown:L(o.onPointerDown,h=>{a.current=h.pointerType;const v=h.target;v.hasPointerCapture(h.pointerId)&&v.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&h.pointerType==="mouse"&&(m(h),h.preventDefault())}),onKeyDown:L(o.onKeyDown,h=>{const v=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(v&&h.key===" ")&&KE.includes(h.key)&&(m(),h.preventDefault())})})})});QE.displayName=Gh;var Xh="SelectValue",JE=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,children:i,placeholder:l="",...u}=e,c=At(Xh,n),{onValueNodeHasChildrenChange:s}=c,a=i!==void 0,d=re(t,c.onValueNodeChange);return Ce(()=>{s(a)},[s,a]),w.jsx(z.span,{...u,ref:d,style:{pointerEvents:"none"},children:om(c.value)?w.jsx(w.Fragment,{children:l}):i})});JE.displayName=Xh;var eC="SelectIcon",tC=g.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...o}=e;return w.jsx(z.span,{"aria-hidden":!0,...o,ref:t,children:r||"▼"})});tC.displayName=eC;var Kt="SelectContent",nC=g.forwardRef((e,t)=>{const n=At(Kt,e.__scopeSelect),[r,o]=g.useState();if(Ce(()=>{o(new DocumentFragment)},[]),!n.open){const i=r;return i?oi.createPortal(w.jsx(Kh,{scope:e.__scopeSelect,children:w.jsx(rl.Slot,{scope:e.__scopeSelect,children:w.jsx("div",{children:e.children})})}),i):null}return w.jsx(Yh,{...e,ref:t})});nC.displayName=Kt;var Ke=10,[Kh,kt]=Pn(Kt),rC="SelectContentImpl",oC=_t("SelectContent.RemoveScroll"),Yh=g.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:i,onPointerDownOutside:l,side:u,sideOffset:c,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v,...y}=e,b=At(Kt,n),[x,E]=g.useState(null),[C,T]=g.useState(null),A=re(t,V=>E(V)),[j,R]=g.useState(null),[P,k]=g.useState(null),O=Ri(n),[$,F]=g.useState(!1),H=g.useRef(!1);g.useEffect(()=>{if(x)return di(x)},[x]),ui();const B=g.useCallback(V=>{const[q,...K]=O().map(I=>I.ref.current),[U]=K.slice(-1),oe=document.activeElement;for(const I of V)if(I===oe||(I==null||I.scrollIntoView({block:"nearest"}),I===q&&C&&(C.scrollTop=0),I===U&&C&&(C.scrollTop=C.scrollHeight),I==null||I.focus(),document.activeElement!==oe))return},[O,C]),G=g.useCallback(()=>B([j,x]),[B,j,x]);g.useEffect(()=>{$&&G()},[$,G]);const{onOpenChange:W,triggerPointerDownPosRef:N}=b;g.useEffect(()=>{if(x){let V={x:0,y:0};const q=U=>{var oe,I;V={x:Math.abs(Math.round(U.pageX)-(((oe=N.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(U.pageY)-(((I=N.current)==null?void 0:I.y)??0))}},K=U=>{V.x<=10&&V.y<=10?U.preventDefault():x.contains(U.target)||W(!1),document.removeEventListener("pointermove",q),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",K,{capture:!0})}}},[x,W,N]),g.useEffect(()=>{const V=()=>W(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[W]);const[M,D]=im(V=>{const q=O().filter(oe=>!oe.disabled),K=q.find(oe=>oe.ref.current===document.activeElement),U=am(q,V,K);U&&setTimeout(()=>U.ref.current.focus())}),ee=g.useCallback((V,q,K)=>{const U=!H.current&&!K;(b.value!==void 0&&b.value===q||U)&&(R(V),U&&(H.current=!0))},[b.value]),J=g.useCallback(()=>x==null?void 0:x.focus(),[x]),X=g.useCallback((V,q,K)=>{const U=!H.current&&!K;(b.value!==void 0&&b.value===q||U)&&k(V)},[b.value]),ne=r==="popper"?Va:qh,te=ne===Va?{side:u,sideOffset:c,align:s,alignOffset:a,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:v}:{};return w.jsx(Kh,{scope:n,content:x,viewport:C,onViewportChange:T,itemRefCallback:ee,selectedItem:j,onItemLeave:J,itemTextRefCallback:X,focusSelectedItem:G,selectedItemText:P,position:r,isPositioned:$,searchRef:M,children:w.jsx(dr,{as:oC,allowPinchZoom:!0,children:w.jsx(cr,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:L(o,V=>{var q;(q=b.trigger)==null||q.focus({preventScroll:!0}),V.preventDefault()}),children:w.jsx(Cn,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:w.jsx(ne,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault(),...y,...te,onPlaced:()=>F(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:L(y.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&D(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let K=O().filter(U=>!U.disabled).map(U=>U.ref.current);if(["ArrowUp","End"].includes(V.key)&&(K=K.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const U=V.target,oe=K.indexOf(U);K=K.slice(oe+1)}setTimeout(()=>B(K)),V.preventDefault()}})})})})})})});Yh.displayName=rC;var iC="SelectItemAlignedPosition",qh=g.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...o}=e,i=At(Kt,n),l=kt(Kt,n),[u,c]=g.useState(null),[s,a]=g.useState(null),d=re(t,A=>a(A)),f=Ri(n),p=g.useRef(!1),m=g.useRef(!0),{viewport:h,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=l,x=g.useCallback(()=>{if(i.trigger&&i.valueNode&&u&&s&&h&&v&&y){const A=i.trigger.getBoundingClientRect(),j=s.getBoundingClientRect(),R=i.valueNode.getBoundingClientRect(),P=y.getBoundingClientRect();if(i.dir!=="rtl"){const U=P.left-j.left,oe=R.left-U,I=A.left-oe,fe=A.width+I,ke=Math.max(fe,j.width),Be=window.innerWidth-Ke,It=Go(oe,[Ke,Math.max(Ke,Be-ke)]);u.style.minWidth=fe+"px",u.style.left=It+"px"}else{const U=j.right-P.right,oe=window.innerWidth-R.right-U,I=window.innerWidth-A.right-oe,fe=A.width+I,ke=Math.max(fe,j.width),Be=window.innerWidth-Ke,It=Go(oe,[Ke,Math.max(Ke,Be-ke)]);u.style.minWidth=fe+"px",u.style.right=It+"px"}const k=f(),O=window.innerHeight-Ke*2,$=h.scrollHeight,F=window.getComputedStyle(s),H=parseInt(F.borderTopWidth,10),B=parseInt(F.paddingTop,10),G=parseInt(F.borderBottomWidth,10),W=parseInt(F.paddingBottom,10),N=H+B+$+W+G,M=Math.min(v.offsetHeight*5,N),D=window.getComputedStyle(h),ee=parseInt(D.paddingTop,10),J=parseInt(D.paddingBottom,10),X=A.top+A.height/2-Ke,ne=O-X,te=v.offsetHeight/2,V=v.offsetTop+te,q=H+B+V,K=N-q;if(q<=X){const U=k.length>0&&v===k[k.length-1].ref.current;u.style.bottom="0px";const oe=s.clientHeight-h.offsetTop-h.offsetHeight,I=Math.max(ne,te+(U?J:0)+oe+G),fe=q+I;u.style.height=fe+"px"}else{const U=k.length>0&&v===k[0].ref.current;u.style.top="0px";const oe=Math.max(X,H+h.offsetTop+(U?ee:0)+te)+K;u.style.height=oe+"px",h.scrollTop=q-X+h.offsetTop}u.style.margin=`${Ke}px 0`,u.style.minHeight=M+"px",u.style.maxHeight=O+"px",r==null||r(),requestAnimationFrame(()=>p.current=!0)}},[f,i.trigger,i.valueNode,u,s,h,v,y,i.dir,r]);Ce(()=>x(),[x]);const[E,C]=g.useState();Ce(()=>{s&&C(window.getComputedStyle(s).zIndex)},[s]);const T=g.useCallback(A=>{A&&m.current===!0&&(x(),b==null||b(),m.current=!1)},[x,b]);return w.jsx(sC,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:p,onScrollButtonChange:T,children:w.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:w.jsx(z.div,{...o,ref:d,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});qh.displayName=iC;var aC="SelectPopperPosition",Va=g.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:o=Ke,...i}=e,l=ol(n);return w.jsx(gi,{...l,...i,ref:t,align:r,collisionPadding:o,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Va.displayName=aC;var[sC,il]=Pn(Kt,{}),$a="SelectViewport",lC=g.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...o}=e,i=kt($a,n),l=il($a,n),u=re(t,i.onViewportChange),c=g.useRef(0);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),w.jsx(rl.Slot,{scope:n,children:w.jsx(z.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:L(o.onScroll,s=>{const a=s.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=l;if(f!=null&&f.current&&d){const p=Math.abs(c.current-a.scrollTop);if(p>0){const m=window.innerHeight-Ke*2,h=parseFloat(d.style.minHeight),v=parseFloat(d.style.height),y=Math.max(h,v);if(y<m){const b=y+p,x=Math.min(m,b),E=b-x;d.style.height=x+"px",d.style.bottom==="0px"&&(a.scrollTop=E>0?E:0,d.style.justifyContent="flex-end")}}}c.current=a.scrollTop})})})]})});lC.displayName=$a;var Zh="SelectGroup",[uC,cC]=Pn(Zh),dC=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=qe();return w.jsx(uC,{scope:n,id:o,children:w.jsx(z.div,{role:"group","aria-labelledby":o,...r,ref:t})})});dC.displayName=Zh;var Qh="SelectLabel",fC=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=cC(Qh,n);return w.jsx(z.div,{id:o.id,...r,ref:t})});fC.displayName=Qh;var Ko="SelectItem",[pC,Jh]=Pn(Ko),em=g.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:o=!1,textValue:i,...l}=e,u=At(Ko,n),c=kt(Ko,n),s=u.value===r,[a,d]=g.useState(i??""),[f,p]=g.useState(!1),m=re(t,b=>{var x;return(x=c.itemRefCallback)==null?void 0:x.call(c,b,r,o)}),h=qe(),v=g.useRef("touch"),y=()=>{o||(u.onValueChange(r),u.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return w.jsx(pC,{scope:n,value:r,disabled:o,textId:h,isSelected:s,onItemTextChange:g.useCallback(b=>{d(x=>x||((b==null?void 0:b.textContent)??"").trim())},[]),children:w.jsx(rl.ItemSlot,{scope:n,value:r,disabled:o,textValue:a,children:w.jsx(z.div,{role:"option","aria-labelledby":h,"data-highlighted":f?"":void 0,"aria-selected":s&&f,"data-state":s?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...l,ref:m,onFocus:L(l.onFocus,()=>p(!0)),onBlur:L(l.onBlur,()=>p(!1)),onClick:L(l.onClick,()=>{v.current!=="mouse"&&y()}),onPointerUp:L(l.onPointerUp,()=>{v.current==="mouse"&&y()}),onPointerDown:L(l.onPointerDown,b=>{v.current=b.pointerType}),onPointerMove:L(l.onPointerMove,b=>{var x;v.current=b.pointerType,o?(x=c.onItemLeave)==null||x.call(c):v.current==="mouse"&&b.currentTarget.focus({preventScroll:!0})}),onPointerLeave:L(l.onPointerLeave,b=>{var x;b.currentTarget===document.activeElement&&((x=c.onItemLeave)==null||x.call(c))}),onKeyDown:L(l.onKeyDown,b=>{var x;((x=c.searchRef)==null?void 0:x.current)!==""&&b.key===" "||(YE.includes(b.key)&&y(),b.key===" "&&b.preventDefault())})})})})});em.displayName=Ko;var Xn="SelectItemText",tm=g.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:o,...i}=e,l=At(Xn,n),u=kt(Xn,n),c=Jh(Xn,n),s=ZE(Xn,n),[a,d]=g.useState(null),f=re(t,y=>d(y),c.onItemTextChange,y=>{var b;return(b=u.itemTextRefCallback)==null?void 0:b.call(u,y,c.value,c.disabled)}),p=a==null?void 0:a.textContent,m=g.useMemo(()=>w.jsx("option",{value:c.value,disabled:c.disabled,children:p},c.value),[c.disabled,c.value,p]),{onNativeOptionAdd:h,onNativeOptionRemove:v}=s;return Ce(()=>(h(m),()=>v(m)),[h,v,m]),w.jsxs(w.Fragment,{children:[w.jsx(z.span,{id:c.textId,...i,ref:f}),c.isSelected&&l.valueNode&&!l.valueNodeHasChildren?oi.createPortal(i.children,l.valueNode):null]})});tm.displayName=Xn;var nm="SelectItemIndicator",hC=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return Jh(nm,n).isSelected?w.jsx(z.span,{"aria-hidden":!0,...r,ref:t}):null});hC.displayName=nm;var Ba="SelectScrollUpButton",mC=g.forwardRef((e,t)=>{const n=kt(Ba,e.__scopeSelect),r=il(Ba,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let u=function(){const s=c.scrollTop>0;i(s)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop-c.offsetHeight)}}):null});mC.displayName=Ba;var za="SelectScrollDownButton",vC=g.forwardRef((e,t)=>{const n=kt(za,e.__scopeSelect),r=il(za,e.__scopeSelect),[o,i]=g.useState(!1),l=re(t,r.onScrollButtonChange);return Ce(()=>{if(n.viewport&&n.isPositioned){let u=function(){const s=c.scrollHeight-c.clientHeight,a=Math.ceil(c.scrollTop)<s;i(a)};const c=n.viewport;return u(),c.addEventListener("scroll",u),()=>c.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?w.jsx(rm,{...e,ref:l,onAutoScroll:()=>{const{viewport:u,selectedItem:c}=n;u&&c&&(u.scrollTop=u.scrollTop+c.offsetHeight)}}):null});vC.displayName=za;var rm=g.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...o}=e,i=kt("SelectScrollButton",n),l=g.useRef(null),u=Ri(n),c=g.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return g.useEffect(()=>()=>c(),[c]),Ce(()=>{var s;const a=u().find(d=>d.ref.current===document.activeElement);(s=a==null?void 0:a.ref.current)==null||s.scrollIntoView({block:"nearest"})},[u]),w.jsx(z.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:L(o.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:L(o.onPointerMove,()=>{var s;(s=i.onItemLeave)==null||s.call(i),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:L(o.onPointerLeave,()=>{c()})})}),gC="SelectSeparator",yC=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return w.jsx(z.div,{"aria-hidden":!0,...r,ref:t})});yC.displayName=gC;var Ua="SelectArrow",bC=g.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,o=ol(n),i=At(Ua,n),l=kt(Ua,n);return i.open&&l.position==="popper"?w.jsx(yi,{...o,...r,ref:t}):null});bC.displayName=Ua;var wC="SelectBubbleInput",xC=g.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(r,o),l=fr(t);return g.useEffect(()=>{const u=o.current;if(!u)return;const c=window.HTMLSelectElement.prototype,s=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&s){const a=new Event("change",{bubbles:!0});s.call(u,t),u.dispatchEvent(a)}},[l,t]),w.jsx(z.select,{...n,style:{...Cf,...n.style},ref:i,defaultValue:t})});xC.displayName=wC;function om(e){return e===""||e===void 0}function im(e){const t=Ze(e),n=g.useRef(""),r=g.useRef(0),o=g.useCallback(l=>{const u=n.current+l;t(u),(function c(s){n.current=s,window.clearTimeout(r.current),s!==""&&(r.current=window.setTimeout(()=>c(""),1e3))})(u)},[t]),i=g.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return g.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,i]}function am(e,t,n){const r=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let i=EC(e,Math.max(o,0));r.length===1&&(i=i.filter(u=>u!==n));const l=i.find(u=>u.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}function EC(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var CC=em,SC=tm,sm=["PageUp","PageDown"],lm=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],um={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Rn="Slider",[Ha,_C,PC]=ur(Rn),[cm]=xe(Rn,[PC]),[RC,Oi]=cm(Rn),OC=g.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:l="horizontal",disabled:u=!1,minStepsBetweenThumbs:c=0,defaultValue:s=[r],value:a,onValueChange:d=()=>{},onValueCommit:f=()=>{},inverted:p=!1,form:m,...h}=e,v=g.useRef(new Set),y=g.useRef(0),b=l==="horizontal"?TC:jC,[x=[],E]=Fe({prop:a,defaultProp:s,onChange:P=>{var k;(k=[...v.current][y.current])==null||k.focus(),d(P)}}),C=g.useRef(x);function T(P){const k=FC(x,P);R(P,k)}function A(P){R(P,y.current)}function j(){const P=C.current[y.current];x[y.current]!==P&&f(x)}function R(P,k,{commit:O}={commit:!1}){const $=zC(i),F=UC(Math.round((P-r)/i)*i+r,$),H=Go(F,[r,o]);E((B=[])=>{const G=IC(B,H,k);if(BC(G,c*i)){y.current=G.indexOf(H);const W=String(G)!==String(B);return W&&O&&f(G),W?G:B}else return B})}return w.jsx(RC,{scope:e.__scopeSlider,name:n,disabled:u,min:r,max:o,valueIndexToChangeRef:y,thumbs:v.current,values:x,orientation:l,form:m,children:w.jsx(Ha.Provider,{scope:e.__scopeSlider,children:w.jsx(Ha.Slot,{scope:e.__scopeSlider,children:w.jsx(b,{"aria-disabled":u,"data-disabled":u?"":void 0,...h,ref:t,onPointerDown:L(h.onPointerDown,()=>{u||(C.current=x)}),min:r,max:o,inverted:p,onSlideStart:u?void 0:T,onSlideMove:u?void 0:A,onSlideEnd:u?void 0:j,onHomeKeyDown:()=>!u&&R(r,0,{commit:!0}),onEndKeyDown:()=>!u&&R(o,x.length-1,{commit:!0}),onStepKeyDown:({event:P,direction:k})=>{if(!u){const O=sm.includes(P.key)||P.shiftKey&&lm.includes(P.key)?10:1,$=y.current,F=x[$],H=i*O*k;R(F+H,$,{commit:!0})}}})})})})});OC.displayName=Rn;var[dm,fm]=cm(Rn,{startEdge:"left",endEdge:"right",size:"width",direction:1}),TC=g.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:l,onSlideMove:u,onSlideEnd:c,onStepKeyDown:s,...a}=e,[d,f]=g.useState(null),p=re(t,x=>f(x)),m=g.useRef(void 0),h=qt(o),v=h==="ltr",y=v&&!i||!v&&i;function b(x){const E=m.current||d.getBoundingClientRect(),C=[0,E.width],T=al(C,y?[n,r]:[r,n]);return m.current=E,T(x-E.left)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,size:"width",children:w.jsx(pm,{dir:h,"data-orientation":"horizontal",...a,ref:p,style:{...a.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:x=>{const E=b(x.clientX);l==null||l(E)},onSlideMove:x=>{const E=b(x.clientX);u==null||u(E)},onSlideEnd:()=>{m.current=void 0,c==null||c()},onStepKeyDown:x=>{const E=um[y?"from-left":"from-right"].includes(x.key);s==null||s({event:x,direction:E?-1:1})}})})}),jC=g.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:l,onSlideEnd:u,onStepKeyDown:c,...s}=e,a=g.useRef(null),d=re(t,a),f=g.useRef(void 0),p=!o;function m(h){const v=f.current||a.current.getBoundingClientRect(),y=[0,v.height],b=al(y,p?[r,n]:[n,r]);return f.current=v,b(h-v.top)}return w.jsx(dm,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:w.jsx(pm,{"data-orientation":"vertical",...s,ref:d,style:{...s.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const v=m(h.clientY);i==null||i(v)},onSlideMove:h=>{const v=m(h.clientY);l==null||l(v)},onSlideEnd:()=>{f.current=void 0,u==null||u()},onStepKeyDown:h=>{const v=um[p?"from-bottom":"from-top"].includes(h.key);c==null||c({event:h,direction:v?-1:1})}})})}),pm=g.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:l,onEndKeyDown:u,onStepKeyDown:c,...s}=e,a=Oi(Rn,n);return w.jsx(z.span,{...s,ref:t,onKeyDown:L(e.onKeyDown,d=>{d.key==="Home"?(l(d),d.preventDefault()):d.key==="End"?(u(d),d.preventDefault()):sm.concat(lm).includes(d.key)&&(c(d),d.preventDefault())}),onPointerDown:L(e.onPointerDown,d=>{const f=d.target;f.setPointerCapture(d.pointerId),d.preventDefault(),a.thumbs.has(f)?f.focus():r(d)}),onPointerMove:L(e.onPointerMove,d=>{d.target.hasPointerCapture(d.pointerId)&&o(d)}),onPointerUp:L(e.onPointerUp,d=>{const f=d.target;f.hasPointerCapture(d.pointerId)&&(f.releasePointerCapture(d.pointerId),i(d))})})}),hm="SliderTrack",MC=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Oi(hm,n);return w.jsx(z.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});MC.displayName=hm;var Wa="SliderRange",AC=g.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Oi(Wa,n),i=fm(Wa,n),l=g.useRef(null),u=re(t,l),c=o.values.length,s=o.values.map(f=>vm(f,o.min,o.max)),a=c>1?Math.min(...s):0,d=100-Math.max(...s);return w.jsx(z.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:u,style:{...e.style,[i.startEdge]:a+"%",[i.endEdge]:d+"%"}})});AC.displayName=Wa;var Ga="SliderThumb",kC=g.forwardRef((e,t)=>{const n=_C(e.__scopeSlider),[r,o]=g.useState(null),i=re(t,u=>o(u)),l=g.useMemo(()=>r?n().findIndex(u=>u.ref.current===r):-1,[n,r]);return w.jsx(DC,{...e,ref:i,index:l})}),DC=g.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,l=Oi(Ga,n),u=fm(Ga,n),[c,s]=g.useState(null),a=re(t,b=>s(b)),d=c?l.form||!!c.closest("form"):!0,f=pr(c),p=l.values[r],m=p===void 0?0:vm(p,l.min,l.max),h=LC(r,l.values.length),v=f==null?void 0:f[u.size],y=v?VC(v,m,u.direction):0;return g.useEffect(()=>{if(c)return l.thumbs.add(c),()=>{l.thumbs.delete(c)}},[c,l.thumbs]),w.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[u.startEdge]:`calc(${m}% + ${y}px)`},children:[w.jsx(Ha.ItemSlot,{scope:e.__scopeSlider,children:w.jsx(z.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":l.min,"aria-valuenow":p,"aria-valuemax":l.max,"aria-orientation":l.orientation,"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,tabIndex:l.disabled?void 0:0,...i,ref:a,style:p===void 0?{display:"none"}:e.style,onFocus:L(e.onFocus,()=>{l.valueIndexToChangeRef.current=r})})}),d&&w.jsx(mm,{name:o??(l.name?l.name+(l.values.length>1?"[]":""):void 0),form:l.form,value:p},r)]})});kC.displayName=Ga;var NC="RadioBubbleInput",mm=g.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=g.useRef(null),i=re(o,r),l=fr(t);return g.useEffect(()=>{const u=o.current;if(!u)return;const c=window.HTMLInputElement.prototype,s=Object.getOwnPropertyDescriptor(c,"value").set;if(l!==t&&s){const a=new Event("input",{bubbles:!0});s.call(u,t),u.dispatchEvent(a)}},[l,t]),w.jsx(z.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});mm.displayName=NC;function IC(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function vm(e,t,n){const r=100/(n-t)*(e-t);return Go(r,[0,100])}function LC(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function FC(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function VC(e,t,n){const r=e/2,o=al([0,50],[0,r]);return(r-o(t)*n)*n}function $C(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function BC(e,t){if(t>0){const n=$C(e);return Math.min(...n)>=t}return!0}function al(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function zC(e){return(String(e).split(".")[1]||"").length}function UC(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Ti="Switch",[HC]=xe(Ti),[WC,GC]=HC(Ti),XC=g.forwardRef((e,t)=>{const{__scopeSwitch:n,name:r,checked:o,defaultChecked:i,required:l,disabled:u,value:c="on",onCheckedChange:s,form:a,...d}=e,[f,p]=g.useState(null),m=re(t,x=>p(x)),h=g.useRef(!1),v=f?a||!!f.closest("form"):!0,[y,b]=Fe({prop:o,defaultProp:i??!1,onChange:s,caller:Ti});return w.jsxs(WC,{scope:n,checked:y,disabled:u,children:[w.jsx(z.button,{type:"button",role:"switch","aria-checked":y,"aria-required":l,"data-state":bm(y),"data-disabled":u?"":void 0,disabled:u,value:c,...d,ref:m,onClick:L(e.onClick,x=>{b(E=>!E),v&&(h.current=x.isPropagationStopped(),h.current||x.stopPropagation())})}),v&&w.jsx(ym,{control:f,bubbles:!h.current,name:r,value:c,checked:y,required:l,disabled:u,form:a,style:{transform:"translateX(-100%)"}})]})});XC.displayName=Ti;var gm="SwitchThumb",KC=g.forwardRef((e,t)=>{const{__scopeSwitch:n,...r}=e,o=GC(gm,n);return w.jsx(z.span,{"data-state":bm(o.checked),"data-disabled":o.disabled?"":void 0,...r,ref:t})});KC.displayName=gm;var YC="SwitchBubbleInput",ym=g.forwardRef(({__scopeSwitch:e,control:t,checked:n,bubbles:r=!0,...o},i)=>{const l=g.useRef(null),u=re(l,i),c=fr(n),s=pr(t);return g.useEffect(()=>{const a=l.current;if(!a)return;const d=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(d,"checked").set;if(c!==n&&f){const p=new Event("click",{bubbles:r});f.call(a,n),a.dispatchEvent(p)}},[c,n,r]),w.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:n,...o,tabIndex:-1,ref:u,style:{...o.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ym.displayName=YC;function bm(e){return e?"checked":"unchecked"}var ji="Tabs",[qC]=xe(ji,[Mt]),wm=Mt(),[ZC,sl]=qC(ji),QC=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:l="horizontal",dir:u,activationMode:c="automatic",...s}=e,a=qt(u),[d,f]=Fe({prop:r,onChange:o,defaultProp:i??"",caller:ji});return w.jsx(ZC,{scope:n,baseId:qe(),value:d,onValueChange:f,orientation:l,dir:a,activationMode:c,children:w.jsx(z.div,{dir:a,"data-orientation":l,...s,ref:t})})});QC.displayName=ji;var xm="TabsList",JC=g.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...o}=e,i=sl(xm,n),l=wm(n);return w.jsx(bi,{asChild:!0,...l,orientation:i.orientation,dir:i.dir,loop:r,children:w.jsx(z.div,{role:"tablist","aria-orientation":i.orientation,...o,ref:t})})});JC.displayName=xm;var Em="TabsTrigger",eS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:o=!1,...i}=e,l=sl(Em,n),u=wm(n),c=Sm(l.baseId,r),s=_m(l.baseId,r),a=r===l.value;return w.jsx(wi,{asChild:!0,...u,focusable:!o,active:a,children:w.jsx(z.button,{type:"button",role:"tab","aria-selected":a,"aria-controls":s,"data-state":a?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...i,ref:t,onMouseDown:L(e.onMouseDown,d=>{!o&&d.button===0&&d.ctrlKey===!1?l.onValueChange(r):d.preventDefault()}),onKeyDown:L(e.onKeyDown,d=>{[" ","Enter"].includes(d.key)&&l.onValueChange(r)}),onFocus:L(e.onFocus,()=>{const d=l.activationMode!=="manual";!a&&!o&&d&&l.onValueChange(r)})})})});eS.displayName=Em;var Cm="TabsContent",tS=g.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:o,children:i,...l}=e,u=sl(Cm,n),c=Sm(u.baseId,r),s=_m(u.baseId,r),a=r===u.value,d=g.useRef(a);return g.useEffect(()=>{const f=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(f)},[]),w.jsx(Ve,{present:o||a,children:({present:f})=>w.jsx(z.div,{"data-state":a?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!f,id:s,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:d.current?"0s":void 0},children:f&&i})})});tS.displayName=Cm;function Sm(e,t){return`${e}-trigger-${t}`}function _m(e,t){return`${e}-content-${t}`}var Pm="Toggle",Rm=g.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r,onPressedChange:o,...i}=e,[l,u]=Fe({prop:n,onChange:o,defaultProp:r??!1,caller:Pm});return w.jsx(z.button,{type:"button","aria-pressed":l,"data-state":l?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:L(e.onClick,()=>{e.disabled||u(!l)})})});Rm.displayName=Pm;var Dt="ToggleGroup",[Om]=xe(Dt,[Mt]),Tm=Mt(),jm=_.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const o=r;return w.jsx(nS,{...o,ref:t})}if(n==="multiple"){const o=r;return w.jsx(rS,{...o,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${Dt}\``)});jm.displayName=Dt;var[Mm,Am]=Om(Dt),nS=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,u]=Fe({prop:n,defaultProp:r??"",onChange:o,caller:Dt});return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"single",value:_.useMemo(()=>l?[l]:[],[l]),onItemActivate:u,onItemDeactivate:_.useCallback(()=>u(""),[u]),children:w.jsx(km,{...i,ref:t})})}),rS=_.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:o=()=>{},...i}=e,[l,u]=Fe({prop:n,defaultProp:r??[],onChange:o,caller:Dt}),c=_.useCallback(a=>u((d=[])=>[...d,a]),[u]),s=_.useCallback(a=>u((d=[])=>d.filter(f=>f!==a)),[u]);return w.jsx(Mm,{scope:e.__scopeToggleGroup,type:"multiple",value:l,onItemActivate:c,onItemDeactivate:s,children:w.jsx(km,{...i,ref:t})})});jm.displayName=Dt;var[oS,iS]=Om(Dt),km=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:o=!0,orientation:i,dir:l,loop:u=!0,...c}=e,s=Tm(n),a=qt(l),d={role:"group",dir:a,...c};return w.jsx(oS,{scope:n,rovingFocus:o,disabled:r,children:o?w.jsx(bi,{asChild:!0,...s,orientation:i,dir:a,loop:u,children:w.jsx(z.div,{...d,ref:t})}):w.jsx(z.div,{...d,ref:t})})}),Yo="ToggleGroupItem",aS=_.forwardRef((e,t)=>{const n=Am(Yo,e.__scopeToggleGroup),r=iS(Yo,e.__scopeToggleGroup),o=Tm(e.__scopeToggleGroup),i=n.value.includes(e.value),l=r.disabled||e.disabled,u={...e,pressed:i,disabled:l},c=_.useRef(null);return r.rovingFocus?w.jsx(wi,{asChild:!0,...o,focusable:!l,active:i,ref:c,children:w.jsx(Ou,{...u,ref:t})}):w.jsx(Ou,{...u,ref:t})});aS.displayName=Yo;var Ou=_.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...o}=e,i=Am(Yo,n),l={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},u=i.type==="single"?l:void 0;return w.jsx(Rm,{...u,...o,ref:t,onPressedChange:c=>{c?i.onItemActivate(r):i.onItemDeactivate(r)}})}),[Mi]=xe("Tooltip",[jt]),ll=jt(),sS="TooltipProvider",Tu="tooltip.open",[ij,Dm]=Mi(sS),Nm="Tooltip",[aj,Ai]=Mi(Nm),Xa="TooltipTrigger",lS=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Ai(Xa,n),i=Dm(Xa,n),l=ll(n),u=g.useRef(null),c=re(t,u,o.onTriggerChange),s=g.useRef(!1),a=g.useRef(!1),d=g.useCallback(()=>s.current=!1,[]);return g.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),w.jsx(mr,{asChild:!0,...l,children:w.jsx(z.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:c,onPointerMove:L(e.onPointerMove,f=>{f.pointerType!=="touch"&&!a.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),a.current=!0)}),onPointerLeave:L(e.onPointerLeave,()=>{o.onTriggerLeave(),a.current=!1}),onPointerDown:L(e.onPointerDown,()=>{o.open&&o.onClose(),s.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:L(e.onFocus,()=>{s.current||o.onOpen()}),onBlur:L(e.onBlur,o.onClose),onClick:L(e.onClick,o.onClose)})})});lS.displayName=Xa;var uS="TooltipPortal",[sj,cS]=Mi(uS,{forceMount:void 0}),wn="TooltipContent",dS=g.forwardRef((e,t)=>{const n=cS(wn,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,l=Ai(wn,e.__scopeTooltip);return w.jsx(Ve,{present:r||l.open,children:l.disableHoverableContent?w.jsx(Im,{side:o,...i,ref:t}):w.jsx(fS,{side:o,...i,ref:t})})}),fS=g.forwardRef((e,t)=>{const n=Ai(wn,e.__scopeTooltip),r=Dm(wn,e.__scopeTooltip),o=g.useRef(null),i=re(t,o),[l,u]=g.useState(null),{trigger:c,onClose:s}=n,a=o.current,{onPointerInTransitChange:d}=r,f=g.useCallback(()=>{u(null),d(!1)},[d]),p=g.useCallback((m,h)=>{const v=m.currentTarget,y={x:m.clientX,y:m.clientY},b=gS(y,v.getBoundingClientRect()),x=yS(y,b),E=bS(h.getBoundingClientRect()),C=xS([...x,...E]);u(C),d(!0)},[d]);return g.useEffect(()=>()=>f(),[f]),g.useEffect(()=>{if(c&&a){const m=v=>p(v,a),h=v=>p(v,c);return c.addEventListener("pointerleave",m),a.addEventListener("pointerleave",h),()=>{c.removeEventListener("pointerleave",m),a.removeEventListener("pointerleave",h)}}},[c,a,p,f]),g.useEffect(()=>{if(l){const m=h=>{const v=h.target,y={x:h.clientX,y:h.clientY},b=(c==null?void 0:c.contains(v))||(a==null?void 0:a.contains(v)),x=!wS(y,l);b?f():x&&(f(),s())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,a,l,s,f]),w.jsx(Im,{...e,ref:i})}),[pS,hS]=Mi(Nm,{isInside:!1}),mS=tg("TooltipContent"),Im=g.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:l,...u}=e,c=Ai(wn,n),s=ll(n),{onClose:a}=c;return g.useEffect(()=>(document.addEventListener(Tu,a),()=>document.removeEventListener(Tu,a)),[a]),g.useEffect(()=>{if(c.trigger){const d=f=>{const p=f.target;p!=null&&p.contains(c.trigger)&&a()};return window.addEventListener("scroll",d,{capture:!0}),()=>window.removeEventListener("scroll",d,{capture:!0})}},[c.trigger,a]),w.jsx(Cn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:d=>d.preventDefault(),onDismiss:a,children:w.jsxs(gi,{"data-state":c.stateAttribute,...s,...u,ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[w.jsx(mS,{children:r}),w.jsx(pS,{scope:n,isInside:!0,children:w.jsx(Kg,{id:c.contentId,role:"tooltip",children:o||r})})]})})});dS.displayName=wn;var Lm="TooltipArrow",vS=g.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ll(n);return hS(Lm,n).isInside?null:w.jsx(yi,{...o,...r,ref:t})});vS.displayName=Lm;function gS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function yS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function bS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function wS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,l=t.length-1;i<t.length;l=i++){const u=t[i],c=t[l],s=u.x,a=u.y,d=c.x,f=c.y;a>r!=f>r&&n<(d-s)*(r-a)/(f-a)+s&&(o=!o)}return o}function xS(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ES(t)}function ES(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const i=t[t.length-1],l=t[t.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],l=n[n.length-2];if((i.x-l.x)*(o.y-l.y)>=(i.y-l.y)*(o.x-l.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Ey,{className:me("overflow-hidden rounded-xl shadow-(--box-shadow-accordion)",t),ref:r,...n,children:e}));_.forwardRef(({children:e,className:t,triggerIcon:n,...r},o)=>w.jsx(Cy,{className:"flex",children:w.jsxs(Sy,{className:me("group flex h-14 flex-1 cursor-pointer items-center justify-between px-6 text-[15px] leading-none bg-white space-x-2",t),ref:o,...r,children:[e,n??w.jsx($g,{className:"size-3 shrink-0 transition-transform duration-300 ease-in-out group-data-[state=open]:rotate-180 fill-primary-blue"})]})}));const ul=_.createContext({});function cl(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fm=typeof window<"u",Vm=Fm?_.useLayoutEffect:_.useEffect,ki=_.createContext(null);function dl(e,t){e.indexOf(t)===-1&&e.push(t)}function fl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const st=(e,t,n)=>n>t?t:n<e?e:n;function Ka(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let On=()=>{},mt=()=>{};var ju;typeof process<"u"&&((ju=process.env)==null?void 0:ju.NODE_ENV)!=="production"&&(On=(e,t,n)=>{!e&&typeof console<"u"&&console.warn(Ka(t,n))},mt=(e,t,n)=>{if(!e)throw new Error(Ka(t,n))});const vt={},$m=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Bm(e){return typeof e=="object"&&e!==null}const zm=e=>/^0[^.\s]+$/u.test(e);function pl(e){let t;return()=>(t===void 0&&(t=e()),t)}const We=e=>e,CS=(e,t)=>n=>t(e(n)),xr=(...e)=>e.reduce(CS),rr=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class hl{constructor(){this.subscriptions=[]}add(t){return dl(this.subscriptions,t),()=>fl(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const l=this.subscriptions[i];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ot=e=>e*1e3,Ue=e=>e/1e3;function Um(e,t){return t?e*(1e3/t):0}const Mu=new Set;function ml(e,t,n){e||Mu.has(t)||(console.warn(Ka(t,n)),Mu.add(t))}const Hm=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,SS=1e-7,_S=12;function PS(e,t,n,r,o){let i,l,u=0;do l=t+(n-t)/2,i=Hm(l,r,o)-e,i>0?n=l:t=l;while(Math.abs(i)>SS&&++u<_S);return l}function Er(e,t,n,r){if(e===t&&n===r)return We;const o=i=>PS(i,0,1,e,n);return i=>i===0||i===1?i:Hm(o(i),t,r)}const Wm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Gm=e=>t=>1-e(1-t),Xm=Er(.33,1.53,.69,.99),vl=Gm(Xm),Km=Wm(vl),Ym=e=>(e*=2)<1?.5*vl(e):.5*(2-Math.pow(2,-10*(e-1))),gl=e=>1-Math.sin(Math.acos(e)),qm=Gm(gl),Zm=Wm(gl),RS=Er(.42,0,1,1),OS=Er(0,0,.58,1),Qm=Er(.42,0,.58,1),TS=e=>Array.isArray(e)&&typeof e[0]!="number",Jm=e=>Array.isArray(e)&&typeof e[0]=="number",Au={linear:We,easeIn:RS,easeInOut:Qm,easeOut:OS,circIn:gl,circInOut:Zm,circOut:qm,backIn:vl,backInOut:Km,backOut:Xm,anticipate:Ym},jS=e=>typeof e=="string",ku=e=>{if(Jm(e)){mt(e.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[t,n,r,o]=e;return Er(t,n,r,o)}else if(jS(e))return mt(Au[e]!==void 0,`Invalid easing type '${e}'`,"invalid-easing-type"),Au[e];return e},zr=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function MS(e,t){let n=new Set,r=new Set,o=!1,i=!1;const l=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function c(a){l.has(a)&&(s.schedule(a),e()),a(u)}const s={schedule:(a,d=!1,f=!1)=>{const p=f&&o?n:r;return d&&l.add(a),p.has(a)||p.add(a),a},cancel:a=>{r.delete(a),l.delete(a)},process:a=>{if(u=a,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(c),n.clear(),o=!1,i&&(i=!1,s.process(a))}};return s}const AS=40;function ev(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=zr.reduce((y,b)=>(y[b]=MS(i),y),{}),{setup:u,read:c,resolveKeyframes:s,preUpdate:a,update:d,preRender:f,render:p,postRender:m}=l,h=()=>{const y=vt.useManualTiming?o.timestamp:performance.now();n=!1,vt.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(y-o.timestamp,AS),1)),o.timestamp=y,o.isProcessing=!0,u.process(o),c.process(o),s.process(o),a.process(o),d.process(o),f.process(o),p.process(o),m.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(h))},v=()=>{n=!0,r=!0,o.isProcessing||e(h)};return{schedule:zr.reduce((y,b)=>{const x=l[b];return y[b]=(E,C=!1,T=!1)=>(n||v(),x.schedule(E,C,T)),y},{}),cancel:y=>{for(let b=0;b<zr.length;b++)l[zr[b]].cancel(y)},state:o,steps:l}}const{schedule:de,cancel:Ot,state:_e,steps:oa}=ev(typeof requestAnimationFrame<"u"?requestAnimationFrame:We,!0);let Do;function kS(){Do=void 0}const je={now:()=>(Do===void 0&&je.set(_e.isProcessing||vt.useManualTiming?_e.timestamp:performance.now()),Do),set:e=>{Do=e,queueMicrotask(kS)}},tv=e=>t=>typeof t=="string"&&t.startsWith(e),nv=tv("--"),DS=tv("var(--"),yl=e=>DS(e)?NS.test(e.split("/*")[0].trim()):!1,NS=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Du(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Tn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},or={...Tn,transform:e=>st(0,1,e)},Ur={...Tn,default:1},qn=e=>Math.round(e*1e5)/1e5,bl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function IS(e){return e==null}const LS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,wl=(e,t)=>n=>!!(typeof n=="string"&&LS.test(n)&&n.startsWith(e)||t&&!IS(n)&&Object.prototype.hasOwnProperty.call(n,t)),rv=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,l,u]=r.match(bl);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(l),alpha:u!==void 0?parseFloat(u):1}},FS=e=>st(0,255,e),ia={...Tn,transform:e=>Math.round(FS(e))},Ut={test:wl("rgb","red"),parse:rv("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ia.transform(e)+", "+ia.transform(t)+", "+ia.transform(n)+", "+qn(or.transform(r))+")"};function VS(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const Ya={test:wl("#"),parse:VS,transform:Ut.transform},Cr=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Et=Cr("deg"),it=Cr("%"),Y=Cr("px"),$S=Cr("vh"),BS=Cr("vw"),Nu={...it,parse:e=>it.parse(e)/100,transform:e=>it.transform(e*100)},sn={test:wl("hsl","hue"),parse:rv("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+it.transform(qn(t))+", "+it.transform(qn(n))+", "+qn(or.transform(r))+")"},Ee={test:e=>Ut.test(e)||Ya.test(e)||sn.test(e),parse:e=>Ut.test(e)?Ut.parse(e):sn.test(e)?sn.parse(e):Ya.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ut.transform(e):sn.transform(e),getAnimatableNone:e=>{const t=Ee.parse(e);return t.alpha=0,Ee.transform(t)}},zS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function US(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(bl))==null?void 0:t.length)||0)+(((n=e.match(zS))==null?void 0:n.length)||0)>0}const ov="number",iv="color",HS="var",WS="var(",Iu="${}",GS=/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 ir(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const l=t.replace(GS,u=>(Ee.test(u)?(r.color.push(i),o.push(iv),n.push(Ee.parse(u))):u.startsWith(WS)?(r.var.push(i),o.push(HS),n.push(u)):(r.number.push(i),o.push(ov),n.push(parseFloat(u))),++i,Iu)).split(Iu);return{values:n,split:l,indexes:r,types:o}}function av(e){return ir(e).values}function sv(e){const{split:t,types:n}=ir(e),r=t.length;return o=>{let i="";for(let l=0;l<r;l++)if(i+=t[l],o[l]!==void 0){const u=n[l];u===ov?i+=qn(o[l]):u===iv?i+=Ee.transform(o[l]):i+=o[l]}return i}}const XS=e=>typeof e=="number"?0:Ee.test(e)?Ee.getAnimatableNone(e):e;function KS(e){const t=av(e);return sv(e)(t.map(XS))}const Tt={test:US,parse:av,createTransformer:sv,getAnimatableNone:KS};function aa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function YS({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,l=0;if(!t)o=i=l=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;o=aa(c,u,e+1/3),i=aa(c,u,e),l=aa(c,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:r}}function qo(e,t){return n=>n>0?t:e}const ye=(e,t,n)=>e+(t-e)*n,sa=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},qS=[Ya,Ut,sn],ZS=e=>qS.find(t=>t.test(e));function Lu(e){const t=ZS(e);if(On(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===sn&&(n=YS(n)),n}const Fu=(e,t)=>{const n=Lu(e),r=Lu(t);if(!n||!r)return qo(e,t);const o={...n};return i=>(o.red=sa(n.red,r.red,i),o.green=sa(n.green,r.green,i),o.blue=sa(n.blue,r.blue,i),o.alpha=ye(n.alpha,r.alpha,i),Ut.transform(o))},qa=new Set(["none","hidden"]);function QS(e,t){return qa.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function JS(e,t){return n=>ye(e,t,n)}function xl(e){return typeof e=="number"?JS:typeof e=="string"?yl(e)?qo:Ee.test(e)?Fu:n_:Array.isArray(e)?lv:typeof e=="object"?Ee.test(e)?Fu:e_:qo}function lv(e,t){const n=[...e],r=n.length,o=e.map((i,l)=>xl(i)(i,t[l]));return i=>{for(let l=0;l<r;l++)n[l]=o[l](i);return n}}function e_(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=xl(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function t_(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],l=e.indexes[i][r[i]],u=e.values[l]??0;n[o]=u,r[i]++}return n}const n_=(e,t)=>{const n=Tt.createTransformer(t),r=ir(e),o=ir(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?qa.has(e)&&!o.values.length||qa.has(t)&&!r.values.length?QS(e,t):xr(lv(t_(r,o),o.values),n):(On(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),qo(e,t))};function uv(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ye(e,t,n):xl(e)(e,t)}const r_=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>de.update(t,n),stop:()=>Ot(t),now:()=>_e.isProcessing?_e.timestamp:je.now()}},cv=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Zo=2e4;function El(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Zo;)t+=n,r=e.next(t);return t>=Zo?1/0:t}function o_(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(El(r),Zo);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Ue(o)}}const i_=5;function dv(e,t,n){const r=Math.max(t-i_,0);return Um(n-e(r),t-r)}const ge={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},la=.001;function a_({duration:e=ge.duration,bounce:t=ge.bounce,velocity:n=ge.velocity,mass:r=ge.mass}){let o,i;On(e<=ot(ge.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let l=1-t;l=st(ge.minDamping,ge.maxDamping,l),e=st(ge.minDuration,ge.maxDuration,Ue(e)),l<1?(o=s=>{const a=s*l,d=a*e,f=a-n,p=Za(s,l),m=Math.exp(-d);return la-f/p*m},i=s=>{const a=s*l*e,d=a*n+n,f=Math.pow(l,2)*Math.pow(s,2)*e,p=Math.exp(-a),m=Za(Math.pow(s,2),l);return(-o(s)+la>0?-1:1)*((d-f)*p)/m}):(o=s=>{const a=Math.exp(-s*e),d=(s-n)*e+1;return-la+a*d},i=s=>{const a=Math.exp(-s*e),d=(n-s)*(e*e);return a*d});const u=5/e,c=l_(o,i,u);if(e=ot(e),isNaN(c))return{stiffness:ge.stiffness,damping:ge.damping,duration:e};{const s=Math.pow(c,2)*r;return{stiffness:s,damping:l*2*Math.sqrt(r*s),duration:e}}}const s_=12;function l_(e,t,n){let r=n;for(let o=1;o<s_;o++)r=r-e(r)/t(r);return r}function Za(e,t){return e*Math.sqrt(1-t*t)}const u_=["duration","bounce"],c_=["stiffness","damping","mass"];function Vu(e,t){return t.some(n=>e[n]!==void 0)}function d_(e){let t={velocity:ge.velocity,stiffness:ge.stiffness,damping:ge.damping,mass:ge.mass,isResolvedFromDuration:!1,...e};if(!Vu(e,c_)&&Vu(e,u_))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*st(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ge.mass,stiffness:o,damping:i}}else{const n=a_(e);t={...t,...n,mass:ge.mass},t.isResolvedFromDuration=!0}return t}function Qo(e=ge.visualDuration,t=ge.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],u={done:!1,value:i},{stiffness:c,damping:s,mass:a,duration:d,velocity:f,isResolvedFromDuration:p}=d_({...n,velocity:-Ue(n.velocity||0)}),m=f||0,h=s/(2*Math.sqrt(c*a)),v=l-i,y=Ue(Math.sqrt(c/a)),b=Math.abs(v)<5;r||(r=b?ge.restSpeed.granular:ge.restSpeed.default),o||(o=b?ge.restDelta.granular:ge.restDelta.default);let x;if(h<1){const C=Za(y,h);x=T=>{const A=Math.exp(-h*y*T);return l-A*((m+h*y*v)/C*Math.sin(C*T)+v*Math.cos(C*T))}}else if(h===1)x=C=>l-Math.exp(-y*C)*(v+(m+y*v)*C);else{const C=y*Math.sqrt(h*h-1);x=T=>{const A=Math.exp(-h*y*T),j=Math.min(C*T,300);return l-A*((m+h*y*v)*Math.sinh(j)+C*v*Math.cosh(j))/C}}const E={calculatedDuration:p&&d||null,next:C=>{const T=x(C);if(p)u.done=C>=d;else{let A=C===0?m:0;h<1&&(A=C===0?ot(m):dv(x,C,T));const j=Math.abs(A)<=r,R=Math.abs(l-T)<=o;u.done=j&&R}return u.value=u.done?l:T,u},toString:()=>{const C=Math.min(El(E),Zo),T=cv(A=>E.next(C*A).value,C,30);return C+"ms "+T},toTransition:()=>{}};return E}Qo.applyToOptions=e=>{const t=o_(e,100,Qo);return e.ease=t.ease,e.duration=ot(t.duration),e.type="keyframes",e};function Qa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:l,min:u,max:c,restDelta:s=.5,restSpeed:a}){const d=e[0],f={done:!1,value:d},p=j=>u!==void 0&&j<u||c!==void 0&&j>c,m=j=>u===void 0?c:c===void 0||Math.abs(u-j)<Math.abs(c-j)?u:c;let h=n*t;const v=d+h,y=l===void 0?v:l(v);y!==v&&(h=y-d);const b=j=>-h*Math.exp(-j/r),x=j=>y+b(j),E=j=>{const R=b(j),P=x(j);f.done=Math.abs(R)<=s,f.value=f.done?y:P};let C,T;const A=j=>{p(f.value)&&(C=j,T=Qo({keyframes:[f.value,m(f.value)],velocity:dv(x,j,f.value),damping:o,stiffness:i,restDelta:s,restSpeed:a}))};return A(0),{calculatedDuration:null,next:j=>{let R=!1;return!T&&C===void 0&&(R=!0,E(j),A(j)),C!==void 0&&j>=C?T.next(j-C):(!R&&E(j),f)}}}function f_(e,t,n){const r=[],o=n||vt.mix||uv,i=e.length-1;for(let l=0;l<i;l++){let u=o(e[l],e[l+1]);if(t){const c=Array.isArray(t)?t[l]||We:t;u=xr(c,u)}r.push(u)}return r}function p_(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(mt(i===t.length,"Both input and output ranges must be the same length","range-length"),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=f_(t,r,o),c=u.length,s=a=>{if(l&&a<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(a<e[d+1]);d++);const f=rr(e[d],e[d+1],a);return u[d](f)};return n?a=>s(st(e[0],e[i-1],a)):s}function h_(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=rr(0,t,r);e.push(ye(n,1,o))}}function m_(e){const t=[0];return h_(t,e.length-1),t}function v_(e,t){return e.map(n=>n*t)}function g_(e,t){return e.map(()=>t||Qm).splice(0,e.length-1)}function ln({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=TS(r)?r.map(ku):ku(r),i={done:!1,value:t[0]},l=v_(n&&n.length===t.length?n:m_(t),e),u=p_(l,t,{ease:Array.isArray(o)?o:g_(t,o)});return{calculatedDuration:e,next:c=>(i.value=u(c),i.done=c>=e,i)}}const y_=e=>e!==null;function Cl(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(y_),l=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!l||r===void 0?i[l]:r}const b_={decay:Qa,inertia:Qa,tween:ln,keyframes:ln,spring:Qo};function fv(e){typeof e.type=="string"&&(e.type=b_[e.type])}class Sl{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const w_=e=>e/100;class _l extends Sl{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var n,r;const{motionValue:o}=this.options;o&&o.updatedAt!==je.now()&&this.tick(je.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(n=this.options).onStop)==null||r.call(n))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;fv(t);const{type:n=ln,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:l=0}=t;let{keyframes:u}=t;const c=n||ln;process.env.NODE_ENV!=="production"&&c!==ln&&mt(u.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${u}`,"spring-two-frames"),c!==ln&&typeof u[0]!="number"&&(this.mixKeyframes=xr(w_,uv(u[0],u[1])),u=[0,100]);const s=c({...t,keyframes:u});i==="mirror"&&(this.mirroredGenerator=c({...t,keyframes:[...u].reverse(),velocity:-l})),s.calculatedDuration===null&&(s.calculatedDuration=El(s));const{calculatedDuration:a}=s;this.calculatedDuration=a,this.resolvedDuration=a+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=s}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:u,calculatedDuration:c}=this;if(this.startTime===null)return r.next(0);const{delay:s=0,keyframes:a,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-s*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let x=this.currentTime,E=r;if(d){const j=Math.min(this.currentTime,o)/u;let R=Math.floor(j),P=j%1;!P&&j>=1&&(P=1),P===1&&R--,R=Math.min(R,d+1),R%2&&(f==="reverse"?(P=1-P,p&&(P-=p/u)):f==="mirror"&&(E=l)),x=st(0,1,P)*u}const C=b?{done:!1,value:a[0]}:E.next(x);i&&(C.value=i(C.value));let{done:T}=C;!b&&c!==null&&(T=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return A&&m!==Qa&&(C.value=Cl(a,this.options,v,this.speed)),h&&h(C.value),A&&this.finish(),C}then(t,n){return this.finished.then(t,n)}get duration(){return Ue(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(this.currentTime)}set time(t){var n;t=ot(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(je.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ue(this.currentTime))}play(){var t,n;if(this.isStopped)return;const{driver:r=r_,startTime:o}=this.options;this.driver||(this.driver=r(l=>this.tick(l))),(n=(t=this.options).onPlay)==null||n.call(t);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=o??i),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(je.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function x_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ht=e=>e*180/Math.PI,Ja=e=>{const t=Ht(Math.atan2(e[1],e[0]));return es(t)},E_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Ja,rotateZ:Ja,skewX:e=>Ht(Math.atan(e[1])),skewY:e=>Ht(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},es=e=>(e=e%360,e<0&&(e+=360),e),$u=Ja,Bu=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),zu=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),C_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Bu,scaleY:zu,scale:e=>(Bu(e)+zu(e))/2,rotateX:e=>es(Ht(Math.atan2(e[6],e[5]))),rotateY:e=>es(Ht(Math.atan2(-e[2],e[0]))),rotateZ:$u,rotate:$u,skewX:e=>Ht(Math.atan(e[4])),skewY:e=>Ht(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function ts(e){return e.includes("scale")?1:0}function ns(e,t){if(!e||e==="none")return ts(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=C_,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=E_,o=u}if(!o)return ts(t);const i=r[t],l=o[1].split(",").map(__);return typeof i=="function"?i(l):l[i]}const S_=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ns(n,t)};function __(e){return parseFloat(e.trim())}const jn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Mn=new Set(jn),Uu=e=>e===Tn||e===Y,P_=new Set(["x","y","z"]),R_=jn.filter(e=>!P_.has(e));function O_(e){const t=[];return R_.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ct={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ns(t,"x"),y:(e,{transform:t})=>ns(t,"y")};Ct.translateX=Ct.x;Ct.translateY=Ct.y;const Wt=new Set;let rs=!1,os=!1,is=!1;function pv(){if(os){const e=Array.from(Wt).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=O_(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,l])=>{var u;(u=r.getValue(i))==null||u.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}os=!1,rs=!1,Wt.forEach(e=>e.complete(is)),Wt.clear()}function hv(){Wt.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(os=!0)})}function T_(){is=!0,hv(),pv(),is=!1}class Pl{constructor(t,n,r,o,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Wt.add(this),rs||(rs=!0,de.read(hv),de.resolveKeyframes(pv))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),l=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const u=r.readValue(n,l);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=l),o&&i===void 0&&o.set(t[0])}x_(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Wt.delete(this)}cancel(){this.state==="scheduled"&&(Wt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const j_=e=>e.startsWith("--");function M_(e,t,n){j_(t)?e.style.setProperty(t,n):e.style[t]=n}const A_=pl(()=>window.ScrollTimeline!==void 0),k_={};function D_(e,t){const n=pl(e);return()=>k_[t]??n()}const mv=D_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Kn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Hu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Kn([0,.65,.55,1]),circOut:Kn([.55,0,1,.45]),backIn:Kn([.31,.01,.66,-.59]),backOut:Kn([.33,1.53,.69,.99])};function vv(e,t){if(e)return typeof e=="function"?mv()?cv(e,t):"ease-out":Jm(e)?Kn(e):Array.isArray(e)?e.map(n=>vv(n,t)||Hu.easeOut):Hu[e]}function N_(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:l="loop",ease:u="easeOut",times:c}={},s=void 0){const a={[t]:n};c&&(a.offset=c);const d=vv(u,o);Array.isArray(d)&&(a.easing=d);const f={delay:r,duration:o,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return s&&(f.pseudoElement=s),e.animate(a,f)}function gv(e){return typeof e=="function"&&"applyToOptions"in e}function I_({type:e,...t}){return gv(e)&&mv()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class L_ extends Sl{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:u,onComplete:c}=t;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=t,mt(typeof t.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const s=I_(t);this.animation=N_(n,r,o,s,i),s.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const a=Cl(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(a):M_(n,r,a),this.animation.cancel()}c==null||c(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n,r;const o=(t=this.options)==null?void 0:t.element;!this.isPseudoElement&&o!=null&&o.isConnected&&((r=(n=this.animation).commitStyles)==null||r.call(n))}get duration(){var t,n;const r=((n=(t=this.animation.effect)==null?void 0:t.getComputedTiming)==null?void 0:n.call(t).duration)||0;return Ue(Number(r))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ue(t)}get time(){return Ue(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ot(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&A_()?(this.animation.timeline=t,We):n(this)}}const yv={anticipate:Ym,backInOut:Km,circInOut:Zm};function F_(e){return e in yv}function V_(e){typeof e.ease=="string"&&F_(e.ease)&&(e.ease=yv[e.ease])}const ua=10;class $_ extends L_{constructor(t){V_(t),fv(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new _l({...l,autoplay:!1}),c=Math.max(ua,je.now()-this.startTime),s=st(0,ua,c-ua);n.setWithVelocity(u.sample(Math.max(0,c-s)).value,u.sample(c).value,s),u.stop()}}const Wu=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tt.test(e)||e==="0")&&!e.startsWith("url("));function B_(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function z_(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],l=Wu(o,t),u=Wu(i,t);return On(l===u,`You are trying to animate ${t} from "${o}" to "${i}". "${l?i:o}" is not an animatable value.`,"value-not-animatable"),!l||!u?!1:B_(e)||(n==="spring"||gv(n))&&r}function as(e){e.duration=0,e.type="keyframes"}const U_=new Set(["opacity","clipPath","filter","transform"]),H_=pl(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function W_(e){var t;const{motionValue:n,name:r,repeatDelay:o,repeatType:i,damping:l,type:u}=e;if(!(((t=n==null?void 0:n.owner)==null?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:s}=n.owner.getProps();return H_()&&r&&U_.has(r)&&(r!=="transform"||!s)&&!c&&!o&&i!=="mirror"&&l!==0&&u!=="inertia"}const G_=40;class X_ extends Sl{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:l="loop",keyframes:u,name:c,motionValue:s,element:a,...d}){var f;super(),this.stop=()=>{var h,v;this._animation&&(this._animation.stop(),(h=this.stopTimeline)==null||h.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=je.now();const p={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:l,name:c,motionValue:s,element:a,...d},m=(a==null?void 0:a.KeyframeResolver)||Pl;this.keyframeResolver=new m(u,(h,v,y)=>this.onKeyframesResolved(h,v,p,!y),c,s,a),(f=this.keyframeResolver)==null||f.scheduleResolve()}onKeyframesResolved(t,n,r,o){var i,l;this.keyframeResolver=void 0;const{name:u,type:c,velocity:s,delay:a,isHandoff:d,onUpdate:f}=r;this.resolvedAt=je.now(),z_(t,u,c,s)||((vt.instantAnimations||!a)&&(f==null||f(Cl(t,r,n))),t[0]=t[t.length-1],as(r),r.repeat=0);const p={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>G_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},m=!d&&W_(p),h=(l=(i=p.motionValue)==null?void 0:i.owner)==null?void 0:l.current,v=m?new $_({...p,element:h}):new _l(p);v.finished.then(()=>{this.notifyFinished()}).catch(We),this.pendingTimeline&&(this.stopTimeline=v.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=v}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),T_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function bv(e,t,n,r=0,o=1){const i=Array.from(e).sort((c,s)=>c.sortNodePosition(s)).indexOf(t),l=e.size,u=(l-1)*r;return typeof n=="function"?n(i,l):o===1?i*r:u-i*r}const K_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Y_(e){const t=K_.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}const q_=4;function wv(e,t,n=1){mt(n<=q_,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[r,o]=Y_(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const l=i.trim();return $m(l)?parseFloat(l):l}return yl(o)?wv(o,t,n+1):o}const Z_={type:"spring",stiffness:500,damping:25,restSpeed:10},Q_=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),J_={type:"keyframes",duration:.8},eP={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},tP=(e,{keyframes:t})=>t.length>2?J_:Mn.has(e)?e.startsWith("scale")?Q_(t[1]):Z_:eP,nP=e=>e!==null;function rP(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(nP),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}function Rl(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}function oP({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:l,repeatDelay:u,from:c,elapsed:s,...a}){return!!Object.keys(a).length}const Ol=(e,t,n,r={},o,i)=>l=>{const u=Rl(r,e)||{},c=u.delay||r.delay||0;let{elapsed:s=0}=r;s=s-ot(c);const a={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-s,onUpdate:f=>{t.set(f),u.onUpdate&&u.onUpdate(f)},onComplete:()=>{l(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:i?void 0:o};oP(u)||Object.assign(a,tP(e,a)),a.duration&&(a.duration=ot(a.duration)),a.repeatDelay&&(a.repeatDelay=ot(a.repeatDelay)),a.from!==void 0&&(a.keyframes[0]=a.from);let d=!1;if((a.type===!1||a.duration===0&&!a.repeatDelay)&&(as(a),a.delay===0&&(d=!0)),(vt.instantAnimations||vt.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(d=!0,as(a),a.delay=0),a.allowFlatten=!u.type&&!u.ease,d&&!i&&t.get()!==void 0){const f=rP(a.keyframes,u);if(f!==void 0){de.update(()=>{a.onUpdate(f),a.onComplete()});return}}return u.isSync?new _l(a):new X_(a)};function Gu(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Tl(e,t,n,r){if(typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=Gu(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function vn(e,t,n){const r=e.getProps();return Tl(r,t,n!==void 0?n:r.custom,e)}const xv=new Set(["width","height","top","left","right","bottom",...jn]),Xu=30,iP=e=>!isNaN(parseFloat(e));class aP{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=je.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=je.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=iP(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&ml(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new hl);const r=this.events[t].add(n);return t==="change"?()=>{r(),de.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=je.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Xu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Xu);return Um(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xn(e,t){return new aP(e,t)}const ss=e=>Array.isArray(e);function sP(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xn(n))}function lP(e){return ss(e)?e[e.length-1]||0:e}function uP(e,t){const n=vn(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i){const u=lP(i[l]);sP(e,l,u)}}const Pe=e=>!!(e&&e.getVelocity);function cP(e){return!!(Pe(e)&&e.add)}function ls(e,t){const n=e.getValue("willChange");if(cP(n))return n.add(t);if(!n&&vt.WillChange){const r=new vt.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function jl(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const dP="framerAppearId",Ev="data-"+jl(dP);function Cv(e){return e.props[Ev]}function fP({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Sv(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...u}=t;const c=i==null?void 0:i.reduceMotion;r&&(i=r);const s=[],a=o&&e.animationState&&e.animationState.getState()[o];for(const d in u){const f=e.getValue(d,e.latestValues[d]??null),p=u[d];if(p===void 0||a&&fP(a,d))continue;const m={delay:n,...Rl(i||{},d)},h=f.get();if(h!==void 0&&!f.isAnimating&&!Array.isArray(p)&&p===h&&!m.velocity)continue;let v=!1;if(window.MotionHandoffAnimation){const x=Cv(e);if(x){const E=window.MotionHandoffAnimation(x,d,de);E!==null&&(m.startTime=E,v=!0)}}ls(e,d);const y=c??e.shouldReduceMotion;f.start(Ol(d,f,p,y&&xv.has(d)?{type:!1}:m,e,v));const b=f.animation;b&&s.push(b)}return l&&Promise.all(s).then(()=>{de.update(()=>{l&&uP(e,l)})}),s}function us(e,t,n={}){var r;const o=vn(e,t,n.type==="exit"?(r=e.presenceContext)==null?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const l=o?()=>Promise.all(Sv(e,o,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(s=0)=>{const{delayChildren:a=0,staggerChildren:d,staggerDirection:f}=i;return pP(e,t,s,a,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[s,a]=c==="beforeChildren"?[l,u]:[u,l];return s().then(()=>a())}else return Promise.all([l(),u(n.delay)])}function pP(e,t,n=0,r=0,o=0,i=1,l){const u=[];for(const c of e.variantChildren)c.notify("AnimationStart",t),u.push(us(c,t,{...l,delay:n+(typeof r=="function"?0:r)+bv(e.variantChildren,c,r,o,i)}).then(()=>c.notify("AnimationComplete",t)));return Promise.all(u)}function hP(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>us(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=us(e,t,n);else{const o=typeof t=="function"?vn(e,t,n.custom):t;r=Promise.all(Sv(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const mP={test:e=>e==="auto",parse:e=>e},_v=e=>t=>t.test(e),Pv=[Tn,Y,it,Et,BS,$S,mP],Ku=e=>Pv.find(_v(e));function vP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zm(e):!0}const gP=new Set(["brightness","contrast","saturate","opacity"]);function yP(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(bl)||[];if(!r)return e;const o=n.replace(r,"");let i=gP.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const bP=/\b([a-z-]*)\(.*?\)/gu,cs={...Tt,getAnimatableNone:e=>{const t=e.match(bP);return t?t.map(yP).join(" "):e}},Yu={...Tn,transform:Math.round},wP={rotate:Et,rotateX:Et,rotateY:Et,rotateZ:Et,scale:Ur,scaleX:Ur,scaleY:Ur,scaleZ:Ur,skew:Et,skewX:Et,skewY:Et,distance:Y,translateX:Y,translateY:Y,translateZ:Y,x:Y,y:Y,z:Y,perspective:Y,transformPerspective:Y,opacity:or,originX:Nu,originY:Nu,originZ:Y},Ml={borderWidth:Y,borderTopWidth:Y,borderRightWidth:Y,borderBottomWidth:Y,borderLeftWidth:Y,borderRadius:Y,borderTopLeftRadius:Y,borderTopRightRadius:Y,borderBottomRightRadius:Y,borderBottomLeftRadius:Y,width:Y,maxWidth:Y,height:Y,maxHeight:Y,top:Y,right:Y,bottom:Y,left:Y,inset:Y,insetBlock:Y,insetBlockStart:Y,insetBlockEnd:Y,insetInline:Y,insetInlineStart:Y,insetInlineEnd:Y,padding:Y,paddingTop:Y,paddingRight:Y,paddingBottom:Y,paddingLeft:Y,paddingBlock:Y,paddingBlockStart:Y,paddingBlockEnd:Y,paddingInline:Y,paddingInlineStart:Y,paddingInlineEnd:Y,margin:Y,marginTop:Y,marginRight:Y,marginBottom:Y,marginLeft:Y,marginBlock:Y,marginBlockStart:Y,marginBlockEnd:Y,marginInline:Y,marginInlineStart:Y,marginInlineEnd:Y,fontSize:Y,backgroundPositionX:Y,backgroundPositionY:Y,...wP,zIndex:Yu,fillOpacity:or,strokeOpacity:or,numOctaves:Yu},xP={...Ml,color:Ee,backgroundColor:Ee,outlineColor:Ee,fill:Ee,stroke:Ee,borderColor:Ee,borderTopColor:Ee,borderRightColor:Ee,borderBottomColor:Ee,borderLeftColor:Ee,filter:cs,WebkitFilter:cs},Rv=e=>xP[e];function Ov(e,t){let n=Rv(e);return n!==cs&&(n=Tt),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const EP=new Set(["auto","none","0"]);function CP(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!EP.has(i)&&ir(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=Ov(n,o)}class SP extends Pl{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let a=0;a<t.length;a++){let d=t[a];if(typeof d=="string"&&(d=d.trim(),yl(d))){const f=wv(d,n.current);f!==void 0&&(t[a]=f),a===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!xv.has(r)||t.length!==2)return;const[o,i]=t,l=Ku(o),u=Ku(i),c=Du(o),s=Du(i);if(c!==s&&Ct[r]){this.needsMeasurement=!0;return}if(l!==u)if(Uu(l)&&Uu(u))for(let a=0;a<t.length;a++){const d=t[a];typeof d=="string"&&(t[a]=parseFloat(d))}else Ct[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||vP(t[o]))&&r.push(o);r.length&&CP(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ct[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:o}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const l=o.length-1,u=o[l];o[l]=Ct[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(t=this.removedTransforms)!=null&&t.length&&this.removedTransforms.forEach(([c,s])=>{n.getValue(c).set(s)}),this.resolveNoneKeyframes()}}function _P(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const Tv=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function ds(e){return Bm(e)&&"offsetHeight"in e}const{schedule:Al}=ev(queueMicrotask,!1),Ye={x:!1,y:!1};function jv(){return Ye.x||Ye.y}function PP(e){return e==="x"||e==="y"?Ye[e]?null:(Ye[e]=!0,()=>{Ye[e]=!1}):Ye.x||Ye.y?null:(Ye.x=Ye.y=!0,()=>{Ye.x=Ye.y=!1})}function Mv(e,t){const n=_P(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function qu(e){return!(e.pointerType==="touch"||jv())}function RP(e,t,n={}){const[r,o,i]=Mv(e,n),l=u=>{if(!qu(u))return;const{target:c}=u,s=t(c,u);if(typeof s!="function"||!c)return;const a=d=>{qu(d)&&(s(d),c.removeEventListener("pointerleave",a))};c.addEventListener("pointerleave",a,o)};return r.forEach(u=>{u.addEventListener("pointerenter",l,o)}),i}const Av=(e,t)=>t?e===t?!0:Av(e,t.parentElement):!1,kl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,OP=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TP(e){return OP.has(e.tagName)||e.isContentEditable===!0}const jP=new Set(["INPUT","SELECT","TEXTAREA"]);function MP(e){return jP.has(e.tagName)||e.isContentEditable===!0}const No=new WeakSet;function Zu(e){return t=>{t.key==="Enter"&&e(t)}}function ca(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const AP=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Zu(()=>{if(No.has(n))return;ca(n,"down");const o=Zu(()=>{ca(n,"up")}),i=()=>ca(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qu(e){return kl(e)&&!jv()}function kP(e,t,n={}){const[r,o,i]=Mv(e,n),l=u=>{const c=u.currentTarget;if(!Qu(u))return;No.add(c);const s=t(c,u),a=(p,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),No.has(c)&&No.delete(c),Qu(p)&&typeof s=="function"&&s(p,{success:m})},d=p=>{a(p,c===window||c===document||n.useGlobalTarget||Av(c,p.target))},f=p=>{a(p,!1)};window.addEventListener("pointerup",d,o),window.addEventListener("pointercancel",f,o)};return r.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",l,o),ds(u)&&(u.addEventListener("focus",c=>AP(c,o)),!TP(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),i}function kv(e){return Bm(e)&&"ownerSVGElement"in e}function DP(e){return kv(e)&&e.tagName==="svg"}const NP=[...Pv,Ee,Tt],IP=e=>NP.find(_v(e)),Ju=()=>({translate:0,scale:1,origin:0,originPoint:0}),un=()=>({x:Ju(),y:Ju()}),ec=()=>({min:0,max:0}),Se=()=>({x:ec(),y:ec()}),fs={current:null},Dv={current:!1},LP=typeof window<"u";function FP(){if(Dv.current=!0,!!LP)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>fs.current=e.matches;e.addEventListener("change",t),t()}else fs.current=!1}const VP=new WeakMap;function Di(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ar(e){return typeof e=="string"||Array.isArray(e)}const Dl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nl=["initial",...Dl];function Ni(e){return Di(e.animate)||Nl.some(t=>ar(e[t]))}function Nv(e){return!!(Ni(e)||e.variants)}function $P(e,t,n){for(const r in t){const o=t[r],i=n[r];if(Pe(o))e.addValue(r,o);else if(Pe(i))e.addValue(r,xn(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(o):l.hasAnimated||l.set(o)}else{const l=e.getStaticValue(r);e.addValue(r,xn(l!==void 0?l:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const tc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Jo={};function Iv(e){Jo=e}function BP(){return Jo}class zP{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,skipAnimations:i,blockInitialAnimation:l,visualState:u},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=Pl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=je.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,de.render(this.render,!1,!0))};const{latestValues:s,renderState:a}=u;this.latestValues=s,this.baseTarget={...s},this.initialValues=n.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=i,this.options=c,this.blockInitialAnimation=!!l,this.isControllingVariants=Ni(n),this.isVariantNode=Nv(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in f){const m=f[p];s[p]!==void 0&&Pe(m)&&m.set(s[p])}}mount(t){var n;this.current=t,VP.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Dv.current||FP(),this.shouldReduceMotion=fs.current),process.env.NODE_ENV!=="production"&&ml(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),Ot(this.notifyUpdate),Ot(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Mn.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&de.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;typeof window<"u"&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Jo){const n=Jo[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Se()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<tc.length;r++){const o=tc[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,l=t[i];l&&(this.propEventSubscriptions[o]=this.on(o,l))}this.prevMotionValues=$P(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=xn(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&($m(r)||zm(r))?r=parseFloat(r):!IP(r)&&Tt.test(n)&&(r=Ov(t,n)),this.setBaseTarget(t,Pe(r)?r.get():r)),Pe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let o;if(typeof r=="string"||typeof r=="object"){const l=Tl(this.props,r,(n=this.presenceContext)==null?void 0:n.custom);l&&(o=l[t])}if(r&&o!==void 0)return o;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Pe(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new hl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Al.render(this.render)}}class Lv extends zP{constructor(){super(...arguments),this.KeyframeResolver=SP}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Nt{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fv({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function UP({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function HP(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function da(e){return e===void 0||e===1}function ps({scale:e,scaleX:t,scaleY:n}){return!da(e)||!da(t)||!da(n)}function zt(e){return ps(e)||Vv(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Vv(e){return nc(e.x)||nc(e.y)}function nc(e){return e&&e!=="0%"}function ei(e,t,n){const r=e-n,o=t*r;return n+o}function rc(e,t,n,r,o){return o!==void 0&&(e=ei(e,o,r)),ei(e,n,r)+t}function hs(e,t=0,n=1,r,o){e.min=rc(e.min,t,n,r,o),e.max=rc(e.max,t,n,r,o)}function $v(e,{x:t,y:n}){hs(e.x,t.translate,t.scale,t.originPoint),hs(e.y,n.translate,n.scale,n.originPoint)}const oc=.999999999999,ic=1.0000000000001;function WP(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,l;for(let u=0;u<o;u++){i=n[u],l=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&dn(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,$v(e,l)),r&&zt(i.latestValues)&&dn(e,i.latestValues))}t.x<ic&&t.x>oc&&(t.x=1),t.y<ic&&t.y>oc&&(t.y=1)}function cn(e,t){e.min=e.min+t,e.max=e.max+t}function ac(e,t,n,r,o=.5){const i=ye(e.min,e.max,o);hs(e,t,n,i,r)}function dn(e,t){ac(e.x,t.x,t.scaleX,t.scale,t.originX),ac(e.y,t.y,t.scaleY,t.scale,t.originY)}function Bv(e,t){return Fv(HP(e.getBoundingClientRect(),t))}function GP(e,t,n){const r=Bv(e,n),{scroll:o}=t;return o&&(cn(r.x,o.offset.x),cn(r.y,o.offset.y)),r}const XP={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},KP=jn.length;function YP(e,t,n){let r="",o=!0;for(let i=0;i<KP;i++){const l=jn[i],u=e[l];if(u===void 0)continue;let c=!0;if(typeof u=="number")c=u===(l.startsWith("scale")?1:0);else{const s=parseFloat(u);c=l.startsWith("scale")?s===1:s===0}if(!c||n){const s=Tv(u,Ml[l]);if(!c){o=!1;const a=XP[l]||l;r+=`${a}(${s}) `}n&&(t[l]=s)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function Il(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let l=!1,u=!1;for(const c in t){const s=t[c];if(Mn.has(c)){l=!0;continue}else if(nv(c)){o[c]=s;continue}else{const a=Tv(s,Ml[c]);c.startsWith("origin")?(u=!0,i[c]=a):r[c]=a}}if(t.transform||(l||n?r.transform=YP(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:s="50%",originZ:a=0}=i;r.transformOrigin=`${c} ${s} ${a}`}}function zv(e,{style:t,vars:n},r,o){const i=e.style;let l;for(l in t)i[l]=t[l];o==null||o.applyProjectionStyles(i,r);for(l in n)i.setProperty(l,n[l])}function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const In={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Y.test(e))e=parseFloat(e);else return e;const n=sc(e,t.target.x),r=sc(e,t.target.y);return`${n}% ${r}%`}},qP={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Tt.parse(e);if(o.length>5)return r;const i=Tt.createTransformer(e),l=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;o[0+l]/=u,o[1+l]/=c;const s=ye(u,c,.5);return typeof o[2+l]=="number"&&(o[2+l]/=s),typeof o[3+l]=="number"&&(o[3+l]/=s),i(o)}},ms={borderRadius:{...In,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:In,borderTopRightRadius:In,borderBottomLeftRadius:In,borderBottomRightRadius:In,boxShadow:qP};function Uv(e,{layout:t,layoutId:n}){return Mn.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!ms[e]||e==="opacity")}function Ll(e,t,n){var r;const o=e.style,i=t==null?void 0:t.style,l={};if(!o)return l;for(const u in o)(Pe(o[u])||i&&Pe(i[u])||Uv(u,e)||((r=n==null?void 0:n.getValue(u))==null?void 0:r.liveStyle)!==void 0)&&(l[u]=o[u]);return l}function ZP(e){return window.getComputedStyle(e)}class QP extends Lv{constructor(){super(...arguments),this.type="html",this.renderInstance=zv}readValueFromInstance(t,n){var r;if(Mn.has(n))return(r=this.projection)!=null&&r.isProjecting?ts(n):S_(t,n);{const o=ZP(t),i=(nv(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Bv(t,n)}build(t,n,r){Il(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Ll(t,n,r)}}const JP={offset:"stroke-dashoffset",array:"stroke-dasharray"},eR={offset:"strokeDashoffset",array:"strokeDasharray"};function tR(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?JP:eR;e[i.offset]=`${-r}`,e[i.array]=`${t} ${n}`}const nR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function Hv(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:l=0,...u},c,s,a){if(Il(e,u,s),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=(a==null?void 0:a.transformBox)??"fill-box",delete d.transformBox);for(const p of nR)d[p]!==void 0&&(f[p]=d[p],delete d[p]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),o!==void 0&&tR(d,o,i,l,!1)}const Wv=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"]),Gv=e=>typeof e=="string"&&e.toLowerCase()==="svg";function rR(e,t,n,r){zv(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wv.has(o)?o:jl(o),t.attrs[o])}function Xv(e,t,n){const r=Ll(e,t,n);for(const o in e)if(Pe(e[o])||Pe(t[o])){const i=jn.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}class oR extends Lv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Se}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Mn.has(n)){const r=Rv(n);return r&&r.default||0}return n=Wv.has(n)?n:jl(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Xv(t,n,r)}build(t,n,r){Hv(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){rR(t,n,r,o)}mount(t){this.isSVGTag=Gv(t.tagName),super.mount(t)}}const iR=Nl.length;function Kv(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Kv(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<iR;n++){const r=Nl[n],o=e.props[r];(ar(o)||o===!1)&&(t[r]=o)}return t}function Yv(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const aR=[...Dl].reverse(),sR=Dl.length;function lR(e){return t=>Promise.all(t.map(({animation:n,options:r})=>hP(e,n,r)))}function uR(e){let t=lR(e),n=lc(),r=!0;const o=c=>(s,a)=>{var d;const f=vn(e,a,c==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:p,transitionEnd:m,...h}=f;s={...s,...h,...m}}return s};function i(c){t=c(e)}function l(c){const{props:s}=e,a=Kv(e.parent)||{},d=[],f=new Set;let p={},m=1/0;for(let v=0;v<sR;v++){const y=aR[v],b=n[y],x=s[y]!==void 0?s[y]:a[y],E=ar(x),C=y===c?b.isActive:null;C===!1&&(m=v);let T=x===a[y]&&x!==s[y]&&E;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),b.protectedKeys={...p},!b.isActive&&C===null||!x&&!b.prevProp||Di(x)||typeof x=="boolean")continue;const A=cR(b.prevProp,x);let j=A||y===c&&b.isActive&&!T&&E||v>m&&E,R=!1;const P=Array.isArray(x)?x:[x];let k=P.reduce(o(y),{});C===!1&&(k={});const{prevResolvedValues:O={}}=b,$={...O,...k},F=B=>{j=!0,f.has(B)&&(R=!0,f.delete(B)),b.needsAnimating[B]=!0;const G=e.getValue(B);G&&(G.liveStyle=!1)};for(const B in $){const G=k[B],W=O[B];if(p.hasOwnProperty(B))continue;let N=!1;ss(G)&&ss(W)?N=!Yv(G,W):N=G!==W,N?G!=null?F(B):f.add(B):G!==void 0&&f.has(B)?F(B):b.protectedKeys[B]=!0}b.prevProp=x,b.prevResolvedValues=k,b.isActive&&(p={...p,...k}),r&&e.blockInitialAnimation&&(j=!1);const H=T&&A;j&&(!H||R)&&d.push(...P.map(B=>{const G={type:y};if(typeof B=="string"&&r&&!H&&e.manuallyAnimateOnMount&&e.parent){const{parent:W}=e,N=vn(W,B);if(W.enteringChildren&&N){const{delayChildren:M}=N.transition||{};G.delay=bv(W.enteringChildren,e,M)}}return{animation:B,options:G}}))}if(f.size){const v={};if(typeof s.initial!="boolean"){const y=vn(e,Array.isArray(s.initial)?s.initial[0]:s.initial);y&&y.transition&&(v.transition=y.transition)}f.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),v[y]=b??null}),d.push({animation:v})}let h=!!d.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(d):Promise.resolve()}function u(c,s){var a;if(n[c].isActive===s)return Promise.resolve();(a=e.variantChildren)==null||a.forEach(f=>{var p;return(p=f.animationState)==null?void 0:p.setActive(c,s)}),n[c].isActive=s;const d=l(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:l,setActive:u,setAnimateFunction:i,getState:()=>n,reset:()=>{n=lc()}}}function cR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yv(t,e):!1}function Vt(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function lc(){return{animate:Vt(!0),whileInView:Vt(),whileHover:Vt(),whileTap:Vt(),whileDrag:Vt(),whileFocus:Vt(),exit:Vt()}}function uc(e,t){e.min=t.min,e.max=t.max}function Ge(e,t){uc(e.x,t.x),uc(e.y,t.y)}function cc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const qv=1e-4,dR=1-qv,fR=1+qv,Zv=.01,pR=0-Zv,hR=0+Zv;function Me(e){return e.max-e.min}function mR(e,t,n){return Math.abs(e-t)<=n}function dc(e,t,n,r=.5){e.origin=r,e.originPoint=ye(t.min,t.max,e.origin),e.scale=Me(n)/Me(t),e.translate=ye(n.min,n.max,e.origin)-e.originPoint,(e.scale>=dR&&e.scale<=fR||isNaN(e.scale))&&(e.scale=1),(e.translate>=pR&&e.translate<=hR||isNaN(e.translate))&&(e.translate=0)}function Zn(e,t,n,r){dc(e.x,t.x,n.x,r?r.originX:void 0),dc(e.y,t.y,n.y,r?r.originY:void 0)}function fc(e,t,n){e.min=n.min+t.min,e.max=e.min+Me(t)}function vR(e,t,n){fc(e.x,t.x,n.x),fc(e.y,t.y,n.y)}function pc(e,t,n){e.min=t.min-n.min,e.max=e.min+Me(t)}function ti(e,t,n){pc(e.x,t.x,n.x),pc(e.y,t.y,n.y)}function hc(e,t,n,r,o){return e-=t,e=ei(e,1/n,r),o!==void 0&&(e=ei(e,1/o,r)),e}function gR(e,t=0,n=1,r=.5,o,i=e,l=e){if(it.test(t)&&(t=parseFloat(t),t=ye(l.min,l.max,t/100)-l.min),typeof t!="number")return;let u=ye(i.min,i.max,r);e===i&&(u-=t),e.min=hc(e.min,t,n,u,o),e.max=hc(e.max,t,n,u,o)}function mc(e,t,[n,r,o],i,l){gR(e,t[n],t[r],t[o],t.scale,i,l)}const yR=["x","scaleX","originX"],bR=["y","scaleY","originY"];function vc(e,t,n,r){mc(e.x,t,yR,n?n.x:void 0,r?r.x:void 0),mc(e.y,t,bR,n?n.y:void 0,r?r.y:void 0)}function gc(e){return e.translate===0&&e.scale===1}function Qv(e){return gc(e.x)&&gc(e.y)}function yc(e,t){return e.min===t.min&&e.max===t.max}function wR(e,t){return yc(e.x,t.x)&&yc(e.y,t.y)}function bc(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Jv(e,t){return bc(e.x,t.x)&&bc(e.y,t.y)}function wc(e){return Me(e.x)/Me(e.y)}function xc(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ze(e){return[e("x"),e("y")]}function xR(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((o||i||l)&&(r=`translate3d(${o}px, ${i}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:s,rotate:a,rotateX:d,rotateY:f,skewX:p,skewY:m}=n;s&&(r=`perspective(${s}px) ${r}`),a&&(r+=`rotate(${a}deg) `),d&&(r+=`rotateX(${d}deg) `),f&&(r+=`rotateY(${f}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const e0=["TopLeft","TopRight","BottomLeft","BottomRight"],ER=e0.length,Ec=e=>typeof e=="string"?parseFloat(e):e,Cc=e=>typeof e=="number"||Y.test(e);function CR(e,t,n,r,o,i){o?(e.opacity=ye(0,n.opacity??1,SR(r)),e.opacityExit=ye(t.opacity??1,0,_R(r))):i&&(e.opacity=ye(t.opacity??1,n.opacity??1,r));for(let l=0;l<ER;l++){const u=`border${e0[l]}Radius`;let c=Sc(t,u),s=Sc(n,u);c===void 0&&s===void 0||(c||(c=0),s||(s=0),c===0||s===0||Cc(c)===Cc(s)?(e[u]=Math.max(ye(Ec(c),Ec(s),r),0),(it.test(s)||it.test(c))&&(e[u]+="%")):e[u]=s)}(t.rotate||n.rotate)&&(e.rotate=ye(t.rotate||0,n.rotate||0,r))}function Sc(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const SR=t0(0,.5,qm),_R=t0(.5,.95,We);function t0(e,t,n){return r=>r<e?0:r>t?1:n(rr(e,t,r))}function PR(e,t,n){const r=Pe(e)?e:xn(e);return r.start(Ol("",r,t,n)),r.animation}function sr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const RR=(e,t)=>e.depth-t.depth;class OR{constructor(){this.children=[],this.isDirty=!1}add(t){dl(this.children,t),this.isDirty=!0}remove(t){fl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(RR),this.isDirty=!1,this.children.forEach(t)}}function TR(e,t){const n=je.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(Ot(r),e(i-t))};return de.setup(r,!0),()=>Ot(r)}function Io(e){return Pe(e)?e.get():e}class jR{constructor(){this.members=[]}add(t){dl(this.members,t),t.scheduleRender()}remove(t){if(fl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,i=t.options.layoutDependency;o!==void 0&&i!==void 0&&o===i||(t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0));const{crossfade:l}=t.options;l===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Lo={hasAnimatedSinceResize:!0,hasEverUpdated:!1},fa=["","X","Y","Z"],MR=1e3;let AR=0;function pa(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function n0(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Cv(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",de,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&n0(r)}function r0({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(i={},l=t==null?void 0:t()){this.id=AR++,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(NR),this.nodes.forEach(VR),this.nodes.forEach($R),this.nodes.forEach(IR)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let u=0;u<this.path.length;u++)this.path[u].shouldResetTransform=!0;this.root===this&&(this.nodes=new OR)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new hl),this.eventHandlers.get(i).add(l)}notifyListeners(i,...l){const u=this.eventHandlers.get(i);u&&u.notify(...l)}hasListeners(i){return this.eventHandlers.has(i)}mount(i){if(this.instance)return;this.isSVG=kv(i)&&!DP(i),this.instance=i;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(i),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(u||l)&&(this.isLayoutDirty=!0),e){let s,a=0;const d=()=>this.root.updateBlockedByResize=!1;de.read(()=>{a=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==a&&(a=f,this.root.updateBlockedByResize=!0,s&&s(),s=TR(d,250),Lo.hasAnimatedSinceResize&&(Lo.hasAnimatedSinceResize=!1,this.nodes.forEach(Rc)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:s,hasLayoutChanged:a,hasRelativeLayoutChanged:d,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||c.getDefaultTransition()||WR,{onLayoutAnimationStart:m,onLayoutAnimationComplete:h}=c.getProps(),v=!this.targetLayout||!Jv(this.targetLayout,f),y=!a&&d;if(this.options.layoutRoot||this.resumeFrom||y||a&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const b={...Rl(p,"layout"),onPlay:m,onComplete:h};(c.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b),this.setAnimationOrigin(s,y)}else a||Rc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Ot(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(BR),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&n0(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let s=0;s<this.path.length;s++){const a=this.path[s];a.shouldResetTransform=!0,a.updateScroll("snapshot"),a.options.layoutRoot&&a.willUpdate(!1)}const{layoutId:l,layout:u}=this.options;if(l===void 0&&!u)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),i&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(_c);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Pc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(FR),this.nodes.forEach(kR),this.nodes.forEach(DR)):this.nodes.forEach(Pc),this.clearAllSnapshots();const i=je.now();_e.delta=st(0,1e3/60,i-_e.timestamp),_e.timestamp=i,_e.isProcessing=!0,oa.update.process(_e),oa.preRender.process(_e),oa.render.process(_e),_e.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Al.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(LR),this.sharedNodes.forEach(zR)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,de.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){de.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Me(this.snapshot.measuredBox.x)&&!Me(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 u=0;u<this.path.length;u++)this.path[u].updateScroll();const i=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Se(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,i?i.layoutBox:void 0)}updateScroll(i="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===i&&(l=!1),l&&this.instance){const u=r(this.instance);this.scroll={animationId:this.root.animationId,phase:i,isRoot:u,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:u}}}resetTransform(){if(!o)return;const i=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Qv(this.projectionDelta),u=this.getTransformTemplate(),c=u?u(this.latestValues,""):void 0,s=c!==this.prevTransformTemplateValue;i&&this.instance&&(l||zt(this.latestValues)||s)&&(o(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(i=!0){const l=this.measurePageBox();let u=this.removeElementScroll(l);return i&&(u=this.removeTransform(u)),GR(u),{animationId:this.root.animationId,measuredBox:l,layoutBox:u,latestValues:{},source:this.id}}measurePageBox(){var i;const{visualElement:l}=this.options;if(!l)return Se();const u=l.measureViewportBox();if(!((i=this.scroll)!=null&&i.wasRoot||this.path.some(XR))){const{scroll:c}=this.root;c&&(cn(u.x,c.offset.x),cn(u.y,c.offset.y))}return u}removeElementScroll(i){var l;const u=Se();if(Ge(u,i),(l=this.scroll)!=null&&l.wasRoot)return u;for(let c=0;c<this.path.length;c++){const s=this.path[c],{scroll:a,options:d}=s;s!==this.root&&a&&d.layoutScroll&&(a.wasRoot&&Ge(u,i),cn(u.x,a.offset.x),cn(u.y,a.offset.y))}return u}applyTransform(i,l=!1){const u=Se();Ge(u,i);for(let c=0;c<this.path.length;c++){const s=this.path[c];!l&&s.options.layoutScroll&&s.scroll&&s!==s.root&&dn(u,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),zt(s.latestValues)&&dn(u,s.latestValues)}return zt(this.latestValues)&&dn(u,this.latestValues),u}removeTransform(i){const l=Se();Ge(l,i);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!c.instance||!zt(c.latestValues))continue;ps(c.latestValues)&&c.updateSnapshot();const s=Se(),a=c.measurePageBox();Ge(s,a),vc(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,s)}return zt(this.latestValues)&&vc(l,this.latestValues),l}setTargetDelta(i){this.targetDelta=i,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(i){this.options={...this.options,...i,crossfade:i.crossfade!==void 0?i.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!==_e.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(i=!1){var l;const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==u;if(!(i||c&&this.isSharedProjectionDirty||this.isProjectionDirty||(l=this.parent)!=null&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:s,layoutId:a}=this.options;if(!this.layout||!(s||a))return;this.resolvedRelativeTargetAt=_e.timestamp;const d=this.getClosestProjectingParent();d&&this.linkedParentVersion!==d.layoutVersion&&!d.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(d&&d.layout?this.createRelativeTarget(d,this.layout.layoutBox,d.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Se(),this.targetWithTransforms=Se()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ge(this.target,this.layout.layoutBox),$v(this.target,this.targetDelta)):Ge(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,d&&!!d.resumingFrom==!!this.resumingFrom&&!d.options.layoutScroll&&d.target&&this.animationProgress!==1?this.createRelativeTarget(d,this.target,d.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||ps(this.parent.latestValues)||Vv(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(i,l,u){this.relativeParent=i,this.linkedParentVersion=i.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Se(),this.relativeTargetOrigin=Se(),ti(this.relativeTargetOrigin,l,u),Ge(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var i;const l=this.getLead(),u=!!this.resumingFrom||this!==l;let c=!0;if((this.isProjectionDirty||(i=this.parent)!=null&&i.isProjectionDirty)&&(c=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===_e.timestamp&&(c=!1),c)return;const{layout:s,layoutId:a}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||a))return;Ge(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,f=this.treeScale.y;WP(this.layoutCorrected,this.treeScale,this.path,u),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Se());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cc(this.prevProjectionDelta.x,this.projectionDelta.x),cc(this.prevProjectionDelta.y,this.projectionDelta.y)),Zn(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==f||!xc(this.projectionDelta.x,this.prevProjectionDelta.x)||!xc(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(i=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),i){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=un(),this.projectionDelta=un(),this.projectionDeltaWithTransform=un()}setAnimationOrigin(i,l=!1){const u=this.snapshot,c=u?u.latestValues:{},s={...this.latestValues},a=un();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const d=Se(),f=u?u.source:void 0,p=this.layout?this.layout.source:void 0,m=f!==p,h=this.getStack(),v=!h||h.members.length<=1,y=!!(m&&!v&&this.options.crossfade===!0&&!this.path.some(HR));this.animationProgress=0;let b;this.mixTargetDelta=x=>{const E=x/1e3;Oc(a.x,i.x,E),Oc(a.y,i.y,E),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ti(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),UR(this.relativeTarget,this.relativeTargetOrigin,d,E),b&&wR(this.relativeTarget,b)&&(this.isProjectionDirty=!1),b||(b=Se()),Ge(b,this.relativeTarget)),m&&(this.animationValues=s,CR(s,c,this.latestValues,E,y,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){var l,u,c;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(),(c=(u=this.resumingFrom)==null?void 0:u.currentAnimation)==null||c.stop(),this.pendingAnimation&&(Ot(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=de.update(()=>{Lo.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=xn(0)),this.currentAnimation=PR(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.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 i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(MR),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:u,layout:c,latestValues:s}=i;if(!(!l||!u||!c)){if(this!==i&&this.layout&&c&&o0(this.options.animationType,this.layout.layoutBox,c.layoutBox)){u=this.target||Se();const a=Me(this.layout.layoutBox.x);u.x.min=i.target.x.min,u.x.max=u.x.min+a;const d=Me(this.layout.layoutBox.y);u.y.min=i.target.y.min,u.y.max=u.y.min+d}Ge(l,u),dn(l,s),Zn(this.projectionDeltaWithTransform,this.layoutCorrected,l,s)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new jR),this.sharedNodes.get(i).add(l);const u=l.options.initialPromotionConfig;l.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){var i;const{layoutId:l}=this.options;return l?((i=this.getStack())==null?void 0:i.lead)||this:this}getPrevLead(){var i;const{layoutId:l}=this.options;return l?(i=this.getStack())==null?void 0:i.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:u}={}){const c=this.getStack();c&&c.promote(this,u),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:u}=i;if((u.z||u.rotate||u.rotateX||u.rotateY||u.rotateZ||u.skewX||u.skewY)&&(l=!0),!l)return;const c={};u.z&&pa("z",i,c,this.animationValues);for(let s=0;s<fa.length;s++)pa(`rotate${fa[s]}`,i,c,this.animationValues),pa(`skew${fa[s]}`,i,c,this.animationValues);i.render();for(const s in c)i.setStaticValue(s,c[s]),this.animationValues&&(this.animationValues[s]=c[s]);i.scheduleRender()}applyProjectionStyles(i,l){if(!this.instance||this.isSVG)return;if(!this.isVisible){i.visibility="hidden";return}const u=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,i.visibility="",i.opacity="",i.pointerEvents=Io(l==null?void 0:l.pointerEvents)||"",i.transform=u?u(this.latestValues,""):"none";return}const c=this.getLead();if(!this.projectionDelta||!this.layout||!c.target){this.options.layoutId&&(i.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,i.pointerEvents=Io(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!zt(this.latestValues)&&(i.transform=u?u({},""):"none",this.hasProjected=!1);return}i.visibility="";const s=c.animationValues||c.latestValues;this.applyTransformsToTarget();let a=xR(this.projectionDeltaWithTransform,this.treeScale,s);u&&(a=u(s,a)),i.transform=a;const{x:d,y:f}=this.projectionDelta;i.transformOrigin=`${d.origin*100}% ${f.origin*100}% 0`,c.animationValues?i.opacity=c===this?s.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=c===this?s.opacity!==void 0?s.opacity:"":s.opacityExit!==void 0?s.opacityExit:0;for(const p in ms){if(s[p]===void 0)continue;const{correct:m,applyTo:h,isCSSVariable:v}=ms[p],y=a==="none"?s[p]:m(s[p],c);if(h){const b=h.length;for(let x=0;x<b;x++)i[h[x]]=y}else v?this.options.visualElement.renderState.vars[p]=y:i[p]=y}this.options.layoutId&&(i.pointerEvents=c===this?Io(l==null?void 0:l.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>{var l;return(l=i.currentAnimation)==null?void 0:l.stop()}),this.root.nodes.forEach(_c),this.root.sharedNodes.clear()}}}function kR(e){e.updateLayout()}function DR(e){var t;const n=((t=e.resumeFrom)==null?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,l=n.source!==e.layout.source;i==="size"?ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(f);f.min=r[d].min,f.max=f.min+p}):o0(i,n.layoutBox,r)&&ze(d=>{const f=l?n.measuredBox[d]:n.layoutBox[d],p=Me(r[d]);f.max=f.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const u=un();Zn(u,r,n.layoutBox);const c=un();l?Zn(c,e.applyTransform(o,!0),n.measuredBox):Zn(c,r,n.layoutBox);const s=!Qv(u);let a=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:p}=d;if(f&&p){const m=Se();ti(m,n.layoutBox,f.layoutBox);const h=Se();ti(h,r,p.layoutBox),Jv(m,h)||(a=!0),d.options.layoutRoot&&(e.relativeTarget=h,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:s,hasRelativeLayoutChanged:a})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NR(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function IR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function LR(e){e.clearSnapshot()}function _c(e){e.clearMeasurements()}function Pc(e){e.isLayoutDirty=!1}function FR(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Rc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function VR(e){e.resolveTargetDelta()}function $R(e){e.calcProjection()}function BR(e){e.resetSkewAndRotation()}function zR(e){e.removeLeadSnapshot()}function Oc(e,t,n){e.translate=ye(t.translate,0,n),e.scale=ye(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Tc(e,t,n,r){e.min=ye(t.min,n.min,r),e.max=ye(t.max,n.max,r)}function UR(e,t,n,r){Tc(e.x,t.x,n.x,r),Tc(e.y,t.y,n.y,r)}function HR(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const WR={duration:.45,ease:[.4,0,.1,1]},jc=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mc=jc("applewebkit/")&&!jc("chrome/")?Math.round:We;function Ac(e){e.min=Mc(e.min),e.max=Mc(e.max)}function GR(e){Ac(e.x),Ac(e.y)}function o0(e,t,n){return e==="position"||e==="preserve-aspect"&&!mR(wc(t),wc(n),.2)}function XR(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const KR=r0({attachResizeListener:(e,t)=>sr(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),ha={current:void 0},i0=r0({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ha.current){const e=new KR({});e.mount(window),e.setOptions({layoutScroll:!0}),ha.current=e}return ha.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Fl=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kc(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function YR(...e){return t=>{let n=!1;const r=e.map(o=>{const i=kc(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():kc(e[o],null)}}}}function qR(...e){return g.useCallback(YR(...e),e)}class ZR extends g.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=ds(r)&&r.offsetWidth||0,i=ds(r)&&r.offsetHeight||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=o-l.width-l.left,l.bottom=i-l.height-l.top}return null}componentDidUpdate(){}render(){return this.props.children}}function QR({children:e,isPresent:t,anchorX:n,anchorY:r,root:o}){var i;const l=_.useId(),u=_.useRef(null),c=_.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:s}=_.useContext(Fl),a=((i=e.props)==null?void 0:i.ref)??(e==null?void 0:e.ref),d=qR(u,a);return _.useInsertionEffect(()=>{const{width:f,height:p,top:m,left:h,right:v,bottom:y}=c.current;if(t||!u.current||!f||!p)return;const b=n==="left"?`left: ${h}`:`right: ${v}`,x=r==="bottom"?`bottom: ${y}`:`top: ${m}`;u.current.dataset.motionPopId=l;const E=document.createElement("style");s&&(E.nonce=s);const C=o??document.head;return C.appendChild(E),E.sheet&&E.sheet.insertRule(`
|
|
97
|
+
[data-motion-pop-id="${l}"] {
|
|
98
98
|
position: absolute !important;
|
|
99
|
-
width: ${
|
|
100
|
-
height: ${
|
|
101
|
-
${
|
|
102
|
-
|
|
99
|
+
width: ${f}px !important;
|
|
100
|
+
height: ${p}px !important;
|
|
101
|
+
${b}px !important;
|
|
102
|
+
${x}px !important;
|
|
103
103
|
}
|
|
104
|
-
`),()=>{b.contains(y)&&b.removeChild(y)}},[t]),w.jsx(YR,{isPresent:t,childRef:l,sizeRef:c,children:g.cloneElement(e,{ref:a})})}const ZR=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l,anchorX:c,root:u})=>{const s=ul(QR),a=_.useId();let d=!0,f=_.useMemo(()=>(d=!1,{id:a,initial:t,isPresent:n,custom:o,onExitComplete:p=>{s.set(p,!0);for(const m of s.values())if(!m)return;r&&r()},register:p=>(s.set(p,!1),()=>s.delete(p))}),[n,s,r]);return i&&d&&(f={...f}),_.useMemo(()=>{s.forEach((p,m)=>s.set(m,!1))},[n]),g.useEffect(()=>{!n&&!s.size&&r&&r()},[n]),l==="popLayout"&&(e=w.jsx(qR,{isPresent:n,anchorX:c,root:u,children:e})),w.jsx(Di.Provider,{value:f,children:e})};function QR(){return new Map}function lg(e=!0){const t=_.useContext(Di);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=_.useId();_.useEffect(()=>{if(e)return o(i)},[e]);const l=_.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,l]:[!0]}const Gr=e=>e.key||"";function kc(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const JR=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:l=!1,anchorX:c="left",root:u})=>{const[s,a]=lg(l),d=_.useMemo(()=>kc(e),[e]),f=l&&!s?[]:d.map(Gr),p=_.useRef(!0),m=_.useRef(d),h=ul(()=>new Map),v=_.useRef(new Set),[y,b]=_.useState(d),[x,S]=_.useState(d);Vm(()=>{p.current=!1,m.current=d;for(let j=0;j<x.length;j++){const O=Gr(x[j]);f.includes(O)?(h.delete(O),v.current.delete(O)):h.get(O)!==!0&&h.set(O,!1)}},[x,f.length,f.join("-")]);const E=[];if(d!==y){let j=[...d];for(let O=0;O<x.length;O++){const T=x[O],P=Gr(T);f.includes(P)||(j.splice(O,0,T),E.push(T))}return i==="wait"&&E.length&&(j=E),S(kc(j)),b(d),null}process.env.NODE_ENV!=="production"&&i==="wait"&&x.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=_.useContext(ll);return w.jsx(w.Fragment,{children:x.map(j=>{const O=Gr(j),T=l&&!s?!1:d===x||f.includes(O),P=()=>{if(v.current.has(O))return;if(v.current.add(O),h.has(O))h.set(O,!0);else return;let k=!0;h.forEach(R=>{R||(k=!1)}),k&&(A==null||A(),S(m.current),l&&(a==null||a()),r&&r())};return w.jsx(ZR,{isPresent:T,initial:!p.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:u,onExitComplete:T?void 0:P,anchorX:c,children:j},O)})})},ug=_.createContext({strict:!1}),Dc={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 Lc=!1;function eO(){if(Lc)return;const e={};for(const t in Dc)e[t]={isEnabled:n=>Dc[t].some(r=>!!n[r])};Fv(e),Lc=!0}function cg(){return eO(),VP()}function tO(e){const t=cg();for(const n in e)t[n]={...t[n],...e[n]};Fv(t)}const nO=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","ignoreStrict","viewport"]);function ri(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nO.has(e)}let dg=e=>!ri(e);function rO(e){typeof e=="function"&&(dg=t=>t.startsWith("on")?!ri(t):e(t))}try{rO(require("@emotion/is-prop-valid").default)}catch{}function oO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(dg(o)||n===!0&&ri(o)||!t&&!ri(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Ni=_.createContext({});function iO(e,t){if(Ii(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sr(n)?n:void 0,animate:sr(r)?r:void 0}}return e.inherit!==!1?t:{}}function aO(e){const{initial:t,animate:n}=iO(e,_.useContext(Ni));return _.useMemo(()=>({initial:t,animate:n}),[Ic(t),Ic(n)])}function Ic(e){return Array.isArray(e)?e.join(" "):e}const Fl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fg(e,t,n){for(const r in t)!Pe(t[r])&&!Gv(r,n)&&(e[r]=t[r])}function sO({transformTemplate:e},t){return _.useMemo(()=>{const n=Fl();return Ll(n,t,e),Object.assign({},n.vars,n.style)},[t])}function lO(e,t){const n=e.style||{},r={};return fg(r,n,e),Object.assign(r,sO(e,t)),r}function uO(e,t){const n={},r=lO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const pg=()=>({...Fl(),attrs:{}});function cO(e,t,n,r){const o=_.useMemo(()=>{const i=pg();return Wv(i,t,Kv(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};fg(i,e.style,e),o.style={...i,...o.style}}return o}const dO=["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 Vl(e){return typeof e!="string"||e.includes("-")?!1:!!(dO.indexOf(e)>-1||/[A-Z]/u.test(e))}function fO(e,t,n,{latestValues:r},o,i=!1,l){const c=(l??Vl(e)?cO:uO)(t,r,o,e),u=oO(t,typeof e=="string",i),s=e!==_.Fragment?{...u,...c,ref:n}:{},{children:a}=t,d=_.useMemo(()=>Pe(a)?a.get():a,[a]);return _.createElement(e,{...s,children:d})}function pO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:hO(n,r,o,e),renderState:t()}}function hO(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=No(i[f]);let{initial:l,animate:c}=e;const u=Ii(e),s=Nv(e);t&&s&&!u&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let a=n?n.initial===!1:!1;a=a||l===!1;const d=a?c:l;if(d&&typeof d!="boolean"&&!Li(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=Ol(e,f[p]);if(m){const{transitionEnd:h,transition:v,...y}=m;for(const b in y){let x=y[b];if(Array.isArray(x)){const S=a?x.length-1:0;x=x[S]}x!==null&&(o[b]=x)}for(const b in h)o[b]=h[b]}}}return o}const hg=e=>(t,n)=>{const r=_.useContext(Ni),o=_.useContext(Di),i=()=>pO(e,t,r,o);return n?i():ul(i)},mO=hg({scrapeMotionValuesFromProps:Il,createRenderState:Fl}),vO=hg({scrapeMotionValuesFromProps:Yv,createRenderState:pg}),gO=Symbol.for("motionComponentSymbol");function yO(e,t,n){const r=_.useRef(n);_.useInsertionEffect(()=>{r.current=n});const o=_.useRef(null);return _.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const c=r.current;if(typeof c=="function")if(i){const u=c(i);typeof u=="function"&&(o.current=u)}else o.current?(o.current(),o.current=null):c(i);else c&&(c.current=i)},[t])}const mg=_.createContext({});function Yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bO(e,t,n,r,o,i){var l,c;const{visualElement:u}=_.useContext(Ni),s=_.useContext(ug),a=_.useContext(Di),d=_.useContext(Nl).reducedMotion,f=_.useRef(null);r=r||s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:u,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:d,isSVG:i}));const p=f.current,m=_.useContext(mg);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&wO(f.current,n,o,m);const h=_.useRef(!1);_.useInsertionEffect(()=>{p&&h.current&&p.update(n,a)});const v=n[Ev],y=_.useRef(!!v&&!((l=window.MotionHandoffIsComplete)!=null&&l.call(window,v))&&((c=window.MotionHasOptimisedAnimation)==null?void 0:c.call(window,v)));return Vm(()=>{p&&(h.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),y.current&&p.animationState&&p.animationState.animateChanges())}),_.useEffect(()=>{p&&(!y.current&&p.animationState&&p.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var b;(b=window.MotionHandoffMarkAsComplete)==null||b.call(window,v)}),y.current=!1),p.enteringChildren=void 0)}),p}function wO(e,t,n,r){const{layoutId:o,layout:i,drag:l,dragConstraints:c,layoutScroll:u,layoutRoot:s,layoutCrossfade:a}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vg(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!l||c&&Yn(c),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:a,layoutScroll:u,layoutRoot:s})}function vg(e){if(e)return e.options.allowProjection!==!1?e.projection:vg(e.parent)}function va(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&tO(r);const i=n?n==="svg":Vl(e),l=i?vO:mO;function c(s,a){let d;const f={..._.useContext(Nl),...s,layoutId:xO(s)},{isStatic:p}=f,m=aO(s),h=l(s,p);if(!p&&Fm){EO(f,r);const v=SO(f);d=v.MeasureLayout,m.visualElement=bO(e,h,f,o,v.ProjectionNode,i)}return w.jsxs(Ni.Provider,{value:m,children:[d&&m.visualElement?w.jsx(d,{visualElement:m.visualElement,...f}):null,fO(e,s,yO(h,m.visualElement,a),h,p,t,i)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=_.forwardRef(c);return u[gO]=e,u}function xO({layoutId:e}){const t=_.useContext(ll).id;return t&&e!==void 0?t+"-"+e:e}function EO(e,t){const n=_.useContext(ug).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?On(!1,r,"lazy-strict-mode"):mt(!1,r,"lazy-strict-mode")}}function SO(e){const t=cg(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function CO(e,t){if(typeof Proxy>"u")return va;const n=new Map,r=(i,l)=>va(i,l,e,t),o=(i,l)=>(process.env.NODE_ENV!=="production"&&hl(!1,"motion() is deprecated. Use motion.create() instead."),r(i,l));return new Proxy(o,{get:(i,l)=>l==="create"?r:(n.has(l)||n.set(l,va(l,void 0,e,t)),n.get(l))})}const _O=(e,t)=>t.isSVG??Vl(e)?new nR(t):new qP(t,{allowProjection:e!==_.Fragment});class PO extends Lt{constructor(t){super(t),t.animationState||(t.animationState=sR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Li(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let RO=0;class OO extends Lt{constructor(){super(...arguments),this.id=RO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const TO={animation:{Feature:PO},exit:{Feature:OO}};function _r(e){return{point:{x:e.pageX,y:e.pageY}}}const jO=e=>t=>Al(t)&&e(t,_r(t));function Qn(e,t,n,r){return lr(e,t,jO(n),r)}const gg=({current:e})=>e?e.ownerDocument.defaultView:null,Nc=(e,t)=>Math.abs(e-t);function MO(e,t){const n=Nc(e.x,t.x),r=Nc(e.y,t.y);return Math.sqrt(n**2+r**2)}const Fc=new Set(["auto","scroll"]);class yg{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ya(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=MO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:v}=p,{timestamp:y}=_e;this.history.push({...v,timestamp:y});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=ga(m,this.transformPagePoint),me.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=ya(p.type==="pointercancel"?this.lastMoveEventInfo:ga(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(p,b),v&&v(p,b)},!Al(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const u=_r(t),s=ga(u,this.transformPagePoint),{point:a}=s,{timestamp:d}=_e;this.history=[{...a,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ya(s,this.history)),this.removeListeners=Er(Qn(this.contextWindow,"pointermove",this.handlePointerMove),Qn(this.contextWindow,"pointerup",this.handlePointerUp),Qn(this.contextWindow,"pointercancel",this.handlePointerUp)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Fc.has(r.overflowX)||Fc.has(r.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),me.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ot(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function Vc(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ya({point:e},t){return{point:e,delta:Vc(e,bg(t)),offset:Vc(e,AO(t)),velocity:kO(t,.1)}}function AO(e){return e[0]}function bg(e){return e[e.length-1]}function kO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=bg(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ot(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const l={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function DO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function $c(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LO(e,{top:t,left:n,bottom:r,right:o}){return{x:$c(e.x,n,o),y:$c(e.y,t,r)}}function Bc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function IO(e,t){return{x:Bc(e.x,t.x),y:Bc(e.y,t.y)}}function NO(e,t){let n=.5;const r=Me(e),o=Me(t);return o>r?n=or(t.min,t.max-r,e.min):r>o&&(n=or(e.min,e.max-o,t.min)),st(0,1,n)}function FO(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const ms=.35;function VO(e=ms){return e===!1?e=0:e===!0&&(e=ms),{x:zc(e,"left","right"),y:zc(e,"top","bottom")}}function zc(e,t,n){return{min:Uc(e,t),max:Uc(e,n)}}function Uc(e,t){return typeof e=="number"?e:e[t]||0}const $O=new WeakMap;class BO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Ce(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(_r(d).point)):this.pauseAnimation()},l=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RP(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(y=>{let b=this.getAxisMotionValue(y).get()||0;if(it.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const S=x.layout.layoutBox[y];S&&(b=Me(S)*(parseFloat(b)/100))}}this.originPoint[y]=b}),h&&me.postRender(()=>h(d,f)),ls(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:h,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=zO(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),v&&v(d,f)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>ze(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new yg(t,{onSessionStart:i,onStart:l,onMove:c,onSessionEnd:u,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:r,contextWindow:gg(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&me.postRender(()=>c(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Wr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=DO(l,this.constraints[t],this.elastic[t])),i.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)==null?void 0:t.layout,i=this.constraints;n&&Yn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=LO(o.layoutBox,n):this.constraints=!1,this.elastic=VO(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ze(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=FO(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Yn(t))return!1;const r=t.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=HP(r,o.root,this.visualElement.getTransformPagePoint());let l=IO(o.layout.layoutBox,i);if(n){const c=n(BP(l));this.hasMutatedConstraints=!!c,c&&(l=$v(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),u=this.constraints||{},s=ze(a=>{if(!Wr(a,n,this.currentDirection))return;let d=u&&u[a]||{};l&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[a]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(a,m)});return Promise.all(s).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ls(this.visualElement,t),r.start(Rl(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps();return r[n]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!Wr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:c}=o.layout.layoutBox[n],u=i.get()||0;i.set(t[n]-ye(l,c,.5)+u)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ze(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const u=c.get();o[l]=NO({min:u,max:u},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(l=>{if(!Wr(l,t,null))return;const c=this.getAxisMotionValue(l),{min:u,max:s}=this.constraints[l];c.set(ye(u,s,o[l]))})}addListeners(){if(!this.visualElement.current)return;$O.set(this.visualElement,this);const t=this.visualElement.current,n=Qn(t,"pointerdown",u=>{const{drag:s,dragListener:a=!0}=this.getProps();s&&a&&!Dv(u.target)&&this.start(u)}),r=()=>{const{dragConstraints:u}=this.getProps();Yn(u)&&u.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),me.read(r);const l=lr(window,"resize",()=>this.scalePositionWithinConstraints()),c=o.addEventListener("didUpdate",(({delta:u,hasLayoutChanged:s})=>{this.isDragging&&s&&(ze(a=>{const d=this.getAxisMotionValue(a);d&&(this.originPoint[a]+=u[a].translate,d.set(d.get()+u[a].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),c&&c()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:l=ms,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:l,dragMomentum:c}}}function Wr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function zO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class UO extends Lt{constructor(t){super(t),this.removeGroupControls=Ge,this.removeListeners=Ge,this.controls=new BO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ge}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const Hc=e=>(t,n)=>{e&&me.postRender(()=>e(t,n))};class HO extends Lt{constructor(){super(...arguments),this.removePointerDownListener=Ge}onPointerDown(t){this.session=new yg(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gg(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hc(t),onStart:Hc(n),onMove:r,onEnd:(i,l)=>{delete this.session,o&&me.postRender(()=>o(i,l))}}}mount(){this.removePointerDownListener=Qn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ba=!1;class GO extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),ba&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Fo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:l}=r;return l&&(l.isPresent=i,ba=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?l.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?l.promote():l.relegate()||me.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ml.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ba=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function wg(e){const[t,n]=lg(),r=_.useContext(ll);return w.jsx(GO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(mg),isPresent:t,safeToRemove:n})}const WO={pan:{Feature:HO},drag:{Feature:UO,ProjectionNode:sg,MeasureLayout:wg}};function Gc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&me.postRender(()=>i(t,_r(t)))}class XO extends Lt{mount(){const{current:t}=this.node;t&&(this.unmount=OP(t,(n,r)=>(Gc(this.node,r,"Start"),o=>Gc(this.node,o,"End"))))}unmount(){}}class KO extends Lt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Er(lr(this.node.current,"focus",()=>this.onFocus()),lr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&me.postRender(()=>i(t,_r(t)))}class YO extends Lt{mount(){const{current:t}=this.node;t&&(this.unmount=MP(t,(n,r)=>(Wc(this.node,r,"Start"),(o,{success:i})=>Wc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const vs=new WeakMap,wa=new WeakMap,qO=e=>{const t=vs.get(e.target);t&&t(e)},ZO=e=>{e.forEach(qO)};function QO({root:e,...t}){const n=e||document;wa.has(n)||wa.set(n,{});const r=wa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(ZO,{root:e,...t})),r[o]}function JO(e,t,n){const r=QO(t);return vs.set(e,n),r.observe(e),()=>{vs.delete(e),r.unobserve(e)}}const eT={some:0,all:1};class tT extends Lt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:eT[o]},c=u=>{const{isIntersecting:s}=u;if(this.isInView===s||(this.isInView=s,i&&!s&&this.hasEnteredView))return;s&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",s);const{onViewportEnter:a,onViewportLeave:d}=this.node.getProps(),f=s?a:d;f&&f(u)};return JO(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nT(t,n))&&this.startObserver()}unmount(){}}function nT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rT={inView:{Feature:tT},tap:{Feature:YO},focus:{Feature:KO},hover:{Feature:XO}},oT={layout:{ProjectionNode:sg,MeasureLayout:wg}},iT={...TO,...rT,...WO,...oT},Pr=CO(iT,_O);_.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},i)=>w.jsx(Ry,{...o,className:he("overflow-hidden bg-white",t),ref:i,asChild:!0,children:w.jsxs(Pr.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&w.jsx("hr",{className:he("bg-primary-blue h-0.5 border-0",n)}),w.jsx("div",{className:"px-5 py-[15px]",children:e})]})}));const aT={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},sT=({size:e="md",src:t,alt:n="avatar",icon:r=w.jsx(G0,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:i="text-white",className:l="",onClick:c,style:u})=>w.jsxs(Z1,{className:he("inline-flex shrink-0 overflow-hidden rounded-full",aT[e],l),onClick:c,style:u,children:[t&&w.jsx(Q1,{src:t,alt:n,className:"h-full w-full object-cover"}),w.jsx(J1,{delayMs:0,className:he("flex h-full w-full items-center justify-center rounded-full",i,o),children:r})]});he("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),he("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),he("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),he("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),he("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10");var Xc={exports:{}};/*!
|
|
104
|
+
`),()=>{C.contains(E)&&C.removeChild(E)}},[t]),w.jsx(ZR,{isPresent:t,childRef:u,sizeRef:c,children:g.cloneElement(e,{ref:d})})}const JR=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:l,anchorX:u,anchorY:c,root:s})=>{const a=cl(eO),d=_.useId();let f=!0,p=_.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:m=>{a.set(m,!0);for(const h of a.values())if(!h)return;r&&r()},register:m=>(a.set(m,!1),()=>a.delete(m))}),[n,a,r]);return i&&f&&(p={...p}),_.useMemo(()=>{a.forEach((m,h)=>a.set(h,!1))},[n]),g.useEffect(()=>{!n&&!a.size&&r&&r()},[n]),l==="popLayout"&&(e=w.jsx(QR,{isPresent:n,anchorX:u,anchorY:c,root:s,children:e})),w.jsx(ki.Provider,{value:p,children:e})};function eO(){return new Map}function a0(e=!0){const t=_.useContext(ki);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=_.useId();_.useEffect(()=>{if(e)return o(i)},[e]);const l=_.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,l]:[!0]}const Hr=e=>e.key||"";function Dc(e){const t=[];return _.Children.forEach(e,n=>{_.isValidElement(n)&&t.push(n)}),t}const tO=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:l=!1,anchorX:u="left",anchorY:c="top",root:s})=>{const[a,d]=a0(l),f=_.useMemo(()=>Dc(e),[e]),p=l&&!a?[]:f.map(Hr),m=_.useRef(!0),h=_.useRef(f),v=cl(()=>new Map),y=_.useRef(new Set),[b,x]=_.useState(f),[E,C]=_.useState(f);Vm(()=>{m.current=!1,h.current=f;for(let j=0;j<E.length;j++){const R=Hr(E[j]);p.includes(R)?(v.delete(R),y.current.delete(R)):v.get(R)!==!0&&v.set(R,!1)}},[E,p.length,p.join("-")]);const T=[];if(f!==b){let j=[...f];for(let R=0;R<E.length;R++){const P=E[R],k=Hr(P);p.includes(k)||(j.splice(R,0,P),T.push(P))}return i==="wait"&&T.length&&(j=T),C(Dc(j)),x(f),null}process.env.NODE_ENV!=="production"&&i==="wait"&&E.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);const{forceRender:A}=_.useContext(ul);return w.jsx(w.Fragment,{children:E.map(j=>{const R=Hr(j),P=l&&!a?!1:f===E||p.includes(R),k=()=>{if(y.current.has(R))return;if(y.current.add(R),v.has(R))v.set(R,!0);else return;let O=!0;v.forEach($=>{$||(O=!1)}),O&&(A==null||A(),C(h.current),l&&(d==null||d()),r&&r())};return w.jsx(JR,{isPresent:P,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:s,onExitComplete:P?void 0:k,anchorX:u,anchorY:c,children:j},R)})})},s0=_.createContext({strict:!1}),Nc={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 Ic=!1;function nO(){if(Ic)return;const e={};for(const t in Nc)e[t]={isEnabled:n=>Nc[t].some(r=>!!n[r])};Iv(e),Ic=!0}function l0(){return nO(),BP()}function rO(e){const t=l0();for(const n in e)t[n]={...t[n],...e[n]};Iv(t)}const oO=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","ignoreStrict","viewport"]);function ni(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||oO.has(e)}let u0=e=>!ni(e);function iO(e){typeof e=="function"&&(u0=t=>t.startsWith("on")?!ni(t):e(t))}try{iO(require("@emotion/is-prop-valid").default)}catch{}function aO(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(u0(o)||n===!0&&ni(o)||!t&&!ni(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Ii=_.createContext({});function sO(e,t){if(Ni(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ar(n)?n:void 0,animate:ar(r)?r:void 0}}return e.inherit!==!1?t:{}}function lO(e){const{initial:t,animate:n}=sO(e,_.useContext(Ii));return _.useMemo(()=>({initial:t,animate:n}),[Lc(t),Lc(n)])}function Lc(e){return Array.isArray(e)?e.join(" "):e}const Vl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function c0(e,t,n){for(const r in t)!Pe(t[r])&&!Uv(r,n)&&(e[r]=t[r])}function uO({transformTemplate:e},t){return _.useMemo(()=>{const n=Vl();return Il(n,t,e),Object.assign({},n.vars,n.style)},[t])}function cO(e,t){const n=e.style||{},r={};return c0(r,n,e),Object.assign(r,uO(e,t)),r}function dO(e,t){const n={},r=cO(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const d0=()=>({...Vl(),attrs:{}});function fO(e,t,n,r){const o=_.useMemo(()=>{const i=d0();return Hv(i,t,Gv(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};c0(i,e.style,e),o.style={...i,...o.style}}return o}const pO=["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 $l(e){return typeof e!="string"||e.includes("-")?!1:!!(pO.indexOf(e)>-1||/[A-Z]/u.test(e))}function hO(e,t,n,{latestValues:r},o,i=!1,l){const u=(l??$l(e)?fO:dO)(t,r,o,e),c=aO(t,typeof e=="string",i),s=e!==_.Fragment?{...c,...u,ref:n}:{},{children:a}=t,d=_.useMemo(()=>Pe(a)?a.get():a,[a]);return _.createElement(e,{...s,children:d})}function mO({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:vO(n,r,o,e),renderState:t()}}function vO(e,t,n,r){const o={},i=r(e,{});for(const f in i)o[f]=Io(i[f]);let{initial:l,animate:u}=e;const c=Ni(e),s=Nv(e);t&&s&&!c&&e.inherit!==!1&&(l===void 0&&(l=t.initial),u===void 0&&(u=t.animate));let a=n?n.initial===!1:!1;a=a||l===!1;const d=a?u:l;if(d&&typeof d!="boolean"&&!Di(d)){const f=Array.isArray(d)?d:[d];for(let p=0;p<f.length;p++){const m=Tl(e,f[p]);if(m){const{transitionEnd:h,transition:v,...y}=m;for(const b in y){let x=y[b];if(Array.isArray(x)){const E=a?x.length-1:0;x=x[E]}x!==null&&(o[b]=x)}for(const b in h)o[b]=h[b]}}}return o}const f0=e=>(t,n)=>{const r=_.useContext(Ii),o=_.useContext(ki),i=()=>mO(e,t,r,o);return n?i():cl(i)},gO=f0({scrapeMotionValuesFromProps:Ll,createRenderState:Vl}),yO=f0({scrapeMotionValuesFromProps:Xv,createRenderState:d0}),bO=Symbol.for("motionComponentSymbol");function wO(e,t,n){const r=_.useRef(n);_.useInsertionEffect(()=>{r.current=n});const o=_.useRef(null);return _.useCallback(i=>{var l;i&&((l=e.onMount)==null||l.call(e,i)),t&&(i?t.mount(i):t.unmount());const u=r.current;if(typeof u=="function")if(i){const c=u(i);typeof c=="function"&&(o.current=c)}else o.current?(o.current(),o.current=null):u(i);else u&&(u.current=i)},[t])}const p0=_.createContext({});function Yn(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function xO(e,t,n,r,o,i){var l,u;const{visualElement:c}=_.useContext(Ii),s=_.useContext(s0),a=_.useContext(ki),d=_.useContext(Fl),f=d.reducedMotion,p=d.skipAnimations,m=_.useRef(null),h=_.useRef(!1);r=r||s.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:c,props:n,presenceContext:a,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:f,skipAnimations:p,isSVG:i}),h.current&&m.current&&(m.current.manuallyAnimateOnMount=!0));const v=m.current,y=_.useContext(p0);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&EO(m.current,n,o,y);const b=_.useRef(!1);_.useInsertionEffect(()=>{v&&b.current&&v.update(n,a)});const x=n[Ev],E=_.useRef(!!x&&!((l=window.MotionHandoffIsComplete)!=null&&l.call(window,x))&&((u=window.MotionHasOptimisedAnimation)==null?void 0:u.call(window,x)));return Vm(()=>{h.current=!0,v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),E.current&&v.animationState&&v.animationState.animateChanges())}),_.useEffect(()=>{v&&(!E.current&&v.animationState&&v.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var C;(C=window.MotionHandoffMarkAsComplete)==null||C.call(window,x)}),E.current=!1),v.enteringChildren=void 0)}),v}function EO(e,t,n,r){const{layoutId:o,layout:i,drag:l,dragConstraints:u,layoutScroll:c,layoutRoot:s,layoutCrossfade:a}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:h0(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!l||u&&Yn(u),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:a,layoutScroll:c,layoutRoot:s})}function h0(e){if(e)return e.options.allowProjection!==!1?e.projection:h0(e.parent)}function ma(e,{forwardMotionProps:t=!1,type:n}={},r,o){r&&rO(r);const i=n?n==="svg":$l(e),l=i?yO:gO;function u(s,a){let d;const f={..._.useContext(Fl),...s,layoutId:CO(s)},{isStatic:p}=f,m=lO(s),h=l(s,p);if(!p&&Fm){SO(f,r);const v=_O(f);d=v.MeasureLayout,m.visualElement=xO(e,h,f,o,v.ProjectionNode,i)}return w.jsxs(Ii.Provider,{value:m,children:[d&&m.visualElement?w.jsx(d,{visualElement:m.visualElement,...f}):null,hO(e,s,wO(h,m.visualElement,a),h,p,t,i)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=_.forwardRef(u);return c[bO]=e,c}function CO({layoutId:e}){const t=_.useContext(ul).id;return t&&e!==void 0?t+"-"+e:e}function SO(e,t){const n=_.useContext(s0).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?On(!1,r,"lazy-strict-mode"):mt(!1,r,"lazy-strict-mode")}}function _O(e){const t=l0(),{drag:n,layout:r}=t;if(!n&&!r)return{};const o={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function PO(e,t){if(typeof Proxy>"u")return ma;const n=new Map,r=(i,l)=>ma(i,l,e,t),o=(i,l)=>(process.env.NODE_ENV!=="production"&&ml(!1,"motion() is deprecated. Use motion.create() instead."),r(i,l));return new Proxy(o,{get:(i,l)=>l==="create"?r:(n.has(l)||n.set(l,ma(l,void 0,e,t)),n.get(l))})}const RO=(e,t)=>t.isSVG??$l(e)?new oR(t):new QP(t,{allowProjection:e!==_.Fragment});class OO extends Nt{constructor(t){super(t),t.animationState||(t.animationState=uR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Di(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let TO=0;class jO extends Nt{constructor(){super(...arguments),this.id=TO++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const MO={animation:{Feature:OO},exit:{Feature:jO}};function Sr(e){return{point:{x:e.pageX,y:e.pageY}}}const AO=e=>t=>kl(t)&&e(t,Sr(t));function Qn(e,t,n,r){return sr(e,t,AO(n),r)}const m0=({current:e})=>e?e.ownerDocument.defaultView:null,Fc=(e,t)=>Math.abs(e-t);function kO(e,t){const n=Fc(e.x,t.x),r=Fc(e.y,t.y);return Math.sqrt(n**2+r**2)}const Vc=new Set(["auto","scroll"]);class v0{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3,element:u}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=p=>{this.handleScroll(p.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const p=ga(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,h=kO(p.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!h)return;const{point:v}=p,{timestamp:y}=_e;this.history.push({...v,timestamp:y});const{onStart:b,onMove:x}=this.handlers;m||(b&&b(this.lastMoveEvent,p),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,p)},this.handlePointerMove=(p,m)=>{this.lastMoveEvent=p,this.lastMoveEventInfo=va(m,this.transformPagePoint),de.update(this.updatePoint,!0)},this.handlePointerUp=(p,m)=>{this.end();const{onEnd:h,onSessionEnd:v,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=ga(p.type==="pointercancel"?this.lastMoveEventInfo:va(m,this.transformPagePoint),this.history);this.startEvent&&h&&h(p,b),v&&v(p,b)},!kl(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=o||window;const c=Sr(t),s=va(c,this.transformPagePoint),{point:a}=s,{timestamp:d}=_e;this.history=[{...a,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,ga(s,this.history)),this.removeListeners=xr(Qn(this.contextWindow,"pointermove",this.handlePointerMove),Qn(this.contextWindow,"pointerup",this.handlePointerUp),Qn(this.contextWindow,"pointercancel",this.handlePointerUp)),u&&this.startScrollTracking(u)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Vc.has(r.overflowX)||Vc.has(r.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,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},i={x:o.x-n.x,y:o.y-n.y};i.x===0&&i.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(t,o),de.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Ot(this.updatePoint)}}function va(e,t){return t?{point:t(e.point)}:e}function $c(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ga({point:e},t){return{point:e,delta:$c(e,g0(t)),offset:$c(e,DO(t)),velocity:NO(t,.1)}}function DO(e){return e[0]}function g0(e){return e[e.length-1]}function NO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=g0(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ot(t)));)n--;if(!r)return{x:0,y:0};const i=Ue(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const l={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function IO(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ye(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ye(n,e,r.max):Math.min(e,n)),e}function Bc(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function LO(e,{top:t,left:n,bottom:r,right:o}){return{x:Bc(e.x,n,o),y:Bc(e.y,t,r)}}function zc(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function FO(e,t){return{x:zc(e.x,t.x),y:zc(e.y,t.y)}}function VO(e,t){let n=.5;const r=Me(e),o=Me(t);return o>r?n=rr(t.min,t.max-r,e.min):r>o&&(n=rr(e.min,e.max-o,t.min)),st(0,1,n)}function $O(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const vs=.35;function BO(e=vs){return e===!1?e=0:e===!0&&(e=vs),{x:Uc(e,"left","right"),y:Uc(e,"top","bottom")}}function Uc(e,t,n){return{min:Hc(e,t),max:Hc(e,n)}}function Hc(e,t){return typeof e=="number"?e:e[t]||0}const zO=new WeakMap;class UO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Se(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=d=>{n?(this.stopAnimation(),this.snapToCursor(Sr(d).point)):this.pauseAnimation()},l=(d,f)=>{this.stopAnimation();const{drag:p,dragPropagation:m,onDragStart:h}=this.getProps();if(p&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=PP(p),!this.openDragLock))return;this.latestPointerEvent=d,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ze(y=>{let b=this.getAxisMotionValue(y).get()||0;if(it.test(b)){const{projection:x}=this.visualElement;if(x&&x.layout){const E=x.layout.layoutBox[y];E&&(b=Me(E)*(parseFloat(b)/100))}}this.originPoint[y]=b}),h&&de.update(()=>h(d,f),!1,!0),ls(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},u=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f;const{dragPropagation:p,dragDirectionLock:m,onDirectionLock:h,onDrag:v}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:y}=f;if(m&&this.currentDirection===null){this.currentDirection=HO(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",f.point,y),this.updateAxis("y",f.point,y),this.visualElement.render(),v&&de.update(()=>v(d,f),!1,!0)},c=(d,f)=>{this.latestPointerEvent=d,this.latestPanInfo=f,this.stop(d,f),this.latestPointerEvent=null,this.latestPanInfo=null},s=()=>ze(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)==null?void 0:f.play())}),{dragSnapToOrigin:a}=this.getProps();this.panSession=new v0(t,{onSessionStart:i,onStart:l,onMove:u,onSessionEnd:c,resumeAnimation:s},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:r,contextWindow:m0(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:l}=o;this.startAnimation(l);const{onDragEnd:u}=this.getProps();u&&de.postRender(()=>u(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Wr(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=IO(l,this.constraints[t],this.elastic[t])),i.set(l)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)==null?void 0:t.layout,i=this.constraints;n&&Yn(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&o?this.constraints=LO(o.layoutBox,n):this.constraints=!1,this.elastic=BO(r),i!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ze(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=$O(o.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Yn(t))return!1;const r=t.current;mt(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=GP(r,o.root,this.visualElement.getTransformPagePoint());let l=FO(o.layout.layoutBox,i);if(n){const u=n(UP(l));this.hasMutatedConstraints=!!u,u&&(l=Fv(u))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},s=ze(a=>{if(!Wr(a,n,this.currentDirection))return;let d=c&&c[a]||{};l&&(d={min:0,max:0});const f=o?200:1e6,p=o?40:1e7,m={type:"inertia",velocity:r?t[a]:0,bounceStiffness:f,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(a,m)});return Promise.all(s).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ls(this.visualElement,t),r.start(Ol(t,r,0,n,this.visualElement,!1))}stopAnimation(){ze(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){ze(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps();return r[n]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){ze(n=>{const{drag:r}=this.getProps();if(!Wr(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:l,max:u}=o.layout.layoutBox[n],c=i.get()||0;i.set(t[n]-ye(l,u,.5)+c)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Yn(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ze(l=>{const u=this.getAxisMotionValue(l);if(u&&this.constraints!==!1){const c=u.get();o[l]=VO({min:c,max:c},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),ze(l=>{if(!Wr(l,t,null))return;const u=this.getAxisMotionValue(l),{min:c,max:s}=this.constraints[l];u.set(ye(c,s,o[l]))})}addListeners(){if(!this.visualElement.current)return;zO.set(this.visualElement,this);const t=this.visualElement.current,n=Qn(t,"pointerdown",c=>{const{drag:s,dragListener:a=!0}=this.getProps(),d=c.target,f=d!==t&&MP(d);s&&a&&!f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();Yn(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),de.read(r);const l=sr(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:s})=>{this.isDragging&&s&&(ze(a=>{const d=this.getAxisMotionValue(a);d&&(this.originPoint[a]+=c[a].translate,d.set(d.get()+c[a].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:l=vs,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:l,dragMomentum:u}}}function Wr(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function HO(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class WO extends Nt{constructor(t){super(t),this.removeGroupControls=We,this.removeListeners=We,this.controls=new UO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||We}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const ya=e=>(t,n)=>{e&&de.update(()=>e(t,n),!1,!0)};class GO extends Nt{constructor(){super(...arguments),this.removePointerDownListener=We}onPointerDown(t){this.session=new v0(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m0(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:ya(t),onStart:ya(n),onMove:ya(r),onEnd:(i,l)=>{delete this.session,o&&de.postRender(()=>o(i,l))}}}mount(){this.removePointerDownListener=Qn(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let ba=!1;class XO extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),ba&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Lo.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:l}=r;return l&&(l.isPresent=i,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),ba=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?l.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?l.promote():l.relegate()||de.postRender(()=>{const u=l.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Al.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;ba=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function y0(e){const[t,n]=a0(),r=_.useContext(ul);return w.jsx(XO,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(p0),isPresent:t,safeToRemove:n})}const KO={pan:{Feature:GO},drag:{Feature:WO,ProjectionNode:i0,MeasureLayout:y0}};function Wc(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&de.postRender(()=>i(t,Sr(t)))}class YO extends Nt{mount(){const{current:t}=this.node;t&&(this.unmount=RP(t,(n,r)=>(Wc(this.node,r,"Start"),o=>Wc(this.node,o,"End"))))}unmount(){}}class qO extends Nt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=xr(sr(this.node.current,"focus",()=>this.onFocus()),sr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Gc(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&de.postRender(()=>i(t,Sr(t)))}class ZO extends Nt{mount(){const{current:t}=this.node;t&&(this.unmount=kP(t,(n,r)=>(Gc(this.node,r,"Start"),(o,{success:i})=>Gc(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const gs=new WeakMap,wa=new WeakMap,QO=e=>{const t=gs.get(e.target);t&&t(e)},JO=e=>{e.forEach(QO)};function eT({root:e,...t}){const n=e||document;wa.has(n)||wa.set(n,{});const r=wa.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(JO,{root:e,...t})),r[o]}function tT(e,t,n){const r=eT(t);return gs.set(e,n),r.observe(e),()=>{gs.delete(e),r.unobserve(e)}}const nT={some:0,all:1};class rT extends Nt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:nT[o]},u=c=>{const{isIntersecting:s}=c;if(this.isInView===s||(this.isInView=s,i&&!s&&this.hasEnteredView))return;s&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",s);const{onViewportEnter:a,onViewportLeave:d}=this.node.getProps(),f=s?a:d;f&&f(c)};return tT(this.node.current,l,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(oT(t,n))&&this.startObserver()}unmount(){}}function oT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const iT={inView:{Feature:rT},tap:{Feature:ZO},focus:{Feature:qO},hover:{Feature:YO}},aT={layout:{ProjectionNode:i0,MeasureLayout:y0}},sT={...MO,...iT,...KO,...aT},_r=PO(sT,RO);_.forwardRef(({children:e,className:t,dividerClassName:n,showDivider:r=!0,...o},i)=>w.jsx(_y,{...o,className:me("overflow-hidden bg-white",t),ref:i,asChild:!0,children:w.jsxs(_r.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:[.04,.62,.23,.98]},children:[r&&w.jsx("hr",{className:me("bg-primary-blue h-0.5 border-0",n)}),w.jsx("div",{className:"px-5 py-[15px]",children:e})]})}));const lT={sm:"size-8 text-[1.3rem]",md:"size-10 text-[1.4rem]",lg:"size-12 text-[2.1rem]",xl:"size-14 text-[2.5rem]"},uT=({size:e="md",src:t,alt:n="avatar",icon:r=w.jsx(zg,{}),bgClassName:o="bg-[#A1ADC0]",colorClassName:i="text-white",className:l="",onClick:u,style:c})=>w.jsxs(Y1,{className:me("inline-flex shrink-0 overflow-hidden rounded-full",lT[e],l),onClick:u,style:c,children:[t&&w.jsx(q1,{src:t,alt:n,className:"h-full w-full object-cover"}),w.jsx(Z1,{delayMs:0,className:me("flex h-full w-full items-center justify-center rounded-full",i,o),children:r})]});me("bg-primary-blue border-primary-blue text-white","hover:bg-darks-blue-Macropay-30 hover:border-darks-blue-Macropay-30"),me("bg-primary-yellow border-primary-yellow text-primary-blue","hover:bg-shades-yellow-10 hover:border-shades-yellow-10"),me("bg-white text-primary-blue border-primary-blue","hover:border-darks-blue-Macropay-30 hover:text-darks-blue-Macropay-30"),me("bg-transparent text-primary-blue border-transparent shadow-none","hover:text-darks-blue-Macropay-30","disabled:bg-transparent disabled:border-transparent"),me("bg-primary-red border-primary-red text-white","hover:bg-shades-red-10 hover:border-shades-red-10");var Xc={exports:{}};/*!
|
|
105
105
|
Copyright (c) 2018 Jed Watson.
|
|
106
106
|
Licensed under the MIT License (MIT), see
|
|
107
107
|
http://jedwatson.github.io/classnames
|
|
108
|
-
*/var Kc;function lT(){return Kc||(Kc=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(i=o(i,r(c)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var c in i)t.call(i,c)&&i[c]&&(l=o(l,c));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Xc)),Xc.exports}var uT=lT();const Nn=K0(uT),cT={sm:"h-4 w-4",md:"h-6 w-6"},dT={sm:"h-3 w-3",md:"h-4 w-4"},fT={sm:"h-2 w-2",md:"h-4 w-4"},pT={sm:"text-sm",md:"text-base"},hT=g.forwardRef(({label:e,size:t="md",checked:n,indeterminate:r=!1,disabled:o=!1,onCheckedChange:i,className:l,...c},u)=>{const s=g.useId(),a=p=>{o||i==null||i(p===!0)},d=r?"indeterminate":n?"checked":"none",f={checked:w.jsx(H0,{className:Nn(dT[t],o?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:w.jsx(X0,{className:Nn(fT[t],o?"text-stone-300 fill-stone-300":"text-blue-800")})};return w.jsxs("div",{className:Nn("flex gap-2 items-start sm:items-center select-none",o?"pointer-events-none":"cursor-pointer",l),children:[w.jsx(hp,{id:s,ref:u,checked:n,"aria-checked":r?"mixed":n,disabled:o,onCheckedChange:a,className:Nn("flex justify-center items-center rounded-sm border relative transition-[background-color]",cT[t],{"bg-white border-gray-300 hover:border-blue-800":!n&&!o,"bg-blue-800 border-blue-800":n&&!r&&!o||r&&!o,"bg-neutral-100 border-stone-300":o}),...c,children:d!=="none"&&f[d]}),e&&w.jsx("label",{htmlFor:s,className:Nn(pT[t],o&&"text-gray-400","cursor-pointer"),children:e})]})});hT.displayName="Checkbox";const mT=({children:e,id:t,className:n=""})=>{const r=_.useRef(null),[o,i]=_.useState(!1);return _.useEffect(()=>{const l=document.getElementById(t)||document.createElement("div");return r.current=l,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),i(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?bs.createPortal(e,r.current):null};_.memo(mT);const vT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Wx,{className:he("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),gT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Xx,{children:w.jsx(Kx,{...n,className:he("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:w.jsx(Pr.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:w.jsx("div",{className:"p-1",children:e})})})})),yT=_.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},i)=>w.jsxs(qx,{className:he("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:i,...o,children:[w.jsxs("div",{className:"flex items-center gap-2",children:[n&&w.jsx("span",{className:"inline-flex shrink-0",children:n}),w.jsx("span",{children:e})]}),r&&w.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),bT=_.forwardRef(({className:e,...t},n)=>w.jsx(Zx,{className:he("my-1 h-px bg-gray-3",e),ref:n,...t})),wT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Yx,{className:he("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),xT=(e,t)=>{const n={separator:()=>w.jsx(bT,{className:t==null?void 0:t.separator},e.id),label:()=>w.jsx(wT,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>w.jsx(yT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},ET=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>w.jsxs(Gx,{children:[w.jsx(vT,{children:e}),w.jsx(gT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(i=>w.jsx("div",{children:xT(i,o)},i.id))})]});var xg=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(xg||{});const{align:ST,justify:CT,gap:_T}=xg,PT={horizontal:"flex-row",vertical:"flex-col"},RT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},ur=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:i=!1,style:l,className:c="",onClick:u,wrap:s,...a})=>w.jsx(Pr.div,{"aria-hidden":!0,className:he(`flex ${i?RT[o]:PT[o]}`,Hi(_T,r),Hi(CT,t),Hi(ST,n),{[c]:c,"flex-wrap":s}),onClick:u,style:l,children:e,...a}),OT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},TT=(e,t,n,r,o)=>{const i=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],l=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],c={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:OT[t],stateStyles:c,baseStyles:i,variantStyles:l}},jT=({onClick:e,disabled:t})=>w.jsx(Pr.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:w.jsx(W0,{})},"clear-button"),MT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:i,currency:l,currencyDisplay:c,locale:u,prefix:s="",suffix:a=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...i==="currency"&&{style:"currency",currency:l,currencyDisplay:c}},f=new Intl.NumberFormat(u,d).format(e);return`${s} ${f} ${a}`.trim()},AT=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),i=Number.parseFloat(o);return Number.isNaN(i)?null:i},kT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),DT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:i="decimal",currency:l="MXN",currencyDisplay:c="symbol",useGrouping:u=!0,minFractionDigits:s,maxFractionDigits:a,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:h,...v}=e,[y,b]=_.useState(Number((v==null?void 0:v.value)??null)),[x,S]=_.useState(""),[E,A]=_.useState(!1),j=_.useMemo(()=>({format:r,useGrouping:u,minFractionDigits:s,maxFractionDigits:a,mode:i,currency:l,currencyDisplay:c,locale:o,prefix:m,suffix:h}),[r,u,s,a,i,l,c,o,m,h]),O=_.useCallback(F=>MT({num:F,...j}),[j]),T=_.useCallback(F=>AT(F,m,h,p),[m,h,p]);_.useEffect(()=>{E||S(O(y))},[y,O,E]);const P=_.useCallback(F=>{const H=F.target.value;S(H);const B=T(H);kT(B,d,f)&&(b(B),t==null||t(B),n==null||n({originalEvent:F.nativeEvent,value:B}))},[T,d,f,t,n]),k=_.useCallback(F=>{var H;A(!0),y!=null&&S(y.toString()),(H=v.onFocus)==null||H.call(v,F)},[y,v]),R=_.useCallback(F=>{var H;A(!1),S(O(y)),(H=v.onBlur)==null||H.call(v,F)},[O,y,v]),$=_.useCallback(()=>{S(""),b(null),t==null||t(null)},[t]);return{displayValue:x,handleChange:P,handleFocus:k,handleBlur:R,handleClear:$,...v}},LT=_.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:i,leftIcon:l,clear:c=!0,disabled:u=!1,variant:s="default",className:a,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:h,...v}=DT(e),{baseStyles:y,variantStyles:b,sizeStyles:x,stateStyles:S}=TT(s,r,n,o,!!i),E=_.useMemo(()=>c&&d?w.jsx(jT,{disabled:u,onClick:h}):l?w.jsx("div",{className:he("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:l}):null,[c,d,l,u,h]);return w.jsxs("div",{className:he("relative",a),children:[i&&w.jsx("div",{className:he("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":u}),children:i}),w.jsx(Pr.input,{...v,ref:t,type:"text",value:d,disabled:u,onChange:f,onFocus:p,onBlur:m,className:he(...y,...b,x,S,a)}),w.jsx(JR,{children:E})]})});LT.displayName="InputNumber";const Yc=(e,t)=>`${e}-${t}`,Fi=_.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:i="base",weight:l="normal",...c},u)=>{if(!e)return null;const s=Yc("text",i),a=Yc("font",l),d=n?L0:t??"p";return w.jsx(d,{ref:u,className:he("text-grays-Macropay-10",s,a,r,{italic:o}),...c,children:e})});Fi.displayName="Typography";const IT=({children:e,as:t="p",className:n,...r})=>w.jsx(Fi,{as:t,className:n,...r,children:e}),NT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},FT={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},VT=({children:e,className:t="",level:n=1,...r})=>{const o=FT[n];return w.jsx(Fi,{as:o,weight:"bold",className:`${NT[n]} ${t}`,...r,children:e})},Rr=Fi;Rr.Text=IT;Rr.Title=VT;const{Title:aj,Text:sj}=Rr,$T=e=>{const t=_.createContext(void 0);return[({value:n,children:r})=>w.jsx(t.Provider,{value:n,children:r}),()=>{const n=_.useContext(t);if(n===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return n}]};$T("PopoverContext");var BT=Object.defineProperty,oi=Object.getOwnPropertySymbols,Eg=Object.prototype.hasOwnProperty,Sg=Object.prototype.propertyIsEnumerable,qc=(e,t,n)=>t in e?BT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gs=(e,t)=>{for(var n in t||(t={}))Eg.call(t,n)&&qc(e,n,t[n]);if(oi)for(var n of oi(t))Sg.call(t,n)&&qc(e,n,t[n]);return e},ys=(e,t)=>{var n={};for(var r in e)Eg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&oi)for(var r of oi(e))t.indexOf(r)<0&&Sg.call(e,r)&&(n[r]=e[r]);return n};/**
|
|
108
|
+
*/var Kc;function cT(){return Kc||(Kc=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(i=o(i,r(u)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var l="";for(var u in i)t.call(i,u)&&i[u]&&(l=o(l,u));return l}function o(i,l){return l?i?i+" "+l:i+l:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Xc)),Xc.exports}var dT=cT();const Ln=Gg(dT),fT={sm:"h-4 w-4",md:"h-6 w-6"},pT={sm:"h-3 w-3",md:"h-4 w-4"},hT={sm:"h-2 w-2",md:"h-4 w-4"},mT={sm:"text-sm",md:"text-base"},vT=g.forwardRef(({label:e,size:t="md",checked:n,indeterminate:r=!1,disabled:o=!1,onCheckedChange:i,className:l,...u},c)=>{const s=g.useId(),a=p=>{o||i==null||i(p===!0)},d=r?"indeterminate":n?"checked":"none",f={checked:w.jsx(Bg,{className:Ln(pT[t],o?"text-stone-300 fill-stone-300":"text-white")}),indeterminate:w.jsx(Hg,{className:Ln(hT[t],o?"text-stone-300 fill-stone-300":"text-blue-800")})};return w.jsxs("div",{className:Ln("flex gap-2 items-start sm:items-center select-none",o?"pointer-events-none":"cursor-pointer",l),children:[w.jsx(hp,{id:s,ref:c,checked:n,"aria-checked":r?"mixed":n,disabled:o,onCheckedChange:a,className:Ln("flex justify-center items-center rounded-sm border relative transition-[background-color]",fT[t],{"bg-white border-gray-300 hover:border-blue-800":!n&&!o,"bg-blue-800 border-blue-800":n&&!r&&!o||r&&!o,"bg-neutral-100 border-stone-300":o}),...u,children:d!=="none"&&f[d]}),e&&w.jsx("label",{htmlFor:s,className:Ln(mT[t],o&&"text-gray-400","cursor-pointer"),children:e})]})});vT.displayName="Checkbox";const gT=({children:e,id:t,className:n=""})=>{const r=_.useRef(null),[o,i]=_.useState(!1);return _.useEffect(()=>{const l=document.getElementById(t)||document.createElement("div");return r.current=l,r.current.id=t,n&&(r.current.className=n),document.body.appendChild(r.current),i(!0),()=>{r.current.parentElement&&r.current.parentElement.removeChild(r.current)}},[t]),o?ws.createPortal(e,r.current):null};_.memo(gT);const yT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Wx,{className:me("inline-flex items-center justify-center rounded px-4 py-2 text-sm font-medium","bg-white border border-gray-3 text-gray-12","hover:bg-gray-1 focus:outline-none focus:ring-2 focus:ring-primary-blue focus:ring-offset-2","disabled:cursor-not-allowed disabled:opacity-50","transition-colors",t),ref:r,...n,children:e})),bT=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Gx,{children:w.jsx(Xx,{...n,className:me("min-w-[220px] rounded-lg bg-white shadow-(--box-shadow-accordion) border border-gray-2","overflow-hidden",t),ref:r,asChild:!0,children:w.jsx(_r.div,{initial:{opacity:0,scale:.95,y:-10},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.95,y:-10},transition:{duration:.2,ease:[.04,.62,.23,.98]},children:w.jsx("div",{className:"p-1",children:e})})})})),wT=_.forwardRef(({children:e,className:t,icon:n,shortcut:r,...o},i)=>w.jsxs(Yx,{className:me("group relative flex cursor-pointer select-none items-center justify-between rounded px-3 py-2 text-sm outline-none","text-gray-12 hover:bg-blue-1 hover:text-blue-6","focus:bg-blue-1 focus:text-blue-6","data-disabled:pointer-events-none data-disabled:opacity-50","transition-colors",t),ref:i,...o,children:[w.jsxs("div",{className:"flex items-center gap-2",children:[n&&w.jsx("span",{className:"inline-flex shrink-0",children:n}),w.jsx("span",{children:e})]}),r&&w.jsx("span",{className:"ml-auto pl-4 text-xs text-gray-6 group-hover:text-blue-6",children:r})]})),xT=_.forwardRef(({className:e,...t},n)=>w.jsx(qx,{className:me("my-1 h-px bg-gray-3",e),ref:n,...t})),ET=_.forwardRef(({children:e,className:t,...n},r)=>w.jsx(Kx,{className:me("px-3 py-2 text-xs font-semibold text-gray-6",t),ref:r,...n,children:e})),CT=(e,t)=>{const n={separator:()=>w.jsx(xT,{className:t==null?void 0:t.separator},e.id),label:()=>w.jsx(ET,{className:t==null?void 0:t.label,children:e.label},e.id),default:()=>w.jsx(wT,{className:t==null?void 0:t.item,icon:e.icon,shortcut:e.shortcut,disabled:e.disabled,onSelect:e.onSelect,children:e.label},e.id)};return(n[e.type]||n.default)()},ST=({trigger:e,items:t=[],align:n="start",sideOffset:r=4,classNames:o})=>w.jsxs(Hx,{children:[w.jsx(yT,{children:e}),w.jsx(bT,{align:n,sideOffset:r,className:o==null?void 0:o.content,children:t.map(i=>w.jsx("div",{children:CT(i,o)},i.id))})]});var b0=(e=>(e.justify="justify",e.align="items",e.gap="gap",e))(b0||{});const{align:_T,justify:PT,gap:RT}=b0,OT={horizontal:"flex-row",vertical:"flex-col"},TT={horizontal:"flex-row-reverse",vertical:"flex-col-reverse"},lr=({children:e,justify:t,align:n,gap:r,direction:o="horizontal",isReverse:i=!1,style:l,className:u="",onClick:c,wrap:s,...a})=>w.jsx(_r.div,{"aria-hidden":!0,className:me(`flex ${i?TT[o]:OT[o]}`,Hi(RT,r),Hi(PT,t),Hi(_T,n),{[u]:u,"flex-wrap":s}),onClick:c,style:l,children:e,...a}),jT={md:"py-[5px] min-h-8 rounded-md",lg:"py-2 text-base min-h-10 rounded-lg",xl:"py-3 text-base min-h-12 rounded-lg"},MT=(e,t,n,r,o)=>{const i=["px-3 py-px min-h-6 text-sm leading-[22px] w-full","transition-all ease-out duration-300","placeholder:text-gray-6 text-gray-10 outline-none appearance-none","disabled:bg-gray-3 disabled:text-gray-6 disabled:border-gray-5"],l=e==="default"?["rounded border shadow-button border-gray-7","focus:border-light-blue-30 focus:ring-light-blue-30 focus:shadow-[0_0_0_2px_#E6EDF8]"]:["border-0 border-b border-gray-7 rounded-none! bg-transparent","focus:border-light-blue-30"],u={"pl-8":o,[e==="default"?"border-red text-red focus:border-red focus:ring-red focus:shadow-[0_0_0_2px_#FFCCC7]":"border-b-red text-red focus:border-b-red"]:n,[e==="default"?"border-green text-green focus:border-green focus:ring-green focus:shadow-[0_0_0_2px_#D4F0E0]":"border-b-green text-green focus:border-b-green"]:r};return{sizeStyles:jT[t],stateStyles:u,baseStyles:i,variantStyles:l}},AT=({onClick:e,disabled:t})=>w.jsx(_r.button,{initial:{opacity:0,y:"-50%"},animate:{opacity:1,y:"-50%"},exit:{opacity:0,y:"-50%"},transition:{duration:.2},type:"button",className:"absolute transition-colors ease-out duration-300 top-1/2 right-3 disabled:opacity-100 text-gray-6 hover:text-gray-7 disabled:hover:text-gray-6",onClick:e,disabled:t,children:w.jsx(Ug,{})},"clear-button"),kT=({num:e,format:t,useGrouping:n,minFractionDigits:r,maxFractionDigits:o,mode:i,currency:l,currencyDisplay:u,locale:c,prefix:s="",suffix:a=""})=>{if(e==null||!t)return(e==null?void 0:e.toString())??"";const d={useGrouping:n,minimumFractionDigits:r,maximumFractionDigits:o,...i==="currency"&&{style:"currency",currency:l,currencyDisplay:u}},f=new Intl.NumberFormat(c,d).format(e);return`${s} ${f} ${a}`.trim()},DT=(e,t="",n="",r=!0)=>{if(!e)return r?null:0;const o=e.replace(t,"").replace(n,"").replaceAll(/[^\d.-]/g,""),i=Number.parseFloat(o);return Number.isNaN(i)?null:i},NT=(e,t,n)=>e==null||(t==null||e>=t)&&(n==null||e<=n),IT=e=>{const{onChange:t,onValueChange:n,format:r=!0,locale:o="es-MX",mode:i="decimal",currency:l="MXN",currencyDisplay:u="symbol",useGrouping:c=!0,minFractionDigits:s,maxFractionDigits:a,min:d,max:f,allowEmpty:p=!0,prefix:m,suffix:h,...v}=e,[y,b]=_.useState(Number((v==null?void 0:v.value)??null)),[x,E]=_.useState(""),[C,T]=_.useState(!1),A=_.useMemo(()=>({format:r,useGrouping:c,minFractionDigits:s,maxFractionDigits:a,mode:i,currency:l,currencyDisplay:u,locale:o,prefix:m,suffix:h}),[r,c,s,a,i,l,u,o,m,h]),j=_.useCallback(F=>kT({num:F,...A}),[A]),R=_.useCallback(F=>DT(F,m,h,p),[m,h,p]);_.useEffect(()=>{C||E(j(y))},[y,j,C]);const P=_.useCallback(F=>{const H=F.target.value;E(H);const B=R(H);NT(B,d,f)&&(b(B),t==null||t(B),n==null||n({originalEvent:F.nativeEvent,value:B}))},[R,d,f,t,n]),k=_.useCallback(F=>{var H;T(!0),y!=null&&E(y.toString()),(H=v.onFocus)==null||H.call(v,F)},[y,v]),O=_.useCallback(F=>{var H;T(!1),E(j(y)),(H=v.onBlur)==null||H.call(v,F)},[j,y,v]),$=_.useCallback(()=>{E(""),b(null),t==null||t(null)},[t]);return{displayValue:x,handleChange:P,handleFocus:k,handleBlur:O,handleClear:$,...v}},LT=_.forwardRef((e,t)=>{const{error:n,size:r="md",check:o,icon:i,leftIcon:l,clear:u=!0,disabled:c=!1,variant:s="default",className:a,displayValue:d,handleChange:f,handleFocus:p,handleBlur:m,handleClear:h,...v}=IT(e),{baseStyles:y,variantStyles:b,sizeStyles:x,stateStyles:E}=MT(s,r,n,o,!!i),C=_.useMemo(()=>u&&d?w.jsx(AT,{disabled:c,onClick:h}):l?w.jsx("div",{className:me("absolute right-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:l}):null,[u,d,l,c,h]);return w.jsxs("div",{className:me("relative",a),children:[i&&w.jsx("div",{className:me("absolute left-3 top-1/2 -translate-y-1/2",{"opacity-40":c}),children:i}),w.jsx(_r.input,{...v,ref:t,type:"text",value:d,disabled:c,onChange:f,onFocus:p,onBlur:m,className:me(...y,...b,x,E,a)}),w.jsx(tO,{children:C})]})});LT.displayName="InputNumber";const Yc=(e,t)=>`${e}-${t}`,Li=_.forwardRef(({children:e,as:t,asChild:n=!1,className:r,italic:o=!1,size:i="base",weight:l="normal",...u},c)=>{if(!e)return null;const s=Yc("text",i),a=Yc("font",l),d=n?J0:t??"p";return w.jsx(d,{ref:c,className:me("text-grays-Macropay-10",s,a,r,{italic:o}),...u,children:e})});Li.displayName="Typography";const FT=({children:e,as:t="p",className:n,...r})=>w.jsx(Li,{as:t,className:n,...r,children:e}),VT={1:"text-4xl",2:"text-3xl",3:"text-2xl",4:"text-xl",5:"text-lg",6:"text-base"},$T={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},BT=({children:e,className:t="",level:n=1,...r})=>{const o=$T[n];return w.jsx(Li,{as:o,weight:"bold",className:`${VT[n]} ${t}`,...r,children:e})},Pr=Li;Pr.Text=FT;Pr.Title=BT;const{Title:lj,Text:uj}=Pr,zT=e=>{const t=_.createContext(void 0);return[({value:n,children:r})=>w.jsx(t.Provider,{value:n,children:r}),()=>{const n=_.useContext(t);if(n===void 0)throw new Error(`useContext must be used within a ${e}Provider`);return n}]};zT("PopoverContext");var UT=Object.defineProperty,ri=Object.getOwnPropertySymbols,w0=Object.prototype.hasOwnProperty,x0=Object.prototype.propertyIsEnumerable,qc=(e,t,n)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ys=(e,t)=>{for(var n in t||(t={}))w0.call(t,n)&&qc(e,n,t[n]);if(ri)for(var n of ri(t))x0.call(t,n)&&qc(e,n,t[n]);return e},bs=(e,t)=>{var n={};for(var r in e)w0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ri)for(var r of ri(e))t.indexOf(r)<0&&x0.call(e,r)&&(n[r]=e[r]);return n};/**
|
|
109
109
|
* @license QR Code generator library (TypeScript)
|
|
110
110
|
* Copyright (c) Project Nayuki.
|
|
111
111
|
* SPDX-License-Identifier: MIT
|
|
112
|
-
*/var Yt;(e=>{const t=class se{constructor(u,s,a,d){if(this.version=u,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],u<se.MIN_VERSION||u>se.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=u*4+17;let f=[];for(let m=0;m<this.size;m++)f.push(!1);for(let m=0;m<this.size;m++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(a);if(this.drawCodewords(p),d==-1){let m=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const v=this.getPenaltyScore();v<m&&(d=h,m=v),this.applyMask(h)}}o(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(u,s){const a=e.QrSegment.makeSegments(u);return se.encodeSegments(a,s)}static encodeBinary(u,s){const a=e.QrSegment.makeBytes(u);return se.encodeSegments([a],s)}static encodeSegments(u,s,a=1,d=40,f=-1,p=!0){if(!(se.MIN_VERSION<=a&&a<=d&&d<=se.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let m,h;for(m=a;;m++){const x=se.getNumDataCodewords(m,s)*8,S=l.getTotalBits(u,m);if(S<=x){h=S;break}if(m>=d)throw new RangeError("Data too long")}for(const x of[se.Ecc.MEDIUM,se.Ecc.QUARTILE,se.Ecc.HIGH])p&&h<=se.getNumDataCodewords(m,x)*8&&(s=x);let v=[];for(const x of u){n(x.mode.modeBits,4,v),n(x.numChars,x.mode.numCharCountBits(m),v);for(const S of x.getData())v.push(S)}o(v.length==h);const y=se.getNumDataCodewords(m,s)*8;o(v.length<=y),n(0,Math.min(4,y-v.length),v),n(0,(8-v.length%8)%8,v),o(v.length%8==0);for(let x=236;v.length<y;x^=253)n(x,8,v);let b=[];for(;b.length*8<v.length;)b.push(0);return v.forEach((x,S)=>b[S>>>3]|=x<<7-(S&7)),new se(m,s,b,f)}getModule(u,s){return 0<=u&&u<this.size&&0<=s&&s<this.size&&this.modules[s][u]}getModules(){return this.modules}drawFunctionPatterns(){for(let a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const u=this.getAlignmentPatternPositions(),s=u.length;for(let a=0;a<s;a++)for(let d=0;d<s;d++)a==0&&d==0||a==0&&d==s-1||a==s-1&&d==0||this.drawAlignmentPattern(u[a],u[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(u){const s=this.errorCorrectionLevel.formatBits<<3|u;let a=s;for(let f=0;f<10;f++)a=a<<1^(a>>>9)*1335;const d=(s<<10|a)^21522;o(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let u=this.version;for(let a=0;a<12;a++)u=u<<1^(u>>>11)*7973;const s=this.version<<12|u;o(s>>>18==0);for(let a=0;a<18;a++){const d=r(s,a),f=this.size-11+a%3,p=Math.floor(a/3);this.setFunctionModule(f,p,d),this.setFunctionModule(p,f,d)}}drawFinderPattern(u,s){for(let a=-4;a<=4;a++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(a)),p=u+d,m=s+a;0<=p&&p<this.size&&0<=m&&m<this.size&&this.setFunctionModule(p,m,f!=2&&f!=4)}}drawAlignmentPattern(u,s){for(let a=-2;a<=2;a++)for(let d=-2;d<=2;d++)this.setFunctionModule(u+d,s+a,Math.max(Math.abs(d),Math.abs(a))!=1)}setFunctionModule(u,s,a){this.modules[s][u]=a,this.isFunction[s][u]=!0}addEccAndInterleave(u){const s=this.version,a=this.errorCorrectionLevel;if(u.length!=se.getNumDataCodewords(s,a))throw new RangeError("Invalid argument");const d=se.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][s],f=se.ECC_CODEWORDS_PER_BLOCK[a.ordinal][s],p=Math.floor(se.getNumRawDataModules(s)/8),m=d-p%d,h=Math.floor(p/d);let v=[];const y=se.reedSolomonComputeDivisor(f);for(let x=0,S=0;x<d;x++){let E=u.slice(S,S+h-f+(x<m?0:1));S+=E.length;const A=se.reedSolomonComputeRemainder(E,y);x<m&&E.push(0),v.push(E.concat(A))}let b=[];for(let x=0;x<v[0].length;x++)v.forEach((S,E)=>{(x!=h-f||E>=m)&&b.push(S[x])});return o(b.length==p),b}drawCodewords(u){if(u.length!=Math.floor(se.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let a=this.size-1;a>=1;a-=2){a==6&&(a=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const p=a-f,m=(a+1&2)==0?this.size-1-d:d;!this.isFunction[m][p]&&s<u.length*8&&(this.modules[m][p]=r(u[s>>>3],7-(s&7)),s++)}}o(s==u.length*8)}applyMask(u){if(u<0||u>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let a=0;a<this.size;a++){let d;switch(u){case 0:d=(a+s)%2==0;break;case 1:d=s%2==0;break;case 2:d=a%3==0;break;case 3:d=(a+s)%3==0;break;case 4:d=(Math.floor(a/3)+Math.floor(s/2))%2==0;break;case 5:d=a*s%2+a*s%3==0;break;case 6:d=(a*s%2+a*s%3)%2==0;break;case 7:d=((a+s)%2+a*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][a]&&d&&(this.modules[s][a]=!this.modules[s][a])}}getPenaltyScore(){let u=0;for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[f][v]==p?(m++,m==5?u+=se.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[f][v],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][f]==p?(m++,m==5?u+=se.PENALTY_N1:m>5&&u++):(this.finderPenaltyAddHistory(m,h),p||(u+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[v][f],m=1);u+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let p=0;p<this.size-1;p++){const m=this.modules[f][p];m==this.modules[f][p+1]&&m==this.modules[f+1][p]&&m==this.modules[f+1][p+1]&&(u+=se.PENALTY_N2)}let s=0;for(const f of this.modules)s=f.reduce((p,m)=>p+(m?1:0),s);const a=this.size*this.size,d=Math.ceil(Math.abs(s*20-a*10)/a)-1;return o(0<=d&&d<=9),u+=d*se.PENALTY_N4,o(0<=u&&u<=2568888),u}getAlignmentPatternPositions(){if(this.version==1)return[];{const u=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(u*2-2))*2;let a=[6];for(let d=this.size-7;a.length<u;d-=s)a.splice(1,0,d);return a}}static getNumRawDataModules(u){if(u<se.MIN_VERSION||u>se.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*u+128)*u+64;if(u>=2){const a=Math.floor(u/7)+2;s-=(25*a-10)*a-55,u>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(u,s){return Math.floor(se.getNumRawDataModules(u)/8)-se.ECC_CODEWORDS_PER_BLOCK[s.ordinal][u]*se.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][u]}static reedSolomonComputeDivisor(u){if(u<1||u>255)throw new RangeError("Degree out of range");let s=[];for(let d=0;d<u-1;d++)s.push(0);s.push(1);let a=1;for(let d=0;d<u;d++){for(let f=0;f<s.length;f++)s[f]=se.reedSolomonMultiply(s[f],a),f+1<s.length&&(s[f]^=s[f+1]);a=se.reedSolomonMultiply(a,2)}return s}static reedSolomonComputeRemainder(u,s){let a=s.map(d=>0);for(const d of u){const f=d^a.shift();a.push(0),s.forEach((p,m)=>a[m]^=se.reedSolomonMultiply(p,f))}return a}static reedSolomonMultiply(u,s){if(u>>>8||s>>>8)throw new RangeError("Byte out of range");let a=0;for(let d=7;d>=0;d--)a=a<<1^(a>>>7)*285,a^=(s>>>d&1)*u;return o(a>>>8==0),a}finderPenaltyCountPatterns(u){const s=u[1];o(s<=this.size*3);const a=s>0&&u[2]==s&&u[3]==s*3&&u[4]==s&&u[5]==s;return(a&&u[0]>=s*4&&u[6]>=s?1:0)+(a&&u[6]>=s*4&&u[0]>=s?1:0)}finderPenaltyTerminateAndCount(u,s,a){return u&&(this.finderPenaltyAddHistory(s,a),s=0),s+=this.size,this.finderPenaltyAddHistory(s,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(u,s){s[0]==0&&(u+=this.size),s.pop(),s.unshift(u)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(c,u,s){if(u<0||u>31||c>>>u)throw new RangeError("Value out of range");for(let a=u-1;a>=0;a--)s.push(c>>>a&1)}function r(c,u){return(c>>>u&1)!=0}function o(c){if(!c)throw new Error("Assertion error")}const i=class we{constructor(u,s,a){if(this.mode=u,this.numChars=s,this.bitData=a,s<0)throw new RangeError("Invalid argument");this.bitData=a.slice()}static makeBytes(u){let s=[];for(const a of u)n(a,8,s);return new we(we.Mode.BYTE,u.length,s)}static makeNumeric(u){if(!we.isNumeric(u))throw new RangeError("String contains non-numeric characters");let s=[];for(let a=0;a<u.length;){const d=Math.min(u.length-a,3);n(parseInt(u.substring(a,a+d),10),d*3+1,s),a+=d}return new we(we.Mode.NUMERIC,u.length,s)}static makeAlphanumeric(u){if(!we.isAlphanumeric(u))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[],a;for(a=0;a+2<=u.length;a+=2){let d=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a))*45;d+=we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a+1)),n(d,11,s)}return a<u.length&&n(we.ALPHANUMERIC_CHARSET.indexOf(u.charAt(a)),6,s),new we(we.Mode.ALPHANUMERIC,u.length,s)}static makeSegments(u){return u==""?[]:we.isNumeric(u)?[we.makeNumeric(u)]:we.isAlphanumeric(u)?[we.makeAlphanumeric(u)]:[we.makeBytes(we.toUtf8ByteArray(u))]}static makeEci(u){let s=[];if(u<0)throw new RangeError("ECI assignment value out of range");if(u<128)n(u,8,s);else if(u<16384)n(2,2,s),n(u,14,s);else if(u<1e6)n(6,3,s),n(u,21,s);else throw new RangeError("ECI assignment value out of range");return new we(we.Mode.ECI,0,s)}static isNumeric(u){return we.NUMERIC_REGEX.test(u)}static isAlphanumeric(u){return we.ALPHANUMERIC_REGEX.test(u)}getData(){return this.bitData.slice()}static getTotalBits(u,s){let a=0;for(const d of u){const f=d.mode.numCharCountBits(s);if(d.numChars>=1<<f)return 1/0;a+=4+f+d.bitData.length}return a}static toUtf8ByteArray(u){u=encodeURI(u);let s=[];for(let a=0;a<u.length;a++)u.charAt(a)!="%"?s.push(u.charCodeAt(a)):(s.push(parseInt(u.substring(a+1,a+3),16)),a+=2);return s}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=i;e.QrSegment=i})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.ordinal=r,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.modeBits=r,this.numBitsCharCount=o}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Yt||(Yt={}));var fn=Yt;/**
|
|
112
|
+
*/var Yt;(e=>{const t=class se{constructor(c,s,a,d){if(this.version=c,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],c<se.MIN_VERSION||c>se.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=c*4+17;let f=[];for(let m=0;m<this.size;m++)f.push(!1);for(let m=0;m<this.size;m++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(a);if(this.drawCodewords(p),d==-1){let m=1e9;for(let h=0;h<8;h++){this.applyMask(h),this.drawFormatBits(h);const v=this.getPenaltyScore();v<m&&(d=h,m=v),this.applyMask(h)}}o(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(c,s){const a=e.QrSegment.makeSegments(c);return se.encodeSegments(a,s)}static encodeBinary(c,s){const a=e.QrSegment.makeBytes(c);return se.encodeSegments([a],s)}static encodeSegments(c,s,a=1,d=40,f=-1,p=!0){if(!(se.MIN_VERSION<=a&&a<=d&&d<=se.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let m,h;for(m=a;;m++){const x=se.getNumDataCodewords(m,s)*8,E=l.getTotalBits(c,m);if(E<=x){h=E;break}if(m>=d)throw new RangeError("Data too long")}for(const x of[se.Ecc.MEDIUM,se.Ecc.QUARTILE,se.Ecc.HIGH])p&&h<=se.getNumDataCodewords(m,x)*8&&(s=x);let v=[];for(const x of c){n(x.mode.modeBits,4,v),n(x.numChars,x.mode.numCharCountBits(m),v);for(const E of x.getData())v.push(E)}o(v.length==h);const y=se.getNumDataCodewords(m,s)*8;o(v.length<=y),n(0,Math.min(4,y-v.length),v),n(0,(8-v.length%8)%8,v),o(v.length%8==0);for(let x=236;v.length<y;x^=253)n(x,8,v);let b=[];for(;b.length*8<v.length;)b.push(0);return v.forEach((x,E)=>b[E>>>3]|=x<<7-(E&7)),new se(m,s,b,f)}getModule(c,s){return 0<=c&&c<this.size&&0<=s&&s<this.size&&this.modules[s][c]}getModules(){return this.modules}drawFunctionPatterns(){for(let a=0;a<this.size;a++)this.setFunctionModule(6,a,a%2==0),this.setFunctionModule(a,6,a%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const c=this.getAlignmentPatternPositions(),s=c.length;for(let a=0;a<s;a++)for(let d=0;d<s;d++)a==0&&d==0||a==0&&d==s-1||a==s-1&&d==0||this.drawAlignmentPattern(c[a],c[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(c){const s=this.errorCorrectionLevel.formatBits<<3|c;let a=s;for(let f=0;f<10;f++)a=a<<1^(a>>>9)*1335;const d=(s<<10|a)^21522;o(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let c=this.version;for(let a=0;a<12;a++)c=c<<1^(c>>>11)*7973;const s=this.version<<12|c;o(s>>>18==0);for(let a=0;a<18;a++){const d=r(s,a),f=this.size-11+a%3,p=Math.floor(a/3);this.setFunctionModule(f,p,d),this.setFunctionModule(p,f,d)}}drawFinderPattern(c,s){for(let a=-4;a<=4;a++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(a)),p=c+d,m=s+a;0<=p&&p<this.size&&0<=m&&m<this.size&&this.setFunctionModule(p,m,f!=2&&f!=4)}}drawAlignmentPattern(c,s){for(let a=-2;a<=2;a++)for(let d=-2;d<=2;d++)this.setFunctionModule(c+d,s+a,Math.max(Math.abs(d),Math.abs(a))!=1)}setFunctionModule(c,s,a){this.modules[s][c]=a,this.isFunction[s][c]=!0}addEccAndInterleave(c){const s=this.version,a=this.errorCorrectionLevel;if(c.length!=se.getNumDataCodewords(s,a))throw new RangeError("Invalid argument");const d=se.NUM_ERROR_CORRECTION_BLOCKS[a.ordinal][s],f=se.ECC_CODEWORDS_PER_BLOCK[a.ordinal][s],p=Math.floor(se.getNumRawDataModules(s)/8),m=d-p%d,h=Math.floor(p/d);let v=[];const y=se.reedSolomonComputeDivisor(f);for(let x=0,E=0;x<d;x++){let C=c.slice(E,E+h-f+(x<m?0:1));E+=C.length;const T=se.reedSolomonComputeRemainder(C,y);x<m&&C.push(0),v.push(C.concat(T))}let b=[];for(let x=0;x<v[0].length;x++)v.forEach((E,C)=>{(x!=h-f||C>=m)&&b.push(E[x])});return o(b.length==p),b}drawCodewords(c){if(c.length!=Math.floor(se.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let a=this.size-1;a>=1;a-=2){a==6&&(a=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const p=a-f,m=(a+1&2)==0?this.size-1-d:d;!this.isFunction[m][p]&&s<c.length*8&&(this.modules[m][p]=r(c[s>>>3],7-(s&7)),s++)}}o(s==c.length*8)}applyMask(c){if(c<0||c>7)throw new RangeError("Mask value out of range");for(let s=0;s<this.size;s++)for(let a=0;a<this.size;a++){let d;switch(c){case 0:d=(a+s)%2==0;break;case 1:d=s%2==0;break;case 2:d=a%3==0;break;case 3:d=(a+s)%3==0;break;case 4:d=(Math.floor(a/3)+Math.floor(s/2))%2==0;break;case 5:d=a*s%2+a*s%3==0;break;case 6:d=(a*s%2+a*s%3)%2==0;break;case 7:d=((a+s)%2+a*s%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[s][a]&&d&&(this.modules[s][a]=!this.modules[s][a])}}getPenaltyScore(){let c=0;for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[f][v]==p?(m++,m==5?c+=se.PENALTY_N1:m>5&&c++):(this.finderPenaltyAddHistory(m,h),p||(c+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[f][v],m=1);c+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size;f++){let p=!1,m=0,h=[0,0,0,0,0,0,0];for(let v=0;v<this.size;v++)this.modules[v][f]==p?(m++,m==5?c+=se.PENALTY_N1:m>5&&c++):(this.finderPenaltyAddHistory(m,h),p||(c+=this.finderPenaltyCountPatterns(h)*se.PENALTY_N3),p=this.modules[v][f],m=1);c+=this.finderPenaltyTerminateAndCount(p,m,h)*se.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let p=0;p<this.size-1;p++){const m=this.modules[f][p];m==this.modules[f][p+1]&&m==this.modules[f+1][p]&&m==this.modules[f+1][p+1]&&(c+=se.PENALTY_N2)}let s=0;for(const f of this.modules)s=f.reduce((p,m)=>p+(m?1:0),s);const a=this.size*this.size,d=Math.ceil(Math.abs(s*20-a*10)/a)-1;return o(0<=d&&d<=9),c+=d*se.PENALTY_N4,o(0<=c&&c<=2568888),c}getAlignmentPatternPositions(){if(this.version==1)return[];{const c=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(c*2-2))*2;let a=[6];for(let d=this.size-7;a.length<c;d-=s)a.splice(1,0,d);return a}}static getNumRawDataModules(c){if(c<se.MIN_VERSION||c>se.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*c+128)*c+64;if(c>=2){const a=Math.floor(c/7)+2;s-=(25*a-10)*a-55,c>=7&&(s-=36)}return o(208<=s&&s<=29648),s}static getNumDataCodewords(c,s){return Math.floor(se.getNumRawDataModules(c)/8)-se.ECC_CODEWORDS_PER_BLOCK[s.ordinal][c]*se.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][c]}static reedSolomonComputeDivisor(c){if(c<1||c>255)throw new RangeError("Degree out of range");let s=[];for(let d=0;d<c-1;d++)s.push(0);s.push(1);let a=1;for(let d=0;d<c;d++){for(let f=0;f<s.length;f++)s[f]=se.reedSolomonMultiply(s[f],a),f+1<s.length&&(s[f]^=s[f+1]);a=se.reedSolomonMultiply(a,2)}return s}static reedSolomonComputeRemainder(c,s){let a=s.map(d=>0);for(const d of c){const f=d^a.shift();a.push(0),s.forEach((p,m)=>a[m]^=se.reedSolomonMultiply(p,f))}return a}static reedSolomonMultiply(c,s){if(c>>>8||s>>>8)throw new RangeError("Byte out of range");let a=0;for(let d=7;d>=0;d--)a=a<<1^(a>>>7)*285,a^=(s>>>d&1)*c;return o(a>>>8==0),a}finderPenaltyCountPatterns(c){const s=c[1];o(s<=this.size*3);const a=s>0&&c[2]==s&&c[3]==s*3&&c[4]==s&&c[5]==s;return(a&&c[0]>=s*4&&c[6]>=s?1:0)+(a&&c[6]>=s*4&&c[0]>=s?1:0)}finderPenaltyTerminateAndCount(c,s,a){return c&&(this.finderPenaltyAddHistory(s,a),s=0),s+=this.size,this.finderPenaltyAddHistory(s,a),this.finderPenaltyCountPatterns(a)}finderPenaltyAddHistory(c,s){s[0]==0&&(c+=this.size),s.pop(),s.unshift(c)}};t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(u,c,s){if(c<0||c>31||u>>>c)throw new RangeError("Value out of range");for(let a=c-1;a>=0;a--)s.push(u>>>a&1)}function r(u,c){return(u>>>c&1)!=0}function o(u){if(!u)throw new Error("Assertion error")}const i=class we{constructor(c,s,a){if(this.mode=c,this.numChars=s,this.bitData=a,s<0)throw new RangeError("Invalid argument");this.bitData=a.slice()}static makeBytes(c){let s=[];for(const a of c)n(a,8,s);return new we(we.Mode.BYTE,c.length,s)}static makeNumeric(c){if(!we.isNumeric(c))throw new RangeError("String contains non-numeric characters");let s=[];for(let a=0;a<c.length;){const d=Math.min(c.length-a,3);n(parseInt(c.substring(a,a+d),10),d*3+1,s),a+=d}return new we(we.Mode.NUMERIC,c.length,s)}static makeAlphanumeric(c){if(!we.isAlphanumeric(c))throw new RangeError("String contains unencodable characters in alphanumeric mode");let s=[],a;for(a=0;a+2<=c.length;a+=2){let d=we.ALPHANUMERIC_CHARSET.indexOf(c.charAt(a))*45;d+=we.ALPHANUMERIC_CHARSET.indexOf(c.charAt(a+1)),n(d,11,s)}return a<c.length&&n(we.ALPHANUMERIC_CHARSET.indexOf(c.charAt(a)),6,s),new we(we.Mode.ALPHANUMERIC,c.length,s)}static makeSegments(c){return c==""?[]:we.isNumeric(c)?[we.makeNumeric(c)]:we.isAlphanumeric(c)?[we.makeAlphanumeric(c)]:[we.makeBytes(we.toUtf8ByteArray(c))]}static makeEci(c){let s=[];if(c<0)throw new RangeError("ECI assignment value out of range");if(c<128)n(c,8,s);else if(c<16384)n(2,2,s),n(c,14,s);else if(c<1e6)n(6,3,s),n(c,21,s);else throw new RangeError("ECI assignment value out of range");return new we(we.Mode.ECI,0,s)}static isNumeric(c){return we.NUMERIC_REGEX.test(c)}static isAlphanumeric(c){return we.ALPHANUMERIC_REGEX.test(c)}getData(){return this.bitData.slice()}static getTotalBits(c,s){let a=0;for(const d of c){const f=d.mode.numCharCountBits(s);if(d.numChars>=1<<f)return 1/0;a+=4+f+d.bitData.length}return a}static toUtf8ByteArray(c){c=encodeURI(c);let s=[];for(let a=0;a<c.length;a++)c.charAt(a)!="%"?s.push(c.charCodeAt(a)):(s.push(parseInt(c.substring(a+1,a+3),16)),a+=2);return s}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let l=i;e.QrSegment=i})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.ordinal=r,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),t.Ecc=n})(e.QrCode||(e.QrCode={}))})(Yt||(Yt={}));(e=>{(t=>{const n=class{constructor(r,o){this.modeBits=r,this.numBitsCharCount=o}numCharCountBits(r){return this.numBitsCharCount[Math.floor((r+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),t.Mode=n})(e.QrSegment||(e.QrSegment={}))})(Yt||(Yt={}));var fn=Yt;/**
|
|
113
113
|
* @license qrcode.react
|
|
114
114
|
* Copyright (c) Paul O'Shannessy
|
|
115
115
|
* SPDX-License-Identifier: ISC
|
|
116
|
-
*/var zT={L:fn.QrCode.Ecc.LOW,M:fn.QrCode.Ecc.MEDIUM,Q:fn.QrCode.Ecc.QUARTILE,H:fn.QrCode.Ecc.HIGH},Cg=128,_g="L",Pg="#FFFFFF",Rg="#000000",Og=!1,Tg=1,UT=4,HT=0,GT=.1;function jg(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(l,c){if(!l&&i!==null){n.push(`M${i+t} ${o+t}h${c-i}v1H${i+t}z`),i=null;return}if(c===r.length-1){if(!l)return;i===null?n.push(`M${c+t},${o+t} h1v1H${c+t}z`):n.push(`M${i+t},${o+t} h${c+1-i}v1H${i+t}z`);return}l&&i===null&&(i=c)})}),n.join("")}function Mg(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,i)=>i<t.x||i>=t.x+t.w?o:!1))}function WT(e,t,n,r){if(r==null)return null;const o=e.length+n*2,i=Math.floor(t*GT),l=o/t,c=(r.width||i)*l,u=(r.height||i)*l,s=r.x==null?e.length/2-c/2:r.x*l,a=r.y==null?e.length/2-u/2:r.y*l,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let m=Math.floor(s),h=Math.floor(a),v=Math.ceil(c+s-m),y=Math.ceil(u+a-h);f={x:m,y:h,w:v,h:y}}const p=r.crossOrigin;return{x:s,y:a,h:u,w:c,excavation:f,opacity:d,crossOrigin:p}}function XT(e,t){return t!=null?Math.max(Math.floor(t),0):e?UT:HT}function Ag({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:c}){let u=_.useMemo(()=>{const p=(Array.isArray(e)?e:[e]).reduce((m,h)=>(m.push(...fn.QrSegment.makeSegments(h)),m),[]);return fn.QrCode.encodeSegments(p,zT[t],n,void 0,void 0,c)},[e,t,n,c]);const{cells:s,margin:a,numCells:d,calculatedImageSettings:f}=_.useMemo(()=>{let p=u.getModules();const m=XT(r,o),h=p.length+m*2,v=WT(p,l,m,i);return{cells:p,margin:m,numCells:h,calculatedImageSettings:v}},[u,l,i,r,o]);return{qrcode:u,margin:a,cells:s,numCells:d,calculatedImageSettings:f}}var KT=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),YT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=Cg,level:i=_g,bgColor:l=Pg,fgColor:c=Rg,includeMargin:u=Og,minVersion:s=Tg,boostLevel:a,marginSize:d,imageSettings:f}=n,p=ys(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=p,h=ys(p,["style"]),v=f==null?void 0:f.src,y=_.useRef(null),b=_.useRef(null),x=_.useCallback(R=>{y.current=R,typeof t=="function"?t(R):t&&(t.current=R)},[t]),[S,E]=_.useState(!1),{margin:A,cells:j,numCells:O,calculatedImageSettings:T}=Ag({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:u,marginSize:d,imageSettings:f,size:o});_.useEffect(()=>{if(y.current!=null){const R=y.current,$=R.getContext("2d");if(!$)return;let F=j;const H=b.current,B=T!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;B&&T.excavation!=null&&(F=Mg(j,T.excavation));const X=window.devicePixelRatio||1;R.height=R.width=o*X;const G=o/O*X;$.scale(G,G),$.fillStyle=l,$.fillRect(0,0,O,O),$.fillStyle=c,KT?$.fill(new Path2D(jg(F,A))):j.forEach(function(L,M){L.forEach(function(D,ee){D&&$.fillRect(ee+A,M+A,1,1)})}),T&&($.globalAlpha=T.opacity),B&&$.drawImage(H,T.x+A,T.y+A,T.w,T.h)}}),_.useEffect(()=>{E(!1)},[v]);const P=gs({height:o,width:o},m);let k=null;return v!=null&&(k=_.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{E(!0)},ref:b,crossOrigin:T==null?void 0:T.crossOrigin})),_.createElement(_.Fragment,null,_.createElement("canvas",gs({style:P,height:o,width:o,ref:x,role:"img"},h)),k)});YT.displayName="QRCodeCanvas";var qT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=Cg,level:i=_g,bgColor:l=Pg,fgColor:c=Rg,includeMargin:u=Og,minVersion:s=Tg,boostLevel:a,title:d,marginSize:f,imageSettings:p}=n,m=ys(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:v,numCells:y,calculatedImageSettings:b}=Ag({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:u,marginSize:f,imageSettings:p,size:o});let x=v,S=null;p!=null&&b!=null&&(b.excavation!=null&&(x=Mg(v,b.excavation)),S=_.createElement("image",{href:p.src,height:b.h,width:b.w,x:b.x+h,y:b.y+h,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));const E=jg(x,h);return _.createElement("svg",gs({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:t,role:"img"},m),!!d&&_.createElement("title",null,d),_.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),_.createElement("path",{fill:c,d:E,shapeRendering:"crispEdges"}),S)});qT.displayName="QRCodeSVG";var Xr={},Fn={},Kr={},Zc;function $e(){if(Zc)return Kr;Zc=1,Object.defineProperty(Kr,"__esModule",{value:!0});function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}var t=function n(r,o){e(this,n),this.data=r,this.text=o.text||r,this.options=o};return Kr.default=t,Kr}var Qc;function ZT(){if(Qc)return Fn;Qc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.CODE39=void 0;var e=(function(){function h(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&h(v.prototype,y),b&&h(v,b),v}})(),t=$e(),n=r(t);function r(h){return h&&h.__esModule?h:{default:h}}function o(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function i(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var c=(function(h){l(v,h);function v(y,b){return o(this,v),y=y.toUpperCase(),b.mod43&&(y+=f(m(y))),i(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,y,b))}return e(v,[{key:"encode",value:function(){for(var y=a("*"),b=0;b<this.data.length;b++)y+=a(this.data[b])+"0";return y+=a("*"),{data:y,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(n.default),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],s=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function a(h){return d(p(h))}function d(h){return s[h].toString(2)}function f(h){return u[h]}function p(h){return u.indexOf(h)}function m(h){for(var v=0,y=0;y<h.length;y++)v+=p(h[y]);return v=v%43,v}return Fn.CODE39=c,Fn}var Xe={},Yr={},qr={},be={},Jc;function Or(){if(Jc)return be;Jc=1,Object.defineProperty(be,"__esModule",{value:!0});var e;function t(u,s,a){return s in u?Object.defineProperty(u,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):u[s]=a,u}var n=be.SET_A=0,r=be.SET_B=1,o=be.SET_C=2;be.SHIFT=98;var i=be.START_A=103,l=be.START_B=104,c=be.START_C=105;return be.MODULO=103,be.STOP=106,be.FNC1=207,be.SET_BY_CODE=(e={},t(e,i,n),t(e,l,r),t(e,c,o),e),be.SWAP={101:n,100:r,99:o},be.A_START_CHAR="Ð",be.B_START_CHAR="Ñ",be.C_START_CHAR="Ò",be.A_CHARS="[\0-_È-Ï]",be.B_CHARS="[ -È-Ï]",be.C_CHARS="(Ï*[0-9]{2}Ï*)",be.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],be}var ed;function Vi(){if(ed)return qr;ed=1,Object.defineProperty(qr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){i(this,a);var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d.substring(1),f));return p.bytes=d.split("").map(function(m){return m.charCodeAt(0)}),p}return e(a,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.bytes,f=d.shift()-105,p=r.SET_BY_CODE[f];if(p===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&d.unshift(r.FNC1);var m=a.next(d,1,p);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:a.getBar(f)+m.result+a.getBar((m.checksum+f)%r.MODULO)+a.getBar(r.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var d=this.options.ean128||!1;return typeof d=="string"&&(d=d.toLowerCase()==="true"),d}}],[{key:"getBar",value:function(d){return r.BARS[d]?r.BARS[d].toString():""}},{key:"correctIndex",value:function(d,f){if(f===r.SET_A){var p=d.shift();return p<32?p+64:p-32}else return f===r.SET_B?d.shift()-32:(d.shift()-48)*10+d.shift()-48}},{key:"next",value:function(d,f,p){if(!d.length)return{result:"",checksum:0};var m=void 0,h=void 0;if(d[0]>=200){h=d.shift()-105;var v=r.SWAP[h];v!==void 0?m=a.next(d,f+1,v):((p===r.SET_A||p===r.SET_B)&&h===r.SHIFT&&(d[0]=p===r.SET_A?d[0]>95?d[0]-96:d[0]:d[0]<32?d[0]+96:d[0]),m=a.next(d,f+1,p))}else h=a.correctIndex(d,p),m=a.next(d,f+1,p);var y=a.getBar(h),b=h*f;return{result:y+m.result,checksum:b+m.checksum}}}]),a})(n.default);return qr.default=u,qr}var Zr={},td;function QT(){if(td)return Zr;td=1,Object.defineProperty(Zr,"__esModule",{value:!0});var e=Or(),t=function(l){return l.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},n=function(l){return l.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},r=function(l){return l.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function o(l,c){var u=c?e.A_CHARS:e.B_CHARS,s=l.match(new RegExp("^("+u+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(s)return s[1]+"Ì"+i(l.substring(s[1].length));var a=l.match(new RegExp("^"+u+"+"))[0];return a.length===l.length?l:a+String.fromCharCode(c?205:206)+o(l.substring(a.length),!c)}function i(l){var c=r(l),u=c.length;if(u===l.length)return l;l=l.substring(u);var s=t(l)>=n(l);return c+String.fromCharCode(s?206:205)+o(l,s)}return Zr.default=function(l){var c=void 0,u=r(l).length;if(u>=2)c=e.C_START_CHAR+i(l);else{var s=t(l)>n(l);c=(s?e.A_START_CHAR:e.B_START_CHAR)+o(l,s)}return c.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,d){return"Ë"+d})},Zr}var nd;function JT(){if(nd)return Yr;nd=1,Object.defineProperty(Yr,"__esModule",{value:!0});var e=Vi(),t=o(e),n=QT(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){if(i(this,a),/^[\x00-\x7F\xC8-\xD3]+$/.test(d))var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,(0,r.default)(d),f));else var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f));return l(p)}return a})(t.default);return Yr.default=u,Yr}var Qr={},rd;function e2(){if(rd)return Qr;rd=1,Object.defineProperty(Qr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.A_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.A_CHARS+"+$").test(this.data)}}]),a})(n.default);return Qr.default=u,Qr}var Jr={},od;function t2(){if(od)return Jr;od=1,Object.defineProperty(Jr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.B_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.B_CHARS+"+$").test(this.data)}}]),a})(n.default);return Jr.default=u,Jr}var eo={},id;function n2(){if(id)return eo;id=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Vi(),n=o(t),r=Or();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.C_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.C_CHARS+"+$").test(this.data)}}]),a})(n.default);return eo.default=u,eo}var ad;function r2(){if(ad)return Xe;ad=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.CODE128C=Xe.CODE128B=Xe.CODE128A=Xe.CODE128=void 0;var e=JT(),t=u(e),n=e2(),r=u(n),o=t2(),i=u(o),l=n2(),c=u(l);function u(s){return s&&s.__esModule?s:{default:s}}return Xe.CODE128=t.default,Xe.CODE128A=r.default,Xe.CODE128B=i.default,Xe.CODE128C=c.default,Xe}var Te={},to={},wt={},sd;function Tr(){return sd||(sd=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.SIDE_BIN="101",wt.MIDDLE_BIN="01010",wt.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},wt.EAN2_STRUCTURE=["LL","LG","GL","GG"],wt.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],wt.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),wt}var no={},ro={},ld;function jr(){if(ld)return ro;ld=1,Object.defineProperty(ro,"__esModule",{value:!0});var e=Tr(),t=function(n,r,o){var i=n.split("").map(function(c,u){return e.BINARIES[r[u]]}).map(function(c,u){return c?c[n[u]]:""});if(o){var l=n.length-1;i=i.map(function(c,u){return u<l?c+o:c})}return i.join("")};return ro.default=t,ro}var ud;function kg(){if(ud)return no;ud=1,Object.defineProperty(no,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){c(this,f);var h=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.fontSize=!m.flat&&m.fontSize>m.width*10?m.width*10:m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(p,m){return this.text.substr(p,m)}},{key:"leftEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"rightText",value:function(p,m){return this.text.substr(p,m)}},{key:"rightEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"encodeGuarded",value:function(){var p={fontSize:this.fontSize},m={height:this.guardHeight};return[{data:t.SIDE_BIN,options:m},{data:this.leftEncode(),text:this.leftText(),options:p},{data:t.MIDDLE_BIN,options:m},{data:this.rightEncode(),text:this.rightText(),options:p},{data:t.SIDE_BIN,options:m}]}},{key:"encodeFlat",value:function(){var p=[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN];return{data:p.join(""),text:this.text}}}]),f})(i.default);return no.default=a,no}var cd;function o2(){if(cd)return to;cd=1,Object.defineProperty(to,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=function d(f,p,m){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,p);if(h===void 0){var v=Object.getPrototypeOf(f);return v===null?void 0:d(v,p,m)}else{if("value"in h)return h.value;var y=h.get;return y===void 0?void 0:y.call(m)}},n=Tr(),r=kg(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=function(d){var f=d.substr(0,12).split("").map(function(p){return+p}).reduce(function(p,m,h){return h%2?p+m*3:p+m},0);return(10-f%10)%10},a=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{12}$/)!==-1&&(p+=s(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.lastChar=m.lastChar,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var p=this.data.substr(1,6),m=n.EAN13_STRUCTURE[this.data[0]];return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftEncode",this).call(this,p,m)}},{key:"rightText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var p=this.data.substr(7,6);return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightEncode",this).call(this,p,"RRRRRR")}},{key:"encodeGuarded",value:function(){var p=t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(p.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(p.push({data:"00"}),p.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),p}}]),f})(o.default);return to.default=a,to}var oo={},dd;function i2(){if(dd)return oo;dd=1,Object.defineProperty(oo,"__esModule",{value:!0});var e=(function(){function a(d,f){for(var p=0;p<f.length;p++){var m=f[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,p){return f&&a(d.prototype,f),p&&a(d,p),d}})(),t=function a(d,f,p){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var h=Object.getPrototypeOf(d);return h===null?void 0:a(h,f,p)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(p)}},n=kg(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function l(a,d){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:a}function c(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}var u=function(a){var d=a.substr(0,7).split("").map(function(f){return+f}).reduce(function(f,p,m){return m%2?f+p:f+p*3},0);return(10-d%10)%10},s=(function(a){c(d,a);function d(f,p){return i(this,d),f.search(/^[0-9]{7}$/)!==-1&&(f+=u(f)),l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,f,p))}return e(d,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===u(this.data)}},{key:"leftText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var f=this.data.substr(0,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftEncode",this).call(this,f,"LLLL")}},{key:"rightText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var f=this.data.substr(4,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightEncode",this).call(this,f,"RRRR")}}]),d})(r.default);return oo.default=s,oo}var io={},fd;function a2(){if(fd)return io;fd=1,Object.defineProperty(io,"__esModule",{value:!0});var e=(function(){function f(p,m){for(var h=0;h<m.length;h++){var v=m[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,m,h){return m&&f(p.prototype,m),h&&f(p,h),p}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(f){return f&&f.__esModule?f:{default:f}}function c(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function u(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function s(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var a=function(f){var p=f.split("").map(function(m){return+m}).reduce(function(m,h,v){return v%2?m+h*9:m+h*3},0);return p%10},d=(function(f){s(p,f);function p(m,h){return c(this,p),u(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,h))}return e(p,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var m=t.EAN5_STRUCTURE[a(this.data)];return{data:"1011"+(0,r.default)(this.data,m,"01"),text:this.text}}}]),p})(i.default);return io.default=d,io}var ao={},pd;function s2(){if(pd)return ao;pd=1,Object.defineProperty(ao,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Tr(),n=jr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function c(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){return c(this,f),u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m))}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var p=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,r.default)(this.data,p,"01"),text:this.text}}}]),f})(i.default);return ao.default=a,ao}var Vn={},hd;function Dg(){if(hd)return Vn;hd=1,Object.defineProperty(Vn,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})();Vn.checksum=a;var t=jr(),n=i(t),r=$e(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function u(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=(function(d){u(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{11}$/)!==-1&&(p+=a(p));var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.displayValue=m.displayValue,m.fontSize>m.width*10?h.fontSize=m.width*10:h.fontSize=m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==a(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=(0,n.default)(this.data.substr(0,6),"LLLLLL"),p+="01010",p+=(0,n.default)(this.data.substr(6,6),"RRRRRR"),p+="101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101"+(0,n.default)(this.data[0],"L"),options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),p.push({data:"01010",options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),p.push({data:(0,n.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),p}}]),f})(o.default);function a(d){var f=0,p;for(p=1;p<11;p+=2)f+=parseInt(d[p]);for(p=0;p<11;p+=2)f+=parseInt(d[p])*3;return(10-f%10)%10}return Vn.default=s,Vn}var so={},md;function l2(){if(md)return so;md=1,Object.defineProperty(so,"__esModule",{value:!0});var e=(function(){function m(h,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,v,y){return v&&m(h.prototype,v),y&&m(h,y),h}})(),t=jr(),n=l(t),r=$e(),o=l(r),i=Dg();function l(m){return m&&m.__esModule?m:{default:m}}function c(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function u(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function s(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}var a=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],d=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=(function(m){s(h,m);function h(v,y){c(this,h);var b=u(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,y));if(b.isValid=!1,v.search(/^[0-9]{6}$/)!==-1)b.middleDigits=v,b.upcA=p(v,"0"),b.text=y.text||""+b.upcA[0]+v+b.upcA[b.upcA.length-1],b.isValid=!0;else if(v.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=v.substring(1,v.length-1),b.upcA=p(b.middleDigits,v[0]),b.upcA[b.upcA.length-1]===v[v.length-1])b.isValid=!0;else return u(b);else return u(b);return b.displayValue=y.displayValue,y.fontSize>y.width*10?b.fontSize=y.width*10:b.fontSize=y.fontSize,b.guardHeight=y.height+b.fontSize/2+y.textMargin,b}return e(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var v="";return v+="101",v+=this.encodeMiddleDigits(),v+="010101",{data:v,text:this.text}}},{key:"guardedEncoding",value:function(){var v=[];return this.displayValue&&v.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),v.push({data:"101",options:{height:this.guardHeight}}),v.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),v.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&v.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),v}},{key:"encodeMiddleDigits",value:function(){var v=this.upcA[0],y=this.upcA[this.upcA.length-1],b=d[parseInt(y)][parseInt(v)];return(0,n.default)(this.middleDigits,b)}}]),h})(o.default);function p(m,h){for(var v=parseInt(m[m.length-1]),y=a[v],b="",x=0,S=0;S<y.length;S++){var E=y[S];E==="X"?b+=m[x++]:b+=E}return b=""+h+b,""+b+(0,i.checksum)(b)}return so.default=f,so}var vd;function u2(){if(vd)return Te;vd=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.UPCE=Te.UPC=Te.EAN2=Te.EAN5=Te.EAN8=Te.EAN13=void 0;var e=o2(),t=f(e),n=i2(),r=f(n),o=a2(),i=f(o),l=s2(),c=f(l),u=Dg(),s=f(u),a=l2(),d=f(a);function f(p){return p&&p.__esModule?p:{default:p}}return Te.EAN13=t.default,Te.EAN8=r.default,Te.EAN5=i.default,Te.EAN2=c.default,Te.UPC=s.default,Te.UPCE=d.default,Te}var $t={},lo={},$n={},gd;function c2(){return gd||(gd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.START_BIN="1010",$n.END_BIN="11101",$n.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),$n}var yd;function Lg(){if(yd)return lo;yd=1,Object.defineProperty(lo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=c2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return e(a,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var d=this,f=this.data.match(/.{2}/g).map(function(p){return d.encodePair(p)}).join("");return{data:t.START_BIN+f+t.END_BIN,text:this.text}}},{key:"encodePair",value:function(d){var f=t.BINARIES[d[1]];return t.BINARIES[d[0]].split("").map(function(p,m){return(p==="1"?"111":"1")+(f[m]==="1"?"000":"0")}).join("")}}]),a})(r.default);return lo.default=u,lo}var uo={},bd;function d2(){if(bd)return uo;bd=1,Object.defineProperty(uo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Lg(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=function(s){var a=s.substr(0,13).split("").map(function(d){return parseInt(d,10)}).reduce(function(d,f,p){return d+f*(3-p%2*2)},0);return Math.ceil(a/10)*10-a},u=(function(s){l(a,s);function a(d,f){return o(this,a),d.search(/^[0-9]{13}$/)!==-1&&(d+=c(d)),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===c(this.data)}}]),a})(n.default);return uo.default=u,uo}var wd;function f2(){if(wd)return $t;wd=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.ITF14=$t.ITF=void 0;var e=Lg(),t=o(e),n=d2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return $t.ITF=t.default,$t.ITF14=r.default,$t}var De={},co={},xd;function Mr(){if(xd)return co;xd=1,Object.defineProperty(co,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){l(a,s);function a(d,f){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"encode",value:function(){for(var d="110",f=0;f<this.data.length;f++){var p=parseInt(this.data[f]),m=p.toString(2);m=u(m,4-m.length);for(var h=0;h<m.length;h++)d+=m[h]=="0"?"100":"110"}return d+="1001",{data:d,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),a})(n.default);function u(s,a){for(var d=0;d<a;d++)s="0"+s;return s}return co.default=c,co}var fo={},Bn={},Ed;function $i(){if(Ed)return Bn;Ed=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.mod10=e,Bn.mod11=t;function e(n){for(var r=0,o=0;o<n.length;o++){var i=parseInt(n[o]);(o+n.length)%2===0?r+=i:r+=i*2%10+Math.floor(i*2/10)}return(10-r%10)%10}function t(n){for(var r=0,o=[2,3,4,5,6,7],i=0;i<n.length;i++){var l=parseInt(n[n.length-1-i]);r+=o[i%o.length]*l}return(11-r%11)%11}return Bn}var Sd;function p2(){if(Sd)return fo;Sd=1,Object.defineProperty(fo,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod10)(a),d))}return s})(t.default);return fo.default=c,fo}var po={},Cd;function h2(){if(Cd)return po;Cd=1,Object.defineProperty(po,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod11)(a),d))}return s})(t.default);return po.default=c,po}var ho={},_d;function m2(){if(_d)return ho;_d=1,Object.defineProperty(ho,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),a+=(0,n.mod10)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return ho.default=c,ho}var mo={},Pd;function v2(){if(Pd)return mo;Pd=1,Object.defineProperty(mo,"__esModule",{value:!0});var e=Mr(),t=r(e),n=$i();function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),a+=(0,n.mod11)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return mo.default=c,mo}var Rd;function g2(){if(Rd)return De;Rd=1,Object.defineProperty(De,"__esModule",{value:!0}),De.MSI1110=De.MSI1010=De.MSI11=De.MSI10=De.MSI=void 0;var e=Mr(),t=a(e),n=p2(),r=a(n),o=h2(),i=a(o),l=m2(),c=a(l),u=v2(),s=a(u);function a(d){return d&&d.__esModule?d:{default:d}}return De.MSI=t.default,De.MSI10=r.default,De.MSI11=i.default,De.MSI1010=c.default,De.MSI1110=s.default,De}var zn={},Od;function y2(){if(Od)return zn;Od=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.pharmacode=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){o(this,s);var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d));return f.number=parseInt(a,10),f}return e(s,[{key:"encode",value:function(){for(var a=this.number,d="";!isNaN(a)&&a!=0;)a%2===0?(d="11100"+d,a=(a-2)/2):(d="100"+d,a=(a-1)/2);return d=d.slice(0,-2),{data:d,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),s})(n.default);return zn.pharmacode=c,zn}var Un={},Td;function b2(){if(Td)return Un;Td=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.codabar=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){o(this,s),a.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(a="A"+a+"A");var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a.toUpperCase(),d));return f.text=f.options.text||f.text.replace(/[A-D]/g,""),f}return e(s,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var a=[],d=this.getEncodings(),f=0;f<this.data.length;f++)a.push(d[this.data.charAt(f)]),f!==this.data.length-1&&a.push("0");return{text:this.text,data:a.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),s})(n.default);return Un.codabar=c,Un}var Bt={},vo={},Hn={},jd;function w2(){return jd||(jd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Hn.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Hn.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}),Hn}var Md;function Ig(){if(Md)return vo;Md=1,Object.defineProperty(vo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=w2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function c(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){c(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.data.split("").flatMap(function(h){return t.MULTI_SYMBOLS[h]||h}),f=d.map(function(h){return a.getEncoding(h)}).join(""),p=a.checksum(d,20),m=a.checksum(d.concat(p),15);return{text:this.text,data:a.getEncoding("ÿ")+f+a.getEncoding(p)+a.getEncoding(m)+a.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(d){return t.BINARIES[a.symbolValue(d)]}},{key:"getSymbol",value:function(d){return t.SYMBOLS[d]}},{key:"symbolValue",value:function(d){return t.SYMBOLS.indexOf(d)}},{key:"checksum",value:function(d,f){var p=d.slice().reverse().reduce(function(m,h,v){var y=v%f+1;return m+a.symbolValue(h)*y},0);return a.getSymbol(p%47)}}]),a})(r.default);return vo.default=u,vo}var go={},Ad;function x2(){if(Ad)return go;Ad=1,Object.defineProperty(go,"__esModule",{value:!0});var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=Ig(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),s})(n.default);return go.default=c,go}var kd;function E2(){if(kd)return Bt;kd=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.CODE93FullASCII=Bt.CODE93=void 0;var e=Ig(),t=o(e),n=x2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return Bt.CODE93=t.default,Bt.CODE93FullASCII=r.default,Bt}var Gn={},Dd;function S2(){if(Dd)return Gn;Dd=1,Object.defineProperty(Gn,"__esModule",{value:!0}),Gn.GenericBarcode=void 0;var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=$e(),n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}function i(u,s){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:u}function l(u,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);u.prototype=Object.create(s&&s.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(u,s):u.__proto__=s)}var c=(function(u){l(s,u);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),s})(n.default);return Gn.GenericBarcode=c,Gn}var Ld;function C2(){if(Ld)return Xr;Ld=1,Object.defineProperty(Xr,"__esModule",{value:!0});var e=ZT(),t=r2(),n=u2(),r=f2(),o=g2(),i=y2(),l=b2(),c=E2(),u=S2();return Xr.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:o.MSI,MSI10:o.MSI10,MSI11:o.MSI11,MSI1010:o.MSI1010,MSI1110:o.MSI1110,pharmacode:i.pharmacode,codabar:l.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:u.GenericBarcode},Xr}var yo={},Id;function Bi(){if(Id)return yo;Id=1,Object.defineProperty(yo,"__esModule",{value:!0});var e=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};return yo.default=function(t,n){return e({},t,n)},yo}var bo={},Nd;function _2(){if(Nd)return bo;Nd=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=e;function e(t){var n=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",n.push(o)}return r(t),n}return bo}var wo={},Fd;function P2(){if(Fd)return wo;Fd=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=e;function e(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}return wo}var xo={},Eo={},So={},Vd;function Ng(){if(Vd)return So;Vd=1,Object.defineProperty(So,"__esModule",{value:!0}),So.default=e;function e(t){var n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in n)n.hasOwnProperty(r)&&(r=n[r],typeof t[r]=="string"&&(t[r]=parseInt(t[r],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}return So}var Co={},$d;function Fg(){if($d)return Co;$d=1,Object.defineProperty(Co,"__esModule",{value:!0});var e={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};return Co.default=e,Co}var Bd;function R2(){if(Bd)return Eo;Bd=1,Object.defineProperty(Eo,"__esModule",{value:!0});var e=Ng(),t=o(e),n=Fg(),r=o(n);function o(l){return l&&l.__esModule?l:{default:l}}function i(l){var c={};for(var u in r.default)r.default.hasOwnProperty(u)&&(l.hasAttribute("jsbarcode-"+u.toLowerCase())&&(c[u]=l.getAttribute("jsbarcode-"+u.toLowerCase())),l.hasAttribute("data-"+u.toLowerCase())&&(c[u]=l.getAttribute("data-"+u.toLowerCase())));return c.value=l.getAttribute("jsbarcode-value")||l.getAttribute("data-value"),c=(0,t.default)(c),c}return Eo.default=i,Eo}var _o={},Po={},Le={},zd;function Vg(){if(zd)return Le;zd=1,Object.defineProperty(Le,"__esModule",{value:!0}),Le.getTotalWidthOfEncodings=Le.calculateEncodingAttributes=Le.getBarcodePadding=Le.getEncodingHeight=Le.getMaximumHeightOfEncodings=void 0;var e=Bi(),t=n(e);function n(s){return s&&s.__esModule?s:{default:s}}function r(s,a){return a.height+(a.displayValue&&s.text.length>0?a.fontSize+a.textMargin:0)+a.marginTop+a.marginBottom}function o(s,a,d){if(d.displayValue&&a<s){if(d.textAlign=="center")return Math.floor((s-a)/2);if(d.textAlign=="left")return 0;if(d.textAlign=="right")return Math.floor(s-a)}return 0}function i(s,a,d){for(var f=0;f<s.length;f++){var p=s[f],m=(0,t.default)(a,p.options),h;m.displayValue?h=u(p.text,m,d):h=0;var v=p.data.length*m.width;p.width=Math.ceil(Math.max(h,v)),p.height=r(p,m),p.barcodePadding=o(h,v,m)}}function l(s){for(var a=0,d=0;d<s.length;d++)a+=s[d].width;return a}function c(s){for(var a=0,d=0;d<s.length;d++)s[d].height>a&&(a=s[d].height);return a}function u(s,a,d){var f;if(d)f=d;else if(typeof document<"u")f=document.createElement("canvas").getContext("2d");else return 0;f.font=a.fontOptions+" "+a.fontSize+"px "+a.font;var p=f.measureText(s);if(!p)return 0;var m=p.width;return m}return Le.getMaximumHeightOfEncodings=c,Le.getEncodingHeight=r,Le.getBarcodePadding=o,Le.calculateEncodingAttributes=i,Le.getTotalWidthOfEncodings=l,Le}var Ud;function O2(){if(Ud)return Po;Ud=1,Object.defineProperty(Po,"__esModule",{value:!0});var e=(function(){function c(u,s){for(var a=0;a<s.length;a++){var d=s[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,d.key,d)}}return function(u,s,a){return s&&c(u.prototype,s),a&&c(u,a),u}})(),t=Bi(),n=o(t),r=Vg();function o(c){return c&&c.__esModule?c:{default:c}}function i(c,u){if(!(c instanceof u))throw new TypeError("Cannot call a class as a function")}var l=(function(){function c(u,s,a){i(this,c),this.canvas=u,this.encodings=s,this.options=a}return e(c,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var u=0;u<this.encodings.length;u++){var s=(0,n.default)(this.options,this.encodings[u].options);this.drawCanvasBarcode(s,this.encodings[u]),this.drawCanvasText(s,this.encodings[u]),this.moveCanvasDrawing(this.encodings[u])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var u=this.canvas.getContext("2d");u.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,u);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=s+this.options.marginLeft+this.options.marginRight,this.canvas.height=a,u.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(u.fillStyle=this.options.background,u.fillRect(0,0,this.canvas.width,this.canvas.height)),u.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(u,s){var a=this.canvas.getContext("2d"),d=s.data,f;u.textPosition=="top"?f=u.marginTop+u.fontSize+u.textMargin:f=u.marginTop,a.fillStyle=u.lineColor;for(var p=0;p<d.length;p++){var m=p*u.width+s.barcodePadding;d[p]==="1"?a.fillRect(m,f,u.width,u.height):d[p]&&a.fillRect(m,f,u.width,u.height*d[p])}}},{key:"drawCanvasText",value:function(u,s){var a=this.canvas.getContext("2d"),d=u.fontOptions+" "+u.fontSize+"px "+u.font;if(u.displayValue){var f,p;u.textPosition=="top"?p=u.marginTop+u.fontSize-u.textMargin:p=u.height+u.textMargin+u.marginTop+u.fontSize,a.font=d,u.textAlign=="left"||s.barcodePadding>0?(f=0,a.textAlign="left"):u.textAlign=="right"?(f=s.width-1,a.textAlign="right"):(f=s.width/2,a.textAlign="center"),a.fillText(s.text,f,p)}}},{key:"moveCanvasDrawing",value:function(u){var s=this.canvas.getContext("2d");s.translate(u.width,0)}},{key:"restoreCanvas",value:function(){var u=this.canvas.getContext("2d");u.restore()}}]),c})();return Po.default=l,Po}var Ro={},Hd;function T2(){if(Hd)return Ro;Hd=1,Object.defineProperty(Ro,"__esModule",{value:!0});var e=(function(){function u(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&u(s.prototype,a),d&&u(s,d),s}})(),t=Bi(),n=o(t),r=Vg();function o(u){return u&&u.__esModule?u:{default:u}}function i(u,s){if(!(u instanceof s))throw new TypeError("Cannot call a class as a function")}var l="http://www.w3.org/2000/svg",c=(function(){function u(s,a,d){i(this,u),this.svg=s,this.encodings=a,this.options=d,this.document=d.xmlDocument||document}return e(u,[{key:"render",value:function(){var s=this.options.marginLeft;this.prepareSVG();for(var a=0;a<this.encodings.length;a++){var d=this.encodings[a],f=(0,n.default)(this.options,d.options),p=this.createGroup(s,f.marginTop,this.svg);this.setGroupOptions(p,f),this.drawSvgBarcode(p,f,d),this.drawSVGText(p,f,d),s+=d.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings),d=s+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(d,a),this.options.background&&this.drawRect(0,0,d,a,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(s,a,d){var f=d.data,p;a.textPosition=="top"?p=a.fontSize+a.textMargin:p=0;for(var m=0,h=0,v=0;v<f.length;v++)h=v*a.width+d.barcodePadding,f[v]==="1"?m++:m>0&&(this.drawRect(h-a.width*m,p,a.width*m,a.height,s),m=0);m>0&&this.drawRect(h-a.width*(m-1),p,a.width*m,a.height,s)}},{key:"drawSVGText",value:function(s,a,d){var f=this.document.createElementNS(l,"text");if(a.displayValue){var p,m;f.setAttribute("font-family",a.font),f.setAttribute("font-size",a.fontSize),a.fontOptions.includes("bold")&&f.setAttribute("font-weight","bold"),a.fontOptions.includes("italic")&&f.setAttribute("font-style","italic"),a.textPosition=="top"?m=a.fontSize-a.textMargin:m=a.height+a.textMargin+a.fontSize,a.textAlign=="left"||d.barcodePadding>0?(p=0,f.setAttribute("text-anchor","start")):a.textAlign=="right"?(p=d.width-1,f.setAttribute("text-anchor","end")):(p=d.width/2,f.setAttribute("text-anchor","middle")),f.setAttribute("x",p),f.setAttribute("y",m),f.appendChild(this.document.createTextNode(d.text)),s.appendChild(f)}}},{key:"setSvgAttributes",value:function(s,a){var d=this.svg;d.setAttribute("width",s+"px"),d.setAttribute("height",a+"px"),d.setAttribute("x","0px"),d.setAttribute("y","0px"),d.setAttribute("viewBox","0 0 "+s+" "+a),d.setAttribute("xmlns",l),d.setAttribute("version","1.1")}},{key:"createGroup",value:function(s,a,d){var f=this.document.createElementNS(l,"g");return f.setAttribute("transform","translate("+s+", "+a+")"),d.appendChild(f),f}},{key:"setGroupOptions",value:function(s,a){s.setAttribute("fill",a.lineColor)}},{key:"drawRect",value:function(s,a,d,f,p){var m=this.document.createElementNS(l,"rect");return m.setAttribute("x",s),m.setAttribute("y",a),m.setAttribute("width",d),m.setAttribute("height",f),p.appendChild(m),m}}]),u})();return Ro.default=c,Ro}var Oo={},Gd;function j2(){if(Gd)return Oo;Gd=1,Object.defineProperty(Oo,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o,i,l){t(this,r),this.object=o,this.encodings=i,this.options=l}return e(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r})();return Oo.default=n,Oo}var Wd;function M2(){if(Wd)return _o;Wd=1,Object.defineProperty(_o,"__esModule",{value:!0});var e=O2(),t=l(e),n=T2(),r=l(n),o=j2(),i=l(o);function l(c){return c&&c.__esModule?c:{default:c}}return _o.default={CanvasRenderer:t.default,SVGRenderer:r.default,ObjectRenderer:i.default},_o}var on={},Xd;function $g(){if(Xd)return on;Xd=1,Object.defineProperty(on,"__esModule",{value:!0});function e(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function t(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:l}function n(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}var r=(function(l){n(c,l);function c(u,s){e(this,c);var a=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return a.name="InvalidInputException",a.symbology=u,a.input=s,a.message='"'+a.input+'" is not a valid input for '+a.symbology,a}return c})(Error),o=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="InvalidElementException",u.message="Not supported type to render on",u}return c})(Error),i=(function(l){n(c,l);function c(){e(this,c);var u=t(this,(c.__proto__||Object.getPrototypeOf(c)).call(this));return u.name="NoElementException",u.message="No element to render on.",u}return c})(Error);return on.InvalidInputException=r,on.InvalidElementException=o,on.NoElementException=i,on}var Kd;function A2(){if(Kd)return xo;Kd=1,Object.defineProperty(xo,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=R2(),n=l(t),r=M2(),o=l(r),i=$g();function l(a){return a&&a.__esModule?a:{default:a}}function c(a){if(typeof a=="string")return u(a);if(Array.isArray(a)){for(var d=[],f=0;f<a.length;f++)d.push(c(a[f]));return d}else{if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLImageElement)return s(a);if(a&&a.nodeName&&a.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&a instanceof SVGElement)return{element:a,options:(0,n.default)(a),renderer:o.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement)return{element:a,options:(0,n.default)(a),renderer:o.default.CanvasRenderer};if(a&&a.getContext)return{element:a,renderer:o.default.CanvasRenderer};if(a&&(typeof a>"u"?"undefined":e(a))==="object"&&!a.nodeName)return{element:a,renderer:o.default.ObjectRenderer};throw new i.InvalidElementException}}function u(a){var d=document.querySelectorAll(a);if(d.length!==0){for(var f=[],p=0;p<d.length;p++)f.push(c(d[p]));return f}}function s(a){var d=document.createElement("canvas");return{element:d,options:(0,n.default)(a),renderer:o.default.CanvasRenderer,afterRender:function(){a.setAttribute("src",d.toDataURL())}}}return xo.default=c,xo}var To={},Yd;function k2(){if(Yd)return To;Yd=1,Object.defineProperty(To,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var c=i[l];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o){t(this,r),this.api=o}return e(r,[{key:"handleCatch",value:function(o){if(o.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw o.message;else throw o;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(o){try{var i=o.apply(void 0,arguments);return this.api._options.valid(!0),i}catch(l){return this.handleCatch(l),this.api}}}]),r})();return To.default=n,To}var xa,qd;function D2(){if(qd)return xa;qd=1;var e=C2(),t=y(e),n=Bi(),r=y(n),o=_2(),i=y(o),l=P2(),c=y(l),u=A2(),s=y(u),a=Ng(),d=y(a),f=k2(),p=y(f),m=$g(),h=Fg(),v=y(h);function y(T){return T&&T.__esModule?T:{default:T}}var b=function(){},x=function(T,P,k){var R=new b;if(typeof T>"u")throw Error("No element to render on was provided.");return R._renderProperties=(0,s.default)(T),R._encodings=[],R._options=v.default,R._errorHandler=new p.default(R),typeof P<"u"&&(k=k||{},k.format||(k.format=j()),R.options(k)[k.format](P,k).render()),R};x.getModule=function(T){return t.default[T]};for(var S in t.default)t.default.hasOwnProperty(S)&&E(t.default,S);function E(T,P){b.prototype[P]=b.prototype[P.toUpperCase()]=b.prototype[P.toLowerCase()]=function(k,R){var $=this;return $._errorHandler.wrapBarcodeCall(function(){R.text=typeof R.text>"u"?void 0:""+R.text;var F=(0,r.default)($._options,R);F=(0,d.default)(F);var H=T[P],B=A(k,H,F);return $._encodings.push(B),$})}}function A(T,P,k){T=""+T;var R=new P(T,k);if(!R.valid())throw new m.InvalidInputException(R.constructor.name,T);var $=R.encode();$=(0,i.default)($);for(var F=0;F<$.length;F++)$[F].options=(0,r.default)(k,$[F].options);return $}function j(){return t.default.CODE128?"CODE128":Object.keys(t.default)[0]}b.prototype.options=function(T){return this._options=(0,r.default)(this._options,T),this},b.prototype.blank=function(T){var P=new Array(T+1).join("0");return this._encodings.push({data:P}),this},b.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var T;for(var P in this._renderProperties){T=this._renderProperties[P];var k=(0,r.default)(this._options,T.options);k.format=="auto"&&(k.format=j()),this._errorHandler.wrapBarcodeCall(function(){var R=k.value,$=t.default[k.format.toUpperCase()],F=A(R,$,k);O(T,F,k)})}}},b.prototype.render=function(){if(!this._renderProperties)throw new m.NoElementException;if(Array.isArray(this._renderProperties))for(var T=0;T<this._renderProperties.length;T++)O(this._renderProperties[T],this._encodings,this._options);else O(this._renderProperties,this._encodings,this._options);return this},b.prototype._defaults=v.default;function O(T,P,k){P=(0,i.default)(P);for(var R=0;R<P.length;R++)P[R].options=(0,r.default)(k,P[R].options),(0,c.default)(P[R].options);(0,c.default)(k);var $=T.renderer,F=new $(T.element,P,k);F.render(),T.afterRender&&T.afterRender()}return typeof window<"u"&&(window.JsBarcode=x),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(T,P){var k=[];return jQuery(this).each(function(){k.push(this)}),x(k,T,P)}),xa=x,xa}var jo={exports:{}},Ea={exports:{}},ue={};/** @license React v16.13.1
|
|
116
|
+
*/var HT={L:fn.QrCode.Ecc.LOW,M:fn.QrCode.Ecc.MEDIUM,Q:fn.QrCode.Ecc.QUARTILE,H:fn.QrCode.Ecc.HIGH},E0=128,C0="L",S0="#FFFFFF",_0="#000000",P0=!1,R0=1,WT=4,GT=0,XT=.1;function O0(e,t=0){const n=[];return e.forEach(function(r,o){let i=null;r.forEach(function(l,u){if(!l&&i!==null){n.push(`M${i+t} ${o+t}h${u-i}v1H${i+t}z`),i=null;return}if(u===r.length-1){if(!l)return;i===null?n.push(`M${u+t},${o+t} h1v1H${u+t}z`):n.push(`M${i+t},${o+t} h${u+1-i}v1H${i+t}z`);return}l&&i===null&&(i=u)})}),n.join("")}function T0(e,t){return e.slice().map((n,r)=>r<t.y||r>=t.y+t.h?n:n.map((o,i)=>i<t.x||i>=t.x+t.w?o:!1))}function KT(e,t,n,r){if(r==null)return null;const o=e.length+n*2,i=Math.floor(t*XT),l=o/t,u=(r.width||i)*l,c=(r.height||i)*l,s=r.x==null?e.length/2-u/2:r.x*l,a=r.y==null?e.length/2-c/2:r.y*l,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let m=Math.floor(s),h=Math.floor(a),v=Math.ceil(u+s-m),y=Math.ceil(c+a-h);f={x:m,y:h,w:v,h:y}}const p=r.crossOrigin;return{x:s,y:a,h:c,w:u,excavation:f,opacity:d,crossOrigin:p}}function YT(e,t){return t!=null?Math.max(Math.floor(t),0):e?WT:GT}function j0({value:e,level:t,minVersion:n,includeMargin:r,marginSize:o,imageSettings:i,size:l,boostLevel:u}){let c=_.useMemo(()=>{const p=(Array.isArray(e)?e:[e]).reduce((m,h)=>(m.push(...fn.QrSegment.makeSegments(h)),m),[]);return fn.QrCode.encodeSegments(p,HT[t],n,void 0,void 0,u)},[e,t,n,u]);const{cells:s,margin:a,numCells:d,calculatedImageSettings:f}=_.useMemo(()=>{let p=c.getModules();const m=YT(r,o),h=p.length+m*2,v=KT(p,l,m,i);return{cells:p,margin:m,numCells:h,calculatedImageSettings:v}},[c,l,i,r,o]);return{qrcode:c,margin:a,cells:s,numCells:d,calculatedImageSettings:f}}var qT=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),ZT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=E0,level:i=C0,bgColor:l=S0,fgColor:u=_0,includeMargin:c=P0,minVersion:s=R0,boostLevel:a,marginSize:d,imageSettings:f}=n,p=bs(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:m}=p,h=bs(p,["style"]),v=f==null?void 0:f.src,y=_.useRef(null),b=_.useRef(null),x=_.useCallback(O=>{y.current=O,typeof t=="function"?t(O):t&&(t.current=O)},[t]),[E,C]=_.useState(!1),{margin:T,cells:A,numCells:j,calculatedImageSettings:R}=j0({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:c,marginSize:d,imageSettings:f,size:o});_.useEffect(()=>{if(y.current!=null){const O=y.current,$=O.getContext("2d");if(!$)return;let F=A;const H=b.current,B=R!=null&&H!==null&&H.complete&&H.naturalHeight!==0&&H.naturalWidth!==0;B&&R.excavation!=null&&(F=T0(A,R.excavation));const G=window.devicePixelRatio||1;O.height=O.width=o*G;const W=o/j*G;$.scale(W,W),$.fillStyle=l,$.fillRect(0,0,j,j),$.fillStyle=u,qT?$.fill(new Path2D(O0(F,T))):A.forEach(function(N,M){N.forEach(function(D,ee){D&&$.fillRect(ee+T,M+T,1,1)})}),R&&($.globalAlpha=R.opacity),B&&$.drawImage(H,R.x+T,R.y+T,R.w,R.h)}}),_.useEffect(()=>{C(!1)},[v]);const P=ys({height:o,width:o},m);let k=null;return v!=null&&(k=_.createElement("img",{src:v,key:v,style:{display:"none"},onLoad:()=>{C(!0)},ref:b,crossOrigin:R==null?void 0:R.crossOrigin})),_.createElement(_.Fragment,null,_.createElement("canvas",ys({style:P,height:o,width:o,ref:x,role:"img"},h)),k)});ZT.displayName="QRCodeCanvas";var QT=_.forwardRef(function(e,t){const n=e,{value:r,size:o=E0,level:i=C0,bgColor:l=S0,fgColor:u=_0,includeMargin:c=P0,minVersion:s=R0,boostLevel:a,title:d,marginSize:f,imageSettings:p}=n,m=bs(n,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:h,cells:v,numCells:y,calculatedImageSettings:b}=j0({value:r,level:i,minVersion:s,boostLevel:a,includeMargin:c,marginSize:f,imageSettings:p,size:o});let x=v,E=null;p!=null&&b!=null&&(b.excavation!=null&&(x=T0(v,b.excavation)),E=_.createElement("image",{href:p.src,height:b.h,width:b.w,x:b.x+h,y:b.y+h,preserveAspectRatio:"none",opacity:b.opacity,crossOrigin:b.crossOrigin}));const C=O0(x,h);return _.createElement("svg",ys({height:o,width:o,viewBox:`0 0 ${y} ${y}`,ref:t,role:"img"},m),!!d&&_.createElement("title",null,d),_.createElement("path",{fill:l,d:`M0,0 h${y}v${y}H0z`,shapeRendering:"crispEdges"}),_.createElement("path",{fill:u,d:C,shapeRendering:"crispEdges"}),E)});QT.displayName="QRCodeSVG";var Gr={},Fn={},Xr={},Zc;function $e(){if(Zc)return Xr;Zc=1,Object.defineProperty(Xr,"__esModule",{value:!0});function e(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}var t=function n(r,o){e(this,n),this.data=r,this.text=o.text||r,this.options=o};return Xr.default=t,Xr}var Qc;function JT(){if(Qc)return Fn;Qc=1,Object.defineProperty(Fn,"__esModule",{value:!0}),Fn.CODE39=void 0;var e=(function(){function h(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}return function(v,y,b){return y&&h(v.prototype,y),b&&h(v,b),v}})(),t=$e(),n=r(t);function r(h){return h&&h.__esModule?h:{default:h}}function o(h,v){if(!(h instanceof v))throw new TypeError("Cannot call a class as a function")}function i(h,v){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:h}function l(h,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);h.prototype=Object.create(v&&v.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(h,v):h.__proto__=v)}var u=(function(h){l(v,h);function v(y,b){return o(this,v),y=y.toUpperCase(),b.mod43&&(y+=f(m(y))),i(this,(v.__proto__||Object.getPrototypeOf(v)).call(this,y,b))}return e(v,[{key:"encode",value:function(){for(var y=a("*"),b=0;b<this.data.length;b++)y+=a(this.data[b])+"0";return y+=a("*"),{data:y,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),v})(n.default),c=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","*"],s=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function a(h){return d(p(h))}function d(h){return s[h].toString(2)}function f(h){return c[h]}function p(h){return c.indexOf(h)}function m(h){for(var v=0,y=0;y<h.length;y++)v+=p(h[y]);return v=v%43,v}return Fn.CODE39=u,Fn}var Xe={},Kr={},Yr={},be={},Jc;function Rr(){if(Jc)return be;Jc=1,Object.defineProperty(be,"__esModule",{value:!0});var e;function t(c,s,a){return s in c?Object.defineProperty(c,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):c[s]=a,c}var n=be.SET_A=0,r=be.SET_B=1,o=be.SET_C=2;be.SHIFT=98;var i=be.START_A=103,l=be.START_B=104,u=be.START_C=105;return be.MODULO=103,be.STOP=106,be.FNC1=207,be.SET_BY_CODE=(e={},t(e,i,n),t(e,l,r),t(e,u,o),e),be.SWAP={101:n,100:r,99:o},be.A_START_CHAR="Ð",be.B_START_CHAR="Ñ",be.C_START_CHAR="Ò",be.A_CHARS="[\0-_È-Ï]",be.B_CHARS="[ -È-Ï]",be.C_CHARS="(Ï*[0-9]{2}Ï*)",be.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011],be}var ed;function Fi(){if(ed)return Yr;ed=1,Object.defineProperty(Yr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=o(t),r=Rr();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){i(this,a);var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d.substring(1),f));return p.bytes=d.split("").map(function(m){return m.charCodeAt(0)}),p}return e(a,[{key:"valid",value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.bytes,f=d.shift()-105,p=r.SET_BY_CODE[f];if(p===void 0)throw new RangeError("The encoding does not start with a start character.");this.shouldEncodeAsEan128()===!0&&d.unshift(r.FNC1);var m=a.next(d,1,p);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,""):this.text,data:a.getBar(f)+m.result+a.getBar((m.checksum+f)%r.MODULO)+a.getBar(r.STOP)}}},{key:"shouldEncodeAsEan128",value:function(){var d=this.options.ean128||!1;return typeof d=="string"&&(d=d.toLowerCase()==="true"),d}}],[{key:"getBar",value:function(d){return r.BARS[d]?r.BARS[d].toString():""}},{key:"correctIndex",value:function(d,f){if(f===r.SET_A){var p=d.shift();return p<32?p+64:p-32}else return f===r.SET_B?d.shift()-32:(d.shift()-48)*10+d.shift()-48}},{key:"next",value:function(d,f,p){if(!d.length)return{result:"",checksum:0};var m=void 0,h=void 0;if(d[0]>=200){h=d.shift()-105;var v=r.SWAP[h];v!==void 0?m=a.next(d,f+1,v):((p===r.SET_A||p===r.SET_B)&&h===r.SHIFT&&(d[0]=p===r.SET_A?d[0]>95?d[0]-96:d[0]:d[0]<32?d[0]+96:d[0]),m=a.next(d,f+1,p))}else h=a.correctIndex(d,p),m=a.next(d,f+1,p);var y=a.getBar(h),b=h*f;return{result:y+m.result,checksum:b+m.checksum}}}]),a})(n.default);return Yr.default=c,Yr}var qr={},td;function e2(){if(td)return qr;td=1,Object.defineProperty(qr,"__esModule",{value:!0});var e=Rr(),t=function(l){return l.match(new RegExp("^"+e.A_CHARS+"*"))[0].length},n=function(l){return l.match(new RegExp("^"+e.B_CHARS+"*"))[0].length},r=function(l){return l.match(new RegExp("^"+e.C_CHARS+"*"))[0]};function o(l,u){var c=u?e.A_CHARS:e.B_CHARS,s=l.match(new RegExp("^("+c+"+?)(([0-9]{2}){2,})([^0-9]|$)"));if(s)return s[1]+"Ì"+i(l.substring(s[1].length));var a=l.match(new RegExp("^"+c+"+"))[0];return a.length===l.length?l:a+String.fromCharCode(u?205:206)+o(l.substring(a.length),!u)}function i(l){var u=r(l),c=u.length;if(c===l.length)return l;l=l.substring(c);var s=t(l)>=n(l);return u+String.fromCharCode(s?206:205)+o(l,s)}return qr.default=function(l){var u=void 0,c=r(l).length;if(c>=2)u=e.C_START_CHAR+i(l);else{var s=t(l)>n(l);u=(s?e.A_START_CHAR:e.B_START_CHAR)+o(l,s)}return u.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(a,d){return"Ë"+d})},qr}var nd;function t2(){if(nd)return Kr;nd=1,Object.defineProperty(Kr,"__esModule",{value:!0});var e=Fi(),t=o(e),n=e2(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){if(i(this,a),/^[\x00-\x7F\xC8-\xD3]+$/.test(d))var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,(0,r.default)(d),f));else var p=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f));return l(p)}return a})(t.default);return Kr.default=c,Kr}var Zr={},rd;function n2(){if(rd)return Zr;rd=1,Object.defineProperty(Zr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Fi(),n=o(t),r=Rr();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.A_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.A_CHARS+"+$").test(this.data)}}]),a})(n.default);return Zr.default=c,Zr}var Qr={},od;function r2(){if(od)return Qr;od=1,Object.defineProperty(Qr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Fi(),n=o(t),r=Rr();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.B_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.B_CHARS+"+$").test(this.data)}}]),a})(n.default);return Qr.default=c,Qr}var Jr={},id;function o2(){if(id)return Jr;id=1,Object.defineProperty(Jr,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=Fi(),n=o(t),r=Rr();function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,r.C_START_CHAR+d,f))}return e(a,[{key:"valid",value:function(){return new RegExp("^"+r.C_CHARS+"+$").test(this.data)}}]),a})(n.default);return Jr.default=c,Jr}var ad;function i2(){if(ad)return Xe;ad=1,Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.CODE128C=Xe.CODE128B=Xe.CODE128A=Xe.CODE128=void 0;var e=t2(),t=c(e),n=n2(),r=c(n),o=r2(),i=c(o),l=o2(),u=c(l);function c(s){return s&&s.__esModule?s:{default:s}}return Xe.CODE128=t.default,Xe.CODE128A=r.default,Xe.CODE128B=i.default,Xe.CODE128C=u.default,Xe}var Te={},eo={},wt={},sd;function Or(){return sd||(sd=1,Object.defineProperty(wt,"__esModule",{value:!0}),wt.SIDE_BIN="101",wt.MIDDLE_BIN="01010",wt.BINARIES={L:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],G:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],R:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"],O:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],E:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"]},wt.EAN2_STRUCTURE=["LL","LG","GL","GG"],wt.EAN5_STRUCTURE=["GGLLL","GLGLL","GLLGL","GLLLG","LGGLL","LLGGL","LLLGG","LGLGL","LGLLG","LLGLG"],wt.EAN13_STRUCTURE=["LLLLLL","LLGLGG","LLGGLG","LLGGGL","LGLLGG","LGGLLG","LGGGLL","LGLGLG","LGLGGL","LGGLGL"]),wt}var to={},no={},ld;function Tr(){if(ld)return no;ld=1,Object.defineProperty(no,"__esModule",{value:!0});var e=Or(),t=function(n,r,o){var i=n.split("").map(function(u,c){return e.BINARIES[r[c]]}).map(function(u,c){return u?u[n[c]]:""});if(o){var l=n.length-1;i=i.map(function(u,c){return c<l?u+o:u})}return i.join("")};return no.default=t,no}var ud;function M0(){if(ud)return to;ud=1,Object.defineProperty(to,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Or(),n=Tr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function u(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){u(this,f);var h=c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.fontSize=!m.flat&&m.fontSize>m.width*10?m.width*10:m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"encode",value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:"leftText",value:function(p,m){return this.text.substr(p,m)}},{key:"leftEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"rightText",value:function(p,m){return this.text.substr(p,m)}},{key:"rightEncode",value:function(p,m){return(0,r.default)(p,m)}},{key:"encodeGuarded",value:function(){var p={fontSize:this.fontSize},m={height:this.guardHeight};return[{data:t.SIDE_BIN,options:m},{data:this.leftEncode(),text:this.leftText(),options:p},{data:t.MIDDLE_BIN,options:m},{data:this.rightEncode(),text:this.rightText(),options:p},{data:t.SIDE_BIN,options:m}]}},{key:"encodeFlat",value:function(){var p=[t.SIDE_BIN,this.leftEncode(),t.MIDDLE_BIN,this.rightEncode(),t.SIDE_BIN];return{data:p.join(""),text:this.text}}}]),f})(i.default);return to.default=a,to}var cd;function a2(){if(cd)return eo;cd=1,Object.defineProperty(eo,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=function d(f,p,m){f===null&&(f=Function.prototype);var h=Object.getOwnPropertyDescriptor(f,p);if(h===void 0){var v=Object.getPrototypeOf(f);return v===null?void 0:d(v,p,m)}else{if("value"in h)return h.value;var y=h.get;return y===void 0?void 0:y.call(m)}},n=Or(),r=M0(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function c(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=function(d){var f=d.substr(0,12).split("").map(function(p){return+p}).reduce(function(p,m,h){return h%2?p+m*3:p+m},0);return(10-f%10)%10},a=(function(d){c(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{12}$/)!==-1&&(p+=s(p));var h=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.lastChar=m.lastChar,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===s(this.data)}},{key:"leftText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftText",this).call(this,1,6)}},{key:"leftEncode",value:function(){var p=this.data.substr(1,6),m=n.EAN13_STRUCTURE[this.data[0]];return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"leftEncode",this).call(this,p,m)}},{key:"rightText",value:function(){return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightText",this).call(this,7,6)}},{key:"rightEncode",value:function(){var p=this.data.substr(7,6);return t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"rightEncode",this).call(this,p,"RRRRRR")}},{key:"encodeGuarded",value:function(){var p=t(f.prototype.__proto__||Object.getPrototypeOf(f.prototype),"encodeGuarded",this).call(this);return this.options.displayValue&&(p.unshift({data:"000000000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),this.options.lastChar&&(p.push({data:"00"}),p.push({data:"00000",text:this.options.lastChar,options:{fontSize:this.fontSize}}))),p}}]),f})(o.default);return eo.default=a,eo}var ro={},dd;function s2(){if(dd)return ro;dd=1,Object.defineProperty(ro,"__esModule",{value:!0});var e=(function(){function a(d,f){for(var p=0;p<f.length;p++){var m=f[p];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(d,m.key,m)}}return function(d,f,p){return f&&a(d.prototype,f),p&&a(d,p),d}})(),t=function a(d,f,p){d===null&&(d=Function.prototype);var m=Object.getOwnPropertyDescriptor(d,f);if(m===void 0){var h=Object.getPrototypeOf(d);return h===null?void 0:a(h,f,p)}else{if("value"in m)return m.value;var v=m.get;return v===void 0?void 0:v.call(p)}},n=M0(),r=o(n);function o(a){return a&&a.__esModule?a:{default:a}}function i(a,d){if(!(a instanceof d))throw new TypeError("Cannot call a class as a function")}function l(a,d){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:a}function u(a,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}var c=function(a){var d=a.substr(0,7).split("").map(function(f){return+f}).reduce(function(f,p,m){return m%2?f+p:f+p*3},0);return(10-d%10)%10},s=(function(a){u(d,a);function d(f,p){return i(this,d),f.search(/^[0-9]{7}$/)!==-1&&(f+=c(f)),l(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,f,p))}return e(d,[{key:"valid",value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===c(this.data)}},{key:"leftText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftText",this).call(this,0,4)}},{key:"leftEncode",value:function(){var f=this.data.substr(0,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"leftEncode",this).call(this,f,"LLLL")}},{key:"rightText",value:function(){return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightText",this).call(this,4,4)}},{key:"rightEncode",value:function(){var f=this.data.substr(4,4);return t(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"rightEncode",this).call(this,f,"RRRR")}}]),d})(r.default);return ro.default=s,ro}var oo={},fd;function l2(){if(fd)return oo;fd=1,Object.defineProperty(oo,"__esModule",{value:!0});var e=(function(){function f(p,m){for(var h=0;h<m.length;h++){var v=m[h];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(p,v.key,v)}}return function(p,m,h){return m&&f(p.prototype,m),h&&f(p,h),p}})(),t=Or(),n=Tr(),r=l(n),o=$e(),i=l(o);function l(f){return f&&f.__esModule?f:{default:f}}function u(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function c(f,p){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:f}function s(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(f,p):f.__proto__=p)}var a=function(f){var p=f.split("").map(function(m){return+m}).reduce(function(m,h,v){return v%2?m+h*9:m+h*3},0);return p%10},d=(function(f){s(p,f);function p(m,h){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,m,h))}return e(p,[{key:"valid",value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:"encode",value:function(){var m=t.EAN5_STRUCTURE[a(this.data)];return{data:"1011"+(0,r.default)(this.data,m,"01"),text:this.text}}}]),p})(i.default);return oo.default=d,oo}var io={},pd;function u2(){if(pd)return io;pd=1,Object.defineProperty(io,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})(),t=Or(),n=Tr(),r=l(n),o=$e(),i=l(o);function l(d){return d&&d.__esModule?d:{default:d}}function u(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function c(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function s(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var a=(function(d){s(f,d);function f(p,m){return u(this,f),c(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m))}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:"encode",value:function(){var p=t.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:"1011"+(0,r.default)(this.data,p,"01"),text:this.text}}}]),f})(i.default);return io.default=a,io}var Vn={},hd;function A0(){if(hd)return Vn;hd=1,Object.defineProperty(Vn,"__esModule",{value:!0});var e=(function(){function d(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}return function(f,p,m){return p&&d(f.prototype,p),m&&d(f,m),f}})();Vn.checksum=a;var t=Tr(),n=i(t),r=$e(),o=i(r);function i(d){return d&&d.__esModule?d:{default:d}}function l(d,f){if(!(d instanceof f))throw new TypeError("Cannot call a class as a function")}function u(d,f){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f&&(typeof f=="object"||typeof f=="function")?f:d}function c(d,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof f);d.prototype=Object.create(f&&f.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(d,f):d.__proto__=f)}var s=(function(d){c(f,d);function f(p,m){l(this,f),p.search(/^[0-9]{11}$/)!==-1&&(p+=a(p));var h=u(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,p,m));return h.displayValue=m.displayValue,m.fontSize>m.width*10?h.fontSize=m.width*10:h.fontSize=m.fontSize,h.guardHeight=m.height+h.fontSize/2+m.textMargin,h}return e(f,[{key:"valid",value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==a(this.data)}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var p="";return p+="101",p+=(0,n.default)(this.data.substr(0,6),"LLLLLL"),p+="01010",p+=(0,n.default)(this.data.substr(6,6),"RRRRRR"),p+="101",{data:p,text:this.text}}},{key:"guardedEncoding",value:function(){var p=[];return this.displayValue&&p.push({data:"00000000",text:this.text.substr(0,1),options:{textAlign:"left",fontSize:this.fontSize}}),p.push({data:"101"+(0,n.default)(this.data[0],"L"),options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(1,5),"LLLLL"),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),p.push({data:"01010",options:{height:this.guardHeight}}),p.push({data:(0,n.default)(this.data.substr(6,5),"RRRRR"),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),p.push({data:(0,n.default)(this.data[11],"R")+"101",options:{height:this.guardHeight}}),this.displayValue&&p.push({data:"00000000",text:this.text.substr(11,1),options:{textAlign:"right",fontSize:this.fontSize}}),p}}]),f})(o.default);function a(d){var f=0,p;for(p=1;p<11;p+=2)f+=parseInt(d[p]);for(p=0;p<11;p+=2)f+=parseInt(d[p])*3;return(10-f%10)%10}return Vn.default=s,Vn}var ao={},md;function c2(){if(md)return ao;md=1,Object.defineProperty(ao,"__esModule",{value:!0});var e=(function(){function m(h,v){for(var y=0;y<v.length;y++){var b=v[y];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(h,b.key,b)}}return function(h,v,y){return v&&m(h.prototype,v),y&&m(h,y),h}})(),t=Tr(),n=l(t),r=$e(),o=l(r),i=A0();function l(m){return m&&m.__esModule?m:{default:m}}function u(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function c(m,h){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:m}function s(m,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);m.prototype=Object.create(h&&h.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(m,h):m.__proto__=h)}var a=["XX00000XXX","XX10000XXX","XX20000XXX","XXX00000XX","XXXX00000X","XXXXX00005","XXXXX00006","XXXXX00007","XXXXX00008","XXXXX00009"],d=[["EEEOOO","OOOEEE"],["EEOEOO","OOEOEE"],["EEOOEO","OOEEOE"],["EEOOOE","OOEEEO"],["EOEEOO","OEOOEE"],["EOOEEO","OEEOOE"],["EOOOEE","OEEEOO"],["EOEOEO","OEOEOE"],["EOEOOE","OEOEEO"],["EOOEOE","OEEOEO"]],f=(function(m){s(h,m);function h(v,y){u(this,h);var b=c(this,(h.__proto__||Object.getPrototypeOf(h)).call(this,v,y));if(b.isValid=!1,v.search(/^[0-9]{6}$/)!==-1)b.middleDigits=v,b.upcA=p(v,"0"),b.text=y.text||""+b.upcA[0]+v+b.upcA[b.upcA.length-1],b.isValid=!0;else if(v.search(/^[01][0-9]{7}$/)!==-1)if(b.middleDigits=v.substring(1,v.length-1),b.upcA=p(b.middleDigits,v[0]),b.upcA[b.upcA.length-1]===v[v.length-1])b.isValid=!0;else return c(b);else return c(b);return b.displayValue=y.displayValue,y.fontSize>y.width*10?b.fontSize=y.width*10:b.fontSize=y.fontSize,b.guardHeight=y.height+b.fontSize/2+y.textMargin,b}return e(h,[{key:"valid",value:function(){return this.isValid}},{key:"encode",value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:"flatEncoding",value:function(){var v="";return v+="101",v+=this.encodeMiddleDigits(),v+="010101",{data:v,text:this.text}}},{key:"guardedEncoding",value:function(){var v=[];return this.displayValue&&v.push({data:"00000000",text:this.text[0],options:{textAlign:"left",fontSize:this.fontSize}}),v.push({data:"101",options:{height:this.guardHeight}}),v.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),v.push({data:"010101",options:{height:this.guardHeight}}),this.displayValue&&v.push({data:"00000000",text:this.text[7],options:{textAlign:"right",fontSize:this.fontSize}}),v}},{key:"encodeMiddleDigits",value:function(){var v=this.upcA[0],y=this.upcA[this.upcA.length-1],b=d[parseInt(y)][parseInt(v)];return(0,n.default)(this.middleDigits,b)}}]),h})(o.default);function p(m,h){for(var v=parseInt(m[m.length-1]),y=a[v],b="",x=0,E=0;E<y.length;E++){var C=y[E];C==="X"?b+=m[x++]:b+=C}return b=""+h+b,""+b+(0,i.checksum)(b)}return ao.default=f,ao}var vd;function d2(){if(vd)return Te;vd=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.UPCE=Te.UPC=Te.EAN2=Te.EAN5=Te.EAN8=Te.EAN13=void 0;var e=a2(),t=f(e),n=s2(),r=f(n),o=l2(),i=f(o),l=u2(),u=f(l),c=A0(),s=f(c),a=c2(),d=f(a);function f(p){return p&&p.__esModule?p:{default:p}}return Te.EAN13=t.default,Te.EAN8=r.default,Te.EAN5=i.default,Te.EAN2=u.default,Te.UPC=s.default,Te.UPCE=d.default,Te}var $t={},so={},$n={},gd;function f2(){return gd||(gd=1,Object.defineProperty($n,"__esModule",{value:!0}),$n.START_BIN="1010",$n.END_BIN="11101",$n.BINARIES=["00110","10001","01001","11000","00101","10100","01100","00011","10010","01010"]),$n}var yd;function k0(){if(yd)return so;yd=1,Object.defineProperty(so,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=f2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}return e(a,[{key:"valid",value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:"encode",value:function(){var d=this,f=this.data.match(/.{2}/g).map(function(p){return d.encodePair(p)}).join("");return{data:t.START_BIN+f+t.END_BIN,text:this.text}}},{key:"encodePair",value:function(d){var f=t.BINARIES[d[1]];return t.BINARIES[d[0]].split("").map(function(p,m){return(p==="1"?"111":"1")+(f[m]==="1"?"000":"0")}).join("")}}]),a})(r.default);return so.default=c,so}var lo={},bd;function p2(){if(bd)return lo;bd=1,Object.defineProperty(lo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=k0(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=function(s){var a=s.substr(0,13).split("").map(function(d){return parseInt(d,10)}).reduce(function(d,f,p){return d+f*(3-p%2*2)},0);return Math.ceil(a/10)*10-a},c=(function(s){l(a,s);function a(d,f){return o(this,a),d.search(/^[0-9]{13}$/)!==-1&&(d+=u(d)),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===u(this.data)}}]),a})(n.default);return lo.default=c,lo}var wd;function h2(){if(wd)return $t;wd=1,Object.defineProperty($t,"__esModule",{value:!0}),$t.ITF14=$t.ITF=void 0;var e=k0(),t=o(e),n=p2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return $t.ITF=t.default,$t.ITF14=r.default,$t}var De={},uo={},xd;function jr(){if(xd)return uo;xd=1,Object.defineProperty(uo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=$e(),n=r(t);function r(s){return s&&s.__esModule?s:{default:s}}function o(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function i(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function l(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var u=(function(s){l(a,s);function a(d,f){return o(this,a),i(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"encode",value:function(){for(var d="110",f=0;f<this.data.length;f++){var p=parseInt(this.data[f]),m=p.toString(2);m=c(m,4-m.length);for(var h=0;h<m.length;h++)d+=m[h]=="0"?"100":"110"}return d+="1001",{data:d,text:this.text}}},{key:"valid",value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),a})(n.default);function c(s,a){for(var d=0;d<a;d++)s="0"+s;return s}return uo.default=u,uo}var co={},Bn={},Ed;function Vi(){if(Ed)return Bn;Ed=1,Object.defineProperty(Bn,"__esModule",{value:!0}),Bn.mod10=e,Bn.mod11=t;function e(n){for(var r=0,o=0;o<n.length;o++){var i=parseInt(n[o]);(o+n.length)%2===0?r+=i:r+=i*2%10+Math.floor(i*2/10)}return(10-r%10)%10}function t(n){for(var r=0,o=[2,3,4,5,6,7],i=0;i<n.length;i++){var l=parseInt(n[n.length-1-i]);r+=o[i%o.length]*l}return(11-r%11)%11}return Bn}var Cd;function m2(){if(Cd)return co;Cd=1,Object.defineProperty(co,"__esModule",{value:!0});var e=jr(),t=r(e),n=Vi();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod10)(a),d))}return s})(t.default);return co.default=u,co}var fo={},Sd;function v2(){if(Sd)return fo;Sd=1,Object.defineProperty(fo,"__esModule",{value:!0});var e=jr(),t=r(e),n=Vi();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a+(0,n.mod11)(a),d))}return s})(t.default);return fo.default=u,fo}var po={},_d;function g2(){if(_d)return po;_d=1,Object.defineProperty(po,"__esModule",{value:!0});var e=jr(),t=r(e),n=Vi();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),a+=(0,n.mod10)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return po.default=u,po}var ho={},Pd;function y2(){if(Pd)return ho;Pd=1,Object.defineProperty(ho,"__esModule",{value:!0});var e=jr(),t=r(e),n=Vi();function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),a+=(0,n.mod11)(a),a+=(0,n.mod10)(a),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return s})(t.default);return ho.default=u,ho}var Rd;function b2(){if(Rd)return De;Rd=1,Object.defineProperty(De,"__esModule",{value:!0}),De.MSI1110=De.MSI1010=De.MSI11=De.MSI10=De.MSI=void 0;var e=jr(),t=a(e),n=m2(),r=a(n),o=v2(),i=a(o),l=g2(),u=a(l),c=y2(),s=a(c);function a(d){return d&&d.__esModule?d:{default:d}}return De.MSI=t.default,De.MSI10=r.default,De.MSI11=i.default,De.MSI1010=u.default,De.MSI1110=s.default,De}var zn={},Od;function w2(){if(Od)return zn;Od=1,Object.defineProperty(zn,"__esModule",{value:!0}),zn.pharmacode=void 0;var e=(function(){function c(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&c(s.prototype,a),d&&c(s,d),s}})(),t=$e(),n=r(t);function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){o(this,s);var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d));return f.number=parseInt(a,10),f}return e(s,[{key:"encode",value:function(){for(var a=this.number,d="";!isNaN(a)&&a!=0;)a%2===0?(d="11100"+d,a=(a-2)/2):(d="100"+d,a=(a-1)/2);return d=d.slice(0,-2),{data:d,text:this.text}}},{key:"valid",value:function(){return this.number>=3&&this.number<=131070}}]),s})(n.default);return zn.pharmacode=u,zn}var Un={},Td;function x2(){if(Td)return Un;Td=1,Object.defineProperty(Un,"__esModule",{value:!0}),Un.codabar=void 0;var e=(function(){function c(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&c(s.prototype,a),d&&c(s,d),s}})(),t=$e(),n=r(t);function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){o(this,s),a.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(a="A"+a+"A");var f=i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a.toUpperCase(),d));return f.text=f.options.text||f.text.replace(/[A-D]/g,""),f}return e(s,[{key:"valid",value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:"encode",value:function(){for(var a=[],d=this.getEncodings(),f=0;f<this.data.length;f++)a.push(d[this.data.charAt(f)]),f!==this.data.length-1&&a.push("0");return{text:this.text,data:a.join("")}}},{key:"getEncodings",value:function(){return{0:"101010011",1:"101011001",2:"101001011",3:"110010101",4:"101101001",5:"110101001",6:"100101011",7:"100101101",8:"100110101",9:"110100101","-":"101001101",$:"101100101",":":"1101011011","/":"1101101011",".":"1101101101","+":"1011011011",A:"1011001001",B:"1001001011",C:"1010010011",D:"1010011001"}}}]),s})(n.default);return Un.codabar=u,Un}var Bt={},mo={},Hn={},jd;function E2(){return jd||(jd=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.SYMBOLS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","($)","(%)","(/)","(+)","ÿ"],Hn.BINARIES=["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],Hn.MULTI_SYMBOLS={"\0":["(%)","U"],"":["($)","A"],"":["($)","B"],"":["($)","C"],"":["($)","D"],"":["($)","E"],"":["($)","F"],"\x07":["($)","G"],"\b":["($)","H"]," ":["($)","I"],"\n":["($)","J"],"\v":["($)","K"],"\f":["($)","L"],"\r":["($)","M"],"":["($)","N"],"":["($)","O"],"":["($)","P"],"":["($)","Q"],"":["($)","R"],"":["($)","S"],"":["($)","T"],"":["($)","U"],"":["($)","V"],"":["($)","W"],"":["($)","X"],"":["($)","Y"],"":["($)","Z"],"\x1B":["(%)","A"],"":["(%)","B"],"":["(%)","C"],"":["(%)","D"],"":["(%)","E"],"!":["(/)","A"],'"':["(/)","B"],"#":["(/)","C"],"&":["(/)","F"],"'":["(/)","G"],"(":["(/)","H"],")":["(/)","I"],"*":["(/)","J"],",":["(/)","L"],":":["(/)","Z"],";":["(%)","F"],"<":["(%)","G"],"=":["(%)","H"],">":["(%)","I"],"?":["(%)","J"],"@":["(%)","V"],"[":["(%)","K"],"\\":["(%)","L"],"]":["(%)","M"],"^":["(%)","N"],_:["(%)","O"],"`":["(%)","W"],a:["(+)","A"],b:["(+)","B"],c:["(+)","C"],d:["(+)","D"],e:["(+)","E"],f:["(+)","F"],g:["(+)","G"],h:["(+)","H"],i:["(+)","I"],j:["(+)","J"],k:["(+)","K"],l:["(+)","L"],m:["(+)","M"],n:["(+)","N"],o:["(+)","O"],p:["(+)","P"],q:["(+)","Q"],r:["(+)","R"],s:["(+)","S"],t:["(+)","T"],u:["(+)","U"],v:["(+)","V"],w:["(+)","W"],x:["(+)","X"],y:["(+)","Y"],z:["(+)","Z"],"{":["(%)","P"],"|":["(%)","Q"],"}":["(%)","R"],"~":["(%)","S"],"":["(%)","T"]}),Hn}var Md;function D0(){if(Md)return mo;Md=1,Object.defineProperty(mo,"__esModule",{value:!0});var e=(function(){function s(a,d){for(var f=0;f<d.length;f++){var p=d[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,d,f){return d&&s(a.prototype,d),f&&s(a,f),a}})(),t=E2(),n=$e(),r=o(n);function o(s){return s&&s.__esModule?s:{default:s}}function i(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){if(!s)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&(typeof a=="object"||typeof a=="function")?a:s}function u(s,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof a);s.prototype=Object.create(a&&a.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(s,a):s.__proto__=a)}var c=(function(s){u(a,s);function a(d,f){return i(this,a),l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,d,f))}return e(a,[{key:"valid",value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:"encode",value:function(){var d=this.data.split("").flatMap(function(h){return t.MULTI_SYMBOLS[h]||h}),f=d.map(function(h){return a.getEncoding(h)}).join(""),p=a.checksum(d,20),m=a.checksum(d.concat(p),15);return{text:this.text,data:a.getEncoding("ÿ")+f+a.getEncoding(p)+a.getEncoding(m)+a.getEncoding("ÿ")+"1"}}}],[{key:"getEncoding",value:function(d){return t.BINARIES[a.symbolValue(d)]}},{key:"getSymbol",value:function(d){return t.SYMBOLS[d]}},{key:"symbolValue",value:function(d){return t.SYMBOLS.indexOf(d)}},{key:"checksum",value:function(d,f){var p=d.slice().reverse().reduce(function(m,h,v){var y=v%f+1;return m+a.symbolValue(h)*y},0);return a.getSymbol(p%47)}}]),a})(r.default);return mo.default=c,mo}var vo={},Ad;function C2(){if(Ad)return vo;Ad=1,Object.defineProperty(vo,"__esModule",{value:!0});var e=(function(){function c(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&c(s.prototype,a),d&&c(s,d),s}})(),t=D0(),n=r(t);function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"valid",value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),s})(n.default);return vo.default=u,vo}var kd;function S2(){if(kd)return Bt;kd=1,Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.CODE93FullASCII=Bt.CODE93=void 0;var e=D0(),t=o(e),n=C2(),r=o(n);function o(i){return i&&i.__esModule?i:{default:i}}return Bt.CODE93=t.default,Bt.CODE93FullASCII=r.default,Bt}var Wn={},Dd;function _2(){if(Dd)return Wn;Dd=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.GenericBarcode=void 0;var e=(function(){function c(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&c(s.prototype,a),d&&c(s,d),s}})(),t=$e(),n=r(t);function r(c){return c&&c.__esModule?c:{default:c}}function o(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}function i(c,s){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s&&(typeof s=="object"||typeof s=="function")?s:c}function l(c,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);c.prototype=Object.create(s&&s.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(c,s):c.__proto__=s)}var u=(function(c){l(s,c);function s(a,d){return o(this,s),i(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a,d))}return e(s,[{key:"encode",value:function(){return{data:"10101010101010101010101010101010101010101",text:this.text}}},{key:"valid",value:function(){return!0}}]),s})(n.default);return Wn.GenericBarcode=u,Wn}var Nd;function P2(){if(Nd)return Gr;Nd=1,Object.defineProperty(Gr,"__esModule",{value:!0});var e=JT(),t=i2(),n=d2(),r=h2(),o=b2(),i=w2(),l=x2(),u=S2(),c=_2();return Gr.default={CODE39:e.CODE39,CODE128:t.CODE128,CODE128A:t.CODE128A,CODE128B:t.CODE128B,CODE128C:t.CODE128C,EAN13:n.EAN13,EAN8:n.EAN8,EAN5:n.EAN5,EAN2:n.EAN2,UPC:n.UPC,UPCE:n.UPCE,ITF14:r.ITF14,ITF:r.ITF,MSI:o.MSI,MSI10:o.MSI10,MSI11:o.MSI11,MSI1010:o.MSI1010,MSI1110:o.MSI1110,pharmacode:i.pharmacode,codabar:l.codabar,CODE93:u.CODE93,CODE93FullASCII:u.CODE93FullASCII,GenericBarcode:c.GenericBarcode},Gr}var go={},Id;function $i(){if(Id)return go;Id=1,Object.defineProperty(go,"__esModule",{value:!0});var e=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t};return go.default=function(t,n){return e({},t,n)},go}var yo={},Ld;function R2(){if(Ld)return yo;Ld=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=e;function e(t){var n=[];function r(o){if(Array.isArray(o))for(var i=0;i<o.length;i++)r(o[i]);else o.text=o.text||"",o.data=o.data||"",n.push(o)}return r(t),n}return yo}var bo={},Fd;function O2(){if(Fd)return bo;Fd=1,Object.defineProperty(bo,"__esModule",{value:!0}),bo.default=e;function e(t){return t.marginTop=t.marginTop||t.margin,t.marginBottom=t.marginBottom||t.margin,t.marginRight=t.marginRight||t.margin,t.marginLeft=t.marginLeft||t.margin,t}return bo}var wo={},xo={},Eo={},Vd;function N0(){if(Vd)return Eo;Vd=1,Object.defineProperty(Eo,"__esModule",{value:!0}),Eo.default=e;function e(t){var n=["width","height","textMargin","fontSize","margin","marginTop","marginBottom","marginLeft","marginRight"];for(var r in n)n.hasOwnProperty(r)&&(r=n[r],typeof t[r]=="string"&&(t[r]=parseInt(t[r],10)));return typeof t.displayValue=="string"&&(t.displayValue=t.displayValue!="false"),t}return Eo}var Co={},$d;function I0(){if($d)return Co;$d=1,Object.defineProperty(Co,"__esModule",{value:!0});var e={width:2,height:100,format:"auto",displayValue:!0,fontOptions:"",font:"monospace",text:void 0,textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}};return Co.default=e,Co}var Bd;function T2(){if(Bd)return xo;Bd=1,Object.defineProperty(xo,"__esModule",{value:!0});var e=N0(),t=o(e),n=I0(),r=o(n);function o(l){return l&&l.__esModule?l:{default:l}}function i(l){var u={};for(var c in r.default)r.default.hasOwnProperty(c)&&(l.hasAttribute("jsbarcode-"+c.toLowerCase())&&(u[c]=l.getAttribute("jsbarcode-"+c.toLowerCase())),l.hasAttribute("data-"+c.toLowerCase())&&(u[c]=l.getAttribute("data-"+c.toLowerCase())));return u.value=l.getAttribute("jsbarcode-value")||l.getAttribute("data-value"),u=(0,t.default)(u),u}return xo.default=i,xo}var So={},_o={},Ne={},zd;function L0(){if(zd)return Ne;zd=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.getTotalWidthOfEncodings=Ne.calculateEncodingAttributes=Ne.getBarcodePadding=Ne.getEncodingHeight=Ne.getMaximumHeightOfEncodings=void 0;var e=$i(),t=n(e);function n(s){return s&&s.__esModule?s:{default:s}}function r(s,a){return a.height+(a.displayValue&&s.text.length>0?a.fontSize+a.textMargin:0)+a.marginTop+a.marginBottom}function o(s,a,d){if(d.displayValue&&a<s){if(d.textAlign=="center")return Math.floor((s-a)/2);if(d.textAlign=="left")return 0;if(d.textAlign=="right")return Math.floor(s-a)}return 0}function i(s,a,d){for(var f=0;f<s.length;f++){var p=s[f],m=(0,t.default)(a,p.options),h;m.displayValue?h=c(p.text,m,d):h=0;var v=p.data.length*m.width;p.width=Math.ceil(Math.max(h,v)),p.height=r(p,m),p.barcodePadding=o(h,v,m)}}function l(s){for(var a=0,d=0;d<s.length;d++)a+=s[d].width;return a}function u(s){for(var a=0,d=0;d<s.length;d++)s[d].height>a&&(a=s[d].height);return a}function c(s,a,d){var f;if(d)f=d;else if(typeof document<"u")f=document.createElement("canvas").getContext("2d");else return 0;f.font=a.fontOptions+" "+a.fontSize+"px "+a.font;var p=f.measureText(s);if(!p)return 0;var m=p.width;return m}return Ne.getMaximumHeightOfEncodings=u,Ne.getEncodingHeight=r,Ne.getBarcodePadding=o,Ne.calculateEncodingAttributes=i,Ne.getTotalWidthOfEncodings=l,Ne}var Ud;function j2(){if(Ud)return _o;Ud=1,Object.defineProperty(_o,"__esModule",{value:!0});var e=(function(){function u(c,s){for(var a=0;a<s.length;a++){var d=s[a];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(c,d.key,d)}}return function(c,s,a){return s&&u(c.prototype,s),a&&u(c,a),c}})(),t=$i(),n=o(t),r=L0();function o(u){return u&&u.__esModule?u:{default:u}}function i(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}var l=(function(){function u(c,s,a){i(this,u),this.canvas=c,this.encodings=s,this.options=a}return e(u,[{key:"render",value:function(){if(!this.canvas.getContext)throw new Error("The browser does not support canvas.");this.prepareCanvas();for(var c=0;c<this.encodings.length;c++){var s=(0,n.default)(this.options,this.encodings[c].options);this.drawCanvasBarcode(s,this.encodings[c]),this.drawCanvasText(s,this.encodings[c]),this.moveCanvasDrawing(this.encodings[c])}this.restoreCanvas()}},{key:"prepareCanvas",value:function(){var c=this.canvas.getContext("2d");c.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,c);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=s+this.options.marginLeft+this.options.marginRight,this.canvas.height=a,c.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(c.fillStyle=this.options.background,c.fillRect(0,0,this.canvas.width,this.canvas.height)),c.translate(this.options.marginLeft,0)}},{key:"drawCanvasBarcode",value:function(c,s){var a=this.canvas.getContext("2d"),d=s.data,f;c.textPosition=="top"?f=c.marginTop+c.fontSize+c.textMargin:f=c.marginTop,a.fillStyle=c.lineColor;for(var p=0;p<d.length;p++){var m=p*c.width+s.barcodePadding;d[p]==="1"?a.fillRect(m,f,c.width,c.height):d[p]&&a.fillRect(m,f,c.width,c.height*d[p])}}},{key:"drawCanvasText",value:function(c,s){var a=this.canvas.getContext("2d"),d=c.fontOptions+" "+c.fontSize+"px "+c.font;if(c.displayValue){var f,p;c.textPosition=="top"?p=c.marginTop+c.fontSize-c.textMargin:p=c.height+c.textMargin+c.marginTop+c.fontSize,a.font=d,c.textAlign=="left"||s.barcodePadding>0?(f=0,a.textAlign="left"):c.textAlign=="right"?(f=s.width-1,a.textAlign="right"):(f=s.width/2,a.textAlign="center"),a.fillText(s.text,f,p)}}},{key:"moveCanvasDrawing",value:function(c){var s=this.canvas.getContext("2d");s.translate(c.width,0)}},{key:"restoreCanvas",value:function(){var c=this.canvas.getContext("2d");c.restore()}}]),u})();return _o.default=l,_o}var Po={},Hd;function M2(){if(Hd)return Po;Hd=1,Object.defineProperty(Po,"__esModule",{value:!0});var e=(function(){function c(s,a){for(var d=0;d<a.length;d++){var f=a[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(s,f.key,f)}}return function(s,a,d){return a&&c(s.prototype,a),d&&c(s,d),s}})(),t=$i(),n=o(t),r=L0();function o(c){return c&&c.__esModule?c:{default:c}}function i(c,s){if(!(c instanceof s))throw new TypeError("Cannot call a class as a function")}var l="http://www.w3.org/2000/svg",u=(function(){function c(s,a,d){i(this,c),this.svg=s,this.encodings=a,this.options=d,this.document=d.xmlDocument||document}return e(c,[{key:"render",value:function(){var s=this.options.marginLeft;this.prepareSVG();for(var a=0;a<this.encodings.length;a++){var d=this.encodings[a],f=(0,n.default)(this.options,d.options),p=this.createGroup(s,f.marginTop,this.svg);this.setGroupOptions(p,f),this.drawSvgBarcode(p,f,d),this.drawSVGText(p,f,d),s+=d.width}}},{key:"prepareSVG",value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var s=(0,r.getTotalWidthOfEncodings)(this.encodings),a=(0,r.getMaximumHeightOfEncodings)(this.encodings),d=s+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(d,a),this.options.background&&this.drawRect(0,0,d,a,this.svg).setAttribute("fill",this.options.background)}},{key:"drawSvgBarcode",value:function(s,a,d){var f=d.data,p;a.textPosition=="top"?p=a.fontSize+a.textMargin:p=0;for(var m=0,h=0,v=0;v<f.length;v++)h=v*a.width+d.barcodePadding,f[v]==="1"?m++:m>0&&(this.drawRect(h-a.width*m,p,a.width*m,a.height,s),m=0);m>0&&this.drawRect(h-a.width*(m-1),p,a.width*m,a.height,s)}},{key:"drawSVGText",value:function(s,a,d){var f=this.document.createElementNS(l,"text");if(a.displayValue){var p,m;f.setAttribute("font-family",a.font),f.setAttribute("font-size",a.fontSize),a.fontOptions.includes("bold")&&f.setAttribute("font-weight","bold"),a.fontOptions.includes("italic")&&f.setAttribute("font-style","italic"),a.textPosition=="top"?m=a.fontSize-a.textMargin:m=a.height+a.textMargin+a.fontSize,a.textAlign=="left"||d.barcodePadding>0?(p=0,f.setAttribute("text-anchor","start")):a.textAlign=="right"?(p=d.width-1,f.setAttribute("text-anchor","end")):(p=d.width/2,f.setAttribute("text-anchor","middle")),f.setAttribute("x",p),f.setAttribute("y",m),f.appendChild(this.document.createTextNode(d.text)),s.appendChild(f)}}},{key:"setSvgAttributes",value:function(s,a){var d=this.svg;d.setAttribute("width",s+"px"),d.setAttribute("height",a+"px"),d.setAttribute("x","0px"),d.setAttribute("y","0px"),d.setAttribute("viewBox","0 0 "+s+" "+a),d.setAttribute("xmlns",l),d.setAttribute("version","1.1")}},{key:"createGroup",value:function(s,a,d){var f=this.document.createElementNS(l,"g");return f.setAttribute("transform","translate("+s+", "+a+")"),d.appendChild(f),f}},{key:"setGroupOptions",value:function(s,a){s.setAttribute("fill",a.lineColor)}},{key:"drawRect",value:function(s,a,d,f,p){var m=this.document.createElementNS(l,"rect");return m.setAttribute("x",s),m.setAttribute("y",a),m.setAttribute("width",d),m.setAttribute("height",f),p.appendChild(m),m}}]),c})();return Po.default=u,Po}var Ro={},Wd;function A2(){if(Wd)return Ro;Wd=1,Object.defineProperty(Ro,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o,i,l){t(this,r),this.object=o,this.encodings=i,this.options=l}return e(r,[{key:"render",value:function(){this.object.encodings=this.encodings}}]),r})();return Ro.default=n,Ro}var Gd;function k2(){if(Gd)return So;Gd=1,Object.defineProperty(So,"__esModule",{value:!0});var e=j2(),t=l(e),n=M2(),r=l(n),o=A2(),i=l(o);function l(u){return u&&u.__esModule?u:{default:u}}return So.default={CanvasRenderer:t.default,SVGRenderer:r.default,ObjectRenderer:i.default},So}var on={},Xd;function F0(){if(Xd)return on;Xd=1,Object.defineProperty(on,"__esModule",{value:!0});function e(l,u){if(!(l instanceof u))throw new TypeError("Cannot call a class as a function")}function t(l,u){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:l}function n(l,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);l.prototype=Object.create(u&&u.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(l,u):l.__proto__=u)}var r=(function(l){n(u,l);function u(c,s){e(this,u);var a=t(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return a.name="InvalidInputException",a.symbology=c,a.input=s,a.message='"'+a.input+'" is not a valid input for '+a.symbology,a}return u})(Error),o=(function(l){n(u,l);function u(){e(this,u);var c=t(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return c.name="InvalidElementException",c.message="Not supported type to render on",c}return u})(Error),i=(function(l){n(u,l);function u(){e(this,u);var c=t(this,(u.__proto__||Object.getPrototypeOf(u)).call(this));return c.name="NoElementException",c.message="No element to render on.",c}return u})(Error);return on.InvalidInputException=r,on.InvalidElementException=o,on.NoElementException=i,on}var Kd;function D2(){if(Kd)return wo;Kd=1,Object.defineProperty(wo,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t=T2(),n=l(t),r=k2(),o=l(r),i=F0();function l(a){return a&&a.__esModule?a:{default:a}}function u(a){if(typeof a=="string")return c(a);if(Array.isArray(a)){for(var d=[],f=0;f<a.length;f++)d.push(u(a[f]));return d}else{if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLImageElement)return s(a);if(a&&a.nodeName&&a.nodeName.toLowerCase()==="svg"||typeof SVGElement<"u"&&a instanceof SVGElement)return{element:a,options:(0,n.default)(a),renderer:o.default.SVGRenderer};if(typeof HTMLCanvasElement<"u"&&a instanceof HTMLCanvasElement)return{element:a,options:(0,n.default)(a),renderer:o.default.CanvasRenderer};if(a&&a.getContext)return{element:a,renderer:o.default.CanvasRenderer};if(a&&(typeof a>"u"?"undefined":e(a))==="object"&&!a.nodeName)return{element:a,renderer:o.default.ObjectRenderer};throw new i.InvalidElementException}}function c(a){var d=document.querySelectorAll(a);if(d.length!==0){for(var f=[],p=0;p<d.length;p++)f.push(u(d[p]));return f}}function s(a){var d=document.createElement("canvas");return{element:d,options:(0,n.default)(a),renderer:o.default.CanvasRenderer,afterRender:function(){a.setAttribute("src",d.toDataURL())}}}return wo.default=u,wo}var Oo={},Yd;function N2(){if(Yd)return Oo;Yd=1,Object.defineProperty(Oo,"__esModule",{value:!0});var e=(function(){function r(o,i){for(var l=0;l<i.length;l++){var u=i[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(o,u.key,u)}}return function(o,i,l){return i&&r(o.prototype,i),l&&r(o,l),o}})();function t(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}var n=(function(){function r(o){t(this,r),this.api=o}return e(r,[{key:"handleCatch",value:function(o){if(o.name==="InvalidInputException")if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw o.message;else throw o;this.api.render=function(){}}},{key:"wrapBarcodeCall",value:function(o){try{var i=o.apply(void 0,arguments);return this.api._options.valid(!0),i}catch(l){return this.handleCatch(l),this.api}}}]),r})();return Oo.default=n,Oo}var xa,qd;function I2(){if(qd)return xa;qd=1;var e=P2(),t=y(e),n=$i(),r=y(n),o=R2(),i=y(o),l=O2(),u=y(l),c=D2(),s=y(c),a=N0(),d=y(a),f=N2(),p=y(f),m=F0(),h=I0(),v=y(h);function y(R){return R&&R.__esModule?R:{default:R}}var b=function(){},x=function(R,P,k){var O=new b;if(typeof R>"u")throw Error("No element to render on was provided.");return O._renderProperties=(0,s.default)(R),O._encodings=[],O._options=v.default,O._errorHandler=new p.default(O),typeof P<"u"&&(k=k||{},k.format||(k.format=A()),O.options(k)[k.format](P,k).render()),O};x.getModule=function(R){return t.default[R]};for(var E in t.default)t.default.hasOwnProperty(E)&&C(t.default,E);function C(R,P){b.prototype[P]=b.prototype[P.toUpperCase()]=b.prototype[P.toLowerCase()]=function(k,O){var $=this;return $._errorHandler.wrapBarcodeCall(function(){O.text=typeof O.text>"u"?void 0:""+O.text;var F=(0,r.default)($._options,O);F=(0,d.default)(F);var H=R[P],B=T(k,H,F);return $._encodings.push(B),$})}}function T(R,P,k){R=""+R;var O=new P(R,k);if(!O.valid())throw new m.InvalidInputException(O.constructor.name,R);var $=O.encode();$=(0,i.default)($);for(var F=0;F<$.length;F++)$[F].options=(0,r.default)(k,$[F].options);return $}function A(){return t.default.CODE128?"CODE128":Object.keys(t.default)[0]}b.prototype.options=function(R){return this._options=(0,r.default)(this._options,R),this},b.prototype.blank=function(R){var P=new Array(R+1).join("0");return this._encodings.push({data:P}),this},b.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var R;for(var P in this._renderProperties){R=this._renderProperties[P];var k=(0,r.default)(this._options,R.options);k.format=="auto"&&(k.format=A()),this._errorHandler.wrapBarcodeCall(function(){var O=k.value,$=t.default[k.format.toUpperCase()],F=T(O,$,k);j(R,F,k)})}}},b.prototype.render=function(){if(!this._renderProperties)throw new m.NoElementException;if(Array.isArray(this._renderProperties))for(var R=0;R<this._renderProperties.length;R++)j(this._renderProperties[R],this._encodings,this._options);else j(this._renderProperties,this._encodings,this._options);return this},b.prototype._defaults=v.default;function j(R,P,k){P=(0,i.default)(P);for(var O=0;O<P.length;O++)P[O].options=(0,r.default)(k,P[O].options),(0,u.default)(P[O].options);(0,u.default)(k);var $=R.renderer,F=new $(R.element,P,k);F.render(),R.afterRender&&R.afterRender()}return typeof window<"u"&&(window.JsBarcode=x),typeof jQuery<"u"&&(jQuery.fn.JsBarcode=function(R,P){var k=[];return jQuery(this).each(function(){k.push(this)}),x(k,R,P)}),xa=x,xa}var To={exports:{}},Ea={exports:{}},ue={};/** @license React v16.13.1
|
|
117
117
|
* react-is.production.min.js
|
|
118
118
|
*
|
|
119
119
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
120
120
|
*
|
|
121
121
|
* This source code is licensed under the MIT license found in the
|
|
122
122
|
* LICENSE file in the root directory of this source tree.
|
|
123
|
-
*/var Zd;function L2(){if(Zd)return ue;Zd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,
|
|
123
|
+
*/var Zd;function L2(){if(Zd)return ue;Zd=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,a=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case c:case s:case r:case i:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case u:case a:case m:case p:case l:return C;default:return T}}case n:return T}}}function E(C){return x(C)===s}return ue.AsyncMode=c,ue.ConcurrentMode=s,ue.ContextConsumer=u,ue.ContextProvider=l,ue.Element=t,ue.ForwardRef=a,ue.Fragment=r,ue.Lazy=m,ue.Memo=p,ue.Portal=n,ue.Profiler=i,ue.StrictMode=o,ue.Suspense=d,ue.isAsyncMode=function(C){return E(C)||x(C)===c},ue.isConcurrentMode=E,ue.isContextConsumer=function(C){return x(C)===u},ue.isContextProvider=function(C){return x(C)===l},ue.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ue.isForwardRef=function(C){return x(C)===a},ue.isFragment=function(C){return x(C)===r},ue.isLazy=function(C){return x(C)===m},ue.isMemo=function(C){return x(C)===p},ue.isPortal=function(C){return x(C)===n},ue.isProfiler=function(C){return x(C)===i},ue.isStrictMode=function(C){return x(C)===o},ue.isSuspense=function(C){return x(C)===d},ue.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===s||C===i||C===o||C===d||C===f||typeof C=="object"&&C!==null&&(C.$$typeof===m||C.$$typeof===p||C.$$typeof===l||C.$$typeof===u||C.$$typeof===a||C.$$typeof===v||C.$$typeof===y||C.$$typeof===b||C.$$typeof===h)},ue.typeOf=x,ue}var ce={};/** @license React v16.13.1
|
|
124
124
|
* react-is.development.js
|
|
125
125
|
*
|
|
126
126
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
127
127
|
*
|
|
128
128
|
* This source code is licensed under the MIT license found in the
|
|
129
129
|
* LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/var Qd;function
|
|
130
|
+
*/var Qd;function F2(){return Qd||(Qd=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,s=e?Symbol.for("react.concurrent_mode"):60111,a=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(I){return typeof I=="string"||typeof I=="function"||I===r||I===s||I===i||I===o||I===d||I===f||typeof I=="object"&&I!==null&&(I.$$typeof===m||I.$$typeof===p||I.$$typeof===l||I.$$typeof===u||I.$$typeof===a||I.$$typeof===v||I.$$typeof===y||I.$$typeof===b||I.$$typeof===h)}function E(I){if(typeof I=="object"&&I!==null){var fe=I.$$typeof;switch(fe){case t:var ke=I.type;switch(ke){case c:case s:case r:case i:case o:case d:return ke;default:var Be=ke&&ke.$$typeof;switch(Be){case u:case a:case m:case p:case l:return Be;default:return fe}}case n:return fe}}}var C=c,T=s,A=u,j=l,R=t,P=a,k=r,O=m,$=p,F=n,H=i,B=o,G=d,W=!1;function N(I){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(I)||E(I)===c}function M(I){return E(I)===s}function D(I){return E(I)===u}function ee(I){return E(I)===l}function J(I){return typeof I=="object"&&I!==null&&I.$$typeof===t}function X(I){return E(I)===a}function ne(I){return E(I)===r}function te(I){return E(I)===m}function V(I){return E(I)===p}function q(I){return E(I)===n}function K(I){return E(I)===i}function U(I){return E(I)===o}function oe(I){return E(I)===d}ce.AsyncMode=C,ce.ConcurrentMode=T,ce.ContextConsumer=A,ce.ContextProvider=j,ce.Element=R,ce.ForwardRef=P,ce.Fragment=k,ce.Lazy=O,ce.Memo=$,ce.Portal=F,ce.Profiler=H,ce.StrictMode=B,ce.Suspense=G,ce.isAsyncMode=N,ce.isConcurrentMode=M,ce.isContextConsumer=D,ce.isContextProvider=ee,ce.isElement=J,ce.isForwardRef=X,ce.isFragment=ne,ce.isLazy=te,ce.isMemo=V,ce.isPortal=q,ce.isProfiler=K,ce.isStrictMode=U,ce.isSuspense=oe,ce.isValidElementType=x,ce.typeOf=E})()),ce}var Jd;function V0(){return Jd||(Jd=1,process.env.NODE_ENV==="production"?Ea.exports=L2():Ea.exports=F2()),Ea.exports}/*
|
|
131
131
|
object-assign
|
|
132
132
|
(c) Sindre Sorhus
|
|
133
133
|
@license MIT
|
|
134
|
-
*/var
|
|
135
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var I=oe(V,U,
|
|
134
|
+
*/var Ca,ef;function V2(){if(ef)return Ca;ef=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(l).map(function(a){return l[a]});if(c.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(a){s[a]=a}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ca=o()?Object.assign:function(i,l){for(var u,c=r(i),s,a=1;a<arguments.length;a++){u=Object(arguments[a]);for(var d in u)t.call(u,d)&&(c[d]=u[d]);if(e){s=e(u);for(var f=0;f<s.length;f++)n.call(u,s[f])&&(c[s[f]]=u[s[f]])}}return c},Ca}var Sa,tf;function Bl(){if(tf)return Sa;tf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Sa=e,Sa}var nf,rf;function $0(){return rf||(rf=1,nf=Function.call.bind(Object.prototype.hasOwnProperty)),nf}var _a,of;function $2(){if(of)return _a;of=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Bl(),n={},r=$0();e=function(i){var l="Warning: "+i;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(i,l,u,c,s){if(process.env.NODE_ENV!=="production"){for(var a in i)if(r(i,a)){var d;try{if(typeof i[a]!="function"){var f=Error((c||"React class")+": "+u+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=i[a](l,a,c,u,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var p=s?s():"";e("Failed "+u+" type: "+d.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},_a=o,_a}var Pa,af;function B2(){if(af)return Pa;af=1;var e=V0(),t=V2(),n=Bl(),r=$0(),o=$2(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(u){var c="Warning: "+u;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function l(){return null}return Pa=function(u,c){var s=typeof Symbol=="function"&&Symbol.iterator,a="@@iterator";function d(M){var D=M&&(s&&M[s]||M[a]);if(typeof D=="function")return D}var f="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:b(),arrayOf:x,element:E(),elementType:C(),instanceOf:T,node:P(),objectOf:j,oneOf:A,oneOfType:R,shape:O,exact:$};function m(M,D){return M===D?M!==0||1/M===1/D:M!==M&&D!==D}function h(M,D){this.message=M,this.data=D&&typeof D=="object"?D:{},this.stack=""}h.prototype=Error.prototype;function v(M){if(process.env.NODE_ENV!=="production")var D={},ee=0;function J(ne,te,V,q,K,U,oe){if(q=q||f,U=U||V,oe!==n){if(c){var I=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw I.name="Invariant Violation",I}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var fe=q+":"+V;!D[fe]&&ee<3&&(i("You are manually calling a React.PropTypes validation function for the `"+U+"` prop on `"+q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),D[fe]=!0,ee++)}}return te[V]==null?ne?te[V]===null?new h("The "+K+" `"+U+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new h("The "+K+" `"+U+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:M(te,V,q,K,U)}var X=J.bind(null,!1);return X.isRequired=J.bind(null,!0),X}function y(M){function D(ee,J,X,ne,te,V){var q=ee[J],K=B(q);if(K!==M){var U=G(q);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+U+"` supplied to `"+X+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return v(D)}function b(){return v(l)}function x(M){function D(ee,J,X,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var V=ee[J];if(!Array.isArray(V)){var q=B(V);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+X+"`, expected an array."))}for(var K=0;K<V.length;K++){var U=M(V,K,X,ne,te+"["+K+"]",n);if(U instanceof Error)return U}return null}return v(D)}function E(){function M(D,ee,J,X,ne){var te=D[ee];if(!u(te)){var V=B(te);return new h("Invalid "+X+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement."))}return null}return v(M)}function C(){function M(D,ee,J,X,ne){var te=D[ee];if(!e.isValidElementType(te)){var V=B(te);return new h("Invalid "+X+" `"+ne+"` of type "+("`"+V+"` supplied to `"+J+"`, expected a single ReactElement type."))}return null}return v(M)}function T(M){function D(ee,J,X,ne,te){if(!(ee[J]instanceof M)){var V=M.name||f,q=N(ee[J]);return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+X+"`, expected ")+("instance of `"+V+"`."))}return null}return v(D)}function A(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),l;function D(ee,J,X,ne,te){for(var V=ee[J],q=0;q<M.length;q++)if(m(V,M[q]))return null;var K=JSON.stringify(M,function(U,oe){var I=G(oe);return I==="symbol"?String(oe):oe});return new h("Invalid "+ne+" `"+te+"` of value `"+String(V)+"` "+("supplied to `"+X+"`, expected one of "+K+"."))}return v(D)}function j(M){function D(ee,J,X,ne,te){if(typeof M!="function")return new h("Property `"+te+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type "+("`"+q+"` supplied to `"+X+"`, expected an object."));for(var K in V)if(r(V,K)){var U=M(V,K,X,ne,te+"."+K,n);if(U instanceof Error)return U}return null}return v(D)}function R(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var D=0;D<M.length;D++){var ee=M[D];if(typeof ee!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+W(ee)+" at index "+D+"."),l}function J(X,ne,te,V,q){for(var K=[],U=0;U<M.length;U++){var oe=M[U],I=oe(X,ne,te,V,q,n);if(I==null)return null;I.data&&r(I.data,"expectedType")&&K.push(I.data.expectedType)}var fe=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new h("Invalid "+V+" `"+q+"` supplied to "+("`"+te+"`"+fe+"."))}return v(J)}function P(){function M(D,ee,J,X,ne){return F(D[ee])?null:new h("Invalid "+X+" `"+ne+"` supplied to "+("`"+J+"`, expected a ReactNode."))}return v(M)}function k(M,D,ee,J,X){return new h((M||"React class")+": "+D+" type `"+ee+"."+J+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function O(M){function D(ee,J,X,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+X+"`, expected `object`."));for(var K in M){var U=M[K];if(typeof U!="function")return k(X,ne,te,K,G(U));var oe=U(V,K,X,ne,te+"."+K,n);if(oe)return oe}return null}return v(D)}function $(M){function D(ee,J,X,ne,te){var V=ee[J],q=B(V);if(q!=="object")return new h("Invalid "+ne+" `"+te+"` of type `"+q+"` "+("supplied to `"+X+"`, expected `object`."));var K=t({},ee[J],M);for(var U in K){var oe=M[U];if(r(M,U)&&typeof oe!="function")return k(X,ne,te,U,G(oe));if(!oe)return new h("Invalid "+ne+" `"+te+"` key `"+U+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(ee[J],null," ")+`
|
|
135
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var I=oe(V,U,X,ne,te+"."+U,n);if(I)return I}return null}return v(D)}function F(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(F);if(M===null||u(M))return!0;var D=d(M);if(D){var ee=D.call(M),J;if(D!==M.entries){for(;!(J=ee.next()).done;)if(!F(J.value))return!1}else for(;!(J=ee.next()).done;){var X=J.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function H(M,D){return M==="symbol"?!0:D?D["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&D instanceof Symbol:!1}function B(M){var D=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":H(D,M)?"symbol":D}function G(M){if(typeof M>"u"||M===null)return""+M;var D=B(M);if(D==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return D}function W(M){var D=G(M);switch(D){case"array":case"object":return"an "+D;case"boolean":case"date":case"regexp":return"a "+D;default:return D}}function N(M){return!M.constructor||!M.constructor.name?f:M.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},Pa}var Ra,sf;function z2(){if(sf)return Ra;sf=1;var e=Bl();function t(){}function n(){}return n.resetWarningCache=t,Ra=function(){function r(l,u,c,s,a,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ra}var lf;function U2(){if(lf)return To.exports;if(lf=1,process.env.NODE_ENV!=="production"){var e=V0(),t=!0;To.exports=B2()(e.isElement,t)}else To.exports=z2()();return To.exports}var Oa,uf;function H2(){if(uf)return Oa;uf=1;function e(v){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(y){return typeof y}:e=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(v)}var t=o(_),n=o(I2()),r=o(U2());function o(v){return v&&v.__esModule?v:{default:v}}function i(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function l(v,y){for(var b=0;b<y.length;b++){var x=y[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}function u(v,y,b){return y&&l(v.prototype,y),v}function c(v,y){return y&&(e(y)==="object"||typeof y=="function")?y:a(v)}function s(v){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)},s(v)}function a(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function d(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),y&&f(v,y)}function f(v,y){return f=Object.setPrototypeOf||function(b,x){return b.__proto__=x,b},f(v,y)}var p,m=t.default.version.split(/[.-]/);m[0]==="0"&&(m[1]==="13"||m[1]==="12")?p=function(v){return v.getDOMNode()}:p=function(v){return v};var h=(function(v){d(y,v);function y(b){var x;return i(this,y),x=c(this,s(y).call(this,b)),x.renderElementRef=t.default.createRef(),x.update=x.update.bind(a(x)),x}return u(y,[{key:"shouldComponentUpdate",value:function(b){var x=this;return Object.keys(y.propTypes).some(function(E){return x.props[E]!==b[E]})}},{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var b=p(this.renderElementRef.current);try{new n.default(b,this.props.value,Object.assign({text:this.props.text||this.props.value},this.props))}catch(x){window.console.error(x)}}},{key:"render",value:function(){var b=this.props,x=b.id,E=b.className;if(this.props.renderer==="svg")return t.default.createElement("svg",{ref:this.renderElementRef,id:x,className:E});if(this.props.renderer==="canvas")return t.default.createElement("canvas",{ref:this.renderElementRef,id:x,className:E});if(this.props.renderer==="img")return t.default.createElement("img",{ref:this.renderElementRef,id:x,className:E})}}]),y})(t.default.Component);return h.propTypes={value:r.default.string.isRequired,text:r.default.string,renderer:r.default.string,format:r.default.string,width:r.default.number,height:r.default.number,displayValue:r.default.bool,fontOptions:r.default.string,font:r.default.string,textAlign:r.default.string,textPosition:r.default.string,textMargin:r.default.number,fontSize:r.default.number,background:r.default.string,lineColor:r.default.string,margin:r.default.number,marginTop:r.default.number,marginBottom:r.default.number,marginLeft:r.default.number,marginRight:r.default.number,id:r.default.string,className:r.default.string,ean128:r.default.bool},h.defaultProps={format:"CODE128",renderer:"svg",width:2,height:100,displayValue:!0,fontOptions:"",font:"monospace",textAlign:"center",textPosition:"bottom",textMargin:2,fontSize:20,background:"#ffffff",lineColor:"#000000",margin:10,className:"",ean128:!1},Oa=h,Oa}H2();const W2=_.forwardRef(({children:e,className:t,disabled:n,...r},o)=>w.jsx(CC,{ref:o,disabled:n,className:me("w-full h-auto outline-0 hover:bg-gray-3 px-4 py-[5px] cursor-pointer",{"text-gray-6 cursor-not-allowed":n},t),...r,children:w.jsx(SC,{className:"whitespace-nowrap",children:e})}));W2.displayName="SelectItem";const G2=_.forwardRef(({value:e,onChange:t,placeholder:n="Buscar...",disabled:r},o)=>w.jsx("div",{className:"px-2 py-2 border-b border-gray-4 bg-white sticky top-0",onPointerDown:i=>{i.stopPropagation()},children:w.jsx("input",{ref:o,type:"text",value:e,onChange:t,placeholder:n,disabled:r,autoComplete:"off",autoFocus:!0,className:me("w-full px-3 py-1.5 text-sm border border-gray-4 rounded outline-none","focus:border-primary-blue focus:ring-1 focus:ring-primary-blue","disabled:bg-gray-3 disabled:cursor-not-allowed"),onKeyDown:i=>{i.stopPropagation()},onMouseDown:i=>{i.stopPropagation()},onPointerDown:i=>{i.stopPropagation()}})}));G2.displayName="SearchInput";var zl=(e=>(e.cols="grid-cols",e.rows="grid-rows",e.gap="gap",e.justifyItems="justify-items",e.alignContent="content",e.span="col-span",e.start="col-start",e.end="col-end",e.justifySelf="justify-self",e.alignSelf="self",e))(zl||{});const{cols:cj,gap:dj,justifyItems:fj,alignContent:pj}=zl,{span:hj,start:mj,end:vj,justifySelf:gj,alignSelf:yj}=zl;_.createContext({size:"default",variant:"default",spacing:0,orientation:"horizontal"});const{Text:cf}=Pr,X2=({className:e,children:t})=>{const{t:n}=z0.useTranslation();return!t||t.trim()===""?null:he.jsxRuntimeExports.jsxs(lr,{className:e,align:"center",gap:2,children:[he.jsxRuntimeExports.jsxs(lr,{align:"center",gap:1,children:[he.jsxRuntimeExports.jsx(K0,{className:"text-primary-blue size-6"}),he.jsxRuntimeExports.jsx(cf,{className:"text-primary-blue",size:"sm",weight:"semibold",children:n("layout.header.store")})]}),he.jsxRuntimeExports.jsx(cf,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]})},{Text:df}=Pr,K2=({name:e,role:t,imageUrl:n,items:r})=>!e||e.trim()===""?null:he.jsxRuntimeExports.jsxs(lr,{align:"center",gap:2,children:[he.jsxRuntimeExports.jsx(uT,{src:n,alt:e,size:"sm"}),he.jsxRuntimeExports.jsxs(lr,{gap:1,direction:"vertical",children:[he.jsxRuntimeExports.jsx(df,{className:"text-primary-blue",size:"sm",weight:"semibold",children:e}),he.jsxRuntimeExports.jsx(df,{className:"text-grays-macropay-05",size:"sm",weight:"semibold",children:t})]}),he.jsxRuntimeExports.jsx(ST,{classNames:{label:"p-0 border-0"},trigger:he.jsxRuntimeExports.jsx(Y0,{className:"rotate-180"}),items:r})]}),B0=({className:e,children:t})=>{if(Array.isArray(t)&&t.length===0)return null;const n=r=>r===t.length-1;return he.jsxRuntimeExports.jsx(lr,{align:"center",gap:4,className:gn.cn(e),children:t.map((r,o)=>he.jsxRuntimeExports.jsxs(_.Fragment,{children:[r,n(o)?null:he.jsxRuntimeExports.jsx(G0,{"data-slot":"separator",orientation:"vertical",decorative:!0,className:gn.cn("shrink-0 bg-grays-macropay-05 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch")})]},o))})};B0.disPlayName="Layout.Header.RightSide";const Mr=({className:e,...t})=>he.jsxRuntimeExports.jsx("header",{className:gn.cn("sticky top-0 flex h-17 shrink-0 items-center justify-between gap-2 border-b border-gray-200 bg-white px-4 shadow-lg",e),...t});Mr.LeftSide=X0;Mr.Store=X2;Mr.User=K2;Mr.RightSide=B0;const Y2=({className:e,children:t,...n})=>he.jsxRuntimeExports.jsx("div",{className:gn.cn("flex w-full flex-1 flex-col px-4 pt-5",e),...n,children:he.jsxRuntimeExports.jsx("div",{className:"flex-1 rounded-lg bg-white p-4",children:t})}),q2=({className:e,...t})=>he.jsxRuntimeExports.jsx("footer",{className:gn.cn("bottom-0 w-full px-6 py-4 text-center text-xs text-grays-macropay-05",e),...t}),Bi=({children:e,loading:t,...n})=>he.jsxRuntimeExports.jsxs("main",{"data-slot":"sidebar-inset",className:"relative flex min-h-svh w-full flex-1 flex-col bg-grays-macropay-02",...n,children:[e,t&&he.jsxRuntimeExports.jsx(he.Root,{className:"position bg-opacity-50 absolute top-0 left-0 z-50 flex h-full w-full items-center justify-center"})]});Bi.Header=Mr;Bi.Content=Y2;Bi.Footer=q2;exports.RootLayout=Bi;
|