slds-json-schema-renderer 1.3.2 → 1.3.3
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.
|
@@ -1 +1,8 @@
|
|
|
1
|
-
(function(Y,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],a):(Y=typeof globalThis<"u"?globalThis:Y||self,a(Y.JsonSchemaDocs={},Y.Vue))})(this,function(Y,a){"use strict";const Mo={class:"slds-p-around_medium slds-theme_shade slds-text-align_center slds-text-body_small slds-mt-auto"},Bo={class:"slds-grid slds-grid_align-spread slds-wrap"},No={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Oo={key:0,class:"slds-text-color_weak"},Lo={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},Ro={class:"slds-text-color_weak"},$o={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},jo={class:"slds-text-color_weak"},Fo={__name:"FooterLayout",props:{description:{type:String,default:""},generatedAt:{type:String,default:()=>new Date().toISOString()},schemaCount:{type:Number,default:0}},setup(t){function e(s){return new Date(s).toLocaleString()}return(s,n)=>(a.openBlock(),a.createElementBlock("footer",Mo,[a.createElementVNode("div",Bo,[a.createElementVNode("div",No,[t.description?(a.openBlock(),a.createElementBlock("span",Oo,a.toDisplayString(t.description),1)):a.createCommentVNode("",!0)]),a.createElementVNode("div",Lo,[a.createElementVNode("span",Ro,a.toDisplayString(t.schemaCount)+" schema"+a.toDisplayString(t.schemaCount!==1?"s":"")+" documented ",1)]),a.createElementVNode("div",$o,[a.createElementVNode("span",jo," Generated at: "+a.toDisplayString(e(t.generatedAt)),1)])])]))}},as="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='100'%20width='100'%20viewBox='0%200%201000%201000'%20fill='%23fff'%3e%3cpath%20d='M738%20200H262c-34%200-62%2028-62%2062v476c0%2034%2028%2062%2062%2062h476c34%200%2062-28%2062-62V262c0-34-28-62-62-62zm-455%2062h434c11%200%2021%209%2021%2021v39H262v-39c0-12%209-21%2021-21zm434%20476H283c-11%200-21-9-21-21V382h476v335c0%2012-9%2021-21%2021zM467%20633l-66-66%2066-66c4-4%204-10%200-14l-28-28c-4-4-10-4-14%200l-73%2073-15%2015-13%2013c-2%202-3%205-3%207%200%203%201%205%203%207l102%20102c4%204%2010%204%2014%200l28-28c3-5%203-11-1-15zm210-74-13-13-15-15-73-73c-4-4-10-4-14%200l-28%2028c-4%204-4%2010%200%2014l66%2066-66%2066c-4%204-4%2010%200%2014l28%2028c4%204%2010%204%2014%200l102-102c2-2%203-5%203-7z'/%3e%3c/svg%3e",Io={class:"slds-page-header"},Uo={class:"slds-page-header__row"},zo={class:"slds-page-header__col-title"},Ko={class:"slds-media"},Go={class:"slds-media__body"},Wo={class:"slds-page-header__name"},Ho={class:"slds-page-header__name-title"},qo=["title"],Yo={__name:"HeaderLayout",props:{title:{type:String,default:"JSON Schema Documentation"}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("header",Io,[a.createElementVNode("div",Uo,[a.createElementVNode("div",zo,[a.createElementVNode("div",Ko,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:as,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",Go,[a.createElementVNode("div",Wo,[a.createElementVNode("div",Ho,[a.createElementVNode("h1",{class:"slds-page-header__title slds-truncate",title:t.title},a.toDisplayString(t.title),9,qo)])])])])])])]))}},ls=t=>e=>typeof e=="string"&&e.startsWith(t),ne=ls("--"),Xo=ls("var(--"),ie=t=>Xo(t)?Zo.test(t.split("/*")[0].trim()):!1,Zo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ht={};function cs(t){for(const e in t)ht[e]=t[e],ne(e)&&(ht[e].isCSSVariable=!0)}function mt(t,e){const s=typeof t=="string"?`${t}Context`:e,n=Symbol(s);return[o=>{const l=a.inject(n,o);if(l||l===null)return l;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},o=>(a.provide(n,o),o)]}const[Jo,Qo]=mt("Motion"),[tr,Qh]=mt("LayoutGroup");function us(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class z{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}function ft(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const r=ft(i,e,s);return r?{...n,...r}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function er(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!sr(t,e):t!==e}function sr(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(e[n]!==t[n])return!1;return!0}function ds(t){return t==null?void 0:t.startsWith("--")}const nr=t=>t;function ir(t){return typeof t=="number"}const or=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],rr=new Set(or);function hs(t){return rr.has(t)}function ar(t,e){const s=t.animate,n=e.animate;if(s===n)return!1;if(!s||!n)return!0;if(typeof s=="object"||typeof n=="object"){const i=Object.keys(s),r=Object.keys(n);return i.length!==r.length?!0:i.some(o=>{if(o==="transition")return!1;const l=s[o],c=n[o];return l!==c})}return s!==n}class lr{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(o=>new o(e));const r=this.features;a.watch(n.features,o=>{o.forEach(l=>{if(!i.includes(l)){i.push(l);const c=new l(e);r.push(c),e.isMounted()&&(c.beforeMount(),c.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const oe=new WeakMap,[cr,tm]=mt("AnimatePresenceContext");function ur(t){return typeof t=="string"||t===!1||Array.isArray(t)}const O=t=>t;let ms=O;const Nt=["read","resolveKeyframes","update","preRender","render","postRender"];function dr(t,e){let s=new Set,n=new Set,i=!1,r=!1;const o=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){o.has(u)&&(d.schedule(u),t()),u(l)}const d={schedule:(u,h=!1,m=!1)=>{const p=m&&i?s:n;return h&&o.add(u),p.has(u)||p.add(u),u},cancel:u=>{n.delete(u),o.delete(u)},process:u=>{if(l=u,i){r=!0;return}i=!0,[s,n]=[n,s],s.forEach(c),s.clear(),i=!1,r&&(r=!1,d.process(u))}};return d}const hr=40;function fs(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>s=!0,o=Nt.reduce((y,S)=>(y[S]=dr(r),y),{}),{read:l,resolveKeyframes:c,update:d,preRender:u,render:h,postRender:m}=o,f=()=>{const y=performance.now();s=!1,i.delta=n?1e3/60:Math.max(Math.min(y-i.timestamp,hr),1),i.timestamp=y,i.isProcessing=!0,l.process(i),c.process(i),d.process(i),u.process(i),h.process(i),m.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(f))},p=()=>{s=!0,n=!0,i.isProcessing||t(f)};return{schedule:Nt.reduce((y,S)=>{const E=o[S];return y[S]=(_,b=!1,T=!1)=>(s||p(),E.schedule(_,b,T)),y},{}),cancel:y=>{for(let S=0;S<Nt.length;S++)o[Nt[S]].cancel(y)},state:i,steps:o}}const{schedule:w,cancel:K,state:M,steps:re}=fs(typeof requestAnimationFrame<"u"?requestAnimationFrame:O,!0),ps=new WeakMap;let mr=0;const ae=new Set;class fr{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=O,this.id=`motion-state-${mr++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this),this.depth=(s==null?void 0:s.depth)+1||0;const r=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(r),this.featureManager=new lr(this),this.type=hs(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return ur(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=e.reduce((s,n)=>({...s,...ft(this.options[n]||this.context[n],this.options.variants)}),{}),this.target={}}updateOptions(){var e;(e=this.visualElement)==null||e.update({...this.options,whileTap:this.options.whilePress,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!oe.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i;this.element=e,this.options=s,this.updateOptions(),this.featureManager.mount(),!n&&this.options.animate&&(this.type==="svg"&&this.visualElement.updateDimensions(),(i=this.startAnimation)==null||i.call(this)),this.options.layoutId&&(ae.add(this.options.layoutId),w.render(()=>{ae.clear()}))}clearAnimation(){var e,s;this.currentProcess&&K(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=w.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){const s=this.options.layoutId&&!ae.has(this.options.layoutId);(()=>{e&&Array.from(this.children).reverse().forEach(this.unmountChild);const i=()=>{var r,o,l;(o=(r=this.parent)==null?void 0:r.children)==null||o.delete(this),ps.delete(this.element),this.featureManager.unmount(),(l=this.visualElement)==null||l.unmount()};s?Promise.resolve().then(i):i()})()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){const s=ar(this.options,e);this.options=e,this.updateOptions(),this.featureManager.update(),s&&this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(r=>{r.state.setActive(e,s,!1)}),n&&this.animateUpdates({isFallback:!s&&e!=="exit"&&this.visualElement.isControllingVariants,isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const tt=new WeakMap;function gs(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const ys={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},pr={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:ys,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:nr},skew:ys},gr=["translate","scale","rotate","skew"],yr=["","X","Y","Z"],le=new Map,Ot=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];gr.forEach(t=>{yr.forEach(e=>{Ot.push(t+e),le.set(t+e,pr[t])})});const vr=new Set(Ot),br=t=>vr.has(t),vs={x:"translateX",y:"translateY",z:"translateZ"};function xr([t],[e]){return Ot.indexOf(t)-Ot.indexOf(e)}function Sr(t,[e,s]){return`${t} ${e}(${s})`}function Vr(t){return t.sort(xr).reduce(Sr,"").trim()}const bs={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function xs(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Er=xs("%"),ce=xs("px");function Lt(t){return!!(t&&t.getVelocity)}const Tr={get:(t,e)=>{let s=ds(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=le.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{ds(e)?t.style.setProperty(e,s):t.style[e]=s}};function _r(t){var e;const s={},n=[];for(let i in t){let r=t[i];r=Lt(r)?r.get():r,br(i)&&i in vs&&(i=vs[i]);let o=Array.isArray(r)?r[0]:r;const l=le.get(i);l?(o=ir(r)?(e=l.toDefaultUnit)==null?void 0:e.call(l,r):r,n.push([i,o])):s[i]=o}return n.length&&(s.transform=Vr(n)),Object.keys(s).length===0?null:s}const Pr={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function wr(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function Ar(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=ce.transform(-n);const i=ce.transform(e),r=ce.transform(s);t["stroke-dasharray"]=`${i} ${r}`}function Cr(t){const e={},s={};for(const n in t){const i=wr(n);if(i in Pr){const r=t[n];e[i]=Lt(r)?r.get():r}else s[n]=t[n]}return e["path-length"]!==void 0&&Ar(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attributes:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ue=t=>typeof t<"u";function Dr({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function kr(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Mr(t,e){return Dr(kr(t.getBoundingClientRect(),e))}const B=t=>!!(t&&t.getVelocity);function de(t,e){t.indexOf(e)===-1&&t.push(e)}function Rt(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class he{constructor(){this.subscriptions=[]}add(e){return de(this.subscriptions,e),()=>Rt(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let r=0;r<i;r++){const o=this.subscriptions[r];o&&o(e,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Br={useManualTiming:!1};let $t;function Nr(){$t=void 0}const F={now:()=>($t===void 0&&F.set(M.isProcessing||Br.useManualTiming?M.timestamp:performance.now()),$t),set:t=>{$t=t,queueMicrotask(Nr)}};function Ss(t,e){return e?t*(1e3/e):0}const Vs=30,Or=t=>!isNaN(parseFloat(t));class Lr{constructor(e,s={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const r=F.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=F.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Or(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new he);const n=this.events[e].add(s);return e==="change"?()=>{n(),w.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e,s=!0){!s||!this.passiveEffect?this.updateAndNotify(e,s):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=F.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>Vs)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,Vs);return Ss(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pt(t,e){return new Lr(t,e)}const Es={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"]},me={};for(const t in Es)me[t]={isEnabled:e=>Es[t].some(s=>!!e[s])};const Ts=()=>({translate:0,scale:1,origin:0,originPoint:0}),ot=()=>({x:Ts(),y:Ts()}),_s=()=>({min:0,max:0}),C=()=>({x:_s(),y:_s()}),Ps=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ws=t=>/^0[^.\s]+$/u.test(t),Rr=typeof window<"u",fe={current:null},As={current:!1};function $r(){if(As.current=!0,!!Rr)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>fe.current=t.matches;t.addListener(e),e()}else fe.current=!1}const X=(t,e,s)=>s>e?e:s<t?t:s,rt={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},gt={...rt,transform:t=>X(0,1,t)},jt={...rt,default:1},yt=t=>Math.round(t*1e5)/1e5,pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function jr(t){return t==null}const Fr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ge=(t,e)=>s=>!!(typeof s=="string"&&Fr.test(s)&&s.startsWith(t)||e&&!jr(s)&&Object.prototype.hasOwnProperty.call(s,e)),Cs=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,r,o,l]=n.match(pe);return{[t]:parseFloat(i),[e]:parseFloat(r),[s]:parseFloat(o),alpha:l!==void 0?parseFloat(l):1}},Ir=t=>X(0,255,t),ye={...rt,transform:t=>Math.round(Ir(t))},et={test:ge("rgb","red"),parse:Cs("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+ye.transform(t)+", "+ye.transform(e)+", "+ye.transform(s)+", "+yt(gt.transform(n))+")"};function Ur(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const ve={test:ge("#"),parse:Ur,transform:et.transform},vt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Z=vt("deg"),G=vt("%"),x=vt("px"),zr=vt("vh"),Kr=vt("vw"),Ds={...G,parse:t=>G.parse(t)/100,transform:t=>G.transform(t*100)},at={test:ge("hsl","hue"),parse:Cs("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+G.transform(yt(e))+", "+G.transform(yt(s))+", "+yt(gt.transform(n))+")"},N={test:t=>et.test(t)||ve.test(t)||at.test(t),parse:t=>et.test(t)?et.parse(t):at.test(t)?at.parse(t):ve.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?et.transform(t):at.transform(t)},Gr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Wr(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(pe))===null||e===void 0?void 0:e.length)||0)+(((s=t.match(Gr))===null||s===void 0?void 0:s.length)||0)>0}const ks="number",Ms="color",Hr="var",qr="var(",Bs="${}",Yr=/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 bt(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let r=0;const l=e.replace(Yr,c=>(N.test(c)?(n.color.push(r),i.push(Ms),s.push(N.parse(c))):c.startsWith(qr)?(n.var.push(r),i.push(Hr),s.push(c)):(n.number.push(r),i.push(ks),s.push(parseFloat(c))),++r,Bs)).split(Bs);return{values:s,split:l,indexes:n,types:i}}function Ns(t){return bt(t).values}function Os(t){const{split:e,types:s}=bt(t),n=e.length;return i=>{let r="";for(let o=0;o<n;o++)if(r+=e[o],i[o]!==void 0){const l=s[o];l===ks?r+=yt(i[o]):l===Ms?r+=N.transform(i[o]):r+=i[o]}return r}}const Xr=t=>typeof t=="number"?0:t;function Zr(t){const e=Ns(t);return Os(t)(e.map(Xr))}const J={test:Wr,parse:Ns,createTransformer:Os,getAnimatableNone:Zr},Jr=new Set(["brightness","contrast","saturate","opacity"]);function Qr(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(pe)||[];if(!n)return t;const i=s.replace(n,"");let r=Jr.has(e)?1:0;return n!==s&&(r*=100),e+"("+r+i+")"}const ta=/\b([a-z-]*)\(.*?\)/gu,be={...J,getAnimatableNone:t=>{const e=t.match(ta);return e?e.map(Qr).join(" "):t}},ea={borderWidth:x,borderTopWidth:x,borderRightWidth:x,borderBottomWidth:x,borderLeftWidth:x,borderRadius:x,radius:x,borderTopLeftRadius:x,borderTopRightRadius:x,borderBottomRightRadius:x,borderBottomLeftRadius:x,width:x,maxWidth:x,height:x,maxHeight:x,top:x,right:x,bottom:x,left:x,padding:x,paddingTop:x,paddingRight:x,paddingBottom:x,paddingLeft:x,margin:x,marginTop:x,marginRight:x,marginBottom:x,marginLeft:x,backgroundPositionX:x,backgroundPositionY:x},sa={rotate:Z,rotateX:Z,rotateY:Z,rotateZ:Z,scale:jt,scaleX:jt,scaleY:jt,scaleZ:jt,skew:Z,skewX:Z,skewY:Z,distance:x,translateX:x,translateY:x,translateZ:x,x,y:x,z:x,perspective:x,transformPerspective:x,opacity:gt,originX:Ds,originY:Ds,originZ:x},Ls={...rt,transform:Math.round},xe={...ea,...sa,zIndex:Ls,size:x,fillOpacity:gt,strokeOpacity:gt,numOctaves:Ls},na={...xe,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:be,WebkitFilter:be},Rs=t=>na[t];function $s(t,e){let s=Rs(t);return s!==be&&(s=J),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const js=t=>e=>e.test(t),Fs=[rt,x,G,Z,Kr,zr,{test:t=>t==="auto",parse:t=>t}],Is=t=>Fs.find(js(t)),ia=[...Fs,N,J],oa=t=>ia.find(js(t)),lt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ct=new Set(lt);function ra(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function aa(t){return typeof t=="string"||Array.isArray(t)}const la=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Us(t){return ra(t.animate)||la.some(e=>aa(t[e]))}function ca(t){return!!(Us(t)||t.variants)}const st=t=>t*180/Math.PI,Se=t=>{const e=st(Math.atan2(t[1],t[0]));return Ve(e)},ua={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:Se,rotateZ:Se,skewX:t=>st(Math.atan(t[1])),skewY:t=>st(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ve=t=>(t=t%360,t<0&&(t+=360),t),zs=Se,Ks=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Gs=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),da={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Ks,scaleY:Gs,scale:t=>(Ks(t)+Gs(t))/2,rotateX:t=>Ve(st(Math.atan2(t[6],t[5]))),rotateY:t=>Ve(st(Math.atan2(-t[2],t[0]))),rotateZ:zs,rotate:zs,skewX:t=>st(Math.atan(t[4])),skewY:t=>st(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Ws(t){return t.includes("scale")?1:0}function Ee(t,e){if(!t||t==="none")return Ws(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=da,i=s;else{const l=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=ua,i=l}if(!i)return Ws(e);const r=n[e],o=i[1].split(",").map(ma);return typeof r=="function"?r(o):o[r]}const ha=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return Ee(s,e)};function ma(t){return parseFloat(t.trim())}const Hs=t=>t===rt||t===x,fa=new Set(["x","y","z"]),pa=lt.filter(t=>!fa.has(t));function ga(t){const e=[];return pa.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ut={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Ee(e,"x"),y:(t,{transform:e})=>Ee(e,"y")};ut.translateX=ut.x,ut.translateY=ut.y;const nt=new Set;let Te=!1,_e=!1;function qs(){if(_e){const t=Array.from(nt).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=ga(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([r,o])=>{var l;(l=n.getValue(r))===null||l===void 0||l.set(o)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}_e=!1,Te=!1,nt.forEach(t=>t.complete()),nt.clear()}function Ys(){nt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(_e=!0)})}function ya(){Ys(),qs()}class Pe{constructor(e,s,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(nt.add(this),Te||(Te=!0,w.read(Ys),w.resolveKeyframes(qs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(e[r]===null)if(r===0){const o=i==null?void 0:i.get(),l=e[e.length-1];if(o!==void 0)e[0]=o;else if(n&&s){const c=n.readValue(s,l);c!=null&&(e[0]=c)}e[0]===void 0&&(e[0]=l),i&&o===void 0&&i.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),nt.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,nt.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}function va(t,e,s){for(const n in e){const i=e[n],r=s[n];if(B(i))t.addValue(n,i);else if(B(r))t.addValue(n,pt(i,{owner:t}));else if(r!==i)if(t.hasValue(n)){const o=t.getValue(n);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(n);t.addValue(n,pt(o!==void 0?o:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function Xs(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function Zs(t,e,s,n){if(typeof e=="function"){const[i,r]=Xs(n);e=e(s!==void 0?s:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Xs(n);e=e(s!==void 0?s:t.custom,i,r)}return e}const Js=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qs{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pe,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=F.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,w.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=s.initial?{...c}:{},this.renderState=d,this.parent=e,this.props=s,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!r,this.isControllingVariants=Us(s),this.isVariantNode=ca(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(s,{},this);for(const f in m){const p=m[f];c[f]!==void 0&&B(p)&&p.set(c[f],!1)}}mount(e){this.current=e,tt.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),As.current||$r(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:fe.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ct.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",l=>{this.latestValues[e]=l,this.props.onUpdate&&w.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=s.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),r(),o&&o(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in me){const s=me[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):C()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<Js.length;n++){const i=Js[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const r="on"+i,o=e[r];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=va(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(e),()=>s.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=pt(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(Ps(i)||ws(i))?i=parseFloat(i):!oa(i)&&J.test(s)&&(i=$s(e,s)),this.setBaseTarget(e,B(i)?i.get():i)),B(i)?i.get():i}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=Zs(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);o&&(i=o[e])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!B(r)?r:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new he),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}}function ba(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||ws(t):!0}const tn=new Set(["width","height","top","left","right","bottom",...lt]),xa=new Set(["auto","none","0"]);function Sa(t,e,s){let n=0,i;for(;n<t.length&&!i;){const r=t[n];typeof r=="string"&&!xa.has(r)&&bt(r).values.length&&(i=t[n]),n++}if(i&&s)for(const r of e)t[r]=$s(s,i)}const Va=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ea(t){const e=Va.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}function en(t,e,s=1){const[n,i]=Ea(t);if(!n)return;const r=window.getComputedStyle(e).getPropertyValue(n);if(r){const o=r.trim();return Ps(o)?parseFloat(o):o}return ie(i)?en(i,e,s+1):i}class sn extends Pe{constructor(e,s,n,i,r){super(e,s,n,i,r,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let c=0;c<e.length;c++){let d=e[c];if(typeof d=="string"&&(d=d.trim(),ie(d))){const u=en(d,s.current);u!==void 0&&(e[c]=u),c===e.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!tn.has(n)||e.length!==2)return;const[i,r]=e,o=Is(i),l=Is(r);if(o!==l)if(Hs(o)&&Hs(l))for(let c=0;c<e.length;c++){const d=e[c];typeof d=="string"&&(e[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,n=[];for(let i=0;i<e.length;i++)ba(e[i])&&n.push(i);n.length&&Sa(e,n,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ut[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;const{element:s,name:n,unresolvedKeyframes:i}=this;if(!s||!s.current)return;const r=s.getValue(n);r&&r.jump(this.measuredOrigin,!1);const o=i.length-1,l=i[o];i[o]=ut[n](s.measureViewportBox(),window.getComputedStyle(s.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([c,d])=>{s.getValue(c).set(d)}),this.resolveNoneKeyframes()}}class nn extends Qs{constructor(){super(...arguments),this.KeyframeResolver=sn}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;B(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const on=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ta={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},_a=lt.length;function Pa(t,e,s){let n="",i=!0;for(let r=0;r<_a;r++){const o=lt[r],l=t[o];if(l===void 0)continue;let c=!0;if(typeof l=="number"?c=l===(o.startsWith("scale")?1:0):c=parseFloat(l)===0,!c||s){const d=on(l,xe[o]);if(!c){i=!1;const u=Ta[o]||o;n+=`${u}(${d}) `}s&&(e[o]=d)}}return n=n.trim(),s?n=s(e,i?"":n):i&&(n="none"),n}function rn(t,e,s){const{style:n,vars:i,transformOrigin:r}=t;let o=!1,l=!1;for(const c in e){const d=e[c];if(ct.has(c)){o=!0;continue}else if(ne(c)){i[c]=d;continue}else{const u=on(d,xe[c]);c.startsWith("origin")?(l=!0,r[c]=u):n[c]=u}}if(e.transform||(o||s?n.transform=Pa(e,t.transform,s):n.transform&&(n.transform="none")),l){const{originX:c="50%",originY:d="50%",originZ:u=0}=r;n.transformOrigin=`${c} ${d} ${u}`}}function an(t,{style:e,vars:s},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const r in s)t.style.setProperty(r,s[r])}function wa(t,{layout:e,layoutId:s}){return ct.has(t)||t.startsWith("origin")||(e||s!==void 0)&&(!!ht[t]||t==="opacity")}function ln(t,e,s){var n;const{style:i}=t,r={};for(const o in i)(B(i[o])||e.style&&B(e.style[o])||wa(o,t)||((n=s==null?void 0:s.getValue(o))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(r[o]=i[o]);return r}function Aa(t){return window.getComputedStyle(t)}class cn extends nn{constructor(){super(...arguments),this.type="html",this.renderInstance=an}readValueFromInstance(e,s){if(ct.has(s))return ha(e,s);{const n=Aa(e),i=(ne(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:s}){return Mr(e,s)}build(e,s,n){rn(e,s,n.transformTemplate)}scrapeMotionValuesFromProps(e,s,n){return ln(e,s,n)}}const we=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Ca={offset:"stroke-dashoffset",array:"stroke-dasharray"},Da={offset:"strokeDashoffset",array:"strokeDasharray"};function ka(t,e,s=1,n=0,i=!0){t.pathLength=1;const r=i?Ca:Da;t[r.offset]=x.transform(-n);const o=x.transform(e),l=x.transform(s);t[r.array]=`${o} ${l}`}function un(t,e,s){return typeof t=="string"?t:x.transform(e+s*t)}function Ma(t,e,s){const n=un(e,t.x,t.width),i=un(s,t.y,t.height);return`${n} ${i}`}function Ba(t,{attrX:e,attrY:s,attrScale:n,originX:i,originY:r,pathLength:o,pathSpacing:l=1,pathOffset:c=0,...d},u,h){if(rn(t,d,h),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:m,style:f,dimensions:p}=t;m.transform&&(p&&(f.transform=m.transform),delete m.transform),p&&(i!==void 0||r!==void 0||f.transform)&&(f.transformOrigin=Ma(p,i!==void 0?i:.5,r!==void 0?r:.5)),e!==void 0&&(m.x=e),s!==void 0&&(m.y=s),n!==void 0&&(m.scale=n),o!==void 0&&ka(m,o,l,c,!1)}const dn=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"]),Na=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Oa(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function La(t,e,s,n){an(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(dn.has(i)?i:we(i),e.attrs[i])}function Ra(t,e,s){const n=ln(t,e,s);for(const i in t)if(B(t[i])||B(e[i])){const r=lt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[r]=t[i]}return n}class hn extends nn{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=C,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&Oa(this.current,this.renderState)}}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(ct.has(s)){const n=Rs(s);return n&&n.default||0}return s=dn.has(s)?s:we(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return Ra(e,s,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&w.postRender(this.updateDimensions)}build(e,s,n){Ba(e,s,this.isSVGTag,n.transformTemplate)}renderInstance(e,s,n,i){La(e,s,n,i)}mount(e){this.isSVGTag=Na(e.tagName),super.mount(e)}}function $a(t,e){return hs(t)?new hn(e):new cn(e)}function Ae(t){let e;return()=>(e===void 0&&(e=t()),e)}const ja=Ae(()=>window.ScrollTimeline!==void 0);class Fa{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=s}attachTimeline(e,s){const n=this.animations.map(i=>{if(ja()&&i.attachTimeline)return i.attachTimeline(e);if(typeof s=="function")return s(i)});return()=>{n.forEach((i,r)=>{i&&i(),this.animations[r].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;s<this.animations.length;s++)e=Math.max(e,this.animations[s].duration);return e}runAll(e){this.animations.forEach(s=>s[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class mn extends Fa{then(e,s){return Promise.all(this.animations).then(e).catch(s)}}const W=t=>t*1e3,H=t=>t/1e3,Ft=2e4;function Ce(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e<Ft;)e+=s,n=t.next(e);return e>=Ft?1/0:e}const xt=(t,e,s)=>{const n=e-t;return n===0?1:(s-t)/n},fn=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let r=0;r<i;r++)n+=t(xt(0,i-1,r))+", ";return`linear(${n.substring(0,n.length-2)})`},Ia=5;function pn(t,e,s){const n=Math.max(e-Ia,0);return Ss(s-t(n),e-n)}const A={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},gn=.001;function Ua({duration:t=A.duration,bounce:e=A.bounce,velocity:s=A.velocity,mass:n=A.mass}){let i,r,o=1-e;o=X(A.minDamping,A.maxDamping,o),t=X(A.minDuration,A.maxDuration,H(t)),o<1?(i=d=>{const u=d*o,h=u*t,m=u-s,f=De(d,o),p=Math.exp(-h);return gn-m/f*p},r=d=>{const h=d*o*t,m=h*s+s,f=Math.pow(o,2)*Math.pow(d,2)*t,p=Math.exp(-h),g=De(Math.pow(d,2),o);return(-i(d)+gn>0?-1:1)*((m-f)*p)/g}):(i=d=>{const u=Math.exp(-d*t),h=(d-s)*t+1;return-.001+u*h},r=d=>{const u=Math.exp(-d*t),h=(s-d)*(t*t);return u*h});const l=5/t,c=Ka(i,r,l);if(t=W(t),isNaN(c))return{stiffness:A.stiffness,damping:A.damping,duration:t};{const d=Math.pow(c,2)*n;return{stiffness:d,damping:o*2*Math.sqrt(n*d),duration:t}}}const za=12;function Ka(t,e,s){let n=s;for(let i=1;i<za;i++)n=n-t(n)/e(n);return n}function De(t,e){return t*Math.sqrt(1-e*e)}const Ga=["duration","bounce"],Wa=["stiffness","damping","mass"];function yn(t,e){return e.some(s=>t[s]!==void 0)}function Ha(t){let e={velocity:A.velocity,stiffness:A.stiffness,damping:A.damping,mass:A.mass,isResolvedFromDuration:!1,...t};if(!yn(t,Wa)&&yn(t,Ga))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,r=2*X(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:A.mass,stiffness:i,damping:r}}else{const s=Ua(t);e={...e,...s,mass:A.mass},e.isResolvedFromDuration=!0}return e}function ke(t=A.visualDuration,e=A.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const r=s.keyframes[0],o=s.keyframes[s.keyframes.length-1],l={done:!1,value:r},{stiffness:c,damping:d,mass:u,duration:h,velocity:m,isResolvedFromDuration:f}=Ha({...s,velocity:-H(s.velocity||0)}),p=m||0,g=d/(2*Math.sqrt(c*u)),v=o-r,y=H(Math.sqrt(c/u)),S=Math.abs(v)<5;n||(n=S?A.restSpeed.granular:A.restSpeed.default),i||(i=S?A.restDelta.granular:A.restDelta.default);let E;if(g<1){const b=De(y,g);E=T=>{const k=Math.exp(-g*y*T);return o-k*((p+g*y*v)/b*Math.sin(b*T)+v*Math.cos(b*T))}}else if(g===1)E=b=>o-Math.exp(-y*b)*(v+(p+y*v)*b);else{const b=y*Math.sqrt(g*g-1);E=T=>{const k=Math.exp(-g*y*T),V=Math.min(b*T,300);return o-k*((p+g*y*v)*Math.sinh(V)+b*v*Math.cosh(V))/b}}const _={calculatedDuration:f&&h||null,next:b=>{const T=E(b);if(f)l.done=b>=h;else{let k=0;g<1&&(k=b===0?W(p):pn(E,b,T));const V=Math.abs(k)<=n,P=Math.abs(o-T)<=i;l.done=V&&P}return l.value=l.done?o:T,l},toString:()=>{const b=Math.min(Ce(_),Ft),T=fn(k=>_.next(b*k).value,b,30);return b+"ms "+T}};return _}function qa(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(Ce(n),Ft);return{type:"keyframes",ease:r=>n.next(i*r).value/e,duration:H(i)}}function It(t){return typeof t=="function"}const Ya=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},vn=t=>Array.isArray(t)&&typeof t[0]!="number";function bn(t,e){return vn(t)?t[Ya(0,t.length,e)]:t}const D=(t,e,s)=>t+(e-t)*s;function xn(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=xt(0,e,n);t.push(D(s,1,i))}}function Sn(t){const e=[0];return xn(e,t.length-1),e}function Me(t,e,s){var n;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const r=(n=s==null?void 0:s[t])!==null&&n!==void 0?n:i.querySelectorAll(t);return r?Array.from(r):[]}return Array.from(t)}function Be(t){return typeof t=="object"&&!Array.isArray(t)}function Vn(t,e,s,n){return typeof t=="string"&&Be(e)?Me(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function Xa(t,e,s){return t*(e+1)}function En(t,e,s,n){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:(i=n.get(e))!==null&&i!==void 0?i:t}function Za(t,e,s){for(let n=0;n<t.length;n++){const i=t[n];i.at>e&&i.at<s&&(Rt(t,i),n--)}}function Ja(t,e,s,n,i,r){Za(t,i,r);for(let o=0;o<e.length;o++)t.push({value:e[o],at:D(i,r,n[o]),easing:bn(s,o)})}function Qa(t,e){for(let s=0;s<t.length;s++)t[s]=t[s]/(e+1)}function tl(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const el="easeInOut";function sl(t,{defaultTransition:e={},...s}={},n,i){const r=e.duration||.3,o=new Map,l=new Map,c={},d=new Map;let u=0,h=0,m=0;for(let f=0;f<t.length;f++){const p=t[f];if(typeof p=="string"){d.set(p,h);continue}else if(!Array.isArray(p)){d.set(p.name,En(h,p.at,u,d));continue}let[g,v,y={}]=p;y.at!==void 0&&(h=En(h,y.at,u,d));let S=0;const E=(_,b,T,k=0,V=0)=>{const P=nl(_),{delay:L=0,times:U=Sn(P),type:rs="keyframes",repeat:te,repeatType:lm,repeatDelay:cm=0,...Jh}=b;let{ease:Q=e.ease||"easeOut",duration:j}=b;const Po=typeof L=="function"?L(k,V):L,wo=P.length,Ao=It(rs)?rs:i==null?void 0:i[rs];if(wo<=2&&Ao){let kt=100;if(wo===2&&rl(P)){const Mt=P[1]-P[0];kt=Math.abs(Mt)}const ee={...Jh};j!==void 0&&(ee.duration=W(j));const se=qa(ee,kt,Ao);Q=se.ease,j=se.duration}j??(j=r);const Co=h+Po;U.length===1&&U[0]===0&&(U[1]=1);const Do=U.length-P.length;if(Do>0&&xn(U,Do),P.length===1&&P.unshift(null),te){j=Xa(j,te);const kt=[...P],ee=[...U];Q=Array.isArray(Q)?[...Q]:[Q];const se=[...Q];for(let Mt=0;Mt<te;Mt++){P.push(...kt);for(let Bt=0;Bt<kt.length;Bt++)U.push(ee[Bt]+(Mt+1)),Q.push(Bt===0?"linear":bn(se,Bt-1))}Qa(U,te)}const ko=Co+j;Ja(T,P,Q,U,Co,ko),S=Math.max(Po+j,S),m=Math.max(ko,m)};if(B(g)){const _=Tn(g,l);E(v,y,_n("default",_))}else{const _=Vn(g,v,n,c),b=_.length;for(let T=0;T<b;T++){v=v,y=y;const k=_[T],V=Tn(k,l);for(const P in v)E(v[P],il(y,P),_n(P,V),T,b)}}u=h,h+=S}return l.forEach((f,p)=>{for(const g in f){const v=f[g];v.sort(tl);const y=[],S=[],E=[];for(let b=0;b<v.length;b++){const{at:T,value:k,easing:V}=v[b];y.push(k),S.push(xt(0,m,T)),E.push(V||"easeOut")}S[0]!==0&&(S.unshift(0),y.unshift(y[0]),E.unshift(el)),S[S.length-1]!==1&&(S.push(1),y.push(null)),o.has(p)||o.set(p,{keyframes:{},transition:{}});const _=o.get(p);_.keyframes[g]=y,_.transition[g]={...e,duration:m,ease:E,times:S,...s}}}),o}function Tn(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function _n(t,e){return e[t]||(e[t]=[]),e[t]}function nl(t){return Array.isArray(t)?t:[t]}function il(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const ol=t=>typeof t=="number",rl=t=>t.every(ol);function Ne(t,e){return t?t[e]||t.default||t:void 0}const al=t=>Array.isArray(t),ll=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),cl=t=>al(t)?t[t.length-1]||0:t;function ul(t,e,s){const n=t.getProps();return Zs(n,e,n.custom,t)}function dl(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,pt(s))}function hl(t,e){const s=ul(t,e);let{transitionEnd:n={},transition:i={},...r}=s||{};r={...r,...n};for(const o in r){const l=cl(r[o]);dl(t,o,l)}}function ml(t){return!!(B(t)&&t.add)}function fl(t,e){const s=t.getValue("willChange");if(ml(s))return s.add(e)}const pl="data-"+we("framerAppearId");function Pn(t){return t.props[pl]}function wn(t,e){t.timeline=e,t.onfinish=null}const Oe=t=>Array.isArray(t)&&typeof t[0]=="number",gl={linearEasing:void 0};function yl(t,e){const s=Ae(t);return()=>{var n;return(n=gl[e])!==null&&n!==void 0?n:s()}}const Ut=yl(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function An(t){return!!(typeof t=="function"&&Ut()||!t||typeof t=="string"&&(t in Le||Ut())||Oe(t)||Array.isArray(t)&&t.every(An))}const St=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,Le={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:St([0,.65,.55,1]),circOut:St([.55,0,1,.45]),backIn:St([.31,.01,.66,-.59]),backOut:St([.33,1.53,.69,.99])};function Cn(t,e){if(t)return typeof t=="function"&&Ut()?fn(t,e):Oe(t)?St(t):Array.isArray(t)?t.map(s=>Cn(s,e)||Le.easeOut):Le[t]}const Dn=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,vl=1e-7,bl=12;function xl(t,e,s,n,i){let r,o,l=0;do o=e+(s-e)/2,r=Dn(o,n,i)-t,r>0?s=o:e=o;while(Math.abs(r)>vl&&++l<bl);return o}function Vt(t,e,s,n){if(t===e&&s===n)return O;const i=r=>xl(r,0,1,t,s);return r=>r===0||r===1?r:Dn(i(r),e,n)}const kn=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Mn=t=>e=>1-t(1-e),Bn=Vt(.33,1.53,.69,.99),Re=Mn(Bn),Nn=kn(Re),On=t=>(t*=2)<1?.5*Re(t):.5*(2-Math.pow(2,-10*(t-1))),$e=t=>1-Math.sin(Math.acos(t)),Ln=Mn($e),Rn=kn($e),$n=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(J.test(t)||t==="0")&&!t.startsWith("url("));function Sl(t){const e=t[0];if(t.length===1)return!0;for(let s=0;s<t.length;s++)if(t[s]!==e)return!0}function Vl(t,e,s,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const r=t[t.length-1],o=$n(i,e),l=$n(r,e);return!o||!l?!1:Sl(t)||(s==="spring"||It(s))&&n}const El=t=>t!==null;function zt(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(El),r=e&&s!=="loop"&&e%2===1?0:i.length-1;return!r||n===void 0?i[r]:n}const Tl=40;class jn{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...l}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=F.now(),this.options={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:r,repeatType:o,...l},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Tl?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&ya(),this._resolved}onKeyframesResolved(e,s){this.resolvedAt=F.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:r,delay:o,onComplete:l,onUpdate:c,isGenerator:d}=this.options;if(!d&&!Vl(e,n,i,r))if(o)this.options.duration=0;else{c&&c(zt(e,this.options,s)),l&&l(),this.resolveFinishedPromise();return}const u=this.initPlayback(e,s);u!==!1&&(this._resolved={keyframes:e,finalKeyframe:s,...u},this.onPostResolved())}onPostResolved(){}then(e,s){return this.currentFinishedPromise.then(e,s)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function je(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function _l({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,r=0,o=0;if(!e)i=r=o=s;else{const l=s<.5?s*(1+e):s+e-s*e,c=2*s-l;i=je(c,l,t+1/3),r=je(c,l,t),o=je(c,l,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:n}}function Kt(t,e){return s=>s>0?e:t}const Fe=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Pl=[ve,et,at],wl=t=>Pl.find(e=>e.test(t));function Fn(t){const e=wl(t);if(!e)return!1;let s=e.parse(t);return e===at&&(s=_l(s)),s}const In=(t,e)=>{const s=Fn(t),n=Fn(e);if(!s||!n)return Kt(t,e);const i={...s};return r=>(i.red=Fe(s.red,n.red,r),i.green=Fe(s.green,n.green,r),i.blue=Fe(s.blue,n.blue,r),i.alpha=D(s.alpha,n.alpha,r),et.transform(i))},Al=(t,e)=>s=>e(t(s)),Et=(...t)=>t.reduce(Al),Ie=new Set(["none","hidden"]);function Cl(t,e){return Ie.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}function Dl(t,e){return s=>D(t,e,s)}function Ue(t){return typeof t=="number"?Dl:typeof t=="string"?ie(t)?Kt:N.test(t)?In:Bl:Array.isArray(t)?Un:typeof t=="object"?N.test(t)?In:kl:Kt}function Un(t,e){const s=[...t],n=s.length,i=t.map((r,o)=>Ue(r)(r,e[o]));return r=>{for(let o=0;o<n;o++)s[o]=i[o](r);return s}}function kl(t,e){const s={...t,...e},n={};for(const i in s)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Ue(t[i])(t[i],e[i]));return i=>{for(const r in n)s[r]=n[r](i);return s}}function Ml(t,e){var s;const n=[],i={color:0,var:0,number:0};for(let r=0;r<e.values.length;r++){const o=e.types[r],l=t.indexes[o][i[o]],c=(s=t.values[l])!==null&&s!==void 0?s:0;n[r]=c,i[o]++}return n}const Bl=(t,e)=>{const s=J.createTransformer(e),n=bt(t),i=bt(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Ie.has(t)&&!i.values.length||Ie.has(e)&&!n.values.length?Cl(t,e):Et(Un(Ml(n,i),i.values),s):Kt(t,e)};function zn(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?D(t,e,s):Ue(t)(t,e)}function Kn({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=t[0],m={done:!1,value:h},f=V=>l!==void 0&&V<l||c!==void 0&&V>c,p=V=>l===void 0?c:c===void 0||Math.abs(l-V)<Math.abs(c-V)?l:c;let g=s*e;const v=h+g,y=o===void 0?v:o(v);y!==v&&(g=y-h);const S=V=>-g*Math.exp(-V/n),E=V=>y+S(V),_=V=>{const P=S(V),L=E(V);m.done=Math.abs(P)<=d,m.value=m.done?y:L};let b,T;const k=V=>{f(m.value)&&(b=V,T=ke({keyframes:[m.value,p(m.value)],velocity:pn(E,V,m.value),damping:i,stiffness:r,restDelta:d,restSpeed:u}))};return k(0),{calculatedDuration:null,next:V=>{let P=!1;return!T&&b===void 0&&(P=!0,_(V),k(V)),b!==void 0&&V>=b?T.next(V-b):(!P&&_(V),m)}}}const Nl=Vt(.42,0,1,1),Ol=Vt(0,0,.58,1),Gn=Vt(.42,0,.58,1),Ll={linear:O,easeIn:Nl,easeInOut:Gn,easeOut:Ol,circIn:$e,circInOut:Rn,circOut:Ln,backIn:Re,backInOut:Nn,backOut:Bn,anticipate:On},Wn=t=>{if(Oe(t)){ms(t.length===4);const[e,s,n,i]=t;return Vt(e,s,n,i)}else if(typeof t=="string")return Ll[t];return t};function Rl(t,e,s){const n=[],i=s||zn,r=t.length-1;for(let o=0;o<r;o++){let l=i(t[o],t[o+1]);if(e){const c=Array.isArray(e)?e[o]||O:e;l=Et(c,l)}n.push(l)}return n}function $l(t,e,{clamp:s=!0,ease:n,mixer:i}={}){const r=t.length;if(ms(r===e.length),r===1)return()=>e[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const l=Rl(e,n,i),c=l.length,d=u=>{if(o&&u<t[0])return e[0];let h=0;if(c>1)for(;h<t.length-2&&!(u<t[h+1]);h++);const m=xt(t[h],t[h+1],u);return l[h](m)};return s?u=>d(X(t[0],t[r-1],u)):d}function jl(t,e){return t.map(s=>s*e)}function Fl(t,e){return t.map(()=>e||Gn).splice(0,t.length-1)}function Gt({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=vn(n)?n.map(Wn):Wn(n),r={done:!1,value:e[0]},o=jl(s&&s.length===e.length?s:Sn(e),t),l=$l(o,e,{ease:Array.isArray(i)?i:Fl(e,i)});return{calculatedDuration:t,next:c=>(r.value=l(c),r.done=c>=t,r)}}const Il=t=>{const e=({timestamp:s})=>t(s);return{start:()=>w.update(e,!0),stop:()=>K(e),now:()=>M.isProcessing?M.timestamp:F.now()}},Ul={decay:Kn,inertia:Kn,tween:Gt,keyframes:Gt,spring:ke},zl=t=>t/100;class ze extends jn{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:s,motionValue:n,element:i,keyframes:r}=this.options,o=(i==null?void 0:i.KeyframeResolver)||Pe,l=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new o(r,l,s,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:s="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=this.options,l=It(s)?s:Ul[s]||Gt;let c,d;l!==Gt&&typeof e[0]!="number"&&(c=Et(zl,zn(e[0],e[1])),e=[0,100]);const u=l({...this.options,keyframes:e});r==="mirror"&&(d=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Ce(u));const{calculatedDuration:h}=u,m=h+i,f=m*(n+1)-i;return{generator:u,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,totalDuration:f}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,s=!1){const{resolved:n}=this;if(!n){const{keyframes:V}=this.options;return{done:!0,value:V[V.length-1]}}const{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:l,keyframes:c,calculatedDuration:d,totalDuration:u,resolvedDuration:h}=n;if(this.startTime===null)return r.next(0);const{delay:m,repeat:f,repeatType:p,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),s?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const y=this.currentTime-m*(this.speed>=0?1:-1),S=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let E=this.currentTime,_=r;if(f){const V=Math.min(this.currentTime,u)/h;let P=Math.floor(V),L=V%1;!L&&V>=1&&(L=1),L===1&&P--,P=Math.min(P,f+1),!!(P%2)&&(p==="reverse"?(L=1-L,g&&(L-=g/h)):p==="mirror"&&(_=o)),E=X(0,1,L)*h}const b=S?{done:!1,value:c[0]}:_.next(E);l&&(b.value=l(b.value));let{done:T}=b;!S&&d!==null&&(T=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(b.value=zt(c,this.options,i)),v&&v(b.value),k&&this.finish(),b}get duration(){const{resolved:e}=this;return e?H(e.calculatedDuration):0}get time(){return H(this.currentTime)}set time(e){e=W(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=Il,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=e(r=>this.tick(r))),s&&s();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Kl=new Set(["opacity","clipPath","filter","transform"]);function Gl(t,e,s,{delay:n=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:l="easeInOut",times:c}={}){const d={[e]:s};c&&(d.offset=c);const u=Cn(l,i);return Array.isArray(u)&&(d.easing=u),t.animate(d,{delay:n,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"})}const Wl=Ae(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wt=10,Hl=2e4;function ql(t){return It(t.type)||t.type==="spring"||!An(t.ease)}function Yl(t,e){const s=new ze({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const i=[];let r=0;for(;!n.done&&r<Hl;)n=s.sample(r),i.push(n.value),r+=Wt;return{times:void 0,keyframes:i,duration:r-Wt,ease:"linear"}}const Hn={anticipate:On,backInOut:Nn,circInOut:Rn};function Xl(t){return t in Hn}class qn extends jn{constructor(e){super(e);const{name:s,motionValue:n,element:i,keyframes:r}=this.options;this.resolver=new sn(r,(o,l)=>this.onKeyframesResolved(o,l),s,n,i),this.resolver.scheduleResolve()}initPlayback(e,s){let{duration:n=300,times:i,ease:r,type:o,motionValue:l,name:c,startTime:d}=this.options;if(!l.owner||!l.owner.current)return!1;if(typeof r=="string"&&Ut()&&Xl(r)&&(r=Hn[r]),ql(this.options)){const{onComplete:h,onUpdate:m,motionValue:f,element:p,...g}=this.options,v=Yl(e,g);e=v.keyframes,e.length===1&&(e[1]=e[0]),n=v.duration,i=v.times,r=v.ease,o="keyframes"}const u=Gl(l.owner.current,c,e,{...this.options,duration:n,times:i,ease:r});return u.startTime=d??this.calcStartTime(),this.pendingTimeline?(wn(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:h}=this.options;l.set(zt(e,this.options,s)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:i,type:o,ease:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:s}=e;return H(s)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:s}=e;return H(s.currentTime||0)}set time(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.currentTime=W(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:s}=e;return s.playbackRate}set speed(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:s}=e;return s.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:s}=e;return s.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:s}=this;if(!s)return O;const{animation:n}=s;wn(n,e)}return O}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:s,keyframes:n,duration:i,type:r,ease:o,times:l}=e;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:u,onComplete:h,element:m,...f}=this.options,p=new ze({...f,keyframes:n,duration:i,type:r,ease:o,times:l,isGenerator:!0}),g=W(this.time);d.setWithVelocity(p.sample(g-Wt).value,p.sample(g).value,Wt)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:s,name:n,repeatDelay:i,repeatType:r,damping:o,type:l}=e;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:d}=s.owner.getProps();return Wl()&&n&&Kl.has(n)&&!c&&!d&&!i&&r!=="mirror"&&o!==0&&l!=="inertia"}}const Zl={type:"spring",stiffness:500,damping:25,restSpeed:10},Jl=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),Ql={type:"keyframes",duration:.8},tc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ec=(t,{keyframes:e})=>e.length>2?Ql:ct.has(t)?t.startsWith("scale")?Jl(e[1]):Zl:tc;function sc({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:r,repeatType:o,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const Ke=(t,e,s,n={},i,r)=>o=>{const l=Ne(n,t)||{},c=l.delay||n.delay||0;let{elapsed:d=0}=n;d=d-W(c);let u={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-d,onUpdate:m=>{e.set(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{o(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:r?void 0:i};sc(l)||(u={...u,...ec(t,u)}),u.duration&&(u.duration=W(u.duration)),u.repeatDelay&&(u.repeatDelay=W(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(h=!0)),u.allowFlatten=!l.type&&!l.ease,h&&!r&&e.get()!==void 0){const m=zt(u.keyframes,l);if(m!==void 0)return w.update(()=>{u.onUpdate(m),u.onComplete()}),new mn([])}return!r&&qn.supports(u)?new qn(u):new ze(u)};function nc({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function ic(t,e,{delay:s=0,transitionOverride:n,type:i}={}){var r;let{transition:o=t.getDefaultTransition(),transitionEnd:l,...c}=e;n&&(o=n);const d=[],u=i&&t.animationState&&t.animationState.getState()[i];for(const h in c){const m=t.getValue(h,(r=t.latestValues[h])!==null&&r!==void 0?r:null),f=c[h];if(f===void 0||u&&nc(u,h))continue;const p={delay:s,...Ne(o||{},h)};let g=!1;if(window.MotionHandoffAnimation){const y=Pn(t);if(y){const S=window.MotionHandoffAnimation(y,h,w);S!==null&&(p.startTime=S,g=!0)}}fl(t,h),m.start(Ke(h,m,f,t.shouldReduceMotion&&tn.has(h)?{type:!1}:p,t,g));const v=m.animation;v&&d.push(v)}return l&&Promise.all(d).then(()=>{w.update(()=>{l&&hl(t,l)})}),d}function Yn(t){return t instanceof SVGElement&&t.tagName!=="svg"}function oc(t,e){return t in e}class rc extends Qs{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(oc(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return C()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function ac(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=Yn(t)?new hn(e):new cn(e);s.mount(t),tt.set(t,s)}function lc(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new rc(e);s.mount(t),tt.set(t,s)}function Xn(t,e,s){const n=B(t)?t:pt(t);return n.start(Ke("",n,e,s)),n.animation}function cc(t,e){return B(t)||typeof t=="number"||typeof t=="string"&&!Be(e)}function Zn(t,e,s,n){const i=[];if(cc(t,e))i.push(Xn(t,Be(e)&&e.default||e,s&&(s.default||s)));else{const r=Vn(t,e,n),o=r.length;for(let l=0;l<o;l++){const c=r[l],d=c instanceof Element?ac:lc;tt.has(c)||d(c);const u=tt.get(c),h={...s};"delay"in h&&typeof h.delay=="function"&&(h.delay=h.delay(l,o)),i.push(...ic(u,{...e,transition:h},{}))}}return i}function uc(t,e,s){const n=[];return sl(t,e,s,{spring:ke}).forEach(({keyframes:r,transition:o},l)=>{n.push(...Zn(l,r,o))}),n}function dc(t){return Array.isArray(t)&&t.some(Array.isArray)}function hc(t){function e(s,n,i){let r=[];return dc(s)?r=uc(s,n,t):r=Zn(s,n,i,t),new mn(r)}return e}const mc=hc(),fc=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class pc extends z{constructor(e){var s;super(e),this.animateUpdates=({controlActiveState:n,directAnimate:i,directTransition:r,controlDelay:o=0,isFallback:l,isExit:c}={})=>{const d=this.state.target;this.state.target={...this.state.baseTarget};let u={};const h={...this.state.options.transition};u=this.resolveStateAnimation({controlActiveState:n,directAnimate:i,directTransition:r});const m=this.createAnimationFactories(d,u,o),{getChildAnimations:f,childAnimations:p}=this.setupChildAnimations(u,this.state.activeStates,l);return this.executeAnimations({factories:m,getChildAnimations:f,childAnimations:p,transition:h,controlActiveState:n,isExit:c})},this.state.visualElement=$a(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reduceMotion}),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;us(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:r=!1}){const o=()=>Promise.all(e.map(h=>h()).filter(Boolean)),l={...this.state.target},c=this.state.element,d=h=>{var m,f;c.dispatchEvent(gs("motionstart",l)),(f=(m=this.state.options).onAnimationStart)==null||f.call(m,l),h.then(()=>{var p,g;c.dispatchEvent(gs("motioncomplete",l,r)),(g=(p=this.state.options).onAnimationComplete)==null||g.call(p,l)}).catch(O)},u=()=>{const h=n!=null&&n.when?(n.when==="beforeChildren"?o():s()).then(()=>n.when==="beforeChildren"?s():o()):Promise.all([o(),s()]);return d(h),h};return i?u:u()}setupChildAnimations(e,s,n){var i;if(!((i=this.state.visualElement.variantChildren)!=null&&i.size)||!s)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:r=0,staggerDirection:o=1,delayChildren:l=0}=e||{},c=(this.state.visualElement.variantChildren.size-1)*r,d=o===1?(h=0)=>h*r:(h=0)=>c-h*r,u=Array.from(this.state.visualElement.variantChildren).map((h,m)=>{const f=l+d(m);return h.state.animateUpdates({controlActiveState:s,controlDelay:n?0:f})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(u.map(h=>h==null?void 0:h())),childAnimations:u}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(r=>{var o;if(!er(e[r],this.state.target[r]))return;(o=this.state.baseTarget)[r]??(o[r]=Tr.get(this.state.element,r));const l=this.state.target[r]==="none"&&ue(bs[r])?bs[r]:this.state.target[r];i.push(()=>{var c;return mc(this.state.element,{[r]:l},{...(s==null?void 0:s[r])||s,delay:(((c=s==null?void 0:s[r])==null?void 0:c.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,r={};const{variants:o,custom:l,transition:c,animatePresenceContext:d}=this.state.options,u=ue(l)?l:d==null?void 0:d.custom;return this.state.activeStates={...this.state.activeStates,...e},fc.forEach(h=>{if(!this.state.activeStates[h]||us(this.state.options[h]))return;const m=this.state.options[h];let f=ue(m)?ft(m,o,u):void 0;if(this.state.visualElement.isVariantNode){const p=ft(this.state.context[h],o,u);f=p?Object.assign(p||{},f):r}f&&(h!=="initial"&&(i=f.transition||this.state.options.transition||{}),r=Object.assign(r,f))}),s&&(r=ft(s,o,u),i=r.transition||n||c),Object.entries(r).forEach(([h,m])=>{h!=="transition"&&(this.state.target[h]=m)}),i}mount(){const{element:e}=this.state;ps.set(e,this.state),tt.get(e)||(this.state.visualElement.mount(e),tt.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}const gc={y:!1};function yc(){return gc.y}function Jn(t,e){const s=`${e}PointerCapture`;if(t.target instanceof Element&&s in t.target&&t.pointerId!==void 0)try{t.target[s](t.pointerId)}catch{}}const Qn=(t,e)=>e?t===e?!0:Qn(t,e.parentElement):!1,vc=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ti(t,e){const s=Me(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const bc=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function xc(t){return bc.has(t.tagName)||t.tabIndex!==-1}const Tt=new WeakSet;function ei(t){return e=>{e.key==="Enter"&&t(e)}}function Ge(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Sc=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=ei(()=>{if(Tt.has(s))return;Ge(s,"down");const i=ei(()=>{Ge(s,"up")}),r=()=>Ge(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",r,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function si(t){return vc(t)&&!0}function Vc(t,e,s={}){const[n,i,r]=ti(t,s),o=l=>{const c=l.currentTarget;if(!c||!si(l)||Tt.has(c))return;Tt.add(c),Jn(l,"set");const d=e(c,l),u=(f,p)=>{c.removeEventListener("pointerup",h),c.removeEventListener("pointercancel",m),Jn(f,"release"),!(!si(f)||!Tt.has(c))&&(Tt.delete(c),typeof d=="function"&&d(f,{success:p}))},h=f=>{(f.isTrusted?Ec(f,c instanceof Element?c.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?u(f,!1):u(f,!(c instanceof Element)||Qn(c,f.target))},m=f=>{u(f,!1)};c.addEventListener("pointerup",h,i),c.addEventListener("pointercancel",m,i),c.addEventListener("lostpointercapture",m,i)};return n.forEach(l=>{l=s.useGlobalTarget?window:l;let c=!1;l instanceof HTMLElement&&(c=!0,!xc(l)&&l.getAttribute("tabindex")===null&&(l.tabIndex=0)),l.addEventListener("pointerdown",o,i),c&&l.addEventListener("focus",d=>Sc(d,i),i)}),r}function Ec(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function ni(t){return{point:{x:t.pageX,y:t.pageY}}}function ii(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,r=n[i];r&&w.postRender(()=>r(e,ni(e)))}class Tc extends z{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Vc(e,(s,n)=>(ii(this.state,n,"Start"),(i,{success:r})=>ii(this.state,i,r?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function oi(t){return!(t.pointerType==="touch"||yc())}function _c(t,e,s={}){const[n,i,r]=ti(t,s),o=l=>{if(!oi(l))return;const{target:c}=l,d=e(c,l);if(typeof d!="function"||!c)return;const u=h=>{oi(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,i)};return n.forEach(l=>{l.addEventListener("pointerenter",o,i)}),r}function ri(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,r=n[i];r&&w.postRender(()=>r(e,ni(e)))}class Pc extends z{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=_c(e,(s,n)=>(ri(this.state,n,"Start"),i=>{ri(this.state,i,"End")})))}}const wc={some:0,all:1};function Ac(t,e,{root:s,margin:n,amount:i="some"}={}){const r=Me(t),o=new WeakMap,l=d=>{d.forEach(u=>{const h=o.get(u.target);if(u.isIntersecting!==!!h)if(u.isIntersecting){const m=e(u.target,u);typeof m=="function"?o.set(u.target,m):c.unobserve(u.target)}else typeof h=="function"&&(h(u),o.delete(u.target))})},c=new IntersectionObserver(l,{root:s,rootMargin:n,threshold:typeof i=="number"?i:wc[i]});return r.forEach(d=>c.observe(d)),()=>c.disconnect()}function ai(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,r=n[i];r&&w.postRender(()=>r(e))}class Cc extends z{isActive(){return!!this.state.options.whileInView}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=Ac(e,(i,r)=>{if(ai(this.state,r,"Enter"),!s)return o=>{ai(this.state,r,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Dc(e,s))&&this.startObserver()}}function Dc({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function Ht(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class kc extends z{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Et(Ht(this.state.element,"focus",()=>this.onFocus()),Ht(this.state.element,"blur",()=>this.onBlur()))}}const{schedule:Mc}=fs(queueMicrotask,!1),Bc=(t,e)=>t.depth-e.depth;class Nc{constructor(){this.children=[],this.isDirty=!1}add(e){de(this.children,e),this.isDirty=!0}remove(e){Rt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bc),this.isDirty=!1,this.children.forEach(e)}}function Oc(t,e){const s=F.now(),n=({timestamp:i})=>{const r=i-s;r>=e&&(K(n),t(r-e))};return w.read(n,!0),()=>K(n)}function We(t){const e=B(t)?t.get():t;return ll(e)?e.toValue():e}const li=["TopLeft","TopRight","BottomLeft","BottomRight"],Lc=li.length,ci=t=>typeof t=="string"?parseFloat(t):t,ui=t=>typeof t=="number"||x.test(t);function Rc(t,e,s,n,i,r){i?(t.opacity=D(0,s.opacity!==void 0?s.opacity:1,$c(n)),t.opacityExit=D(e.opacity!==void 0?e.opacity:1,0,jc(n))):r&&(t.opacity=D(e.opacity!==void 0?e.opacity:1,s.opacity!==void 0?s.opacity:1,n));for(let o=0;o<Lc;o++){const l=`border${li[o]}Radius`;let c=di(e,l),d=di(s,l);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||ui(c)===ui(d)?(t[l]=Math.max(D(ci(c),ci(d),n),0),(G.test(d)||G.test(c))&&(t[l]+="%")):t[l]=d}(e.rotate||s.rotate)&&(t.rotate=D(e.rotate||0,s.rotate||0,n))}function di(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const $c=hi(0,.5,Ln),jc=hi(.5,.95,O);function hi(t,e,s){return n=>n<t?0:n>e?1:s(xt(t,e,n))}function mi(t,e){t.min=e.min,t.max=e.max}function R(t,e){mi(t.x,e.x),mi(t.y,e.y)}function fi(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function He(t){return t===void 0||t===1}function qe({scale:t,scaleX:e,scaleY:s}){return!He(t)||!He(e)||!He(s)}function it(t){return qe(t)||pi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function pi(t){return gi(t.x)||gi(t.y)}function gi(t){return t&&t!=="0%"}function qt(t,e,s){const n=t-s,i=e*n;return s+i}function yi(t,e,s,n,i){return i!==void 0&&(t=qt(t,i,n)),qt(t,s,n)+e}function Ye(t,e=0,s=1,n,i){t.min=yi(t.min,e,s,n,i),t.max=yi(t.max,e,s,n,i)}function vi(t,{x:e,y:s}){Ye(t.x,e.translate,e.scale,e.originPoint),Ye(t.y,s.translate,s.scale,s.originPoint)}const bi=.999999999999,xi=1.0000000000001;function Fc(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;l<i;l++){r=s[l],o=r.projectionDelta;const{visualElement:c}=r.options;c&&c.props.style&&c.props.style.display==="contents"||(n&&r.options.layoutScroll&&r.scroll&&r!==r.root&&dt(t,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,vi(t,o)),n&&it(r.latestValues)&&dt(t,r.latestValues))}e.x<xi&&e.x>bi&&(e.x=1),e.y<xi&&e.y>bi&&(e.y=1)}function Yt(t,e){t.min=t.min+e,t.max=t.max+e}function Si(t,e,s,n,i=.5){const r=D(t.min,t.max,i);Ye(t,e,s,r,n)}function dt(t,e){Si(t.x,e.x,e.scaleX,e.scale,e.originX),Si(t.y,e.y,e.scaleY,e.scale,e.originY)}const Vi=1e-4,Ic=1-Vi,Uc=1+Vi,Ei=.01,zc=0-Ei,Kc=0+Ei;function $(t){return t.max-t.min}function Gc(t,e,s){return Math.abs(t-e)<=s}function Ti(t,e,s,n=.5){t.origin=n,t.originPoint=D(e.min,e.max,t.origin),t.scale=$(s)/$(e),t.translate=D(s.min,s.max,t.origin)-t.originPoint,(t.scale>=Ic&&t.scale<=Uc||isNaN(t.scale))&&(t.scale=1),(t.translate>=zc&&t.translate<=Kc||isNaN(t.translate))&&(t.translate=0)}function _t(t,e,s,n){Ti(t.x,e.x,s.x,n?n.originX:void 0),Ti(t.y,e.y,s.y,n?n.originY:void 0)}function _i(t,e,s){t.min=s.min+e.min,t.max=t.min+$(e)}function Wc(t,e,s){_i(t.x,e.x,s.x),_i(t.y,e.y,s.y)}function Pi(t,e,s){t.min=e.min-s.min,t.max=t.min+$(e)}function Pt(t,e,s){Pi(t.x,e.x,s.x),Pi(t.y,e.y,s.y)}function wi(t,e,s,n,i){return t-=e,t=qt(t,1/s,n),i!==void 0&&(t=qt(t,1/i,n)),t}function Hc(t,e=0,s=1,n=.5,i,r=t,o=t){if(G.test(e)&&(e=parseFloat(e),e=D(o.min,o.max,e/100)-o.min),typeof e!="number")return;let l=D(r.min,r.max,n);t===r&&(l-=e),t.min=wi(t.min,e,s,l,i),t.max=wi(t.max,e,s,l,i)}function Ai(t,e,[s,n,i],r,o){Hc(t,e[s],e[n],e[i],e.scale,r,o)}const qc=["x","scaleX","originX"],Yc=["y","scaleY","originY"];function Ci(t,e,s,n){Ai(t.x,e,qc,s?s.x:void 0,n?n.x:void 0),Ai(t.y,e,Yc,s?s.y:void 0,n?n.y:void 0)}function Di(t){return t.translate===0&&t.scale===1}function ki(t){return Di(t.x)&&Di(t.y)}function Mi(t,e){return t.min===e.min&&t.max===e.max}function Xc(t,e){return Mi(t.x,e.x)&&Mi(t.y,e.y)}function Bi(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Ni(t,e){return Bi(t.x,e.x)&&Bi(t.y,e.y)}function Oi(t){return $(t.x)/$(t.y)}function Li(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class Zc{constructor(){this.members=[]}add(e){de(this.members,e),e.scheduleRender()}remove(e){if(Rt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1){n=r;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Jc(t,e,s){let n="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(s==null?void 0:s.z)||0;if((i||r||o)&&(n=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:m,skewX:f,skewY:p}=s;d&&(n=`perspective(${d}px) ${n}`),u&&(n+=`rotate(${u}deg) `),h&&(n+=`rotateX(${h}deg) `),m&&(n+=`rotateY(${m}deg) `),f&&(n+=`skewX(${f}deg) `),p&&(n+=`skewY(${p}deg) `)}const l=t.x.scale*e.x,c=t.y.scale*e.y;return(l!==1||c!==1)&&(n+=`scale(${l}, ${c})`),n||"none"}function Ri(t){return[t("x"),t("y")]}const Xt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Xe=["","X","Y","Z"],Qc={visibility:"hidden"},$i=1e3;let tu=0;function Ze(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function ji(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=Pn(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",w,!(i||r))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&ji(n)}function Fi({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},l=e==null?void 0:e()){this.id=tu++,this.animationId=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.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(nu),this.nodes.forEach(lu),this.nodes.forEach(cu),this.nodes.forEach(iu)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,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 Nc)}addEventListener(o,l){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new he),this.eventHandlers.get(o).add(l)}notifyListeners(o,...l){const c=this.eventHandlers.get(o);c&&c.notify(...l)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,l=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Yn(o),this.instance=o;const{layoutId:c,layout:d,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),l&&(d||c)&&(this.isLayoutDirty=!0),t){let h;const m=()=>this.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Oc(m,250),Xt.hasAnimatedSinceResize&&(Xt.hasAnimatedSinceResize=!1,this.nodes.forEach(Ui))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeLayoutChanged:f,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||u.getDefaultTransition()||fu,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=u.getProps(),S=!this.targetLayout||!Ni(this.targetLayout,p),E=!m&&f;if(this.options.layoutRoot||this.resumeFrom||E||m&&(S||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,E);const _={...Ne(g,"layout"),onPlay:v,onComplete:y};(u.shouldReduceMotion||this.options.layoutRoot)&&(_.delay=0,_.type=!1),this.startAnimation(_)}else m||Ui(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,K(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(uu),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ji(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const h=this.path[u];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:l,layout:c}=this.options;if(l===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ii);return}this.isUpdating||this.nodes.forEach(ru),this.isUpdating=!1,this.nodes.forEach(au),this.nodes.forEach(eu),this.nodes.forEach(su),this.clearAllSnapshots();const l=F.now();M.delta=X(0,1e3/60,l-M.timestamp),M.timestamp=l,M.isProcessing=!0,re.update.process(M),re.preRender.process(M),re.render.process(M),M.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Mc.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ou),this.sharedNodes.forEach(du)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!$(this.snapshot.measuredBox.x)&&!$(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 o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=C(),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,o?o.layoutBox:void 0)}updateScroll(o="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(l=!1),l){const c=n(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!ki(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,u=d!==this.prevTransformTemplateValue;o&&(l||it(this.latestValues)||u)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const l=this.measurePageBox();let c=this.removeElementScroll(l);return o&&(c=this.removeTransform(c)),pu(c),{animationId:this.root.animationId,measuredBox:l,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:l}=this.options;if(!l)return C();const c=l.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(gu))){const{scroll:u}=this.root;u&&(Yt(c.x,u.offset.x),Yt(c.y,u.offset.y))}return c}removeElementScroll(o){var l;const c=C();if(R(c,o),!((l=this.scroll)===null||l===void 0)&&l.wasRoot)return c;for(let d=0;d<this.path.length;d++){const u=this.path[d],{scroll:h,options:m}=u;u!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&R(c,o),Yt(c.x,h.offset.x),Yt(c.y,h.offset.y))}return c}applyTransform(o,l=!1){const c=C();R(c,o);for(let d=0;d<this.path.length;d++){const u=this.path[d];!l&&u.options.layoutScroll&&u.scroll&&u!==u.root&&dt(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),it(u.latestValues)&&dt(c,u.latestValues)}return it(this.latestValues)&&dt(c,this.latestValues),c}removeTransform(o){const l=C();R(l,o);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!it(d.latestValues))continue;qe(d.latestValues)&&d.updateSnapshot();const u=C(),h=d.measurePageBox();R(u,h),Ci(l,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,u)}return it(this.latestValues)&&Ci(l,this.latestValues),l}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.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!==M.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!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 d=!!this.resumingFrom||this!==c;if(!(o||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((l=this.parent)===null||l===void 0)&&l.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=M.timestamp,!this.targetDelta&&!this.relativeTarget){const f=this.getClosestProjectingParent();f&&f.layout&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Pt(this.relativeTargetOrigin,this.layout.layoutBox,f.layout.layoutBox),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=C(),this.targetWithTransforms=C()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Wc(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):R(this.target,this.layout.layoutBox),vi(this.target,this.targetDelta)):R(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const f=this.getClosestProjectingParent();f&&!!f.resumingFrom==!!this.resumingFrom&&!f.options.layoutScroll&&f.target&&this.animationProgress!==1?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=C(),this.relativeTargetOrigin=C(),Pt(this.relativeTargetOrigin,this.target,f.target),R(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qe(this.parent.latestValues)||pi(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let d=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===M.timestamp&&(d=!1),d)return;const{layout:u,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||h))return;R(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,f=this.treeScale.y;Fc(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=C());const{target:p}=l;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(fi(this.prevProjectionDelta.x,this.projectionDelta.x),fi(this.prevProjectionDelta.y,this.projectionDelta.y)),_t(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==f||!Li(this.projectionDelta.x,this.prevProjectionDelta.x)||!Li(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var l;if((l=this.options.visualElement)===null||l===void 0||l.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ot(),this.projectionDelta=ot(),this.projectionDeltaWithTransform=ot()}setAnimationOrigin(o,l=!1){const c=this.snapshot,d=c?c.latestValues:{},u={...this.latestValues},h=ot();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const m=C(),f=c?c.source:void 0,p=this.layout?this.layout.source:void 0,g=f!==p,v=this.getStack(),y=!v||v.members.length<=1,S=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(mu));this.animationProgress=0;let E;this.mixTargetDelta=_=>{const b=_/1e3;zi(h.x,o.x,b),zi(h.y,o.y,b),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Pt(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hu(this.relativeTarget,this.relativeTargetOrigin,m,b),E&&Xc(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=C()),R(E,this.relativeTarget)),g&&(this.animationValues=u,Rc(u,d,this.latestValues,b,S,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=b},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{Xt.hasAnimatedSinceResize=!0,this.currentAnimation=Xn(0,$i,{...o,onUpdate:l=>{this.mixTargetDelta(l),o.onUpdate&&o.onUpdate(l)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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 o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta($i),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:l,target:c,layout:d,latestValues:u}=o;if(!(!l||!c||!d)){if(this!==o&&this.layout&&d&&qi(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||C();const h=$(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+h;const m=$(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+m}R(l,c),dt(l,u),_t(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(o,l){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Zc),this.sharedNodes.get(o).add(l);const d=l.options.initialPromotionConfig;l.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(l):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:l}=this.options;return l?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:l}=this.options;return l?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:l,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let l=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(l=!0),!l)return;const d={};c.z&&Ze("z",o,d,this.animationValues);for(let u=0;u<Xe.length;u++)Ze(`rotate${Xe[u]}`,o,d,this.animationValues),Ze(`skew${Xe[u]}`,o,d,this.animationValues);o.render();for(const u in d)o.setStaticValue(u,d[u]),this.animationValues&&(this.animationValues[u]=d[u]);o.scheduleRender()}getProjectionStyles(o){var l,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Qc;const d={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=We(o==null?void 0:o.pointerEvents)||"",d.transform=u?u(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=We(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!it(this.latestValues)&&(g.transform=u?u({},""):"none",this.hasProjected=!1),g}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=Jc(this.projectionDeltaWithTransform,this.treeScale,m),u&&(d.transform=u(m,d.transform));const{x:f,y:p}=this.projectionDelta;d.transformOrigin=`${f.origin*100}% ${p.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(l=m.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const g in ht){if(m[g]===void 0)continue;const{correct:v,applyTo:y,isCSSVariable:S}=ht[g],E=d.transform==="none"?m[g]:v(m[g],h);if(y){const _=y.length;for(let b=0;b<_;b++)d[y[b]]=E}else S?this.options.visualElement.renderState.vars[g]=E:d[g]=E}return this.options.layoutId&&(d.pointerEvents=h===this?We(o==null?void 0:o.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var l;return(l=o.currentAnimation)===null||l===void 0?void 0:l.stop()}),this.root.nodes.forEach(Ii),this.root.sharedNodes.clear()}}}function eu(t){t.updateLayout()}function su(t){var e;const s=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:r}=t.options,o=s.source!==t.layout.source;r==="size"?Ri(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(m);m.min=n[h].min,m.max=m.min+f}):qi(r,s.layoutBox,n)&&Ri(h=>{const m=o?s.measuredBox[h]:s.layoutBox[h],f=$(n[h]);m.max=m.min+f,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+f)});const l=ot();_t(l,n,s.layoutBox);const c=ot();o?_t(c,t.applyTransform(i,!0),s.measuredBox):_t(c,n,s.layoutBox);const d=!ki(l);let u=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:f}=h;if(m&&f){const p=C();Pt(p,s.layoutBox,m.layoutBox);const g=C();Pt(g,n,f.layoutBox),Ni(p,g)||(u=!0),h.options.layoutRoot&&(t.relativeTarget=g,t.relativeTargetOrigin=p,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:c,layoutDelta:l,hasLayoutChanged:d,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function nu(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function iu(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ou(t){t.clearSnapshot()}function Ii(t){t.clearMeasurements()}function ru(t){t.isLayoutDirty=!1}function au(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ui(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function lu(t){t.resolveTargetDelta()}function cu(t){t.calcProjection()}function uu(t){t.resetSkewAndRotation()}function du(t){t.removeLeadSnapshot()}function zi(t,e,s){t.translate=D(e.translate,0,s),t.scale=D(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Ki(t,e,s,n){t.min=D(e.min,s.min,n),t.max=D(e.max,s.max,n)}function hu(t,e,s,n){Ki(t.x,e.x,s.x,n),Ki(t.y,e.y,s.y,n)}function mu(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const fu={duration:.45,ease:[.4,0,.1,1]},Gi=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Wi=Gi("applewebkit/")&&!Gi("chrome/")?Math.round:O;function Hi(t){t.min=Wi(t.min),t.max=Wi(t.max)}function pu(t){Hi(t.x),Hi(t.y)}function qi(t,e,s){return t==="position"||t==="preserve-aspect"&&!Gc(Oi(e),Oi(s),.2)}function gu(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function yu(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const vu=Fi({attachResizeListener:(t,e)=>yu(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Je={current:void 0},bu=Fi({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Je.current){const t=new vu({});t.mount(window),t.setOptions({layoutScroll:!0}),Je.current=t}return Je.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Yi(t){if(t)return t.options.allowProjection!==!1?t.projection:Yi(t.parent)}function Xi(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const wt={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(x.test(t))t=parseFloat(t);else return t;const s=Xi(t,e.target.x),n=Xi(t,e.target.y);return`${s}% ${n}%`}},xu={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=J.parse(t);if(i.length>5)return n;const r=J.createTransformer(t),o=typeof i[0]!="number"?1:0,l=s.x.scale*e.x,c=s.y.scale*e.y;i[0+o]/=l,i[1+o]/=c;const d=D(l,c,.5);return typeof i[2+o]=="number"&&(i[2+o]/=d),typeof i[3+o]=="number"&&(i[3+o]/=d),r(i)}},Zi={borderRadius:{...wt,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomLeftRadius:wt,borderBottomRightRadius:wt,boxShadow:xu};function At(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class Su extends z{constructor(e){super(e),cs(Zi)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new bu(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Yi(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&At(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=oe.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function Ji(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function Qe(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function Vu(t){return e=>Ji(e)&&t(e,Qe(e))}function Ct(t,e,s,n){return Ht(t,e,Vu(s),n)}function Qi(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const to=Qi("dragHorizontal"),eo=Qi("dragVertical");function Eu(t){let e=!1;if(t==="y")e=eo();else if(t==="x")e=to();else{const s=to(),n=eo();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function ts(t){return t.max-t.min}function Tu(t,e,s){return s>e?e:s<t?t:s}function Zt(t,e,s){return t+(e-t)*s}function so(t,e,s){const n=e-t;return n===0?1:(s-t)/n}function _u(t,{min:e,max:s},n){return e!==void 0&&t<e?t=n?Zt(e,t,n.min):Math.max(t,e):s!==void 0&&t>s&&(t=n?Zt(s,t,n.max):Math.min(t,s)),t}const es=.35;function Pu(t,{top:e,left:s,bottom:n,right:i}){return{x:no(t.x,s,i),y:no(t.y,e,n)}}function no(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function wu(t=es){return t===!1?t=0:t===!0&&(t=es),{x:io(t,"left","right"),y:io(t,"top","bottom")}}function io(t,e,s){return{min:oo(t,e),max:oo(t,s)}}function oo(t,e){return typeof t=="number"?t:t[e]||0}function Au(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function Cu(t,e){return{x:ro(t.x,e.x),y:ro(t.y,e.y)}}function ro(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}function Du(t,e){let s=.5;const n=ts(t),i=ts(e);return i>n?s=so(e.min,e.max-n,t.min):n>i&&(s=so(t.min,t.max-i,e.min)),Tu(0,1,s)}const ao=(t,e)=>Math.abs(t-e);function ku(t,e){const s=ao(t.x,e.x),n=ao(t.y,e.y);return Math.sqrt(s**2+n**2)}const Mu=t=>t*1e3;function Bu(t){return t/1e3}class lo{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=ns(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,f=ku(h.offset,{x:0,y:0})>=3;if(!m&&!f)return;const{point:p}=h,{timestamp:g}=M;this.history.push({...p,timestamp:g});const{onStart:v,onMove:y}=this.handlers;m||(v&&v(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=ss(m,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:f,onSessionEnd:p,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=ns(h.type==="pointercancel"?this.lastMoveEventInfo:ss(m,this.transformPagePoint),this.history);this.startEvent&&f&&f(h,v),p&&p(h,v)},!Ji(e))return;this.dragSnapToOrigin=r,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const o=Qe(e),l=ss(o,this.transformPagePoint),{point:c}=l,{timestamp:d}=M;this.history=[{...c,timestamp:d}];const{onSessionStart:u}=s;u&&u(e,ns(l,this.history)),this.removeListeners=Et(Ct(this.contextWindow,"pointermove",this.handlePointerMove),Ct(this.contextWindow,"pointerup",this.handlePointerUp),Ct(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),K(this.updatePoint)}}function ss(t,e){return e?{point:e(t.point)}:t}function co(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ns({point:t},e){return{point:t,delta:co(t,uo(e)),offset:co(t,Nu(e)),velocity:Ou(e,.1)}}function Nu(t){return t[0]}function uo(t){return t[t.length-1]}function Ou(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=uo(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>Mu(e)));)s--;if(!n)return{x:0,y:0};const r=Bu(i.timestamp-n.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-n.x)/r,y:(i.y-n.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const ho=()=>({min:0,max:0});function Lu(){return{x:ho(),y:ho()}}function I(t){return[t("x"),t("y")]}function Ru(t){return!!(Lt(t)&&t.add)}function mo(t,e){const s=t.getValue("willChange");if(Ru(s))return s.add(e)}function fo({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function $u(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function ju({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function po(t,e){t.min=t.min+e,t.max=t.max+e}function Fu(t,e){return fo($u(t.getBoundingClientRect(),e))}function Iu(t,e,s){const n=Fu(t,s),{scroll:i}=e;return i&&(po(n.x,i.offset.x),po(n.y,i.offset.y)),n}function go(t){return!oe.has(t.current)}function yo({current:t}){return t?t.ownerDocument.defaultView:null}const Uu=new WeakMap;class zu{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lu(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!go(this.visualElement))return;const n=d=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Qe(d,"page").point)},i=(d,u)=>{const{drag:h,dragPropagation:m,onDragStart:f}=this.getProps();if(h&&!m&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Eu(h),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),I(g=>{let v=this.getAxisMotionValue(g).get()||0;if(Er.test(v)){const{projection:y}=this.visualElement;if(y&&y.layout){const S=y.layout.layoutBox[g];S&&(v=ts(S)*(parseFloat(v)/100))}}this.originPoint[g]=v}),f&&w.postRender(()=>f(d,u)),mo(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},r=(d,u)=>{const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:f,onDrag:p}=this.getProps();if(!h&&!this.openGlobalLock)return;const{offset:g}=u;if(m&&this.currentDirection===null){this.currentDirection=Ku(g),this.currentDirection!==null&&f&&f(this.currentDirection);return}this.updateAxis("x",u.point,g),this.updateAxis("y",u.point,g),this.visualElement.render(),p&&p(d,u)},o=(d,u)=>this.stop(d,u),l=()=>I(d=>{var u;return this.getAnimationState(d)==="paused"&&((u=this.getAxisMotionValue(d).animation)==null?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new lo(e,{onSessionStart:n,onStart:i,onMove:r,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:yo(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:r}=this.getProps();r&&w.postRender(()=>r(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!Jt(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=_u(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,r=this.constraints;s&&At(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Pu(i.layoutBox,s):this.constraints=!1,this.elastic=wu(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&I(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=Au(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!At(e))return!1;const n=e,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=Iu(n,i.root,this.visualElement.getTransformPagePoint());let o=Cu(i.layout.layoutBox,r);if(s){const l=s(ju(o));this.hasMutatedConstraints=!!l,l&&(o=fo(l))}return o}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=I(u=>{if(!Jt(u,s,this.currentDirection))return;let h=c&&c[u]||{};o&&(h={min:0,max:0});const m=i?200:1e6,f=i?40:1e7,p={type:"inertia",velocity:n?e[u]:0,bounceStiffness:m,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(u,p)});return Promise.all(d).then(l)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return mo(this.visualElement,e),n.start(Ke(e,n,0,s,this.visualElement,!1))}stopAnimation(){go(this.visualElement)&&I(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){I(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){I(s=>{const{drag:n}=this.getProps();if(!Jt(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(s);if(i&&i.layout){const{min:o,max:l}=i.layout.layoutBox[s];r.set(e[s]-Zt(o,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!At(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};I(o=>{const l=this.getAxisMotionValue(o);if(l&&this.constraints!==!1){const c=l.get();i[o]=Du({min:c,max:c},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),I(o=>{if(!Jt(o,e,null))return;const l=this.getAxisMotionValue(o),{min:c,max:d}=this.constraints[o];l.set(Zt(c,d,i[o]))})}addListeners(){if(!this.visualElement.current)return;Uu.set(this.visualElement,this);const e=this.visualElement.current,s=Ct(e,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();At(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(n);const o=Ht(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(I(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),s(),r(),l&&l()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=es,dragMomentum:l=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:l}}}function Jt(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function Ku(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class Gu extends z{constructor(e){super(e),this.removeGroupControls=O,this.removeListeners=O,this.controls=new zu(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||O}unmount(){this.removeGroupControls(),this.removeListeners()}}class Wu extends z{constructor(e){super(e),cs(Zi)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),Xt.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&e.group.remove(s),this.didUpdate())}}function vo(t){return(e,s)=>{t&&w.postRender(()=>t(e,s))}}class Hu extends z{constructor(){super(...arguments),this.removePointerDownListener=O}onPointerDown(e){this.session=new lo(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:yo(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:vo((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:vo((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&w.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Ct(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qu=[pc,Tc,Pc,Cc,kc,Su,Hu,Gu,Wu],Yu={reduceMotion:"never",transition:void 0,nonce:void 0},[Xu,im]=mt("MotionConfig");function Zu(){return Xu(a.computed(()=>Yu))}function Qt(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?Qt(t.nextSibling):t}const[Ju,om]=mt("LazyMotionContext");function Qu(t){const e=Jo(null),s=tr({}),n=Zu(),i=cr({}),r=Ju({features:a.ref([]),strict:!1}),o=a.useAttrs();function l(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function c(){return{...t,lazyMotionContext:r,layoutId:l(),transition:t.transition??n.value.transition,layoutGroup:s,motionConfig:n.value,inViewOptions:t.inViewOptions??n.value.inViewOptions,animatePresenceContext:i,initial:i.initial===!1?i.initial:t.initial===!0?void 0:t.initial}}function d(){return{...o,...c()}}const u=new fr(d(),e);Qo(u);function h(){var f;const p=u.type==="svg",g={...o};Object.keys(o).forEach(S=>{Lt(o[S])&&(g[S]=o[S].get())});let v={...t.style,...p?{}:((f=u.visualElement)==null?void 0:f.latestValues)||u.baseTarget};if(p){const{attributes:S,style:E}=Cr({...u.isMounted()?u.target:u.baseTarget,...v});Object.assign(g,S),v=E}t.drag&&t.dragListener!==!1&&Object.assign(v,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const y=_r(v);return y&&(g.style=y),g}const m=a.getCurrentInstance().proxy;return a.onBeforeMount(()=>{u.beforeMount()}),a.onMounted(()=>{u.mount(Qt(m.$el),d(),ed(m))}),a.onBeforeUnmount(()=>u.beforeUnmount()),a.onUnmounted(()=>{const f=Qt(m.$el);f!=null&&f.isConnected||u.unmount()}),a.onBeforeUpdate(()=>{u.beforeUpdate()}),a.onUpdated(()=>{u.update(d())}),{getProps:c,getAttrs:h,layoutGroup:s,state:u}}const td={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:[String,Number,Object,Array]},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function ed(t){var e;const s=((e=Qt(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const sd=new Map,nd=new Map;function id(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const od=["area","img","input"];function rd(t,e,s){var n,i;if(typeof t=="string"&&od.includes(t))return a.h(t,e);if(t==="template"){if(!s.default)return null;const r=id(s.default()),o=r.findIndex(u=>u.type!==a.Comment);if(o===-1)return r;const l=r[o];(n=l.props)==null||delete n.ref;const c=l.props?a.mergeProps(e,l.props):e;e.class&&((i=l.props)!=null&&i.class)&&delete l.props.class;const d=a.cloneVNode(l,c);for(const u in c)u.startsWith("on")&&(d.props||(d.props={}),d.props[u]=c[u]);return r.length===1?d:(r[o]=d,r)}return null}function bo(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",r=((s=e.features)==null?void 0:s.length)>0?sd:nd;if(n&&(r!=null&&r.has(t)))return r.get(t);const o=a.defineComponent({inheritAttrs:!1,props:{...td,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(l,{slots:c}){const{getProps:d,getAttrs:u,state:h}=Qu(l);function m(){const f=h.element;if((!(typeof l.as=="object")||l.asChild)&&f){const{style:g}=u();if(g)for(const[v,y]of Object.entries(g))f.style[v]=y}}return()=>{const f=d(),p=u(),g=l.asChild?"template":l.as,v={...e.forwardMotionProps||l.forwardMotionProps?f:{},...p,onVnodeUpdated:m},y=rd(g,v,c);return y!==null?y:a.h(g,{...v},c)}}});return n&&(r==null||r.set(t,o)),o}function ad(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>bo(n,{...i,features:t}):bo(s,{features:t})}})}const xo=ad(qu);xo.create("div");const ld={class:"slds-navigation-list--vertical"},cd={class:"slds-navigation-list__item-content"},ud={class:"slds-navigation-list__item-title"},dd={__name:"SidebarLayout",props:{schemas:{type:Array,required:!0},selectedSchema:{type:Object,default:null}},emits:["selectSchema"],setup(t,{emit:e}){var l;const s=t,n=e,i=a.ref(((l=s.selectedSchema)==null?void 0:l.fileName)||null);function r(c){i.value=c.fileName,n("selectSchema",c)}function o(c){var d;return((d=c.schema)==null?void 0:d.title)||c.fileName||"Untitled Schema"}return(c,d)=>(a.openBlock(),a.createElementBlock("div",ld,[d[0]||(d[0]=a.createElementVNode("div",{class:"slds-navigation-list__item"},[a.createElementVNode("div",{class:"slds-navigation-list__item-content"},[a.createElementVNode("div",{class:"slds-navigation-list__item-title"},[a.createElementVNode("span",{class:"slds-text-heading_small"},"Schemas")])])],-1)),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schemas,u=>(a.openBlock(),a.createElementBlock("div",{key:u.fileName,class:"slds-navigation-list__item"},[a.createElementVNode("div",cd,[a.createElementVNode("div",ud,[a.createVNode(a.unref(xo).button,{"while-hover":{scale:1.05},"while-press":{scale:.95},class:a.normalizeClass(["slds-button slds-button_neutral slds-button_stretch",{"slds-is-active":i.value===u.fileName}]),onClick:h=>r(u)},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o(u)),1)]),_:2},1032,["class","onClick"])])])]))),128))]))}},So="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M514%20425%20285%2055a28%2028%200%200%200-50%200L6%20425c-14%2023%200%2055%2025%2055h458c25%200%2040-32%2025-55zm-254-25c-17%200-30-13-30-30s13-30%2030-30%2030%2013%2030%2030-13%2030-30%2030zm30-90c0%206-4%2010-10%2010h-40c-6%200-10-4-10-10V180c0-6%204-10%2010-10h40c6%200%2010%204%2010%2010v130z'/%3e%3c/svg%3e",Vo=(t,e)=>{const s=t.__vccOpts||t;for(const[n,i]of e)s[n]=i;return s},hd={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},md={class:"slds-notify__content"},Eo=Vo({__name:"NoPropertiesMessage",props:{title:{type:String,default:"No Properties Defined"},message:{type:String,default:"This object doesn't have any properties defined in the schema."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",hd,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:So,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",md,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-a28aa892"]]),fd={key:0,class:"slds-m-top_medium"},pd={class:"slds-box slds-theme_shade"},gd={class:"slds-grid slds-wrap slds-gutters"},yd={class:"constraint-item"},vd={class:"slds-text-title_caps slds-text-color_default"},bd={class:"slds-text-body_regular slds-m-top_xx-small"},is={__name:"SchemaConstraints",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>{const l={};return["minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","pattern","minItems","maxItems","uniqueItems","minProperties","maxProperties"].forEach(d=>{e.schema[d]!==void 0&&(l[d]=e.schema[d])}),l}),n=a.computed(()=>Object.entries(s.value).length!==0);function i(l){return l.replace(/([A-Z])/g," $1").replace(/^./,c=>c.toUpperCase())}function r(l){return typeof l=="boolean"?l?"Yes":"No":typeof l=="string"&&l.startsWith("^")?`Pattern: ${l}`:l}function o(l){return typeof l=="boolean"?l?"slds-badge_success":"slds-badge_inverse":typeof l=="number"?"slds-badge_warning":typeof l=="string"&&l.startsWith("^")?"slds-badge_info":""}return(l,c)=>n.value?(a.openBlock(),a.createElementBlock("div",fd,[c[0]||(c[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Constraints ",-1)),a.createElementVNode("div",pd,[a.createElementVNode("div",gd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u,class:"slds-col slds-size_1-of-2 slds-p-around_xx-small"},[a.createElementVNode("div",yd,[a.createElementVNode("div",vd,a.toDisplayString(i(u)),1),a.createElementVNode("div",bd,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o(d)])},a.toDisplayString(r(d)),3)])])]))),128))])])])):a.createCommentVNode("",!0)}},xd={class:"array-schema"},Sd={class:"slds-box slds-theme_shade"},Vd={class:"slds-grid slds-gutters"},Ed={key:0,class:"slds-col"},Td={class:"slds-badge"},_d={key:1,class:"slds-m-top_medium"},Pd={class:"slds-text-title_caps slds-m-bottom_xx-small"},wd={key:3,class:"slds-m-top_medium"},Ad={key:4,class:"slds-m-top_medium"},Cd={key:0,class:"slds-m-top_xx-small"},Dd={__name:"ArraySchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>["minItems","maxItems","uniqueItems"].some(r=>r in e.schema)),n=a.computed(()=>e.schema.items?Array.isArray(e.schema.items)?"Tuple":e.schema.items.type||"Not specified":"Not defined");return(i,r)=>(a.openBlock(),a.createElementBlock("div",xd,[a.createElementVNode("div",Sd,[a.createElementVNode("div",Vd,[r[1]||(r[1]=a.createElementVNode("div",{class:"slds-col"},[a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type "),a.createElementVNode("div",{class:"slds-badge"}," array ")],-1)),t.schema.items?(a.openBlock(),a.createElementBlock("div",Ed,[r[0]||(r[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Items Type ",-1)),a.createElementVNode("div",Td,a.toDisplayString(n.value),1)])):a.createCommentVNode("",!0)])]),s.value?(a.openBlock(),a.createBlock(is,{key:0,schema:t.schema},null,8,["schema"])):a.createCommentVNode("",!0),t.schema.items?(a.openBlock(),a.createElementBlock("div",_d,[r[2]||(r[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Items Schema ",-1)),Array.isArray(t.schema.items)?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(t.schema.items,(o,l)=>(a.openBlock(),a.createElementBlock("div",{key:l,class:"slds-m-bottom_medium"},[a.createElementVNode("div",Pd," Index "+a.toDisplayString(l),1),a.createVNode(q,{schema:o,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128)):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.items,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):(a.openBlock(),a.createBlock(Eo,{key:2,title:"No Items Defined",message:"This array doesn't have any items defined in the schema."})),t.schema.contains?(a.openBlock(),a.createElementBlock("div",wd,[r[3]||(r[3]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Contains ",-1)),a.createVNode(q,{schema:t.schema.contains,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])):a.createCommentVNode("",!0),t.schema.additionalItems!==void 0&&Array.isArray(t.schema.items)?(a.openBlock(),a.createElementBlock("div",Ad,[r[4]||(r[4]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Additional Items ",-1)),typeof t.schema.additionalItems=="boolean"?(a.openBlock(),a.createElementBlock("div",Cd,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalItems?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalItems?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalItems,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0)]))}},kd={class:"slds-box slds-theme_shade"},Md={class:"slds-text-heading_small slds-m-bottom_small"},Bd={class:"slds-tabs_default"},Nd={class:"slds-tabs_default__nav",role:"tablist"},Od=["aria-selected","aria-controls","onClick"],Ld={class:"slds-tabs_default__title"},Rd=["id"],$d={class:"slds-p-around_medium"},jd={class:"slds-text-title_caps slds-m-bottom_small"},Fd={__name:"CompositionSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.anyOf?"anyOf":e.schema.oneOf?"oneOf":e.schema.allOf?"allOf":null),n=a.ref(0),i=a.computed(()=>e.schema[s.value]||[]);a.watchEffect(()=>{i.value.forEach(d=>{d.type||(d.type=e.schema.type)})});const r=a.computed(()=>{switch(s.value){case"oneOf":return"One Of (Choose One)";case"anyOf":return"Any Of (Choose Any)";case"allOf":return"All Of (Must Match All)";default:return s.value}}),o=a.computed(()=>{switch(e.compositionType){case"oneOf":return"slds-badge_success";case"anyOf":return"slds-badge_warning";case"allOf":return"slds-badge_inverse";default:return""}});function l(d){return Array.isArray(d.type)?d.type.join(" | "):d.type||"object"}function c(d,u){return d.title?d.title:`Option ${u+1}`}return(d,u)=>(a.openBlock(),a.createElementBlock("div",kd,[a.createElementVNode("div",Md,[a.createElementVNode("span",{class:a.normalizeClass(["slds-badge",o.value])},a.toDisplayString(r.value),3)]),a.createElementVNode("div",Bd,[a.createElementVNode("ul",Nd,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("li",{key:m,class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":n.value===m}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":n.value===m,"aria-controls":`tab-${m}`,onClick:f=>n.value=m},[a.createElementVNode("span",Ld,a.toDisplayString(c(h,m)),1)],8,Od)],2))),128))]),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(h,m)=>(a.openBlock(),a.createElementBlock("div",{id:`tab-${m}`,key:m,class:a.normalizeClass(["slds-tabs_default__content",{"slds-show":n.value===m,"slds-hide":n.value!==m}]),role:"tabpanel"},[a.createElementVNode("div",$d,[a.createElementVNode("div",jd," Schema Type: "+a.toDisplayString(l(h)),1),a.createVNode(q,{schema:h,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])],10,Rd))),128))])]))}},Id={class:"slds-box slds-theme_shade"},Ud={class:"slds-grid slds-wrap slds-gutters"},zd={class:"slds-badge slds-badge_inverse"},Kd={__name:"EnumSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>e.schema.enum);return(n,i)=>(a.openBlock(),a.createElementBlock("div",Id,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Enum Values ",-1)),a.createElementVNode("div",Ud,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,(r,o)=>(a.openBlock(),a.createElementBlock("div",{key:o,class:"slds-col slds-size_1-of-3 slds-p-around_xx-small"},[a.createElementVNode("div",zd,a.toDisplayString(r),1)]))),128))])]))}},Gd="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M476%20178%20271%20385c-6%206-16%206-22%200L44%20178c-6-6-6-16%200-22l22-22c6-6%2016-6%2022%200l161%20163c6%206%2016%206%2022%200l161-163c6-6%2016-6%2022%200l22%2022c5%207%205%2016%200%2022z'/%3e%3c/svg%3e",Wd={key:0},Hd={key:1},qd={class:"slds-box slds-m-top_small"},Yd={class:"slds-table_container"},Xd={class:"slds-table slds-table_cell-buffer slds-table_bordered"},Zd=["onClick"],Jd=["title"],Qd={class:"slds-truncate"},th={class:"slds-badge"},eh=["title"],sh={class:"slds-truncate"},nh={key:0,class:"slds-badge slds-badge_success"},ih={key:1,class:"slds-badge slds-badge_inverse"},oh={key:0},rh={colspan:"4",class:"slds-p-around_medium"},ah={class:"slds-box slds-theme_shade"},lh={key:2},ch={key:3},uh={key:0},dh={__name:"ObjectSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=a.ref({}),n=a.computed(()=>e.schema.properties&&Object.keys(e.schema.properties).length>0||e.schema.patternProperties&&Object.keys(e.schema.patternProperties).length>0);function i(l){return e.schema.required&&e.schema.required.includes(l)}function r(l){return l.type?l.type:l.oneOf||l.allOf||l.anyOf?"composition":l.enum?"enum":"No type found"}function o(l){s.value[l]=!s.value[l]}return(l,c)=>(a.openBlock(),a.createElementBlock("div",null,[c[6]||(c[6]=a.createElementVNode("div",null,[a.createElementVNode("div",null,"Type: object")],-1)),a.createVNode(is,{schema:t.schema},null,8,["schema"]),t.schema.required&&t.schema.required.length>0?(a.openBlock(),a.createElementBlock("div",Wd,[c[0]||(c[0]=a.createElementVNode("span",null,"Required properties:",-1)),a.createElementVNode("span",null,a.toDisplayString(t.schema.required.join(", ")),1)])):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createElementBlock("div",Hd,[a.createElementVNode("div",qd,[c[2]||(c[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Properties ",-1)),a.createElementVNode("div",Yd,[a.createElementVNode("table",Xd,[c[1]||(c[1]=a.createElementVNode("thead",null,[a.createElementVNode("tr",{class:"slds-line-height_reset"},[a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Property"}," Property ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Type"}," Type ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Description"}," Description ")]),a.createElementVNode("th",{class:"slds-text-title_caps",scope:"col"},[a.createElementVNode("div",{class:"slds-truncate",title:"Required"}," Required ")])])],-1)),a.createElementVNode("tbody",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.properties,(d,u)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:u},[a.createElementVNode("tr",{class:"slds-hint-parent is-interactive",onClick:h=>o(u)},[a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:u},[a.createElementVNode("img",{src:Gd,class:a.normalizeClass(["slds-button__icon",{expanded:s.value[u]}]),alt:""},null,2),a.createTextVNode(" "+a.toDisplayString(u),1)],8,Jd)]),a.createElementVNode("td",null,[a.createElementVNode("div",Qd,[a.createElementVNode("span",th,a.toDisplayString(r(d)),1)])]),a.createElementVNode("td",null,[a.createElementVNode("div",{class:"slds-truncate",title:d.description},a.toDisplayString(d.description||"No description"),9,eh)]),a.createElementVNode("td",null,[a.createElementVNode("div",sh,[i(u)?(a.openBlock(),a.createElementBlock("span",nh,"Required")):(a.openBlock(),a.createElementBlock("span",ih,"Optional"))])])],8,Zd),a.createVNode(a.Transition,null,{default:a.withCtx(()=>[s.value[u]?(a.openBlock(),a.createElementBlock("tr",oh,[a.createElementVNode("td",rh,[a.createElementVNode("div",ah,[a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])])])):a.createCommentVNode("",!0)]),_:2},1024)],64))),128))])])])])])):a.createCommentVNode("",!0),t.schema.patternProperties?(a.openBlock(),a.createElementBlock("div",lh,[c[4]||(c[4]=a.createElementVNode("div",null,"Pattern Properties",-1)),a.createElementVNode("div",null,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.schema.patternProperties,(d,u)=>(a.openBlock(),a.createElementBlock("div",{key:u},[a.createElementVNode("div",null,[a.createElementVNode("div",null,[c[3]||(c[3]=a.createElementVNode("span",null,"Pattern:",-1)),a.createElementVNode("code",null,a.toDisplayString(u),1)])]),a.createVNode(q,{schema:d,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128))])])):a.createCommentVNode("",!0),t.schema.additionalProperties!==void 0?(a.openBlock(),a.createElementBlock("div",ch,[c[5]||(c[5]=a.createElementVNode("div",null,"Additional Properties",-1)),typeof t.schema.additionalProperties=="boolean"?(a.openBlock(),a.createElementBlock("div",uh,[a.createElementVNode("span",{class:a.normalizeClass(t.schema.additionalProperties?"status-allowed":"status-denied")},a.toDisplayString(t.schema.additionalProperties?"Allowed":"Not allowed"),3)])):(a.openBlock(),a.createBlock(q,{key:1,schema:t.schema.additionalProperties,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):a.createCommentVNode("",!0),n.value?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(Eo,{key:4}))]))}},hh={class:"slds-box slds-m-top_small"},mh={class:"slds-box slds-theme_shade"},fh={class:"slds-text-body_regular"},ph={class:"slds-grid slds-gutters"},gh={class:"slds-col"},yh={class:"slds-badge"},vh={class:"slds-col"},Dt={__name:"PrimitiveSchema",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",hh,[s[2]||(s[2]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Type Information ",-1)),a.createElementVNode("div",mh,[a.createElementVNode("div",fh,[a.createElementVNode("div",ph,[a.createElementVNode("div",gh,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type ",-1)),a.createElementVNode("div",yh,a.toDisplayString(t.schema.type),1)]),a.createElementVNode("div",vh,[s[1]||(s[1]=a.createElementVNode("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Description ",-1)),a.createElementVNode("div",null,a.toDisplayString(t.schema.description||"No description"),1)])])])]),a.createVNode(is,{schema:t.schema},null,8,["schema"])]))}},bh={object:dh,array:Dd,string:Dt,number:Dt,integer:Dt,boolean:Dt,null:Dt},os={hasComposition:t=>!!(t.anyOf||t.oneOf||t.allOf),isEnum:t=>t.enum&&Array.isArray(t.enum),getComponentForSchema:t=>os.hasComposition(t)?Fd:os.isEnum(t)?Kd:bh[t.type]||null},xh={class:"slds-grid slds-grid_vertical"},Sh={class:"slds-col slds-size_1-of-1"},Vh={class:"slds-card"},Eh={class:"slds-card__body slds-card__body_inner"},Th={__name:"SchemaLayout",setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",xh,[a.createElementVNode("div",Sh,[a.createElementVNode("div",Vh,[a.createElementVNode("div",Eh,[a.renderSlot(e.$slots,"default")])])])]))}},_h={class:"slds-box"},Ph={class:"slds-box slds-theme_shade"},wh={__name:"PlainSchemaView",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=a.computed(()=>JSON.stringify(e.schema,null,2));return(n,i)=>(a.openBlock(),a.createElementBlock("div",_h,[i[0]||(i[0]=a.createElementVNode("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Raw JSON Schema ",-1)),a.createElementVNode("pre",Ph,[a.createElementVNode("code",null,a.toDisplayString(s.value),1)])]))}},Ah={class:"slds-page-header"},Ch={class:"slds-page-header__row"},Dh={class:"slds-page-header__col-title"},kh={class:"slds-media"},Mh={class:"slds-media__body"},Bh={class:"slds-page-header__name"},Nh={class:"slds-page-header__name-title"},Oh={class:"slds-page-header__title slds-truncate",title:"{{ schema.title || 'Schema' }}"},Lh={class:"slds-page-header__meta-text"},Rh={__name:"SchemaHeader",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Ah,[a.createElementVNode("div",Ch,[a.createElementVNode("div",Dh,[a.createElementVNode("div",kh,[s[0]||(s[0]=a.createElementVNode("div",{class:"slds-media__figure"},[a.createElementVNode("span",{class:"slds-icon_container slds-icon-standard-account"},[a.createElementVNode("img",{src:as,class:"slds-icon slds-icon_small",alt:""})])],-1)),a.createElementVNode("div",Mh,[a.createElementVNode("div",Bh,[a.createElementVNode("div",Nh,[a.createElementVNode("h1",Oh,a.toDisplayString(t.schema.title||"Schema"),1)])]),a.createElementVNode("div",Lh,a.toDisplayString(t.schema.description||"No description provided"),1)])])])])]))}},$h={class:"slds-tabs_default__nav",role:"tablist"},jh={__name:"SchemaTabs",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("ul",$h,[a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="visual"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"visual-tab",onClick:s[0]||(s[0]=n=>e.$emit("update:modelValue","visual"))},s[2]||(s[2]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Visual",-1)]))],2),a.createElementVNode("li",{class:a.normalizeClass(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="plain"}]),role:"presentation"},[a.createElementVNode("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"plain-tab",onClick:s[1]||(s[1]=n=>e.$emit("update:modelValue","plain"))},s[3]||(s[3]=[a.createElementVNode("span",{class:"slds-tabs_default__title"},"Plain JSON",-1)]))],2)]))}},Fh={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},Ih={class:"slds-notify__content"},Uh=Vo({__name:"UnknownSchemaMessage",props:{title:{type:String,default:"Unknown schema"},message:{type:String,default:"This schema doesen't have proper handling yet."}},setup(t){return(e,s)=>(a.openBlock(),a.createElementBlock("div",Fh,[s[0]||(s[0]=a.createElementVNode("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=a.createElementVNode("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[a.createElementVNode("img",{src:So,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),a.createElementVNode("h2",null,a.toDisplayString(t.title),1),a.createElementVNode("div",Ih,[a.createElementVNode("p",null,a.toDisplayString(t.message),1)])]))}},[["__scopeId","data-v-bde50c13"]]),zh={class:"slds-tabs_default"},Kh={class:"slds-p-around_medium"},Gh={class:"slds-m-top_medium"},Wh={class:"slds-p-around_medium"},q={__name:"SchemaViewer",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,default:null},isRoot:{type:Boolean,default:!0}},setup(t){const e=t,s=a.ref("visual"),n=a.computed(()=>e.isRoot?e.schema:e.rootSchema);a.provide("rootSchema",n);const i=a.computed(()=>os.getComponentForSchema(e.schema));return(r,o)=>(a.openBlock(),a.createBlock(Th,null,{default:a.withCtx(()=>[a.createElementVNode("div",zh,[a.createVNode(jh,{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=l=>s.value=l)},null,8,["modelValue"]),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="visual","slds-hide":s.value!=="visual"})},[a.createElementVNode("div",Kh,[a.createVNode(Rh,{schema:t.schema},null,8,["schema"]),a.createElementVNode("div",Gh,[i.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.value),{key:0,schema:t.schema,"root-schema":n.value},null,8,["schema","root-schema"])):(a.openBlock(),a.createBlock(Uh,{key:1}))])])],2),a.createElementVNode("div",{class:a.normalizeClass({"slds-show":s.value==="plain","slds-hide":s.value!=="plain"})},[a.createElementVNode("div",Wh,[a.createVNode(wh,{schema:t.schema},null,8,["schema"])])],2)])]),_:1}))}},Hh={class:"slds-grid slds-grid_vertical"},qh={class:"slds-grid slds-gutters slds-grid_vertical-fill"},Yh={class:"slds-col slds-size_2-of-12"},Xh={class:"slds-col slds-size_10-of-12"},Zh={key:1,class:"slds-p-around_medium"},To={__name:"App",props:{title:{type:String,default:"JSON Schema Documentation"},description:{type:String,default:""},schemas:{type:Array,default:()=>[]},generatedAt:{type:String,default:()=>new Date().toISOString()}},setup(t){const e=t,s=a.ref(e.schemas.length>0?e.schemas[0]:null);function n(i){s.value=i}return(i,r)=>(a.openBlock(),a.createElementBlock("div",Hh,[a.createVNode(Yo,{title:t.title},null,8,["title"]),a.createElementVNode("div",qh,[a.createElementVNode("div",Yh,[a.createVNode(dd,{schemas:t.schemas,"selected-schema":s.value,onSelectSchema:n},null,8,["schemas","selected-schema"])]),a.createElementVNode("div",Xh,[s.value?(a.openBlock(),a.createBlock(q,{key:0,schema:s.value.schema,"is-root":!0},null,8,["schema"])):(a.openBlock(),a.createElementBlock("div",Zh,r[0]||(r[0]=[a.createStaticVNode('<div class="slds-text-align_center"><svg viewBox="0 0 454 272" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="40" fill="#F9F9F9"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="30" fill="#ECEBEA"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="20" fill="#D9D7D5"></circle></g></svg></div><div class="slds-text-align_center slds-m-top_medium"><h3 class="slds-text-heading_medium"> No Schema Selected </h3><p class="slds-text-body_regular slds-m-top_small"> Select a schema from the sidebar to view its documentation. </p></div>',2)])))])]),a.createVNode(Fo,{description:t.description,"generated-at":t.generatedAt,"schema-count":t.schemas.length},null,8,["description","generated-at","schema-count"])]))}};async function _o(){const t=window.__JSON_SCHEMA_DOCS_DATA__||{title:"JSON Schema Documentation",description:"",schemas:[],generatedAt:new Date().toISOString()};document.getElementById("app")&&a.createApp(To,t).mount("#app")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_o):_o(),Object.defineProperty(Y,"createApp",{enumerable:!0,get:()=>a.createApp}),Y.App=To,Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(Fe,Ie){typeof exports=="object"&&typeof module<"u"?Ie(exports):typeof define=="function"&&define.amd?define(["exports"],Ie):(Fe=typeof globalThis<"u"?globalThis:Fe||self,Ie(Fe.JsonSchemaDocs={}))})(this,function(Fe){"use strict";/**
|
|
2
|
+
* @vue/shared v3.5.13
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**//*! #__NO_SIDE_EFFECTS__ */function Ie(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const it={},Qe=[],Wt=()=>{},vf=()=>!1,nn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),ti=t=>t.startsWith("onUpdate:"),gt=Object.assign,ei=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},bf=Object.prototype.hasOwnProperty,tt=(t,e)=>bf.call(t,e),U=Array.isArray,ts=t=>on(t)==="[object Map]",Zo=t=>on(t)==="[object Set]",W=t=>typeof t=="function",ct=t=>typeof t=="string",re=t=>typeof t=="symbol",lt=t=>t!==null&&typeof t=="object",Jo=t=>(lt(t)||W(t))&&W(t.then)&&W(t.catch),Qo=Object.prototype.toString,on=t=>Qo.call(t),_f=t=>on(t).slice(8,-1),tr=t=>on(t)==="[object Object]",si=t=>ct(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,gs=Ie(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),rn=t=>{const e=Object.create(null);return s=>e[s]||(e[s]=t(s))},xf=/-(\w)/g,Bt=rn(t=>t.replace(xf,(e,s)=>s?s.toUpperCase():"")),Sf=/\B([A-Z])/g,$e=rn(t=>t.replace(Sf,"-$1").toLowerCase()),an=rn(t=>t.charAt(0).toUpperCase()+t.slice(1)),ni=rn(t=>t?`on${an(t)}`:""),Te=(t,e)=>!Object.is(t,e),ii=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},er=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},Tf=t=>{const e=parseFloat(t);return isNaN(e)?t:e},wf=t=>{const e=ct(t)?Number(t):NaN;return isNaN(e)?t:e};let sr;const ln=()=>sr||(sr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function oi(t){if(U(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],i=ct(n)?Ef(n):oi(n);if(i)for(const o in i)e[o]=i[o]}return e}else if(ct(t)||lt(t))return t}const Af=/;(?![^(]*\))/g,Pf=/:([^]+)/,Cf=/\/\*[^]*?\*\//g;function Ef(t){const e={};return t.replace(Cf,"").split(Af).forEach(s=>{if(s){const n=s.split(Pf);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Pt(t){let e="";if(ct(t))e=t;else if(U(t))for(let s=0;s<t.length;s++){const n=Pt(t[s]);n&&(e+=n+" ")}else if(lt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const Mf=Ie("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function nr(t){return!!t||t===""}const ir=t=>!!(t&&t.__v_isRef===!0),Q=t=>ct(t)?t:t==null?"":U(t)||lt(t)&&(t.toString===Qo||!W(t.toString))?ir(t)?Q(t.value):JSON.stringify(t,or,2):String(t),or=(t,e)=>ir(e)?or(t,e.value):ts(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,i],o)=>(s[ri(n,o)+" =>"]=i,s),{})}:Zo(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>ri(s))}:re(e)?ri(e):lt(e)&&!U(e)&&!tr(e)?String(e):e,ri=(t,e="")=>{var s;return re(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};var Vf={NODE_ENV:"production"};let Ot;class Df{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ot,!e&&Ot&&(this.index=(Ot.scopes||(Ot.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].pause();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes)for(e=0,s=this.scopes.length;e<s;e++)this.scopes[e].resume();for(e=0,s=this.effects.length;e<s;e++)this.effects[e].resume()}}run(e){if(this._active){const s=Ot;try{return Ot=this,e()}finally{Ot=s}}}on(){Ot=this}off(){Ot=this.parent}stop(e){if(this._active){this._active=!1;let s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){for(s=0,n=this.scopes.length;s<n;s++)this.scopes[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function Of(){return Ot}let ot;const ai=new WeakSet;class rr{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Ot&&Ot.active&&Ot.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ai.has(this)&&(ai.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,dr(this),cr(this);const e=ot,s=Gt;ot=this,Gt=!0;try{return this.fn()}finally{ur(this),ot=e,Gt=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)fi(e);this.deps=this.depsTail=void 0,dr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ai.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ui(this)&&this.run()}get dirty(){return ui(this)}}let ar=0,ys,vs;function lr(t,e=!1){if(t.flags|=8,e){t.next=vs,vs=t;return}t.next=ys,ys=t}function li(){ar++}function ci(){if(--ar>0)return;if(vs){let e=vs;for(vs=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;ys;){let e=ys;for(ys=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function cr(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function ur(t){let e,s=t.depsTail,n=s;for(;n;){const i=n.prevDep;n.version===-1?(n===s&&(s=i),fi(n),Rf(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}t.deps=e,t.depsTail=s}function ui(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(fr(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function fr(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===bs))return;t.globalVersion=bs;const e=t.dep;if(t.flags|=2,e.version>0&&!t.isSSR&&t.deps&&!ui(t)){t.flags&=-3;return}const s=ot,n=Gt;ot=t,Gt=!0;try{cr(t);const i=t.fn(t._value);(e.version===0||Te(i,t._value))&&(t._value=i,e.version++)}catch(i){throw e.version++,i}finally{ot=s,Gt=n,ur(t),t.flags&=-3}}function fi(t,e=!1){const{dep:s,prevSub:n,nextSub:i}=t;if(n&&(n.nextSub=i,t.prevSub=void 0),i&&(i.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)fi(o,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function Rf(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let Gt=!0;const hr=[];function ae(){hr.push(Gt),Gt=!1}function le(){const t=hr.pop();Gt=t===void 0?!0:t}function dr(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=ot;ot=void 0;try{e()}finally{ot=s}}}let bs=0;class Lf{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class hi{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(e){if(!ot||!Gt||ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==ot)s=this.activeLink=new Lf(ot,this),ot.deps?(s.prevDep=ot.depsTail,ot.depsTail.nextDep=s,ot.depsTail=s):ot.deps=ot.depsTail=s,pr(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=ot.depsTail,s.nextDep=void 0,ot.depsTail.nextDep=s,ot.depsTail=s,ot.deps===s&&(ot.deps=n)}return s}trigger(e){this.version++,bs++,this.notify(e)}notify(e){li();try{Vf.NODE_ENV;for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{ci()}}}function pr(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)pr(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const di=new WeakMap,je=Symbol(""),pi=Symbol(""),_s=Symbol("");function _t(t,e,s){if(Gt&&ot){let n=di.get(t);n||di.set(t,n=new Map);let i=n.get(s);i||(n.set(s,i=new hi),i.map=n,i.key=s),i.track()}}function ce(t,e,s,n,i,o){const r=di.get(t);if(!r){bs++;return}const a=l=>{l&&l.trigger()};if(li(),e==="clear")r.forEach(a);else{const l=U(t),u=l&&si(s);if(l&&s==="length"){const c=Number(n);r.forEach((f,h)=>{(h==="length"||h===_s||!re(h)&&h>=c)&&a(f)})}else switch((s!==void 0||r.has(void 0))&&a(r.get(s)),u&&a(r.get(_s)),e){case"add":l?u&&a(r.get("length")):(a(r.get(je)),ts(t)&&a(r.get(pi)));break;case"delete":l||(a(r.get(je)),ts(t)&&a(r.get(pi)));break;case"set":ts(t)&&a(r.get(je));break}}ci()}function es(t){const e=Z(t);return e===t?e:(_t(e,"iterate",_s),Nt(t)?e:e.map(xt))}function cn(t){return _t(t=Z(t),"iterate",_s),t}const Ff={__proto__:null,[Symbol.iterator](){return mi(this,Symbol.iterator,xt)},concat(...t){return es(this).concat(...t.map(e=>U(e)?es(e):e))},entries(){return mi(this,"entries",t=>(t[1]=xt(t[1]),t))},every(t,e){return ue(this,"every",t,e,void 0,arguments)},filter(t,e){return ue(this,"filter",t,e,s=>s.map(xt),arguments)},find(t,e){return ue(this,"find",t,e,xt,arguments)},findIndex(t,e){return ue(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ue(this,"findLast",t,e,xt,arguments)},findLastIndex(t,e){return ue(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ue(this,"forEach",t,e,void 0,arguments)},includes(...t){return gi(this,"includes",t)},indexOf(...t){return gi(this,"indexOf",t)},join(t){return es(this).join(t)},lastIndexOf(...t){return gi(this,"lastIndexOf",t)},map(t,e){return ue(this,"map",t,e,void 0,arguments)},pop(){return xs(this,"pop")},push(...t){return xs(this,"push",t)},reduce(t,...e){return mr(this,"reduce",t,e)},reduceRight(t,...e){return mr(this,"reduceRight",t,e)},shift(){return xs(this,"shift")},some(t,e){return ue(this,"some",t,e,void 0,arguments)},splice(...t){return xs(this,"splice",t)},toReversed(){return es(this).toReversed()},toSorted(t){return es(this).toSorted(t)},toSpliced(...t){return es(this).toSpliced(...t)},unshift(...t){return xs(this,"unshift",t)},values(){return mi(this,"values",xt)}};function mi(t,e,s){const n=cn(t),i=n[e]();return n!==t&&!Nt(t)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.value&&(o.value=s(o.value)),o}),i}const If=Array.prototype;function ue(t,e,s,n,i,o){const r=cn(t),a=r!==t&&!Nt(t),l=r[e];if(l!==If[e]){const f=l.apply(t,o);return a?xt(f):f}let u=s;r!==t&&(a?u=function(f,h){return s.call(this,xt(f),h,t)}:s.length>2&&(u=function(f,h){return s.call(this,f,h,t)}));const c=l.call(r,u,n);return a&&i?i(c):c}function mr(t,e,s,n){const i=cn(t);let o=s;return i!==t&&(Nt(t)?s.length>3&&(o=function(r,a,l){return s.call(this,r,a,l,t)}):o=function(r,a,l){return s.call(this,r,xt(a),l,t)}),i[e](o,...n)}function gi(t,e,s){const n=Z(t);_t(n,"iterate",_s);const i=n[e](...s);return(i===-1||i===!1)&&bi(s[0])?(s[0]=Z(s[0]),n[e](...s)):i}function xs(t,e,s=[]){ae(),li();const n=Z(t)[e].apply(t,s);return ci(),le(),n}const $f=Ie("__proto__,__v_isRef,__isVue"),gr=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(re));function jf(t){re(t)||(t=String(t));const e=Z(this);return _t(e,"has",t),e.hasOwnProperty(t)}class yr{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const i=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!i;if(s==="__v_isReadonly")return i;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(i?o?Tr:Sr:o?xr:_r).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const r=U(e);if(!i){let l;if(r&&(l=Ff[s]))return l;if(s==="hasOwnProperty")return jf}const a=Reflect.get(e,s,yt(e)?e:n);return(re(s)?gr.has(s):$f(s))||(i||_t(e,"get",s),o)?a:yt(a)?r&&si(s)?a:a.value:lt(a)?i?wr(a):vi(a):a}}class vr extends yr{constructor(e=!1){super(!1,e)}set(e,s,n,i){let o=e[s];if(!this._isShallow){const l=Be(o);if(!Nt(n)&&!Be(n)&&(o=Z(o),n=Z(n)),!U(e)&&yt(o)&&!yt(n))return l?!1:(o.value=n,!0)}const r=U(e)&&si(s)?Number(s)<e.length:tt(e,s),a=Reflect.set(e,s,n,yt(e)?e:i);return e===Z(i)&&(r?Te(n,o)&&ce(e,"set",s,n):ce(e,"add",s,n)),a}deleteProperty(e,s){const n=tt(e,s);e[s];const i=Reflect.deleteProperty(e,s);return i&&n&&ce(e,"delete",s,void 0),i}has(e,s){const n=Reflect.has(e,s);return(!re(s)||!gr.has(s))&&_t(e,"has",s),n}ownKeys(e){return _t(e,"iterate",U(e)?"length":je),Reflect.ownKeys(e)}}class br extends yr{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const Bf=new vr,Nf=new br,kf=new vr(!0),Uf=new br(!0),yi=t=>t,un=t=>Reflect.getPrototypeOf(t);function Hf(t,e,s){return function(...n){const i=this.__v_raw,o=Z(i),r=ts(o),a=t==="entries"||t===Symbol.iterator&&r,l=t==="keys"&&r,u=i[t](...n),c=s?yi:e?_i:xt;return!e&&_t(o,"iterate",l?pi:je),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:a?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function fn(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Kf(t,e){const s={get(i){const o=this.__v_raw,r=Z(o),a=Z(i);t||(Te(i,a)&&_t(r,"get",i),_t(r,"get",a));const{has:l}=un(r),u=e?yi:t?_i:xt;if(l.call(r,i))return u(o.get(i));if(l.call(r,a))return u(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!t&&_t(Z(i),"iterate",je),Reflect.get(i,"size",i)},has(i){const o=this.__v_raw,r=Z(o),a=Z(i);return t||(Te(i,a)&&_t(r,"has",i),_t(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=Z(a),u=e?yi:t?_i:xt;return!t&&_t(l,"iterate",je),a.forEach((c,f)=>i.call(o,u(c),u(f),r))}};return gt(s,t?{add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear")}:{add(i){!e&&!Nt(i)&&!Be(i)&&(i=Z(i));const o=Z(this);return un(o).has.call(o,i)||(o.add(i),ce(o,"add",i,i)),this},set(i,o){!e&&!Nt(o)&&!Be(o)&&(o=Z(o));const r=Z(this),{has:a,get:l}=un(r);let u=a.call(r,i);u||(i=Z(i),u=a.call(r,i));const c=l.call(r,i);return r.set(i,o),u?Te(o,c)&&ce(r,"set",i,o):ce(r,"add",i,o),this},delete(i){const o=Z(this),{has:r,get:a}=un(o);let l=r.call(o,i);l||(i=Z(i),l=r.call(o,i)),a&&a.call(o,i);const u=o.delete(i);return l&&ce(o,"delete",i,void 0),u},clear(){const i=Z(this),o=i.size!==0,r=i.clear();return o&&ce(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{s[i]=Hf(i,t,e)}),s}function hn(t,e){const s=Kf(t,e);return(n,i,o)=>i==="__v_isReactive"?!t:i==="__v_isReadonly"?t:i==="__v_raw"?n:Reflect.get(tt(s,i)&&i in n?s:n,i,o)}const Wf={get:hn(!1,!1)},Gf={get:hn(!1,!0)},zf={get:hn(!0,!1)},qf={get:hn(!0,!0)},_r=new WeakMap,xr=new WeakMap,Sr=new WeakMap,Tr=new WeakMap;function Yf(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xf(t){return t.__v_skip||!Object.isExtensible(t)?0:Yf(_f(t))}function vi(t){return Be(t)?t:pn(t,!1,Bf,Wf,_r)}function Zf(t){return pn(t,!1,kf,Gf,xr)}function wr(t){return pn(t,!0,Nf,zf,Sr)}function dn(t){return pn(t,!0,Uf,qf,Tr)}function pn(t,e,s,n,i){if(!lt(t)||t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=i.get(t);if(o)return o;const r=Xf(t);if(r===0)return t;const a=new Proxy(t,r===2?n:s);return i.set(t,a),a}function ss(t){return Be(t)?ss(t.__v_raw):!!(t&&t.__v_isReactive)}function Be(t){return!!(t&&t.__v_isReadonly)}function Nt(t){return!!(t&&t.__v_isShallow)}function bi(t){return t?!!t.__v_raw:!1}function Z(t){const e=t&&t.__v_raw;return e?Z(e):t}function Jf(t){return!tt(t,"__v_skip")&&Object.isExtensible(t)&&er(t,"__v_skip",!0),t}const xt=t=>lt(t)?vi(t):t,_i=t=>lt(t)?wr(t):t;function yt(t){return t?t.__v_isRef===!0:!1}function ns(t){return Qf(t,!1)}function Qf(t,e){return yt(t)?t:new th(t,e)}class th{constructor(e,s){this.dep=new hi,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:Z(e),this._value=s?e:xt(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||Nt(e)||Be(e);e=n?e:Z(e),Te(e,s)&&(this._rawValue=e,this._value=n?e:xt(e),this.dep.trigger())}}function Ar(t){return yt(t)?t.value:t}const eh={get:(t,e,s)=>e==="__v_raw"?t:Ar(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const i=t[e];return yt(i)&&!yt(s)?(i.value=s,!0):Reflect.set(t,e,s,n)}};function Pr(t){return ss(t)?t:new Proxy(t,eh)}class sh{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new hi(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ot!==this)return lr(this,!0),!0}get value(){const e=this.dep.track();return fr(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function nh(t,e,s=!1){let n,i;return W(t)?n=t:(n=t.get,i=t.set),new sh(n,i,s)}const mn={},gn=new WeakMap;let Ne;function ih(t,e=!1,s=Ne){if(s){let n=gn.get(s);n||gn.set(s,n=[]),n.push(t)}}function oh(t,e,s=it){const{immediate:n,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=s,u=P=>i?P:Nt(P)||i===!1||i===0?we(P,1):we(P);let c,f,h,p,y=!1,b=!1;if(yt(t)?(f=()=>t.value,y=Nt(t)):ss(t)?(f=()=>u(t),y=!0):U(t)?(b=!0,y=t.some(P=>ss(P)||Nt(P)),f=()=>t.map(P=>{if(yt(P))return P.value;if(ss(P))return u(P);if(W(P))return l?l(P,2):P()})):W(t)?e?f=l?()=>l(t,2):t:f=()=>{if(h){ae();try{h()}finally{le()}}const P=Ne;Ne=c;try{return l?l(t,3,[p]):t(p)}finally{Ne=P}}:f=Wt,e&&i){const P=f,C=i===!0?1/0:i;f=()=>we(P(),C)}const A=Of(),_=()=>{c.stop(),A&&A.active&&ei(A.effects,c)};if(o&&e){const P=e;e=(...C)=>{P(...C),_()}}let V=b?new Array(t.length).fill(mn):mn;const L=P=>{if(!(!(c.flags&1)||!c.dirty&&!P))if(e){const C=c.run();if(i||y||(b?C.some((N,z)=>Te(N,V[z])):Te(C,V))){h&&h();const N=Ne;Ne=c;try{const z=[C,V===mn?void 0:b&&V[0]===mn?[]:V,p];l?l(e,3,z):e(...z),V=C}finally{Ne=N}}}else c.run()};return a&&a(L),c=new rr(f),c.scheduler=r?()=>r(L,!1):L,p=P=>ih(P,!1,c),h=c.onStop=()=>{const P=gn.get(c);if(P){if(l)l(P,4);else for(const C of P)C();gn.delete(c)}},e?n?L(!0):V=c.run():r?r(L.bind(null,!0),!0):c.run(),_.pause=c.pause.bind(c),_.resume=c.resume.bind(c),_.stop=_,_}function we(t,e=1/0,s){if(e<=0||!lt(t)||t.__v_skip||(s=s||new Set,s.has(t)))return t;if(s.add(t),e--,yt(t))we(t.value,e,s);else if(U(t))for(let n=0;n<t.length;n++)we(t[n],e,s);else if(Zo(t)||ts(t))t.forEach(n=>{we(n,e,s)});else if(tr(t)){for(const n in t)we(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&we(t[n],e,s)}return t}var Ae={NODE_ENV:"production"};const Ss=[];let xi=!1;function rh(t,...e){if(xi)return;xi=!0,ae();const s=Ss.length?Ss[Ss.length-1].component:null,n=s&&s.appContext.config.warnHandler,i=ah();if(n)is(n,s,11,[t+e.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),s&&s.proxy,i.map(({vnode:o})=>`at <${Va(s,o.type)}>`).join(`
|
|
6
|
+
`),i]);else{const o=[`[Vue warn]: ${t}`,...e];i.length&&o.push(`
|
|
7
|
+
`,...lh(i)),console.warn(...o)}le(),xi=!1}function ah(){let t=Ss[Ss.length-1];if(!t)return[];const e=[];for(;t;){const s=e[0];s&&s.vnode===t?s.recurseCount++:e.push({vnode:t,recurseCount:0});const n=t.component&&t.component.parent;t=n&&n.vnode}return e}function lh(t){const e=[];return t.forEach((s,n)=>{e.push(...n===0?[]:[`
|
|
8
|
+
`],...ch(s))}),e}function ch({vnode:t,recurseCount:e}){const s=e>0?`... (${e} recursive calls)`:"",n=t.component?t.component.parent==null:!1,i=` at <${Va(t.component,t.type,n)}`,o=">"+s;return t.props?[i,...uh(t.props),o]:[i+o]}function uh(t){const e=[],s=Object.keys(t);return s.slice(0,3).forEach(n=>{e.push(...Cr(n,t[n]))}),s.length>3&&e.push(" ..."),e}function Cr(t,e,s){return ct(e)?(e=JSON.stringify(e),s?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?s?e:[`${t}=${e}`]:yt(e)?(e=Cr(t,Z(e.value),!0),s?e:[`${t}=Ref<`,e,">"]):W(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Z(e),s?e:[`${t}=`,e])}function is(t,e,s,n){try{return n?t(...n):t()}catch(i){yn(i,e,s)}}function zt(t,e,s,n){if(W(t)){const i=is(t,e,s,n);return i&&Jo(i)&&i.catch(o=>{yn(o,e,s)}),i}if(U(t)){const i=[];for(let o=0;o<t.length;o++)i.push(zt(t[o],e,s,n));return i}}function yn(t,e,s,n=!0){const i=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=e&&e.appContext.config||it;if(e){let a=e.parent;const l=e.proxy,u=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const c=a.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](t,l,u)===!1)return}a=a.parent}if(o){ae(),is(o,null,10,[t,l,u]),le();return}}fh(t,s,i,n,r)}function fh(t,e,s,n=!0,i=!1){if(i)throw t;console.error(t)}const Ct=[];let qt=-1;const os=[];let Pe=null,rs=0;const Er=Promise.resolve();let vn=null;function hh(t){const e=vn||Er;return t?e.then(this?t.bind(this):t):e}function dh(t){let e=qt+1,s=Ct.length;for(;e<s;){const n=e+s>>>1,i=Ct[n],o=Ts(i);o<t||o===t&&i.flags&2?e=n+1:s=n}return e}function Si(t){if(!(t.flags&1)){const e=Ts(t),s=Ct[Ct.length-1];!s||!(t.flags&2)&&e>=Ts(s)?Ct.push(t):Ct.splice(dh(e),0,t),t.flags|=1,Mr()}}function Mr(){vn||(vn=Er.then(Or))}function ph(t){U(t)?os.push(...t):Pe&&t.id===-1?Pe.splice(rs+1,0,t):t.flags&1||(os.push(t),t.flags|=1),Mr()}function Vr(t,e,s=qt+1){for(;s<Ct.length;s++){const n=Ct[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Ct.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Dr(t){if(os.length){const e=[...new Set(os)].sort((s,n)=>Ts(s)-Ts(n));if(os.length=0,Pe){Pe.push(...e);return}for(Pe=e,rs=0;rs<Pe.length;rs++){const s=Pe[rs];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Pe=null,rs=0}}const Ts=t=>t.id==null?t.flags&2?-1:1/0:t.id;function Or(t){const e=Wt;try{for(qt=0;qt<Ct.length;qt++){const s=Ct[qt];s&&!(s.flags&8)&&(Ae.NODE_ENV!=="production"&&e(s),s.flags&4&&(s.flags&=-2),is(s,s.i,s.i?15:14),s.flags&4||(s.flags&=-2))}}finally{for(;qt<Ct.length;qt++){const s=Ct[qt];s&&(s.flags&=-2)}qt=-1,Ct.length=0,Dr(),vn=null,(Ct.length||os.length)&&Or()}}let St=null,Rr=null;function bn(t){const e=St;return St=t,Rr=t&&t.type.__scopeId||null,e}function _n(t,e=St,s){if(!e||t._n)return t;const n=(...i)=>{n._d&&_a(-1);const o=bn(e);let r;try{r=t(...i)}finally{bn(o),n._d&&_a(1)}return r};return n._n=!0,n._c=!0,n._d=!0,n}function ke(t,e,s,n){const i=t.dirs,o=e&&e.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[n];l&&(ae(),zt(l,s,8,[t.el,a,t,e]),le())}}const mh=Symbol("_vte"),Lr=t=>t.__isTeleport,Ce=Symbol("_leaveCb"),xn=Symbol("_enterCb");function gh(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ai(()=>{t.isMounted=!0}),Pi(()=>{t.isUnmounting=!0}),t}const kt=[Function,Array],Fr={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kt,onEnter:kt,onAfterEnter:kt,onEnterCancelled:kt,onBeforeLeave:kt,onLeave:kt,onAfterLeave:kt,onLeaveCancelled:kt,onBeforeAppear:kt,onAppear:kt,onAfterAppear:kt,onAppearCancelled:kt},Ir=t=>{const e=t.subTree;return e.component?Ir(e.component):e},yh={name:"BaseTransition",props:Fr,setup(t,{slots:e}){const s=Bi(),n=gh();return()=>{const i=e.default&&Nr(e.default(),!0);if(!i||!i.length)return;const o=$r(i),r=Z(t),{mode:a}=r;if(n.isLeaving)return wi(o);const l=Br(o);if(!l)return wi(o);let u=Ti(l,r,n,s,f=>u=f);l.type!==Tt&&ws(l,u);let c=s.subTree&&Br(s.subTree);if(c&&c.type!==Tt&&!He(l,c)&&Ir(s).type!==Tt){let f=Ti(c,r,n,s);if(ws(c,f),a==="out-in"&&l.type!==Tt)return n.isLeaving=!0,f.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete f.afterLeave,c=void 0},wi(o);a==="in-out"&&l.type!==Tt?f.delayLeave=(h,p,y)=>{const b=jr(n,c);b[String(c.key)]=c,h[Ce]=()=>{p(),h[Ce]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{y(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return o}}};function $r(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Tt){e=s;break}}return e}const vh=yh;function jr(t,e){const{leavingVNodes:s}=t;let n=s.get(e.type);return n||(n=Object.create(null),s.set(e.type,n)),n}function Ti(t,e,s,n,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:p,onAfterLeave:y,onLeaveCancelled:b,onBeforeAppear:A,onAppear:_,onAfterAppear:V,onAppearCancelled:L}=e,P=String(t.key),C=jr(s,t),N=(R,G)=>{R&&zt(R,n,9,G)},z=(R,G)=>{const Y=G[1];N(R,G),U(R)?R.every(F=>F.length<=1)&&Y():R.length<=1&&Y()},$={mode:r,persisted:a,beforeEnter(R){let G=l;if(!s.isMounted)if(o)G=A||l;else return;R[Ce]&&R[Ce](!0);const Y=C[P];Y&&He(t,Y)&&Y.el[Ce]&&Y.el[Ce](),N(G,[R])},enter(R){let G=u,Y=c,F=f;if(!s.isMounted)if(o)G=_||u,Y=V||c,F=L||f;else return;let st=!1;const bt=R[xn]=Qt=>{st||(st=!0,Qt?N(F,[R]):N(Y,[R]),$.delayedLeave&&$.delayedLeave(),R[xn]=void 0)};G?z(G,[R,bt]):bt()},leave(R,G){const Y=String(t.key);if(R[xn]&&R[xn](!0),s.isUnmounting)return G();N(h,[R]);let F=!1;const st=R[Ce]=bt=>{F||(F=!0,G(),bt?N(b,[R]):N(y,[R]),R[Ce]=void 0,C[Y]===t&&delete C[Y])};C[Y]=t,p?z(p,[R,st]):st()},clone(R){const G=Ti(R,e,s,n,i);return i&&i(G),G}};return $}function wi(t){if(Tn(t))return t=he(t),t.children=null,t}function Br(t){if(!Tn(t))return Lr(t.type)&&t.children?$r(t.children):t;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&W(s.default))return s.default()}}function ws(t,e){t.shapeFlag&6&&t.component?(t.transition=e,ws(t.component.subTree,e)):t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Nr(t,e=!1,s){let n=[],i=0;for(let o=0;o<t.length;o++){let r=t[o];const a=s==null?r.key:String(s)+String(r.key!=null?r.key:o);r.type===ut?(r.patchFlag&128&&i++,n=n.concat(Nr(r.children,e,a))):(e||r.type!==Tt)&&n.push(a!=null?he(r,{key:a}):r)}if(i>1)for(let o=0;o<n.length;o++)n[o].patchFlag=-2;return n}/*! #__NO_SIDE_EFFECTS__ */function bh(t,e){return W(t)?gt({name:t.name},e,{setup:t}):t}function kr(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function Sn(t,e,s,n,i=!1){if(U(t)){t.forEach((y,b)=>Sn(y,e&&(U(e)?e[b]:e),s,n,i));return}if(as(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Sn(t,e,s,n.component.subTree);return}const o=n.shapeFlag&4?ki(n.component):n.el,r=i?null:o,{i:a,r:l}=t,u=e&&e.r,c=a.refs===it?a.refs={}:a.refs,f=a.setupState,h=Z(f),p=f===it?()=>!1:y=>tt(h,y);if(u!=null&&u!==l&&(ct(u)?(c[u]=null,p(u)&&(f[u]=null)):yt(u)&&(u.value=null)),W(l))is(l,a,12,[r,c]);else{const y=ct(l),b=yt(l);if(y||b){const A=()=>{if(t.f){const _=y?p(l)?f[l]:c[l]:l.value;i?U(_)&&ei(_,o):U(_)?_.includes(o)||_.push(o):y?(c[l]=[o],p(l)&&(f[l]=c[l])):(l.value=[o],t.k&&(c[t.k]=l.value))}else y?(c[l]=r,p(l)&&(f[l]=r)):b&&(l.value=r,t.k&&(c[t.k]=r))};r?(A.id=-1,Rt(A,s)):A()}}}ln().requestIdleCallback,ln().cancelIdleCallback;const as=t=>!!t.type.__asyncLoader,Tn=t=>t.type.__isKeepAlive;function _h(t,e){Ur(t,"a",e)}function xh(t,e){Ur(t,"da",e)}function Ur(t,e,s=mt){const n=t.__wdc||(t.__wdc=()=>{let i=s;for(;i;){if(i.isDeactivated)return;i=i.parent}return t()});if(wn(e,n,s),s){let i=s.parent;for(;i&&i.parent;)Tn(i.parent.vnode)&&Sh(n,e,s,i),i=i.parent}}function Sh(t,e,s,n){const i=wn(e,t,n,!0);Ci(()=>{ei(n[e],i)},s)}function wn(t,e,s=mt,n=!1){if(s){const i=s[t]||(s[t]=[]),o=e.__weh||(e.__weh=(...r)=>{ae();const a=Ds(s),l=zt(e,s,t,r);return a(),le(),l});return n?i.unshift(o):i.push(o),o}}const fe=t=>(e,s=mt)=>{(!Os||t==="sp")&&wn(t,(...n)=>e(...n),s)},Hr=fe("bm"),Ai=fe("m"),Kr=fe("bu"),Wr=fe("u"),Pi=fe("bum"),Ci=fe("um"),Th=fe("sp"),wh=fe("rtg"),Ah=fe("rtc");function Ph(t,e=mt){wn("ec",t,e)}const Ch="components",Gr=Symbol.for("v-ndc");function Eh(t){return ct(t)?Mh(Ch,t,!1)||t:t||Gr}function Mh(t,e,s=!0,n=!1){const i=St||mt;if(i){const o=i.type;{const a=Ma(o,!1);if(a&&(a===e||a===Bt(e)||a===an(Bt(e))))return o}const r=zr(i[t]||o[t],e)||zr(i.appContext[t],e);return!r&&n?o:r}}function zr(t,e){return t&&(t[e]||t[Bt(e)]||t[an(Bt(e))])}function Ee(t,e,s,n){let i;const o=s,r=U(t);if(r||ct(t)){const a=r&&ss(t);let l=!1;a&&(l=!Nt(t),t=cn(t)),i=new Array(t.length);for(let u=0,c=t.length;u<c;u++)i[u]=e(l?xt(t[u]):t[u],u,void 0,o)}else if(typeof t=="number"){i=new Array(t);for(let a=0;a<t;a++)i[a]=e(a+1,a,void 0,o)}else if(lt(t))if(t[Symbol.iterator])i=Array.from(t,(a,l)=>e(a,l,void 0,o));else{const a=Object.keys(t);i=new Array(a.length);for(let l=0,u=a.length;l<u;l++){const c=a[l];i[l]=e(t[c],c,l,o)}}else i=[];return i}function Vh(t,e,s={},n,i){if(St.ce||St.parent&&as(St.parent)&&St.parent.ce)return I(),Ft(ut,null,[et("slot",s,n)],64);let o=t[e];o&&o._c&&(o._d=!1),I();const r=o&&qr(o(s)),a=s.key||r&&r.key,l=Ft(ut,{key:(a&&!re(a)?a:`_${e}`)+""},r||[],r&&t._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function qr(t){return t.some(e=>Vs(e)?!(e.type===Tt||e.type===ut&&!qr(e.children)):!0)?t:null}const Ei=t=>t?Aa(t)?ki(t):Ei(t.parent):null,As=gt(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>Ei(t.parent),$root:t=>Ei(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>Jr(t),$forceUpdate:t=>t.f||(t.f=()=>{Si(t.update)}),$nextTick:t=>t.n||(t.n=hh.bind(t.proxy)),$watch:t=>td.bind(t)}),Mi=(t,e)=>t!==it&&!t.__isScriptSetup&&tt(t,e),Dh={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:i,props:o,accessCache:r,type:a,appContext:l}=t;let u;if(e[0]!=="$"){const p=r[e];if(p!==void 0)switch(p){case 1:return n[e];case 2:return i[e];case 4:return s[e];case 3:return o[e]}else{if(Mi(n,e))return r[e]=1,n[e];if(i!==it&&tt(i,e))return r[e]=2,i[e];if((u=t.propsOptions[0])&&tt(u,e))return r[e]=3,o[e];if(s!==it&&tt(s,e))return r[e]=4,s[e];Vi&&(r[e]=0)}}const c=As[e];let f,h;if(c)return e==="$attrs"&&_t(t.attrs,"get",""),c(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(s!==it&&tt(s,e))return r[e]=4,s[e];if(h=l.config.globalProperties,tt(h,e))return h[e]},set({_:t},e,s){const{data:n,setupState:i,ctx:o}=t;return Mi(i,e)?(i[e]=s,!0):n!==it&&tt(n,e)?(n[e]=s,!0):tt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:i,propsOptions:o}},r){let a;return!!s[r]||t!==it&&tt(t,r)||Mi(e,r)||(a=o[0])&&tt(a,r)||tt(n,r)||tt(As,r)||tt(i.config.globalProperties,r)},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:tt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function Oh(){return Rh().attrs}function Rh(){const t=Bi();return t.setupContext||(t.setupContext=Ea(t))}function Yr(t){return U(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let Vi=!0;function Lh(t){const e=Jr(t),s=t.proxy,n=t.ctx;Vi=!1,e.beforeCreate&&Xr(e.beforeCreate,t,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:y,activated:b,deactivated:A,beforeDestroy:_,beforeUnmount:V,destroyed:L,unmounted:P,render:C,renderTracked:N,renderTriggered:z,errorCaptured:$,serverPrefetch:R,expose:G,inheritAttrs:Y,components:F,directives:st,filters:bt}=e;if(u&&Fh(u,n,null),r)for(const J in r){const q=r[J];W(q)&&(n[J]=q.bind(s))}if(i){const J=i.call(s,s);lt(J)&&(t.data=vi(J))}if(Vi=!0,o)for(const J in o){const q=o[J],te=W(q)?q.bind(s,s):W(q.get)?q.get.bind(s,s):Wt,Ze=!W(q)&&W(q.set)?q.set.bind(s):Wt,ee=Mt({get:te,set:Ze});Object.defineProperty(n,J,{enumerable:!0,configurable:!0,get:()=>ee.value,set:It=>ee.value=It})}if(a)for(const J in a)Zr(a[J],n,s,J);if(l){const J=W(l)?l.call(s):l;Reflect.ownKeys(J).forEach(q=>{Oi(q,J[q])})}c&&Xr(c,t,"c");function pt(J,q){U(q)?q.forEach(te=>J(te.bind(s))):q&&J(q.bind(s))}if(pt(Hr,f),pt(Ai,h),pt(Kr,p),pt(Wr,y),pt(_h,b),pt(xh,A),pt(Ph,$),pt(Ah,N),pt(wh,z),pt(Pi,V),pt(Ci,P),pt(Th,R),U(G))if(G.length){const J=t.exposed||(t.exposed={});G.forEach(q=>{Object.defineProperty(J,q,{get:()=>s[q],set:te=>s[q]=te})})}else t.exposed||(t.exposed={});C&&t.render===Wt&&(t.render=C),Y!=null&&(t.inheritAttrs=Y),F&&(t.components=F),st&&(t.directives=st),R&&kr(t)}function Fh(t,e,s=Wt){U(t)&&(t=Di(t));for(const n in t){const i=t[n];let o;lt(i)?"default"in i?o=Cs(i.from||n,i.default,!0):o=Cs(i.from||n):o=Cs(i),yt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):e[n]=o}}function Xr(t,e,s){zt(U(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function Zr(t,e,s,n){let i=n.includes(".")?ma(s,n):()=>s[n];if(ct(t)){const o=e[t];W(o)&&Pn(i,o)}else if(W(t))Pn(i,t.bind(s));else if(lt(t))if(U(t))t.forEach(o=>Zr(o,e,s,n));else{const o=W(t.handler)?t.handler.bind(s):e[t.handler];W(o)&&Pn(i,o,t)}}function Jr(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=t.appContext,a=o.get(e);let l;return a?l=a:!i.length&&!s&&!n?l=e:(l={},i.length&&i.forEach(u=>An(l,u,r,!0)),An(l,e,r)),lt(e)&&o.set(e,l),l}function An(t,e,s,n=!1){const{mixins:i,extends:o}=e;o&&An(t,o,s,!0),i&&i.forEach(r=>An(t,r,s,!0));for(const r in e)if(!(n&&r==="expose")){const a=Ih[r]||s&&s[r];t[r]=a?a(t[r],e[r]):e[r]}return t}const Ih={data:Qr,props:ta,emits:ta,methods:Ps,computed:Ps,beforeCreate:Et,created:Et,beforeMount:Et,mounted:Et,beforeUpdate:Et,updated:Et,beforeDestroy:Et,beforeUnmount:Et,destroyed:Et,unmounted:Et,activated:Et,deactivated:Et,errorCaptured:Et,serverPrefetch:Et,components:Ps,directives:Ps,watch:jh,provide:Qr,inject:$h};function Qr(t,e){return e?t?function(){return gt(W(t)?t.call(this,this):t,W(e)?e.call(this,this):e)}:e:t}function $h(t,e){return Ps(Di(t),Di(e))}function Di(t){if(U(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function Et(t,e){return t?[...new Set([].concat(t,e))]:e}function Ps(t,e){return t?gt(Object.create(null),t,e):e}function ta(t,e){return t?U(t)&&U(e)?[...new Set([...t,...e])]:gt(Object.create(null),Yr(t),Yr(e??{})):e}function jh(t,e){if(!t)return e;if(!e)return t;const s=gt(Object.create(null),t);for(const n in e)s[n]=Et(t[n],e[n]);return s}function ea(){return{app:null,config:{isNativeTag:vf,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Bh=0;function Nh(t,e){return function(n,i=null){W(n)||(n=gt({},n)),i!=null&&!lt(i)&&(i=null);const o=ea(),r=new WeakSet,a=[];let l=!1;const u=o.app={_uid:Bh++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:xd,get config(){return o.config},set config(c){},use(c,...f){return r.has(c)||(c&&W(c.install)?(r.add(c),c.install(u,...f)):W(c)&&(r.add(c),c(u,...f))),u},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),u},component(c,f){return f?(o.components[c]=f,u):o.components[c]},directive(c,f){return f?(o.directives[c]=f,u):o.directives[c]},mount(c,f,h){if(!l){const p=u._ceVNode||et(n,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),t(p,c,h),l=!0,u._container=c,c.__vue_app__=u,ki(p.component)}},onUnmount(c){a.push(c)},unmount(){l&&(zt(a,u._instance,16),t(null,u._container),delete u._container.__vue_app__)},provide(c,f){return o.provides[c]=f,u},runWithContext(c){const f=ls;ls=u;try{return c()}finally{ls=f}}};return u}}let ls=null;function Oi(t,e){if(mt){let s=mt.provides;const n=mt.parent&&mt.parent.provides;n===s&&(s=mt.provides=Object.create(n)),s[t]=e}}function Cs(t,e,s=!1){const n=mt||St;if(n||ls){const i=ls?ls._context.provides:n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(i&&t in i)return i[t];if(arguments.length>1)return s&&W(e)?e.call(n&&n.proxy):e}}const sa={},na=()=>Object.create(sa),ia=t=>Object.getPrototypeOf(t)===sa;function kh(t,e,s,n=!1){const i={},o=na();t.propsDefaults=Object.create(null),oa(t,e,i,o);for(const r in t.propsOptions[0])r in i||(i[r]=void 0);s?t.props=n?i:Zf(i):t.type.props?t.props=i:t.props=o,t.attrs=o}function Uh(t,e,s,n){const{props:i,attrs:o,vnode:{patchFlag:r}}=t,a=Z(i),[l]=t.propsOptions;let u=!1;if((n||r>0)&&!(r&16)){if(r&8){const c=t.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Cn(t.emitsOptions,h))continue;const p=e[h];if(l)if(tt(o,h))p!==o[h]&&(o[h]=p,u=!0);else{const y=Bt(h);i[y]=Ri(l,a,y,p,t,!1)}else p!==o[h]&&(o[h]=p,u=!0)}}}else{oa(t,e,i,o)&&(u=!0);let c;for(const f in a)(!e||!tt(e,f)&&((c=$e(f))===f||!tt(e,c)))&&(l?s&&(s[f]!==void 0||s[c]!==void 0)&&(i[f]=Ri(l,a,f,void 0,t,!0)):delete i[f]);if(o!==a)for(const f in o)(!e||!tt(e,f))&&(delete o[f],u=!0)}u&&ce(t.attrs,"set","")}function oa(t,e,s,n){const[i,o]=t.propsOptions;let r=!1,a;if(e)for(let l in e){if(gs(l))continue;const u=e[l];let c;i&&tt(i,c=Bt(l))?!o||!o.includes(c)?s[c]=u:(a||(a={}))[c]=u:Cn(t.emitsOptions,l)||(!(l in n)||u!==n[l])&&(n[l]=u,r=!0)}if(o){const l=Z(s),u=a||it;for(let c=0;c<o.length;c++){const f=o[c];s[f]=Ri(i,l,f,u[f],t,!tt(u,f))}}return r}function Ri(t,e,s,n,i,o){const r=t[s];if(r!=null){const a=tt(r,"default");if(a&&n===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&W(l)){const{propsDefaults:u}=i;if(s in u)n=u[s];else{const c=Ds(i);n=u[s]=l.call(null,e),c()}}else n=l;i.ce&&i.ce._setProp(s,n)}r[0]&&(o&&!a?n=!1:r[1]&&(n===""||n===$e(s))&&(n=!0))}return n}const Hh=new WeakMap;function ra(t,e,s=!1){const n=s?Hh:e.propsCache,i=n.get(t);if(i)return i;const o=t.props,r={},a=[];let l=!1;if(!W(t)){const c=f=>{l=!0;const[h,p]=ra(f,e,!0);gt(r,h),p&&a.push(...p)};!s&&e.mixins.length&&e.mixins.forEach(c),t.extends&&c(t.extends),t.mixins&&t.mixins.forEach(c)}if(!o&&!l)return lt(t)&&n.set(t,Qe),Qe;if(U(o))for(let c=0;c<o.length;c++){const f=Bt(o[c]);aa(f)&&(r[f]=it)}else if(o)for(const c in o){const f=Bt(c);if(aa(f)){const h=o[c],p=r[f]=U(h)||W(h)?{type:h}:gt({},h),y=p.type;let b=!1,A=!0;if(U(y))for(let _=0;_<y.length;++_){const V=y[_],L=W(V)&&V.name;if(L==="Boolean"){b=!0;break}else L==="String"&&(A=!1)}else b=W(y)&&y.name==="Boolean";p[0]=b,p[1]=A,(b||tt(p,"default"))&&a.push(f)}}const u=[r,a];return lt(t)&&n.set(t,u),u}function aa(t){return t[0]!=="$"&&!gs(t)}const la=t=>t[0]==="_"||t==="$stable",Li=t=>U(t)?t.map(Yt):[Yt(t)],Kh=(t,e,s)=>{if(e._n)return e;const n=_n((...i)=>(Ae.NODE_ENV!=="production"&&mt&&(!s||(s.root,mt.root)),Li(e(...i))),s);return n._c=!1,n},ca=(t,e,s)=>{const n=t._ctx;for(const i in t){if(la(i))continue;const o=t[i];if(W(o))e[i]=Kh(i,o,n);else if(o!=null){const r=Li(o);e[i]=()=>r}}},ua=(t,e)=>{const s=Li(e);t.slots.default=()=>s},fa=(t,e,s)=>{for(const n in e)(s||n!=="_")&&(t[n]=e[n])},Wh=(t,e,s)=>{const n=t.slots=na();if(t.vnode.shapeFlag&32){const i=e._;i?(fa(n,e,s),s&&er(n,"_",i,!0)):ca(e,n)}else e&&ua(t,e)},Gh=(t,e,s)=>{const{vnode:n,slots:i}=t;let o=!0,r=it;if(n.shapeFlag&32){const a=e._;a?s&&a===1?o=!1:fa(i,e,s):(o=!e.$stable,ca(e,i)),r=e}else e&&(ua(t,e),r={default:1});if(o)for(const a in i)!la(a)&&r[a]==null&&delete i[a]},Rt=ad;function zh(t){return qh(t)}function qh(t,e){const s=ln();s.__VUE__=!0;const{insert:n,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Wt,insertStaticContent:y}=t,b=(d,m,v,T=null,x=null,S=null,D=void 0,M=null,E=!!m.dynamicChildren)=>{if(d===m)return;d&&!He(d,m)&&(T=xe(d),It(d,x,S,!0),d=null),m.patchFlag===-2&&(E=!1,m.dynamicChildren=null);const{type:w,ref:k,shapeFlag:O}=m;switch(w){case En:A(d,m,v,T);break;case Tt:_(d,m,v,T);break;case Mn:d==null&&V(m,v,T,D);break;case ut:F(d,m,v,T,x,S,D,M,E);break;default:O&1?C(d,m,v,T,x,S,D,M,E):O&6?st(d,m,v,T,x,S,D,M,E):(O&64||O&128)&&w.process(d,m,v,T,x,S,D,M,E,en)}k!=null&&x&&Sn(k,d&&d.ref,S,m||d,!m)},A=(d,m,v,T)=>{if(d==null)n(m.el=a(m.children),v,T);else{const x=m.el=d.el;m.children!==d.children&&u(x,m.children)}},_=(d,m,v,T)=>{d==null?n(m.el=l(m.children||""),v,T):m.el=d.el},V=(d,m,v,T)=>{[d.el,d.anchor]=y(d.children,m,v,T,d.el,d.anchor)},L=({el:d,anchor:m},v,T)=>{let x;for(;d&&d!==m;)x=h(d),n(d,v,T),d=x;n(m,v,T)},P=({el:d,anchor:m})=>{let v;for(;d&&d!==m;)v=h(d),i(d),d=v;i(m)},C=(d,m,v,T,x,S,D,M,E)=>{m.type==="svg"?D="svg":m.type==="math"&&(D="mathml"),d==null?N(m,v,T,x,S,D,M,E):R(d,m,x,S,D,M,E)},N=(d,m,v,T,x,S,D,M)=>{let E,w;const{props:k,shapeFlag:O,transition:j,dirs:K}=d;if(E=d.el=r(d.type,S,k&&k.is,k),O&8?c(E,d.children):O&16&&$(d.children,E,null,T,x,Fi(d,S),D,M),K&&ke(d,null,T,"created"),z(E,d,d.scopeId,D,T),k){for(const at in k)at!=="value"&&!gs(at)&&o(E,at,null,k[at],S,T);"value"in k&&o(E,"value",null,k.value,S),(w=k.onVnodeBeforeMount)&&Xt(w,T,d)}K&&ke(d,null,T,"beforeMount");const X=Yh(x,j);X&&j.beforeEnter(E),n(E,m,v),((w=k&&k.onVnodeMounted)||X||K)&&Rt(()=>{w&&Xt(w,T,d),X&&j.enter(E),K&&ke(d,null,T,"mounted")},x)},z=(d,m,v,T,x)=>{if(v&&p(d,v),T)for(let S=0;S<T.length;S++)p(d,T[S]);if(x){let S=x.subTree;if(m===S||ba(S.type)&&(S.ssContent===m||S.ssFallback===m)){const D=x.vnode;z(d,D,D.scopeId,D.slotScopeIds,x.parent)}}},$=(d,m,v,T,x,S,D,M,E=0)=>{for(let w=E;w<d.length;w++){const k=d[w]=M?Me(d[w]):Yt(d[w]);b(null,k,m,v,T,x,S,D,M)}},R=(d,m,v,T,x,S,D)=>{const M=m.el=d.el;let{patchFlag:E,dynamicChildren:w,dirs:k}=m;E|=d.patchFlag&16;const O=d.props||it,j=m.props||it;let K;if(v&&Ue(v,!1),(K=j.onVnodeBeforeUpdate)&&Xt(K,v,m,d),k&&ke(m,d,v,"beforeUpdate"),v&&Ue(v,!0),(O.innerHTML&&j.innerHTML==null||O.textContent&&j.textContent==null)&&c(M,""),w?G(d.dynamicChildren,w,M,v,T,Fi(m,x),S):D||q(d,m,M,null,v,T,Fi(m,x),S,!1),E>0){if(E&16)Y(M,O,j,v,x);else if(E&2&&O.class!==j.class&&o(M,"class",null,j.class,x),E&4&&o(M,"style",O.style,j.style,x),E&8){const X=m.dynamicProps;for(let at=0;at<X.length;at++){const nt=X[at],$t=O[nt],Dt=j[nt];(Dt!==$t||nt==="value")&&o(M,nt,$t,Dt,x,v)}}E&1&&d.children!==m.children&&c(M,m.children)}else!D&&w==null&&Y(M,O,j,v,x);((K=j.onVnodeUpdated)||k)&&Rt(()=>{K&&Xt(K,v,m,d),k&&ke(m,d,v,"updated")},T)},G=(d,m,v,T,x,S,D)=>{for(let M=0;M<m.length;M++){const E=d[M],w=m[M],k=E.el&&(E.type===ut||!He(E,w)||E.shapeFlag&70)?f(E.el):v;b(E,w,k,null,T,x,S,D,!0)}},Y=(d,m,v,T,x)=>{if(m!==v){if(m!==it)for(const S in m)!gs(S)&&!(S in v)&&o(d,S,m[S],null,x,T);for(const S in v){if(gs(S))continue;const D=v[S],M=m[S];D!==M&&S!=="value"&&o(d,S,M,D,x,T)}"value"in v&&o(d,"value",m.value,v.value,x)}},F=(d,m,v,T,x,S,D,M,E)=>{const w=m.el=d?d.el:a(""),k=m.anchor=d?d.anchor:a("");let{patchFlag:O,dynamicChildren:j,slotScopeIds:K}=m;K&&(M=M?M.concat(K):K),d==null?(n(w,v,T),n(k,v,T),$(m.children||[],v,k,x,S,D,M,E)):O>0&&O&64&&j&&d.dynamicChildren?(G(d.dynamicChildren,j,v,x,S,D,M),(m.key!=null||x&&m===x.subTree)&&ha(d,m,!0)):q(d,m,v,k,x,S,D,M,E)},st=(d,m,v,T,x,S,D,M,E)=>{m.slotScopeIds=M,d==null?m.shapeFlag&512?x.ctx.activate(m,v,T,D,E):bt(m,v,T,x,S,D,E):Qt(d,m,E)},bt=(d,m,v,T,x,S,D)=>{const M=d.component=pd(d,T,x);if(Tn(d)&&(M.ctx.renderer=en),md(M,!1,D),M.asyncDep){if(x&&x.registerDep(M,pt,D),!d.el){const E=M.subTree=et(Tt);_(null,E,m,v)}}else pt(M,d,m,v,x,S,D)},Qt=(d,m,v)=>{const T=m.component=d.component;if(od(d,m,v))if(T.asyncDep&&!T.asyncResolved){J(T,m,v);return}else T.next=m,T.update();else m.el=d.el,T.vnode=m},pt=(d,m,v,T,x,S,D)=>{const M=()=>{if(d.isMounted){let{next:O,bu:j,u:K,parent:X,vnode:at}=d;{const ie=da(d);if(ie){O&&(O.el=at.el,J(d,O,D)),ie.asyncDep.then(()=>{d.isUnmounted||M()});return}}let nt=O,$t;Ue(d,!1),O?(O.el=at.el,J(d,O,D)):O=at,j&&ii(j),($t=O.props&&O.props.onVnodeBeforeUpdate)&&Xt($t,X,O,at),Ue(d,!0);const Dt=ya(d),ne=d.subTree;d.subTree=Dt,b(ne,Dt,f(ne.el),xe(ne),d,x,S),O.el=Dt.el,nt===null&&rd(d,Dt.el),K&&Rt(K,x),($t=O.props&&O.props.onVnodeUpdated)&&Rt(()=>Xt($t,X,O,at),x)}else{let O;const{el:j,props:K}=m,{bm:X,m:at,parent:nt,root:$t,type:Dt}=d,ne=as(m);Ue(d,!1),X&&ii(X),!ne&&(O=K&&K.onVnodeBeforeMount)&&Xt(O,nt,m),Ue(d,!0);{$t.ce&&$t.ce._injectChildStyle(Dt);const ie=d.subTree=ya(d);b(null,ie,v,T,d,x,S),m.el=ie.el}if(at&&Rt(at,x),!ne&&(O=K&&K.onVnodeMounted)){const ie=m;Rt(()=>Xt(O,nt,ie),x)}(m.shapeFlag&256||nt&&as(nt.vnode)&&nt.vnode.shapeFlag&256)&&d.a&&Rt(d.a,x),d.isMounted=!0,m=v=T=null}};d.scope.on();const E=d.effect=new rr(M);d.scope.off();const w=d.update=E.run.bind(E),k=d.job=E.runIfDirty.bind(E);k.i=d,k.id=d.uid,E.scheduler=()=>Si(k),Ue(d,!0),w()},J=(d,m,v)=>{m.component=d;const T=d.vnode.props;d.vnode=m,d.next=null,Uh(d,m.props,T,v),Gh(d,m.children,v),ae(),Vr(d),le()},q=(d,m,v,T,x,S,D,M,E=!1)=>{const w=d&&d.children,k=d?d.shapeFlag:0,O=m.children,{patchFlag:j,shapeFlag:K}=m;if(j>0){if(j&128){Ze(w,O,v,T,x,S,D,M,E);return}else if(j&256){te(w,O,v,T,x,S,D,M,E);return}}K&8?(k&16&&se(w,x,S),O!==w&&c(v,O)):k&16?K&16?Ze(w,O,v,T,x,S,D,M,E):se(w,x,S,!0):(k&8&&c(v,""),K&16&&$(O,v,T,x,S,D,M,E))},te=(d,m,v,T,x,S,D,M,E)=>{d=d||Qe,m=m||Qe;const w=d.length,k=m.length,O=Math.min(w,k);let j;for(j=0;j<O;j++){const K=m[j]=E?Me(m[j]):Yt(m[j]);b(d[j],K,v,null,x,S,D,M,E)}w>k?se(d,x,S,!0,!1,O):$(m,v,T,x,S,D,M,E,O)},Ze=(d,m,v,T,x,S,D,M,E)=>{let w=0;const k=m.length;let O=d.length-1,j=k-1;for(;w<=O&&w<=j;){const K=d[w],X=m[w]=E?Me(m[w]):Yt(m[w]);if(He(K,X))b(K,X,v,null,x,S,D,M,E);else break;w++}for(;w<=O&&w<=j;){const K=d[O],X=m[j]=E?Me(m[j]):Yt(m[j]);if(He(K,X))b(K,X,v,null,x,S,D,M,E);else break;O--,j--}if(w>O){if(w<=j){const K=j+1,X=K<k?m[K].el:T;for(;w<=j;)b(null,m[w]=E?Me(m[w]):Yt(m[w]),v,X,x,S,D,M,E),w++}}else if(w>j)for(;w<=O;)It(d[w],x,S,!0),w++;else{const K=w,X=w,at=new Map;for(w=X;w<=j;w++){const jt=m[w]=E?Me(m[w]):Yt(m[w]);jt.key!=null&&at.set(jt.key,w)}let nt,$t=0;const Dt=j-X+1;let ne=!1,ie=0;const sn=new Array(Dt);for(w=0;w<Dt;w++)sn[w]=0;for(w=K;w<=O;w++){const jt=d[w];if($t>=Dt){It(jt,x,S,!0);continue}let oe;if(jt.key!=null)oe=at.get(jt.key);else for(nt=X;nt<=j;nt++)if(sn[nt-X]===0&&He(jt,m[nt])){oe=nt;break}oe===void 0?It(jt,x,S,!0):(sn[oe-X]=w+1,oe>=ie?ie=oe:ne=!0,b(jt,m[oe],v,null,x,S,D,M,E),$t++)}const gf=ne?Xh(sn):Qe;for(nt=gf.length-1,w=Dt-1;w>=0;w--){const jt=X+w,oe=m[jt],yf=jt+1<k?m[jt+1].el:T;sn[w]===0?b(null,oe,v,yf,x,S,D,M,E):ne&&(nt<0||w!==gf[nt]?ee(oe,v,yf,2):nt--)}}},ee=(d,m,v,T,x=null)=>{const{el:S,type:D,transition:M,children:E,shapeFlag:w}=d;if(w&6){ee(d.component.subTree,m,v,T);return}if(w&128){d.suspense.move(m,v,T);return}if(w&64){D.move(d,m,v,en);return}if(D===ut){n(S,m,v);for(let O=0;O<E.length;O++)ee(E[O],m,v,T);n(d.anchor,m,v);return}if(D===Mn){L(d,m,v);return}if(T!==2&&w&1&&M)if(T===0)M.beforeEnter(S),n(S,m,v),Rt(()=>M.enter(S),x);else{const{leave:O,delayLeave:j,afterLeave:K}=M,X=()=>n(S,m,v),at=()=>{O(S,()=>{X(),K&&K()})};j?j(S,X,at):at()}else n(S,m,v)},It=(d,m,v,T=!1,x=!1)=>{const{type:S,props:D,ref:M,children:E,dynamicChildren:w,shapeFlag:k,patchFlag:O,dirs:j,cacheIndex:K}=d;if(O===-2&&(x=!1),M!=null&&Sn(M,null,v,d,!0),K!=null&&(m.renderCache[K]=void 0),k&256){m.ctx.deactivate(d);return}const X=k&1&&j,at=!as(d);let nt;if(at&&(nt=D&&D.onVnodeBeforeUnmount)&&Xt(nt,m,d),k&6)Je(d.component,v,T);else{if(k&128){d.suspense.unmount(v,T);return}X&&ke(d,null,m,"beforeUnmount"),k&64?d.type.remove(d,m,v,en,T):w&&!w.hasOnce&&(S!==ut||O>0&&O&64)?se(w,m,v,!1,!0):(S===ut&&O&384||!x&&k&16)&&se(E,m,v),T&&tn(d)}(at&&(nt=D&&D.onVnodeUnmounted)||X)&&Rt(()=>{nt&&Xt(nt,m,d),X&&ke(d,null,m,"unmounted")},v)},tn=d=>{const{type:m,el:v,anchor:T,transition:x}=d;if(m===ut){Qn(v,T);return}if(m===Mn){P(d);return}const S=()=>{i(v),x&&!x.persisted&&x.afterLeave&&x.afterLeave()};if(d.shapeFlag&1&&x&&!x.persisted){const{leave:D,delayLeave:M}=x,E=()=>D(v,S);M?M(d.el,S,E):E()}else S()},Qn=(d,m)=>{let v;for(;d!==m;)v=h(d),i(d),d=v;i(m)},Je=(d,m,v)=>{const{bum:T,scope:x,job:S,subTree:D,um:M,m:E,a:w}=d;pa(E),pa(w),T&&ii(T),x.stop(),S&&(S.flags|=8,It(D,d,m,v)),M&&Rt(M,m),Rt(()=>{d.isUnmounted=!0},m),m&&m.pendingBranch&&!m.isUnmounted&&d.asyncDep&&!d.asyncResolved&&d.suspenseId===m.pendingId&&(m.deps--,m.deps===0&&m.resolve())},se=(d,m,v,T=!1,x=!1,S=0)=>{for(let D=S;D<d.length;D++)It(d[D],m,v,T,x)},xe=d=>{if(d.shapeFlag&6)return xe(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const m=h(d.anchor||d.el),v=m&&m[mh];return v?h(v):m};let Se=!1;const Le=(d,m,v)=>{d==null?m._vnode&&It(m._vnode,null,null,!0):b(m._vnode||null,d,m,null,null,null,v),m._vnode=d,Se||(Se=!0,Vr(),Dr(),Se=!1)},en={p:b,um:It,m:ee,r:tn,mt:bt,mc:$,pc:q,pbc:G,n:xe,o:t};return{render:Le,hydrate:void 0,createApp:Nh(Le)}}function Fi({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function Ue({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Yh(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function ha(t,e,s=!1){const n=t.children,i=e.children;if(U(n)&&U(i))for(let o=0;o<n.length;o++){const r=n[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Me(i[o]),a.el=r.el),!s&&a.patchFlag!==-2&&ha(r,a)),a.type===En&&(a.el=r.el)}}function Xh(t){const e=t.slice(),s=[0];let n,i,o,r,a;const l=t.length;for(n=0;n<l;n++){const u=t[n];if(u!==0){if(i=s[s.length-1],t[i]<u){e[n]=i,s.push(n);continue}for(o=0,r=s.length-1;o<r;)a=o+r>>1,t[s[a]]<u?o=a+1:r=a;u<t[s[o]]&&(o>0&&(e[n]=s[o-1]),s[o]=n)}}for(o=s.length,r=s[o-1];o-- >0;)s[o]=r,r=e[r];return s}function da(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:da(e)}function pa(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}const Zh=Symbol.for("v-scx"),Jh=()=>Cs(Zh);function Qh(t,e){return Ii(t,null,e)}function Pn(t,e,s){return Ii(t,e,s)}function Ii(t,e,s=it){const{immediate:n,deep:i,flush:o,once:r}=s,a=gt({},s),l=e&&n||!e&&o!=="post";let u;if(Os){if(o==="sync"){const p=Jh();u=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=Wt,p.resume=Wt,p.pause=Wt,p}}const c=mt;a.call=(p,y,b)=>zt(p,c,y,b);let f=!1;o==="post"?a.scheduler=p=>{Rt(p,c&&c.suspense)}:o!=="sync"&&(f=!0,a.scheduler=(p,y)=>{y?p():Si(p)}),a.augmentJob=p=>{e&&(p.flags|=4),f&&(p.flags|=2,c&&(p.id=c.uid,p.i=c))};const h=oh(t,e,a);return Os&&(u?u.push(h):l&&h()),h}function td(t,e,s){const n=this.proxy,i=ct(t)?t.includes(".")?ma(n,t):()=>n[t]:t.bind(n,n);let o;W(e)?o=e:(o=e.handler,s=e);const r=Ds(this),a=Ii(i,o.bind(n),s);return r(),a}function ma(t,e){const s=e.split(".");return()=>{let n=t;for(let i=0;i<s.length&&n;i++)n=n[s[i]];return n}}const ed=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Bt(e)}Modifiers`]||t[`${$e(e)}Modifiers`];function sd(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||it;let i=s;const o=e.startsWith("update:"),r=o&&ed(n,e.slice(7));r&&(r.trim&&(i=s.map(c=>ct(c)?c.trim():c)),r.number&&(i=s.map(Tf)));let a,l=n[a=ni(e)]||n[a=ni(Bt(e))];!l&&o&&(l=n[a=ni($e(e))]),l&&zt(l,t,6,i);const u=n[a+"Once"];if(u){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,zt(u,t,6,i)}}function ga(t,e,s=!1){const n=e.emitsCache,i=n.get(t);if(i!==void 0)return i;const o=t.emits;let r={},a=!1;if(!W(t)){const l=u=>{const c=ga(u,e,!0);c&&(a=!0,gt(r,c))};!s&&e.mixins.length&&e.mixins.forEach(l),t.extends&&l(t.extends),t.mixins&&t.mixins.forEach(l)}return!o&&!a?(lt(t)&&n.set(t,null),null):(U(o)?o.forEach(l=>r[l]=null):gt(r,o),lt(t)&&n.set(t,r),r)}function Cn(t,e){return!t||!nn(e)?!1:(e=e.slice(2).replace(/Once$/,""),tt(t,e[0].toLowerCase()+e.slice(1))||tt(t,$e(e))||tt(t,e))}function v_(){}function ya(t){const{type:e,vnode:s,proxy:n,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:u,renderCache:c,props:f,data:h,setupState:p,ctx:y,inheritAttrs:b}=t,A=bn(t);let _,V;try{if(s.shapeFlag&4){const P=i||n,C=Ae.NODE_ENV!=="production"&&p.__isScriptSetup?new Proxy(P,{get(N,z,$){return rh(`Property '${String(z)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(N,z,$)}}):P;_=Yt(u.call(C,P,c,Ae.NODE_ENV!=="production"?dn(f):f,p,h,y)),V=a}else{const P=e;Ae.NODE_ENV,_=Yt(P.length>1?P(Ae.NODE_ENV!=="production"?dn(f):f,Ae.NODE_ENV!=="production"?{get attrs(){return dn(a)},slots:r,emit:l}:{attrs:a,slots:r,emit:l}):P(Ae.NODE_ENV!=="production"?dn(f):f,null)),V=e.props?a:nd(a)}}catch(P){Es.length=0,yn(P,t,1),_=et(Tt)}let L=_;if(V&&b!==!1){const P=Object.keys(V),{shapeFlag:C}=L;P.length&&C&7&&(o&&P.some(ti)&&(V=id(V,o)),L=he(L,V,!1,!0))}return s.dirs&&(L=he(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(s.dirs):s.dirs),s.transition&&ws(L,s.transition),_=L,bn(A),_}const nd=t=>{let e;for(const s in t)(s==="class"||s==="style"||nn(s))&&((e||(e={}))[s]=t[s]);return e},id=(t,e)=>{const s={};for(const n in t)(!ti(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function od(t,e,s){const{props:n,children:i,component:o}=t,{props:r,children:a,patchFlag:l}=e,u=o.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&l>=0){if(l&1024)return!0;if(l&16)return n?va(n,r,u):!!r;if(l&8){const c=e.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(r[h]!==n[h]&&!Cn(u,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===r?!1:n?r?va(n,r,u):!0:!!r;return!1}function va(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let i=0;i<n.length;i++){const o=n[i];if(e[o]!==t[o]&&!Cn(s,o))return!0}return!1}function rd({vnode:t,parent:e},s){for(;e;){const n=e.subTree;if(n.suspense&&n.suspense.activeBranch===t&&(n.el=t.el),n===t)(t=e.vnode).el=s,e=e.parent;else break}}const ba=t=>t.__isSuspense;function ad(t,e){e&&e.pendingBranch?U(t)?e.effects.push(...t):e.effects.push(t):ph(t)}const ut=Symbol.for("v-fgt"),En=Symbol.for("v-txt"),Tt=Symbol.for("v-cmt"),Mn=Symbol.for("v-stc"),Es=[];let Lt=null;function I(t=!1){Es.push(Lt=t?null:[])}function ld(){Es.pop(),Lt=Es[Es.length-1]||null}let Ms=1;function _a(t,e=!1){Ms+=t,t<0&&Lt&&e&&(Lt.hasOnce=!0)}function xa(t){return t.dynamicChildren=Ms>0?Lt||Qe:null,ld(),Ms>0&&Lt&&Lt.push(t),t}function H(t,e,s,n,i,o){return xa(g(t,e,s,n,i,o,!0))}function Ft(t,e,s,n,i){return xa(et(t,e,s,n,i,!0))}function Vs(t){return t?t.__v_isVNode===!0:!1}function He(t,e){return t.type===e.type&&t.key===e.key}const Sa=({key:t})=>t??null,Vn=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?ct(t)||yt(t)||W(t)?{i:St,r:t,k:e,f:!!s}:t:null);function g(t,e=null,s=null,n=0,i=null,o=t===ut?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Sa(e),ref:e&&Vn(e),scopeId:Rr,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:St};return a?(ji(l,s),o&128&&t.normalize(l)):s&&(l.shapeFlag|=ct(s)?8:16),Ms>0&&!r&&Lt&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Lt.push(l),l}const et=cd;function cd(t,e=null,s=null,n=0,i=null,o=!1){if((!t||t===Gr)&&(t=Tt),Vs(t)){const a=he(t,e,!0);return s&&ji(a,s),Ms>0&&!o&&Lt&&(a.shapeFlag&6?Lt[Lt.indexOf(t)]=a:Lt.push(a)),a.patchFlag=-2,a}if(_d(t)&&(t=t.__vccOpts),e){e=ud(e);let{class:a,style:l}=e;a&&!ct(a)&&(e.class=Pt(a)),lt(l)&&(bi(l)&&!U(l)&&(l=gt({},l)),e.style=oi(l))}const r=ct(t)?1:ba(t)?128:Lr(t)?64:lt(t)?4:W(t)?2:0;return g(t,e,s,n,i,r,o,!0)}function ud(t){return t?bi(t)||ia(t)?gt({},t):t:null}function he(t,e,s=!1,n=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=t,u=e?Ta(i||{},e):i,c={__v_isVNode:!0,__v_skip:!0,type:t.type,props:u,key:u&&Sa(u),ref:e&&e.ref?s&&o?U(o)?o.concat(Vn(e)):[o,Vn(e)]:Vn(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ut?r===-1?16:r|16:r,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:l,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&he(t.ssContent),ssFallback:t.ssFallback&&he(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return l&&n&&ws(c,l.clone(c)),c}function $i(t=" ",e=0){return et(En,null,t,e)}function fd(t,e){const s=et(Mn,null,t);return s.staticCount=e,s}function Ut(t="",e=!1){return e?(I(),Ft(Tt,null,t)):et(Tt,null,t)}function Yt(t){return t==null||typeof t=="boolean"?et(Tt):U(t)?et(ut,null,t.slice()):Vs(t)?Me(t):et(En,null,String(t))}function Me(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:he(t)}function ji(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(U(e))s=16;else if(typeof e=="object")if(n&65){const i=e.default;i&&(i._c&&(i._d=!1),ji(t,i()),i._c&&(i._d=!0));return}else{s=32;const i=e._;!i&&!ia(e)?e._ctx=St:i===3&&St&&(St.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else W(e)?(e={default:e,_ctx:St},s=32):(e=String(e),n&64?(s=16,e=[$i(e)]):s=8);t.children=e,t.shapeFlag|=s}function Ta(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const i in n)if(i==="class")e.class!==n.class&&(e.class=Pt([e.class,n.class]));else if(i==="style")e.style=oi([e.style,n.style]);else if(nn(i)){const o=e[i],r=n[i];r&&o!==r&&!(U(o)&&o.includes(r))&&(e[i]=o?[].concat(o,r):r)}else i!==""&&(e[i]=n[i])}return e}function Xt(t,e,s,n=null){zt(t,e,7,[s,n])}const hd=ea();let dd=0;function pd(t,e,s){const n=t.type,i=(e?e.appContext:t.appContext)||hd,o={uid:dd++,vnode:t,type:n,parent:e,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Df(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(i.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ra(n,i),emitsOptions:ga(n,i),emit:null,emitted:null,propsDefaults:it,inheritAttrs:n.inheritAttrs,ctx:it,data:it,props:it,attrs:it,slots:it,refs:it,setupState:it,setupContext:null,suspense:s,suspenseId:s?s.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=e?e.root:o,o.emit=sd.bind(null,o),t.ce&&t.ce(o),o}let mt=null;const Bi=()=>mt||St;let Dn,Ni;{const t=ln(),e=(s,n)=>{let i;return(i=t[s])||(i=t[s]=[]),i.push(n),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Dn=e("__VUE_INSTANCE_SETTERS__",s=>mt=s),Ni=e("__VUE_SSR_SETTERS__",s=>Os=s)}const Ds=t=>{const e=mt;return Dn(t),t.scope.on(),()=>{t.scope.off(),Dn(e)}},wa=()=>{mt&&mt.scope.off(),Dn(null)};function Aa(t){return t.vnode.shapeFlag&4}let Os=!1;function md(t,e=!1,s=!1){e&&Ni(e);const{props:n,children:i}=t.vnode,o=Aa(t);kh(t,n,o,e),Wh(t,i,s);const r=o?gd(t,e):void 0;return e&&Ni(!1),r}function gd(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,Dh);const{setup:n}=s;if(n){ae();const i=t.setupContext=n.length>1?Ea(t):null,o=Ds(t),r=is(n,t,0,[t.props,i]),a=Jo(r);if(le(),o(),(a||t.sp)&&!as(t)&&kr(t),a){if(r.then(wa,wa),e)return r.then(l=>{Pa(t,l)}).catch(l=>{yn(l,t,0)});t.asyncDep=r}else Pa(t,r)}else Ca(t)}function Pa(t,e,s){W(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:lt(e)&&(t.setupState=Pr(e)),Ca(t)}function Ca(t,e,s){const n=t.type;t.render||(t.render=n.render||Wt);{const i=Ds(t);ae();try{Lh(t)}finally{le(),i()}}}const yd={get(t,e){return _t(t,"get",""),t[e]}};function Ea(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,yd),slots:t.slots,emit:t.emit,expose:e}}function ki(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(Pr(Jf(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in As)return As[s](t)},has(e,s){return s in e||s in As}})):t.proxy}const vd=/(?:^|[-_])(\w)/g,bd=t=>t.replace(vd,e=>e.toUpperCase()).replace(/[-_]/g,"");function Ma(t,e=!0){return W(t)?t.displayName||t.name:t.name||e&&t.__name}function Va(t,e,s=!1){let n=Ma(e);if(!n&&e.__file){const i=e.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&t&&t.parent){const i=o=>{for(const r in o)if(o[r]===e)return r};n=i(t.components||t.parent.type.components)||i(t.appContext.components)}return n?bd(n):s?"App":"Anonymous"}function _d(t){return W(t)&&"__vccOpts"in t}const Mt=(t,e)=>nh(t,e,Os);function Ui(t,e,s){const n=arguments.length;return n===2?lt(e)&&!U(e)?Vs(e)?et(t,null,[e]):et(t,e):et(t,null,e):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&Vs(s)&&(s=[s]),et(t,e,s))}const xd="3.5.13";let Hi;const Da=typeof window<"u"&&window.trustedTypes;if(Da)try{Hi=Da.createPolicy("vue",{createHTML:t=>t})}catch{}const Oa=Hi?t=>Hi.createHTML(t):t=>t,Sd="http://www.w3.org/2000/svg",Td="http://www.w3.org/1998/Math/MathML",de=typeof document<"u"?document:null,Ra=de&&de.createElement("template"),wd={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const i=e==="svg"?de.createElementNS(Sd,t):e==="mathml"?de.createElementNS(Td,t):s?de.createElement(t,{is:s}):de.createElement(t);return t==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:t=>de.createTextNode(t),createComment:t=>de.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>de.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,i,o){const r=s?s.previousSibling:e.lastChild;if(i&&(i===o||i.nextSibling))for(;e.insertBefore(i.cloneNode(!0),s),!(i===o||!(i=i.nextSibling)););else{Ra.innerHTML=Oa(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const a=Ra.content;if(n==="svg"||n==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}e.insertBefore(a,s)}return[r?r.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},Ve="transition",Rs="animation",Ls=Symbol("_vtc"),La={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ad=gt({},Fr,La),Pd=(t=>(t.displayName="Transition",t.props=Ad,t))((t,{slots:e})=>Ui(vh,Cd(t),e)),Ke=(t,e=[])=>{U(t)?t.forEach(s=>s(...e)):t&&t(...e)},Fa=t=>t?U(t)?t.some(e=>e.length>1):t.length>1:!1;function Cd(t){const e={};for(const F in t)F in La||(e[F]=t[F]);if(t.css===!1)return e;const{name:s="v",type:n,duration:i,enterFromClass:o=`${s}-enter-from`,enterActiveClass:r=`${s}-enter-active`,enterToClass:a=`${s}-enter-to`,appearFromClass:l=o,appearActiveClass:u=r,appearToClass:c=a,leaveFromClass:f=`${s}-leave-from`,leaveActiveClass:h=`${s}-leave-active`,leaveToClass:p=`${s}-leave-to`}=t,y=Ed(i),b=y&&y[0],A=y&&y[1],{onBeforeEnter:_,onEnter:V,onEnterCancelled:L,onLeave:P,onLeaveCancelled:C,onBeforeAppear:N=_,onAppear:z=V,onAppearCancelled:$=L}=e,R=(F,st,bt,Qt)=>{F._enterCancelled=Qt,We(F,st?c:a),We(F,st?u:r),bt&&bt()},G=(F,st)=>{F._isLeaving=!1,We(F,f),We(F,p),We(F,h),st&&st()},Y=F=>(st,bt)=>{const Qt=F?z:V,pt=()=>R(st,F,bt);Ke(Qt,[st,pt]),Ia(()=>{We(st,F?l:o),pe(st,F?c:a),Fa(Qt)||$a(st,n,b,pt)})};return gt(e,{onBeforeEnter(F){Ke(_,[F]),pe(F,o),pe(F,r)},onBeforeAppear(F){Ke(N,[F]),pe(F,l),pe(F,u)},onEnter:Y(!1),onAppear:Y(!0),onLeave(F,st){F._isLeaving=!0;const bt=()=>G(F,st);pe(F,f),F._enterCancelled?(pe(F,h),Na()):(Na(),pe(F,h)),Ia(()=>{F._isLeaving&&(We(F,f),pe(F,p),Fa(P)||$a(F,n,A,bt))}),Ke(P,[F,bt])},onEnterCancelled(F){R(F,!1,void 0,!0),Ke(L,[F])},onAppearCancelled(F){R(F,!0,void 0,!0),Ke($,[F])},onLeaveCancelled(F){G(F),Ke(C,[F])}})}function Ed(t){if(t==null)return null;if(lt(t))return[Ki(t.enter),Ki(t.leave)];{const e=Ki(t);return[e,e]}}function Ki(t){return wf(t)}function pe(t,e){e.split(/\s+/).forEach(s=>s&&t.classList.add(s)),(t[Ls]||(t[Ls]=new Set)).add(e)}function We(t,e){e.split(/\s+/).forEach(n=>n&&t.classList.remove(n));const s=t[Ls];s&&(s.delete(e),s.size||(t[Ls]=void 0))}function Ia(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let Md=0;function $a(t,e,s,n){const i=t._endId=++Md,o=()=>{i===t._endId&&n()};if(s!=null)return setTimeout(o,s);const{type:r,timeout:a,propCount:l}=Vd(t,e);if(!r)return n();const u=r+"end";let c=0;const f=()=>{t.removeEventListener(u,h),o()},h=p=>{p.target===t&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},a+1),t.addEventListener(u,h)}function Vd(t,e){const s=window.getComputedStyle(t),n=y=>(s[y]||"").split(", "),i=n(`${Ve}Delay`),o=n(`${Ve}Duration`),r=ja(i,o),a=n(`${Rs}Delay`),l=n(`${Rs}Duration`),u=ja(a,l);let c=null,f=0,h=0;e===Ve?r>0&&(c=Ve,f=r,h=o.length):e===Rs?u>0&&(c=Rs,f=u,h=l.length):(f=Math.max(r,u),c=f>0?r>u?Ve:Rs:null,h=c?c===Ve?o.length:l.length:0);const p=c===Ve&&/\b(transform|all)(,|$)/.test(n(`${Ve}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function ja(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max(...e.map((s,n)=>Ba(s)+Ba(t[n])))}function Ba(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function Na(){return document.body.offsetHeight}function Dd(t,e,s){const n=t[Ls];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const ka=Symbol("_vod"),Od=Symbol("_vsh"),Rd=Symbol(""),Ld=/(^|;)\s*display\s*:/;function Fd(t,e,s){const n=t.style,i=ct(s);let o=!1;if(s&&!i){if(e)if(ct(e))for(const r of e.split(";")){const a=r.slice(0,r.indexOf(":")).trim();s[a]==null&&On(n,a,"")}else for(const r in e)s[r]==null&&On(n,r,"");for(const r in s)r==="display"&&(o=!0),On(n,r,s[r])}else if(i){if(e!==s){const r=n[Rd];r&&(s+=";"+r),n.cssText=s,o=Ld.test(s)}}else e&&t.removeAttribute("style");ka in t&&(t[ka]=o?n.display:"",t[Od]&&(n.display="none"))}const Ua=/\s*!important$/;function On(t,e,s){if(U(s))s.forEach(n=>On(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))t.setProperty(e,s);else{const n=Id(t,e);Ua.test(s)?t.setProperty($e(n),s.replace(Ua,""),"important"):t[n]=s}}const Ha=["Webkit","Moz","ms"],Wi={};function Id(t,e){const s=Wi[e];if(s)return s;let n=Bt(e);if(n!=="filter"&&n in t)return Wi[e]=n;n=an(n);for(let i=0;i<Ha.length;i++){const o=Ha[i]+n;if(o in t)return Wi[e]=o}return e}const Ka="http://www.w3.org/1999/xlink";function Wa(t,e,s,n,i,o=Mf(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(Ka,e.slice(6,e.length)):t.setAttributeNS(Ka,e,s):s==null||o&&!nr(s)?t.removeAttribute(e):t.setAttribute(e,o?"":re(s)?String(s):s)}function Ga(t,e,s,n,i){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Oa(s):s);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,l=s==null?t.type==="checkbox"?"on":"":String(s);(a!==l||!("_value"in t))&&(t.value=l),s==null&&t.removeAttribute(e),t._value=s;return}let r=!1;if(s===""||s==null){const a=typeof t[e];a==="boolean"?s=nr(s):s==null&&a==="string"?(s="",r=!0):a==="number"&&(s=0,r=!0)}try{t[e]=s}catch{}r&&t.removeAttribute(i||e)}function $d(t,e,s,n){t.addEventListener(e,s,n)}function jd(t,e,s,n){t.removeEventListener(e,s,n)}const za=Symbol("_vei");function Bd(t,e,s,n,i=null){const o=t[za]||(t[za]={}),r=o[e];if(n&&r)r.value=n;else{const[a,l]=Nd(e);if(n){const u=o[e]=Hd(n,i);$d(t,a,u,l)}else r&&(jd(t,a,r,l),o[e]=void 0)}}const qa=/(?:Once|Passive|Capture)$/;function Nd(t){let e;if(qa.test(t)){e={};let n;for(;n=t.match(qa);)t=t.slice(0,t.length-n[0].length),e[n[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):$e(t.slice(2)),e]}let Gi=0;const kd=Promise.resolve(),Ud=()=>Gi||(kd.then(()=>Gi=0),Gi=Date.now());function Hd(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;zt(Kd(n,s.value),e,5,[n])};return s.value=t,s.attached=Ud(),s}function Kd(t,e){if(U(e)){const s=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{s.call(t),t._stopped=!0},e.map(n=>i=>!i._stopped&&n&&n(i))}else return e}const Ya=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,Wd=(t,e,s,n,i,o)=>{const r=i==="svg";e==="class"?Dd(t,n,r):e==="style"?Fd(t,s,n):nn(e)?ti(e)||Bd(t,e,s,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):Gd(t,e,n,r))?(Ga(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Wa(t,e,n,r,o,e!=="value")):t._isVueCE&&(/[A-Z]/.test(e)||!ct(n))?Ga(t,Bt(e),n,o,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Wa(t,e,n,r))};function Gd(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Ya(e)&&W(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const i=t.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Ya(e)&&ct(s)?!1:e in t}const zd=gt({patchProp:Wd},wd);let Xa;function qd(){return Xa||(Xa=zh(zd))}const Za=(...t)=>{const e=qd().createApp(...t),{mount:s}=e;return e.mount=n=>{const i=Xd(n);if(!i)return;const o=e._component;!W(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const r=s(i,!1,Yd(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),r},e};function Yd(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function Xd(t){return ct(t)?document.querySelector(t):t}const Zd={class:"slds-p-around_medium slds-theme_shade slds-text-align_center slds-text-body_small slds-mt-auto"},Jd={class:"slds-grid slds-grid_align-spread slds-wrap"},Qd={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},tp={key:0,class:"slds-text-color_weak"},ep={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},sp={class:"slds-text-color_weak"},np={class:"slds-col slds-size_1-of-1 slds-medium-size_1-of-3 slds-p-vertical_x-small"},ip={class:"slds-text-color_weak"},op={__name:"FooterLayout",props:{description:{type:String,default:""},generatedAt:{type:String,default:()=>new Date().toISOString()},schemaCount:{type:Number,default:0}},setup(t){function e(s){return new Date(s).toLocaleString()}return(s,n)=>(I(),H("footer",Zd,[g("div",Jd,[g("div",Qd,[t.description?(I(),H("span",tp,Q(t.description),1)):Ut("",!0)]),g("div",ep,[g("span",sp,Q(t.schemaCount)+" schema"+Q(t.schemaCount!==1?"s":"")+" documented ",1)]),g("div",np,[g("span",ip," Generated at: "+Q(e(t.generatedAt)),1)])])]))}},Ja="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='100'%20width='100'%20viewBox='0%200%201000%201000'%20fill='%23fff'%3e%3cpath%20d='M738%20200H262c-34%200-62%2028-62%2062v476c0%2034%2028%2062%2062%2062h476c34%200%2062-28%2062-62V262c0-34-28-62-62-62zm-455%2062h434c11%200%2021%209%2021%2021v39H262v-39c0-12%209-21%2021-21zm434%20476H283c-11%200-21-9-21-21V382h476v335c0%2012-9%2021-21%2021zM467%20633l-66-66%2066-66c4-4%204-10%200-14l-28-28c-4-4-10-4-14%200l-73%2073-15%2015-13%2013c-2%202-3%205-3%207%200%203%201%205%203%207l102%20102c4%204%2010%204%2014%200l28-28c3-5%203-11-1-15zm210-74-13-13-15-15-73-73c-4-4-10-4-14%200l-28%2028c-4%204-4%2010%200%2014l66%2066-66%2066c-4%204-4%2010%200%2014l28%2028c4%204%2010%204%2014%200l102-102c2-2%203-5%203-7z'/%3e%3c/svg%3e",rp={class:"slds-page-header"},ap={class:"slds-page-header__row"},lp={class:"slds-page-header__col-title"},cp={class:"slds-media"},up={class:"slds-media__body"},fp={class:"slds-page-header__name"},hp={class:"slds-page-header__name-title"},dp=["title"],pp={__name:"HeaderLayout",props:{title:{type:String,default:"JSON Schema Documentation"}},setup(t){return(e,s)=>(I(),H("header",rp,[g("div",ap,[g("div",lp,[g("div",cp,[s[0]||(s[0]=g("div",{class:"slds-media__figure"},[g("span",{class:"slds-icon_container slds-icon-standard-account"},[g("img",{src:Ja,class:"slds-icon slds-icon_small",alt:""})])],-1)),g("div",up,[g("div",fp,[g("div",hp,[g("h1",{class:"slds-page-header__title slds-truncate",title:t.title},Q(t.title),9,dp)])])])])])])]))}},Qa=t=>e=>typeof e=="string"&&e.startsWith(t),zi=Qa("--"),mp=Qa("var(--"),qi=t=>mp(t)?gp.test(t.split("/*")[0].trim()):!1,gp=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Fs={};function tl(t){for(const e in t)Fs[e]=t[e],zi(e)&&(Fs[e].isCSSVariable=!0)}function Is(t,e){const s=typeof t=="string"?`${t}Context`:e,n=Symbol(s);return[r=>{const a=Cs(n,r);if(a||a===null)return a;throw new Error(`Injection \`${n.toString()}\` not found. Component must be used within ${Array.isArray(t)?`one of the following components: ${t.join(", ")}`:`\`${t}\``}`)},r=>(Oi(n,r),r)]}const[yp,vp]=Is("Motion"),[bp,__]=Is("LayoutGroup");function el(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}class me{constructor(e){this.state=e}beforeMount(){}mount(){}unmount(){}update(){}beforeUpdate(){}beforeUnmount(){}}function $s(t,e,s){if(Array.isArray(t))return t.reduce((n,i)=>{const o=$s(i,e,s);return o?{...n,...o}:n},{});if(typeof t=="object")return t;if(t&&e){const n=e[t];return typeof n=="function"?n(s):n}}function _p(t,e){return typeof t!=typeof e?!0:Array.isArray(t)&&Array.isArray(e)?!xp(t,e):t!==e}function xp(t,e){const s=e.length;if(s!==t.length)return!1;for(let n=0;n<s;n++)if(e[n]!==t[n])return!1;return!0}function sl(t){return t==null?void 0:t.startsWith("--")}const Sp=t=>t;function Tp(t){return typeof t=="number"}const wp=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],Ap=new Set(wp);function nl(t){return Ap.has(t)}function Pp(t,e){const s=t.animate,n=e.animate;if(s===n)return!1;if(!s||!n)return!0;if(typeof s=="object"||typeof n=="object"){const i=Object.keys(s),o=Object.keys(n);return i.length!==o.length?!0:i.some(r=>{if(r==="transition")return!1;const a=s[r],l=n[r];return a!==l})}return s!==n}class Cp{constructor(e){this.features=[];const{features:s=[],lazyMotionContext:n}=e.options,i=s.concat(n.features.value);this.features=i.map(r=>new r(e));const o=this.features;Pn(n.features,r=>{r.forEach(a=>{if(!i.includes(a)){i.push(a);const l=new a(e);o.push(l),e.isMounted()&&(l.beforeMount(),l.mount())}})},{flush:"pre"})}mount(){this.features.forEach(e=>e.mount())}beforeMount(){this.features.forEach(e=>{var s;return(s=e.beforeMount)==null?void 0:s.call(e)})}unmount(){this.features.forEach(e=>e.unmount())}update(){this.features.forEach(e=>{var s;return(s=e.update)==null?void 0:s.call(e)})}beforeUpdate(){this.features.forEach(e=>e.beforeUpdate())}beforeUnmount(){this.features.forEach(e=>e.beforeUnmount())}}const Yi=new WeakMap,[Ep,x_]=Is("AnimatePresenceContext");function Mp(t){return typeof t=="string"||t===!1||Array.isArray(t)}const Vt=t=>t;let il=Vt;const Rn=["read","resolveKeyframes","update","preRender","render","postRender"];function Vp(t,e){let s=new Set,n=new Set,i=!1,o=!1;const r=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){r.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,f=!1,h=!1)=>{const y=h&&i?s:n;return f&&r.add(c),y.has(c)||y.add(c),c},cancel:c=>{n.delete(c),r.delete(c)},process:c=>{if(a=c,i){o=!0;return}i=!0,[s,n]=[n,s],s.forEach(l),s.clear(),i=!1,o&&(o=!1,u.process(c))}};return u}const Dp=40;function ol(t,e){let s=!1,n=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>s=!0,r=Rn.reduce((_,V)=>(_[V]=Vp(o),_),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:h}=r,p=()=>{const _=performance.now();s=!1,i.delta=n?1e3/60:Math.max(Math.min(_-i.timestamp,Dp),1),i.timestamp=_,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),f.process(i),h.process(i),i.isProcessing=!1,s&&e&&(n=!1,t(p))},y=()=>{s=!0,n=!0,i.isProcessing||t(p)};return{schedule:Rn.reduce((_,V)=>{const L=r[V];return _[V]=(P,C=!1,N=!1)=>(s||y(),L.schedule(P,C,N)),_},{}),cancel:_=>{for(let V=0;V<Rn.length;V++)r[Rn[V]].cancel(_)},state:i,steps:r}}const{schedule:rt,cancel:ge,state:vt,steps:Xi}=ol(typeof requestAnimationFrame<"u"?requestAnimationFrame:Vt,!0),rl=new WeakMap;let Op=0;const Zi=new Set;class Rp{constructor(e,s){var n;this.element=null,this.isSafeToRemove=!1,this.isVShow=!1,this.children=new Set,this.activeStates={initial:!0,animate:!0},this.currentProcess=null,this._context=null,this.animateUpdates=Vt,this.id=`motion-state-${Op++}`,this.options=e,this.parent=s,(n=s==null?void 0:s.children)==null||n.add(this),this.depth=(s==null?void 0:s.depth)+1||0;const o=(e.initial===void 0&&e.variants?this.context.initial:e.initial)===!1?["initial","animate"]:["initial"];this.initTarget(o),this.featureManager=new Cp(this),this.type=nl(this.options.as)?"svg":"html"}get context(){if(!this._context){const e={get:(s,n)=>{var i;return Mp(this.options[n])?this.options[n]:(i=this.parent)==null?void 0:i.context[n]}};this._context=new Proxy({},e)}return this._context}initTarget(e){this.baseTarget=e.reduce((s,n)=>({...s,...$s(this.options[n]||this.context[n],this.options.variants)}),{}),this.target={}}updateOptions(){var e;(e=this.visualElement)==null||e.update({...this.options,whileTap:this.options.whilePress,reducedMotionConfig:this.options.motionConfig.reduceMotion},{isPresent:!Yi.has(this.element)})}beforeMount(){this.featureManager.beforeMount()}mount(e,s,n=!1){var i;this.element=e,this.options=s,this.updateOptions(),this.featureManager.mount(),!n&&this.options.animate&&(this.type==="svg"&&this.visualElement.updateDimensions(),(i=this.startAnimation)==null||i.call(this)),this.options.layoutId&&(Zi.add(this.options.layoutId),rt.render(()=>{Zi.clear()}))}clearAnimation(){var e,s;this.currentProcess&&ge(this.currentProcess),this.currentProcess=null,(s=(e=this.visualElement)==null?void 0:e.variantChildren)==null||s.forEach(n=>{n.state.clearAnimation()})}startAnimation(){this.clearAnimation(),this.currentProcess=rt.render(()=>{this.currentProcess=null,this.animateUpdates()})}beforeUnmount(){this.featureManager.beforeUnmount()}unmount(e=!1){const s=this.options.layoutId&&!Zi.has(this.options.layoutId);(()=>{e&&Array.from(this.children).reverse().forEach(this.unmountChild);const i=()=>{var o,r,a;(r=(o=this.parent)==null?void 0:o.children)==null||r.delete(this),rl.delete(this.element),this.featureManager.unmount(),(a=this.visualElement)==null||a.unmount()};s?Promise.resolve().then(i):i()})()}unmountChild(e){e.unmount(!0)}beforeUpdate(){this.featureManager.beforeUpdate()}update(e){const s=Pp(this.options,e);this.options=e,this.updateOptions(),this.featureManager.update(),s&&this.startAnimation()}setActive(e,s,n=!0){var i;!this.element||this.activeStates[e]===s||(this.activeStates[e]=s,(i=this.visualElement.variantChildren)==null||i.forEach(o=>{o.state.setActive(e,s,!1)}),n&&this.animateUpdates({isFallback:!s&&e!=="exit"&&this.visualElement.isControllingVariants,isExit:e==="exit"&&this.activeStates.exit}))}isMounted(){return!!this.element}willUpdate(e){var s;(this.options.layout||this.options.layoutId)&&((s=this.visualElement.projection)==null||s.willUpdate())}}const Ge=new WeakMap;function al(t,e,s){return new CustomEvent(t,{detail:{target:e,isExit:s}})}const ll={syntax:"<angle>",initialValue:"0deg",toDefaultUnit:t=>`${t}deg`},Lp={translate:{syntax:"<length-percentage>",initialValue:"0px",toDefaultUnit:t=>`${t}px`},rotate:ll,scale:{syntax:"<number>",initialValue:1,toDefaultUnit:Sp},skew:ll},Fp=["translate","scale","rotate","skew"],Ip=["","X","Y","Z"],Ji=new Map,Ln=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];Fp.forEach(t=>{Ip.forEach(e=>{Ln.push(t+e),Ji.set(t+e,Lp[t])})});const $p=new Set(Ln),jp=t=>$p.has(t),cl={x:"translateX",y:"translateY",z:"translateZ"};function Bp([t],[e]){return Ln.indexOf(t)-Ln.indexOf(e)}function Np(t,[e,s]){return`${t} ${e}(${s})`}function kp(t){return t.sort(Bp).reduce(Np,"").trim()}const ul={translate:[0,0],rotate:0,scale:1,skew:0,x:0,y:0,z:0};function fl(t){return{test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}}const Up=fl("%"),Qi=fl("px");function Fn(t){return!!(t&&t.getVelocity)}const Hp={get:(t,e)=>{let s=sl(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!s&&s!=="0"){const n=Ji.get(e);n&&(s=n.initialValue)}return s},set:(t,e,s)=>{sl(e)?t.style.setProperty(e,s):t.style[e]=s}};function Kp(t){var e;const s={},n=[];for(let i in t){let o=t[i];o=Fn(o)?o.get():o,jp(i)&&i in cl&&(i=cl[i]);let r=Array.isArray(o)?o[0]:o;const a=Ji.get(i);a?(r=Tp(o)?(e=a.toDefaultUnit)==null?void 0:e.call(a,o):o,n.push([i,r])):s[i]=r}return n.length&&(s.transform=kp(n)),Object.keys(s).length===0?null:s}const Wp={fill:!0,stroke:!0,opacity:!0,"stroke-width":!0,"fill-opacity":!0,"stroke-opacity":!0,"stroke-linecap":!0,"stroke-linejoin":!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,cx:!0,cy:!0,r:!0,d:!0,x1:!0,y1:!0,x2:!0,y2:!0,points:!0,"path-length":!0,viewBox:!0,width:!0,height:!0,"preserve-aspect-ratio":!0,"clip-path":!0,filter:!0,mask:!0,"stop-color":!0,"stop-opacity":!0,"gradient-transform":!0,"gradient-units":!0,"spread-method":!0,"marker-end":!0,"marker-mid":!0,"marker-start":!0,"text-anchor":!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,"font-weight":!0,"letter-spacing":!0,"vector-effect":!0};function Gp(t){return t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function zp(t,e,s=1,n=0){t.pathLength=1,delete t["path-length"],t["stroke-dashoffset"]=Qi.transform(-n);const i=Qi.transform(e),o=Qi.transform(s);t["stroke-dasharray"]=`${i} ${o}`}function qp(t){const e={},s={};for(const n in t){const i=Gp(n);if(i in Wp){const o=t[n];e[i]=Fn(o)?o.get():o}else s[n]=t[n]}return e["path-length"]!==void 0&&zp(e,e["path-length"],e["path-spacing"],e["path-offset"]),{attributes:e,style:s}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const to=t=>typeof t<"u";function Yp({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function Xp(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function Zp(t,e){return Yp(Xp(t.getBoundingClientRect(),e))}const wt=t=>!!(t&&t.getVelocity);function eo(t,e){t.indexOf(e)===-1&&t.push(e)}function In(t,e){const s=t.indexOf(e);s>-1&&t.splice(s,1)}class so{constructor(){this.subscriptions=[]}add(e){return eo(this.subscriptions,e),()=>In(this.subscriptions,e)}notify(e,s,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,s,n);else for(let o=0;o<i;o++){const r=this.subscriptions[o];r&&r(e,s,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Jp={useManualTiming:!1};let $n;function Qp(){$n=void 0}const Zt={now:()=>($n===void 0&&Zt.set(vt.isProcessing||Jp.useManualTiming?vt.timestamp:performance.now()),$n),set:t=>{$n=t,queueMicrotask(Qp)}};function hl(t,e){return e?t*(1e3/e):0}const dl=30,tm=t=>!isNaN(parseFloat(t));class em{constructor(e,s={}){this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,i=!0)=>{const o=Zt.now();this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=s.owner}setCurrent(e){this.current=e,this.updatedAt=Zt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=tm(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,s){this.events[e]||(this.events[e]=new so);const n=this.events[e].add(s);return e==="change"?()=>{n(),rt.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,s){this.passiveEffect=e,this.stopPassiveEffect=s}set(e,s=!0){!s||!this.passiveEffect?this.updateAndNotify(e,s):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,s,n){this.set(s),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,s=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,s&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Zt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dl)return 0;const s=Math.min(this.updatedAt-this.prevUpdatedAt,dl);return hl(parseFloat(this.current)-parseFloat(this.prevFrameValue),s)}start(e){return this.stop(),new Promise(s=>{this.hasAnimated=!0,this.animation=e(s),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function js(t,e){return new em(t,e)}const pl={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"]},no={};for(const t in pl)no[t]={isEnabled:e=>pl[t].some(s=>!!e[s])};const ml=()=>({translate:0,scale:1,origin:0,originPoint:0}),cs=()=>({x:ml(),y:ml()}),gl=()=>({min:0,max:0}),ht=()=>({x:gl(),y:gl()}),yl=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),vl=t=>/^0[^.\s]+$/u.test(t),sm=typeof window<"u",io={current:null},bl={current:!1};function nm(){if(bl.current=!0,!!sm)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>io.current=t.matches;t.addListener(e),e()}else io.current=!1}const De=(t,e,s)=>s>e?e:s<t?t:s,us={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},Bs={...us,transform:t=>De(0,1,t)},jn={...us,default:1},Ns=t=>Math.round(t*1e5)/1e5,oo=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function im(t){return t==null}const om=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ro=(t,e)=>s=>!!(typeof s=="string"&&om.test(s)&&s.startsWith(t)||e&&!im(s)&&Object.prototype.hasOwnProperty.call(s,e)),_l=(t,e,s)=>n=>{if(typeof n!="string")return n;const[i,o,r,a]=n.match(oo);return{[t]:parseFloat(i),[e]:parseFloat(o),[s]:parseFloat(r),alpha:a!==void 0?parseFloat(a):1}},rm=t=>De(0,255,t),ao={...us,transform:t=>Math.round(rm(t))},ze={test:ro("rgb","red"),parse:_l("red","green","blue"),transform:({red:t,green:e,blue:s,alpha:n=1})=>"rgba("+ao.transform(t)+", "+ao.transform(e)+", "+ao.transform(s)+", "+Ns(Bs.transform(n))+")"};function am(t){let e="",s="",n="",i="";return t.length>5?(e=t.substring(1,3),s=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),s=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,s+=s,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(s,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const lo={test:ro("#"),parse:am,transform:ze.transform},ks=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Oe=ks("deg"),ye=ks("%"),B=ks("px"),lm=ks("vh"),cm=ks("vw"),xl={...ye,parse:t=>ye.parse(t)/100,transform:t=>ye.transform(t*100)},fs={test:ro("hsl","hue"),parse:_l("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:s,alpha:n=1})=>"hsla("+Math.round(t)+", "+ye.transform(Ns(e))+", "+ye.transform(Ns(s))+", "+Ns(Bs.transform(n))+")"},At={test:t=>ze.test(t)||lo.test(t)||fs.test(t),parse:t=>ze.test(t)?ze.parse(t):fs.test(t)?fs.parse(t):lo.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ze.transform(t):fs.transform(t)},um=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function fm(t){var e,s;return isNaN(t)&&typeof t=="string"&&(((e=t.match(oo))===null||e===void 0?void 0:e.length)||0)+(((s=t.match(um))===null||s===void 0?void 0:s.length)||0)>0}const Sl="number",Tl="color",hm="var",dm="var(",wl="${}",pm=/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 Us(t){const e=t.toString(),s=[],n={color:[],number:[],var:[]},i=[];let o=0;const a=e.replace(pm,l=>(At.test(l)?(n.color.push(o),i.push(Tl),s.push(At.parse(l))):l.startsWith(dm)?(n.var.push(o),i.push(hm),s.push(l)):(n.number.push(o),i.push(Sl),s.push(parseFloat(l))),++o,wl)).split(wl);return{values:s,split:a,indexes:n,types:i}}function Al(t){return Us(t).values}function Pl(t){const{split:e,types:s}=Us(t),n=e.length;return i=>{let o="";for(let r=0;r<n;r++)if(o+=e[r],i[r]!==void 0){const a=s[r];a===Sl?o+=Ns(i[r]):a===Tl?o+=At.transform(i[r]):o+=i[r]}return o}}const mm=t=>typeof t=="number"?0:t;function gm(t){const e=Al(t);return Pl(t)(e.map(mm))}const Re={test:fm,parse:Al,createTransformer:Pl,getAnimatableNone:gm},ym=new Set(["brightness","contrast","saturate","opacity"]);function vm(t){const[e,s]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=s.match(oo)||[];if(!n)return t;const i=s.replace(n,"");let o=ym.has(e)?1:0;return n!==s&&(o*=100),e+"("+o+i+")"}const bm=/\b([a-z-]*)\(.*?\)/gu,co={...Re,getAnimatableNone:t=>{const e=t.match(bm);return e?e.map(vm).join(" "):t}},_m={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,radius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,backgroundPositionX:B,backgroundPositionY:B},xm={rotate:Oe,rotateX:Oe,rotateY:Oe,rotateZ:Oe,scale:jn,scaleX:jn,scaleY:jn,scaleZ:jn,skew:Oe,skewX:Oe,skewY:Oe,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:Bs,originX:xl,originY:xl,originZ:B},Cl={...us,transform:Math.round},uo={..._m,...xm,zIndex:Cl,size:B,fillOpacity:Bs,strokeOpacity:Bs,numOctaves:Cl},Sm={...uo,color:At,backgroundColor:At,outlineColor:At,fill:At,stroke:At,borderColor:At,borderTopColor:At,borderRightColor:At,borderBottomColor:At,borderLeftColor:At,filter:co,WebkitFilter:co},El=t=>Sm[t];function Ml(t,e){let s=El(t);return s!==co&&(s=Re),s.getAnimatableNone?s.getAnimatableNone(e):void 0}const Vl=t=>e=>e.test(t),Dl=[us,B,ye,Oe,cm,lm,{test:t=>t==="auto",parse:t=>t}],Ol=t=>Dl.find(Vl(t)),Tm=[...Dl,At,Re],wm=t=>Tm.find(Vl(t)),hs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ds=new Set(hs);function Am(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Pm(t){return typeof t=="string"||Array.isArray(t)}const Cm=["initial",...["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"]];function Rl(t){return Am(t.animate)||Cm.some(e=>Pm(t[e]))}function Em(t){return!!(Rl(t)||t.variants)}const qe=t=>t*180/Math.PI,fo=t=>{const e=qe(Math.atan2(t[1],t[0]));return ho(e)},Mm={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:fo,rotateZ:fo,skewX:t=>qe(Math.atan(t[1])),skewY:t=>qe(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},ho=t=>(t=t%360,t<0&&(t+=360),t),Ll=fo,Fl=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Il=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Vm={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fl,scaleY:Il,scale:t=>(Fl(t)+Il(t))/2,rotateX:t=>ho(qe(Math.atan2(t[6],t[5]))),rotateY:t=>ho(qe(Math.atan2(-t[2],t[0]))),rotateZ:Ll,rotate:Ll,skewX:t=>qe(Math.atan(t[4])),skewY:t=>qe(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function $l(t){return t.includes("scale")?1:0}function po(t,e){if(!t||t==="none")return $l(e);const s=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let n,i;if(s)n=Vm,i=s;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=Mm,i=a}if(!i)return $l(e);const o=n[e],r=i[1].split(",").map(Om);return typeof o=="function"?o(r):r[o]}const Dm=(t,e)=>{const{transform:s="none"}=getComputedStyle(t);return po(s,e)};function Om(t){return parseFloat(t.trim())}const jl=t=>t===us||t===B,Rm=new Set(["x","y","z"]),Lm=hs.filter(t=>!Rm.has(t));function Fm(t){const e=[];return Lm.forEach(s=>{const n=t.getValue(s);n!==void 0&&(e.push([s,n.get()]),n.set(s.startsWith("scale")?1:0))}),e}const ps={width:({x:t},{paddingLeft:e="0",paddingRight:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),height:({y:t},{paddingTop:e="0",paddingBottom:s="0"})=>t.max-t.min-parseFloat(e)-parseFloat(s),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>po(e,"x"),y:(t,{transform:e})=>po(e,"y")};ps.translateX=ps.x,ps.translateY=ps.y;const Ye=new Set;let mo=!1,go=!1;function Bl(){if(go){const t=Array.from(Ye).filter(n=>n.needsMeasurement),e=new Set(t.map(n=>n.element)),s=new Map;e.forEach(n=>{const i=Fm(n);i.length&&(s.set(n,i),n.render())}),t.forEach(n=>n.measureInitialState()),e.forEach(n=>{n.render();const i=s.get(n);i&&i.forEach(([o,r])=>{var a;(a=n.getValue(o))===null||a===void 0||a.set(r)})}),t.forEach(n=>n.measureEndState()),t.forEach(n=>{n.suspendedScrollY!==void 0&&window.scrollTo(0,n.suspendedScrollY)})}go=!1,mo=!1,Ye.forEach(t=>t.complete()),Ye.clear()}function Nl(){Ye.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(go=!0)})}function Im(){Nl(),Bl()}class yo{constructor(e,s,n,i,o,r=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=s,this.name=n,this.motionValue=i,this.element=o,this.isAsync=r}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ye.add(this),mo||(mo=!0,rt.read(Nl),rt.resolveKeyframes(Bl))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:s,element:n,motionValue:i}=this;for(let o=0;o<e.length;o++)if(e[o]===null)if(o===0){const r=i==null?void 0:i.get(),a=e[e.length-1];if(r!==void 0)e[0]=r;else if(n&&s){const l=n.readValue(s,a);l!=null&&(e[0]=l)}e[0]===void 0&&(e[0]=a),i&&r===void 0&&i.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ye.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ye.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}function $m(t,e,s){for(const n in e){const i=e[n],o=s[n];if(wt(i))t.addValue(n,i);else if(wt(o))t.addValue(n,js(i,{owner:t}));else if(o!==i)if(t.hasValue(n)){const r=t.getValue(n);r.liveStyle===!0?r.jump(i):r.hasAnimated||r.set(i)}else{const r=t.getStaticValue(n);t.addValue(n,js(r!==void 0?r:i,{owner:t}))}}for(const n in s)e[n]===void 0&&t.removeValue(n);return e}function kl(t){const e=[{},{}];return t==null||t.values.forEach((s,n)=>{e[0][n]=s.get(),e[1][n]=s.getVelocity()}),e}function Ul(t,e,s,n){if(typeof e=="function"){const[i,o]=kl(n);e=e(s!==void 0?s:t.custom,i,o)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,o]=kl(n);e=e(s!==void 0?s:t.custom,i,o)}return e}const Hl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Kl{scrapeMotionValuesFromProps(e,s,n){return{}}constructor({parent:e,props:s,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:o,visualState:r},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yo,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=Zt.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,rt.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=r;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=s.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=s,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=Rl(s),this.isVariantNode=Em(s),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(s,{},this);for(const p in h){const y=h[p];l[p]!==void 0&&wt(y)&&y.set(l[p],!1)}}mount(e){this.current=e,Ge.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,n)=>this.bindToMotionValue(n,s)),bl.current||nm(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:io.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ge(this.notifyUpdate),ge(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}bindToMotionValue(e,s){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=ds.has(e);n&&this.onBindTransform&&this.onBindTransform();const i=s.on("change",a=>{this.latestValues[e]=a,this.props.onUpdate&&rt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=s.on("renderRequest",this.scheduleRender);let r;window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,s)),this.valueSubscriptions.set(e,()=>{i(),o(),r&&r(),s.owner&&s.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in no){const s=no[e];if(!s)continue;const{isEnabled:n,Feature:i}=s;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){const o=this.features[e];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ht()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,s){this.latestValues[e]=s}update(e,s){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=s;for(let n=0;n<Hl.length;n++){const i=Hl[n];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,r=e[o];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=$m(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const s=this.getClosestVariantNode();if(s)return s.variantChildren&&s.variantChildren.add(e),()=>s.variantChildren.delete(e)}addValue(e,s){const n=this.values.get(e);s!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,s),this.values.set(e,s),this.latestValues[e]=s.get())}removeValue(e){this.values.delete(e);const s=this.valueSubscriptions.get(e);s&&(s(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,s){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&s!==void 0&&(n=js(s===null?void 0:s,{owner:this}),this.addValue(e,n)),n}readValue(e,s){var n;let i=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return i!=null&&(typeof i=="string"&&(yl(i)||vl(i))?i=parseFloat(i):!wm(i)&&Re.test(s)&&(i=Ml(e,s)),this.setBaseTarget(e,wt(i)?i.get():i)),wt(i)?i.get():i}setBaseTarget(e,s){this.baseTarget[e]=s}getBaseTarget(e){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const r=Ul(this.props,n,(s=this.presenceContext)===null||s===void 0?void 0:s.custom);r&&(i=r[e])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,e);return o!==void 0&&!wt(o)?o:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,s){return this.events[e]||(this.events[e]=new so),this.events[e].add(s)}notify(e,...s){this.events[e]&&this.events[e].notify(...s)}}function jm(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||vl(t):!0}const Wl=new Set(["width","height","top","left","right","bottom",...hs]),Bm=new Set(["auto","none","0"]);function Nm(t,e,s){let n=0,i;for(;n<t.length&&!i;){const o=t[n];typeof o=="string"&&!Bm.has(o)&&Us(o).values.length&&(i=t[n]),n++}if(i&&s)for(const o of e)t[o]=Ml(s,i)}const km=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Um(t){const e=km.exec(t);if(!e)return[,];const[,s,n,i]=e;return[`--${s??n}`,i]}function Gl(t,e,s=1){const[n,i]=Um(t);if(!n)return;const o=window.getComputedStyle(e).getPropertyValue(n);if(o){const r=o.trim();return yl(r)?parseFloat(r):r}return qi(i)?Gl(i,e,s+1):i}class zl extends yo{constructor(e,s,n,i,o){super(e,s,n,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:s,name:n}=this;if(!s||!s.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let u=e[l];if(typeof u=="string"&&(u=u.trim(),qi(u))){const c=Gl(u,s.current);c!==void 0&&(e[l]=c),l===e.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!Wl.has(n)||e.length!==2)return;const[i,o]=e,r=Ol(i),a=Ol(o);if(r!==a)if(jl(r)&&jl(a))for(let l=0;l<e.length;l++){const u=e[l];typeof u=="string"&&(e[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:s}=this,n=[];for(let i=0;i<e.length;i++)jm(e[i])&&n.push(i);n.length&&Nm(e,n,s)}measureInitialState(){const{element:e,unresolvedKeyframes:s,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ps[n](e.measureViewportBox(),window.getComputedStyle(e.current)),s[0]=this.measuredOrigin;const i=s[s.length-1];i!==void 0&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;const{element:s,name:n,unresolvedKeyframes:i}=this;if(!s||!s.current)return;const o=s.getValue(n);o&&o.jump(this.measuredOrigin,!1);const r=i.length-1,a=i[r];i[r]=ps[n](s.measureViewportBox(),window.getComputedStyle(s.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([l,u])=>{s.getValue(l).set(u)}),this.resolveNoneKeyframes()}}class ql extends Kl{constructor(){super(...arguments),this.KeyframeResolver=zl}sortInstanceNodePosition(e,s){return e.compareDocumentPosition(s)&2?1:-1}getBaseTargetFromProps(e,s){return e.style?e.style[s]:void 0}removeValueFromRenderState(e,{vars:s,style:n}){delete s[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;wt(e)&&(this.childSubscription=e.on("change",s=>{this.current&&(this.current.textContent=`${s}`)}))}}const Yl=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Hm={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Km=hs.length;function Wm(t,e,s){let n="",i=!0;for(let o=0;o<Km;o++){const r=hs[o],a=t[r];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(r.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||s){const u=Yl(a,uo[r]);if(!l){i=!1;const c=Hm[r]||r;n+=`${c}(${u}) `}s&&(e[r]=u)}}return n=n.trim(),s?n=s(e,i?"":n):i&&(n="none"),n}function Xl(t,e,s){const{style:n,vars:i,transformOrigin:o}=t;let r=!1,a=!1;for(const l in e){const u=e[l];if(ds.has(l)){r=!0;continue}else if(zi(l)){i[l]=u;continue}else{const c=Yl(u,uo[l]);l.startsWith("origin")?(a=!0,o[l]=c):n[l]=c}}if(e.transform||(r||s?n.transform=Wm(e,t.transform,s):n.transform&&(n.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=o;n.transformOrigin=`${l} ${u} ${c}`}}function Zl(t,{style:e,vars:s},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const o in s)t.style.setProperty(o,s[o])}function Gm(t,{layout:e,layoutId:s}){return ds.has(t)||t.startsWith("origin")||(e||s!==void 0)&&(!!Fs[t]||t==="opacity")}function Jl(t,e,s){var n;const{style:i}=t,o={};for(const r in i)(wt(i[r])||e.style&&wt(e.style[r])||Gm(r,t)||((n=s==null?void 0:s.getValue(r))===null||n===void 0?void 0:n.liveStyle)!==void 0)&&(o[r]=i[r]);return o}function zm(t){return window.getComputedStyle(t)}class Ql extends ql{constructor(){super(...arguments),this.type="html",this.renderInstance=Zl}readValueFromInstance(e,s){if(ds.has(s))return Dm(e,s);{const n=zm(e),i=(zi(s)?n.getPropertyValue(s):n[s])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:s}){return Zp(e,s)}build(e,s,n){Xl(e,s,n.transformTemplate)}scrapeMotionValuesFromProps(e,s,n){return Jl(e,s,n)}}const vo=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),qm={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ym={offset:"strokeDashoffset",array:"strokeDasharray"};function Xm(t,e,s=1,n=0,i=!0){t.pathLength=1;const o=i?qm:Ym;t[o.offset]=B.transform(-n);const r=B.transform(e),a=B.transform(s);t[o.array]=`${r} ${a}`}function tc(t,e,s){return typeof t=="string"?t:B.transform(e+s*t)}function Zm(t,e,s){const n=tc(e,t.x,t.width),i=tc(s,t.y,t.height);return`${n} ${i}`}function Jm(t,{attrX:e,attrY:s,attrScale:n,originX:i,originY:o,pathLength:r,pathSpacing:a=1,pathOffset:l=0,...u},c,f){if(Xl(t,u,f),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:p,dimensions:y}=t;h.transform&&(y&&(p.transform=h.transform),delete h.transform),y&&(i!==void 0||o!==void 0||p.transform)&&(p.transformOrigin=Zm(y,i!==void 0?i:.5,o!==void 0?o:.5)),e!==void 0&&(h.x=e),s!==void 0&&(h.y=s),n!==void 0&&(h.scale=n),r!==void 0&&Xm(h,r,a,l,!1)}const ec=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"]),Qm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function tg(t,e){try{e.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{e.dimensions={x:0,y:0,width:0,height:0}}}function eg(t,e,s,n){Zl(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(ec.has(i)?i:vo(i),e.attrs[i])}function sg(t,e,s){const n=Jl(t,e,s);for(const i in t)if(wt(t[i])||wt(e[i])){const o=hs.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[o]=t[i]}return n}class sc extends ql{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ht,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&tg(this.current,this.renderState)}}getBaseTargetFromProps(e,s){return e[s]}readValueFromInstance(e,s){if(ds.has(s)){const n=El(s);return n&&n.default||0}return s=ec.has(s)?s:vo(s),e.getAttribute(s)}scrapeMotionValuesFromProps(e,s,n){return sg(e,s,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&rt.postRender(this.updateDimensions)}build(e,s,n){Jm(e,s,this.isSVGTag,n.transformTemplate)}renderInstance(e,s,n,i){eg(e,s,n,i)}mount(e){this.isSVGTag=Qm(e.tagName),super.mount(e)}}function ng(t,e){return nl(t)?new sc(e):new Ql(e)}function bo(t){let e;return()=>(e===void 0&&(e=t()),e)}const ig=bo(()=>window.ScrollTimeline!==void 0);class og{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,s){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=s}attachTimeline(e,s){const n=this.animations.map(i=>{if(ig()&&i.attachTimeline)return i.attachTimeline(e);if(typeof s=="function")return s(i)});return()=>{n.forEach((i,o)=>{i&&i(),this.animations[o].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let s=0;s<this.animations.length;s++)e=Math.max(e,this.animations[s].duration);return e}runAll(e){this.animations.forEach(s=>s[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class nc extends og{then(e,s){return Promise.all(this.animations).then(e).catch(s)}}const ve=t=>t*1e3,be=t=>t/1e3,Bn=2e4;function _o(t){let e=0;const s=50;let n=t.next(e);for(;!n.done&&e<Bn;)e+=s,n=t.next(e);return e>=Bn?1/0:e}const Hs=(t,e,s)=>{const n=e-t;return n===0?1:(s-t)/n},ic=(t,e,s=10)=>{let n="";const i=Math.max(Math.round(e/s),2);for(let o=0;o<i;o++)n+=t(Hs(0,i-1,o))+", ";return`linear(${n.substring(0,n.length-2)})`},rg=5;function oc(t,e,s){const n=Math.max(e-rg,0);return hl(s-t(n),e-n)}const ft={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},rc=.001;function ag({duration:t=ft.duration,bounce:e=ft.bounce,velocity:s=ft.velocity,mass:n=ft.mass}){let i,o,r=1-e;r=De(ft.minDamping,ft.maxDamping,r),t=De(ft.minDuration,ft.maxDuration,be(t)),r<1?(i=u=>{const c=u*r,f=c*t,h=c-s,p=xo(u,r),y=Math.exp(-f);return rc-h/p*y},o=u=>{const f=u*r*t,h=f*s+s,p=Math.pow(r,2)*Math.pow(u,2)*t,y=Math.exp(-f),b=xo(Math.pow(u,2),r);return(-i(u)+rc>0?-1:1)*((h-p)*y)/b}):(i=u=>{const c=Math.exp(-u*t),f=(u-s)*t+1;return-.001+c*f},o=u=>{const c=Math.exp(-u*t),f=(s-u)*(t*t);return c*f});const a=5/t,l=cg(i,o,a);if(t=ve(t),isNaN(l))return{stiffness:ft.stiffness,damping:ft.damping,duration:t};{const u=Math.pow(l,2)*n;return{stiffness:u,damping:r*2*Math.sqrt(n*u),duration:t}}}const lg=12;function cg(t,e,s){let n=s;for(let i=1;i<lg;i++)n=n-t(n)/e(n);return n}function xo(t,e){return t*Math.sqrt(1-e*e)}const ug=["duration","bounce"],fg=["stiffness","damping","mass"];function ac(t,e){return e.some(s=>t[s]!==void 0)}function hg(t){let e={velocity:ft.velocity,stiffness:ft.stiffness,damping:ft.damping,mass:ft.mass,isResolvedFromDuration:!1,...t};if(!ac(t,fg)&&ac(t,ug))if(t.visualDuration){const s=t.visualDuration,n=2*Math.PI/(s*1.2),i=n*n,o=2*De(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:ft.mass,stiffness:i,damping:o}}else{const s=ag(t);e={...e,...s,mass:ft.mass},e.isResolvedFromDuration=!0}return e}function So(t=ft.visualDuration,e=ft.bounce){const s=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:n,restDelta:i}=s;const o=s.keyframes[0],r=s.keyframes[s.keyframes.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:f,velocity:h,isResolvedFromDuration:p}=hg({...s,velocity:-be(s.velocity||0)}),y=h||0,b=u/(2*Math.sqrt(l*c)),A=r-o,_=be(Math.sqrt(l/c)),V=Math.abs(A)<5;n||(n=V?ft.restSpeed.granular:ft.restSpeed.default),i||(i=V?ft.restDelta.granular:ft.restDelta.default);let L;if(b<1){const C=xo(_,b);L=N=>{const z=Math.exp(-b*_*N);return r-z*((y+b*_*A)/C*Math.sin(C*N)+A*Math.cos(C*N))}}else if(b===1)L=C=>r-Math.exp(-_*C)*(A+(y+_*A)*C);else{const C=_*Math.sqrt(b*b-1);L=N=>{const z=Math.exp(-b*_*N),$=Math.min(C*N,300);return r-z*((y+b*_*A)*Math.sinh($)+C*A*Math.cosh($))/C}}const P={calculatedDuration:p&&f||null,next:C=>{const N=L(C);if(p)a.done=C>=f;else{let z=0;b<1&&(z=C===0?ve(y):oc(L,C,N));const $=Math.abs(z)<=n,R=Math.abs(r-N)<=i;a.done=$&&R}return a.value=a.done?r:N,a},toString:()=>{const C=Math.min(_o(P),Bn),N=ic(z=>P.next(C*z).value,C,30);return C+"ms "+N}};return P}function dg(t,e=100,s){const n=s({...t,keyframes:[0,e]}),i=Math.min(_o(n),Bn);return{type:"keyframes",ease:o=>n.next(i*o).value/e,duration:be(i)}}function Nn(t){return typeof t=="function"}const pg=(t,e,s)=>{const n=e-t;return((s-t)%n+n)%n+t},lc=t=>Array.isArray(t)&&typeof t[0]!="number";function cc(t,e){return lc(t)?t[pg(0,t.length,e)]:t}const dt=(t,e,s)=>t+(e-t)*s;function uc(t,e){const s=t[t.length-1];for(let n=1;n<=e;n++){const i=Hs(0,e,n);t.push(dt(s,1,i))}}function fc(t){const e=[0];return uc(e,t.length-1),e}function To(t,e,s){var n;if(t instanceof EventTarget)return[t];if(typeof t=="string"){let i=document;const o=(n=s==null?void 0:s[t])!==null&&n!==void 0?n:i.querySelectorAll(t);return o?Array.from(o):[]}return Array.from(t)}function wo(t){return typeof t=="object"&&!Array.isArray(t)}function hc(t,e,s,n){return typeof t=="string"&&wo(e)?To(t,s,n):t instanceof NodeList?Array.from(t):Array.isArray(t)?t:[t]}function mg(t,e,s){return t*(e+1)}function dc(t,e,s,n){var i;return typeof e=="number"?e:e.startsWith("-")||e.startsWith("+")?Math.max(0,t+parseFloat(e)):e==="<"?s:(i=n.get(e))!==null&&i!==void 0?i:t}function gg(t,e,s){for(let n=0;n<t.length;n++){const i=t[n];i.at>e&&i.at<s&&(In(t,i),n--)}}function yg(t,e,s,n,i,o){gg(t,i,o);for(let r=0;r<e.length;r++)t.push({value:e[r],at:dt(i,o,n[r]),easing:cc(s,r)})}function vg(t,e){for(let s=0;s<t.length;s++)t[s]=t[s]/(e+1)}function bg(t,e){return t.at===e.at?t.value===null?1:e.value===null?-1:0:t.at-e.at}const _g="easeInOut";function xg(t,{defaultTransition:e={},...s}={},n,i){const o=e.duration||.3,r=new Map,a=new Map,l={},u=new Map;let c=0,f=0,h=0;for(let p=0;p<t.length;p++){const y=t[p];if(typeof y=="string"){u.set(y,f);continue}else if(!Array.isArray(y)){u.set(y.name,dc(f,y.at,c,u));continue}let[b,A,_={}]=y;_.at!==void 0&&(f=dc(f,_.at,c,u));let V=0;const L=(P,C,N,z=0,$=0)=>{const R=Sg(P),{delay:G=0,times:Y=fc(R),type:F="keyframes",repeat:st,repeatType:bt,repeatDelay:Qt=0,...pt}=C;let{ease:J=e.ease||"easeOut",duration:q}=C;const te=typeof G=="function"?G(z,$):G,Ze=R.length,ee=Nn(F)?F:i==null?void 0:i[F];if(Ze<=2&&ee){let Je=100;if(Ze===2&&Ag(R)){const Se=R[1]-R[0];Je=Math.abs(Se)}const se={...pt};q!==void 0&&(se.duration=ve(q));const xe=dg(se,Je,ee);J=xe.ease,q=xe.duration}q??(q=o);const It=f+te;Y.length===1&&Y[0]===0&&(Y[1]=1);const tn=Y.length-R.length;if(tn>0&&uc(Y,tn),R.length===1&&R.unshift(null),st){q=mg(q,st);const Je=[...R],se=[...Y];J=Array.isArray(J)?[...J]:[J];const xe=[...J];for(let Se=0;Se<st;Se++){R.push(...Je);for(let Le=0;Le<Je.length;Le++)Y.push(se[Le]+(Se+1)),J.push(Le===0?"linear":cc(xe,Le-1))}vg(Y,st)}const Qn=It+q;yg(N,R,J,Y,It,Qn),V=Math.max(te+q,V),h=Math.max(Qn,h)};if(wt(b)){const P=pc(b,a);L(A,_,mc("default",P))}else{const P=hc(b,A,n,l),C=P.length;for(let N=0;N<C;N++){A=A,_=_;const z=P[N],$=pc(z,a);for(const R in A)L(A[R],Tg(_,R),mc(R,$),N,C)}}c=f,f+=V}return a.forEach((p,y)=>{for(const b in p){const A=p[b];A.sort(bg);const _=[],V=[],L=[];for(let C=0;C<A.length;C++){const{at:N,value:z,easing:$}=A[C];_.push(z),V.push(Hs(0,h,N)),L.push($||"easeOut")}V[0]!==0&&(V.unshift(0),_.unshift(_[0]),L.unshift(_g)),V[V.length-1]!==1&&(V.push(1),_.push(null)),r.has(y)||r.set(y,{keyframes:{},transition:{}});const P=r.get(y);P.keyframes[b]=_,P.transition[b]={...e,duration:h,ease:L,times:V,...s}}}),r}function pc(t,e){return!e.has(t)&&e.set(t,{}),e.get(t)}function mc(t,e){return e[t]||(e[t]=[]),e[t]}function Sg(t){return Array.isArray(t)?t:[t]}function Tg(t,e){return t&&t[e]?{...t,...t[e]}:{...t}}const wg=t=>typeof t=="number",Ag=t=>t.every(wg);function Ao(t,e){return t?t[e]||t.default||t:void 0}const Pg=t=>Array.isArray(t),Cg=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),Eg=t=>Pg(t)?t[t.length-1]||0:t;function Mg(t,e,s){const n=t.getProps();return Ul(n,e,n.custom,t)}function Vg(t,e,s){t.hasValue(e)?t.getValue(e).set(s):t.addValue(e,js(s))}function Dg(t,e){const s=Mg(t,e);let{transitionEnd:n={},transition:i={},...o}=s||{};o={...o,...n};for(const r in o){const a=Eg(o[r]);Vg(t,r,a)}}function Og(t){return!!(wt(t)&&t.add)}function Rg(t,e){const s=t.getValue("willChange");if(Og(s))return s.add(e)}const Lg="data-"+vo("framerAppearId");function gc(t){return t.props[Lg]}function yc(t,e){t.timeline=e,t.onfinish=null}const Po=t=>Array.isArray(t)&&typeof t[0]=="number",Fg={linearEasing:void 0};function Ig(t,e){const s=bo(t);return()=>{var n;return(n=Fg[e])!==null&&n!==void 0?n:s()}}const kn=Ig(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function vc(t){return!!(typeof t=="function"&&kn()||!t||typeof t=="string"&&(t in Co||kn())||Po(t)||Array.isArray(t)&&t.every(vc))}const Ks=([t,e,s,n])=>`cubic-bezier(${t}, ${e}, ${s}, ${n})`,Co={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ks([0,.65,.55,1]),circOut:Ks([.55,0,1,.45]),backIn:Ks([.31,.01,.66,-.59]),backOut:Ks([.33,1.53,.69,.99])};function bc(t,e){if(t)return typeof t=="function"&&kn()?ic(t,e):Po(t)?Ks(t):Array.isArray(t)?t.map(s=>bc(s,e)||Co.easeOut):Co[t]}const _c=(t,e,s)=>(((1-3*s+3*e)*t+(3*s-6*e))*t+3*e)*t,$g=1e-7,jg=12;function Bg(t,e,s,n,i){let o,r,a=0;do r=e+(s-e)/2,o=_c(r,n,i)-t,o>0?s=r:e=r;while(Math.abs(o)>$g&&++a<jg);return r}function Ws(t,e,s,n){if(t===e&&s===n)return Vt;const i=o=>Bg(o,0,1,t,s);return o=>o===0||o===1?o:_c(i(o),e,n)}const xc=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Sc=t=>e=>1-t(1-e),Tc=Ws(.33,1.53,.69,.99),Eo=Sc(Tc),wc=xc(Eo),Ac=t=>(t*=2)<1?.5*Eo(t):.5*(2-Math.pow(2,-10*(t-1))),Mo=t=>1-Math.sin(Math.acos(t)),Pc=Sc(Mo),Cc=xc(Mo),Ec=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Re.test(t)||t==="0")&&!t.startsWith("url("));function Ng(t){const e=t[0];if(t.length===1)return!0;for(let s=0;s<t.length;s++)if(t[s]!==e)return!0}function kg(t,e,s,n){const i=t[0];if(i===null)return!1;if(e==="display"||e==="visibility")return!0;const o=t[t.length-1],r=Ec(i,e),a=Ec(o,e);return!r||!a?!1:Ng(t)||(s==="spring"||Nn(s))&&n}const Ug=t=>t!==null;function Un(t,{repeat:e,repeatType:s="loop"},n){const i=t.filter(Ug),o=e&&s!=="loop"&&e%2===1?0:i.length-1;return!o||n===void 0?i[o]:n}const Hg=40;class Mc{constructor({autoplay:e=!0,delay:s=0,type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:r="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zt.now(),this.options={autoplay:e,delay:s,type:n,repeat:i,repeatDelay:o,repeatType:r,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Hg?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Im(),this._resolved}onKeyframesResolved(e,s){this.resolvedAt=Zt.now(),this.hasAttemptedResolve=!0;const{name:n,type:i,velocity:o,delay:r,onComplete:a,onUpdate:l,isGenerator:u}=this.options;if(!u&&!kg(e,n,i,o))if(r)this.options.duration=0;else{l&&l(Un(e,this.options,s)),a&&a(),this.resolveFinishedPromise();return}const c=this.initPlayback(e,s);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:s,...c},this.onPostResolved())}onPostResolved(){}then(e,s){return this.currentFinishedPromise.then(e,s)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function Vo(t,e,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?t+(e-t)*6*s:s<1/2?e:s<2/3?t+(e-t)*(2/3-s)*6:t}function Kg({hue:t,saturation:e,lightness:s,alpha:n}){t/=360,e/=100,s/=100;let i=0,o=0,r=0;if(!e)i=o=r=s;else{const a=s<.5?s*(1+e):s+e-s*e,l=2*s-a;i=Vo(l,a,t+1/3),o=Vo(l,a,t),r=Vo(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(r*255),alpha:n}}function Hn(t,e){return s=>s>0?e:t}const Do=(t,e,s)=>{const n=t*t,i=s*(e*e-n)+n;return i<0?0:Math.sqrt(i)},Wg=[lo,ze,fs],Gg=t=>Wg.find(e=>e.test(t));function Vc(t){const e=Gg(t);if(!e)return!1;let s=e.parse(t);return e===fs&&(s=Kg(s)),s}const Dc=(t,e)=>{const s=Vc(t),n=Vc(e);if(!s||!n)return Hn(t,e);const i={...s};return o=>(i.red=Do(s.red,n.red,o),i.green=Do(s.green,n.green,o),i.blue=Do(s.blue,n.blue,o),i.alpha=dt(s.alpha,n.alpha,o),ze.transform(i))},zg=(t,e)=>s=>e(t(s)),Gs=(...t)=>t.reduce(zg),Oo=new Set(["none","hidden"]);function qg(t,e){return Oo.has(t)?s=>s<=0?t:e:s=>s>=1?e:t}function Yg(t,e){return s=>dt(t,e,s)}function Ro(t){return typeof t=="number"?Yg:typeof t=="string"?qi(t)?Hn:At.test(t)?Dc:Jg:Array.isArray(t)?Oc:typeof t=="object"?At.test(t)?Dc:Xg:Hn}function Oc(t,e){const s=[...t],n=s.length,i=t.map((o,r)=>Ro(o)(o,e[r]));return o=>{for(let r=0;r<n;r++)s[r]=i[r](o);return s}}function Xg(t,e){const s={...t,...e},n={};for(const i in s)t[i]!==void 0&&e[i]!==void 0&&(n[i]=Ro(t[i])(t[i],e[i]));return i=>{for(const o in n)s[o]=n[o](i);return s}}function Zg(t,e){var s;const n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){const r=e.types[o],a=t.indexes[r][i[r]],l=(s=t.values[a])!==null&&s!==void 0?s:0;n[o]=l,i[r]++}return n}const Jg=(t,e)=>{const s=Re.createTransformer(e),n=Us(t),i=Us(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?Oo.has(t)&&!i.values.length||Oo.has(e)&&!n.values.length?qg(t,e):Gs(Oc(Zg(n,i),i.values),s):Hn(t,e)};function Rc(t,e,s){return typeof t=="number"&&typeof e=="number"&&typeof s=="number"?dt(t,e,s):Ro(t)(t,e)}function Lc({keyframes:t,velocity:e=0,power:s=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:r,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=t[0],h={done:!1,value:f},p=$=>a!==void 0&&$<a||l!==void 0&&$>l,y=$=>a===void 0?l:l===void 0||Math.abs(a-$)<Math.abs(l-$)?a:l;let b=s*e;const A=f+b,_=r===void 0?A:r(A);_!==A&&(b=_-f);const V=$=>-b*Math.exp(-$/n),L=$=>_+V($),P=$=>{const R=V($),G=L($);h.done=Math.abs(R)<=u,h.value=h.done?_:G};let C,N;const z=$=>{p(h.value)&&(C=$,N=So({keyframes:[h.value,y(h.value)],velocity:oc(L,$,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return z(0),{calculatedDuration:null,next:$=>{let R=!1;return!N&&C===void 0&&(R=!0,P($),z($)),C!==void 0&&$>=C?N.next($-C):(!R&&P($),h)}}}const Qg=Ws(.42,0,1,1),ty=Ws(0,0,.58,1),Fc=Ws(.42,0,.58,1),ey={linear:Vt,easeIn:Qg,easeInOut:Fc,easeOut:ty,circIn:Mo,circInOut:Cc,circOut:Pc,backIn:Eo,backInOut:wc,backOut:Tc,anticipate:Ac},Ic=t=>{if(Po(t)){il(t.length===4);const[e,s,n,i]=t;return Ws(e,s,n,i)}else if(typeof t=="string")return ey[t];return t};function sy(t,e,s){const n=[],i=s||Rc,o=t.length-1;for(let r=0;r<o;r++){let a=i(t[r],t[r+1]);if(e){const l=Array.isArray(e)?e[r]||Vt:e;a=Gs(l,a)}n.push(a)}return n}function ny(t,e,{clamp:s=!0,ease:n,mixer:i}={}){const o=t.length;if(il(o===e.length),o===1)return()=>e[0];if(o===2&&e[0]===e[1])return()=>e[1];const r=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=sy(e,n,i),l=a.length,u=c=>{if(r&&c<t[0])return e[0];let f=0;if(l>1)for(;f<t.length-2&&!(c<t[f+1]);f++);const h=Hs(t[f],t[f+1],c);return a[f](h)};return s?c=>u(De(t[0],t[o-1],c)):u}function iy(t,e){return t.map(s=>s*e)}function oy(t,e){return t.map(()=>e||Fc).splice(0,t.length-1)}function Kn({duration:t=300,keyframes:e,times:s,ease:n="easeInOut"}){const i=lc(n)?n.map(Ic):Ic(n),o={done:!1,value:e[0]},r=iy(s&&s.length===e.length?s:fc(e),t),a=ny(r,e,{ease:Array.isArray(i)?i:oy(e,i)});return{calculatedDuration:t,next:l=>(o.value=a(l),o.done=l>=t,o)}}const ry=t=>{const e=({timestamp:s})=>t(s);return{start:()=>rt.update(e,!0),stop:()=>ge(e),now:()=>vt.isProcessing?vt.timestamp:Zt.now()}},ay={decay:Lc,inertia:Lc,tween:Kn,keyframes:Kn,spring:So},ly=t=>t/100;class Lo extends Mc{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:s,motionValue:n,element:i,keyframes:o}=this.options,r=(i==null?void 0:i.KeyframeResolver)||yo,a=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new r(o,a,s,n,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:s="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o,velocity:r=0}=this.options,a=Nn(s)?s:ay[s]||Kn;let l,u;a!==Kn&&typeof e[0]!="number"&&(l=Gs(ly,Rc(e[0],e[1])),e=[0,100]);const c=a({...this.options,keyframes:e});o==="mirror"&&(u=a({...this.options,keyframes:[...e].reverse(),velocity:-r})),c.calculatedDuration===null&&(c.calculatedDuration=_o(c));const{calculatedDuration:f}=c,h=f+i,p=h*(n+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,s=!1){const{resolved:n}=this;if(!n){const{keyframes:$}=this.options;return{done:!0,value:$[$.length-1]}}const{finalKeyframe:i,generator:o,mirroredGenerator:r,mapPercentToKeyframes:a,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=n;if(this.startTime===null)return o.next(0);const{delay:h,repeat:p,repeatType:y,repeatDelay:b,onUpdate:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),s?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const _=this.currentTime-h*(this.speed>=0?1:-1),V=this.speed>=0?_<0:_>c;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let L=this.currentTime,P=o;if(p){const $=Math.min(this.currentTime,c)/f;let R=Math.floor($),G=$%1;!G&&$>=1&&(G=1),G===1&&R--,R=Math.min(R,p+1),!!(R%2)&&(y==="reverse"?(G=1-G,b&&(G-=b/f)):y==="mirror"&&(P=r)),L=De(0,1,G)*f}const C=V?{done:!1,value:l[0]}:P.next(L);a&&(C.value=a(C.value));let{done:N}=C;!V&&u!==null&&(N=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return z&&i!==void 0&&(C.value=Un(l,this.options,i)),A&&A(C.value),z&&this.finish(),C}get duration(){const{resolved:e}=this;return e?be(e.calculatedDuration):0}get time(){return be(this.currentTime)}set time(e){e=ve(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const s=this.playbackSpeed!==e;this.playbackSpeed=e,s&&(this.time=be(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:e=ry,onPlay:s,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),s&&s();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const cy=new Set(["opacity","clipPath","filter","transform"]);function uy(t,e,s,{delay:n=0,duration:i=300,repeat:o=0,repeatType:r="loop",ease:a="easeInOut",times:l}={}){const u={[e]:s};l&&(u.offset=l);const c=bc(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:r==="reverse"?"alternate":"normal"})}const fy=bo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Wn=10,hy=2e4;function dy(t){return Nn(t.type)||t.type==="spring"||!vc(t.ease)}function py(t,e){const s=new Lo({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:t[0]};const i=[];let o=0;for(;!n.done&&o<hy;)n=s.sample(o),i.push(n.value),o+=Wn;return{times:void 0,keyframes:i,duration:o-Wn,ease:"linear"}}const $c={anticipate:Ac,backInOut:wc,circInOut:Cc};function my(t){return t in $c}class jc extends Mc{constructor(e){super(e);const{name:s,motionValue:n,element:i,keyframes:o}=this.options;this.resolver=new zl(o,(r,a)=>this.onKeyframesResolved(r,a),s,n,i),this.resolver.scheduleResolve()}initPlayback(e,s){let{duration:n=300,times:i,ease:o,type:r,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof o=="string"&&kn()&&my(o)&&(o=$c[o]),dy(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:y,...b}=this.options,A=py(e,b);e=A.keyframes,e.length===1&&(e[1]=e[0]),n=A.duration,i=A.times,o=A.ease,r="keyframes"}const c=uy(a.owner.current,l,e,{...this.options,duration:n,times:i,ease:o});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(yc(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;a.set(Un(e,this.options,s)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:r,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:s}=e;return be(s)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:s}=e;return be(s.currentTime||0)}set time(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.currentTime=ve(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:s}=e;return s.playbackRate}set speed(e){const{resolved:s}=this;if(!s)return;const{animation:n}=s;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:s}=e;return s.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:s}=e;return s.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{const{resolved:s}=this;if(!s)return Vt;const{animation:n}=s;yc(n,e)}return Vt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.playState==="finished"&&this.updateFinishedPromise(),s.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:s}=e;s.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:s,keyframes:n,duration:i,type:o,ease:r,times:a}=e;if(s.playState==="idle"||s.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:h,...p}=this.options,y=new Lo({...p,keyframes:n,duration:i,type:o,ease:r,times:a,isGenerator:!0}),b=ve(this.time);u.setWithVelocity(y.sample(b-Wn).value,y.sample(b).value,Wn)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:s,name:n,repeatDelay:i,repeatType:o,damping:r,type:a}=e;if(!s||!s.owner||!(s.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=s.owner.getProps();return fy()&&n&&cy.has(n)&&!l&&!u&&!i&&o!=="mirror"&&r!==0&&a!=="inertia"}}const gy={type:"spring",stiffness:500,damping:25,restSpeed:10},yy=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),vy={type:"keyframes",duration:.8},by={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},_y=(t,{keyframes:e})=>e.length>2?vy:ds.has(t)?t.startsWith("scale")?yy(e[1]):gy:by;function xy({when:t,delay:e,delayChildren:s,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:r,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Fo=(t,e,s,n={},i,o)=>r=>{const a=Ao(n,t)||{},l=a.delay||n.delay||0;let{elapsed:u=0}=n;u=u-ve(l);let c={keyframes:Array.isArray(s)?s:[null,s],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:h=>{e.set(h),a.onUpdate&&a.onUpdate(h)},onComplete:()=>{r(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};xy(a)||(c={...c,..._y(t,c)}),c.duration&&(c.duration=ve(c.duration)),c.repeatDelay&&(c.repeatDelay=ve(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),c.allowFlatten=!a.type&&!a.ease,f&&!o&&e.get()!==void 0){const h=Un(c.keyframes,a);if(h!==void 0)return rt.update(()=>{c.onUpdate(h),c.onComplete()}),new nc([])}return!o&&jc.supports(c)?new jc(c):new Lo(c)};function Sy({protectedKeys:t,needsAnimating:e},s){const n=t.hasOwnProperty(s)&&e[s]!==!0;return e[s]=!1,n}function Ty(t,e,{delay:s=0,transitionOverride:n,type:i}={}){var o;let{transition:r=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(r=n);const u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(const f in l){const h=t.getValue(f,(o=t.latestValues[f])!==null&&o!==void 0?o:null),p=l[f];if(p===void 0||c&&Sy(c,f))continue;const y={delay:s,...Ao(r||{},f)};let b=!1;if(window.MotionHandoffAnimation){const _=gc(t);if(_){const V=window.MotionHandoffAnimation(_,f,rt);V!==null&&(y.startTime=V,b=!0)}}Rg(t,f),h.start(Fo(f,h,p,t.shouldReduceMotion&&Wl.has(f)?{type:!1}:y,t,b));const A=h.animation;A&&u.push(A)}return a&&Promise.all(u).then(()=>{rt.update(()=>{a&&Dg(t,a)})}),u}function Bc(t){return t instanceof SVGElement&&t.tagName!=="svg"}function wy(t,e){return t in e}class Ay extends Kl{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,s){if(wy(s,e)){const n=e[s];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,s){delete s.output[e]}measureInstanceViewportBox(){return ht()}build(e,s){Object.assign(e.output,s)}renderInstance(e,{output:s}){Object.assign(e,s)}sortInstanceNodePosition(){return 0}}function Py(t){const e={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},s=Bc(t)?new sc(e):new Ql(e);s.mount(t),Ge.set(t,s)}function Cy(t){const e={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},s=new Ay(e);s.mount(t),Ge.set(t,s)}function Nc(t,e,s){const n=wt(t)?t:js(t);return n.start(Fo("",n,e,s)),n.animation}function Ey(t,e){return wt(t)||typeof t=="number"||typeof t=="string"&&!wo(e)}function kc(t,e,s,n){const i=[];if(Ey(t,e))i.push(Nc(t,wo(e)&&e.default||e,s&&(s.default||s)));else{const o=hc(t,e,n),r=o.length;for(let a=0;a<r;a++){const l=o[a],u=l instanceof Element?Py:Cy;Ge.has(l)||u(l);const c=Ge.get(l),f={...s};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,r)),i.push(...Ty(c,{...e,transition:f},{}))}}return i}function My(t,e,s){const n=[];return xg(t,e,s,{spring:So}).forEach(({keyframes:o,transition:r},a)=>{n.push(...kc(a,o,r))}),n}function Vy(t){return Array.isArray(t)&&t.some(Array.isArray)}function Dy(t){function e(s,n,i){let o=[];return Vy(s)?o=My(s,n,t):o=kc(s,n,i,t),new nc(o)}return e}const Oy=Dy(),Ry=["initial","animate","whileInView","whileHover","whilePress","whileDrag","whileFocus","exit"];class Ly extends me{constructor(e){var s;super(e),this.animateUpdates=({controlActiveState:n,directAnimate:i,directTransition:o,controlDelay:r=0,isFallback:a,isExit:l}={})=>{const u=this.state.target;this.state.target={...this.state.baseTarget};let c={};const f={...this.state.options.transition};c=this.resolveStateAnimation({controlActiveState:n,directAnimate:i,directTransition:o});const h=this.createAnimationFactories(u,c,r),{getChildAnimations:p,childAnimations:y}=this.setupChildAnimations(c,this.state.activeStates,a);return this.executeAnimations({factories:h,getChildAnimations:p,childAnimations:y,transition:f,controlActiveState:n,isExit:l})},this.state.visualElement=ng(this.state.options.as,{presenceContext:null,parent:(s=this.state.parent)==null?void 0:s.visualElement,props:{...this.state.options,whileTap:this.state.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.state.baseTarget}},reducedMotionConfig:this.state.options.motionConfig.reduceMotion}),this.state.animateUpdates=this.animateUpdates,this.state.isMounted()&&this.state.startAnimation()}updateAnimationControlsSubscription(){const{animate:e}=this.state.options;el(e)&&(this.unmountControls=e.subscribe(this.state))}executeAnimations({factories:e,getChildAnimations:s,transition:n,controlActiveState:i,isExit:o=!1}){const r=()=>Promise.all(e.map(f=>f()).filter(Boolean)),a={...this.state.target},l=this.state.element,u=f=>{var h,p;l.dispatchEvent(al("motionstart",a)),(p=(h=this.state.options).onAnimationStart)==null||p.call(h,a),f.then(()=>{var y,b;l.dispatchEvent(al("motioncomplete",a,o)),(b=(y=this.state.options).onAnimationComplete)==null||b.call(y,a)}).catch(Vt)},c=()=>{const f=n!=null&&n.when?(n.when==="beforeChildren"?r():s()).then(()=>n.when==="beforeChildren"?s():r()):Promise.all([r(),s()]);return u(f),f};return i?c:c()}setupChildAnimations(e,s,n){var i;if(!((i=this.state.visualElement.variantChildren)!=null&&i.size)||!s)return{getChildAnimations:()=>Promise.resolve(),childAnimations:[]};const{staggerChildren:o=0,staggerDirection:r=1,delayChildren:a=0}=e||{},l=(this.state.visualElement.variantChildren.size-1)*o,u=r===1?(f=0)=>f*o:(f=0)=>l-f*o,c=Array.from(this.state.visualElement.variantChildren).map((f,h)=>{const p=a+u(h);return f.state.animateUpdates({controlActiveState:s,controlDelay:n?0:p})}).filter(Boolean);return{getChildAnimations:()=>Promise.all(c.map(f=>f==null?void 0:f())),childAnimations:c}}createAnimationFactories(e,s,n){const i=[];return Object.keys(this.state.target).forEach(o=>{var r;if(!_p(e[o],this.state.target[o]))return;(r=this.state.baseTarget)[o]??(r[o]=Hp.get(this.state.element,o));const a=this.state.target[o]==="none"&&to(ul[o])?ul[o]:this.state.target[o];i.push(()=>{var l;return Oy(this.state.element,{[o]:a},{...(s==null?void 0:s[o])||s,delay:(((l=s==null?void 0:s[o])==null?void 0:l.delay)||(s==null?void 0:s.delay)||0)+n})})}),i}resolveStateAnimation({controlActiveState:e,directAnimate:s,directTransition:n}){let i=this.state.options.transition,o={};const{variants:r,custom:a,transition:l,animatePresenceContext:u}=this.state.options,c=to(a)?a:u==null?void 0:u.custom;return this.state.activeStates={...this.state.activeStates,...e},Ry.forEach(f=>{if(!this.state.activeStates[f]||el(this.state.options[f]))return;const h=this.state.options[f];let p=to(h)?$s(h,r,c):void 0;if(this.state.visualElement.isVariantNode){const y=$s(this.state.context[f],r,c);p=y?Object.assign(y||{},p):o}p&&(f!=="initial"&&(i=p.transition||this.state.options.transition||{}),o=Object.assign(o,p))}),s&&(o=$s(s,r,c),i=o.transition||n||l),Object.entries(o).forEach(([f,h])=>{f!=="transition"&&(this.state.target[f]=h)}),i}mount(){const{element:e}=this.state;rl.set(e,this.state),Ge.get(e)||(this.state.visualElement.mount(e),Ge.set(e,this.state.visualElement)),this.state.visualElement.state=this.state,this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.state.options,{animate:s}=this.state.visualElement.prevProps||{};e!==s&&this.updateAnimationControlsSubscription()}unmount(){var e;(e=this.unmountControls)==null||e.call(this)}}const Fy={y:!1};function Iy(){return Fy.y}function Uc(t,e){const s=`${e}PointerCapture`;if(t.target instanceof Element&&s in t.target&&t.pointerId!==void 0)try{t.target[s](t.pointerId)}catch{}}const Hc=(t,e)=>e?t===e?!0:Hc(t,e.parentElement):!1,$y=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function Kc(t,e){const s=To(t),n=new AbortController,i={passive:!0,...e,signal:n.signal};return[s,i,()=>n.abort()]}const jy=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function By(t){return jy.has(t.tagName)||t.tabIndex!==-1}const zs=new WeakSet;function Wc(t){return e=>{e.key==="Enter"&&t(e)}}function Io(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Ny=(t,e)=>{const s=t.currentTarget;if(!s)return;const n=Wc(()=>{if(zs.has(s))return;Io(s,"down");const i=Wc(()=>{Io(s,"up")}),o=()=>Io(s,"cancel");s.addEventListener("keyup",i,e),s.addEventListener("blur",o,e)});s.addEventListener("keydown",n,e),s.addEventListener("blur",()=>s.removeEventListener("keydown",n),e)};function Gc(t){return $y(t)&&!0}function ky(t,e,s={}){const[n,i,o]=Kc(t,s),r=a=>{const l=a.currentTarget;if(!l||!Gc(a)||zs.has(l))return;zs.add(l),Uc(a,"set");const u=e(l,a),c=(p,y)=>{l.removeEventListener("pointerup",f),l.removeEventListener("pointercancel",h),Uc(p,"release"),!(!Gc(p)||!zs.has(l))&&(zs.delete(l),typeof u=="function"&&u(p,{success:y}))},f=p=>{(p.isTrusted?Uy(p,l instanceof Element?l.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight}):!1)?c(p,!1):c(p,!(l instanceof Element)||Hc(l,p.target))},h=p=>{c(p,!1)};l.addEventListener("pointerup",f,i),l.addEventListener("pointercancel",h,i),l.addEventListener("lostpointercapture",h,i)};return n.forEach(a=>{a=s.useGlobalTarget?window:a;let l=!1;a instanceof HTMLElement&&(l=!0,!By(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0)),a.addEventListener("pointerdown",r,i),l&&a.addEventListener("focus",u=>Ny(u,i),i)}),o}function Uy(t,e){return t.clientX<e.left||t.clientX>e.right||t.clientY<e.top||t.clientY>e.bottom}function zc(t){return{point:{x:t.pageX,y:t.pageY}}}function qc(t,e,s){const n=t.options;n.whilePress&&t.setActive("whilePress",s==="Start");const i=`onPress${s==="End"?"":s}`,o=n[i];o&&rt.postRender(()=>o(e,zc(e)))}class Hy extends me{isActive(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;return!!(e||s||n||i)}constructor(e){super(e)}mount(){this.register()}update(){const{whilePress:e,onPress:s,onPressCancel:n,onPressStart:i}=this.state.options;e||s||n||i||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=ky(e,(s,n)=>(qc(this.state,n,"Start"),(i,{success:o})=>qc(this.state,i,o?"End":"Cancel")),{useGlobalTarget:this.state.options.globalPressTarget}))}}function Yc(t){return!(t.pointerType==="touch"||Iy())}function Ky(t,e,s={}){const[n,i,o]=Kc(t,s),r=a=>{if(!Yc(a))return;const{target:l}=a,u=e(l,a);if(typeof u!="function"||!l)return;const c=f=>{Yc(f)&&(u(f),l.removeEventListener("pointerleave",c))};l.addEventListener("pointerleave",c,i)};return n.forEach(a=>{a.addEventListener("pointerenter",r,i)}),o}function Xc(t,e,s){const n=t.options;n.whileHover&&t.setActive("whileHover",s==="Start");const i=`onHover${s}`,o=n[i];o&&rt.postRender(()=>o(e,zc(e)))}class Wy extends me{isActive(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.options;return!!(e||s||n)}constructor(e){super(e)}mount(){this.register()}update(){const{whileHover:e,onHoverStart:s,onHoverEnd:n}=this.state.visualElement.prevProps;e||s||n||this.register()}register(){const e=this.state.element;!e||!this.isActive()||(this.unmount(),this.unmount=Ky(e,(s,n)=>(Xc(this.state,n,"Start"),i=>{Xc(this.state,i,"End")})))}}const Gy={some:0,all:1};function zy(t,e,{root:s,margin:n,amount:i="some"}={}){const o=To(t),r=new WeakMap,a=u=>{u.forEach(c=>{const f=r.get(c.target);if(c.isIntersecting!==!!f)if(c.isIntersecting){const h=e(c.target,c);typeof h=="function"?r.set(c.target,h):l.unobserve(c.target)}else typeof f=="function"&&(f(c),r.delete(c.target))})},l=new IntersectionObserver(a,{root:s,rootMargin:n,threshold:typeof i=="number"?i:Gy[i]});return o.forEach(u=>l.observe(u)),()=>l.disconnect()}function Zc(t,e,s){const n=t.options;n.whileInView&&t.setActive("whileInView",s==="Enter");const i=`onViewport${s}`,o=n[i];o&&rt.postRender(()=>o(e))}class qy extends me{isActive(){return!!this.state.options.whileInView}constructor(e){super(e)}startObserver(){const e=this.state.element;if(!e||!this.isActive())return;this.unmount();const{once:s,...n}=this.state.options.inViewOptions||{};this.unmount=zy(e,(i,o)=>{if(Zc(this.state,o,"Enter"),!s)return r=>{Zc(this.state,o,"Leave")}},n)}mount(){this.startObserver()}update(){const{props:e,prevProps:s}=this.state.visualElement;["amount","margin","root"].some(Yy(e,s))&&this.startObserver()}}function Yy({inViewOptions:t={}},{inViewOptions:e={}}={}){return s=>t[s]!==e[s]}function Gn(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}class Xy extends me{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.state.element.matches(":focus-visible")}catch{e=!0}e&&(this.state.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&(this.state.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Gs(Gn(this.state.element,"focus",()=>this.onFocus()),Gn(this.state.element,"blur",()=>this.onBlur()))}}const{schedule:Zy}=ol(queueMicrotask,!1),Jy=(t,e)=>t.depth-e.depth;class Qy{constructor(){this.children=[],this.isDirty=!1}add(e){eo(this.children,e),this.isDirty=!0}remove(e){In(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jy),this.isDirty=!1,this.children.forEach(e)}}function tv(t,e){const s=Zt.now(),n=({timestamp:i})=>{const o=i-s;o>=e&&(ge(n),t(o-e))};return rt.read(n,!0),()=>ge(n)}function $o(t){const e=wt(t)?t.get():t;return Cg(e)?e.toValue():e}const Jc=["TopLeft","TopRight","BottomLeft","BottomRight"],ev=Jc.length,Qc=t=>typeof t=="string"?parseFloat(t):t,tu=t=>typeof t=="number"||B.test(t);function sv(t,e,s,n,i,o){i?(t.opacity=dt(0,s.opacity!==void 0?s.opacity:1,nv(n)),t.opacityExit=dt(e.opacity!==void 0?e.opacity:1,0,iv(n))):o&&(t.opacity=dt(e.opacity!==void 0?e.opacity:1,s.opacity!==void 0?s.opacity:1,n));for(let r=0;r<ev;r++){const a=`border${Jc[r]}Radius`;let l=eu(e,a),u=eu(s,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||tu(l)===tu(u)?(t[a]=Math.max(dt(Qc(l),Qc(u),n),0),(ye.test(u)||ye.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||s.rotate)&&(t.rotate=dt(e.rotate||0,s.rotate||0,n))}function eu(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const nv=su(0,.5,Pc),iv=su(.5,.95,Vt);function su(t,e,s){return n=>n<t?0:n>e?1:s(Hs(t,e,n))}function nu(t,e){t.min=e.min,t.max=e.max}function Ht(t,e){nu(t.x,e.x),nu(t.y,e.y)}function iu(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function jo(t){return t===void 0||t===1}function Bo({scale:t,scaleX:e,scaleY:s}){return!jo(t)||!jo(e)||!jo(s)}function Xe(t){return Bo(t)||ou(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function ou(t){return ru(t.x)||ru(t.y)}function ru(t){return t&&t!=="0%"}function zn(t,e,s){const n=t-s,i=e*n;return s+i}function au(t,e,s,n,i){return i!==void 0&&(t=zn(t,i,n)),zn(t,s,n)+e}function No(t,e=0,s=1,n,i){t.min=au(t.min,e,s,n,i),t.max=au(t.max,e,s,n,i)}function lu(t,{x:e,y:s}){No(t.x,e.translate,e.scale,e.originPoint),No(t.y,s.translate,s.scale,s.originPoint)}const cu=.999999999999,uu=1.0000000000001;function ov(t,e,s,n=!1){const i=s.length;if(!i)return;e.x=e.y=1;let o,r;for(let a=0;a<i;a++){o=s[a],r=o.projectionDelta;const{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(n&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ms(t,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),r&&(e.x*=r.x.scale,e.y*=r.y.scale,lu(t,r)),n&&Xe(o.latestValues)&&ms(t,o.latestValues))}e.x<uu&&e.x>cu&&(e.x=1),e.y<uu&&e.y>cu&&(e.y=1)}function qn(t,e){t.min=t.min+e,t.max=t.max+e}function fu(t,e,s,n,i=.5){const o=dt(t.min,t.max,i);No(t,e,s,o,n)}function ms(t,e){fu(t.x,e.x,e.scaleX,e.scale,e.originX),fu(t.y,e.y,e.scaleY,e.scale,e.originY)}const hu=1e-4,rv=1-hu,av=1+hu,du=.01,lv=0-du,cv=0+du;function Kt(t){return t.max-t.min}function uv(t,e,s){return Math.abs(t-e)<=s}function pu(t,e,s,n=.5){t.origin=n,t.originPoint=dt(e.min,e.max,t.origin),t.scale=Kt(s)/Kt(e),t.translate=dt(s.min,s.max,t.origin)-t.originPoint,(t.scale>=rv&&t.scale<=av||isNaN(t.scale))&&(t.scale=1),(t.translate>=lv&&t.translate<=cv||isNaN(t.translate))&&(t.translate=0)}function qs(t,e,s,n){pu(t.x,e.x,s.x,n?n.originX:void 0),pu(t.y,e.y,s.y,n?n.originY:void 0)}function mu(t,e,s){t.min=s.min+e.min,t.max=t.min+Kt(e)}function fv(t,e,s){mu(t.x,e.x,s.x),mu(t.y,e.y,s.y)}function gu(t,e,s){t.min=e.min-s.min,t.max=t.min+Kt(e)}function Ys(t,e,s){gu(t.x,e.x,s.x),gu(t.y,e.y,s.y)}function yu(t,e,s,n,i){return t-=e,t=zn(t,1/s,n),i!==void 0&&(t=zn(t,1/i,n)),t}function hv(t,e=0,s=1,n=.5,i,o=t,r=t){if(ye.test(e)&&(e=parseFloat(e),e=dt(r.min,r.max,e/100)-r.min),typeof e!="number")return;let a=dt(o.min,o.max,n);t===o&&(a-=e),t.min=yu(t.min,e,s,a,i),t.max=yu(t.max,e,s,a,i)}function vu(t,e,[s,n,i],o,r){hv(t,e[s],e[n],e[i],e.scale,o,r)}const dv=["x","scaleX","originX"],pv=["y","scaleY","originY"];function bu(t,e,s,n){vu(t.x,e,dv,s?s.x:void 0,n?n.x:void 0),vu(t.y,e,pv,s?s.y:void 0,n?n.y:void 0)}function _u(t){return t.translate===0&&t.scale===1}function xu(t){return _u(t.x)&&_u(t.y)}function Su(t,e){return t.min===e.min&&t.max===e.max}function mv(t,e){return Su(t.x,e.x)&&Su(t.y,e.y)}function Tu(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function wu(t,e){return Tu(t.x,e.x)&&Tu(t.y,e.y)}function Au(t){return Kt(t.x)/Kt(t.y)}function Pu(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class gv{constructor(){this.members=[]}add(e){eo(this.members,e),e.scheduleRender()}remove(e){if(In(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const s=this.members[this.members.length-1];s&&this.promote(s)}}relegate(e){const s=this.members.findIndex(i=>e===i);if(s===0)return!1;let n;for(let i=s;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){n=o;break}}return n?(this.promote(n),!0):!1}promote(e,s){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,s&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:i}=e.options;i===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:s,resumingFrom:n}=e;s.onExitComplete&&s.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function yv(t,e,s){let n="";const i=t.x.translate/e.x,o=t.y.translate/e.y,r=(s==null?void 0:s.z)||0;if((i||o||r)&&(n=`translate3d(${i}px, ${o}px, ${r}px) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),s){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:h,skewX:p,skewY:y}=s;u&&(n=`perspective(${u}px) ${n}`),c&&(n+=`rotate(${c}deg) `),f&&(n+=`rotateX(${f}deg) `),h&&(n+=`rotateY(${h}deg) `),p&&(n+=`skewX(${p}deg) `),y&&(n+=`skewY(${y}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(n+=`scale(${a}, ${l})`),n||"none"}function Cu(t){return[t("x"),t("y")]}const Yn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ko=["","X","Y","Z"],vv={visibility:"hidden"},Eu=1e3;let bv=0;function Uo(t,e,s,n){const{latestValues:i}=e;i[t]&&(s[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function Mu(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const s=gc(e);if(window.MotionHasOptimisedAnimation(s,"transform")){const{layout:i,layoutId:o}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",rt,!(i||o))}const{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&Mu(n)}function Vu({attachResizeListener:t,defaultParent:e,measureScroll:s,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(r={},a=e==null?void 0:e()){this.id=bv++,this.animationId=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.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(Sv),this.nodes.forEach(Cv),this.nodes.forEach(Ev),this.nodes.forEach(Tv)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=r,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Qy)}addEventListener(r,a){return this.eventHandlers.has(r)||this.eventHandlers.set(r,new so),this.eventHandlers.get(r).add(a)}notifyListeners(r,...a){const l=this.eventHandlers.get(r);l&&l.notify(...a)}hasListeners(r){return this.eventHandlers.has(r)}mount(r,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Bc(r),this.instance=r;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(r),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(u||l)&&(this.isLayoutDirty=!0),t){let f;const h=()=>this.root.updateBlockedByResize=!1;t(r,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=tv(h,250),Yn.hasAnimatedSinceResize&&(Yn.hasAnimatedSinceResize=!1,this.nodes.forEach(Ou))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeLayoutChanged:p,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||Rv,{onLayoutAnimationStart:A,onLayoutAnimationComplete:_}=c.getProps(),V=!this.targetLayout||!wu(this.targetLayout,y),L=!h&&p;if(this.options.layoutRoot||this.resumeFrom||L||h&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,L);const P={...Ao(b,"layout"),onPlay:A,onComplete:_};(c.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else h||Ou(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const r=this.getStack();r&&r.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ge(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(Mv),this.animationId++)}getTransformTemplate(){const{visualElement:r}=this.options;return r&&r.getProps().transformTemplate}willUpdate(r=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Mu(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),r&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Du);return}this.isUpdating||this.nodes.forEach(Av),this.isUpdating=!1,this.nodes.forEach(Pv),this.nodes.forEach(_v),this.nodes.forEach(xv),this.clearAllSnapshots();const a=Zt.now();vt.delta=De(0,1e3/60,a-vt.timestamp),vt.timestamp=a,vt.isProcessing=!0,Xi.update.process(vt),Xi.preRender.process(vt),Xi.render.process(vt),vt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wv),this.sharedNodes.forEach(Vv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,rt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){rt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Kt(this.snapshot.measuredBox.x)&&!Kt(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const r=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ht(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,r?r.layoutBox:void 0)}updateScroll(r="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===r&&(a=!1),a){const l=n(this.instance);this.scroll={animationId:this.root.animationId,phase:r,isRoot:l,offset:s(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const r=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!xu(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;r&&(a||Xe(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(r=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return r&&(l=this.removeTransform(l)),Lv(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var r;const{visualElement:a}=this.options;if(!a)return ht();const l=a.measureViewportBox();if(!(((r=this.scroll)===null||r===void 0?void 0:r.wasRoot)||this.path.some(Fv))){const{scroll:c}=this.root;c&&(qn(l.x,c.offset.x),qn(l.y,c.offset.y))}return l}removeElementScroll(r){var a;const l=ht();if(Ht(l,r),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:h}=c;c!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&Ht(l,r),qn(l.x,f.offset.x),qn(l.y,f.offset.y))}return l}applyTransform(r,a=!1){const l=ht();Ht(l,r);for(let u=0;u<this.path.length;u++){const c=this.path[u];!a&&c.options.layoutScroll&&c.scroll&&c!==c.root&&ms(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),Xe(c.latestValues)&&ms(l,c.latestValues)}return Xe(this.latestValues)&&ms(l,this.latestValues),l}removeTransform(r){const a=ht();Ht(a,r);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Xe(u.latestValues))continue;Bo(u.latestValues)&&u.updateSnapshot();const c=ht(),f=u.measurePageBox();Ht(c,f),bu(a,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return Xe(this.latestValues)&&bu(a,this.latestValues),a}setTargetDelta(r){this.targetDelta=r,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(r){this.options={...this.options,...r,crossfade:r.crossfade!==void 0?r.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==vt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(r=!1){var a;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(r||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=vt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),Ys(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ht(),this.targetWithTransforms=ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),fv(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ht(this.target,this.layout.layoutBox),lu(this.target,this.targetDelta)):Ht(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ht(),this.relativeTargetOrigin=ht(),Ys(this.relativeTargetOrigin,this.target,p.target),Ht(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Bo(this.parent.latestValues)||ou(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var r;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let u=!0;if((this.isProjectionDirty||!((r=this.parent)===null||r===void 0)&&r.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===vt.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Ht(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;ov(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=ht());const{target:y}=a;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(iu(this.prevProjectionDelta.x,this.projectionDelta.x),iu(this.prevProjectionDelta.y,this.projectionDelta.y)),qs(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!Pu(this.projectionDelta.x,this.prevProjectionDelta.x)||!Pu(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(r=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),r){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=cs(),this.projectionDelta=cs(),this.projectionDeltaWithTransform=cs()}setAnimationOrigin(r,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=cs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const h=ht(),p=l?l.source:void 0,y=this.layout?this.layout.source:void 0,b=p!==y,A=this.getStack(),_=!A||A.members.length<=1,V=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(Ov));this.animationProgress=0;let L;this.mixTargetDelta=P=>{const C=P/1e3;Ru(f.x,r.x,C),Ru(f.y,r.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ys(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dv(this.relativeTarget,this.relativeTargetOrigin,h,C),L&&mv(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=ht()),Ht(L,this.relativeTarget)),b&&(this.animationValues=c,sv(c,u,this.latestValues,C,V,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(r){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ge(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rt.update(()=>{Yn.hasAnimatedSinceResize=!0,this.currentAnimation=Nc(0,Eu,{...r,onUpdate:a=>{this.mixTargetDelta(a),r.onUpdate&&r.onUpdate(a)},onStop:()=>{},onComplete:()=>{r.onComplete&&r.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const r=this.getStack();r&&r.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Eu),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const r=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=r;if(!(!a||!l||!u)){if(this!==r&&this.layout&&u&&ju(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ht();const f=Kt(this.layout.layoutBox.x);l.x.min=r.target.x.min,l.x.max=l.x.min+f;const h=Kt(this.layout.layoutBox.y);l.y.min=r.target.y.min,l.y.max=l.y.min+h}Ht(a,l),ms(a,c),qs(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(r,a){this.sharedNodes.has(r)||this.sharedNodes.set(r,new gv),this.sharedNodes.get(r).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const r=this.getStack();return r?r.lead===this:!0}getLead(){var r;const{layoutId:a}=this.options;return a?((r=this.getStack())===null||r===void 0?void 0:r.lead)||this:this}getPrevLead(){var r;const{layoutId:a}=this.options;return a?(r=this.getStack())===null||r===void 0?void 0:r.prevLead:void 0}getStack(){const{layoutId:r}=this.options;if(r)return this.root.sharedNodes.get(r)}promote({needsReset:r,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),r&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const r=this.getStack();return r?r.relegate(this):!1}resetSkewAndRotation(){const{visualElement:r}=this.options;if(!r)return;let a=!1;const{latestValues:l}=r;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Uo("z",r,u,this.animationValues);for(let c=0;c<ko.length;c++)Uo(`rotate${ko[c]}`,r,u,this.animationValues),Uo(`skew${ko[c]}`,r,u,this.animationValues);r.render();for(const c in u)r.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);r.scheduleRender()}getProjectionStyles(r){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return vv;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=$o(r==null?void 0:r.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=$o(r==null?void 0:r.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=yv(this.projectionDeltaWithTransform,this.treeScale,h),c&&(u.transform=c(h,u.transform));const{x:p,y}=this.projectionDelta;u.transformOrigin=`${p.origin*100}% ${y.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(a=h.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:u.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const b in Fs){if(h[b]===void 0)continue;const{correct:A,applyTo:_,isCSSVariable:V}=Fs[b],L=u.transform==="none"?h[b]:A(h[b],f);if(_){const P=_.length;for(let C=0;C<P;C++)u[_[C]]=L}else V?this.options.visualElement.renderState.vars[b]=L:u[b]=L}return this.options.layoutId&&(u.pointerEvents=f===this?$o(r==null?void 0:r.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(r=>{var a;return(a=r.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Du),this.root.sharedNodes.clear()}}}function _v(t){t.updateLayout()}function xv(t){var e;const s=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&s&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=t.layout,{animationType:o}=t.options,r=s.source!==t.layout.source;o==="size"?Cu(f=>{const h=r?s.measuredBox[f]:s.layoutBox[f],p=Kt(h);h.min=n[f].min,h.max=h.min+p}):ju(o,s.layoutBox,n)&&Cu(f=>{const h=r?s.measuredBox[f]:s.layoutBox[f],p=Kt(n[f]);h.max=h.min+p,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[f].max=t.relativeTarget[f].min+p)});const a=cs();qs(a,n,s.layoutBox);const l=cs();r?qs(l,t.applyTransform(i,!0),s.measuredBox):qs(l,n,s.layoutBox);const u=!xu(a);let c=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const y=ht();Ys(y,s.layoutBox,h.layoutBox);const b=ht();Ys(b,n,p.layoutBox),wu(y,b)||(c=!0),f.options.layoutRoot&&(t.relativeTarget=b,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:s,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Sv(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Tv(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function wv(t){t.clearSnapshot()}function Du(t){t.clearMeasurements()}function Av(t){t.isLayoutDirty=!1}function Pv(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Ou(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function Cv(t){t.resolveTargetDelta()}function Ev(t){t.calcProjection()}function Mv(t){t.resetSkewAndRotation()}function Vv(t){t.removeLeadSnapshot()}function Ru(t,e,s){t.translate=dt(e.translate,0,s),t.scale=dt(e.scale,1,s),t.origin=e.origin,t.originPoint=e.originPoint}function Lu(t,e,s,n){t.min=dt(e.min,s.min,n),t.max=dt(e.max,s.max,n)}function Dv(t,e,s,n){Lu(t.x,e.x,s.x,n),Lu(t.y,e.y,s.y,n)}function Ov(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Rv={duration:.45,ease:[.4,0,.1,1]},Fu=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Iu=Fu("applewebkit/")&&!Fu("chrome/")?Math.round:Vt;function $u(t){t.min=Iu(t.min),t.max=Iu(t.max)}function Lv(t){$u(t.x),$u(t.y)}function ju(t,e,s){return t==="position"||t==="preserve-aspect"&&!uv(Au(e),Au(s),.2)}function Fv(t){var e;return t!==t.root&&((e=t.scroll)===null||e===void 0?void 0:e.wasRoot)}function Iv(t,e,s,n={passive:!0}){return t.addEventListener(e,s,n),()=>t.removeEventListener(e,s)}const $v=Vu({attachResizeListener:(t,e)=>Iv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ho={current:void 0},jv=Vu({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ho.current){const t=new $v({});t.mount(window),t.setOptions({layoutScroll:!0}),Ho.current=t}return Ho.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"});function Bu(t){if(t)return t.options.allowProjection!==!1?t.projection:Bu(t.parent)}function Nu(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Xs={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(B.test(t))t=parseFloat(t);else return t;const s=Nu(t,e.target.x),n=Nu(t,e.target.y);return`${s}% ${n}%`}},Bv={correct:(t,{treeScale:e,projectionDelta:s})=>{const n=t,i=Re.parse(t);if(i.length>5)return n;const o=Re.createTransformer(t),r=typeof i[0]!="number"?1:0,a=s.x.scale*e.x,l=s.y.scale*e.y;i[0+r]/=a,i[1+r]/=l;const u=dt(a,l,.5);return typeof i[2+r]=="number"&&(i[2+r]/=u),typeof i[3+r]=="number"&&(i[3+r]/=u),o(i)}},ku={borderRadius:{...Xs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Xs,borderTopRightRadius:Xs,borderBottomLeftRadius:Xs,borderBottomRightRadius:Xs,boxShadow:Bv};function Zs(t){return typeof t=="object"&&t!==null&&"nodeType"in t}class Nv extends me{constructor(e){super(e),tl(ku)}initProjection(){const e=this.state.options;this.state.visualElement.projection=new jv(this.state.visualElement.latestValues,e["data-framer-portal-id"]?void 0:Bu(this.state.visualElement.parent)),this.state.visualElement.projection.isPresent=!0,this.setOptions()}beforeMount(){this.initProjection()}setOptions(){const e=this.state.options;this.state.visualElement.projection.setOptions({layout:e.layout,layoutId:e.layoutId,alwaysMeasureLayout:!!e.drag||e.dragConstraints&&Zs(e.dragConstraints),visualElement:this.state.visualElement,animationType:typeof e.layout=="string"?e.layout:"both",layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{var s;if(!((s=this.state.visualElement.projection)!=null&&s.isPresent)){const n=Yi.get(this.state.element);this.state.isSafeToRemove=!0,n&&n({detail:{isExit:!0}},!0)}}})}update(){this.setOptions()}mount(){var e;(e=this.state.visualElement.projection)==null||e.mount(this.state.element)}}function Uu(t){return t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1}function Ko(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}function kv(t){return e=>Uu(e)&&t(e,Ko(e))}function Js(t,e,s,n){return Gn(t,e,kv(s),n)}function Hu(t){let e=null;return()=>{const s=()=>{e=null};return e===null?(e=t,s):!1}}const Ku=Hu("dragHorizontal"),Wu=Hu("dragVertical");function Uv(t){let e=!1;if(t==="y")e=Wu();else if(t==="x")e=Ku();else{const s=Ku(),n=Wu();s&&n?e=()=>{s(),n()}:(s&&s(),n&&n())}return e}function Wo(t){return t.max-t.min}function Hv(t,e,s){return s>e?e:s<t?t:s}function Xn(t,e,s){return t+(e-t)*s}function Gu(t,e,s){const n=e-t;return n===0?1:(s-t)/n}function Kv(t,{min:e,max:s},n){return e!==void 0&&t<e?t=n?Xn(e,t,n.min):Math.max(t,e):s!==void 0&&t>s&&(t=n?Xn(s,t,n.max):Math.min(t,s)),t}const Go=.35;function Wv(t,{top:e,left:s,bottom:n,right:i}){return{x:zu(t.x,s,i),y:zu(t.y,e,n)}}function zu(t,e,s){return{min:e!==void 0?t.min+e:void 0,max:s!==void 0?t.max+s-(t.max-t.min):void 0}}function Gv(t=Go){return t===!1?t=0:t===!0&&(t=Go),{x:qu(t,"left","right"),y:qu(t,"top","bottom")}}function qu(t,e,s){return{min:Yu(t,e),max:Yu(t,s)}}function Yu(t,e){return typeof t=="number"?t:t[e]||0}function zv(t,e){const s={};return e.min!==void 0&&(s.min=e.min-t.min),e.max!==void 0&&(s.max=e.max-t.min),s}function qv(t,e){return{x:Xu(t.x,e.x),y:Xu(t.y,e.y)}}function Xu(t,e){let s=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([s,n]=[n,s]),{min:s,max:n}}function Yv(t,e){let s=.5;const n=Wo(t),i=Wo(e);return i>n?s=Gu(e.min,e.max-n,t.min):n>i&&(s=Gu(t.min,t.max-i,e.min)),Hv(0,1,s)}const Zu=(t,e)=>Math.abs(t-e);function Xv(t,e){const s=Zu(t.x,e.x),n=Zu(t.y,e.y);return Math.sqrt(s**2+n**2)}const Zv=t=>t*1e3;function Jv(t){return t/1e3}class Ju{constructor(e,s,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qo(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=Xv(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:y}=f,{timestamp:b}=vt;this.history.push({...y,timestamp:b});const{onStart:A,onMove:_}=this.handlers;h||(A&&A(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=zo(h,this.transformPagePoint),rt.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=qo(f.type==="pointercancel"?this.lastMoveEventInfo:zo(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,A),y&&y(f,A)},!Uu(e))return;this.dragSnapToOrigin=o,this.handlers=s,this.transformPagePoint=n,this.contextWindow=i||window;const r=Ko(e),a=zo(r,this.transformPagePoint),{point:l}=a,{timestamp:u}=vt;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=s;c&&c(e,qo(a,this.history)),this.removeListeners=Gs(Js(this.contextWindow,"pointermove",this.handlePointerMove),Js(this.contextWindow,"pointerup",this.handlePointerUp),Js(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ge(this.updatePoint)}}function zo(t,e){return e?{point:e(t.point)}:t}function Qu(t,e){return{x:t.x-e.x,y:t.y-e.y}}function qo({point:t},e){return{point:t,delta:Qu(t,tf(e)),offset:Qu(t,Qv(e)),velocity:t0(e,.1)}}function Qv(t){return t[0]}function tf(t){return t[t.length-1]}function t0(t,e){if(t.length<2)return{x:0,y:0};let s=t.length-1,n=null;const i=tf(t);for(;s>=0&&(n=t[s],!(i.timestamp-n.timestamp>Zv(e)));)s--;if(!n)return{x:0,y:0};const o=Jv(i.timestamp-n.timestamp);if(o===0)return{x:0,y:0};const r={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}const ef=()=>({min:0,max:0});function e0(){return{x:ef(),y:ef()}}function Jt(t){return[t("x"),t("y")]}function s0(t){return!!(Fn(t)&&t.add)}function sf(t,e){const s=t.getValue("willChange");if(s0(s))return s.add(e)}function nf({top:t,left:e,right:s,bottom:n}){return{x:{min:e,max:s},y:{min:t,max:n}}}function n0(t,e){if(!e)return t;const s=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:s.y,left:s.x,bottom:n.y,right:n.x}}function i0({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function of(t,e){t.min=t.min+e,t.max=t.max+e}function o0(t,e){return nf(n0(t.getBoundingClientRect(),e))}function r0(t,e,s){const n=o0(t,s),{scroll:i}=e;return i&&(of(n.x,i.offset.x),of(n.y,i.offset.y)),n}function rf(t){return!Yi.has(t.current)}function af({current:t}){return t?t.ownerDocument.defaultView:null}const a0=new WeakMap;class l0{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=e0(),this.visualElement=e}start(e,{snapToCursor:s=!1}={}){if(!rf(this.visualElement))return;const n=u=>{const{dragSnapToOrigin:c}=this.getProps();c?this.pauseAnimation():this.stopAnimation(),s&&this.snapToCursor(Ko(u,"page").point)},i=(u,c)=>{const{drag:f,dragPropagation:h,onDragStart:p}=this.getProps();if(f&&!h&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Uv(f),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Jt(b=>{let A=this.getAxisMotionValue(b).get()||0;if(Up.test(A)){const{projection:_}=this.visualElement;if(_&&_.layout){const V=_.layout.layoutBox[b];V&&(A=Wo(V)*(parseFloat(A)/100))}}this.originPoint[b]=A}),p&&rt.postRender(()=>p(u,c)),sf(this.visualElement,"transform"),this.visualElement.state.setActive("whileDrag",!0)},o=(u,c)=>{const{dragPropagation:f,dragDirectionLock:h,onDirectionLock:p,onDrag:y}=this.getProps();if(!f&&!this.openGlobalLock)return;const{offset:b}=c;if(h&&this.currentDirection===null){this.currentDirection=c0(b),this.currentDirection!==null&&p&&p(this.currentDirection);return}this.updateAxis("x",c.point,b),this.updateAxis("y",c.point,b),this.visualElement.render(),y&&y(u,c)},r=(u,c)=>this.stop(u,c),a=()=>Jt(u=>{var c;return this.getAnimationState(u)==="paused"&&((c=this.getAxisMotionValue(u).animation)==null?void 0:c.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Ju(e,{onSessionStart:n,onStart:i,onMove:o,onSessionEnd:r,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:af(this.visualElement)})}stop(e,s){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=s;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&rt.postRender(()=>o(e,s))}cancel(){this.isDragging=!1;const{projection:e,animationState:s}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.visualElement.state.setActive("whileDrag",!1)}updateAxis(e,s,n){const{drag:i}=this.getProps();if(!n||!Zn(e,i,this.currentDirection))return;const o=this.getAxisMotionValue(e);let r=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(r=Kv(r,this.constraints[e],this.elastic[e])),o.set(r)}resolveConstraints(){var e;const{dragConstraints:s,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)==null?void 0:e.layout,o=this.constraints;s&&Zs(s)?this.constraints||(this.constraints=this.resolveRefConstraints()):s&&i?this.constraints=Wv(i.layoutBox,s):this.constraints=!1,this.elastic=Gv(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Jt(r=>{this.constraints!==!1&&this.getAxisMotionValue(r)&&(this.constraints[r]=zv(i.layoutBox[r],this.constraints[r]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:s}=this.getProps();if(!e||!Zs(e))return!1;const n=e,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=r0(n,i.root,this.visualElement.getTransformPagePoint());let r=qv(i.layout.layoutBox,o);if(s){const a=s(i0(r));this.hasMutatedConstraints=!!a,a&&(r=nf(a))}return r}startAnimation(e){const{drag:s,dragMomentum:n,dragElastic:i,dragTransition:o,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=Jt(c=>{if(!Zn(c,s,this.currentDirection))return;let f=l&&l[c]||{};r&&(f={min:0,max:0});const h=i?200:1e6,p=i?40:1e7,y={type:"inertia",velocity:n?e[c]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...o,...f};return this.startAxisValueAnimation(c,y)});return Promise.all(u).then(a)}startAxisValueAnimation(e,s){const n=this.getAxisMotionValue(e);return sf(this.visualElement,e),n.start(Fo(e,n,0,s,this.visualElement,!1))}stopAnimation(){rf(this.visualElement)&&Jt(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Jt(e=>{var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.pause()})}getAnimationState(e){var s;return(s=this.getAxisMotionValue(e).animation)==null?void 0:s.state}getAxisMotionValue(e){const s=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[s]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Jt(s=>{const{drag:n}=this.getProps();if(!Zn(s,n,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(s);if(i&&i.layout){const{min:r,max:a}=i.layout.layoutBox[s];o.set(e[s]-Xn(r,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:s}=this.getProps(),{projection:n}=this.visualElement;if(!Zs(s)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Jt(r=>{const a=this.getAxisMotionValue(r);if(a&&this.constraints!==!1){const l=a.get();i[r]=Yv({min:l,max:l},this.constraints[r])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Jt(r=>{if(!Zn(r,e,null))return;const a=this.getAxisMotionValue(r),{min:l,max:u}=this.constraints[r];a.set(Xn(l,u,i[r]))})}addListeners(){if(!this.visualElement.current)return;a0.set(this.visualElement,this);const e=this.visualElement.current,s=Js(e,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Zs(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),rt.read(n);const r=Gn(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Jt(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{r(),s(),o(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:s=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:r=Go,dragMomentum:a=!0}=e;return{...e,drag:s,dragDirectionLock:n,dragPropagation:i,dragConstraints:o,dragElastic:r,dragMomentum:a}}}function Zn(t,e,s){return(e===!0||e===t)&&(s===null||s===t)}function c0(t,e=10){let s=null;return Math.abs(t.y)>e?s="y":Math.abs(t.x)>e&&(s="x"),s}class u0 extends me{constructor(e){super(e),this.removeGroupControls=Vt,this.removeListeners=Vt,this.controls=new l0(e.visualElement)}mount(){const{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Vt}unmount(){this.removeGroupControls(),this.removeListeners()}}class f0 extends me{constructor(e){super(e),tl(ku)}beforeUpdate(){this.state.willUpdate("beforeUpdate")}update(){this.didUpdate()}didUpdate(){var e,s;(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&((s=(e=this.state.visualElement.projection)==null?void 0:e.root)==null||s.didUpdate())}mount(){var e;const s=this.state.options,n=this.state.options.layoutGroup;if(s.layout||s.layoutId){const i=this.state.visualElement.projection;i&&(i.promote(),(e=n==null?void 0:n.group)==null||e.add(i)),Yn.hasEverUpdated=!0}this.didUpdate()}beforeUnmount(){const e=this.state.visualElement.projection;e&&(this.state.willUpdate("beforeUnmount"),this.state.options.layoutId?(e.isPresent=!1,e.relegate()):this.state.options.layout&&(this.state.isSafeToRemove=!0))}unmount(){const e=this.state.options.layoutGroup,s=this.state.visualElement.projection;s&&(e!=null&&e.group&&e.group.remove(s),this.didUpdate())}}function lf(t){return(e,s)=>{t&&rt.postRender(()=>t(e,s))}}class h0 extends me{constructor(){super(...arguments),this.removePointerDownListener=Vt}onPointerDown(e){this.session=new Ju(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:af(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:lf((e,s)=>{const{onPanSessionStart:n}=this.state.options;n&&n(e,s)}),onStart:lf((e,s)=>{const{onPanStart:n}=this.state.options;n&&n(e,s)}),onMove:(e,s)=>{const{onPan:n}=this.state.options;n&&n(e,s)},onEnd:(e,s)=>{const{onPanEnd:n}=this.state.options;delete this.session,n&&rt.postRender(()=>n(e,s))}}}mount(){this.removePointerDownListener=Js(this.state.element,"pointerdown",this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const d0=[Ly,Hy,Wy,qy,Xy,Nv,h0,u0,f0],p0={reduceMotion:"never",transition:void 0,nonce:void 0},[m0,A_]=Is("MotionConfig");function g0(){return m0(Mt(()=>p0))}function Jn(t){return(t==null?void 0:t.nodeType)===3||(t==null?void 0:t.nodeType)===8?Jn(t.nextSibling):t}const[y0,P_]=Is("LazyMotionContext");function v0(t){const e=yp(null),s=bp({}),n=g0(),i=Ep({}),o=y0({features:ns([]),strict:!1}),r=Oh();function a(){return s.id&&t.layoutId?`${s.id}-${t.layoutId}`:t.layoutId||void 0}function l(){return{...t,lazyMotionContext:o,layoutId:a(),transition:t.transition??n.value.transition,layoutGroup:s,motionConfig:n.value,inViewOptions:t.inViewOptions??n.value.inViewOptions,animatePresenceContext:i,initial:i.initial===!1?i.initial:t.initial===!0?void 0:t.initial}}function u(){return{...r,...l()}}const c=new Rp(u(),e);vp(c);function f(){var p;const y=c.type==="svg",b={...r};Object.keys(r).forEach(V=>{Fn(r[V])&&(b[V]=r[V].get())});let A={...t.style,...y?{}:((p=c.visualElement)==null?void 0:p.latestValues)||c.baseTarget};if(y){const{attributes:V,style:L}=qp({...c.isMounted()?c.target:c.baseTarget,...A});Object.assign(b,V),A=L}t.drag&&t.dragListener!==!1&&Object.assign(A,{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`});const _=Kp(A);return _&&(b.style=_),b}const h=Bi().proxy;return Hr(()=>{c.beforeMount()}),Ai(()=>{c.mount(Jn(h.$el),u(),_0(h))}),Pi(()=>c.beforeUnmount()),Ci(()=>{const p=Jn(h.$el);p!=null&&p.isConnected||c.unmount()}),Kr(()=>{c.beforeUpdate()}),Wr(()=>{c.update(u())}),{getProps:l,getAttrs:f,layoutGroup:s,state:c}}const b0={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},hover:{type:[String,Array,Object]},press:{type:[String,Array,Object]},inView:{type:[String,Array,Object]},focus:{type:[String,Array,Object]},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object],default:({hover:t})=>t},whilePress:{type:[String,Array,Object],default:({press:t})=>t},whileInView:{type:[String,Array,Object],default:({inView:t})=>t},whileFocus:{type:[String,Array,Object],default:({focus:t})=>t},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},layoutGroup:{type:Object},motionConfig:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:[String,Number,Object,Array]},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}};function _0(t){var e;const s=((e=Jn(t.$el))==null?void 0:e.style.display)==="none";return t.$.vnode.transition&&s}const x0=new Map,S0=new Map;function T0(t){if(!Array.isArray(t))return[t];const e=[];for(const s of t)Array.isArray(s)?e.push(...s):e.push(s);return e}const w0=["area","img","input"];function A0(t,e,s){var n,i;if(typeof t=="string"&&w0.includes(t))return Ui(t,e);if(t==="template"){if(!s.default)return null;const o=T0(s.default()),r=o.findIndex(c=>c.type!==Tt);if(r===-1)return o;const a=o[r];(n=a.props)==null||delete n.ref;const l=a.props?Ta(e,a.props):e;e.class&&((i=a.props)!=null&&i.class)&&delete a.props.class;const u=he(a,l);for(const c in l)c.startsWith("on")&&(u.props||(u.props={}),u.props[c]=l[c]);return o.length===1?u:(o[r]=u,o)}return null}function cf(t,e={}){var s;const n=typeof t=="string",i=n?t:t.name||"",o=((s=e.features)==null?void 0:s.length)>0?x0:S0;if(n&&(o!=null&&o.has(t)))return o.get(t);const r=bh({inheritAttrs:!1,props:{...b0,features:{type:Object,default:()=>e.features||[]},as:{type:[String,Object],default:t||"div"}},name:i?`motion.${i}`:"Motion",setup(a,{slots:l}){const{getProps:u,getAttrs:c,state:f}=v0(a);function h(){const p=f.element;if((!(typeof a.as=="object")||a.asChild)&&p){const{style:b}=c();if(b)for(const[A,_]of Object.entries(b))p.style[A]=_}}return()=>{const p=u(),y=c(),b=a.asChild?"template":a.as,A={...e.forwardMotionProps||a.forwardMotionProps?p:{},...y,onVnodeUpdated:h},_=A0(b,A,l);return _!==null?_:Ui(b,{...A},l)}}});return n&&(o==null||o.set(t,r)),r}function P0(t=[]){return new Proxy({},{get(e,s){return s==="create"?(n,i)=>cf(n,{...i,features:t}):cf(s,{features:t})}})}const uf=P0(d0);uf.create("div");const C0={class:"slds-navigation-list--vertical"},E0={class:"slds-navigation-list__item-content"},M0={class:"slds-navigation-list__item-title"},V0={__name:"SidebarLayout",props:{schemas:{type:Array,required:!0},selectedSchema:{type:Object,default:null}},emits:["selectSchema"],setup(t,{emit:e}){var a;const s=t,n=e,i=ns(((a=s.selectedSchema)==null?void 0:a.fileName)||null);function o(l){i.value=l.fileName,n("selectSchema",l)}function r(l){var u;return((u=l.schema)==null?void 0:u.title)||l.fileName||"Untitled Schema"}return(l,u)=>(I(),H("div",C0,[u[0]||(u[0]=g("div",{class:"slds-navigation-list__item"},[g("div",{class:"slds-navigation-list__item-content"},[g("div",{class:"slds-navigation-list__item-title"},[g("span",{class:"slds-text-heading_small"},"Schemas")])])],-1)),(I(!0),H(ut,null,Ee(t.schemas,c=>(I(),H("div",{key:c.fileName,class:"slds-navigation-list__item"},[g("div",E0,[g("div",M0,[et(Ar(uf).button,{"while-hover":{scale:1.05},"while-press":{scale:.95},class:Pt(["slds-button slds-button_neutral slds-button_stretch",{"slds-is-active":i.value===c.fileName}]),onClick:f=>o(c)},{default:_n(()=>[$i(Q(r(c)),1)]),_:2},1032,["class","onClick"])])])]))),128))]))}},ff="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M514%20425%20285%2055a28%2028%200%200%200-50%200L6%20425c-14%2023%200%2055%2025%2055h458c25%200%2040-32%2025-55zm-254-25c-17%200-30-13-30-30s13-30%2030-30%2030%2013%2030%2030-13%2030-30%2030zm30-90c0%206-4%2010-10%2010h-40c-6%200-10-4-10-10V180c0-6%204-10%2010-10h40c6%200%2010%204%2010%2010v130z'/%3e%3c/svg%3e",hf=(t,e)=>{const s=t.__vccOpts||t;for(const[n,i]of e)s[n]=i;return s},D0={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},O0={class:"slds-notify__content"},df=hf({__name:"NoPropertiesMessage",props:{title:{type:String,default:"No Properties Defined"},message:{type:String,default:"This object doesn't have any properties defined in the schema."}},setup(t){return(e,s)=>(I(),H("div",D0,[s[0]||(s[0]=g("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=g("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[g("img",{src:ff,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),g("h2",null,Q(t.title),1),g("div",O0,[g("p",null,Q(t.message),1)])]))}},[["__scopeId","data-v-a28aa892"]]),R0={key:0,class:"slds-m-top_medium"},L0={class:"slds-box slds-theme_shade"},F0={class:"slds-grid slds-wrap slds-gutters"},I0={class:"constraint-item"},$0={class:"slds-text-title_caps slds-text-color_default"},j0={class:"slds-text-body_regular slds-m-top_xx-small"},Yo={__name:"SchemaConstraints",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=Mt(()=>{const a={};return["minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","pattern","minItems","maxItems","uniqueItems","minProperties","maxProperties"].forEach(u=>{e.schema[u]!==void 0&&(a[u]=e.schema[u])}),a}),n=Mt(()=>Object.entries(s.value).length!==0);function i(a){return a.replace(/([A-Z])/g," $1").replace(/^./,l=>l.toUpperCase())}function o(a){return typeof a=="boolean"?a?"Yes":"No":typeof a=="string"&&a.startsWith("^")?`Pattern: ${a}`:a}function r(a){return typeof a=="boolean"?a?"slds-badge_success":"slds-badge_inverse":typeof a=="number"?"slds-badge_warning":typeof a=="string"&&a.startsWith("^")?"slds-badge_info":""}return(a,l)=>n.value?(I(),H("div",R0,[l[0]||(l[0]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Constraints ",-1)),g("div",L0,[g("div",F0,[(I(!0),H(ut,null,Ee(s.value,(u,c)=>(I(),H("div",{key:c,class:"slds-col slds-size_1-of-2 slds-p-around_xx-small"},[g("div",I0,[g("div",$0,Q(i(c)),1),g("div",j0,[g("span",{class:Pt(["slds-badge",r(u)])},Q(o(u)),3)])])]))),128))])])])):Ut("",!0)}},B0={class:"array-schema"},N0={class:"slds-box slds-theme_shade"},k0={class:"slds-grid slds-gutters"},U0={key:0,class:"slds-col"},H0={class:"slds-badge"},K0={key:1,class:"slds-m-top_medium"},W0={class:"slds-text-title_caps slds-m-bottom_xx-small"},G0={key:3,class:"slds-m-top_medium"},z0={key:4,class:"slds-m-top_medium"},q0={key:0,class:"slds-m-top_xx-small"},Y0={__name:"ArraySchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=Mt(()=>["minItems","maxItems","uniqueItems"].some(o=>o in e.schema)),n=Mt(()=>e.schema.items?Array.isArray(e.schema.items)?"Tuple":e.schema.items.type||"Not specified":"Not defined");return(i,o)=>(I(),H("div",B0,[g("div",N0,[g("div",k0,[o[1]||(o[1]=g("div",{class:"slds-col"},[g("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type "),g("div",{class:"slds-badge"}," array ")],-1)),t.schema.items?(I(),H("div",U0,[o[0]||(o[0]=g("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Items Type ",-1)),g("div",H0,Q(n.value),1)])):Ut("",!0)])]),s.value?(I(),Ft(Yo,{key:0,schema:t.schema},null,8,["schema"])):Ut("",!0),t.schema.items?(I(),H("div",K0,[o[2]||(o[2]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Items Schema ",-1)),Array.isArray(t.schema.items)?(I(!0),H(ut,{key:0},Ee(t.schema.items,(r,a)=>(I(),H("div",{key:a,class:"slds-m-bottom_medium"},[g("div",W0," Index "+Q(a),1),et(_e,{schema:r,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128)):(I(),Ft(_e,{key:1,schema:t.schema.items,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):(I(),Ft(df,{key:2,title:"No Items Defined",message:"This array doesn't have any items defined in the schema."})),t.schema.contains?(I(),H("div",G0,[o[3]||(o[3]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Contains ",-1)),et(_e,{schema:t.schema.contains,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])):Ut("",!0),t.schema.additionalItems!==void 0&&Array.isArray(t.schema.items)?(I(),H("div",z0,[o[4]||(o[4]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Additional Items ",-1)),typeof t.schema.additionalItems=="boolean"?(I(),H("div",q0,[g("span",{class:Pt(t.schema.additionalItems?"status-allowed":"status-denied")},Q(t.schema.additionalItems?"Allowed":"Not allowed"),3)])):(I(),Ft(_e,{key:1,schema:t.schema.additionalItems,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):Ut("",!0)]))}},X0={class:"slds-box slds-theme_shade"},Z0={class:"slds-text-heading_small slds-m-bottom_small"},J0={class:"slds-tabs_default"},Q0={class:"slds-tabs_default__nav",role:"tablist"},tb=["aria-selected","aria-controls","onClick"],eb={class:"slds-tabs_default__title"},sb=["id"],nb={class:"slds-p-around_medium"},ib={class:"slds-text-title_caps slds-m-bottom_small"},ob={__name:"CompositionSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=Mt(()=>e.schema.anyOf?"anyOf":e.schema.oneOf?"oneOf":e.schema.allOf?"allOf":null),n=ns(0),i=Mt(()=>e.schema[s.value]||[]);Qh(()=>{i.value.forEach(u=>{u.type||(u.type=e.schema.type)})});const o=Mt(()=>{switch(s.value){case"oneOf":return"One Of (Choose One)";case"anyOf":return"Any Of (Choose Any)";case"allOf":return"All Of (Must Match All)";default:return s.value}}),r=Mt(()=>{switch(e.compositionType){case"oneOf":return"slds-badge_success";case"anyOf":return"slds-badge_warning";case"allOf":return"slds-badge_inverse";default:return""}});function a(u){return Array.isArray(u.type)?u.type.join(" | "):u.type||"object"}function l(u,c){return u.title?u.title:`Option ${c+1}`}return(u,c)=>(I(),H("div",X0,[g("div",Z0,[g("span",{class:Pt(["slds-badge",r.value])},Q(o.value),3)]),g("div",J0,[g("ul",Q0,[(I(!0),H(ut,null,Ee(i.value,(f,h)=>(I(),H("li",{key:h,class:Pt(["slds-tabs_default__item",{"slds-is-active":n.value===h}]),role:"presentation"},[g("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":n.value===h,"aria-controls":`tab-${h}`,onClick:p=>n.value=h},[g("span",eb,Q(l(f,h)),1)],8,tb)],2))),128))]),(I(!0),H(ut,null,Ee(i.value,(f,h)=>(I(),H("div",{id:`tab-${h}`,key:h,class:Pt(["slds-tabs_default__content",{"slds-show":n.value===h,"slds-hide":n.value!==h}]),role:"tabpanel"},[g("div",nb,[g("div",ib," Schema Type: "+Q(a(f)),1),et(_e,{schema:f,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])],10,sb))),128))])]))}},rb={class:"slds-box slds-theme_shade"},ab={class:"slds-grid slds-wrap slds-gutters"},lb={class:"slds-badge slds-badge_inverse"},cb={__name:"EnumSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=Mt(()=>e.schema.enum);return(n,i)=>(I(),H("div",rb,[i[0]||(i[0]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Enum Values ",-1)),g("div",ab,[(I(!0),H(ut,null,Ee(s.value,(o,r)=>(I(),H("div",{key:r,class:"slds-col slds-size_1-of-3 slds-p-around_xx-small"},[g("div",lb,Q(o),1)]))),128))])]))}},ub="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20height='52'%20width='52'%20viewBox='0%200%20520%20520'%20fill='%23fff'%3e%3cpath%20d='M476%20178%20271%20385c-6%206-16%206-22%200L44%20178c-6-6-6-16%200-22l22-22c6-6%2016-6%2022%200l161%20163c6%206%2016%206%2022%200l161-163c6-6%2016-6%2022%200l22%2022c5%207%205%2016%200%2022z'/%3e%3c/svg%3e",fb={key:0},hb={key:1},db={class:"slds-box slds-m-top_small"},pb={class:"slds-table_container"},mb={class:"slds-table slds-table_cell-buffer slds-table_bordered"},gb=["onClick"],yb=["title"],vb={class:"slds-truncate"},bb={class:"slds-badge"},_b=["title"],xb={class:"slds-truncate"},Sb={key:0,class:"slds-badge slds-badge_success"},Tb={key:1,class:"slds-badge slds-badge_inverse"},wb={key:0},Ab={colspan:"4",class:"slds-p-around_medium"},Pb={class:"slds-box slds-theme_shade"},Cb={key:2},Eb={key:3},Mb={key:0},Vb={__name:"ObjectSchema",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,required:!0}},setup(t){const e=t,s=ns({}),n=Mt(()=>e.schema.properties&&Object.keys(e.schema.properties).length>0||e.schema.patternProperties&&Object.keys(e.schema.patternProperties).length>0);function i(a){return e.schema.required&&e.schema.required.includes(a)}function o(a){return a.type?a.type:a.oneOf||a.allOf||a.anyOf?"composition":a.enum?"enum":"No type found"}function r(a){s.value[a]=!s.value[a]}return(a,l)=>(I(),H("div",null,[l[6]||(l[6]=g("div",null,[g("div",null,"Type: object")],-1)),et(Yo,{schema:t.schema},null,8,["schema"]),t.schema.required&&t.schema.required.length>0?(I(),H("div",fb,[l[0]||(l[0]=g("span",null,"Required properties:",-1)),g("span",null,Q(t.schema.required.join(", ")),1)])):Ut("",!0),n.value?(I(),H("div",hb,[g("div",db,[l[2]||(l[2]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Properties ",-1)),g("div",pb,[g("table",mb,[l[1]||(l[1]=g("thead",null,[g("tr",{class:"slds-line-height_reset"},[g("th",{class:"slds-text-title_caps",scope:"col"},[g("div",{class:"slds-truncate",title:"Property"}," Property ")]),g("th",{class:"slds-text-title_caps",scope:"col"},[g("div",{class:"slds-truncate",title:"Type"}," Type ")]),g("th",{class:"slds-text-title_caps",scope:"col"},[g("div",{class:"slds-truncate",title:"Description"}," Description ")]),g("th",{class:"slds-text-title_caps",scope:"col"},[g("div",{class:"slds-truncate",title:"Required"}," Required ")])])],-1)),g("tbody",null,[(I(!0),H(ut,null,Ee(t.schema.properties,(u,c)=>(I(),H(ut,{key:c},[g("tr",{class:"slds-hint-parent is-interactive",onClick:f=>r(c)},[g("td",null,[g("div",{class:"slds-truncate",title:c},[g("img",{src:ub,class:Pt(["slds-button__icon",{expanded:s.value[c]}]),alt:""},null,2),$i(" "+Q(c),1)],8,yb)]),g("td",null,[g("div",vb,[g("span",bb,Q(o(u)),1)])]),g("td",null,[g("div",{class:"slds-truncate",title:u.description},Q(u.description||"No description"),9,_b)]),g("td",null,[g("div",xb,[i(c)?(I(),H("span",Sb,"Required")):(I(),H("span",Tb,"Optional"))])])],8,gb),et(Pd,null,{default:_n(()=>[s.value[c]?(I(),H("tr",wb,[g("td",Ab,[g("div",Pb,[et(_e,{schema:u,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])])])])):Ut("",!0)]),_:2},1024)],64))),128))])])])])])):Ut("",!0),t.schema.patternProperties?(I(),H("div",Cb,[l[4]||(l[4]=g("div",null,"Pattern Properties",-1)),g("div",null,[(I(!0),H(ut,null,Ee(t.schema.patternProperties,(u,c)=>(I(),H("div",{key:c},[g("div",null,[g("div",null,[l[3]||(l[3]=g("span",null,"Pattern:",-1)),g("code",null,Q(c),1)])]),et(_e,{schema:u,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"])]))),128))])])):Ut("",!0),t.schema.additionalProperties!==void 0?(I(),H("div",Eb,[l[5]||(l[5]=g("div",null,"Additional Properties",-1)),typeof t.schema.additionalProperties=="boolean"?(I(),H("div",Mb,[g("span",{class:Pt(t.schema.additionalProperties?"status-allowed":"status-denied")},Q(t.schema.additionalProperties?"Allowed":"Not allowed"),3)])):(I(),Ft(_e,{key:1,schema:t.schema.additionalProperties,"root-schema":t.rootSchema,"is-root":!1},null,8,["schema","root-schema"]))])):Ut("",!0),n.value?Ut("",!0):(I(),Ft(df,{key:4}))]))}},Db={class:"slds-box slds-m-top_small"},Ob={class:"slds-box slds-theme_shade"},Rb={class:"slds-text-body_regular"},Lb={class:"slds-grid slds-gutters"},Fb={class:"slds-col"},Ib={class:"slds-badge"},$b={class:"slds-col"},Qs={__name:"PrimitiveSchema",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(I(),H("div",Db,[s[2]||(s[2]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Type Information ",-1)),g("div",Ob,[g("div",Rb,[g("div",Lb,[g("div",Fb,[s[0]||(s[0]=g("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Type ",-1)),g("div",Ib,Q(t.schema.type),1)]),g("div",$b,[s[1]||(s[1]=g("div",{class:"slds-text-title_caps slds-m-bottom_xx-small"}," Description ",-1)),g("div",null,Q(t.schema.description||"No description"),1)])])])]),et(Yo,{schema:t.schema},null,8,["schema"])]))}},jb={object:Vb,array:Y0,string:Qs,number:Qs,integer:Qs,boolean:Qs,null:Qs},Xo={hasComposition:t=>!!(t.anyOf||t.oneOf||t.allOf),isEnum:t=>t.enum&&Array.isArray(t.enum),getComponentForSchema:t=>Xo.hasComposition(t)?ob:Xo.isEnum(t)?cb:jb[t.type]||null},Bb={class:"slds-grid slds-grid_vertical"},Nb={class:"slds-col slds-size_1-of-1"},kb={class:"slds-card"},Ub={class:"slds-card__body slds-card__body_inner"},Hb={__name:"SchemaLayout",setup(t){return(e,s)=>(I(),H("div",Bb,[g("div",Nb,[g("div",kb,[g("div",Ub,[Vh(e.$slots,"default")])])])]))}},Kb={class:"slds-box"},Wb={class:"slds-box slds-theme_shade"},Gb={__name:"PlainSchemaView",props:{schema:{type:Object,required:!0}},setup(t){const e=t,s=Mt(()=>JSON.stringify(e.schema,null,2));return(n,i)=>(I(),H("div",Kb,[i[0]||(i[0]=g("div",{class:"slds-text-heading_small slds-m-bottom_small"}," Raw JSON Schema ",-1)),g("pre",Wb,[g("code",null,Q(s.value),1)])]))}},zb={class:"slds-page-header"},qb={class:"slds-page-header__row"},Yb={class:"slds-page-header__col-title"},Xb={class:"slds-media"},Zb={class:"slds-media__body"},Jb={class:"slds-page-header__name"},Qb={class:"slds-page-header__name-title"},t_={class:"slds-page-header__title slds-truncate",title:"{{ schema.title || 'Schema' }}"},e_={class:"slds-page-header__meta-text"},s_={__name:"SchemaHeader",props:{schema:{type:Object,required:!0}},setup(t){return(e,s)=>(I(),H("div",zb,[g("div",qb,[g("div",Yb,[g("div",Xb,[s[0]||(s[0]=g("div",{class:"slds-media__figure"},[g("span",{class:"slds-icon_container slds-icon-standard-account"},[g("img",{src:Ja,class:"slds-icon slds-icon_small",alt:""})])],-1)),g("div",Zb,[g("div",Jb,[g("div",Qb,[g("h1",t_,Q(t.schema.title||"Schema"),1)])]),g("div",e_,Q(t.schema.description||"No description provided"),1)])])])])]))}},n_={class:"slds-tabs_default__nav",role:"tablist"},i_={__name:"SchemaTabs",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(t){return(e,s)=>(I(),H("ul",n_,[g("li",{class:Pt(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="visual"}]),role:"presentation"},[g("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"visual-tab",onClick:s[0]||(s[0]=n=>e.$emit("update:modelValue","visual"))},s[2]||(s[2]=[g("span",{class:"slds-tabs_default__title"},"Visual",-1)]))],2),g("li",{class:Pt(["slds-tabs_default__item",{"slds-is-active":t.modelValue==="plain"}]),role:"presentation"},[g("a",{class:"slds-tabs_default__link",role:"tab",tabindex:"0","aria-selected":"true","aria-controls":"plain-tab",onClick:s[1]||(s[1]=n=>e.$emit("update:modelValue","plain"))},s[3]||(s[3]=[g("span",{class:"slds-tabs_default__title"},"Plain JSON",-1)]))],2)]))}},o_={class:"slds-notify slds-notify_alert slds-theme_alert-texture slds-theme_warning",role:"alert"},r_={class:"slds-notify__content"},a_=hf({__name:"UnknownSchemaMessage",props:{title:{type:String,default:"Unknown schema"},message:{type:String,default:"This schema doesen't have proper handling yet."}},setup(t){return(e,s)=>(I(),H("div",o_,[s[0]||(s[0]=g("span",{class:"slds-assistive-text"},"warning",-1)),s[1]||(s[1]=g("span",{class:"slds-icon_container slds-icon-utility-warning slds-m-right_x-small"},[g("img",{src:ff,class:"slds-icon slds-icon_x-small warning-icon",alt:""})],-1)),g("h2",null,Q(t.title),1),g("div",r_,[g("p",null,Q(t.message),1)])]))}},[["__scopeId","data-v-bde50c13"]]),l_={class:"slds-tabs_default"},c_={class:"slds-p-around_medium"},u_={class:"slds-m-top_medium"},f_={class:"slds-p-around_medium"},_e={__name:"SchemaViewer",props:{schema:{type:Object,required:!0},rootSchema:{type:Object,default:null},isRoot:{type:Boolean,default:!0}},setup(t){const e=t,s=ns("visual"),n=Mt(()=>e.isRoot?e.schema:e.rootSchema);Oi("rootSchema",n);const i=Mt(()=>Xo.getComponentForSchema(e.schema));return(o,r)=>(I(),Ft(Hb,null,{default:_n(()=>[g("div",l_,[et(i_,{modelValue:s.value,"onUpdate:modelValue":r[0]||(r[0]=a=>s.value=a)},null,8,["modelValue"]),g("div",{class:Pt({"slds-show":s.value==="visual","slds-hide":s.value!=="visual"})},[g("div",c_,[et(s_,{schema:t.schema},null,8,["schema"]),g("div",u_,[i.value?(I(),Ft(Eh(i.value),{key:0,schema:t.schema,"root-schema":n.value},null,8,["schema","root-schema"])):(I(),Ft(a_,{key:1}))])])],2),g("div",{class:Pt({"slds-show":s.value==="plain","slds-hide":s.value!=="plain"})},[g("div",f_,[et(Gb,{schema:t.schema},null,8,["schema"])])],2)])]),_:1}))}},h_={class:"slds-grid slds-grid_vertical"},d_={class:"slds-grid slds-gutters slds-grid_vertical-fill"},p_={class:"slds-col slds-size_2-of-12"},m_={class:"slds-col slds-size_10-of-12"},g_={key:1,class:"slds-p-around_medium"},pf={__name:"App",props:{title:{type:String,default:"JSON Schema Documentation"},description:{type:String,default:""},schemas:{type:Array,default:()=>[]},generatedAt:{type:String,default:()=>new Date().toISOString()}},setup(t){const e=t,s=ns(e.schemas.length>0?e.schemas[0]:null);function n(i){s.value=i}return(i,o)=>(I(),H("div",h_,[et(pp,{title:t.title},null,8,["title"]),g("div",d_,[g("div",p_,[et(V0,{schemas:t.schemas,"selected-schema":s.value,onSelectSchema:n},null,8,["schemas","selected-schema"])]),g("div",m_,[s.value?(I(),Ft(_e,{key:0,schema:s.value.schema,"is-root":!0},null,8,["schema"])):(I(),H("div",g_,o[0]||(o[0]=[fd('<div class="slds-text-align_center"><svg viewBox="0 0 454 272" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="40" fill="#F9F9F9"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="30" fill="#ECEBEA"></circle><circle vector-effect="non-scaling-stroke" cx="150" cy="150" r="20" fill="#D9D7D5"></circle></g></svg></div><div class="slds-text-align_center slds-m-top_medium"><h3 class="slds-text-heading_medium"> No Schema Selected </h3><p class="slds-text-body_regular slds-m-top_small"> Select a schema from the sidebar to view its documentation. </p></div>',2)])))])]),et(op,{description:t.description,"generated-at":t.generatedAt,"schema-count":t.schemas.length},null,8,["description","generated-at","schema-count"])]))}};async function mf(){const t=window.__JSON_SCHEMA_DOCS_DATA__||{title:"JSON Schema Documentation",description:"",schemas:[],generatedAt:new Date().toISOString()};document.getElementById("app")&&Za(pf,t).mount("#app")}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",mf):mf(),Fe.App=pf,Fe.createApp=Za,Object.defineProperty(Fe,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -79,16 +79,6 @@ async function copyAssets(outputDir) {
|
|
|
79
79
|
if (await fs.pathExists(bundlePath)) {
|
|
80
80
|
await fs.copy(bundlePath, bundleTarget);
|
|
81
81
|
console.log('Frontend bundle copied successfully');
|
|
82
|
-
|
|
83
|
-
// Copy Vue as well since we're externalizing it
|
|
84
|
-
const vuePath = path.resolve(__dirname, '../../node_modules/vue/dist/vue.global.prod.js');
|
|
85
|
-
const vueTarget = path.join(assetsDir, 'vue.js');
|
|
86
|
-
if (await fs.pathExists(vuePath)) {
|
|
87
|
-
await fs.copy(vuePath, vueTarget);
|
|
88
|
-
console.log('Vue bundle copied successfully');
|
|
89
|
-
} else {
|
|
90
|
-
console.warn('Warning: Vue not found at', vuePath);
|
|
91
|
-
}
|
|
92
82
|
} else {
|
|
93
83
|
console.warn('Warning: Frontend bundle not found at', bundlePath);
|
|
94
84
|
console.warn('Make sure you run "npm run build:frontend" first');
|