PageSourceSearch

https://jentic.com/_next/static/chunks/1hwsy-ichua2s.js

js jentic.com collected 2026-10-02 11:35:42 UTC 924,706 bytes, 106 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,854878,998348,835696,941444,693456,544508,825720,397701,341650,914189,140407,402155,684653,813581,877891,652265,22357,952744,605083,700020,2788,185935,101852,255743,294316,674175,233137,601893,35889,746725,526599,661130,635307,83733,854056,871689,e=>{"use strict";let t,n,r,i,o,s,a,l,c,u,d,p,f,h,m,g,x,v,y;var b,w,k,j,S,E,N,C=e.i(271645),P=((t=P||{}).Space=" ",t.Enter="Enter",t.Escape="Escape",t.Backspace="Backspace",t.Delete="Delete",t.ArrowLeft="ArrowLeft",t.ArrowUp="ArrowUp",t.ArrowRight="ArrowRight",t.ArrowDown="ArrowDown",t.Home="Home",t.End="End",t.PageUp="PageUp",t.PageDown="PageDown",t.Tab="Tab",t);e.s(["Keys",0,P],998348);var T=Object.defineProperty,A=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?T(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n};let I=new class{constructor(){A(this,"current",this.detect()),A(this,"handoffState","pending"),A(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"u"<typeof window||"u"<typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},M=(e,t)=>{I.isServer?(0,C.useEffect)(e,t):(0,C.useLayoutEffect)(e,t)};function L(e){let t=(0,C.useRef)(e);return M(()=>{t.current=e},[e]),t}function R(e,t,n,r){let i=L(n);(0,C.useEffect)(()=>{function n(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)},[e,t,r])}e.s(["useIsoMorphicEffect",0,M],835696),e.s(["useLatestValue",0,L],941444),e.s(["useEventListener",0,R],693456);class _ extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}}function O(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function D(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return O(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=D();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}e.s(["disposables",0,D],544508);var F=Object.defineProperty,$=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},z=(e,t,n)=>($(e,t,"read from private field"),n?n.call(e):t.get(e)),V=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},B=(e,t,n,r)=>($(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class H{constructor(e){V(this,k,{}),V(this,j,new _(()=>new Set)),V(this,S,new Set),((e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?F(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n})(this,"disposables",D()),B(this,k,e),I.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return z(this,k)}subscribe(e,t){if(I.isServer)return()=>{};let n={selector:e,callback:t,current:e(z(this,k))};return z(this,S).add(n),this.disposables.add(()=>{z(this,S).delete(n)})}on(e,t){return I.isServer?()=>{}:(z(this,j).get(e).add(t),this.disposables.add(()=>{z(this,j).get(e).delete(t)}))}send(e){let t=this.reduce(z(this,k),e);if(t!==z(this,k)){for(let e of(B(this,k,t),z(this,S))){let t=e.selector(z(this,k));U(e.current,t)||(e.current=t,e.callback(t))}for(let t of z(this,j).get(e.type))t(z(this,k),e)}}}function U(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&W(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&W(e.entries(),t.entries()):!!(G(e)&&G(t))&&W(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function W(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;
1if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function G(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function q(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,q),r}k=new WeakMap,j=new WeakMap,S=new WeakMap,e.s(["Machine",0,H,"batch",0,function(e){let[t,n]=e(),r=D();return(...e)=>{t(...e),r.dispose(),r.microTask(n)}},"shallowEqual",0,U],825720),e.s(["match",0,q],397701);var K=Object.defineProperty,Y=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?K(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},J=((n=J||{})[n.Push=0]="Push",n[n.Pop=1]="Pop",n);let X={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}};class Z extends H{constructor(){super(...arguments),Y(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Y(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new Z({stack:[]})}reduce(e,t){return q(t.type,X,e,t)}}let Q=new _(()=>Z.new());e.s(["ActionTypes",0,J,"stackMachines",0,Q],341650);var ee=e.i(313027);let et=function(e){let t=L(e);return C.default.useCallback((...e)=>t.current(...e),[t])};function en(e,t,n=U){return(0,ee.useSyncExternalStoreWithSelector)(et(t=>e.subscribe(er,t)),et(()=>e.state),et(()=>e.state),et(t),n)}function er(e){return e}function ei(e,t){let n=(0,C.useId)(),r=Q.get(t),[i,o]=en(r,(0,C.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return M(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!o||i)}function eo(e){var t;return I.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function es(e){var t,n;return I.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}function ea(e){var t,n;return null!=(n=null==(t=es(e))?void 0:t.activeElement)?n:null}function el(e){return ea(e)===e}e.s(["useEvent",0,et],914189),e.s(["useSlice",0,en],140407),e.s(["getActiveElement",0,ea,"getOwnerDocument",0,eo,"getRootNode",0,es,"isActiveElement",0,el],402155);let ec=new Map,eu=new Map;function ed(e){var t;let n=null!=(t=eu.get(e))?t:0;return eu.set(e,n+1),0!==n?()=>ep(e):(ec.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>ep(e))}function ep(e){var t;let n=null!=(t=eu.get(e))?t:1;if(1===n?eu.delete(e):eu.set(e,n-1),1!==n)return;let r=ec.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ec.delete(e))}function ef(e,{allowed:t,disallowed:n}={}){let r=ei(e,"inert-others");M(()=>{var e,i;if(!r)return;let o=D();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(ed(t));let s=null!=(i=null==t?void 0:t())?i:[];for(let e of s){if(!e)continue;let t=eo(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||o.add(ed(e));n=n.parentElement}}return o.dispose},[r,t,n])}function eh(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function em(e){return eh(e)&&"tagName"in e}function eg(e){return em(e)&&"accessKey"in e}function ex(e){return em(e)&&"tabIndex"in e}function ev(e){return em(e)&&"style"in e}function ey(e){return eg(e)&&"IFRAME"===e.nodeName}function eb(e){return eg(e)&&"INPUT"===e.nodeName}function ew(e,t,n){let r=L(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,C.useEffect)(()=>{if(!e)return;let n=null===t?null:eg(t)?t:t.current;if(!n)return;let i=D();if("u">typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}if("u">typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,r,e])}e.s(["useInertOthers",0,ef],684653),e.s(["hasInlineStyle",0,ev,"isElement",0,em,"isHTMLElement",0,eg,"isHTMLFieldSetElement",0,function(e){return eg(e)&&"FIELDSET"===e.nodeName},"isHTMLIframeElement",0,ey,"isHTMLInputElement",0,eb,"isHTMLLabelElement",0,function(e){return eg(e)&&"LABEL"===e.n
1odeName},"isHTMLLegendElement",0,function(e){return eg(e)&&"LEGEND"===e.nodeName},"isHTMLorSVGElement",0,ex,"isInteractiveElement",0,function(e){return!!em(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')},"isNode",0,eh],813581),e.s(["useOnDisappear",0,ew],877891);let ek=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),ej=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var eS=((r=eS||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r[r.AutoFocus=64]="AutoFocus",r),eE=((i=eE||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),eN=((o=eN||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function eC(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ek)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var eP=((s=eP||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s);function eT(e,t=0){var n;return e!==(null==(n=eo(e))?void 0:n.body)&&q(t,{0:()=>e.matches(ek),1(){let t=e;for(;null!==t;){if(t.matches(ek))return!0;t=t.parentElement}return!1}})}var eA=((a=eA||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function eI(e){null==e||e.focus({preventScroll:!0})}function eM(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function eL(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o,s,a;let l=Array.isArray(e)?e.length>0?es(e[0]):document:es(e),c=Array.isArray(e)?n?eM(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ej)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):eC(e);i.length>0&&c.length>1&&(c=c.filter(e=>!i.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),r=null!=r?r:null==l?void 0:l.activeElement;let u=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(r))-1;if(4&t)return Math.max(0,c.indexOf(r))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),p=32&t?{preventScroll:!0}:{},f=0,h=c.length,m;do{if(f>=h||f+h<=0)return 0;let e=d+f;if(16&t)e=(e+h)%h;else{if(e<0)return 3;if(e>=h)return 1}null==(m=c[e])||m.focus(p),f+=u}while(m!==ea(m))return 6&t&&null!=(a=null==(s=null==(o=m)?void 0:o.matches)?void 0:s.call(o,"textarea,input"))&&a&&m.select(),2}function eR(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function e_(){return eR()||/Android/gi.test(window.navigator.userAgent)}function eO(e,t,n,r){let i=L(n);(0,C.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function eD(e,t,n,r){let i=L(n);(0,C.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function eF(e,t,n){let r=L(n),i=(0,C.useCallback)(function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null!==i&&i.getRootNode().contains(i)&&i.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(i)||e.composed&&e.composedPath().includes(n)))return;return eT(i,eP.Loose)||-1===i.tabIndex||e.preventDefault(),r.current(e,i)}},[r,t]),o=(0,C.useRef)(null);eO(e,"pointerdown",e=>{var t,n;e_()||(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),eO(e,"pointerup",e=>{if(e_()||!o.current)return;let t=o.current;return o.current=null,i(e,()=>t)},!0);let s=(0,C.useRef)({x:0,y:0});eO(e,"touchstart",e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY},!0),eO(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-s.current.x)>=30||Math.abs(t.y-s.current.y)>=30))return i(e,()=>ex(e.target)?e.target:null)},!0),eD(e,"blur",e=>i(e,()=>ey(window.document.activeElement)?window.document.activeElement:null),!0)}function e$(...e){return(0,C.useMemo)(()=>eo(...e),[...e])}function ez(...e){return Array.from(new Set(e.flatMap(e=>
1"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}"u">typeof window&&"u">typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),e.s(["Focus",0,eS,"FocusResult",0,eE,"FocusableMode",0,eP,"focusElement",0,eI,"focusFrom",0,function(e,t,n=null===e?document.body:es(e)){return eL(eC(n),t,{relativeTo:e})},"focusIn",0,eL,"focusableSelector",0,ek,"getFocusableElements",0,eC,"isFocusableElement",0,eT,"restoreFocusIfNecessary",0,function(e){D().nextFrame(()=>{let t=ea(e);t&&ex(t)&&!eT(t,0)&&eI(e)})},"sortByDomNode",0,eM],652265),e.s(["useDocumentEvent",0,eO],22357),e.s(["useOutsideClick",0,eF],952744),e.s(["useOwnerDocument",0,e$,"useRootDocument",0,function(...e){return(0,C.useMemo)(()=>es(...e),[...e])}],605083);var eV=((l=eV||{})[l.None=0]="None",l[l.RenderStrategy=1]="RenderStrategy",l[l.Static=2]="Static",l),eB=((c=eB||{})[c.Unmount=0]="Unmount",c[c.Hidden=1]="Hidden",c);function eH(){let e,t,n=(e=(0,C.useRef)([]),t=(0,C.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),(...n)=>{if(!n.every(e=>null==e))return e.current=n,t});return(0,C.useCallback)(e=>(function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=null!=a?a:eW;let l=eG(t,e);if(o)return eU(l,n,r,s,a);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return eU(t,n,r,s,a)}if(1&c){let{unmount:e=!0,...t}=l;return q(+!e,{0:()=>null,1:()=>eU({...t,hidden:!0,style:{display:"none"}},n,r,s,a)})}return eU(l,n,r,s,a)})({mergeRefs:n,...e}),[n])}function eU(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=eY(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof s?s(t):s;u=function e(t){if(null!=t&&t.$$typeof===Symbol.for("react.lazy")){let n=t._payload;if(null!=n&&"fulfilled"===n.status)return e(n.value)}return t}(u),"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e)for(let e of(d["data-headlessui-state"]=n.join(" "),n))d[`data-${e}`]=""}if(eJ(o)&&(Object.keys(eK(l)).length>0||Object.keys(eK(d)).length>0))if(!(0,C.isValidElement)(u)||Array.isArray(u)&&u.length>1||eJ(u.type)){if(Object.keys(eK(l)).length>0)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(eK(l)).concat(Object.keys(eK(d))).map(e=>`  - ${e}`).join(`
2`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>`  - ${e}`).join(`
3`)].join(`
4`))}else{var p;let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>ez(t(...e),l.className):ez(t,l.className),r=eG(u.props,eK(eY(l,["ref"])));for(let e in d)e in r&&delete d[e];return(0,C.cloneElement)(u,Object.assign({},r,d,c,{ref:i((p=u,C.default.version.split(".")[0]>="19"?p.props.ref:p.ref),c.ref)},n?{className:n}:{}))}return(0,C.createElement)(o,Object.assign({},eY(l,["ref"]),!eJ(o)&&c,!eJ(o)&&d),u)}function eW(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function eG(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let e in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(n[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in n)Object.assign(t,{[e](t,...r){for(let i of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;i(t,...r)}}});return t}function eq(e){var t;return Object.assign((0,C.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function eK(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function eY(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}function eJ(e){return e===C.Fragment||e===Symbol.for("react.fragment")}e.s(["RenderFeatures",0,eV,"RenderStrategy",0,eB,"compact",0,eK,"forwardRefWithAs",0,eq,"isFragment",0,eJ,"mergeProps",0,function(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let e in n)Object.assign(t,{[e](...t){for(let r of n[e])null==r||r(...t)}});return t},"useRender",0,eH],700020);var eX=((u=eX||{})[u.None=1]="None",u[u.Focusable=2]="Focusable",u[u.Hidden=4]="Hidden",u);let eZ=eq(function(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(2&r)==2||(null!=(n=i["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return eH()({ourProps:o,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})});function eQ({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=et(()=>{var r,i;let o=eo(n),s=[];
4for(let t of e)null!==t&&(em(t)?s.push(t):"current"in t&&em(t.current)&&s.push(t.current));if(null!=t&&t.current)for(let e of t.current)s.push(e);for(let e of null!=(r=null==o?void 0:o.querySelectorAll("html > *, body > *"))?r:[])e!==document.body&&e!==document.head&&em(e)&&"headlessui-portal-root"!==e.id&&(n&&(e.contains(n)||e.contains(null==(i=null==n?void 0:n.getRootNode())?void 0:i.host))||s.some(t=>e.contains(t))||s.push(e));return s});return{resolveContainers:r,contains:et(e=>r().some(t=>t.contains(e)))}}e.s(["Hidden",0,eZ,"HiddenFeatures",0,eX],2788);let e0=(0,C.createContext)(null);function e1({children:e,node:t}){let[n,r]=(0,C.useState)(null),i=e2(null!=t?t:n);return C.default.createElement(e0.Provider,{value:i},e,null===i&&C.default.createElement(eZ,{features:eX.Hidden,ref:e=>{var t,n;if(e){for(let i of null!=(n=null==(t=eo(e))?void 0:t.querySelectorAll("html > *, body > *"))?n:[])if(i!==document.body&&i!==document.head&&em(i)&&null!=i&&i.contains(e)){r(i);break}}}}))}function e2(e=null){var t;return null!=(t=(0,C.useContext)(e0))?t:e}function e5(e){let t={};for(let n of e)Object.assign(t,n(t));return t}e.s(["MainTreeProvider",0,e1,"useMainTreeNode",0,e2,"useRootContainers",0,eQ],185935);let e4=(b=()=>new Map,w={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:D(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=e5(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=e5(n.meta)),this},SCROLL_PREVENT(e){let t,n={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[eR()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=D();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(ex(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=e.querySelector(i);ex(s)&&!r(s)&&(o=s)}catch{}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),ex(e.target)&&ev(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(ex(e.target)&&!eb(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()},{passive:!1}),t.add(()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},{before({doc:e}){var n;let r=e.documentElement;t=Math.max(0,(null!=(n=e.defaultView)?n:window).innerWidth-r.clientWidth)},after({doc:e,d:n}){let r=e.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,t-i);n.style(r,"paddingRight",`${o}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(n)),r.forEach(({after:e})=>null==e?void 0:e(n))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},d=b(),p=new Set,{getSnapshot:()=>d,subscribe:e=>(p.add(e),()=>p.delete(e)),dispatch(e,...t){let n=w[e].call(d,...t);n&&(d=n,p.forEach(e=>e()))}});function e3(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=(0,C.useSyncExternalStore)(e4.subscribe,e4.getSnapshot,e4.getSnapshot),i=t?r.get(t):void 0;i&&i.count,M(()=>{if(!(!t||!e))return e4.dispatch("PUSH",t,n),()=>e4.dispatch("POP",t,n)},[e,t])}(ei(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}function e6(){let e,t=(e="u"<typeof document,"useSyncExternalStore"in C&&(0,C.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,r]=C.useState(I.isHandoffComplete);return n&&!1===I.isHandoffComplete&&r(!1),C.useEffect(()=>{!0!==n&&r(!0)},[n]),C.useEffect(()=>I.handoff(),[]),!t&&n}function e8(e){return(0,C.useMemo)(()=>e,Object.values(e))}e4.subscribe(()=>{let e=e4.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&e4.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&e4.dispatch("TEARDOWN",n)}}),e.s(["useScrollLock",0,e3],101852),e.s(["useSlot",0,e8],255743);let e7=Symbol();function e9(e,t=!0){return Object.assign(e,{[e7]:t})}function te(...e){let t=(0,C.useRef)(e);(0,C.useEffect)(()=>{t.current=e},[e]);let n=et(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[e7]))?void 0:n}e.s(["optionalRef",0,e9,"useSyncRefs",0,te],294316);let tt=(0,C.createContext)(()=>{});function tn({value:e,children:t}){return C.default.createElement(tt.Provider,{value:e},t)}e.s(["CloseProvider",0,tn],674175);let tr=(0,C.createContext)(null);tr.displayName="OpenClosedContext";var ti=((f=ti||{})[f.Open=1]="Open",f[f.Closed=2]="Closed",f[f.Closing=4]="Closing",f[f.Opening=8]="Opening",f);function to(){return(0,C.useContext)(tr)}function ts({value:e,children:t}){return C.default.createElement(tr.Provider,{value:e},t)}function ta({children:e}){return C.default.createElement(tr.Provider,{value:null},e)}e.s(["OpenClosedProvider",0,ts,"ResetOpenClosedProvider",0,ta,"State",0,ti,"useOpenClosed",0,to],233137);let tl=(0,C.createContext)(!1);function tc(e){return C.default.createElement(tl.Provider,{value:e.force},e.children)}let tu=(0,C.createContext)(void 0);function td(){return(0,C.useContext)(tu)}e.s(["useDisabled",0,td],601893);let tp=(0,C.createContext)(null);function tf(){let[e,t]=(0,C.useState)([]);return[e.length>0?e.join(" "):void 0,(0,C.useMemo)(()=>function(e){let n=et(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),r=(0,C.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return C.default.createElement(tp.Provider,{value:r},e.children)},[t])]}tp.displayName="DescriptionContext";let th=Object.assign(eq(function(e,t){let n=(0,C.useId)(),r=td(),{id:i=`headlessui-description-${n}`,...o}=e,s=function e(){let t=(0,C.useContext)(tp);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),a=te(t);M(()=>s.register(i),[i,s.register]);let l=e8({...s.slot,disabled:r||!1}),c={ref:a,...s.props,id:i};return eH()({ourProps:c,theirProps:o,slot:l,defaultTag:"p",name:s.name||"Description"})}),{});function tm(){let[e]=(0,C.useState)(D);return(0,C.useEffect)(()=>()=>
4e.dispose(),[e]),e}function tg(){let e=(0,C.useRef)(!1);return M(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function tx(e){let t=et(e),n=(0,C.useRef)(!1);(0,C.useEffect)(()=>(n.current=!1,()=>{n.current=!0,O(()=>{n.current&&t()})}),[t])}e.s(["Description",0,th,"useDescribedBy",0,function(){var e,t;return null!=(t=null==(e=(0,C.useContext)(tp))?void 0:e.value)?t:void 0},"useDescriptions",0,tf],35889),e.s(["useDisposables",0,tm],746725),e.s(["useOnUnmount",0,tx],526599);var tv=((h=tv||{})[h.Forwards=0]="Forwards",h[h.Backwards=1]="Backwards",h);function ty(){let e=(0,C.useRef)(0);return eD(!0,"keydown",t=>{"Tab"===t.key&&(e.current=+!!t.shiftKey)},!0),e}function tb(e,t){let n=(0,C.useRef)([]),r=et(e);(0,C.useEffect)(()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}},[r,...t])}e.s(["Direction",0,tv,"useTabDirection",0,ty],661130);let tw=[];function tk(){"loading"!==document.readyState&&((()=>{function e(e){if(!ex(e.target)||e.target===document.body||tw[0]===e.target)return;let t=e.target;t=t.closest(ek),tw.unshift(null!=t?t:e.target),(tw=tw.filter(e=>null!=e&&e.isConnected)).splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",tk))}function tj(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)em(n.current)&&t.add(n.current);return t}"u">typeof window&&"u">typeof document&&(document.addEventListener("DOMContentLoaded",tk),tk());var tS=((m=tS||{})[m.None=0]="None",m[m.InitialFocus=1]="InitialFocus",m[m.TabLock=2]="TabLock",m[m.FocusLock=4]="FocusLock",m[m.RestoreFocus=8]="RestoreFocus",m[m.AutoFocus=16]="AutoFocus",m);let tE=Object.assign(eq(function(e,t){let n=(0,C.useRef)(null),r=te(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;e6()||(a=0);let c=e$(n.current);!function(e,{ownerDocument:t}){let n=!!(8&e),r=function(e=!0){let t=(0,C.useRef)(tw.slice());return tb(([e],[n])=>{!0===n&&!1===e&&O(()=>{t.current.splice(0)}),!1===n&&!0===e&&(t.current=tw.slice())},[e,tw,t]),et(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(n);tb(()=>{n||el(null==t?void 0:t.body)&&eI(r())},[n]),tx(()=>{n&&eI(r())})}(a,{ownerDocument:c});let u=function(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=(0,C.useRef)(null),s=ei(!!(1&e),"focus-trap#initial-focus"),a=tg();return tb(()=>{if(0===e)return;if(!s){null!=i&&i.current&&eI(i.current);return}let l=n.current;l&&O(()=>{if(!a.current)return;let n=null==t?void 0:t.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===n){o.current=n;return}}else if(l.contains(n)){o.current=n;return}if(null!=r&&r.current)eI(r.current);else{if(16&e){if(eL(l,eS.First|eS.AutoFocus)!==eE.Error)return}else if(eL(l,eS.First)!==eE.Error)return;if(null!=i&&i.current&&(eI(i.current),(null==t?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=null==t?void 0:t.activeElement})},[i,s,e]),o}(a,{ownerDocument:c,container:n,initialFocus:i,initialFocusFallback:o});!function(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=tg(),s=!!(4&e);R(null==t?void 0:t.defaultView,"focus",e=>{if(!s||!o.current)return;let t=tj(r);eg(n.current)&&t.add(n.current);let a=i.current;if(!a)return;let l=e.target;eg(l)?tN(t,l)?(i.current=l,eI(l)):(e.preventDefault(),e.stopPropagation(),eI(a)):eI(i.current)},!0)}(a,{ownerDocument:c,container:n,containers:s,previousActiveElement:u});let d=ty(),p=et(e=>{if(!eg(n.current))return;let t=n.current;q(d.current,{[tv.Forwards]:()=>{eL(t,eS.First,{skipElements:[e.relatedTarget,o]})},[tv.Backwards]:()=>{eL(t,eS.Last,{skipElements:[e.relatedTarget,o]})}})}),f=ei(!!(2&a),"focus-trap#tab-lock"),h=tm(),m=(0,C.useRef)(!1),g=eH();return C.default.createElement(C.default.Fragment,null,f&&C.default.createElement(eZ,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eX.Focusable}),g({ourProps:{ref:r,onKeyDown(e){"Tab"==e.key&&(m.current=!0,h.requestAnimationFrame(()=>{m.current=!1}))},onBlur(e){if(!(4&a))return;let t=tj(s);eg(n.current)&&t.add(n.current);let r=e.relatedTarget;ex(r)&&"true"!==r.dataset.headlessuiFocusGuard&&(tN(t,r)||(m.current?eL(n.current,q(d.current,{[tv.Forwards]:()=>eS.Next,[tv.Backwards]:()=>eS.Previous})|eS.WrapAround,{relativeTo:e.target}):ex(e.target)&&eI(e.target)))}},theirProps:l,defaultTag:"div",name:"FocusTrap"}),f&&C.default.createElement(eZ,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:eX.Focusable}))}),{features:tS});function tN(e,t){for(let n of e)if(n.contains(t))return!0;return!1}var tC=e.i(174080);let tP=C.Fragment,tT=eq(function(e,t){let{ownerDocument:n=null,...r}=e,i=(0,C.useRef)(null),o=te(e9(e=>{i.current=e}),t),s=e$(i.current),a=function(e){let t=(0,C.useContext)(tl),n=(0,C.useContext)(tI),[r,i]=(0,C.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(I.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");
4if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,C.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,C.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),r}(null!=n?n:s),l=(0,C.useContext)(tM),c=tm(),u=e6(),d=eH();return tx(()=>{var e;a&&a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a))}),a&&u?(0,tC.createPortal)(C.default.createElement("div",{"data-headlessui-portal":"",ref:e=>{c.dispose(),l&&e&&c.add(l.register(e))}},d({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:tP,name:"Portal"})),a):null}),tA=C.Fragment,tI=(0,C.createContext)(null),tM=(0,C.createContext)(null);function tL(){let e=(0,C.useContext)(tM),t=(0,C.useRef)([]),n=et(n=>(t.current.push(n),e&&e.register(n),()=>r(n))),r=et(n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)}),i=(0,C.useMemo)(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,(0,C.useMemo)(()=>function({children:e}){return C.default.createElement(tM.Provider,{value:i},e)},[i])]}let tR=eq(function(e,t){let n=te(t),{enabled:r=!0,ownerDocument:i,...o}=e,s=eH();return r?C.default.createElement(tT,{...o,ownerDocument:i,ref:n}):s({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:tP,name:"Portal"})}),t_=eq(function(e,t){let{target:n,...r}=e,i={ref:te(t)},o=eH();return C.default.createElement(tI.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:tA,name:"Popover.Group"}))}),tO=Object.assign(tR,{Group:t_});e.s(["Portal",0,tO,"PortalGroup",0,t_,"useNestedPortals",0,tL],635307);var tD=e.i(247167);void 0!==tD.default&&"u">typeof globalThis&&"u">typeof Element&&(null==(E=null==tD.default?void 0:tD.default.env)?void 0:E.NODE_ENV)==="test"&&void 0===(null==(N=null==Element?void 0:Element.prototype)?void 0:N.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
5`)),[]});var tF=((g=tF||{})[g.None=0]="None",g[g.Closed=1]="Closed",g[g.Enter=2]="Enter",g[g.Leave=4]="Leave",g);function t$(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function tz(e,t,n,r){let[i,o]=(0,C.useState)(n),{hasFlag:s,addFlag:a,removeFlag:l}=function(e=0){let[t,n]=(0,C.useState)(e),r=(0,C.useCallback)(e=>n(e),[]),i=(0,C.useCallback)(e=>n(t=>t|e),[]),o=(0,C.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:(0,C.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,C.useCallback)(e=>n(t=>t^e),[])}}(e&&i?3:0),c=(0,C.useRef)(!1),u=(0,C.useRef)(!1);return M(()=>{var i;if(e){if(n&&o(!0),!t){n&&a(3);return}return null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=D();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=D();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let s=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===s.length?t():Promise.allSettled(s.map(e=>e.finished)).then(()=>{o||t()}),i.dispose}(e,r))})}),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,u.current||(n?(a(3),l(4)):(a(4),l(2)))},run(){u.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var e,i,s,a;u.current&&(null!=(a=null==(s=(i=t).getAnimations)?void 0:s.call(i))?a:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,tm()]),e?[i,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function tV(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!eJ(null!=(t=e.as)?t:tq)||1===C.default.Children.count(e.children)}e.s(["transitionDataAttributes",0,t$,"useTransition",0,tz],83733);let tB=(0,C.createContext)(null);tB.displayName="TransitionContext";var tH=((x=tH||{}).Visible="visible",x.Hidden="hidden",x);let tU=(0,C.createContext)(null);function tW(e){return"children"in e?tW(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function tG(e,t){let n=L(e),r=(0,C.useRef)([]),i=tg(),o=tm(),s=et((e,t=eB.Hidden)=>{let s=r.current.findIndex(({el:t})=>t===e);-1!==s&&(q(t,{[eB.Unmount](){r.current.splice(s,1)},[eB.Hidden](){r.current[s].state="hidden"}}),o.microTask(()=>{var e;!tW(r)&&i.current&&(null==(e=n.current)||e.call(n))}))}),a=et(e=>{let t=r.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>s(e,eB.Unmount)}),l=(0,C.useRef)([]),c=(0,C.useRef)(Promise.resolve()),u=(0,C.useRef)({enter:[],leave:[]}
5),d=et((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter(([t])=>t!==e)),null==t||t.chains.current[n].push([e,new Promise(e=>{l.current.push(e)})]),null==t||t.chains.current[n].push([e,new Promise(e=>{Promise.all(u.current[n].map(([e,t])=>t)).then(()=>e())})]),"enter"===n?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>r(n)):r(n)}),p=et((e,t,n)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>n(t))});return(0,C.useMemo)(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:c,chains:u}),[a,s,r,d,p,u,c])}tU.displayName="NestingContext";let tq=C.Fragment,tK=eV.RenderStrategy,tY=eq(function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=(0,C.useRef)(null),a=te(...tV(e)?[s,t]:null===t?[]:[t]);e6();let l=to();if(void 0===n&&null!==l&&(n=(l&ti.Open)===ti.Open),void 0===n)throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,C.useState)(n?"visible":"hidden"),d=tG(()=>{n||u("hidden")}),[p,f]=(0,C.useState)(!0),h=(0,C.useRef)([n]);M(()=>{!1!==p&&h.current[h.current.length-1]!==n&&(h.current.push(n),f(!1))},[h,n]);let m=(0,C.useMemo)(()=>({show:n,appear:r,initial:p}),[n,r,p]);M(()=>{n?u("visible"):tW(d)||null===s.current||u("hidden")},[n,d]);let g={unmount:i},x=et(()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)}),v=et(()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}),y=eH();return C.default.createElement(tU.Provider,{value:d},C.default.createElement(tB.Provider,{value:m},y({ourProps:{...g,as:C.Fragment,children:C.default.createElement(tJ,{ref:a,...g,...o,beforeEnter:x,beforeLeave:v})},theirProps:{},defaultTag:C.Fragment,features:tK,visible:"visible"===c,name:"Transition"})))}),tJ=eq(function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:f,leaveFrom:h,leaveTo:m,...g}=e,[x,v]=(0,C.useState)(null),y=(0,C.useRef)(null),b=tV(e),w=te(...b?[y,t,v]:null===t?[]:[t]),k=null==(n=g.unmount)||n?eB.Unmount:eB.Hidden,{show:j,appear:S,initial:E}=function(){let e=(0,C.useContext)(tB);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[N,P]=(0,C.useState)(j?"visible":"hidden"),T=function(){let e=(0,C.useContext)(tU);if(null===e)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:A,unregister:I}=T;M(()=>A(y),[A,y]),M(()=>{if(k===eB.Hidden&&y.current)return j&&"visible"!==N?void P("visible"):q(N,{hidden:()=>I(y),visible:()=>A(y)})},[N,y,A,I,j,k]);let L=e6();M(()=>
5{if(b&&L&&"visible"===N&&null===y.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,N,L,b]);let R=E&&!S,_=S&&j&&E,O=(0,C.useRef)(!1),D=tG(()=>{O.current||(P("hidden"),I(y))},T),F=et(e=>{O.current=!0,D.onStart(y,e?"enter":"leave",e=>{"enter"===e?null==o||o():"leave"===e&&(null==a||a())})}),$=et(e=>{let t=e?"enter":"leave";O.current=!1,D.onStop(y,t,e=>{"enter"===e?null==s||s():"leave"===e&&(null==l||l())}),"leave"!==t||tW(D)||(P("hidden"),I(y))});(0,C.useEffect)(()=>{b&&i||(F(j),$(j))},[j,b,i]);let[,z]=tz(!(!i||!b||!L||R),x,j,{start:F,end:$}),V=eK({ref:w,className:(null==(r=ez(g.className,_&&c,_&&u,z.enter&&c,z.enter&&z.closed&&u,z.enter&&!z.closed&&d,z.leave&&f,z.leave&&!z.closed&&h,z.leave&&z.closed&&m,!z.transition&&j&&p))?void 0:r.trim())||void 0,...t$(z)}),B=0;"visible"===N&&(B|=ti.Open),"hidden"===N&&(B|=ti.Closed),j&&"hidden"===N&&(B|=ti.Opening),j||"visible"!==N||(B|=ti.Closing);let H=eH();return C.default.createElement(tU.Provider,{value:D},C.default.createElement(ts,{value:B},H({ourProps:V,theirProps:g,defaultTag:tq,features:tK,visible:"visible"===N,name:"Transition.Child"})))}),tX=eq(function(e,t){let n=null!==(0,C.useContext)(tB),r=null!==to();return C.default.createElement(C.default.Fragment,null,!n&&r?C.default.createElement(tY,{ref:t,...e}):C.default.createElement(tJ,{ref:t,...e}))}),tZ=Object.assign(tY,{Child:tX,Root:tY});e.s(["Transition",0,tZ,"TransitionChild",0,tX],854056);var tQ=((v=tQ||{})[v.Open=0]="Open",v[v.Closed=1]="Closed",v),t0=((y=t0||{})[y.SetTitleId=0]="SetTitleId",y);let t1={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},t2=(0,C.createContext)(null);function t5(e){let t=(0,C.useContext)(t2);if(null===t){let t=Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,t5),t}return t}function t4(e,t){return q(t.type,t1,e,t)}t2.displayName="DialogContext";let t3=eq(function(e,t){let n=(0,C.useId)(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:c=!1,unmount:u=!1,...d}=e,p=(0,C.useRef)(!1);a="dialog"===a||"alertdialog"===a?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog");let f=to();void 0===i&&null!==f&&(i=(f&ti.Open)===ti.Open);let h=(0,C.useRef)(null),m=te(h,t),g=e$(h.current),x=+!i,[v,y]=(0,C.useReducer)(t4,{titleId:null,descriptionId:null,panelRef:(0,C.createRef)()}),b=et(()=>o(!1)),w=et(e=>y({type:0,id:e})),k=!!e6()&&0===x,[j,S]=tL(),E=e2(),{resolveContainers:N}=eQ({mainTreeNode:E,portals:j,defaultContainers:[{get current(){var T;return null!=(T=v.panelRef.current)?T:h.current}}]}),A=null!==f&&(f&ti.Closing)===ti.Closing;ef(!c&&!A&&k,{allowed:et(()=>{var e,t;return[null!=(t=null==(e=h.current)?void 0:e.closest("[data-headlessui-portal]"))?t:null]}),disallowed:et(()=>{var e;return[null!=(e=null==E?void 0:E.closest("body > *:not(#headlessui-portal-root)"))?e:null]})});let I=Q.get(null);M(()=>{if(k)return I.actions.push(r),()=>I.actions.pop(r)},[I,r,k]);let L=en(I,(0,C.useCallback)(e=>I.selectors.isTop(e,r),[I,r]));eF(L,N,e=>{e.preventDefault(),b()}),function(e,t="u">typeof document?document.defaultView:null,n){let r=ei(e,"escape");R(t,"keydown",e=>{r&&(e.defaultPrevented||e.key===P.Escape&&n(e))})}(L,null==g?void 0:g.defaultView,e=>{e.preventDefault(),e.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur(),b()}),e3(!c&&!A&&k,g,N),ew(k,h,b);let[_,O]=tf(),D=(0,C.useMemo)(()=>[{dialogState:x,close:b,setTitleId:w,unmount:u},v],[x,b,w,u,v]),F=e8({open:0===x}),$={ref:m,id:r,role:a,tabIndex:-1,"aria-modal":c?void 0:0===x||void 0,"aria-labelledby":v.titleId,"aria-describedby":_,unmount:u},z=!function(){var e;let[t]=(0,C.useState)(()=>"u">typeof window&&"function"==typeof window.matchMedia?window.matchMedia("(pointer: coarse)"):null),[n,r]=(0,C.useState)(null!=(e=null==t?void 0:t.matches)&&e);return M(()=>{if(t)return t.addEventListener("change",e),()=>t.removeEventListener("change",e);function e(e){r(e.matches)}},[t]),n}(),V=tS.None;k&&!c&&(V|=tS.RestoreFocus,V|=tS.TabLock,l&&(V|=tS.AutoFocus),z&&(V|=tS.InitialFocus));let B=eH();return C.default.createElement(ta,null,C.default.createElement(tc,{force:!0}
5,C.default.createElement(tO,null,C.default.createElement(t2.Provider,{value:D},C.default.createElement(t_,{target:h},C.default.createElement(tc,{force:!1},C.default.createElement(O,{slot:F},C.default.createElement(S,null,C.default.createElement(tE,{initialFocus:s,initialFocusFallback:h,containers:N,features:V},C.default.createElement(tn,{value:b},B({ourProps:$,theirProps:d,slot:F,defaultTag:t6,features:t8,visible:0===x,name:"Dialog"})))))))))))}),t6="div",t8=eV.RenderStrategy|eV.Static,t7=eq(function(e,t){let{transition:n=!1,open:r,...i}=e,o=to(),s=e.hasOwnProperty("open")||null!==o,a=e.hasOwnProperty("onClose");if(!s&&!a)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&"boolean"!=typeof e.open)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if("function"!=typeof e.onClose)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(void 0!==r||n)&&!i.static?C.default.createElement(e1,null,C.default.createElement(tZ,{show:r,transition:n,unmount:i.unmount},C.default.createElement(t3,{ref:t,...i}))):C.default.createElement(e1,null,C.default.createElement(t3,{ref:t,open:r,...i}))}),t9=eq(function(e,t){let n=(0,C.useId)(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=t5("Dialog.Panel"),c=te(t,l.panelRef),u=e8({open:0===s}),d=et(e=>{e.stopPropagation()}),p=i?tX:C.Fragment,f=eH();return C.default.createElement(p,{...i?{unmount:a}:{}},f({ourProps:{ref:c,id:r,onClick:d},theirProps:o,slot:u,defaultTag:"div",name:"Dialog.Panel"}))}),ne=(eq(function(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=t5("Dialog.Backdrop"),s=e8({open:0===i}),a=n?tX:C.Fragment,l=eH();return C.default.createElement(a,{...n?{unmount:o}:{}},l({ourProps:{ref:t,"aria-hidden":!0},theirProps:r,slot:s,defaultTag:"div",name:"Dialog.Backdrop"}))}),eq(function(e,t){let n=(0,C.useId)(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=t5("Dialog.Title"),a=te(t);(0,C.useEffect)(()=>(s(r),()=>s(null)),[r,s]);let l=e8({open:0===o});return eH()({ourProps:{ref:a,id:r},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),nt=Object.assign(t7,{Panel:t9,Title:ne,Description:th});e.s(["Dialog",0,nt,"DialogPanel",0,t9,"DialogTitle",0,ne],854878);let nn=(0,e.i(475254).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",0,nn],871689)},523870,897250,503116,972520,e=>{"use strict";let t,n;var r,i,o,s=e.i(366732),a=e.i(308528),l=e.i(918789),c=e.i(742531),u=e.i(207670),d=e.i(919056),p=e.i(843476),f=e.i(522016),h=e.i(531278),m=e.i(271645),g=e.i(643531),x=e.i(854878),v=e.i(854056),y=e.i(871689),b=e.i(37727),w=e.i(174080),k=e.i(878894),j=e.i(727612),S=e.i(495470),E=e.i(635307),N=e.i(344523),C=e.i(989895),P=e.i(664659),T=e.i(657688),A=e.i(846932),I=e.i(555436),M=e.i(778917),L=e.i(88653),R=e.i(115057),_=e.i(107233),O=e.i(260619),D=e.i(387951),F=e.i(514764),$=e.i(887652),z=e.i(591994),V=e.i(387652),B=e.i(895420),H=e.i(870014),U=e.i(433768),W=e.i(310542),G=e.i(846696),q=e.i(101048),K=e.i(832724),Y=e.i(952571),J=e.i(89128),X=e.i(164668),Z=e.i(655900),Q=e.i(286536),ee=e.i(77705),et=e.i(998307),en=e.i(656272),er=e.i(752044),ei=e.i(174886),eo=e.i(475254);let es=(0,eo.default)("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);var ea=e.i(231178);let el=(0,m.createContext)(null);var ec=e.i(287022),eu=e.i(674008);let ed=e=>!e.isLayoutDirty&&e.willUpdate(!1),ep=({children:e,id:t,inherit:n=!0})=>{let r=(0,m.useContext)(ea.LayoutGroupContext),i=(0,m.useContext)(el),[o,s]=function(){let e,t=(e=(0,m.useRef)(!1),(0,eu.useIsomorphicLayoutEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),e),[n,r]=(0,m.useState)(0),i=(0,m.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,m.useCallback)(()=>ec.frame.postRender(i),[i]),n]}
5(),a=(0,m.useRef)(null),l=r.id||i;if(null===a.current){let e,i,o,s;(!0==(!0===(s=n))||"id"===s)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:!0===n&&r.group||(e=new Set,i=new WeakMap,{add:t=>{e.add(t),i.set(t,t.addEventListener("willUpdate",o))},remove:t=>{e.delete(t);let n=i.get(t);n&&(n(),i.delete(t)),o()},dirty:o=()=>e.forEach(ed)})}}let c=(0,m.useMemo)(()=>({...a.current,forceRender:o}),[s]);return(0,p.jsx)(ea.LayoutGroupContext.Provider,{value:c,children:e})};var ef=e.i(783222),eh=e.i(433336),em=e.i(394487),eg=e.i(914189),ex=e.i(144279),ev=e.i(255743),ey=e.i(294316),eb=e.i(83733),ew=e.i(674175),ek=e.i(233137),ej=e.i(233538),eS=e.i(813581),eE=e.i(397701),eN=e.i(402155),eC=e.i(700020);let eP=null!=(o=m.default.startTransition)?o:function(e){e()};var eT=e.i(998348),eA=((t=eA||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),eI=((n=eI||{})[n.ToggleDisclosure=0]="ToggleDisclosure",n[n.CloseDisclosure=1]="CloseDisclosure",n[n.SetButtonId=2]="SetButtonId",n[n.SetPanelId=3]="SetPanelId",n[n.SetButtonElement=4]="SetButtonElement",n[n.SetPanelElement=5]="SetPanelElement",n);let eM={0:e=>({...e,disclosureState:(0,eE.match)(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId},4:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},5:(e,t)=>e.panelElement===t.element?e:{...e,panelElement:t.element}},eL=(0,m.createContext)(null);function eR(e){let t=(0,m.useContext)(eL);if(null===t){let t=Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,eR),t}return t}eL.displayName="DisclosureContext";let e_=(0,m.createContext)(null);e_.displayName="DisclosureAPIContext";let eO=(0,m.createContext)(null);function eD(e,t){return(0,eE.match)(t.type,eM,e,t)}eO.displayName="DisclosurePanelContext";let eF=m.Fragment,e$=eC.RenderFeatures.RenderStrategy|eC.RenderFeatures.Static,ez=(0,eC.forwardRefWithAs)(function(e,t){let{defaultOpen:n=!1,...r}=e,i=(0,m.useRef)(null),o=(0,ey.useSyncRefs)(t,(0,ey.optionalRef)(e=>{i.current=e},void 0===e.as||(0,eC.isFragment)(e.as))),s=(0,m.useReducer)(eD,{disclosureState:+!n,buttonElement:null,panelElement:null,buttonId:null,panelId:null}),[{disclosureState:a,buttonId:l},c]=s,u=(0,eg.useEvent)(e=>{c({type:1});let t=(0,eN.getOwnerDocument)(i.current);if(!t||!l)return;let n=e?eS.isHTMLorSVGElement(e)?e:"current"in e&&eS.isHTMLorSVGElement(e.current)?e.current:t.getElementById(l):t.getElementById(l);null==n||n.focus()}),d=(0,m.useMemo)(()=>({close:u}),[u]),p=(0,ev.useSlot)({open:0===a,close:u}),f=(0,eC.useRender)();return m.default.createElement(eL.Provider,{value:s},m.default.createElement(e_.Provider,{value:d},m.default.createElement(ew.CloseProvider,{value:u},m.default.createElement(ek.OpenClosedProvider,{value:(0,eE.match)(a,{0:ek.State.Open,1:ek.State.Closed})},f({ourProps:{ref:o},theirProps:r,slot:p,defaultTag:eF,name:"Disclosure"})))))}),eV=(0,eC.forwardRefWithAs)(function(e,t){let n=(0,m.useId)(),{id:r=`headlessui-disclosure-button-${n}`,disabled:i=!1,autoFocus:o=!1,...s}=e,[a,l]=eR("Disclosure.Button"),c=(0,m.useContext)(eO),u=null!==c&&c===a.panelId,d=(0,m.useRef)(null),p=(0,ey.useSyncRefs)(d,t,(0,eg.useEvent)(e=>{if(!u)return l({type:4,element:e})}));(0,m.useEffect)(()=>{if(!u)return l({type:2,buttonId:r}),()=>{l({type:2,buttonId:null})}},[r,l,u]);let f=(0,eg.useEvent)(e=>{var t;if(u){if(1===a.disclosureState)return;switch(e.key){case eT.Keys.Space:case eT.Keys.Enter:e.preventDefault(),e.stopPropagation(),l({type:0}),null==(t=a.buttonElement)||t.focus()}}else switch(e.key){case eT.Keys.Space:case eT.Keys.Enter:e.preventDefault(),e.stopPropagation(),l({type:0})}}),h=(0,eg.useEvent)(e=>{e.key===eT.Keys.Space&&e.preventDefault()}),g=(0,eg.useEvent)(e=>{var t;(0,ej.isDisabledReactIssue7711)(e.currentTarget)||i||(u?(l({type:0}),null==(t=a.buttonElement)||t.focus()):l({type:0}))}),{isFocusVisible:x,focusProps:v}=(0,ef.useFocusRing)({autoFocus:o}),{isHovered:y,hoverProps:b}=(0,eh.useHover)({isDisabled:i}),{pressed:w,pressProps:k}=(0,em.useActivePress)({disabled:i}),j=(0,ev.useSlot)({open:0===a.disclosureState,hover:y,active:w,disabled:i,focus:x,autofocus:o}),S=(0,ex.useResolveButtonType)(e,a.buttonElement),E=u?(0,eC.mergeProps)({ref:p,type:S,disabled:i||void 0,autoFocus:o,onKeyDown:f,onClick:g},v,b,k):(0,eC.mergeProps)({ref:p,id:r,type:S,"aria-expanded":0===a.disclosureState,"aria-controls":a.panelElement?a.panelId:void 0,disabled:i||void 0,autoFocus:o,onKeyDown:f,onKeyUp:h,onClick:g},v,b,k);return(0,eC.useRender)()({ourProps:E,theirProps:s,slot:j,defaultTag:"button",name:"Disclosure.Button"})}),eB=(0,eC.forwardRefWithAs)(function(e,t){let n=(0,m.useId)(),{id:r=`headlessui-disclosure-panel-${n}`,transition:i=!1,...o}=e,[s,a]=eR("Disclosure.Panel"),{close:l}=function e(t){let n=(0,m.useContext)(e_);if(null===n){let n=Error(`<${t} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,e),n}return n}
5("Disclosure.Panel"),[c,u]=(0,m.useState)(null),d=(0,ey.useSyncRefs)(t,(0,eg.useEvent)(e=>{eP(()=>a({type:5,element:e}))}),u);(0,m.useEffect)(()=>(a({type:3,panelId:r}),()=>{a({type:3,panelId:null})}),[r,a]);let p=(0,ek.useOpenClosed)(),[f,h]=(0,eb.useTransition)(i,c,null!==p?(p&ek.State.Open)===ek.State.Open:0===s.disclosureState),g=(0,ev.useSlot)({open:0===s.disclosureState,close:l}),x={ref:d,id:r,...(0,eb.transitionDataAttributes)(h)},v=(0,eC.useRender)();return m.default.createElement(ek.ResetOpenClosedProvider,null,m.default.createElement(eO.Provider,{value:s.panelId},v({ourProps:x,theirProps:o,slot:g,defaultTag:"div",features:e$,visible:f,name:"Disclosure.Panel"})))}),eH=Object.assign(ez,{Button:eV,Panel:eB}),eU=(0,eo.default)("menu",[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]]);var eW=(e,t,n,r,i,o,s,a)=>{let l=document.documentElement,c=["light","dark"];function u(t){var n;(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&o?i.map(e=>o[e]||e):i;n?(l.classList.remove(...r),l.classList.add(o&&o[t]?o[t]:t)):l.setAttribute(e,t)}),n=t,a&&c.includes(n)&&(l.style.colorScheme=n)}if(r)u(r);else try{let e=localStorage.getItem(t)||n,r=s&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(r)}catch(e){}},eG=["light","dark"],eq="(prefers-color-scheme: dark)",eK="u"<typeof window,eY=m.createContext(void 0),eJ={setTheme:e=>{},themes:[]},eX=()=>{var e;return null!=(e=m.useContext(eY))?e:eJ},eZ=e=>m.useContext(eY)?m.createElement(m.Fragment,null,e.children):m.createElement(e0,{...e}),eQ=["light","dark"],e0=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:r=!0,storageKey:i="theme",themes:o=eQ,defaultTheme:s=n?"system":"light",attribute:a="data-theme",value:l,children:c,nonce:u,scriptProps:d})=>{let[p,f]=m.useState(()=>e2(i,s)),[h,g]=m.useState(()=>"system"===p?e4():p),x=l?Object.values(l):o,v=m.useCallback(e=>{let i=e;if(!i)return;"system"===e&&n&&(i=e4());let o=l?l[i]:i,c=t?e5(u):null,d=document.documentElement,p=e=>{"class"===e?(d.classList.remove(...x),o&&d.classList.add(o)):e.startsWith("data-")&&(o?d.setAttribute(e,o):d.removeAttribute(e))};if(Array.isArray(a)?a.forEach(p):p(a),r){let e=eG.includes(s)?s:null,t=eG.includes(i)?i:e;d.style.colorScheme=t}null==c||c()},[u]),y=m.useCallback(e=>{let t="function"==typeof e?e(p):e;f(t);try{localStorage.setItem(i,t)}catch(e){}},[p]),b=m.useCallback(t=>{g(e4(t)),"system"===p&&n&&!e&&v("system")},[p,e]);m.useEffect(()=>{let e=window.matchMedia(eq);return e.addListener(b),b(e),()=>e.removeListener(b)},[b]),m.useEffect(()=>{let e=e=>{e.key===i&&(e.newValue?f(e.newValue):y(s))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[y]),m.useEffect(()=>{v(null!=e?e:p)},[e,p]);let w=m.useMemo(()=>({theme:p,setTheme:y,forcedTheme:e,resolvedTheme:"system"===p?h:p,themes:n?[...o,"system"]:o,systemTheme:n?h:void 0}),[p,y,e,h,n,o]);return m.createElement(eY.Provider,{value:w},m.createElement(e1,{forcedTheme:e,storageKey:i,attribute:a,enableSystem:n,enableColorScheme:r,defaultTheme:s,value:l,themes:o,nonce:u,scriptProps:d}),c)},e1=m.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:s,themes:a,nonce:l,scriptProps:c})=>{let u=JSON.stringify([n,t,o,e,a,s,r,i]).slice(1,-1);return m.createElement("script",{...c,suppressHydrationWarning:!0,nonce:"u"<typeof window?l:"",dangerouslySetInnerHTML:{__html:`(${eW.toString()})(${u})`}})}),e2=(e,t)=>{let n;if(!eK){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},e5=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},e4=e=>
5(e||(e=window.matchMedia(eq)),e.matches?"dark":"light");let e3=(0,eo.default)("moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),e6=(0,eo.default)("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);e.s(["Sun",0,e6],897250);let e8=(0,eo.default)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]),e7=(0,eo.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]),e9=(0,eo.default)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),te=(0,eo.default)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),tt=(0,eo.default)("file-check-2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]),tn=(0,eo.default)("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);e.s(["Clock",0,tn],503116);let tr=(0,eo.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]),ti=(0,eo.default)("file-check",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]),to=(0,eo.default)("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),ts=(0,eo.default)("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),ta=(0,eo.default)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]),tl=(0,eo.default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),tc=(0,eo.default)("tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]),tu=(0,eo.default)("key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]),td=(0,eo.default)("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);var tp=e.i(798031),tp=tp;let tf=(0,eo.default)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),th=(0,eo.default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",0,th],972520);let tm=(0,eo.default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),tg=(0,eo.default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),tx=(0,eo.default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}
5]]),tv=(0,eo.default)("lock-open",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]]),ty=(0,eo.default)("tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]),tb=(0,eo.default)("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]),tw=(0,eo.default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var tk=e.i(618566);let tj=(0,eo.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),tS=(0,eo.default)("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),tE=(0,eo.default)("skip-forward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]),tN=(0,eo.default)("cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]),tC=(0,eo.default)("settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),tP=(0,eo.default)("megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);var tT=(0,s.__commonJS)({"../../node_modules/lz-string/libs/lz-string.js"(t,n){var r=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={};function i(e,t){if(!r[e]){r[e]={};for(var n=0;n<e.length;n++)r[e][e.charAt(n)]=n}return r[e][t]}var o={compressToBase64:function(e){if(null==e)return"";var n=o._compress(e,6,function(e){return t.charAt(e)});switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:o._decompress(e.length,32,function(n){return i(t,e.charAt(n))})},compressToUTF16:function(t){return null==t?"":o._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:o._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=o.compress(e),n=new Uint8Array(2*t.length),r=0,i=t.length;r<i;r++){var s=t.charCodeAt(r);n[2*r]=s>>>8,n[2*r+1]=s%256}return n},decompressFromUint8Array:function(t){if(null==t)return o.decompress(t);for(var n=Array(t.length/2),r=0,i=n.length;r<i;r++)n[r]=256*t[2*r]+t[2*r+1];var s=[];
5return n.forEach(function(t){s.push(e(t))}),o.decompress(s.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":o._compress(e,6,function(e){return n.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),o._decompress(e.length,32,function(t){return i(n,e.charAt(t))}))},compress:function(t){return o._compress(t,16,function(t){return e(t)})},_compress:function(e,t,n){if(null==e)return"";var r,i,o,s={},a={},l="",c="",u="",d=2,p=3,f=2,h=[],m=0,g=0;for(o=0;o<e.length;o+=1)if(l=e.charAt(o),Object.prototype.hasOwnProperty.call(s,l)||(s[l]=p++,a[l]=!0),c=u+l,Object.prototype.hasOwnProperty.call(s,c))u=c;else{if(Object.prototype.hasOwnProperty.call(a,u)){if(256>u.charCodeAt(0)){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(r=0,i=1;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete a[u]}else for(i=s[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++),s[c]=p++,u=String(l)}if(""!==u){if(Object.prototype.hasOwnProperty.call(a,u)){if(256>u.charCodeAt(0)){for(r=0;r<f;r++)m<<=1,g==t-1?(g=0,h.push(n(m)),m=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}else{for(r=0,i=1;r<f;r++)m=m<<1|i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1}0==--d&&(d=Math.pow(2,f),f++),delete a[u]}else for(i=s[u],r=0;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(r=0,i=2;r<f;r++)m=m<<1|1&i,g==t-1?(g=0,h.push(n(m)),m=0):g++,i>>=1;for(;;){if(m<<=1,g==t-1){h.push(n(m));break}g++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:o._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,n,r){var i,o,s,a,l,c,u,d=[],p=4,f=4,h=3,m="",g=[],x={val:r(0),position:n,index:1};for(i=0;i<3;i+=1)d[i]=i;for(s=0,l=4,c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;switch(s){case 0:for(s=0,l=256,c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;u=e(s);break;case 1:for(s=0,l=65536,c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;u=e(s);break;case 2:return""}for(d[3]=u,o=u,g.push(u);;){if(x.index>t)return"";for(s=0,l=Math.pow(2,h),c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;switch(u=s){case 0:for(s=0,l=256,c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;d[f++]=e(s),u=f-1,p--;break;case 1:for(s=0,l=65536,c=1;c!=l;)a=x.val&x.position,x.position>>=1,0==x.position&&(x.position=n,x.val=r(x.index++)),s|=(a>0)*c,c<<=1;d[f++]=e(s),u=f-1,p--;break;case 2:return g.join("")}if(0==p&&(p=Math.pow(2,h),h++),d[u])m=d[u];else{if(u!==f)return null;m=o+o.charAt(0)}g.push(m),d[f++]=o+m.charAt(0),p--,o=m,0==p&&(p=Math.pow(2,h),h++)}}};return o}();if("function"==typeof define&&define.amd)e.r,exports,module,void 0!==r&&e.v(r);else void 0!==n&&null!=n?n.exports=r:"u">typeof angular&&null!=angular&&angular.module("LZString",[]).factory("LZString",function(){return r})}}),tA=new Intl.DateTimeFormat("en-GB",{day:"2-digit",month:"short",year:"numeric"});function tI(e){let t={engineVersion:e,frameworkVersion:null,raw:e},n=a.default.parse(e);if(n&&(t.engineVersion=`${n.major}.${n.minor}.${n.patch}`,n.build&&n.build.length>0)){let e=n.build.join(".").match(/^jairf\.(.+)$/);e&&e[1]&&(t.frameworkVersion=e[1])}return t}function tM(...e){return(0,d.twMerge)((0,u.clsx)(e))}var tL=["jentic.com","www.jentic.com"];function tR(e){var{href:t,children:n,className:r}=e,i=(0,s.__objRest)(e,["href","children","className"]);let o="string"==typeof t;return o&&function(e){if(!/^([a-z][a-z0-9+.-]*:\/\/|\/\/)/i.test(e))return!1;try{let t=new URL(e.startsWith("//")?`http:${e}`:e);
5if(tL.some(e=>t.hostname===e||t.hostname.endsWith(`.${e}`)))return!1}catch(t){console.error(`Invalid URL encountered in isExternal: ${e}`,t)}return!0}(t)||!o?(0,p.jsx)("a",(0,s.__spreadProps)((0,s.__spreadValues)({href:o?t:void 0,className:r,target:"_blank",rel:"noopener noreferrer"},i),{children:n})):(0,p.jsx)(f.default,(0,s.__spreadProps)((0,s.__spreadValues)({href:t},i),{className:r,children:n}))}var t_={xs:"h-4 w-4",sm:"h-6 w-6",md:"h-8 w-8",lg:"h-10 w-10",xl:"h-12 w-12"},tO={default:"text-foreground",primary:"text-primary",muted:"text-muted-foreground"};function tD({size:e="md",variant:t="muted",text:n,description:r,className:i,centered:o=!1}){let s=(0,p.jsx)(h.Loader2,{className:tM("animate-spin",t_[e],tO[t],i)});if(!n&&!r)return o?(0,p.jsx)("div",{className:"flex flex-1 items-center justify-center",children:s}):s;let a=(0,p.jsxs)("div",{className:"flex flex-col items-center space-y-2",children:[s,n&&(0,p.jsx)("h3",{className:"text-foreground text-lg font-medium",children:n}),r&&(0,p.jsx)("p",{className:"text-muted-foreground text-sm",children:r})]});return o?(0,p.jsx)("div",{className:"flex flex-1 items-center justify-center",children:a}):a}var tF=e=>{if("function"!=typeof window.gtag)return void console.warn("window.gtag is not available. GA event tracking might not work.");let{action:t,category:n,label:r,value:i}=e,o=(0,s.__objRest)(e,["action","category","label","value"]),a={};n&&(a.event_category=n),r&&(a.event_label=r),"number"==typeof i&&(a.value=i),Object.entries(o).forEach(([e,t])=>{void 0!==t&&"action"!==e&&(a[e]=t)}),console.log("GA event:",t,a);try{window.gtag("event",t,a)}catch(e){console.error("[GA4] Error sending event:",e)}},t$={installMPC_CTA:{action:"install_mpc_cta",category:"cta",label:"install_jentic_mpc"},startBuilding_CTA:{action:"start_building_cta",category:"cta",label:"start_building"},seeDemo_CTA:{action:"see_demo_cta",category:"cta",label:"see_demo"},open_CTA:{action:"open_cta",category:"cta",label:"give_oak_to_agents"},secure_CTA:{action:"secure_cta",category:"cta",label:"see_how_jentic_works"},reliable_CTA:{action:"reliable_cta",category:"cta",label:"learn_more_about_jentic_enterprise"},scorecard_page_view:{action:"scorecard_page_view",category:"scorecard",label:"landed_on_scorecard_page"},scorecard_api_uploaded:{action:"scorecard_api_uploaded",category:"scorecard",label:"api_uploaded"},scorecard_analysis_complete:{action:"scorecard_analysis_complete",category:"scorecard",label:"analysis_processing_finished"},scorecard_full_access_clicked:{action:"scorecard_full_access_clicked",category:"scorecard",label:"clicked_get_full_access"},scorecard_account_created:{action:"scorecard_account_created",category:"scorecard",label:"account_created_for_scorecard"},scorecard_signed_in:{action:"scorecard_signed_in",category:"scorecard",label:"signed_in_for_scorecard"},scorecard_already_authenticated:{action:"scorecard_already_authenticated",category:"scorecard",label:"already_logged_in_when_clicked_full_access"},scorecard_full_view:{action:"scorecard_full_view",category:"scorecard",label:"viewed_full_scorecard"}};function tz(e){let t=m.default.forwardRef((t,n)=>{let{gaEventKey:r,onClick:i}=t,o=(0,s.__objRest)(t,["gaEventKey","onClick"]);return(0,p.jsx)(e,(0,s.__spreadProps)((0,s.__spreadValues)({},o),{onClick:e=>{r&&t$[r]&&tF(t$[r]),i&&i(e)},ref:n}))});return t.displayName=`withGAEvent(${e.displayName||e.name||"Component"})`,t}var tV=(0,u.clsx)("inline-flex cursor-pointer select-none items-center justify-center rounded-lg font-medium","focus-visible:ring-ring transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50"),tB={primary:"border border-btn-primary-border bg-btn-primary text-btn-primary-text hover:bg-btn-primary-hover hover:border-btn-primary-border-hover",secondary:"border border-btn-secondary-border bg-btn-secondary text-btn-secondary-text hover:bg-btn-secondary-hover hover:border-btn-secondary-border-hover",ghost:"hover:bg-muted hover:text-foreground",filter:"border border-border bg-background text-muted-foreground hover:text-foreground","filter-active":"border border-border bg-card text-foreground",cta:"bg-primary hover:bg-primary/90 text-primary-foreground","landing-primary":"landing-btn landing-btn-primary","landing-secondary":"landing-btn landing-btn-secondary"},tH={sm:"h-9 px-3 text-sm",md:"h-10 px-4 py-2 text-sm",lg:"h-11 px-8 text-base",icon:"h-9 w-9"},tU=(0,m.forwardRef)(function(e,t){var{variant:n="primary",size:r="md",className:i,isLoading:o=!1,loadingText:a,children:l,disabled:c}=e,d=(0,s.__objRest)(e,["variant","size","className","isLoading","loadingText","children","disabled"]);let f="landing-primary"===n||"landing-secondary"===n?(0,u.clsx)(tB[n],i):(0,u.clsx)(tV,tB[n],tH[r],i),h=c||o,m=o?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(tD,{size:"xs",className:"mr-2"}),null!=a?a:l]}):l;return void 0!==d.href?(0,p.jsx)(tR,(0,s.__spreadProps)((0,s.__spreadValues)({},d),{className:f,onClick:e=>{var t;if(o)return void e.preventDefault();if(d.onClick&&d.onClick(e),!e.isDefaultPrevented()&&(null==(t=d.href)?void 0:t.startsWith("#"))){e.preventDefault();let t=d.href.substring(1),n=document.getElementById(t);null==n||n.scrollIntoView({behavior:"smooth"})}},"aria-disabled":o,children:m})):(0,p.jsx)("button",(0,s.__spreadProps)((0,s.__spreadValues)({ref:t,type:"button"},d),{className:f,disabled:h,children:m}))}),tW=tz(tU),tG={sm:{box:"h-5 w-5",icon:"h-3.5 w-3.5"},md:{box:"h-5 w-5",icon:"h-3.5 w-3.5"},lg:{box:"h-6 w-6",icon:"h-4 w-4"}};function tq({isOpen:e,onClose:t,onBack:n,showBack:r=!1,title:i,children:o,panelClassName:s,afterLeave:a,footer:l,preventClose:c=!1}){return(0,m.useEffect)(()=>
5{if(!e||!c)return;let n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,c,t]),(0,p.jsx)(v.Transition,{appear:!0,show:e,as:m.Fragment,children:(0,p.jsxs)(x.Dialog,{as:"div",className:"relative z-50",onClose:c?()=>{}:t,children:[(0,p.jsx)(v.TransitionChild,{as:m.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,p.jsx)("div",{className:"fixed inset-0 bg-black/30 backdrop-blur-sm"})}),(0,p.jsx)("div",{className:"fixed inset-0 overflow-y-auto overflow-x-visible",children:(0,p.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,p.jsx)(v.TransitionChild,{as:m.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",afterLeave:a,children:(0,p.jsxs)(x.DialogPanel,{className:tM("bg-card border-border relative flex w-full max-w-md transform flex-col overflow-visible rounded-2xl p-6 text-left shadow-xl transition-all",s),children:[(0,p.jsxs)("div",{className:"relative flex items-start justify-between",children:[r&&(0,p.jsx)("button",{type:"button",onClick:n,className:"text-muted-foreground hover:text-foreground cursor-pointer rounded-full p-1 transition-colors","aria-label":"Go back",children:(0,p.jsx)(y.ArrowLeft,{className:"h-5 w-5"})}),(0,p.jsx)(x.DialogTitle,{as:"h3",className:tM("text-foreground flex-1 p-1 text-lg font-medium leading-6",r?"text-center":"pr-12 text-left"),children:i}),(0,p.jsx)("button",{type:"button",onClick:t,className:tM("text-muted-foreground hover:text-foreground cursor-pointer rounded-full p-1 transition-colors",!r&&"absolute right-0 top-0"),"aria-label":"Close dialog",children:(0,p.jsx)(b.X,{className:"h-5 w-5"})})]}),(0,p.jsx)("div",{className:"mt-4 min-h-0 flex-1 overflow-hidden",children:o}),l&&(0,p.jsx)("div",{className:"border-border mt-4 flex-shrink-0 border-t pt-4",children:l})]})})})})]})})}var tK='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';function tY({open:e,onClose:t,children:n,className:r,overlayClassName:i,containerClassName:o,preventClose:s=!1,initialFocus:a,onAfterClose:l,ariaLabel:c,ariaLabelledBy:u,ariaDescribedBy:d,role:f="dialog",centered:h=!0}){let g=(0,m.useRef)(null),x=(0,m.useRef)(null),[v,y]=(0,m.useState)("closed"),[b,k]=(0,m.useState)(!1);(0,m.useEffect)(()=>{k(!0)},[]),(0,m.useEffect)(()=>{e?y(e=>"closed"===e||"exiting"===e?"entering":e):y(e=>"open"===e||"entering"===e?"exiting":e)},[e]),(0,m.useEffect)(()=>{if("entering"===v){let e=requestAnimationFrame(()=>{requestAnimationFrame(()=>{y("open")})});return()=>cancelAnimationFrame(e)}if("exiting"===v){let e=setTimeout(()=>{y("closed"),null==l||l()},200);return()=>clearTimeout(e)}},[v,l]),(0,m.useEffect)(()=>{if("entering"===v&&(x.current=document.activeElement),"open"===v){let e=setTimeout(()=>{var e;if(null==a?void 0:a.current)a.current.focus();else{let t=null==(e=g.current)?void 0:e.querySelector(tK);null==t||t.focus()}},50);return()=>clearTimeout(e)}},[v,a]),(0,m.useEffect)(()=>{if("closed"===v&&x.current){let e=x.current;x.current=null,setTimeout(()=>{null==e||e.focus()},10)}},[v]),(0,m.useEffect)(()=>{"closed"!==v?(document.documentElement.style.setProperty("overscroll-behavior","contain"),document.body.style.setProperty("overscroll-behavior","contain")):(document.documentElement.style.removeProperty("overscroll-behavior"),document.body.style.removeProperty("overscroll-behavior"))},[v]),(0,m.useEffect)(()=>()=>{document.documentElement.style.removeProperty("overscroll-behavior"),document.body.style.removeProperty("overscroll-behavior")},[]);let j=(0,m.useCallback)(e=>{var n;if("open"===v){if("Escape"===e.key&&!s){e.preventDefault(),t();return}if("Tab"===e.key){let t=null==(n=g.current)?void 0:n.querySelectorAll(tK);if(!(null==t?void 0:t.length))return;let r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),r.focus())}}},[v,t,s]);(0,m.useEffect)(()=>(document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)),[j]);let S=(0,m.useCallback)(()=>{s||"open"!==v||t()},[s,t,v]);if(!b||"closed"===v)return null;let E="open"===v;return(0,w.createPortal)((0,p.jsxs)("div",{className:tM("fixed inset-0 z-50",o),style:{overscrollBehavior:"contain"},children:[(0,p.jsx)("div",{className:tM("absolute inset-0 overflow-hidden bg-black/50 backdrop-blur-sm","transition-opacity duration-200 ease-out",E?"opacity-100":"opacity-0",i),style:{overscrollBehavior:"contain"},onClick:S,"aria-hidden":"true"}),(0,p.jsx)("div",{className:tM("fixed inset-0 overflow-y-auto",h&&"flex min-h-full items-center justify-center p-4",o),style:{overscrollBehavior:"contain"},children:(0,p.jsx)("div",{ref:g,role:f,"aria-modal":"true","aria-label":c,"aria-labelledby":u,"aria-describedby":d,className:tM("bg-card border-border relative rounded-xl border shadow-xl","transition-all duration-200 ease-out",E?"translate-y-0 scale-100 opacity-100":"translate-y-2 scale-95 opacity-0",r),style:{willChange:"transform, opacity"},children:n})})]}),document.body)}var tJ={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl",full:"max-w-4xl"},tX={danger:{iconContainer:"bg-red-500/10 text-red-500",button:"bg-red-600 hover:bg-red-700 text-white border-red-600 hover:border-red-700"},warning:{iconContainer:"bg-amber-500/10 text-amber-500",button:"bg-amber-500 hover:bg-amber-600 text-white border-amber-500 hover:border-amber-600"}}
5,tZ='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',tQ={right:{container:"inset-y-0 right-0",panel:"h-full w-full sm:w-[400px] sm:max-w-[90vw]",enter:"translate-x-0",exit:"translate-x-full"},left:{container:"inset-y-0 left-0",panel:"h-full w-full sm:w-[400px] sm:max-w-[90vw]",enter:"translate-x-0",exit:"-translate-x-full"},bottom:{container:"inset-x-0 bottom-0",panel:"w-full max-h-[85dvh] rounded-t-xl overflow-hidden flex flex-col",enter:"translate-y-0",exit:"translate-y-full"}};function t0(e){var{className:t,children:n,padding:r="p-inner",animateBorder:i=!0}=e,o=(0,s.__objRest)(e,["className","children","padding","animateBorder"]);return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({className:tM("bg-card/80 text-card-foreground rounded-lg border shadow-lg",i&&"card-hover",r,t)},o),{children:n}))}var t1=m.createContext(null),t2=()=>{let e=m.useContext(t1);if(!e)throw Error("Avatar components must be used within an Avatar provider");return e},t5=m.forwardRef((e,t)=>{var{className:n}=e,r=(0,s.__objRest)(e,["className"]);let[i,o]=m.useState("loading");return(0,p.jsx)(t1.Provider,{value:{imageStatus:i,setImageStatus:o},children:(0,p.jsx)("span",(0,s.__spreadValues)({ref:t,className:tM("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n)},r))})});t5.displayName="Avatar";var t4=m.forwardRef((e,t)=>{var{className:n,src:r}=e,i=(0,s.__objRest)(e,["className","src"]);let{imageStatus:o,setImageStatus:a}=t2();return m.useEffect(()=>{if(!r)return void a("error");let e=new window.Image;e.src=r,e.onload=()=>a("loaded"),e.onerror=()=>a("error"),a("loading")},[r,a]),"loaded"===o?(0,p.jsx)("img",(0,s.__spreadValues)({ref:t,src:r,className:tM("aspect-square h-full w-full",n)},i)):null});t4.displayName="AvatarImage";var t3=m.forwardRef((e,t)=>{var{className:n}=e,r=(0,s.__objRest)(e,["className"]);let{imageStatus:i}=t2();return"loaded"!==i?(0,p.jsx)("span",(0,s.__spreadValues)({ref:t,className:tM("bg-muted flex h-full w-full items-center justify-center rounded-full",n)},r)):null});function t6({options:e,value:t,onChange:n,onBlur:r,onClose:i,className:o}){let s=e.find(e=>e.value===t),a=(0,m.useRef)(null),[l,c]=(0,m.useState)(void 0);return(0,m.useEffect)(()=>{a.current&&c(a.current.offsetWidth)},[]),(0,p.jsx)("div",{className:tM("w-full",o),children:(0,p.jsx)(S.Listbox,{value:t,onChange:n,children:(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsxs)(S.ListboxButton,{ref:a,className:"border-border bg-background relative h-9 w-full cursor-default rounded-lg border py-2 pl-3 pr-10 text-left text-sm shadow-sm focus:outline-none",onBlur:r,children:[(0,p.jsx)("span",{className:"block truncate",children:s?s.label:""}),(0,p.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,p.jsx)(N.ChevronsUpDown,{className:"text-muted-foreground h-4 w-4","aria-hidden":"true"})})]}),(0,p.jsx)(v.Transition,{as:m.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:i,children:(0,p.jsx)(E.Portal,{children:(0,p.jsx)(S.ListboxOptions,{anchor:{to:"bottom start",offset:4},className:"bg-card z-[100] max-h-60 overflow-auto rounded-md py-1 text-base text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",style:{width:l?`${l}px`:"auto"},children:e.map(e=>(0,p.jsx)(S.ListboxOption,{className:({active:e})=>tM("relative cursor-default select-none py-2 pl-10 pr-4",e?"bg-muted text-foreground":"text-foreground"),value:e.value,children:({selected:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:tM("block truncate",t?"font-semibold":"font-normal"),children:e.label}),t?(0,p.jsx)("span",{className:"text-primary absolute inset-y-0 left-0 flex items-center pl-3",children:(0,p.jsx)(g.Check,{className:"h-4 w-4","aria-hidden":"true"})}):null]})},e.value))})})})]})})})}function t8(e){return e.length>0&&"options"in e[0]&&"label"in e[0]}function t7({option:e}){return(0,p.jsx)(S.ListboxOption,{className:({active:e})=>tM("relative cursor-default select-none py-2 pl-10 pr-4",e?"bg-muted text-foreground":"text-foreground"),value:e.value,children:({selected:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:tM("block",t?"font-semibold":"font-normal"),children:e.label}),t?(0,p.jsx)("span",{className:"text-primary absolute inset-y-0 left-0 flex items-center pl-3",children:(0,p.jsx)(g.Check,{className:"h-4 w-4","aria-hidden":"true"})}):null]})},e.value)}t3.displayName="AvatarFallback";var t9={primary:"border-border bg-background text-muted-foreground card-hover group relative flex w-full items-center justify-between gap-2 rounded-lg border px-3 py-1.5 text-left text-sm transition",ghost:"hover:bg-muted hover:text-foreground rounded-lg"},ne={md:"h-10 px-4 py-2 text-sm",icon:"h-9 w-9 flex items-center justify-center"},nt=m.default.forwardRef(function(e,t){var{hideArrow:n=!1,variant:r="primary",size:i="md"}=e,o=(0,s.__objRest)(e,["hideArrow","variant","size"]);return(0,p.jsxs)(C.MenuButton,(0,s.__spreadProps)((0,s.__spreadValues)({},o),{ref:t,className:(0,u.default)(o.className,"font-medium","cursor-pointer transition-colors focus-visible:outline-none","disabled:pointer-events-none disabled:opacity-50",t9[r],ne[i]),children:[o.children,!n&&(0,p.jsx)(P.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200 group-data-[open]:rotate-180"})]}))}),nn=m.default.forwardRef(function(e,t){var{portal:n=!0,anchor:r="bottom end",matchButtonWidth:i=!1}=e,o=(0,s.__objRest)(e,["portal","anchor","matchButtonWidth"]);let a=(0,p.jsx)(C.MenuItems,(0,s.__spreadProps)((0,s.__spreadValues)({},o),{ref:t,anchor:r,className:(0,u.default)(o.className,"border-border bg-card z-10 mt-1 origin-top-right rounded-lg border p-1 shadow-lg focus-visible:outline-none","custom-scrollbar overflow-y-auto",i?"w-[var(--button-width)]":"min-w-[var(--button-width)]","transition duration-100 ease-out data-[closed]:scale-95 data-[closed]:opacity-0")}));return n?(0,p.jsx)(E.Portal,{children:a}):a}),nr=m.default.forwardRef(function(e,t){var{className:n,disabled:r=!1}=e,i=(0,s.__objRest)(e,["className","disabled"]);return(0,p.jsx)(C.MenuItem,{ref:t,as:"div",disabled:r,children:({active:e,close:t})=>{let o=(0,u.default)("group flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm",!r&&"cursor-pointer",e&&!r&&"bg-nav-hover-bg",r&&"curs
5or-not-allowed opacity-50",n);return i.href?(0,p.jsx)(tR,{href:r?"#":i.href,className:o,"data-active":e||void 0,"aria-disabled":r,target:i.target,onClick:e=>{r?e.preventDefault():t()},children:i.children}):(0,p.jsx)("button",{type:"button",className:o,"data-active":e||void 0,disabled:r,onClick:()=>{r||(i.onClick&&i.onClick(),t())},children:i.children})}})});function ni({className:e,width:t=265.8,height:n=66.8,showWord:r=!0}){let i=no(r);return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:i,fill:"currentColor",className:tM("text-foreground",e),children:[(0,p.jsx)("g",{children:ns().map((e,t)=>(0,p.jsx)("path",{d:e,fill:"currentColor",stroke:"none"},`icon-${t}`))}),r&&(0,p.jsx)("g",{children:na().map((e,t)=>(0,p.jsx)("path",{d:e,fill:"currentColor",stroke:"none"},`text-${t}`))})]})}function no(e){return e?"21.5 25.4 265.8 66.8":"21.5 25.4 83.3 66.8"}function ns(){return["M94.04,26.63c-2.28-.32-4.91,2.9-7.17,8.67-2.61,6.68-5.26,13.38-8.06,19.87l-.03.06-1.57,3.69h0s-.05.13-.05.13c-1.16,2.74-5,11.78-6.24,14.68-.82,1.94-1.7,3.8-2.65,5.59,0,0,0,0,0,.01h0s-.01.02-.02.03c-.65,1.24-1.37,2.39-2.15,3.4-5.36,6.93-12.54,8.78-17.79,9.07-7.89.13-18.36-3.07-22.73-14.86-2.07-5.36-2.58-11.83-2.41-18.05h36.34s-1.47,3.37-1.47,3.37l-.3.69-3.06.08c-2.66.07-5.24.04-7.93.16-2.38.11-4.62-.08-6.49,2.04-.74.84-1.23,1.86-1.49,2.95-.35,1.51-.15,2.63.59,4.45,1.52,3.38,4.63,5.4,8.33,5.4.11,0,.23,0,.34,0,2.09-.07,4.28-.8,6.08-2.14,1.59-1.19,2.78-3.02,3.71-5.05l2.33-5.85,14.87-35.07h0s0-.01,0-.01c.38-.96.76-1.92,1.14-2.88,0-.01,0-.02.01-.03.68-1.66,1.45-1.67,1.46-1.67,0,0,2.45-.61,7.67-.61,4.68,0,7.92.42,8.06.51.13.09.66.16.65,1.39Z","M104.8,58.91h-.03l-1.96-6.2-.02-.06-2.06-6.51h0s-3.83-12.16-3.83-12.16c-.72-2.15-1.34-4.39-3.11-4.01-3.1.68-4.9,5.86-6.39,9.94-.36.97-.73,2.03-.93,3.16l.47.58,12.4,15.26.14.17h-16.88l-2.38-.02-.02.05-1.41,3.24-.3.7h27.65l-1.33-4.14ZM100.71,61.78h0s.01,0,.01,0h-.01Z"]}function na(){return["M249.95,49.65c-1.6,0-2.79-.42-3.55-1.26-.77-.84-1.15-1.9-1.15-3.18s.38-2.39,1.15-3.23c.77-.84,1.95-1.26,3.55-1.26s2.79.42,3.55,1.26c.77.84,1.15,1.91,1.15,3.23s-.38,2.34-1.15,3.18c-.77.84-1.95,1.26-3.55,1.26Z","M177.07,53.63c-2.15-1.41-4.8-2.11-7.93-2.11-2.39,0-4.51.42-6.38,1.26-1.87.84-3.44,1.97-4.7,3.39-1.26,1.42-2.23,3.04-2.88,4.83-.66,1.8-.99,3.68-.99,5.63v1.07c0,1.89.33,3.73.99,5.53.66,1.8,1.63,3.43,2.91,4.89,1.28,1.46,2.87,2.62,4.78,3.47,1.9.85,4.1,1.28,6.6,1.28s4.63-.44,6.52-1.31c1.89-.87,3.45-2.07,4.7-3.61,1.25-1.53,2.08-3.28,2.51-5.23h-7.85c-.36.89-1.03,1.64-2.03,2.24-1,.61-2.28.91-3.85.91-1.71,0-3.1-.36-4.17-1.07-1.07-.71-1.85-1.72-2.35-3.02-.28-.72-.47-1.52-.6-2.38h21.37v-2.88c0-2.67-.57-5.14-1.71-7.4-1.14-2.26-2.79-4.09-4.94-5.5ZM162.99,62.44c.53-1.3,1.32-2.28,2.35-2.94,1.03-.66,2.3-.99,3.79-.99s2.68.33,3.66.99c.98.66,1.71,1.6,2.19,2.83.26.66.44,1.4.56,2.22h-13.14c.13-.77.33-1.48.59-2.11Z","M205.34,51.62h-.37c-2.24,0-4.15.5-5.71,1.5-1.57,1-2.73,2.49-3.5,4.49-.27.71-.49,1.48-.67,2.31v-7.39h-6.84v29.27h8.6v-17.04c0-1.64.49-2.95,1.47-3.95.98-1,2.27-1.5,3.87-1.5s2.8.49,3.71,1.47c.91.98,1.36,2.25,1.36,3.82v17.2h8.6v-16.72c0-4.52-.9-7.9-2.7-10.12-1.8-2.22-4.41-3.34-7.82-3.34Z","M230.93,44.63h-7.96l-.02,7.9h-4.47v6.3h4.46l-.02,11.54c0,2.96.43,5.3,1.28,7.02.85,1.73,2.19,2.96,4.01,3.71,1.82.75,4.2,1.12,7.16,1.12h4.11v-7.26h-4.33c-1.35,0-2.4-.36-3.12-1.09-.73-.73-1.09-1.79-1.09-3.18v-11.86h8.55v-6.3h-8.55v-7.9Z","M255.18,52.53 246.58,52.53 246.58,52.53 244.75,52.53 242.72,58.86 246.58,58.86 246.58,81.8 255.18,81.8 255.18,58.89 255.18,58.89 255.18,52.53 255.18,52.53 255.18,52.53","M279.79,70.64c-.14.96-.45,1.81-.91,2.54-.46.73-1.09,1.3-1.9,1.71-.8.41-1.77.61-2.91.61-1.53,0-2.77-.35-3.71-1.04-.94-.69-1.63-1.67-2.06-2.94-.43-1.26-.64-2.68-.64-4.25,0-1.67.23-3.14.69-4.41.46-1.26,1.17-2.25,2.11-2.96.94-.71,2.13-1.07,3.55-1.07,1.67,0,2.97.45,3.9,1.36.93.91,1.46,2.04,1.6,3.39h8.38c-.14-2.38-.82-4.49-2.03-6.3-1.21-1.82-2.83-3.23-4.86-4.25-2.03-1.01-4.36-1.52-7-1.52-2.42,0-4.57.41-6.44,1.23-1.87.82-3.44,1.94-4.7,3.36-1.26,1.42-2.22,3.05-2.86,4.89-.64,1.83-.96,3.75-.96,5.74v1.01c0,1.92.31,3.78.93,5.58.62,1.8,1.56,3.41,2.8,4.83,1.25,1.42,2.79,2.56,4.65,3.42,1.85.85,4.06,1.28,6.62,1.28s4.98-.52,7.05-1.55c2.06-1.03,3.72-2.47,4.97-4.3,1.25-1.83,1.92-3.96,2.03-6.38h-8.33Z","M131.94,42.2l-2.54,7.93h11.36l.18.13c.32.23.43.45.43.83,0,2.45-.03,4.94-.06,7.14-.04,3.04-.09,6.48-.03,9.76v.08c-.42,4.55-4.35,7-7.83,7-2.79,0-5.14-1.52-6.28-4.08-1.23-2.75-.34-5.18.58-6.99l.4-.78h-8.57l-.14.34c-1.35,3.39-1.32,7.17.1,10.64,1.53,3.76,4.56,6.73,8.31,8.15,1.82.69,3.71,1.04,5.61,1.04,4.1,0,8.07-1.61,11.18-4.52,3.14-2.94,5.04-6.9,5.34-11.15v-.02s0-25.5,0-25.5
5h-18.01Z"]}function nl(e){var{className:t,gridSize:n=6,lineColor:r="hsl(var(--border))",lineOpacity:i=.5,xAngle:o=30,yAngle:a=-30,xOffset:l=0,yOffset:c=0,perspective:d=!1,vanishingY:f=30,gridDensity:h=40}=e,m=(0,s.__objRest)(e,["className","gridSize","lineColor","lineOpacity","xAngle","yAngle","xOffset","yOffset","perspective","vanishingY","gridDensity"]);let g=`data:image/svg+xml;charset=utf-8,${encodeURIComponent((()=>{if(d){let e=f/100*1e3,t=[],n=[],o=1e3/(.7*h);for(let n=1;n<h;n++){let r=e+n*o;t.push(`<line x1="0" y1="${r}" x2="1000" y2="${r}" />`)}let s=1e3/(h-10);for(let t=0;t<=h;t++){let r=t*s;r<500&&n.push(`<line x1="${r}" y1="1000" x2="500" y2="${e}" />`)}for(let t=0;t<=h;t++){let r=1e3-t*s;r>500&&n.push(`<line x1="${r}" y1="1000" x2="500" y2="${e}" />`)}return`
6        <svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000" 
7          preserveAspectRatio="xMidYMid slice">
8          <g stroke="${r}" stroke-opacity="${i}" stroke-width="0.5">
9            <!-- Horizon line -->
10            <line x1="0" y1="${e}" x2="1000" y2="${e}" stroke-opacity="${1.5*i}" />
11            
12            <!-- Horizontal grid lines -->
13            ${t.join("")}
14            
15            <!-- Vertical grid lines (converging to vanishing point) -->
16            ${n.join("")}
17          </g>
18        </svg>
19      `}{let e=`rotate(${o} ${a})`,t=20*n;return`
20        <svg xmlns="http://www.w3.org/2000/svg" width="${t}" height="${t}" viewBox="0 0 ${t} ${t}">
21          <g transform="${e}" stroke="${r}" stroke-opacity="${i}" stroke-width="0.5">
22            <!-- Horizontal Lines -->
23            ${Array.from({length:t/n+1},(e,r)=>`<line x1="0" y1="${r*n}" x2="${t}" y2="${r*n}" />`).join("")}
24            
25            <!-- Vertical Lines -->
26            ${Array.from({length:t/n+1},(e,r)=>`<line x1="${r*n}" y1="0" x2="${r*n}" y2="${t}" />`).join("")}
27          </g>
28        </svg>
29      `}})())}`,x=`${l}px ${c}px`;return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({},m),{className:(0,u.clsx)("absolute inset-0","pointer-events-none","overflow-hidden",t),style:{backgroundImage:`url("${g}")`,backgroundRepeat:"repeat",backgroundPosition:x}}))}function nc(e){var{className:t,lineColor:n="#ffffff",lineOpacity:r=.15,lineThickness:i=.6,horizonPosition:o=30,vanishingPointX:a=50,gridDensity:l=35,bottomWidth:c=100,backgroundFill:d="transparent",showDots:f=!1,dotSize:h=1.2,dotColor:m,dotOpacity:g,enableFade:x=!1,fadeStartPosition:v=0,fadeEndPosition:y=50}=e,b=(0,s.__objRest)(e,["className","lineColor","lineOpacity","lineThickness","horizonPosition","vanishingPointX","gridDensity","bottomWidth","backgroundFill","showDots","dotSize","dotColor","dotOpacity","enableFade","fadeStartPosition","fadeEndPosition"]);let w=(()=>{let e=a/100*1e3,t=o/100*1e3,s=[],u=[],p=[],b=(1e3-t)/l,w=[];for(let e=1;e<=l;e++){let n=t+e*b;w.push(n),s.push(`<line x1="0" y1="${n}" x2="1000" y2="${n}" />`)}let k=c/100*1e3,j=(1e3-k)/2,S=k/(l-1),E=[];for(let n=0;n<l;n++){let r=j+n*S;u.push(`<line x1="${r}" y1="1000" x2="${e}" y2="${t}" />`),E.push({x1:r,y1:1e3,x2:e,y2:t})}let N=m||n,C=g||1.5*r;f&&E.forEach(e=>{w.forEach(n=>{if(1>Math.abs(n-t))return;let r=(e.y2-e.y1)/(e.x2-e.x1),i=(n-e.y1)/r+e.x1;p.push(`<circle cx="${i}" cy="${n}" r="${h}" fill="${N}" opacity="${C}" />`)})});let P=`grid_${Math.random().toString(36).substr(2,9)}`,T="",A="",I="";return x&&(T=`
30        <defs>
31          <linearGradient id="fade_${P}" x1="0%" y1="0%" x2="0%" y2="100%">
32            <stop offset="${v}%" stop-color="white" stop-opacity="0" />
33            <stop offset="${y}%" stop-color="white" stop-opacity="1" />
34          </linearGradient>
35        </defs>
36      `,A=`
37        <mask id="mask_${P}">
38          <rect width="1000" height="1000" fill="url(#fade_${P})" />
39        </mask>
40      `,I=`mask="url(#mask_${P})"`),`
41      <svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" 
42        viewBox="0 0 1000 1000" preserveAspectRatio="xMidYMid slice">
43        ${"transparent"!==d?`<rect width="1000" height="1000" fill="${d}" />`:""}
44        
45        ${T}
46        ${A}
47        
48        <g stroke="${n}" stroke-opacity="${r}" stroke-width="${i}" ${I}>
49          <!-- Horizon line -->
50          <line x1="0" y1="${t}" x2="1000" y2="${t}" 
51            stroke-opacity="${+r}" stroke-width="${.5*i}" />
52          
53          <!-- Horizontal grid lines -->
54          ${s.join("")}
55          
56          <!-- Vertical grid lines -->
57          ${u.join("")}
58        </g>
59        
60        <!-- Dots at intersections (also apply mask for fade if enabled) -->
61        <g ${I}>
62          ${p.join("")}
63        </g>
64      </svg>
65    `})(),k=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(w)}`,j=x?{backgroundImage:`url("${k}")`,backgroundSize:"cover",backgroundPosition:"center bottom",maskImage:"linear-gradient(to bottom, transparent 0%, transparent "+v+"%, black "+y+"%, black 100%)",WebkitMaskImage:"linear-gradient(to bottom, transparent 0%, transparent "+v+"%, black "+y+"%, black 100%)"}:{backgroundImage:`url("${k}")`,backgroundSize:"cover",backgroundPosition:"center bottom"};return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({},b),{className:(0,u.clsx)("absolute inset-0","pointer-events-none","overflow-hidden",t),style:j}))}function nu({className:e="",placement:t}){let[n,r]=t.split(" ");return(0,p.jsx)("svg",{viewBox:"0 0 15 15","aria-hidden":"true",className:(0,u.clsx)("absolute size-[12px]",e,"top"===n?"-top-1.5":"-bottom-1.5","left"===r?"-left-1.5":"-right-1.5"),children:(0,p.jsx)("path",{d:"M8 0H7V7H0V8H7V15H8V8H15V7H8V0Z"})})}function nd({value:e,onChange:t,onClear:n,id:r,placeholder:i="Search",className:o="",inputClassName:s="",icon:a=I.Search,size:l="default",debounceMs:c}){let d=null!=r?r:(0,m.useId)(),f="sm"===l,[h,g]=(0,m.useState)(e),x=void 0!==c&&c>0,v=(0,m.useRef)(e);(0,m.useEffect)(()=>{e!==v.current&&(g(e),v.current=e)},[e]),(0,m.useEffect)(()=>{if(!x)return;let n=setTimeout(()=>{h!==e&&t({target:{value:h}})},c);return()=>clearTimeout(n)},[h,c,x,t,e]);let y=(0,m.useCallback)(e=>{let n=e.target.value;x?g(n):t(e)},[x,t]),w=x?h:e;return(0,p.jsxs)("div",{className:(0,u.default)("relative",o),children:[(0,p.jsx)(a,{className:(0,u.default)("text-muted-foreground pointer-events-none absolute top-1/2 -translate-y-1/2",f?"left-2.5 h-3.5 w-3.5":"left-3 h-5 w-5"),"aria-hidden":"true"}),(0,p.jsx)("input",{id:d,type:"text",value:w,onChange:y,placeholder:i,className:(0,u.default)("border-border bg-card text-foreground placeholder:text-muted-foreground w-full rounded-lg border transition-colors focus-visible:outline-none",f?"py-1.5 pl-8 pr-8 text-xs":"h-9 py-1 pl-10 pr-10",s),"aria-label":i}),!!w&&(0,p.jsx)("button",{type:"button",className:(0,u.default)("text-muted-foreground hover:text-foreground absolute top-1/2 -translate-y-1/2 cursor-pointer rounded-full transition-colors focus:outline-none",f?"right-1.5 p-0.5":"right-2 p-1"),onClick:e=>{e.preventDefault(),x&&g(""),n?n():t({target:{value:""}})},"aria-label":"Clear search",children:(0,p.jsx)(b.X,{className:(0,u.default)(f?"h-3.5 w-3.5":"h-4 w-4"),"aria-hidden":"true"})})]})}function np(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("div",(0,s.__spreadValues)({className:tM("animate-pulse rounded-md bg-muted",t)},n))}function nf(e){var{href:t,children:n,className:r,showIcon:i=!1}=e,o=(0,s.__objRest)(e,["href","children","className","showIcon"]);return(0,p.jsxs)(tR,(0,s.__spreadProps)((0,s.__spreadValues)({href:t,className:tM("text-link",r)},o),{children:[n,i&&(0,p.jsx)("span",{className:"text-link__icon",children:(0,p.jsx)(M.ExternalLink,{className:"inline-block h-4 w-4"})})]}))}function nh(e){var{children:t,className:n}=e,r=(0,s.__objRest)(e,["children","className"]);return(0,p.jsx)("span",(0,s.__spreadProps)((0,s.__spreadValues)({className:tM("rounded bg-foreground
65/10 px-2 py-1 font-mono text-xs text-foreground/80",n)},r),{children:t}))}function nm({playbook:e}){return(0,p.jsxs)(t0,{className:"flex h-full items-start gap-6 p-6",children:[(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)(e.icon,{className:"text-muted-foreground h-8 w-8"})}),(0,p.jsxs)("div",{className:"flex-grow",children:[(0,p.jsx)("h3",{className:"text-foreground text-lg font-semibold",children:e.title}),(0,p.jsx)("p",{className:"text-muted-foreground mt-2 text-sm",children:e.description})]})]})}function ng({className:e,showWord:t=!0}){let n=no(t);return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:n,fill:"currentColor",className:tM("text-foreground",e),style:{display:"block"},children:[(0,p.jsx)("g",{children:ns().map((e,t)=>(0,p.jsx)("path",{d:e,fill:"currentColor",stroke:"none"},`icon-${t}`))}),t&&(0,p.jsx)("g",{children:na().map((e,t)=>(0,p.jsx)("path",{d:e,fill:"currentColor",stroke:"none"},`text-${t}`))})]})}function nx({size:e,delay:t,opacity:n}){return(0,p.jsx)(A.motion.div,{initial:"idle",animate:"active",variants:{idle:{width:`${e}px`,height:`${e}px`},active:{width:[`${e}px`,`${e+10}px`,`${e}px`],height:[`${e}px`,`${e+10}px`,`${e}px`],transition:{duration:.75,repeat:1/0,repeatDelay:1.25,ease:"easeInOut",delay:t}}},style:{"--opacity":n},className:(0,u.clsx)("absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded-full","bg-[radial-gradient(circle,transparent_25%,color-mix(in_srgb,var(--color-blue-500)_var(--opacity),transparent)_100%)]","ring-1 ring-blue-500/[8%] ring-inset")})}function nv(){return(0,p.jsxs)("div",{className:"absolute inset-0",children:[(0,p.jsx)(nx,{size:528,opacity:"3%",delay:.45}),(0,p.jsx)(nx,{size:400,opacity:"5%",delay:.3}),(0,p.jsx)(nx,{size:272,opacity:"5%",delay:.15}),(0,p.jsx)(nx,{size:144,opacity:"10%",delay:0})]})}function ny(){return(0,p.jsx)("div",{className:"absolute top-32 left-44 flex size-16 items-center justify-center rounded-full bg-white ring-1 shadow-sm ring-black/5",children:(0,p.jsx)(ng,{className:"h-9 fill-black",showWord:!1})})}function nb({src:e,left:t,top:n,hover:r}){return(0,p.jsx)(A.motion.img,{initial:"idle",animate:"active",variants:{idle:{x:0,y:0,rotate:0},active:{x:[0,r.x,0],y:[0,r.y,0],rotate:[0,r.rotate,0],transition:{duration:.75,repeat:1/0,repeatDelay:1.25,ease:"easeInOut",delay:r.delay}}},alt:"",src:e,style:{left:t,top:n},className:"absolute size-16 rounded-full bg-white ring-1 shadow-sm ring-black/5"})}var nw=["Asana-logo.svg","Basecamp-logo.svg","Box-logo.svg","Calendly-logo.svg","ClickUp-logo.svg","Dropbox-logo.svg","Evernote-logo.svg","GitHub-logo.svg","GoogleCalendar-logo.svg","GoogleDrive-logo.svg","HubSpot-logo.svg","Intercom-logo.svg","Jira-logo.svg","Mailchimp-logo.svg","MicrosoftTeams-logo.svg","Notion-logo.svg","OneDrive-logo.svg","OpenAI-logo.svg","PayPal-logo.svg","QuickBooks-logo.svg","Salesforce-logo.svg","SendGrid-logo.svg","Shopify-logo.svg","Square-logo.svg","Stripe-logo.svg","Telegram-logo.svg","Todoist-logo.svg","Trello-logo.svg","Twilio-logo.svg","Xero-logo.svg","Zapier-logo.svg","Zendesk-logo.svg","ZohoCrm-logo.svg","Zoom-logo.svg","discord.svg"].map(e=>({key:e.split(".")[0],src:`/loop-logos/${e}`}));function nk(e){var{className:t,as:n="h2",children:r}=e,i=(0,s.__objRest)(e,["className","as","children"]);let o=r;if("string"==typeof r&&r.includes("<0>")&&r.includes("</0>")){let e=r.split(/<0>|<\/0>/);3===e.length&&(o=(0,p.jsxs)(p.Fragment,{children:[e[0],(0,p.jsx)("span",{className:"subheading-highlight",children:e[1]}),e[2]]}))}return(0,p.jsx)(n,(0,s.__spreadProps)((0,s.__spreadValues)({},i),{className:tM("subheading","subheading-monospace",t),children:o}))}function nj(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("p",(0,s.__spreadValues)({className:tM(t,"bodytext")},n))}var nS={initial:{scale:1},hover:{scale:1.02,transition:{type:"spring",stiffness:400,damping:25}}},nE={duration:.22,ease:"easeInOut"},nN={duration:.75,repeat:1/0,repeatDelay:1.25};function nC(){return(0,p.jsx)("svg",{viewBox:"0 0 500 500",fill:"none",className:(0,u.clsx)("col-start-1 row-start-1 size-full","[mask-composite:intersect] [mask-image:linear-gradient(to_bottom,black_90%,transparent),radial-gradient(circle,rgba(0,0,0,1)_0%,rgba(0,0,0,0)_100%)]"),children:Array.from(Array(42).keys()).map(e=>(0,p.jsx)(A.motion.circle,{initial:"idle",animate:"active",variants:{idle:{scale:1,strokeOpacity:.15},active:{scale:[1,1.08,1],strokeOpacity:[.15,.3,.15],transition:(0,s.__spreadProps)((0,s.__spreadValues)({},nN),{delay:.05*e})}},cx:"250",cy:"250",r:14*e+4,className:"stroke-white"},e))})}function nP(){return(0,p.jsx)("div",{className:"z-10 col-start-1 row-start-1 flex items-center justify-center",children:(0,p.jsx)(A.motion.div,{initial:"idle",animate:"active",variants:{idle:{scale:1},active:{scale:[1,1.15,1],transition:(0,s.__spreadValues)({},nN)}},className:"flex size-6 items-center justify-center rounded-full bg-gradient-to-t from-green-500 to-green-300 shadow-sm",children:(0,p.jsx)(g.Check,{className:"size-4 fill-white"})})})}function nT({avatars:e}){return(0,p.jsx)("div",{className:"z-10 col-start-1 row-start-1",children:(0,p.jsx)("div",{className:"mx-auto flex size-full max-w-md items-center justify-around",children:e.map(e=>(0,p.jsx)(T.default,{alt:e.alt,src:e.src,width:80,height:80,className:"rounded-full bg-white/15 object-cover ring-4 ring-white/10"},e.key))})})}
65function nA({img:e,alt:t="Carousel image"}){return(0,p.jsxs)("div",{className:"relative aspect-9/16 w-72 shrink-0 snap-start overflow-hidden rounded-3xl sm:aspect-3/4 sm:w-96",children:[(0,p.jsx)(T.default,{src:e,alt:t,fill:!0,style:{objectFit:"cover"},sizes:"(max-width: 640px) 18rem, (max-width: 1024px) 24rem, 24rem"}),(0,p.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"})]})}function nI({children:e}){return(0,p.jsxs)("div",{className:"group relative",children:[(0,p.jsx)("div",{className:"absolute inset-x-0 top-1/2 h-0.5 bg-linear-to-r from-white/15 from-[2px] to-[2px] bg-[length:12px_100%]"}),(0,p.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-0.5 bg-linear-to-r from-white/5 from-[2px] to-[2px] bg-[length:12px_100%] group-last:hidden"}),e]})}function nM({label:e,src:t,delay:n=0,duration:r=30}){return(0,p.jsxs)(A.motion.div,{className:(0,u.clsx)("absolute top-2 grid grid-cols-[1rem_1fr] items-center gap-2 px-3 py-1 whitespace-nowrap","rounded-full bg-linear-to-t from-gray-800 from-50% to-gray-700 ring-1 ring-white/10 ring-inset"),initial:{x:"var(--move-x-from, -100%)"},animate:{x:"var(--move-x-to, calc(100% + 100cqw))"},transition:{repeat:1/0,repeatType:"loop",ease:"linear",duration:r,delay:n},children:[(0,p.jsx)(T.default,{alt:"",src:t,className:"size-4"}),(0,p.jsx)("span",{className:"text-sm/6 font-medium text-white",children:e})]})}function nL({src:e,alt:t,top:n,offset:r,delay:i}){return(0,p.jsxs)(A.motion.div,{initial:"idle",animate:"active",variants:{idle:{scale:0,opacity:0,rotateX:0,rotate:0,y:0},active:{y:[-20,0,4,0],scale:[.75,1],opacity:[0,1]}},transition:{duration:.75,delay:i,ease:"easeOut"},style:{"--offset":`${r}px`,top:n},className:"absolute left-[calc(50%+var(--offset))] size-[38px] drop-shadow-[0_3px_1px_rgba(0,0,0,.15)]",children:[(0,p.jsxs)("svg",{fill:"none",viewBox:"0 0 38 38",className:"absolute size-full",children:[(0,p.jsx)("path",{d:"M29.607 5.193c5.858 5.857 5.858 15.355 0 21.213l-9.9 9.9-.707.706-.708-.708-9.899-9.898c-5.857-5.858-5.857-15.356 0-21.213 5.858-5.858 15.356-5.858 21.214 0Z",className:"fill-black/5"}),(0,p.jsx)("path",{d:"m28.9 25.698-9.9 9.9-9.9-9.9C3.634 20.232 3.634 11.367 9.1 5.9 14.569.432 23.433.432 28.9 5.9c5.467 5.468 5.467 14.332 0 19.8Z",className:"fill-white"})]}),(0,p.jsx)(T.default,{alt:t,src:e,width:24,height:24,className:"absolute top-[4px] left-[7px] rounded-full object-cover"})]})}var nR={hidden:{opacity:0,y:40},visible:e=>({opacity:1,y:0,transition:{delay:.1*e,duration:.5}})},n_={visible:{transition:{staggerChildren:.1}},hidden:{}},nO={visible:{opacity:1,y:0,transition:{duration:.5}},hidden:{opacity:0,y:20}};function nD({children:e,className:t}){let n=m.default.useRef(null),r=(0,V.useInView)(n,{once:!0,margin:"0px 0px -20% 0px"});return(0,p.jsx)(A.motion.div,{ref:n,className:t,variants:n_,initial:"hidden",animate:r?"visible":"hidden",children:m.default.Children.map(e,(e,t)=>(0,p.jsx)(A.motion.div,{variants:nO,children:e},t))})}var nF=(e=640)=>{let[t,n]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{let t=()=>{n(window.innerWidth<e)};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]),t},n$=["border-border text-foreground ring-offset-background flex h-10 w-full rounded-lg border bg-transparent px-3 py-2 text-sm","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50"];function nz(e){var{className:t,id:n,showPasswordToggle:r=!1}=e,i=(0,s.__objRest)(e,["className","id","showPasswordToggle"]);let o=null!=n?n:(0,m.useId)(),[a,l]=(0,m.useState)(!1),c="password"===i.type&&r,u=c&&a?"text":i.type;return c?(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)("input",(0,s.__spreadProps)((0,s.__spreadValues)({id:o},i),{type:u,className:tM(...n$,"pr-10",t)})),(0,p.jsx)("button",{type:"button",onClick:()=>{l(e=>!e)},className:"text-muted-foreground hover:text-foreground absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 cursor-pointer focus:outline-none",tabIndex:-1,
65children:a?(0,p.jsx)(ee.EyeOff,{className:"h-4 w-4"}):(0,p.jsx)(Q.Eye,{className:"h-4 w-4"})})]}):(0,p.jsx)("input",(0,s.__spreadProps)((0,s.__spreadValues)({id:o},i),{className:tM(...n$,t)}))}function nV({children:e,content:t,closeOnTooltipHover:n=!1,className:r,triggerClassName:i="min-w-0"}){let o=(0,m.useRef)(null),s=(0,m.useRef)(!1),a=(0,m.useRef)(!1);return(0,p.jsx)(et.Popover,{className:null!=r?r:"relative min-w-0",children:({open:r,close:l})=>{let c=()=>{requestAnimationFrame(()=>{s.current||a.current||l()})};return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(et.PopoverButton,{as:"div",ref:o,className:i,onMouseEnter:()=>{var e;s.current=!0,r||null==(e=o.current)||e.click()},onMouseLeave:()=>{s.current=!1,n?l():c()},children:e}),r&&(0,p.jsx)(E.Portal,{children:(0,p.jsx)(et.PopoverPanel,{static:!0,anchor:{to:"top",gap:8*!!n},className:`z-[60] !w-auto !max-w-sm ${n?"":"pb-2"}`,onMouseEnter:()=>{n||(a.current=!0)},onMouseLeave:()=>{a.current=!1,c()},children:(0,p.jsx)(t0,{padding:"p-gutter",className:"rounded-md text-xs shadow-md",children:(0,p.jsx)("div",{className:"break-words",children:t})})})})]})}})}var nB={1:"truncate",2:"overflow-hidden line-clamp-2",3:"overflow-hidden line-clamp-3"},nH={sm:{track:"h-5 w-9",thumb:"h-4 w-4",padding:2,trackW:36,thumbW:16},md:{track:"h-6 w-11",thumb:"h-5 w-5",padding:2,trackW:44,thumbW:20},lg:{track:"h-7 w-14",thumb:"h-6 w-6",padding:2,trackW:56,thumbW:24}},nU="bg-card h-[60px] rounded-[8px] relative w-full transition-all",nW="hover:bg-muted",nG="opacity-50 cursor-not-allowed",nq="border-[3px] border-primary/60",nK="border border-border cursor-pointer",nY="w-4 h-4 rounded-full border border-foreground relative",nJ="absolute inset-0 flex items-center justify-center",nX="w-2.5 h-2.5 bg-primary rounded-full";function nZ(e){return!!e&&"string"==typeof e&&[/\*\*.*?\*\*/,/\*.*?\*/,/__.*?__/,/_.*?_/,/`.*?`/,/\[.*?\]\(.*?\)/,/#{1,6}\s+/,/^\s*[-*+]\s+/,/^\s*\d+\.\s+/,/>\s+/,/\n---+\n/].some(t=>t.test(e))}function nQ(e){return e&&"string"==typeof e?nZ(e)?(0,p.jsx)(l.default,{remarkPlugins:[c.default],components:{h1:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h1",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-4 mt-6 text-2xl font-bold"},n),{children:t}))},h2:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h2",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-3 mt-5 text-xl font-bold"},n),{children:t}))},h3:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h3",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-2 mt-4 text-lg font-semibold"},n),{children:t}))},h4:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h4",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-2 mt-3 text-base font-semibold"},n),{children:t}))},h5:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h5",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-1 mt-2 text-sm font-semibold"},n),{children:t}))},h6:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("h6",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-1 mt-2 text-sm font-medium"},n),{children:t}))},p:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("p",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-4 last:mb-0"},n),{children:t}))},ul:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("ul",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-4 ml-6 list-disc"},n),{children:t}))},ol:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("ol",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-4 ml-6 list-decimal"},n),{children:t}))},li:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("li",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground mb-1"},n),{children:t}))},a:e=>{var{href:t="",children:n}=e,r=(0,s.__objRest)(e,["href","children"]);return(0,p.jsx)(nf,(0,s.__spreadProps)((0,s.__spreadValues)({href:t,className:"text-primary hover:text-primary/80 underline transition-colors"},r),{children:n}))},code:e=>{var{className:t,children:n}=e,r=(0,s.__objRest)(e,["className","children"]);return t?(0,p.jsx)("code",(0,s.__spreadProps)((0,s.__spreadValues)({className:t},r),{children:n})):(0,p.jsx)("code",(0,s.__spreadProps)((0,s.__spreadValues)({className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm"},r),{children:n}))},blockquote:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("blockquote",(0,s.__spreadProps)((0,s.__spreadValues)({className:"border-muted text-muted-foreground my-4 border-l-4 pl-4 italic"},n),{children:t}))},strong:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("strong",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground font-semibold"},n),{children:t}))},em:e=>{var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)("em",(0,s.__spreadProps)((0,s.__spreadValues)({className:"text-foreground italic"},n),{children:t}))},hr:e=>(0,p.jsx)("hr",(0,s.__spreadValues)({className:"border-border my-6 border-t"},e))},children:e}):(0,p.jsx)("span",{children:e}):e}var n0="compressed:";function n1(){}async function n2(e){n1(e.length);try{let t=new Blob([e]);n1(t.size);let n=t.stream().pipeThrough(new CompressionStream("gzip")),r=await new Response(n).blob();n1(r.size);let i=await r.arrayBuffer(),o=new Uint8Array(i),s=function(e){let t="";for(let n=0;n<e.length;n+=8192){let r=e.subarray(n,Math.min(n+8192,e.length));t+=String.fromCharCode.apply(null,Array.from(r))}return btoa(t)}(o),a=n0+s;return n1(e.length,a.length,(a.length/e.length*100).toFixed(1)),a}catch(t){return n1(),e}}
65async function n5(e){if(n1(e.length,e.startsWith(n0)),!e.startsWith(n0))return n1(),e;try{let t=e.slice(n0.length);n1(t.length);let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);n1(r.length);let i=new Blob([r]).stream().pipeThrough(new DecompressionStream("gzip")),o=await new Response(i).blob(),s=await o.text();return n1(s.length),s}catch(t){return n1(),e}}function n4({href:e,label:t,target:n,isHovered:r,onHoverStart:i,onHoverEnd:o}){return(0,p.jsxs)(A.motion.div,{onHoverStart:i,onHoverEnd:o,className:"relative isolate",children:[(0,p.jsx)(tR,{href:e,target:n,className:"relative inline-block cursor-pointer px-3 py-1.5 text-sm text-nav-text select-none",children:t}),r&&(0,p.jsx)(A.motion.div,{layoutId:"hoverBackgroundPill",className:"pointer-events-none absolute inset-0 -z-10 rounded-full bg-nav-hover-bg",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{type:"spring",stiffness:800,damping:40}})]})}function n3({links:e}){let[t,n]=(0,m.useState)(null);return(0,p.jsx)("nav",{className:"relative hidden lg:flex",children:(0,p.jsx)(ep,{children:(0,p.jsx)("div",{className:"relative mr-4 ml-1 flex flex-row items-center justify-center gap-0 pt-3 pb-3",children:e.map(({href:e,label:r,target:i})=>(0,p.jsx)(n4,{href:e,label:r,target:i,isHovered:t===e,onHoverStart:()=>n(e),onHoverEnd:()=>n(null)},e))})})})}function n6({children:e}){return(0,p.jsx)(nk,{as:"span",className:"text-left text-center",children:e})}function n8({children:e}){return(0,p.jsx)("ul",{className:"mt-6 space-y-4 text-sm/6",children:e})}function n7(e){return(0,p.jsx)("li",{children:(0,p.jsx)(tR,(0,s.__spreadProps)((0,s.__spreadValues)({},e),{className:"text-muted-foreground hover:text-foreground cursor-pointer"}))})}function n9({sitemapTranslations:e}){return e&&0!==e.length?(0,p.jsx)("div",{className:"flex flex-col gap-y-8 min-[380px]:flex-row min-[380px]:flex-wrap min-[380px]:justify-center min-[380px]:gap-x-12 md:gap-x-16",children:e.map(e=>(0,p.jsxs)("div",{className:"text-left",children:[(0,p.jsx)(n6,{children:e.heading}),(0,p.jsx)(n8,{children:e.links.map(e=>(0,p.jsx)(n7,{href:e.href,target:e.target,children:e.label},e.href))})]},e.heading))}):null}function re(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({viewBox:"0 0 16 16",fill:"currentColor"},e),{children:(0,p.jsx)("path",{d:"M12.6 0h2.454l-5.36 6.778L16 16h-4.937l-3.867-5.594L2.771 16H.316l5.733-7.25L0 0h5.063l3.495 5.114L12.6 0zm-.86 14.376h1.36L4.323 1.539H2.865l8.875 12.837z"})}))}function rt(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({viewBox:"0 0 16 16",fill:"currentColor"},e),{children:(0,p.jsx)("path",{d:"M14.82 0H1.18A1.169 1.169 0 000 1.154v13.694A1.168 1.168 0 001.18 16h13.64A1.17 1.17 0 0016 14.845V1.15A1.171 1.171 0 0014.82 0zM4.744 13.64H2.369V5.996h2.375v7.644zm-1.18-8.684a1.377 1.377 0 11.52-.106 1.377 1.377 0 01-.527.103l.007.003zm10.075 8.683h-2.375V9.921c0-.885-.015-2.025-1.234-2.025-1.218 0-1.425.966-1.425 1.968v3.775H6.233V5.997H8.51v1.05h.032c.317-.601 1.09-1.235 2.246-1.235 2.405-.005 2.851 1.578 2.851 3.63v4.197z"})}))}function rn(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",id:"Discord-Logo",viewBox:"0 0 126.644 96",fill:"currentColor"},e),{children:(0,p.jsx)("path",{id:"Discord-Symbol-White",d:"M81.15,0c-1.2376,2.1973-2.3489,4.4704-3.3591,6.794-9.5975-1.4396-19.3718-1.4396-28.9945,0-.985-2.3236-2.1216-4.5967-3.3591-6.794-9.0166,1.5407-17.8059,4.2431-26.1405,8.0568C2.779,32.5304-1.6914,56.3725.5312,79.8863c9.6732,7.1476,20.5083,12.603,32.0505,16.0884,2.6014-3.4854,4.8998-7.1981,6.8698-11.0623-3.738-1.3891-7.3497-3.1318-10.8098-5.1523.9092-.6567,1.7932-1.3386,2.6519-1.9953,20.281,9.547,43.7696,9.547,64.0758,0,.8587.7072,1.7427,1.3891,2.6519,1.9953-3.4601,2.0457-7.0718,3.7632-10.835,5.1776,1.97,3.8642,4.2683,7.5769,6.8698,11.0623,11.5419-3.4854,22.3769-8.9156,32.0509-16.0631,2.626-27.2771-4.496-50.9172-18.817-71.8548C98.9811,4.2684,90.1918,1.5659,81.1752.0505l-.0252-.0505ZM42.2802,65.4144c-6.2383,0-11.4159-5.6575-11.4159-12.6535s4.9755-12.6788,11.3907-12.6788,11.5169,5.708,11.4159,12.6788c-.101,6.9708-5.026,12.6535-11.3907,12.6535ZM84.3576,65.4144c-6.2637,0-11.3907-5.6575-11.3907-12.6535s4.9755-12.6788,11.3907-12.6788,11.4917,5.708,11.3906,12.6788c-.101,6.9708-5.026,12.6535-11.3906,12.6535Z"})}))}function rr(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({fill:"
65currentColor",viewBox:"0 0 24 24"},e),{children:(0,p.jsx)("path",{d:"M23.498 6.186a3.016 3.016 0 00-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 00.502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 002.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 002.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"})}))}function ri(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({width:"16",height:"14",viewBox:"0 0 16 14",fill:"currentColor"},e),{children:[(0,p.jsx)("g",{clipPath:"url(#clip0_1_13)",children:(0,p.jsx)("path",{d:"M3.46825 0.934601C5.3025 2.29211 7.27575 5.04422 8 6.52109V10.4219C8 10.3389 7.9675 10.4327 7.8975 10.6349C7.5195 11.7293 6.043 16.0008 2.66675 12.586C0.889 10.7881 1.712 8.99025 4.948 8.44744C3.09675 8.7579 1.0155 8.24481 0.4445 6.23323C0.28 5.65457 0 2.09022 0 1.60881C0 -0.802627 2.14475 -0.044662 3.46825 0.934601ZM12.5317 0.934601C10.6975 2.29211 8.72425 5.04422 8 6.52109V10.4219C8 10.3389 8.0325 10.4327 8.1025 10.6349C8.4805 11.7293 9.957 16.0008 13.3333 12.586C15.111 10.7881 14.288 8.99025 11.052 8.44744C12.9033 8.7579 14.9845 8.24481 15.5555 6.23323C15.72 5.65457 16 2.09022 16 1.60881C16 -0.802627 13.8555 -0.044662 12.5317 0.934601Z"})}),(0,p.jsx)("defs",{children:(0,p.jsx)("clipPath",{id:"clip0_1_13",children:(0,p.jsx)("rect",{width:"16",height:"14",fill:"white"})})})]}))}function ro({linksData:e=[]}){return e&&0!==e.length?(0,p.jsx)("div",{className:"flex gap-10",children:e.map(e=>(0,p.jsx)(tR,{href:e.href,target:"_blank","aria-label":e.ariaLabel,className:"text-muted-foreground hover:text-foreground",children:e.href.includes("x.com")?(0,p.jsx)(re,{className:"size-4"}):e.href.includes("linkedin.com")?(0,p.jsx)(rt,{className:"size-4"}):e.href.includes("bsky.app")?(0,p.jsx)(ri,{className:"size-4"}):e.href.includes("discord.gg")?(0,p.jsx)(rn,{className:"size-4"}):e.href.includes("youtube.com")?(0,p.jsx)(rr,{className:"size-4"}):null},e.href))}):null}function rs({translations:e}){let t=new Date().getFullYear(),n=e.copyright.replace("{year}",String(t));return(0,p.jsx)("div",{className:"text-muted-foreground text-sm/6",children:n})}var ra=(0,m.createContext)(void 0);function rl(){let e=(0,m.useContext)(ra);if(!e)throw Error("useTranslation must be used within a TranslationProvider");return e}function rc({banner:e}){let{translations:t}=rl(),n=t.header.navLinks;return(0,p.jsx)(eH,{as:"div",className:"border-border bg-navbar fixed left-0 right-0 top-0 z-40 w-full border-b backdrop-blur-lg",children:({open:t,close:r})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:"container flex h-16 items-center justify-between",children:[(0,p.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,p.jsx)(tR,{href:"/",title:"Jentic Home",children:(0,p.jsx)(ni,{className:"h-8 w-auto"})}),e&&(0,p.jsx)("div",{className:"hidden lg:flex",children:e}),(0,p.jsx)("div",{className:"hidden lg:ml-6 lg:flex",children:(0,p.jsx)(n3,{links:n})})]}),(0,p.jsxs)("div",{className:"flex items-center gap-x-6",children:[(0,p.jsxs)("div",{className:"hidden lg:flex lg:items-center lg:gap-x-2",children:[(0,p.jsx)(tU,{variant:"secondary",size:"sm",children:"Log in"}),(0,p.jsx)(tU,{variant:"primary",href:"/waitlist",size:"sm",children:"Get started"})]}),(0,p.jsx)("div",{className:"flex lg:hidden",children:(0,p.jsx)(ru,{open:t})})]})]}),(0,p.jsx)(rd,{links:n,open:t,closeMenu:r})]})})}function ru({open:e}){return(0,p.jsx)(eV,{className:"relative flex size-12 cursor-pointer items-center justify-center self-center rounded-lg lg:hidden","aria-label":e?"Close main menu":"Open main menu",children:(0,p.jsx)(L.AnimatePresence,{initial:!1,mode:"wait",children:(0,p.jsx)(A.motion.div,{initial:{opacity:0,rotate:e?-90:90},animate:{opacity:1,rotate:0},exit:{opacity:0,rotate:e?90:-90},transition:{duration:.2,ease:"easeInOut"},className:"absolute",children:e?(0,p.jsx)(b.X,{className:"size-6"}):(0,p.jsx)(eU,{className:"size-6"})},e?"x-mark":"bars-2")})})}function rd({links:e,open:t,closeMenu:n}){return(0,m.useEffect)(()=>{let e=document.body.style.overflow;return t?document.body.style.overflow="hidden":document.body.style.overflow=e,()=>{document.body.style.overflow=e}},[t]),(0,m.useEffect)(()=>{let e=()=>{window.innerWidth>=1024&&t&&n&&n()};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[t,n]),(0,p.jsx)(eB,{className:"fixed inset-0 z-[-1] bg-background lg:hidden",children:(0,p.jsx)(L.AnimatePresence,{children:t&&(0,p.jsx)(A.motion.div,{initial:{opacity:0}
65,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"h-dvh bg-background pt-24 pb-8",children:(0,p.jsxs)("div",{className:"container flex h-full flex-col justify-between",children:[(0,p.jsx)("nav",{children:(0,p.jsx)("ul",{className:"flex flex-col gap-6",children:e.map(({href:e,label:t,target:r},i)=>(0,p.jsx)(A.motion.li,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.3,ease:"easeOut",delay:.1+.05*i},children:(0,p.jsx)(tR,{href:e,target:r,className:"text-muted-foreground hover:text-foreground",onClick:n,children:t})},e))})}),(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut",delay:.2},className:"flex flex-col gap-4",children:[(0,p.jsx)(tU,{variant:"secondary",size:"lg",onClick:n,children:"Log In"}),(0,p.jsx)(tU,{size:"lg",onClick:n,children:"Get Started"})]})]})})})})}function rp(){let[e,t]=m.useState(!1),{resolvedTheme:n,setTheme:r}=eX();if(m.useEffect(()=>{t(!0)},[]),!e)return null;let i="dark"===n;return(0,p.jsxs)("button",{type:"button",onClick:()=>r(i?"light":"dark"),"aria-label":"Toggle theme",className:"border-0 bg-transparent p-0 text-muted-foreground transition-colors hover:text-foreground",suppressHydrationWarning:!0,children:[i?(0,p.jsx)(e6,{className:"h-5 w-5"}):(0,p.jsx)(e3,{className:"h-5 w-5"}),(0,p.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}var rf=[".yaml",".yml",".json"];function rh({onFileUpload:e,onUrlSubmit:t,isUploading:n=!1,showTermsAgreement:r=!1,title:i="Analyze Your",titleHighlight:o="OpenAPI Spec",subtitle:s="Get instant AI-powered insights and improve your API quality",compactHeight:a=!1}){let[l,c]=(0,m.useState)("file"),[u,d]=(0,m.useState)(""),[f,h]=(0,m.useState)(null),[x,v]=(0,m.useState)(!1),y=(0,m.useRef)(null),b=(0,m.useRef)(null),[w,k]=(0,m.useState)(void 0),j="file"===l?null!==f:""!==u.trim(),S=(0,m.useCallback)(e=>{h(e)},[]),E=(0,m.useCallback)(e=>{let t=e.target.files;t&&t.length>0&&S(t[0])},[S]),N=(0,m.useCallback)(e=>{e.preventDefault(),v(!1);let t=e.dataTransfer.files;t&&t.length>0&&S(t[0])},[S]),C=(0,m.useCallback)(()=>{j&&!n&&("file"===l&&f?e(f):"url"===l&&u.trim()&&t(u))},[l,f,u,j,n,e,t]);return(0,m.useLayoutEffect)(()=>{b.current&&k(b.current.offsetHeight)},[l,f]),(0,m.useLayoutEffect)(()=>{let e=b.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e)k(t.contentRect.height)});return t.observe(e),()=>{t.disconnect()}},[]),(0,p.jsxs)("div",{className:"mx-auto w-full max-w-2xl",children:[i&&(0,p.jsxs)("div",{className:a?"mb-4 space-y-2 text-center":"mb-8 space-y-3 text-center",children:[(0,p.jsxs)(A.motion.h3,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"text-foreground text-3xl font-bold sm:text-4xl",children:[i," ",(0,p.jsx)("span",{className:"text-primary",children:o})]}),s&&(0,p.jsx)(A.motion.p,{initial:{opacity:0}
65,animate:{opacity:1},transition:{delay:.1},className:"text-muted-foreground text-base",children:s})]}),(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"bg-accent-yellow/5 border border-accent-yellow rounded-[30px] backdrop-blur-[17.5px] shadow-[0px_40px_120px_0px_rgba(0,0,0,0.5)] pt-6 pb-8 px-10",children:[(0,p.jsx)("div",{role:"tablist",className:"flex gap-3 mb-3",children:[{id:"file",label:"File",icon:te},{id:"url",label:"URL",icon:e7}].map(({id:e,label:t,icon:r})=>{let i=l===e;return(0,p.jsx)("button",{type:"button",role:"tab",id:`tab-${e}`,"aria-selected":i,"aria-controls":`tabpanel-${e}`,onClick:()=>c(e),disabled:n,className:`relative flex-1 h-12 rounded-[12px] transition-colors duration-200 ${i?"bg-primary-scale-800/15 border-b-2 border-accent-yellow":"bg-transparent border-b-2 border-transparent hover:bg-primary-scale-800/[0.06]"} ${n?"cursor-not-allowed opacity-60":i?"cursor-default":"cursor-pointer"}`,children:(0,p.jsxs)("div",{className:`font-heading flex items-center justify-center gap-2 text-[12px] font-bold uppercase tracking-[0.24px] ${i?"text-white":"text-primary-scale-800"}`,children:[(0,p.jsx)(r,{className:"h-4 w-4"}),t]})},e)})}),(0,p.jsx)("div",{role:"tabpanel",id:`tabpanel-${l}`,"aria-labelledby":`tab-${l}`,children:(0,p.jsx)(A.motion.div,{animate:{height:w||"auto"},transition:{duration:.25,ease:[.25,.46,.45,.94]},style:{overflow:"hidden"},children:(0,p.jsx)("div",{ref:b,children:(0,p.jsx)(L.AnimatePresence,{mode:"wait",initial:!1,children:"file"===l?(0,p.jsxs)(A.motion.div,{initial:{opacity:0,x:-20,scale:.97},animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.97},transition:{duration:.25,ease:[.25,.46,.45,.94]},children:[(0,p.jsxs)("div",{role:"button",tabIndex:0,onDragOver:e=>{e.preventDefault(),v(!0)},onDragLeave:()=>v(!1),onDrop:N,onClick:()=>{var e;return!n&&(null==(e=y.current)?void 0:e.click())},onKeyDown:e=>{var t;"Enter"!==e.key&&" "!==e.key||n||(e.preventDefault(),null==(t=y.current)||t.click())},className:`relative rounded-[20px] border-2 border-dashed ${a?"p-6 sm:p-8":"p-10"} transition-all duration-300 will-change-transform ${n?"cursor-not-allowed opacity-50":"cursor-pointer"} ${x?"border-primary bg-primary/10":f?"border-green-500/50 bg-green-500/10":"border-primary-scale-800/50 hover:border-primary-scale-800/80"} `,children:[(0,p.jsx)("div",{className:"from-primary/0 via-primary/5 to-accent/0 pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-br opacity-0 transition-opacity duration-500 hover:opacity-100"}),f?(0,p.jsxs)("div",{className:"relative z-10 space-y-4 text-center",children:[(0,p.jsx)(A.motion.div,{initial:{scale:0,rotate:-180},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:200},className:"mx-auto flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-green-500/20 to-green-600/20 shadow-lg",children:(0,p.jsx)(g.Check,{className:"h-8 w-8 text-green-600 dark:text-green-400"})}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"text-foreground text-lg font-semibold",children:f.name}),(0,p.jsxs)("p",{className:"text-muted-foreground mt-1 text-sm",children:[(f.size/1024).toFixed(1)," ","KB"]})]}),(0,p.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),h(null)},disabled:n,className:"text-primary hover:text-primary/80 text-sm font-medium transition-colors",children:"Change file"})]}):(0,p.jsxs)("div",{className:"relative z-10 space-y-4 text-center",children:[(0,p.jsxs)(A.motion.div,{animate:{y:[0,-12,0]},transition:{duration:3,repeat:1/0,ease:"easeInOut"},className:"relative",children:[(0,p.jsx)(A.motion.div,{animate:{scale:[1,1.2,1],opacity:[.5,.8,.5]},transition:{duration:2,repeat:1/0},className:"bg-primary/20 absolute inset-0 rounded-full blur-xl"}),(0,p.jsx)(e8,{className:"text-primary relative mx-auto h-14 w-14"})]}),(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"font-heading text-white text-[22px] font-extrabold leading-[30px] tracking-[0.44px]",children:"Drop your file here"}),(0,p.jsx)("p",{className:"font-sans text-primary-scale-900 mt-2 text-[18px] font-semibold leading-[28px]",children:"or click to browse"}),(0,p.jsx)("p",{className:"font-sans text-primary-scale-800 mt-3 text-[14px] font-normal leading-[22px]",children:"Supports JSON or YAML • Max 70MB"})]})]})]}),(0,p.jsx)("input",{ref:y,type:"file",accept:rf.join(","),onChange:E,disabled:n,className:"hidden"})]},"file"):(0,p.jsx)(A.motion.div,{initial:{opacity:0,x:-20,scale:.97}
65,animate:{opacity:1,x:0,scale:1},exit:{opacity:0,x:20,scale:.97},transition:{duration:.25,ease:[.25,.46,.45,.94]},className:"space-y-4",children:(0,p.jsxs)("div",{className:"group relative",children:[(0,p.jsx)("div",{className:"from-primary/20 to-accent/20 absolute inset-0 rounded-xl bg-gradient-to-r opacity-0 blur-xl transition-opacity duration-500 group-hover:opacity-50"}),(0,p.jsx)(e7,{className:"text-muted-foreground absolute left-4 top-1/2 z-10 h-5 w-5 -translate-y-1/2"}),(0,p.jsx)(nz,{type:"url",placeholder:"https://api.example.com/openapi.yaml",value:u,onChange:e=>d(e.target.value),onKeyDown:e=>"Enter"===e.key&&j&&!n&&C(),className:"bg-background/50 border-border/50 focus:border-primary/50 focus:bg-background/80 relative h-16 pl-12 text-base backdrop-blur-sm transition-all",disabled:n})]})},"url")})})})}),(0,p.jsx)("div",{className:"mt-6",children:(0,p.jsx)(A.motion.div,{whileHover:!n&&j?{scale:1.02,y:-2}:{},whileTap:!n&&j?{scale:.98}:{},children:(0,p.jsx)(tU,{variant:"primary",size:"lg",onClick:()=>void C(),disabled:!j,isLoading:n,loadingText:"Analyzing...",className:"w-full",style:{boxShadow:"0px 8px 10px hsl(var(--primary-300) / 0.5), inset 0px 1px 2px rgba(255,255,255,0.04)"},children:"Analyze your OpenAPI"})})})]}),(0,p.jsx)(A.motion.div,{initial:{opacity:0}
65,animate:{opacity:1},transition:{delay:.3},className:"mt-6 flex justify-center",children:(0,p.jsx)(nV,{content:(0,p.jsxs)("div",{className:"bg-card/95 border-border/50 max-w-sm space-y-3 rounded-xl border p-4 shadow-2xl backdrop-blur-xl",children:[(0,p.jsxs)("div",{className:"border-border/50 mb-3 flex items-center gap-2 border-b pb-3",children:[(0,p.jsx)(e9,{className:"h-4 w-4 text-primary"}),(0,p.jsx)("span",{className:"text-foreground text-sm font-semibold",children:"Privacy & Data Handling"})]}),["We securely store OpenAPI Description files for no longer than 24 hours for processing purposes.","Upon upload, the file is processed only to extract diagnostic information.","The extracted diagnostic data may be securely stored and analyzed for operational, analytical, or service improvement purposes."].map((e,t)=>(0,p.jsxs)("div",{className:"flex items-start gap-2",children:[(0,p.jsx)(g.Check,{className:"mt-0.5 h-4 w-4 flex-shrink-0 text-primary"}),(0,p.jsx)("span",{className:"text-muted-foreground text-xs leading-relaxed",children:e})]},t))]}),children:(0,p.jsx)("button",{type:"button",className:"flex flex-wrap items-center justify-center gap-2.5 cursor-help appearance-none border-0 bg-transparent p-0 outline-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",children:[{icon:e9,text:"Secure"},{icon:tt,text:"Private"},{icon:g.Check,text:"Compliant"}].map(({icon:e,text:t})=>(0,p.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2 rounded-[8px] border border-primary-scale-800/30 bg-primary-scale-800/20",children:[(0,p.jsx)(e,{className:"h-4 w-4 text-primary-scale-800"}),(0,p.jsx)("span",{className:"font-sans text-[12px] leading-[16px] tracking-[0.33px] text-white",children:t})]},t))})})}),r&&(0,p.jsxs)(A.motion.p,{initial:{opacity:0}
65,animate:{opacity:1},transition:{delay:.4},className:"text-muted-foreground mt-4 text-center text-xs",children:["By using this service, you agree to our"," ",(0,p.jsx)(tR,{href:"/terms",className:"text-primary font-medium hover:underline",children:"Terms"})," and ",(0,p.jsx)(tR,{href:"/privacy",className:"text-primary font-medium hover:underline",children:"Privacy Policy"})]})]})}function rm({title:e="Your progress",currentStatus:t,timeRemainingLabel:n,progress:r,phases:i,size:o="md",onStatusClick:a,className:l}){let{titleId:c,progressId:u}=(0,m.useRef)({titleId:`progress-title-${Math.random().toString(36).slice(2,9)}`,progressId:`progress-bar-${Math.random().toString(36).slice(2,9)}`}).current,[d,f]=(0,m.useState)(0),g=(0,m.useRef)(0);(0,m.useEffect)(()=>{r>g.current&&(g.current=r)},[r]),(0,m.useEffect)(()=>{let e=setInterval(()=>{f(e=>{let t=g.current;return e>=t?e:Math.min(e+.5,t)})},16);return()=>{clearInterval(e)}},[]);let x=e=>{let t=e.toLowerCase();return t.includes("validating")?(0,p.jsx)(te,{className:"h-4 w-4"}):t.includes("parsing")?(0,p.jsx)(I.Search,{className:"h-4 w-4"}):t.includes("analyzing")?(0,p.jsx)(tr,{className:"h-4 w-4"}):t.includes("generating")?(0,p.jsx)(ti,{className:"h-4 w-4"}):(0,p.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"})},v=i.map((e,t)=>{let n=0===t?0:i[t-1].threshold,r=e.threshold,o=d>=r,a=d>=n&&d<r,l=0;if(o)l=100;else if(a){let e=r-n;e>0&&(l=(d-n)/e*100)}return(0,s.__spreadProps)((0,s.__spreadValues)({},e),{width:r-n,status:o?"completed":a?"active":"pending",fillPercentage:Math.min(100,Math.max(0,l))})});return(0,p.jsxs)("div",{role:"region","aria-labelledby":c,className:tM("space-y-4",l),children:[(0,p.jsxs)("div",{className:"sr-only","aria-live":"polite",children:["Progress ",Math.round(d),"% complete."," ",n?`${n} remaining.`:""," ","Current status: ",t,"."]}),(0,p.jsxs)("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)("h3",{id:c,className:"text-muted-foreground text-xs font-medium uppercase tracking-wider",children:e}),a?(0,p.jsxs)("button",{onClick:a,className:"text-primary focus-visible:ring-primary group flex items-center gap-3 text-lg font-semibold focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 sm:text-xl","aria-label":`Current status: ${t}. Click to view details.`,children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.25},children:x(t)},`icon-${t}`),(0,p.jsx)(A.motion.span,{initial:{opacity:0,y:4},animate:{opacity:1,y:0},transition:{duration:.25},children:t},t)]}):(0,p.jsxs)("div",{className:"text-primary flex items-center gap-3 text-lg font-semibold sm:text-xl",children:[x(t),(0,p.jsx)("span",{children:t})]})]}),n&&(0,p.jsxs)("div",{className:"text-muted-foreground flex items-center gap-2 text-sm font-medium",children:[(0,p.jsx)(tn,{className:"h-4 w-4"}),(0,p.jsx)("span",{children:n})]})]}),(0,p.jsx)("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(d),"aria-label":"Overall progress",id:u,className:tM("flex w-full items-center gap-2","sm"===o?"h-1.5":"h-2.5"),children:v.map(e=>(0,p.jsx)(A.motion.div,{className:"bg-muted relative h-full w-full overflow-hidden rounded-full",style:{flexBasis:`${e.width}%`},title:e.label,"aria-label":e.label,animate:"active"===e.status?{opacity:[1,.5,1],scale:[1,1.03,1],boxShadow:["0 0 0 0 rgba(59, 130, 246, 0)","0 0 0 4px rgba(59, 130, 246, 0.1)","0 0 0 0 rgba(59, 130, 246, 0)"]}:{},transition:"active"===e.status?{duration:2,repeat:1/0,ease:"easeInOut"}:{},children:(0,p.jsx)("div",{className:"from-primary to-primary/80 relative h-full overflow-hidden rounded-full bg-gradient-to-r",style:{width:`${e.fillPercentage}%`},children:"active"===e.status&&(0,p.jsx)(A.motion.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent",animate:{x:["-100%","100%"]},transition:{duration:1.5,repeat:1/0,ease:"linear"}})})},e.id))})]})}var rg=((r=rg||{}).IDLE="idle",r.UPLOADING="uploading",r.VALIDATING="validating",r.PARSING="parsing",r.ANALYZING="analyzing",r.GENERATING="generating",r.COMPLETED="completed",r.ERROR="error",r);function rx({uploadState:e}){let{status:t,progress:n,currentPhase:r}=e;return(0,p.jsx)("div",{className:"mx-auto w-full max-w-lg space-y-6 sm:max-w-2xl sm:space-y-8",children:(0,p.jsxs)("div",{className:"space-y-6",children:[(0,p.jsx)(rm,{title:"Your progress",currentStatus:r,timeRemainingLabel:n<100?"Processing...":void 0,progress:n,phases:[{id:"initiating",label:"Initiating",threshold:25},{id:"analyzing",label:"Analyzing",threshold:50},{id:"processing",label:"Processing",threshold:75},{id:"completing",label:"Completing",threshold:100}],size:"md",onStatusClick:()=>{}}),"completed"===t&&(0,p.jsxs)(A.motion.div,{initial:{opacity:0,scale:.9}
65,animate:{opacity:1,scale:1},transition:{delay:.3,type:"spring"},className:"border-primary/20 from-primary/5 to-primary/10 rounded-xl border bg-gradient-to-r p-8 text-center shadow-sm",children:[(0,p.jsx)("p",{className:"text-primary text-lg font-semibold",children:"🎉 Your API quality analysis is complete!"}),(0,p.jsx)("p",{className:"text-primary/80 mt-3 text-sm",children:"Review the detailed report below to see improvements and recommendations."})]})]})})}var rv={asana:"Asana-logo.svg",basecamp:"Basecamp-logo.svg",box:"Box-logo.svg",calendly:"Calendly-logo.svg",clickup:"ClickUp-logo.svg",discord:"discord.svg",dropbox:"Dropbox-logo.svg",evernote:"Evernote-logo.svg",github:"GitHub-logo.svg","google-calendar":"GoogleCalendar-logo.svg","google-drive":"GoogleDrive-logo.svg",hubspot:"HubSpot-logo.svg",intercom:"Intercom-logo.svg",jira:"Jira-logo.svg",mailchimp:"Mailchimp-logo.svg","microsoft-teams":"MicrosoftTeams-logo.svg",notion:"Notion-logo.svg",onedrive:"OneDrive-logo.svg",openai:"OpenAI-logo.svg",paypal:"PayPal-logo.svg",quickbooks:"QuickBooks-logo.svg",salesforce:"Salesforce-logo.svg",sendgrid:"SendGrid-logo.svg",shopify:"Shopify-logo.svg",square:"Square-logo.svg",stripe:"Stripe-logo.svg",telegram:"Telegram-logo.svg",todoist:"Todoist-logo.svg",trello:"Trello-logo.svg",twilio:"Twilio-logo.svg",xero:"Xero-logo.svg",zapier:"Zapier-logo.svg",zendesk:"Zendesk-logo.svg","zoho-crm":"ZohoCrm-logo.svg",zoom:"Zoom-logo.svg"},ry={sm:"h-6 w-6 text-xs",md:"h-8 w-8 text-sm",lg:"h-12 w-12 text-lg"};function rb({vendor:e,size:t="md",className:n="",apiName:r}){if(!e)return(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:`${ry[t]} border-border/30 bg-muted/20 flex items-center justify-center rounded-full border ${n}`,children:(0,p.jsx)(to,{className:"text-muted-foreground h-3 w-3"})});let i=Object.keys(rv).find(t=>{var n;return e.name.toLowerCase().includes(t.toLowerCase())||(null==(n=e.domain)?void 0:n.toLowerCase().includes(t.toLowerCase()))}),o=i?rv[i]:null;if(o)return(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:`${ry[t]} border-border/30 flex items-center justify-center overflow-hidden rounded-full border bg-white ${n}`,children:(0,p.jsx)("img",{src:`/${o}`,alt:`${e.name} logo`,className:"h-full w-full object-contain p-1",onError:t=>{let n=t.target;n.style.display="none";let r=n.parentElement;r&&(r.innerHTML=`<span class="font-bold text-primary">${e.name.charAt(0).toUpperCase()}</span>`)}})});if(e.logo)return(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:`${ry[t]} border-border/30 bg-muted/20 flex items-center justify-center overflow-hidden rounded-full border ${n}`,children:(0,p.jsx)("img",{src:e.logo,alt:`${e.name} logo`,className:"h-full w-full object-contain"})});let s=e.name;if(r&&e.name&&!r.toLowerCase().includes(e.name.toLowerCase())){let e=r.split(" ")[0];e&&e.length>0&&(s=e)}let a=s.charAt(0).toUpperCase();return(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:`${ry[t]} border-border/30 bg-primary/10 flex items-center justify-center rounded-full border ${n}`,children:(0,p.jsx)("span",{className:"text-primary font-bold",children:a})})}var rw={"api-score.file.too-large":{title:"File Too Large",description:"The selected file exceeds the maximum size limit of 10MB.",action:"Please select a smaller file and try again.",severity:"medium"},"api-score.file.invalid-type":{title:"Invalid File Type",description:"Please select a valid OpenAPI specification file (JSON or YAML).",action:"Choose a .json or .yaml file and try again.",severity:"medium"},"api-score.file.read-error":{title:"File Read Error",description:"Unable to read the selected file.",action:"Please try selecting the file again.",severity:"medium"},"api-score.file.empty":{title:"Empty File",description:"The selected file appears to be empty.",action:"Please select a file with content and try again.",severity:"low"},"api-score.validation.invalid-json":{title:"Invalid JSON Format",description:"The file contains invali
65d JSON syntax.",action:"Please check the file format and try again.",severity:"high"},"api-score.validation.invalid-yaml":{title:"Invalid YAML Format",description:"The file contains invalid YAML syntax.",action:"Please check the file format and try again.",severity:"high"},"api-score.validation.missing-openapi":{title:"Missing OpenAPI Specification",description:"The file does not contain a valid OpenAPI specification.",action:'Please ensure the file contains an "openapi" or "swagger" field.',severity:"high"},"api-score.validation.missing-paths":{title:"Missing API Paths",description:'The OpenAPI specification is missing the required "paths" field.',action:"Please ensure your OpenAPI spec includes API endpoint definitions.",severity:"high"},"api-score.validation.invalid-structure":{title:"Invalid API Structure",description:"The OpenAPI specification has an invalid structure.",action:"Please check your OpenAPI spec follows the correct format.",severity:"high"},"api-score.validation.unsupported-version":{title:"Unsupported OpenAPI Version",description:"The OpenAPI specification version is not supported.",action:"Please use OpenAPI 3.0+ or Swagger 2.0 specification.",severity:"medium"},"api-score.api.request-failed":{title:"Analysis Failed",description:"Unable to analyze your API specification.",action:"Please try again or contact support if the issue persists.",severity:"high"},"api-score.api.timeout":{title:"Analysis Timeout",description:"The analysis is taking longer than expected.",action:"Please try again with a smaller file or check your connection.",severity:"medium"},"api-score.api.server-error":{title:"Server Error",description:"Our servers are experiencing issues.",action:"Please try again in a few minutes.",severity:"high"},"api-score.api.rate-limited":{title:"Rate Limited",description:"Too many requests. Please wait before trying again.",action:"Please wait a few minutes and try again.",severity:"medium"},"api-score.api.network-error":{title:"Network Error",description:"Unable to connect to our servers.",action:"Please check your internet connection and try again.",severity:"medium"},"api-score.session.save-failed":{title:"Session Save Failed",description:"Unable to save your analysis session.",action:"Please try again or refresh the page.",severity:"medium"},"api-score.session.load-failed":{title:"Session Load Failed",description:"Unable to load your analysis session.",action:"Please try uploading your file again.",severity:"medium"},"api-score.session.expired":{title:"Session Expired",description:"Your analysis session has expired.",action:"Please upload your file again to start a new analysis.",severity:"low"},"api-score.session.not-found":{title:"Session Not Found",description:"The requested analysis session could not be found.",action:"Please upload your file again to start a new analysis.",severity:"low"},"api-score.session.invalid-data":{title:"Invalid Session Data",description:"The session data appears to be corrupted.",action:"Please upload your file again to start a new analysis.",severity:"medium"},"api-score.cookie.too-large":{title:"Data Too Large",description:"The analysis data is too large to save.",action:"Please try with a smaller API specification.",severity:"medium"},"api-score.cookie.blocked":{title:"Storage Blocked",description:"Your browser is blocking data storage.",action:"Please enable cookies and try again.",severity:"high"},"api-score.cookie.save-failed":{title:"Save Failed",description:"Unable to save your analysis data.",action:"Please try again or contact support.",severity:"medium"},"api-score.cookie.load-failed":{title:"Load Failed",description:"Unable to load your saved analysis data.",action:"Please upload your file again.",severity:"medium"},"api-score.auth.redirect-failed":{title:"Redirect Failed",description:"Unable to redirect to the authentication page.",action:"Please try again or navigate manually.",severity:"medium"},"api-score.auth.session-missing":{title:"Session Missing",description:"Your authentication session is missing.",action:"Please sign in again.",severity:"low"},"api-score.auth.invalid-session":{title:"Invalid Session",description:"Your authentication session is invali
65d.",action:"Please sign in again.",severity:"low"},"api-score.auth.unauthorized":{title:"Unauthorized",description:"You are not authorized to access this resource.",action:"Please sign in with the correct account.",severity:"medium"},"api-score.processing.failed":{title:"Processing Failed",description:"An error occurred while processing your API specification.",action:"Please try again or contact support.",severity:"high"},"api-score.processing.timeout":{title:"Processing Timeout",description:"The analysis process timed out.",action:"Please try again with a smaller file.",severity:"medium"},"api-score.processing.cancelled":{title:"Processing Cancelled",description:"The analysis was cancelled by the user.",action:"Please start a new analysis if needed.",severity:"low"},"api-score.general.unknown-error":{title:"Unknown Error",description:"An unexpected error occurred.",action:"Please try again or contact support.",severity:"high"},"api-score.general.network-error":{title:"Network Error",description:"Unable to connect to the internet.",action:"Please check your connection and try again.",severity:"medium"},"api-score.general.browser-not-supported":{title:"Browser Not Supported",description:"Your browser is not supported for this feature.",action:"Please use a modern browser like Chrome, Firefox, or Safari.",severity:"high"}};function rk(e){return rw[e]||rw["api-score.general.unknown-error"]}var rj={low:"text-blue-600 bg-blue-50 border-blue-200",medium:"text-yellow-600 bg-yellow-50 border-yellow-200",high:"text-orange-600 bg-orange-50 border-orange-200",critical:"text-red-600 bg-red-50 border-red-200"},rS={low:"ℹ️",medium:"⚠️",high:"🚨",critical:"💥"},rE=((i=rE||{}).NETWORK="network",i.TIMEOUT="timeout",i.VALIDATION="validation",i.HTTP="http",i.SECURITY="security",i.SERVER="server",i.FILE_UPLOAD="file_upload",i.OPENAPI_INVALID="openapi_invalid",i.CONTENT_TYPE_INVALID="content_type_invalid",i.FILE_TOO_LARGE="file_too_large",i.URL_INVALID="url_invalid",i),rN={"failed-to-parse-import-spec":"openapi_invalid","imported-spec-not-oas":"openapi_invalid","invalid-import-uri":"url_invalid","failed-to-download-import-spec":"network","spec-includes-relative-refs":"validation","spec-includes-absolute-http-refs":"validation","bundle-failed":"openapi_invalid",scorecard_not_found:"server",scoring_failed:"server"};function rC({error:e,onRetry:t,onStartOver:n}){let r=((e,t)=>{switch(e){case"http":if(t&&t>=400&&t<500)return{showRetry:!1,showStartOver:!0,primaryAction:"startOver"};return{showRetry:!0,showStartOver:!0,primaryAction:"retry"};
65case"network":case"timeout":case"server":default:return{showRetry:!0,showStartOver:!0,primaryAction:"retry"};case"file_upload":case"openapi_invalid":case"file_too_large":case"url_invalid":case"validation":case"content_type_invalid":case"security":return{showRetry:!1,showStartOver:!0,primaryAction:"startOver"}}})(e.errorType,e.statusCode),i=e.details||e.error;return(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},className:"mx-auto mb-16 mt-16 w-full max-w-lg space-y-6 md:mb-32 md:mt-32",children:(0,p.jsxs)("div",{className:"space-y-4 text-center",children:[(0,p.jsx)("div",{className:"bg-destructive/10 mx-auto flex h-16 w-16 items-center justify-center rounded-full",children:(e=>{switch(e){case"network":case"timeout":return(0,p.jsx)("svg",{className:"text-destructive h-8 w-8",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.288 15.038a5.25 5.25 0 017.424 0M5.106 11.856c3.807-3.808 9.98-3.808 13.788 0M1.924 8.674c5.565-5.565 14.587-5.565 20.152 0M12 2.25v4.5m0 0V2.25m0 4.5h4.5m-4.5 0H7.5"})});case"security":return(0,p.jsx)("svg",{className:"text-destructive h-8 w-8",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})});default:return(0,p.jsx)("svg",{className:"text-destructive h-8 w-8",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:(0,p.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"})})}})(e.errorType)}),(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)("h2",{className:"text-foreground text-2xl font-semibold",children:((e,t)=>{switch(e){case"network":return"Connection Error";case"timeout":return"Request Timeout";case"validation":case"openapi_invalid":return"Validation Failed";case"http":if(400===t)return"Bad Request";if(404===t)return"Not Found";if(413===t)return"File Too Large";if(415===t)return"Unsupported File Type";if(t&&t>=500)return"Server Error";return"HTTP Error";case"security":return"Security Error";case"server":return"Server Error";case"file_upload":return"File Upload Error";case"content_type_invalid":return"Invalid Content Type";case"file_too_large":return"File Too Large";case"url_invalid":return"Invalid URL";default:return"Error"}})(e.errorType,e.statusCode)}),(0,p.jsx)("p",{className:"text-muted-foreground",children:i})]}),(0,p.jsxs)("div",{className:"flex flex-col justify-center gap-3 sm:flex-row",children:[r.showRetry&&(0,p.jsx)(tU,{onClick:t,variant:"retry"===r.primaryAction?"primary":"secondary",className:"px-6 py-2",children:"Try Again"}),r.showStartOver&&(0,p.jsx)(tU,{onClick:n,variant:"startOver"===r.primaryAction?"primary":"secondary",className:"px-6 py-2",children:"Start Over"})]})]})})}function rP(e,t,n=0){let r=e[t];return"number"!=typeof r||isNaN(r)?n:r}function rT(e,t,n=""){let r=e[t];return"string"==typeof r?r:n}function rA(e,t,n=[]){let r=e[t];return Array.isArray(r)?r:n}function rI(e,t,n=null){let r=e[t];return r&&"object"==typeof r&&!Array.isArray(r)?r:n}var rM={excellent:{gradient:{start:"hsl(142, 76%, 36%)",end:"hsl(142, 76%, 50%)"},solid:"hsl(142, 71%, 45%)",badge:{light:"bg-green-100 text-green-800",dark:"dark:bg-green-900/30 dark:text-green-300"}},good:{gradient:{start:"hsl(165, 82%, 25%)",end:"hsl(165, 82%, 40%)"},solid:"hsl(165, 82%, 35%)",badge:{light:"bg-teal-100 text-teal-800",dark:"dark:bg-teal-900/30 dark:text-teal-300"}},fair:{gradient:{start:"hsl(45, 93%, 47%)",end:"hsl(45, 93%, 58%)"},solid:"hsl(45, 93%, 47%)",badge:{light:"bg-amber-100 text-amber-800",dark:"dark:bg-amber-900/30 dark:text-amber-300"}},poor:{gradient:{start:"hsl(25, 95%, 53%)",end:"hsl(25, 95%, 65%)"},solid:"hsl(25, 95%, 53%)",badge:{light:"bg-orange-100 text-orange-800",dark:"dark:bg-orange-900/30 dark:text-orange-300"}},failing:{gradient:{start:"hsl(0, 84%, 50%)",end:"hsl(0, 84%, 62%)"},solid:"hsl(0, 84%, 60%)",badge:{light:"bg-red-100 text-red-800",dark:"dark:bg-red-900/30 dark:text-red-300"}}};function rL(e){return rM[e.startsWith("A")?"excellent":e.startsWith("B")?"good":e.startsWith("
65C")?"fair":e.startsWith("D")?"poor":"failing"]}function rR(e){return rM[e>=70?"excellent":e>=60?"good":e>=50?"fair":e>=40?"poor":"failing"]}function r_(e){return rL(e).solid}function rO(e){switch(e){case"green":return"text-emerald-600/80 dark:text-emerald-400/70";case"yellow":return"text-amber-600/80 dark:text-amber-400/70";case"red":return"text-rose-600/80 dark:text-rose-400/70";case"orange":return"text-orange-600/80 dark:text-orange-400/70";default:return"text-foreground/80"}}function rD(e){return e>=80?"bg-emerald-500/60":e>=60?"bg-amber-500/60":e>=40?"bg-orange-500/60":"bg-rose-500/60"}var rF={1:{label:"Errors",singularLabel:"Error",icon:tp.default,gradient:"from-rose-500/15 via-rose-500/5 to-transparent dark:from-rose-500/[0.07] dark:via-transparent dark:to-transparent",glow:"shadow-rose-500/10 dark:shadow-rose-500/[0.04]",accentLine:"from-rose-500 via-rose-400/60 to-transparent",iconColor:"text-rose-600 dark:text-rose-500",borderColor:"border-rose-500/60 dark:border-rose-500/50",filterActive:"bg-rose-500 text-white shadow-sm",filterInactive:"bg-rose-50 dark:bg-muted text-rose-600 dar
65k:text-rose-500 hover:bg-rose-100 dark:hover:bg-rose-500/10",cardBg:"bg-white dark:bg-card/60"},2:{label:"Warnings",singularLabel:"Warning",icon:k.AlertTriangle,gradient:"from-amber-500/15 via-amber-500/5 to-transparent dark:from-amber-500/[0.07] dark:via-transparent dark:to-transparent",glow:"shadow-amber-500/10 dark:shadow-amber-500/[0.04]",accentLine:"from-amber-500 via-amber-400/60 to-transparent",iconColor:"text-amber-600 dark:text-amber-500",borderColor:"border-amber-500/60 dark:border-amber-500/50",filterActive:"bg-amber-500 text-white shadow-sm",filterInactive:"bg-amber-50 dark:bg-muted text-amber-600 dark:text-amber-500 hover:bg-amber-100 dark:hover:bg-amber-500/10",cardBg:"bg-white dark:bg-card/60"},3:{label:"Info",singularLabel:"Information",icon:Y.Info,gradient:"from-sky-500/15 via-sky-500/5 to-transparent dark:from-sky-500/[0.07] dark:via-transparent dark:to-transparent",glow:"shadow-sky-500/10 dark:shadow-sky-500/[0.04]",accentLine:"from-sky-500 via-sky-400/60 to-transparent",iconColor:"text-sky-600 dark:text-sky-500",borderColor:"border-sky-500/60 dark:border-sky-500/50",filterActive:"bg-sky-500 text-white shadow-sm",filterInactive:"bg-sky-50 dark:bg-muted text-sky-600 dark:text-sky-500 hover:bg-sky-100 dark:hover:bg-sky-500/10",cardBg:"bg-white dark:bg-card/60"},4:{label:"Hints",singularLabel:"Hint",icon:tf,gradient:"from-slate-400/15 via-slate-400/5 to-transparent dark:from-slate-500/[0.07] dark:via-transparent dark:to-transparent",glow:"shadow-slate-400/10 dark:shadow-slate-500/[0.04]",accentLine:"from-slate-400 via-slate-300/60 to-transparent",iconColor:"text-slate-500 dark:text-slate-400",borderColor:"border-slate-400/60 dark:border-slate-400/50",filterActive:"bg-slate-500 text-white shadow-sm",filterInactive:"bg-slate-100 dark:bg-muted text-slate-500 dark:text-slate-400 hover:bg-slate-200 dark:hover:bg-slate-500/10",cardBg:"bg-white dark:bg-card/60"}};function r$(e){return e>=80?"text-emerald-600 dark:text-emerald-400":e>=60?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}function rz(e,t=1){let n=e/t;return n>=.8?"green":n>=.5?"yellow":"red"}function rV(e,t=1){let n=e/t;return n>=.8?"text-green-600 dark:text-green-400":n>=.6?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}function rB(e){switch(e){case"green":return{text:"text-green-600 dark:text-green-400",bg:"bg-green-500"};case"yellow":return{text:"text-yellow-600 dark:text-yellow-400",bg:"bg-yellow-500"};case"red":return{text:"text-red-600 dark:text-red-400",bg:"bg-red-500"};case"orange":return{text:"text-orange-600 dark:text-orange-400",bg:"bg-orange-500"};default:return{text:"text-muted-foreground",bg:"bg-muted"}}}function rH(e){switch(e){case"green":return{bg:"bg-green-100 dark:bg-green-900/30",text:"text-green-700 dark:text-green-300"};case"yellow":return{bg:"bg-yellow-100 dark:bg-yellow-900/30",text:"text-yellow-700 dark:text-yellow-300"};case"red":return{bg:"bg-red-100 dark:bg-red-900/30",text:"text-red-700 dark:text-red-300"};case"orange":return{bg:"bg-orange-100 dark:bg-orange-900/30",text:"text-orange-700 dark:text-orange-300"};case"blue":return{bg:"bg-blue-100 dark:bg-blue-900/30",text:"text-blue-700 dark:text-blue-300"};case"amber":return{bg:"bg-amber-100 dark:bg-amber-900/30",text:"text-amber-700 dark:text-amber-300"};default:return{bg:"bg-muted/50",text:"text-muted-foreground"}}}var rU={emerald:{bg:"bg-emerald-100/80 dark:bg-emerald-900/40",bgSubtle:"bg-emerald-100/60 dark:bg-emerald-900/30",text:"text-emerald-700 dark:text-emerald-300",icon:"text-emerald-600 dark:text-emerald-400",border:"border-emerald-200/30 dark:border-emerald-800/20",solid:"bg-emerald-500"},amber:{bg:"bg-amber-100/80 dark:bg-amber-900/40",bgSubtle:"bg-amber-100/60 dark:bg-amber-900/30",text:"text-amber-700 dark:text-amber-300",icon:"text-amber-600 dark:text-amber-400",border:"border-amber-200/30 dark:border-amber-800/20",solid:"bg-amber-400"},orange:{bg:"bg-orange-100/80 dark:bg-orange-900/40",bgSubtle:"bg-orange-100/60 dark:bg-orange-900/30",text:"text-orange-700 dark:text-orange-300",icon:"text-orange-600 dark:text-orange-400",border:"border-orange-200/30 dark:border-orange-800/20",solid:"bg-orange-400"},rose:{bg:"bg-rose-100/80 dark:bg-rose-900/40",bgSubtle:"bg-rose-100/60 dark:bg-rose-900/30",text:"text-rose-700 dark:text-rose-300",icon:"text-rose-600 dar
65k:text-rose-400",border:"border-rose-200/30 dark:border-rose-800/20",solid:"bg-rose-500"},sky:{bg:"bg-sky-100/80 dark:bg-sky-900/40",bgSubtle:"bg-sky-100/60 dark:bg-sky-900/30",text:"text-sky-700 dark:text-sky-300",icon:"text-sky-600 dark:text-sky-400",border:"border-sky-200/30 dark:border-sky-800/20",solid:"bg-sky-500"},slate:{bg:"bg-slate-100/80 dark:bg-slate-900/40",bgSubtle:"bg-slate-100/60 dark:bg-slate-900/30",text:"text-slate-700 dark:text-slate-300",icon:"text-slate-600 dark:text-slate-400",border:"border-slate-200/30 dark:border-slate-800/20",solid:"bg-slate-500"}};function rW(e){let t=rU[e];return{bg:t.bg,text:t.text,icon:t.icon}}var rG={error:"rose",warning:"amber",information:"sky",hint:"slate"};function rq(e){let t=rG[e],n=rU[t];return{bg:n.bgSubtle,text:n.text,icon:`text-${t}-500`}}var rK={best:3,ok:8,poor:14},rY={best:"emerald",ok:"amber",poor:"orange",critical:"rose"};function rJ(e){return e<=rK.best?"best":e<=rK.ok?"ok":e<=rK.poor?"poor":"critical"}var rX={best:rU.emerald.solid,ok:rU.amber.solid,poor:rU.orange.solid,critical:rU.rose.solid};function rZ(e){return rU[rY[e]].icon}function rQ({score:e,size:t=128,delay:n=0,gradientId:r,fontSizeMultiplier:i,showComingSoon:o=!1,comingSoonText:s="N/A"}){let a,l=rR(e).gradient,c=i||(t<80?.28:t<100?.24:.2),u=r?`${r}-${Math.round(e)}`:`circular-metric-${Math.round(e)}`;return(0,p.jsxs)("div",{className:"relative",style:{width:t,height:t},children:[(0,p.jsxs)("svg",{className:"h-full w-full -rotate-90 transform",viewBox:"0 0 100 100",children:[(0,p.jsx)("circle",{cx:"50",cy:"50",r:"40",stroke:"hsl(142, 7%, 92%)",strokeWidth:"6",fill:"none",opacity:"0.3"}),(0,p.jsx)("defs",{children:(0,p.jsxs)("linearGradient",{id:u,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:l.start}),(0,p.jsx)("stop",{offset:"100%",stopColor:l.end})]})}),(0,p.jsx)(A.motion.circle,{cx:"50",cy:"50",r:"40",stroke:o?"hsl(142, 7%, 92%)":`url(#${u})`,strokeWidth:"6",fill:"none",strokeLinecap:"round",strokeDasharray:"251",initial:{strokeDashoffset:251},animate:{strokeDashoffset:o?251:251-251*e/100},transition:{delay:n,duration:1.5,ease:"easeOut"}})]}),(0,p.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:n+.2},className:"text-center",children:o?(0,p.jsx)("div",{className:"font-bold",style:{fontSize:"Coming Soon"===s?.12*t:.2*t,lineHeight:1,textAlign:"center",color:"Coming Soon"===s?"hsl(var(--foreground))":"hsl(var(--muted-foreground))"},children:"Coming Soon"===s?(0,p.jsxs)(p.Fragment,{children:["Coming",(0,p.jsx)("br",{}),"Soon"]}):s}):(0,p.jsx)("div",{className:"font-bold",style:{fontSize:t*c,background:(a=rR(e),`linear-gradient(135deg, ${a.gradient.start}, ${a.gradient.end})`),WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:e})})})]})}function r0({report:e,scoreCardRef:t,overallScore:n,downloadImage:r,isGeneratingImage:i,useMockData:o=!1,contractMetricsLayout:s="grid",showDownloadButton:a=!1}){var l,c,u,d,f,h,m,g,x,v,y,b,w,k,j;let S,E=e=>"apiMetadata"in e&&"apiId"in e.apiMetadata&&"operationCount"in e.apiMetadata,N=()=>{var t;return!E(e)||e.summary.grade&&null!==e.summary.grade?e.summary.grade:(t=e.summary.score)>=90?"A+":t>=80?"A":t>=70?"A-":t>=67?"B+":t>=63?"B":t>=60?"B-":t>=57?"C+":t>=53?"C":t>=50?"C-":t>=47?"D+":t>=43?"D":t>=40?"D-":"F"},C=()=>(E(e),e.summary.level).toLowerCase().split(/[\s-_]+/).map(e=>"ai"===e?"AI":e.charAt(0).toUpperCase()+e.slice(1)).join(" ").replace(/\bai\b/gi,"AI"),P=E(e)?{endpoints:e.apiMetadata.operationCount,schemas:e.apiMetadata.schemaCount,authTypes:e.apiMetadata.securitySchemeCount,securitySchemeTypes:e.apiMetadata.securitySchemeTypes,tagCount:e.apiMetadata.tagCount}:{endpoints:null!=(l=e.apiMetadata.operationCount)?l:e.details.reduce((e,t)=>e+t.dimensions.reduce((e,t)=>e+t.signals.reduce(()=>1,0),0),0),schemas:null!=(c=e.apiMetadata.schemaCount)?c:0,authTypes:null!=(u=e.apiMetadata.securitySchemeCount)?u:1,securitySchemeTypes:null!=(d=e.apiMetadata.securitySchemeTypes)?d:[],tagCount:null!=(f=e.apiMetadata.tagCount)?f:0};return(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20}
65,animate:{opacity:1,y:0},transition:{delay:.3},className:"",children:(0,p.jsxs)("div",{ref:t,className:"border-border bg-card relative min-h-[710px] w-full overflow-hidden rounded-2xl border px-4 pb-10 pt-5 shadow-lg backdrop-blur-sm sm:min-h-[450px] sm:px-6 sm:pb-6 sm:pt-5 lg:min-h-0 lg:rounded-3xl lg:px-8 lg:pb-8 lg:pt-5",children:[(0,p.jsxs)("div",{className:"mb-4 flex items-start justify-between gap-3 sm:mb-6 sm:gap-6",children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.3},className:"min-w-0 flex-1",children:(0,p.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-center sm:gap-3",children:[(0,p.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)(rb,{vendor:{name:e.apiMetadata.vendor.name,domain:E(e)?e.apiMetadata.vendor.domain||`https://${(null==(m=null==(h=e.apiMetadata.vendor.contact)?void 0:h.email)?void 0:m.split("@")[1])||"example.com"}`:e.apiMetadata.vendor.domain},apiName:e.apiMetadata.name,size:"md"})}),(0,p.jsx)(nV,{content:e.apiMetadata.name,children:(0,p.jsx)("h1",{className:"text-foreground line-clamp-1 min-w-0 flex-1 text-lg font-bold capitalize sm:text-xl lg:text-2xl",style:{fontFamily:"Nunito Sans"},children:e.apiMetadata.name})}),(0,p.jsxs)("div",{className:"hidden items-center gap-1.5 sm:flex",children:[(0,p.jsx)("span",{className:"text-muted-foreground text-xl font-normal",children:"-"}),(0,p.jsx)(nV,{content:`API Maturity Level: ${C()}`,children:(0,p.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,p.jsx)("span",{className:"text-foreground text-xs font-semibold capitalize sm:text-sm",children:C()}),(0,p.jsx)(td,{className:"text-muted-foreground h-3.5 w-3.5 cursor-help sm:h-4 sm:w-4"})]})})]})]}),(0,p.jsx)(nV,{content:`API Maturity Level: ${C()}`,children:(0,p.jsxs)("div",{className:"border-border bg-muted/50 inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 sm:hidden",children:[(0,p.jsx)("span",{className:"text-foreground text-xs font-semibold capitalize",children:C()}),(0,p.jsx)(td,{className:"text-muted-foreground h-3 w-3 cursor-help"})]})})]})}),(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.5},className:"flex shrink-0 items-center justify-end",children:(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)("div",{className:"hidden text-5xl font-black leading-none",style:{color:r_(N())},children:N()}),(0,p.jsx)("div",{className:"bg-border hidden h-7 w-px sm:h-9"}),(0,p.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,p.jsx)("span",{className:"text-2xl font-black tabular-nums leading-none sm:text-3xl lg:text-5xl",style:{color:r_(N())},children:Math.round(n)}),(0,p.jsx)("span",{className:"text-sm font-semibold sm:text-base lg:text-xl",style:{color:r_(N()),opacity:.7},children:"/100"})]})]})})]}),(0,p.jsx)("div",{className:"mb-4 grid grid-cols-2 gap-2 sm:mb-6 sm:grid-cols-3 sm:gap-4 lg:grid-cols-6",children:e.summary.dimensions.map((t,n)=>{var r,i;let s=Math.round(E(e)?t.score||0:(null==(r=t.scores)?void 0:r.current)||0),a=!1;if(E(e)&&!o){let n=e.details.flatMap(e=>e.dimensions).find(e=>e.kind===t.kind);a=!n||0===((null==(i=n.signals)?void 0:i.length)||0)}let l=1===n?"Developer Experience & Jentic Compatibility":t.name,c={name:t.kind,value:s,fullName:l,description:t.intention,hasNoData:a};return(0,p.jsxs)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.7+.1*n,type:"spring",stiffness:200},className:"flex flex-col items-center space-y-0.5 sm:space-y-2",children:[(0,p.jsx)("div",{className:"scale-75 transition-transform sm:scale-100",children:(0,p.jsx)(rQ,{score:c.value,size:100,delay:.9+.1*n,gradientId:`metric-${c.name.replace(/\s+/g,"-").toLowerCase()}`,showComingSoon:c.hasNoData,comingSoonText:"Coming Soon"})}),(0,p.jsx)(nV,{content:c.description,children:(0,p.jsx)("div",{className:"text-muted-foreground line-clamp-2 cursor-help text-center text-[10px] leading-none sm:text-xs sm:leading-tight",children:c.fullName})})]},c.name)})}),(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20}
65,animate:{opacity:1,y:0},transition:{delay:.7},className:"grid grid-cols-1 gap-2 sm:grid-cols-2 sm:gap-4",children:[].map((e,t)=>(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.8+.1*t},className:"border-border/20 bg-muted/30 hover:bg-muted/40 group relative overflow-hidden rounded-lg border p-2 transition-all duration-200 sm:p-3",children:[(0,p.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-br from-white/5 to-transparent"}),(0,p.jsxs)("div",{className:"relative flex items-center gap-2 sm:gap-3",children:[(0,p.jsx)("div",{className:"flex h-6 w-6 items-center justify-center sm:h-8 sm:w-8",children:(0,p.jsx)(e.icon,{className:"text-muted-foreground h-3 w-3 sm:h-4 sm:w-4"})}),(0,p.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,p.jsx)("div",{className:"text-muted-foreground/70 text-[10px] font-normal uppercase tracking-wide sm:text-xs",children:e.name}),(0,p.jsxs)("div",{className:"flex items-baseline gap-1",children:[(0,p.jsx)("div",{className:"text-foreground text-xs font-semibold sm:text-sm",children:e.value}),e.suffix&&(0,p.jsx)("div",{className:"text-muted-foreground text-[10px] sm:text-xs",children:e.suffix})]})]})]})]},e.name))}),"grid"===s&&(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1},className:"w-full pt-4",children:(0,p.jsx)("div",{className:"grid auto-rows-fr grid-cols-1 gap-2 sm:grid-cols-2 sm:gap-3 lg:grid-cols-5",children:[{name:"Operations",value:P.endpoints.toString(),tooltip:"Total number of defined Operations.",icon:e7,colSpan:"col-span-1 sm:col-span-2 lg:col-span-1",isOperations:!0},{name:"Schemas",value:P.schemas.toString(),tooltip:"Total number of defined Schemas (including nested).",icon:te,colSpan:""},{name:"Tags",value:(null!=(g=P.tagCount)?g:0).toString(),tooltip:"Number of unique tags or groupings.",icon:tc,colSpan:""},{name:"Security Schemes",value:P.authTypes.toString(),tooltip:"Total number of defined Security Schemes.",icon:ta,colSpan:""},{name:"Security Types",value:(null!=(v=null==(x=P.securitySchemeTypes)?void 0:x.length)?v:0).toString(),tooltip:`Security scheme types: ${(null==(y=P.securitySchemeTypes)?void 0:y.join(", "))||"None"}`,icon:tu,colSpan:""}].map((e,t)=>(0,p.jsx)("div",{className:e.isOperations?"col-span-1 sm:col-span-2 lg:col-span-1":"",children:(0,p.jsx)(nV,{content:e.tooltip,children:(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{delay:1.1+.08*t},className:"border-border/20 from-background/60 to-background/40 hover:border-border/50 hover:from-background/80 hover:to-background/60 group flex h-16 cursor-help items-center gap-3 rounded-lg border bg-gradient-to-br px-3 transition-all",children:[(0,p.jsx)("div",{className:"bg-primary/10 group-hover:bg-primary/15 flex h-6 w-6 shrink-0 items-center justify-center rounded-md transition-colors",children:(0,p.jsx)(e.icon,{className:"text-muted-foreground h-3.5 w-3.5 transition-colors"})}),(0,p.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,p.jsx)("div",{className:"text-muted-foreground line-clamp-2 text-[10px] font-medium uppercase tracking-wide",children:e.name}),(0,p.jsx)("div",{className:"text-foreground text-sm font-semibold",children:e.value})]})]})})},e.name))})}),"circular"===s&&(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1},className:"border-border/20 mb-4 flex w-full items-center justify-between border-t pt-4",children:[{name:"Operations",value:P.endpoints.toString(),tooltip:"Total number of defined Operations.",icon:e7},{name:"Schemas",value:P.schemas.toString(),tooltip:"Total number of defined Schemas (including nested).",icon:te},{name:"Security Schemes",value:P.authTypes.toString(),tooltip:"Total number of defined Security Schemes.",icon:ta},{name:"Security Types",value:(null!=(w=null==(b=P.securitySchemeTypes)?void 0:b.length)?w:0).toString(),tooltip:`Security scheme types: ${(null==(k=P.securitySchemeTypes)?void 0:k.join(", "))||"None"}`,icon:tu},{name:"Tags",value:(null!=(j=P.tagCount)?j:0).toString(),tooltip:"Number of unique tags or groupings.",icon:tc}].map((e,t)=>(0,p.jsx)(nV,{content:e.tooltip,children:(0,p.jsxs)(A.motion.div,{initial:{opacity:0,scale:.9}
65,animate:{opacity:1,scale:1},transition:{delay:1.1+.08*t},className:"group flex cursor-help flex-col items-center gap-2",children:[(0,p.jsxs)("div",{className:"border-border/30 from-background/60 to-background/40 hover:border-border/50 hover:from-background/80 hover:to-background/60 relative flex h-14 w-14 items-center justify-center rounded-full border-2 bg-gradient-to-br shadow-md transition-all",children:[(0,p.jsx)(e.icon,{className:"text-foreground h-5 w-5 transition-colors"}),(0,p.jsx)("div",{className:"bg-primary text-primary-foreground absolute -bottom-1 -right-1 flex h-5 w-5 items-center justify-center rounded-full text-[10px] font-bold shadow-sm",children:e.value})]}),(0,p.jsx)("div",{className:"w-16 text-center",children:(0,p.jsx)("div",{className:"text-muted-foreground text-[9px] font-medium uppercase tracking-wide",children:e.name})})]})},e.name))}),(0,p.jsxs)("div",{className:"absolute bottom-2 left-4 right-4 flex flex-wrap items-baseline justify-between gap-x-2 gap-y-1 pt-4 text-[10px] sm:bottom-1 sm:left-6 sm:right-6 sm:px-3",children:[(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1.2},className:"text-muted-foreground/60 flex shrink-0 items-baseline gap-1.5",children:[(0,p.jsx)("span",{children:"Powered by"}),(0,p.jsx)(ni,{className:"h-3 w-auto translate-y-0.5 opacity-60",width:45,height:12,showWord:!0})]}),(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:1.2},className:"text-muted-foreground/70 flex flex-wrap items-center gap-x-2 truncate font-medium",children:(S=tI(e.metadata.engine.version),(0,p.jsxs)(p.Fragment,{children:[S.frameworkVersion&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("span",{children:["Scoring Framework"," ",S.frameworkVersion]}),(0,p.jsx)("span",{className:"text-muted-foreground/40",children:"|"})]}),(0,p.jsxs)("span",{children:["Scoring Engine"," ",S.engineVersion]})]}))})]}),a&&(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:.9},className:"absolute bottom-3 right-3 flex items-center gap-2 sm:bottom-6 sm:right-6 sm:gap-3",children:(0,p.jsx)(tU,{onClick:()=>void r(),disabled:i,variant:"secondary",size:"sm",className:"border-border !bg-muted hover:!bg-muted/80 h-10 w-10 rounded-full border shadow-lg transition-all duration-200 hover:shadow-xl sm:h-10 sm:w-10",children:(0,p.jsx)(tl,{className:"h-5 w-5"})})})]})})}var r1={error:{bg:"bg-rose-50/80 dark:bg-rose-950/30",text:"text-rose-600 dar
65k:text-rose-400",border:"border-rose-200/60 dark:border-rose-800/40",badge:"bg-rose-100/80 dark:bg-rose-900/30 text-rose-700 dark:text-rose-300",icon:"text-rose-500 dark:text-rose-400",active:"bg-rose-600 text-white shadow-sm",hover:"hover:bg-rose-100 dark:hover:bg-rose-900/40"},warning:{bg:"bg-amber-50/80 dark:bg-amber-950/30",text:"text-amber-600 dark:text-amber-400",border:"border-amber-200/60 dark:border-amber-800/40",badge:"bg-amber-100/80 dark:bg-amber-900/30 text-amber-700 dark:text-amber-300",icon:"text-amber-500 dark:text-amber-400",active:"bg-amber-600 text-white shadow-sm",hover:"hover:bg-amber-100 dark:hover:bg-amber-900/40"},info:{bg:"bg-sky-50/80 dark:bg-sky-950/30",text:"text-sky-600 dark:text-sky-400",border:"border-sky-200/60 dark:border-sky-800/40",badge:"bg-sky-100/80 dark:bg-sky-900/30 text-sky-700 dark:text-sky-300",icon:"text-sky-500 dark:text-sky-400",active:"bg-sky-600 text-white shadow-sm",hover:"hover:bg-sky-100 dark:hover:bg-sky-900/40"},hint:{bg:"bg-slate-50/80 dark:bg-slate-900/30",text:"text-slate-500 dark:text-slate-400",border:"border-slate-200/60 dark:border-slate-700/40",badge:"bg-slate-100/80 dark:bg-slate-800/30 text-slate-600 dark:text-slate-300",icon:"text-slate-400 dark:text-slate-500",active:"bg-slate-600 text-white shadow-sm",hover:"hover:bg-slate-100 dark:hover:bg-slate-800/40"}};function r2(e){switch(e){case 1:return"error";case 2:return"warning";case 3:return"info";default:return"hint"}}function r5(e){return r1[r2(e)]}function r4(e){switch(e){case 1:return"Error";case 2:return"Warning";case 3:return"Info";case 4:return"Hint";default:return"Unknown"}}function r3(e){let t=r5(e);return{bg:t.bg,text:t.text,border:t.border}}function r6(e,t){if(!(null==t?void 0:t.diagnostics))return[];let{severity:n,code:r,source:i}=t.diagnostics;return e.filter(e=>(!n||!(n.length>0)||!!n.includes(e.severity))&&(!r||!(r.length>0)||!!r.includes(e.code))&&(!i||!(i.length>0)||!!i.includes(e.source)))}function r8(e){return e.reduce((e,t)=>{switch(t.severity){case 1:e.error++;break;case 2:e.warning++;break;case 3:e.info++;break;case 4:e.hint++}return e},{error:0,warning:0,info:0,hint:0})}function r7({severity:e,className:t}){let n=rF[e]||rF[3],r=n.icon,i=n.singularLabel;return(0,p.jsx)(nV,{content:i,closeOnTooltipHover:!0,className:"inline-flex",triggerClassName:"inline-flex",children:(0,p.jsx)(r,{className:t||"h-4 w-4"})})}function r9({severity:e,count:t,isActive:n,onClick:r}){let i=rF[e],o=i.icon;return(0,p.jsxs)("button",{onClick:r,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1 text-xs font-medium transition-all cursor-pointer ${n?i.filterActive:i.filterInactive}`,children:[(0,p.jsx)(o,{className:"h-3.5 w-3.5"}),i.label," (",t,")"]})}function ie({counts:e,totalCount:t,severityFilter:n,onFilterChange:r}){return(0,p.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,p.jsxs)("button",{onClick:()=>r(null),className:`rounded-md px-2.5 py-1 text-xs font-medium transition-all cursor-pointer ${null===n?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground hover:text-foreground"}`,children:["All (",t,")"]}),e.error>0&&(0,p.jsx)(r9,{severity:1,count:e.error,isActive:1===n,onClick:()=>r(1)}),e.warning>0&&(0,p.jsx)(r9,{severity:2,count:e.warning,isActive:2===n,onClick:()=>r(2)}),e.info>0&&(0,p.jsx)(r9,{severity:3,count:e.info,isActive:3===n,onClick:()=>r(3)}),e.hint>0&&(0,p.jsx)(r9,{severity:4,count:e.hint,isActive:4===n,onClick:()=>r(4)})]})}var it=(0,m.memo)(function({diagnostic:e,sharedWithSignals:t}){var n,r;let i,[o,s]=(0,m.useState)(!1),a={gradient:(i=rF[e.severity]||rF[4]).gradient,glow:i.glow,accentLine:i.accentLine,iconColor:i.iconColor,borderColor:i.borderColor,cardBg:i.cardBg},l=null==(n=e.data)?void 0:n.path,c=null==(r=e.data)?void 0:r.paths,u=c&&c.length>0?c:l&&l.length>0?[l]:[],d=t&&t.length>0,f=(0,m.useCallback)(()=>{s(e=>!e)},[]);return(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.2},className:`
66				group relative overflow-hidden rounded-xl
67				bg-gradient-to-r ${a.gradient}
68				backdrop-blur-sm
69				shadow-md ${a.glow}
70				hover:shadow-lg transition-all duration-300
71				border border-border/40 dark:border-border/20
72			`,children:[(0,p.jsx)("div",{className:`absolute top-0 left-0 right-0 h-[3px] bg-gradient-to-r ${a.accentLine}`}),(0,p.jsx)("div",{className:`relative ${a.cardBg} backdrop-blur-md m-[1px] mt-0 rounded-b-[11px] rounded-t-none px-3 py-2.5`,children:(0,p.jsxs)("div",{className:"flex items-start gap-2.5",children:[(0,p.jsx)("div",{className:`${a.iconColor} flex-shrink-0 mt-0.5`,children:(0,p.jsx)(r7,{severity:e.severity,className:"h-4 w-4"})}),(0,p.jsxs)("div",{className:"min-w-0 flex-1 overflow-hidden",children:[(0,p.jsx)("p",{className:"text-foreground text-sm leading-snug break-words",children:e.message}),d&&(0,p.jsxs)("div",{className:"mt-2 flex flex-wrap items-center gap-1.5",children:[(0,p.jsx)("span",{className:"text-[10px] text-muted-foreground
72/70 italic",children:"Also in:"}),t.map((e,t)=>(0,p.jsx)("span",{className:"\n											text-[10px] px-2 py-0.5 rounded-full\n											bg-slate-100 dark:bg-white/10\n											text-muted-foreground\n											ring-1 ring-slate-200 dark:ring-white/10\n										",children:e},t))]}),u.length>0&&(0,p.jsxs)("div",{className:"mt-2",children:[(0,p.jsxs)("button",{onClick:f,className:`
73										w-full flex items-center justify-between gap-2 px-2.5 py-1.5
74										rounded-md
75										bg-slate-100 dark:bg-muted/50
76										hover:bg-slate-200 dark:hover:bg-muted/70
77										ring-1 ring-slate-200 dark:ring-border/30
78										transition-all duration-200 cursor-pointer
79										group/btn
80									`,children:[(0,p.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,p.jsx)(tg,{className:"h-3 w-3 text-muted-foreground"}),(0,p.jsxs)("span",{className:"text-xs text-muted-foreground",children:[u.length," location",u.length>1?"s":""]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,p.jsx)("span",{className:"opacity-0 group-hover/btn:opacity-100 transition-opacity text-[11px]",children:o?"Hide":"Show"}),(0,p.jsx)(A.motion.div,{animate:{rotate:180*!!o},transition:{duration:.2},children:(0,p.jsx)(P.ChevronDown,{className:"h-3 w-3"})})]})]}),(0,p.jsx)(L.AnimatePresence,{initial:!1,children:o&&(0,p.jsx)(A.motion.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,p.jsx)("div",{className:"overflow-y-auto overflow-x-hidden pt-2 space-y-1.5",style:{maxHeight:"150px"},children:u.map((e,t)=>(0,p.jsx)("div",{className:`
81															text-[11px] text-muted-foreground font-mono break-all
82															bg-slate-100 dark:bg-muted/40
83															border-l-2 ${a.borderColor}
84															pl-3 pr-2 py-2 rounded-r-md
85															hover:bg-slate-200 dark:hover:bg-muted/60 transition-colors
86														`,title:e.join(" → "),children:e.join(" → ")},t))})})})]})]})]})})]})});function ir({severity:e,count:t}){if(0===t)return null;let n=rF[e],r=n.icon;return(0,p.jsxs)("div",{className:"flex items-center gap-1.5 bg-muted/50 rounded-md px-2 py-1",children:[(0,p.jsx)(r,{className:`h-3.5 w-3.5 ${n.iconColor}`}),(0,p.jsx)("span",{className:"text-xs font-medium text-foreground",children:t}),(0,p.jsx)("span",{className:"text-[10px] text-muted-foreground",children:1===e?"Error":2===e?"Warning":3===e?"Info":"Hint"})]})}function ii({severity:e,count:t}){if(0===t)return null;let n=rF[e],r=n.icon;return(0,p.jsxs)("div",{className:`inline-flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px] font-medium ${n.iconColor} bg-current/10`,children:[(0,p.jsx)(r,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{children:t})]})}function io({diagnostics:e}){let t=r8(e);return t.error>0||t.warning>0||t.info>0||t.hint>0?(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[(0,p.jsx)(ii,{severity:1,count:t.error}),(0,p.jsx)(ii,{severity:2,count:t.warning}),(0,p.jsx)(ii,{severity:3,count:t.info}),(0,p.jsx)(ii,{severity:4,count:t.hint})]}):null}function is({signal:e,diagnostics:t,children:n,onViewAllDiagnostics:r}){let i=r8(t),o=i.error>0||i.warning>0||i.info>0||i.hint>0;return(0,p.jsxs)("div",{className:"space-y-2",children:[o&&(0,p.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,p.jsx)(ir,{severity:1,count:i.error}),(0,p.jsx)(ir,{severity:2,count:i.warning}),(0,p.jsx)(ir,{severity:3,count:i.info}),(0,p.jsx)(ir,{severity:4,count:i.hint})]}),n&&(0,p.jsx)("div",{className:"bg-muted/30 rounded-md p-2 text-xs",children:n}),t.length>0?(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)("div",{className:"flex items-center justify-between",children:(0,p.jsxs)("div",{className:"text-muted-foreground text-[10px] font-medium uppercase tracking-wide",children:["Related Diagnostics (",t.length,")"]})}),(0,p.jsxs)("div",{className:"space-y-2",children:[t.slice(0,3).map((e,t)=>(0,p.jsx)(it,{diagnostic:e},`${e.code}-${t}`)),t.length>3&&(0,p.jsxs)("button",{onClick:e=>{e.stopPropagation(),null==r||r()},className:"w-full flex items-center justify-center gap-1.5 py-2 px-3 rounded-md text-xs font-medium text-primary bg-primary/5 hover:bg-primary/10 border border-primary/20 transition-colors cursor-pointer",children:[(0,p.jsxs)("span",{children:["View all ",t.length," diagnostics"]}
86),(0,p.jsx)(M.ExternalLink,{className:"h-3 w-3"})]})]})]}):(0,p.jsx)("div",{className:"text-muted-foreground text-xs italic text-center py-2",children:"No matching diagnostics for this signal"})]})}(0,m.memo)(function({label:e,value:t,valueColor:n,showColon:r=!1}){let i=n?rO(n):"text-foreground";return(0,p.jsxs)("div",{className:"bg-muted/50 dark:bg-muted/30 flex items-center justify-between rounded px-2 py-1.5 text-xs",children:[(0,p.jsxs)("span",{className:"text-muted-foreground",children:[e,r?":":""]}),(0,p.jsx)("span",{className:`font-mono font-medium ${i}`,children:t})]})});var ia=(0,m.memo)(function({metrics:e,columns:t=2}){return(0,p.jsx)("div",{className:`grid ${3===t?"grid-cols-3":"grid-cols-2"} gap-1`,children:e.map(e=>{let t=e.valueColor?rO(e.valueColor):"text-foreground";return(0,p.jsxs)("div",{className:"bg-muted/50 dark:bg-muted/30 flex items-center justify-between rounded px-2 py-1 text-xs",children:[(0,p.jsxs)("span",{className:"text-muted-foreground mr-2 truncate",children:[e.label,e.showColon?":":""]}),(0,p.jsx)("span",{className:`flex-shrink-0 font-mono font-medium ${t}`,children:e.value})]},e.label)})})}),il=(0,m.memo)(function({children:e}){return(0,p.jsx)("div",{className:"text-muted-foreground text-[10px] font-medium uppercase tracking-wide",children:e})}),ic=(0,m.memo)(function({value:e,max:t=1,className:n="",height:r="md"}){let i=t>0?e/t*100:0,o=rD(i);return(0,p.jsx)("div",{className:`${"sm"===r?"h-1.5":"h-2"} w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700 ${n}`,children:(0,p.jsx)("div",{className:`h-full rounded-full transition-all duration-500 ${o}`,style:{width:`${Math.min(i,100)}%`}})})}),iu=(0,m.memo)(function({percentage:e,size:t=96,strokeWidth:n=10,className:r=""}){let i=2*Math.PI*40,o=`${e/100*i} ${i}`;return(0,p.jsxs)("div",{className:`relative flex-shrink-0 ${r}`,style:{width:t,height:t},children:[(0,p.jsxs)("svg",{viewBox:"0 0 100 100",className:"w-full h-full -rotate-90",children:[(0,p.jsx)("circle",{cx:"50",cy:"50",r:40,fill:"none",stroke:"currentColor",strokeWidth:n,className:"text-gray-200 dark:text-gray-700"}),(0,p.jsx)("circle",{cx:"50",cy:"50",r:40,fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeDasharray:o,className:e>=80?"text-emerald-500":e>=60?"text-yellow-500":"text-red-500"})]}),(0,p.jsx)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:(0,p.jsxs)("span",{className:`text-xl font-bold ${r$(e)}`,children:[e.toFixed(0),"%"]})})]})}),id={resolution_completeness:{numeratorField:"resolved_refs",denominatorField:"total_refs",label:"References Resolved",denominatorLabel:"total",secondaryField:"unresolved_refs",secondaryLabel:"Unresolved",secondaryIsBad:!0},example_density:{numeratorField:"present_examples",denominatorField:"expected_examples",label:"Examples Present",denominatorLabel:"expected"},example_validity:{numeratorField:"valid_examples",denominatorField:"total_examples",label:"Valid Examples",denominatorLabel:"total",secondaryField:"invalid_examples",secondaryLabel:"Invalid",secondaryIsBad:!0},response_coverage:{numeratorField:"response_coverage_sum",denominatorField:"total_operations",label:"Response Coverage",denominatorLabel:"operations",showPercentagePrimary:!0,scoringTooltip:"Each operation scores 0-1 based on response definitions: +0.25 for 2XX, +0.25 for 4XX, +0.25 for 5XX, +0.25 for default. The percentage is the average score across all operations."},description_coverage:{numeratorField:"described_elements",denominatorField:"describable_elements",label:"Descriptions Present",denominatorLabel:"total",secondaryField:"undescribed_elements",secondaryLabel:"Missing",secondaryIsBad:!0},error_standardization:{numeratorField:"operations_using_rfc9457",denominatorField:"total_operations",label:"RFC 9457 Compliant",denominatorLabel:"total",secondaryField:"operations_without_rfc9457",secondaryLabel:"Non-compliant",secondaryIsBad:!0},summary_coverage:{numeratorField:"summaries_present",denominatorField:"summaries_expected",label:"Summaries Present",denominatorLabel:"expected",secondaryField:"missing_summaries",secondaryLabel:"Missing",secondaryIsBad:!0}},ip=(0,m.memo)(function({value:e,label:t,isBad:n}){if(0===e&&n)return null;let r=n&&e>0?rH("red"):{bg:"bg-muted/50",text:"text-muted-foreground"};return(0,p.jsxs)("div",{className:`inline-flex items-center gap-1.5 rounded px-2 py-1 text-xs ${r.bg} ${r.text}`,children:[(0,p.jsx)("span",{className:"font-mono font-medium",children:e}),(0,p.jsx)("span",{className:"text-[10px] opacity-80",children:t})]})}),ih=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){var r,i;let o=id[e.kind],s=e.metadata||{},a=rP(s,null!=(r=null==o?void 0:o.numeratorField)?r:"",0),l=rP(s,null!=(i=null==o?void 0:o.denominatorField)?i:"",0),c=(null==o?void 0:o.secondaryField)?rP(s,o.secondaryField,0):null,u=l>0?a/l*100:0;return(null==o?void 0:o.showPercentagePrimary)?(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsxs)("div",{className:"flex items-center gap-4",children:[(0,p.jsx)(iu,{percentage:u,size:96,strokeWidth:10}),(0,p.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("p",{className:"text-sm font-medium",children:o.label}),(0,p.jsxs)("p",{className:"text-xs text-muted-foreground",children:[l," operations analyzed"]})]}),(0,p.jsxs)("div",{className:"text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Coverage points: "}),(0,p.jsx)("span",{className:"font-mono font-medium",children:a.toFixed(2)}),(0,p.jsxs)("span",{className:"text-muted-foreground",children:[" / ",l.toFixed(2)]})]})]})]}),(0,p.jsx)("p",{className:"text-[10px] text-muted-foreground bg-muted/30 rounded px-2 py-1.5",children:"Each operation scores 0-1: +0.25 for 2XX, 4XX, 5XX, and default responses"})]})}):(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"text-muted-foreground text-xs",children:(null==o?void 0:o.label)||"Coverage"}),(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[(0,p.jsx)("span",{className:"font-mono text-xs font-medium",children:a}),(0,p.jsx)("span",{className:"text-muted-foreground text-xs",children:"/"}),(0,p.jsx)("span",{className:"font-mono text-xs font-medium",children:l}),(0,p.jsx)("span",{className:"text-muted-foreground text-[10px] ml-0.5",children:(null==o?void 0:o.denominatorLabel)||"total"})]})]}),(0,p.jsx)(ic,{value:a,max:l}),null!==c&&(null==o?void 0:o.secondaryLabel)&&(0,p.jsx)(ip,{value:c,label:o.secondaryLabel,isBad:o.secondaryIsBad})]})})}),im=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r=e.metadata||{},i=rP(r,"structural_issues",-1),o=rP(r,"structural_issue_threshold",-1),s=rI(r,"category_counts",null),a=rP(r,"weighted_cost",-1),l=rP(r,"max_cost",-1),c="lint_results"===e.kind,u="structural_integrity"===e.kind,d=i>
86=0,f=a>=0&&l>=0;return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-3",children:[c&&(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsxs)("div",{className:"rounded-md border border-blue-200/50 bg-blue-50 px-3 py-2 text-xs text-blue-700 dark:border-blue-800/30 dark:bg-blue-950/40 dark:text-blue-300",children:[(0,p.jsx)("strong",{children:"How scoring works:"})," Errors impact the score more than warnings, and warnings more than info."]}),f&&(0,p.jsx)("div",{className:"bg-muted/30 rounded-md p-3",children:(0,p.jsxs)("div",{className:"grid grid-cols-2 gap-3 text-xs",children:[(0,p.jsxs)("div",{className:"bg-muted/50 flex items-center justify-between rounded px-2.5 py-2",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Weighted Cost"}),(0,p.jsx)("span",{className:"font-mono font-semibold",children:a.toFixed(2)})]}),(0,p.jsxs)("div",{className:"bg-muted/50 flex items-center justify-between rounded px-2.5 py-2",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Max Cost"}),(0,p.jsx)("span",{className:"font-mono font-semibold",children:l.toFixed(2)})]})]})})]}),u&&(0,p.jsxs)(p.Fragment,{children:[d&&0===i?(0,p.jsxs)("div",{className:"flex items-center gap-3 rounded-lg border border-emerald-200/50 bg-emerald-50/80 px-3 py-2 dark:border-emerald-800/30 dark:bg-emerald-950/30",children:[(0,p.jsx)(tm,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-400"}),(0,p.jsx)("span",{className:"text-sm font-medium text-emerald-700 dark:text-emerald-300",children:"No structural issues"})]}):(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Distance to collapse threshold"}),(0,p.jsxs)("div",{className:"flex items-center gap-1",children:[(0,p.jsxs)("span",{className:`font-mono font-semibold ${r$(e.score)}`,children:[e.score.toFixed(0),"%"]}),(0,p.jsx)("span",{className:"text-muted-foreground text-[10px]",children:"(away from collapse threshold)"})]})]}),(0,p.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-gray-200 dark:bg-gray-700",children:(0,p.jsx)("div",{className:`h-full rounded-full transition-all ${rD(e.score)}`,style:{width:`${e.score}%`}})}),d&&(0,p.jsxs)("p",{className:"text-muted-foreground text-xs",children:["Structural issues:"," ",(0,p.jsx)("span",{className:"text-foreground font-mono font-medium",children:i}),o>=0&&(0,p.jsxs)("span",{children:[" ","/ ",o," ","(collapse threshold)"]})]})]}),s&&Object.keys(s).length>0&&(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)("div",{className:"text-muted-foreground text-[10px] font-medium uppercase tracking-wide",children:"By Category"}),(0,p.jsx)("div",{className:"grid grid-cols-2 gap-1",children:Object.entries(s).map(([e,t])=>(0,p.jsxs)("div",{className:"bg-muted/50 flex items-center justify-between rounded px-2 py-1 text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground truncate capitalize",children:e.replace(/_/g," ")}),(0,p.jsx)("span",{className:"font-mono font-medium",children:t})]},e))})]})]}),!c&&!u&&(0,p.jsx)("div",{className:"text-muted-foreground text-xs",children:"No severity data available"})]})})}),ig=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){var r,i,o,s,a,l,c;let u,d,f,h,m,g,x,v,y,b=e.metadata||{},w="spec_validity"===e.kind,j="tooling_readiness"===e.kind,S=1===e.score,E=rT(b,"failure_reason",""),N=rI(b,"diagnostic_counts",null),C=rP(b,"ingestion_errors",-1),P=rP(b,"threshold",-1),T=rT(b,"interpretation",""),A=N?(null!=(r=N.error)?r:0)+(null!=(i=N.warning)?i:0)+(null!=(o=N.information)?o:0)+(null!=(s=N.hint)?s:0):0,I=C>=0&&P>=0,M=t.length>0;return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-3",children:[w&&(u=rW(S?"emerald":"rose"),d=rq("error"),f=rq("warning"),h=rq("information"),(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{className:`inline-flex items-center gap-2 rounded-lg px-3 py-1.5 ${u.bg}`,children:[S?(0,p.jsx)(tm,{className:`h-4 w-4 ${u.icon}`}):(0,p.jsx)(tp.default,{className:`h-4 w-4 ${u.icon}`}),(0,p.jsx)("span",{className:`text-sm font-semibold ${u.text}`,children:S?"Passed":"Failed"})]}),M&&N&&A>0&&(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(null!=(a=N.error)?a:0)>0&&(0,p.jsxs)("div",{className:`flex items-center gap-1 rounded-md px-2 py-1 ${d.bg}`,children:[(0,p.jsx)(tp.default,{className:`h-3 w-3 ${d.icon}`}),(0,p.jsx)("span",{className:`text-xs font-medium ${d.text}`,children:N.error})]}),(null!=(l=N.warning)?l:0)>0&&(0,p.jsxs)("div",{className:`flex items-center gap-1 rounded-md px-2 py-1 ${f.bg}`,children:[(0,p.jsx)(k.AlertTriangle,{className:`h-3 w-3 ${f.icon}`}),(0,p.jsx)("span",{className:`text-xs font-medium ${f.text}`,children:N.warning})]}),(null!=(c=N.information)?c:0)>0&&(0,p.jsxs)("div",{className:`flex items-center gap-1 rounded-md px-2 py-1 ${h.bg}`,children:[(0,p.jsx)(Y.Info,{className:`h-3 w-3 ${h.icon}`}),(0,p.jsx)("span",{className:`text-xs font-medium ${h.text}`,children:N.information})]})]})]})),w&&!S&&E&&(g={border:(m=rU.rose).border,bg:"bg-rose-50/50 dark:bg-rose-950/20",
86icon:"text-rose-500",text:m.icon},(0,p.jsx)("div",{className:`rounded-md border ${g.border} ${g.bg} p-2.5`,children:(0,p.jsxs)("div",{className:"flex items-start gap-2",children:[(0,p.jsx)(tp.default,{className:`mt-0.5 h-3.5 w-3.5 flex-shrink-0 ${g.icon}`}),(0,p.jsx)("p",{className:`text-xs ${g.text}`,children:E})]})})),j&&(0,p.jsxs)(p.Fragment,{children:[T&&(v=rW(rY[x=rJ(C)]),y=function(e){switch(e){case"best":return tm;case"ok":case"poor":return k.AlertTriangle;case"critical":return tp.default}}(x),(0,p.jsxs)("div",{className:`inline-flex items-center gap-2 rounded-lg px-3 py-1.5 ${v.bg}`,children:[(0,p.jsx)(y,{className:`h-4 w-4 ${v.icon}`}),(0,p.jsx)("span",{className:`text-sm font-medium ${v.text}`,children:T})]})),I&&(()=>{let e=rW(rY[rJ(C)]),t=function(e){let{best:t,ok:n,poor:r}=rK;return e<=t?e/t*20:e<=n?20+(e-t)/(n-t)*27:e<=r?47+(e-n)/(r-n)*33:Math.min(80+(e-r)/6*20,100)}(C),{best:n,ok:r,poor:i}=rK;return(0,p.jsxs)("div",{className:"bg-muted/30 rounded-md p-3 space-y-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("span",{className:"text-sm font-medium",children:"Ingestion Errors"}),(0,p.jsx)("p",{className:"text-[10px] text-muted-foreground",children:"Fewer errors = better tooling compatibility"})]}),(0,p.jsx)("span",{className:`text-2xl font-bold ${e.icon}`,children:C})]}),(0,p.jsxs)("div",{className:"relative pt-1",children:[(0,p.jsxs)("div",{className:"flex h-3 rounded-full overflow-hidden",children:[(0,p.jsx)("div",{className:`w-[20%] ${rX.best}`}),(0,p.jsx)("div",{className:`w-[27%] ${rX.ok}`}),(0,p.jsx)("div",{className:`w-[33%] ${rX.poor}`}),(0,p.jsx)("div",{className:`w-[20%] ${rX.critical}`})]}),(0,p.jsx)("div",{className:"absolute top-0 w-0.5 h-5 bg-gray-900 dark:bg-white rounded-full transition-all",style:{left:`${t}%`}})]}),(0,p.jsxs)("div",{className:"flex text-[9px]",children:[(0,p.jsxs)("div",{className:"w-[20%] text-center",children:[(0,p.jsx)("span",{className:`${rZ("best")} font-medium`,children:"Best"}),(0,p.jsx)("br",{}),(0,p.jsxs)("span",{className:"text-muted-foreground",children:["0-",n]})]}),(0,p.jsxs)("div",{className:"w-[27%] text-center",children:[(0,p.jsx)("span",{className:`${rZ("ok")} font-medium`,children:"OK"}),(0,p.jsx)("br",{}),(0,p.jsxs)("span",{className:"text-muted-foreground",children:[n+1,"-",r]})]}),(0,p.jsxs)("div",{className:"w-[33%] text-center",children:[(0,p.jsx)("span",{className:`${rZ("poor")} font-medium`,children:"Poor"}),(0,p.jsx)("br",{}),(0,p.jsxs)("span",{className:"text-muted-foreground",children:[r+1,"-",i]})]}),(0,p.jsxs)("div",{className:"w-[20%] text-center",children:[(0,p.jsx)("span",{className:`${rZ("critical")} font-medium`,children:"Critical"}),(0,p.jsx)("br",{}),(0,p.jsxs)("span",{className:"text-muted-foreground",children:[i+1,"+"]})]})]})]})})()]})]})})}),ix=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r,i=e.metadata||{},o=rP(i,"coverage",0),s=rP(i,"ops_with_operation_id",-1),a=rP(i,"total_operations",-1),l=rP(i,"uniqueness",0),c=rP(i,"unambiguous_operation_ids",-1),u=rP(i,"ambiguous_operation_ids",-1),d=rP(i,"total_collision_issues",-1),f=rP(i,"casing_consistency",0),h=rT(i,"dominant_casing",""),m=rI(i,"casing_breakdown",null),g=m?Object.values(m).reduce((e,t)=>e+t,0):a>=0?a:0,x=Math.round(f*g),v="inline min-w-0";return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-4",children:[(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)(il,{children:"Coverage"}),(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs bg-muted/50 dark:bg-muted/30 rounded px-2 py-1.5",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Operations with operationId"}),(0,p.jsxs)("span",{className:"font-mono font-medium whitespace-nowrap",children:[s>=0&&a>=0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nV,{content:"Operations with operationId",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:s})}),(0,p.jsx)("span",{className:"mx-0.5",children:"/"}),(0,p.jsx)(nV,{content:"Total operations",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:a})})]}),(0,p.jsx)("span",{className:`${s>=0&&a>=0?"ml-1":""} ${rV(o)}`,children:s>=0&&a>
86=0?`(${(100*o).toFixed(0)}%)`:`${(100*o).toFixed(0)}%`})]})]}),(0,p.jsx)(ic,{value:o,height:"sm"})]}),(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)(il,{children:"Uniqueness"}),(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs bg-muted/50 dark:bg-muted/30 rounded px-2 py-1.5",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Unique operationIds"}),(0,p.jsxs)("span",{className:"font-mono font-medium whitespace-nowrap",children:[c>=0&&s>=0&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nV,{content:"Unambiguous operationIds",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:c})}),(0,p.jsx)("span",{className:"mx-0.5",children:"/"}),(0,p.jsx)(nV,{content:"Operations with operationId",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:s})})]}),(0,p.jsx)("span",{className:`${c>=0&&s>=0?"ml-1":""} ${rV(l)}`,children:c>=0&&s>=0?`(${(100*l).toFixed(0)}%)`:`${(100*l).toFixed(0)}%`})]})]}),(0,p.jsx)(ic,{value:l,height:"sm"}),(r=[],u>=0&&u>0&&r.push({label:"Ambiguous operationIds",value:u,valueColor:"yellow"}),d>=0&&d>0&&r.push({label:"Collision issues",value:d,valueColor:"red"}),r.length>0?(0,p.jsx)("div",{className:"mt-1.5",children:(0,p.jsx)(ia,{metrics:r})}):null)]}),(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs bg-muted/50 dark:bg-muted/30 rounded px-2 py-1.5",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Casing Consistency"}),(0,p.jsx)("span",{className:"font-mono font-medium whitespace-nowrap",children:g>0?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(nV,{content:"Dominant casing count",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:x})}),(0,p.jsx)("span",{className:"mx-0.5",children:"/"}),(0,p.jsx)(nV,{content:"Operations with operationId",closeOnTooltipHover:!0,className:"inline relative",triggerClassName:v,children:(0,p.jsx)("span",{className:"cursor-help underline decoration-dotted underline-offset-2",children:g})}),(0,p.jsxs)("span",{className:"ml-1",children:["consistent (",(100*f).toFixed(0),"%)"]})]}):`${(100*f).toFixed(0)}%`})]}),(0,p.jsx)(ic,{value:f,height:"sm"})]}),(0,p.jsxs)("div",{className:"border-border/50 border-t pt-3",children:[(0,p.jsx)("div",{className:"text-muted-foreground mb-2 text-[10px] font-medium uppercase tracking-wide",children:"Casing Styles"}),m&&Object.keys(m).length>0?(0,p.jsx)("div",{className:"flex flex-wrap gap-1.5",children:Object.entries(m).map(([e,t])=>{let n=e===h?rH("green"):{bg:"bg-muted",text:"text-muted-foreground"};return(0,p.jsxs)("div",{className:`flex items-center gap-1 rounded px-2 py-0.5 text-xs ${n.bg} ${n.text}`,children:[(0,p.jsx)(tx,{className:"h-2.5 w-2.5"}),(0,p.jsx)("span",{className:"font-medium",children:e}),(0,p.jsxs)("span",{className:"opacity-70",children:["(",t,")"]})]},e)})}):(0,p.jsx)("span",{className:"text-xs text-muted-foreground italic",children:"None detected"})]})]})})}),iv=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r=e.metadata||{},i=rP(r,"total_operations",-1),o=rP(r,"max_schema_depth",-1),s=rP(r,"raw_complexity",-1),a=rP(r,"normalised_endpoint_count",-1),l=rP(r,"normalised_schema_depth",-1),c=rP(r,"endpoint_baseline",-1),u=rP(r,"depth_baseline",-1),d=e=>e<1?"green":"orange",f=[];return i>=0&&f.push({label:"Total Operations",value:i}),o>=0&&f.push({label:"Max Schema Depth",value:o,colorClass:u>=0?rO(o<=u?"green":"orange"):void 0}),a>=0&&f.push({label:"Normalised Endpoint Count",value:a.toFixed(2),colorClass:rO(d(a))}),l>=0&&f.push({label:"Normalised Schema Depth",value:l.toFixed(2),colorClass:rO(d(l))}),s>=0&&f.push({label:"Raw Complexity",value:s.toFixed(3)}),c>=0&&f.push({label:"Endpoint Baseline",value:c}),u>=0&&f.push({label:"Schema Depth Baseline",value:u}),(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)(il,{children:"Complexity Metrics"}),f.length>0?(0,p.jsx)("div",{className:"grid grid-cols-2 gap-1",children:f.map(e=>(0,p.jsxs)("div",{className:"bg-muted/50 flex items-center justify-between rounded px-2 py-1 text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground truncate",children:e.label}),(0,p.jsx)("span",{className:`font-mono font-medium ${e.colorClass||""}`,children:e.value})]},e.label))}):(0,p.jsx)("div",{className:"text-muted-foreground text-xs italic text-center py-2",children:"No complexity metrics available"})]})})}
86),iy={oauth2:{icon:ta,color:"green"},openIdConnect:{icon:ta,color:"green"},apiKey:{icon:tu,color:"blue"},http:{icon:e9,color:"amber"},none:{icon:tv,color:"red"}},ib=(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r,i=e.metadata||{},o=rA(i,"schemes",[]),s=rP(i,"schemes_count",-1),a=s>=0?s:o.length;return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs bg-muted/50 dark:bg-muted/30 rounded px-2 py-1.5",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Security Schemes"}),(0,p.jsx)("span",{className:"font-mono font-medium",children:a})]}),o.length>0&&(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsx)("span",{className:"text-muted-foreground text-[10px] font-medium uppercase tracking-wide",children:"Configured Schemes"}),(0,p.jsx)(nV,{content:(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)("p",{className:"font-medium",children:"Strength Score"}),(0,p.jsx)("p",{className:"text-muted-foreground",children:"Based on the security properties of each authentication type. Higher scores indicate stronger security guarantees."})]}),closeOnTooltipHover:!0,children:(0,p.jsx)("span",{className:"text-muted-foreground text-[10px] font-medium uppercase tracking-wide cursor-help underline decoration-dotted underline-offset-2",children:"Strength Score"})})]}),(0,p.jsx)("div",{className:"space-y-1.5",children:o.map((e,t)=>{let n=iy[e.type]||iy.none,r=n.icon,i=rH(n.color),o=function(e){if(!e||0===Object.keys(e).length)return null;let t=[];if(e.flows){let n=e.flows;if(Array.isArray(n))n.length>0&&t.push(`Flows: ${n.join(", ")}`);else if("object"==typeof n&&null!==n){let e=Object.keys(n);e.length>0&&t.push(`Flows: ${e.join(", ")}`)}else"string"==typeof n&&t.push(`Flows: ${n}`)}if(e.in){let n=e.in,r=e.name;r?t.push(`In: ${n} (${r})`):t.push(`In: ${n}`)}return e.scheme&&"string"==typeof e.scheme&&t.push(`Scheme: ${e.scheme}`),e.bearerFormat&&"string"==typeof e.bearerFormat&&t.push(`Format: ${e.bearerFormat}`),e.openIdConnectUrl&&t.push("OpenID URL configured"),t.length>0?t.join(" • "):null}(e.details),s=function(e,t){let n=null==t?void 0:t.scheme,r=null==t?void 0:t.flows,i=null==t?void 0:t.in,o=null==t?void 0:t.bearerFormat;if("http"===e)return"basic"===n?{rationale:"Plaintext credentials; easily leaked",baseStrength:.1}:"digest"===n?{rationale:"Outdated; limited protection",baseStrength:.2}:"bearer"===n?"JWT"===o?{rationale:"Cryptographically verifiable claims; supports scopes",baseStrength:.75}:{rationale:"Security depends on token distribution",baseStrength:.6}:"hoba"===n?{rationale:"Asymmetric client-bound authentication",baseStrength:.8}:"mutual"===n?{rationale:"Cryptographically binding client/server identities",baseStrength:.95}:"negotiate"===n?{rationale:"Legacy; violates HTTP semantics (Kerberos/NTLM)",baseStrength:.35}:"oauth"===n?{rationale:"Deprecated; insecure signature model (OAuth 1.0)",baseStrength:.2}:"scram-sha-1"===n?{rationale:"Uses deprecated SHA-1 hashing",baseStrength:.25}:"scram-sha-256"===n?{rationale:"Modern and stronger, still password-based",baseStrength:.65}:"vapid"===n?{rationale:"Token model similar to bearer; moderate trust (WebPush)",baseStrength:.6}:"dpop"===n?{rationale:"Prevents replay; binds token to client",baseStrength:.9}:"gnap"===n?{rationale:"Modern alternative to OAuth 2.0",baseStrength:.9}:"privatetoken"===n?{rationale:"Strong privacy-preserving cryptographic identity",baseStrength:.75}:"concealed"===n?{rationale:"Modern, high-assurance privacy-preserving authentication",baseStrength:.85}:{rationale:"HTTP authentication scheme",baseStrength:.5};if("apiKey"===e)return"query"===i?{rationale:"Very high leakage risk (logs, proxies, URLs)",baseStrength:.15}:"header"===i||"cookie"===i?{rationale:"Moderate security; lacks identity, scoping, or rotation controls",baseStrength:.5}:{rationale:"API key authentication",baseStrength:.4};if("oauth2"===e){let e=[];return(Array.isArray(r)?e=r:"object"==typeof r&&null!==r?e=Object.keys(r):"string"==typeof r&&(e=[r]),e.includes("password"))?{rationale:"Deprecated; violates least-privilege; insecure",baseStrength:.3}:e.includes("implicit")?{rationale:"Deprecated; exposes tokens via redirects",baseStrength:.35}:e.includes("clientCredentials")?{rationale:"Strong, scoped, recommended for machine-to-machine",baseStrength:.85}:e.includes("authorizationCode")?{rationale:"Most secure OAuth2 flow; protects public clients (PKCE)",baseStrength:.9}:{rationale:"OAuth 2.0 authentication",baseStrength:.7}}return"openIdConnect"===e?{rationale:"Gold-standard identity-bound access (OIDC Discovery + JWKs)",baseStrength:1}:"mutualTLS"===e?{rationale:"Hardware-backed identity; strongest available",baseStrength:1}:"none"!==e&&e?{rationale:"Authentication scheme",baseStrength:.5}:{rationale:"Unsafe for sensitive APIs; no authentication",baseStrength:0}}(e.type,e.details);return(0,p.jsxs)("div",{className:`rounded-md px-2 py-1.5 ${i.bg}`,children:[(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)(r,{className:`h-4 w-4 ${i.text}`}),(0,p.jsx)("span",{className:"text-xs font-medium capitalize",children:e.type.replace(/([A-Z])/g," $1").trim()})]}),(0,p.jsxs)("span",{className:`font-mono text-xs font-semibold ${rV(e.score)}`,children:[(100*e.score).toFixed(0),"%"]})]}),o&&(0,p.jsx)("div",{className:"text-muted-foreground text-[10px] mt-1 ml-6",children:o}),(0,p.jsx)("div",{className:"text-[10px] mt-1 ml-6 italic text-muted-foreground
86/80",children:s.rationale})]},`${e.type}-${t}`)})})]}),0===o.length&&(r=rH("red"),(0,p.jsxs)("div",{className:`${r.bg} flex items-center gap-2 rounded-md p-2`,children:[(0,p.jsx)(tv,{className:`h-4 w-4 ${r.text}`}),(0,p.jsx)("span",{className:`text-xs ${r.text}`,children:"No security schemes configured"})]}))]})})}),iw=(0,m.memo)(function({score:e,label:t}){let n=rB(rz(e,1));return(0,p.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,p.jsxs)("span",{className:"text-[10px] text-muted-foreground",children:[t,":"]}),(0,p.jsx)("span",{className:`font-mono text-[10px] font-semibold ${n.text}`,children:e.toFixed(2)})]})}),ik={resolution_completeness:ih,example_density:ih,example_validity:ih,response_coverage:ih,description_coverage:ih,error_standardization:ih,summary_coverage:ih,lint_results:im,structural_integrity:im,spec_validity:ig,tooling_readiness:ig,opid_quality:ix,complexity_comfort:iv,auth_strength:ib,descriptive_richness:(0,m.memo)(function({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r,[i,o]=(0,m.useState)(!1),s=e.metadata||{},a=rA(s,"operations_scored",[]),l=rP(s,"number_of_describable_elements",-1),c=rP(s,"operations_with_issues",-1),u=rP(s,"operations_without_issues",-1),d=rP(s,"sum_of_element_descriptive_scores",-1),f=[...a].sort((e,t)=>e.element_descriptive_score-t.element_descriptive_score),h=(0,m.useCallback)(()=>{o(e=>!e)},[]);return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsxs)("div",{className:"space-y-3",children:[(r=[],l>=0&&r.push({label:"Describable Elements",value:l}),d>=0&&r.push({label:"Total Descriptive Score",value:d.toFixed(2)}),u>=0&&r.push({label:"Ops without Issues",value:u,valueColor:"green"}),c>=0&&r.push({label:"Ops with Issues",value:c,valueColor:c>0?"yellow":"green"}),r.length>0?(0,p.jsx)(ia,{metrics:r}):null),f.length>0&&(0,p.jsxs)("div",{className:"border border-border/30 rounded-md overflow-hidden",children:[(0,p.jsxs)("button",{onClick:h,className:"w-full flex items-center justify-between gap-2 px-3 py-2 bg-muted/30 hover:bg-muted/50 transition-colors cursor-pointer",children:[(0,p.jsxs)("span",{className:"text-xs text-muted-foreground font-medium uppercase tracking-wide",children:["Operation Details (",f.length,")"]}),(0,p.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground",children:[(0,p.jsx)("span",{children:i?"Hide":"Show"}),(0,p.jsx)(A.motion.div,{animate:{rotate:180*!!i},transition:{duration:.2},children:(0,p.jsx)(P.ChevronDown,{className:"h-3 w-3"})})]})]}),(0,p.jsx)(L.AnimatePresence,{children:i&&(0,p.jsx)(A.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden",children:(0,p.jsx)("div",{className:"overflow-y-auto p-2 space-y-1.5",style:{maxHeight:"280px"},children:f.map((e,t)=>{let n=rB(rz(e.element_descriptive_score,2)),r=e.issues_found&&e.issues_found.length>0;return(0,p.jsxs)("div",{className:"bg-muted/40 rounded-md p-2.5",children:[(0,p.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,p.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,p.jsx)("span",{className:"text-[10px] text-muted-foreground flex-shrink-0",children:"Operation ID:"}),(0,p.jsx)("span",{className:"font-mono text-xs font-medium truncate",children:e.operation_id})]}),(0,p.jsx)("span",{className:`font-mono text-xs font-semibold ${n.text} flex-shrink-0`,children:e.element_descriptive_score.toFixed(2)})]}),(0,p.jsxs)("div",{className:"flex items-center gap-4 mb-2",children:[(0,p.jsx)(iw,{label:"Clarity",score:e.clarity_score}),(0,p.jsx)(iw,{label:"Depth",score:e.depth_score})]}),r&&(0,p.jsx)("div",{className:"flex flex-wrap gap-1",children:e.issues_found.map((e,t)=>(0,p.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] text-sky-700 dark:text-sky-300 bg-sky-100/60 dark:bg-sky-900/30 px-1.5 py-0.5 rounded",children:[(0,p.jsx)(ty,{className:"h-2.5 w-2.5"}),e.replace(/_/g," ")]},t))})]},`${e.operation_id}-${t}`)})})})})]}),0===f.length&&(0,p.jsxs)("div",{className:"flex items-center gap-3 rounded-lg bg-emerald-50/80 dark:bg-emerald-950/30 px-3 py-2 border border-emerald-200/50 dark:border-emerald-800/30",children:[(0,p.jsx)(tm,{className:"h-4 w-4 text-emerald-600 dark:text-emerald-400"}),(0,p.jsx)("span",{className:"text-sm font-medium text-emerald-700 dark:text-emerald-300",children:0===l?"No elements require descriptions":0===c?"All operations have good descriptions":"No operations analyzed"})]})]})})})};function ij({signal:e,diagnostics:t,onViewAllDiagnostics:n}){return(0,p.jsx)(is,{signal:e,diagnostics:t,onViewAllDiagnostics:n,children:(0,p.jsx)("div",{className:"text-muted-foreground text-xs",children:e.metadata&&Object.keys(e.metadata).length>0?(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)("div",{className:"text-[10px] font-medium uppercase tracking-wide",children:"Signal Metadata"}),(0,p.jsx)("pre",{className:"bg-muted/50 max-h-32 overflow-auto rounded p-2 text-[10px]",children:JSON.stringify(e.metadata,null,2)})]}):(0,p.jsx)("span",{children:"No additional metadata available"})})})}function iS({signal:e,diagnostics:t,onViewAllDiagnostics:n}){let r=ik[e.kind]||ij;return(0,p.jsx)(r,{signal:e,diagnostics:t,onViewAllDiagnostics:n})}function iE(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t),n=e.overflowY,r=e.overflow;
86if("auto"===n||"scroll"===n||"auto"===r||"scroll"===r)return t;t=t.parentElement}return null}function iN({items:e,pageSize:t=50,threshold:n=200,resetKey:r="",isLoading:i=!1,rootMargin:o="200px",scrollContainerRef:s}){let a=(0,m.useRef)(null),l=(0,m.useRef)(null),c=e.length>n,[u,d]=(0,m.useState)(t),p=(0,m.useRef)(r);(0,m.useEffect)(()=>{r!==p.current&&(p.current=r,d(t))},[r,t]);let f=(0,m.useRef)(e.length);(0,m.useEffect)(()=>{let n=f.current;f.current=e.length,e.length<n&&d(t)},[e.length,t]);let h=(0,m.useMemo)(()=>c?e.slice(0,u):e,[e,u,c]),g=c&&u<e.length,x=e.length-h.length,v=e.length,y=(0,m.useCallback)(()=>{g&&!i&&d(n=>Math.min(n+t,e.length))},[g,i,t,e.length]),b=(0,m.useCallback)(()=>{d(t)},[t]),w=(0,m.useCallback)(e=>{var t;l.current&&(l.current.disconnect(),l.current=null),a.current=e,e&&c&&g&&!i&&(l.current=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&y()},{root:null!=(t=null==s?void 0:s.current)?t:iE(e),rootMargin:o,threshold:0}),l.current.observe(e))},[c,g,i,y,o,s]);return(0,m.useEffect)(()=>()=>{l.current&&l.current.disconnect()},[]),{paginatedItems:h,hasMore:g,loadMore:y,remainingCount:x,totalCount:v,visibleCount:h.length,resetPagination:b,loadMoreRef:w,isPaginationEnabled:c,pageSize:t}}function iC({groups:e,getGroupItems:t,sliceGroup:n,pageSize:r=50,threshold:i=200,resetKey:o="",isLoading:s=!1,rootMargin:a="200px",scrollContainerRef:l}){let c=(0,m.useRef)(null),u=(0,m.useRef)(null),d=(0,m.useMemo)(()=>e?e.reduce((e,n)=>e+t(n).length,0):0,[e,t]),p=d>i,[f,h]=(0,m.useState)(r),g=(0,m.useRef)(o);(0,m.useEffect)(()=>{o!==g.current&&(g.current=o,h(r))},[o,r]);let x=(0,m.useRef)(d);(0,m.useEffect)(()=>{let e=x.current;x.current=d,d<e&&h(r)},[d,r]);let v=(0,m.useMemo)(()=>{if(!e)return null;if(!p)return e;let r=0,i=[];for(let o of e){if(r>=f)break;let e=t(o),s=f-r;e.length<=s?(i.push(o),r+=e.length):(i.push(n(o,e.slice(0,s))),r+=s)}return i},[e,f,p,t,n]),y=(0,m.useMemo)(()=>v?v.reduce((e,n)=>e+t(n).length,0):0,[v,t]),b=p&&y<d,w=d-y,k=(0,m.useCallback)(()=>{b&&!s&&h(e=>Math.min(e+r,d))},[b,s,r,d]),j=(0,m.useCallback)(()=>{h(r)},[r]),S=(0,m.useCallback)(e=>{var t;u.current&&(u.current.disconnect(),u.current=null),c.current=e,e&&p&&b&&!s&&(u.current=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&k()},{root:null!=(t=null==l?void 0:l.current)?t:iE(e),rootMargin:a,threshold:0}),u.current.observe(e))},[p,b,s,k,a,l]);return(0,m.useEffect)(()=>()=>{u.current&&u.current.disconnect()},[]),{paginatedGroups:v,hasMore:b,loadMore:k,remainingCount:w,totalCount:d,visibleCount:y,resetPagination:j,loadMoreRef:S,isPaginationEnabled:p,pageSize:r}}function iP({isOpen:e,onClose:t,signal:n,diagnostics:r}){let i=(0,m.useRef)(null),{severityFilter:o,setSeverityFilter:s,searchQuery:a,setSearchQuery:l,sortedDiagnostics:c,diagnosticCounts:u,resetFilters:d,filterKey:f}=function({diagnostics:e,resetKey:t=""}){let[n,r]=(0,m.useState)(null),[i,o]=(0,m.useState)(""),s=(0,m.useMemo)(()=>({current:t}),[]);(0,m.useEffect)(()=>{t!==s.current&&(s.current=t,r(null),o(""))},[t,s]);let a=(0,m.useCallback)(()=>{r(null),o("")},[]),l=(0,m.useMemo)(()=>r8(e),[e]),c=(0,m.useMemo)(()=>{let t=e;if(null!==n&&(t=t.filter(e=>e.severity===n)),i.trim()){let e=i.toLowerCase();t=t.filter(t=>t.message.toLowerCase().includes(e)||t.code.toLowerCase().includes(e)||t.source.toLowerCase().includes(e))}return t},[e,n,i]),u=(0,m.useMemo)(()=>[...c].sort((e,t)=>e.severity-t.severity),[c]),d=`${n}-${i}`;return{severityFilter:n,setSeverityFilter:r,searchQuery:i,setSearchQuery:o,resetFilters:a,filteredDiagnostics:c,sortedDiagnostics:u,diagnosticCounts:l,filterKey:d}}({diagnostics:r,resetKey:`${e}-${n.kind}`}),{paginatedItems:g,hasMore:x,loadMoreRef:v,remainingCount:y,visibleCount:w,isPaginationEnabled:k}=iN({items:c,pageSize:50,threshold:200,resetKey:f,scrollContainerRef:i});return(0,m.useEffect)(()=>{e&&d()},[e,d]),(0,m.useEffect)(()=>{let n=n=>{"Escape"===n.key&&e&&t()};return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),(0,m.useEffect)(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[e]),(0,p.jsx)(L.AnimatePresence,{children:e&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0}
86,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},className:"fixed inset-0 z-50 bg-black/40 backdrop-blur-sm",onClick:t}),(0,p.jsx)(A.motion.div,{initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:30,stiffness:300},className:"fixed right-0 top-0 z-50 h-full w-full max-w-2xl bg-background shadow-2xl",children:(0,p.jsxs)("div",{className:"flex h-full flex-col",children:[(0,p.jsxs)("div",{className:"border-border flex-shrink-0 border-b px-6 py-4",children:[(0,p.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,p.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,p.jsx)("h2",{className:"text-lg font-semibold truncate",children:n.name}),(0,p.jsx)("p",{className:"text-muted-foreground mt-1 text-sm line-clamp-2",children:n.description})]}),(0,p.jsx)("button",{onClick:t,className:"text-muted-foreground hover:text-foreground rounded-md p-2 transition-colors hover:bg-muted cursor-pointer",children:(0,p.jsx)(b.X,{className:"h-5 w-5"})})]}),(0,p.jsxs)("div",{className:"mt-4 flex items-center gap-4 text-sm",children:[(0,p.jsxs)("span",{className:"text-muted-foreground",children:[r.length," total issues"]}),c.length!==r.length&&(0,p.jsxs)("span",{className:"text-muted-foreground",children:["• ",c.length," matching filters"]}),k&&(0,p.jsxs)("span",{className:"text-muted-foreground",children:["• ",w," shown"]})]})]}),(0,p.jsxs)("div",{className:"border-border flex-shrink-0 border-b px-6 py-3 space-y-3",children:[(0,p.jsx)(nd,{value:a,onChange:e=>l(e.target.value),onClear:()=>l(""),placeholder:"Search diagnostics..."}),(0,p.jsx)(ie,{counts:u,totalCount:r.length,severityFilter:o,onFilterChange:s})]}),(0,p.jsx)("div",{ref:i,className:"flex-1 overflow-y-auto px-6 py-4",children:c.length>0?(0,p.jsxs)("div",{className:"space-y-3",children:[g.map((e,t)=>(0,p.jsx)(it,{diagnostic:e},`${e.code}-${e.source}-${t}`)),x&&(0,p.jsx)("div",{ref:v,className:"flex items-center justify-center py-4",children:(0,p.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[(0,p.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}),(0,p.jsxs)("span",{children:["Loading more... (",y," remaining)"]})]})})]}):(0,p.jsx)("div",{className:"flex h-full items-center justify-center",children:(0,p.jsx)("div",{className:"border-border bg-muted/30 rounded-lg border py-12 px-8 text-center",children:(0,p.jsx)("p",{className:"text-muted-foreground text-sm",children:a||null!==o?"No diagnostics match your filters":"No diagnostics to display"})})})})]})})]})})}function iT({children:e,onUnlock:t}){return(0,p.jsxs)("div",{className:"group relative h-full",children:[(0,p.jsx)("div",{className:"pointer-events-none h-full select-none blur-sm",children:e}),(0,p.jsx)("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 transition-opacity duration-300 group-hover:opacity-100",children:(0,p.jsx)(t0,{className:"border-primary/20 bg-background/95 p-4 text-center shadow-lg backdrop-blur-sm",children:(0,p.jsxs)("div",{className:"space-y-3",children:[(0,p.jsx)("div",{className:"bg-primary/10 mx-auto flex h-10 w-10 items-center justify-center rounded-full",children:(0,p.jsx)(e9,{className:"text-primary h-5 w-5"})}),(0,p.jsxs)("div",{className:"space-y-1",children:[(0,p.jsx)("h3",{className:"text-foreground text-sm font-semibold",children:"View Full Report"}),(0,p.jsx)("p",{className:"text-muted-foreground text-xs",children:"Sign up for detailed analysis"})]}),t&&(0,p.jsx)("button",{onClick:t,className:"bg-primary hover:bg-primary/90 text-primary-foreground inline-flex items-center justify-center rounded-md px-3 py-1.5 text-xs font-medium transition-colors",children:"Get Access"})]})})})]})}function iA({dimension:e,details:t,showBlurred:n=!1,onGetFullAccess:r,diagnostics:i=[]}){let o,s=e.scores.current,a=(null==t?void 0:t.signals.length)||0,l=a>0,c=(0,p.jsxs)("div",{className:"border-border bg-card hover:border-primary/50 group relative overflow-hidden rounded-lg border shadow-sm transition-all hover:shadow-md",children:[(0,p.jsx)("div",{className:"p-4",children:(0,p.jsxs)("div",{className:"flex items-start gap-3",children:[(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)(rQ,{score:s,size:64,delay:0,gradientId:`dimension-${e.kind}`,showComingSoon:!l&&0===a,comingSoonText:"N/A"})}),(0,p.jsxs)("div",{className:"flex-1 space-y-1",children:[(0,p.jsx)("h3",{className:"text-sm font-semibold",children:e.name}),(0,p.jsx)("p",{className:"text-muted-foreground line-clamp-2 text-xs",children:e.intention}),(0,p.jsx)("div",{className:"flex items-center justify-between pt-1",children:(0,p.jsx)("div",{className:"flex items-center gap-2 text-xs",children:l||0!==a?(0,p.jsxs)(p.Fragment,{children:[e.grade&&(0,p.jsxs)("div",{className:`inline-flex items-center rounded-full px-2 py-1 text-xs font-semibold ${(o=rL(e.grade),`${o.badge.light} ${o.badge.dark}`)}`,children:["Grade: ",e.grade]}),(0,p.jsxs)("div",{className:"inline-flex items-center rounded-full px-2 py-1 text-xs font-medium bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-300",children:["Signals: ",a]})]}):(0,p.jsx)("span",{className:"text-muted-foreground italic",children:"Coming Soon"})})})]})]})}),t&&t.signals.length>0&&(0,p.jsx)("div",{className:"border-border bg-muted/5 space-y-2 border-t p-3",children:t.signals.sort((e,t)=>
86"spec_validity"===e.kind?-1:+("spec_validity"===t.kind)).map(e=>(0,p.jsx)(iI,{signal:e,diagnostics:i},e.kind))})]});return n?(0,p.jsx)(iT,{onUnlock:r,children:c}):c}function iI({signal:e,diagnostics:t=[]}){var n,r;let[i,o]=(0,m.useState)(!1),[s,a]=(0,m.useState)(!1),l=r6(t,null==(n=e.metadata)?void 0:n.provenance),c=e.metadata&&Object.keys(e.metadata).length>0,u=c||l.length>0,d=(r=e.score)>=80?rH("green"):r>=60?rH("yellow"):rH("red"),f=1===e.score?rH("green"):rH("red");return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)("div",{className:`rounded-md border transition-all overflow-hidden ${i?"border-primary/50 ring-1 ring-primary/20 shadow-sm":"border-border bg-card"}`,children:[(0,p.jsx)("button",{onClick:()=>u&&o(!i),className:`w-full px-3 py-2 text-left transition-colors ${u?"hover:bg-muted/50 cursor-pointer":"cursor-default"}`,children:(0,p.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,p.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,p.jsxs)("div",{className:"mb-0.5 flex items-center gap-2",children:[(0,p.jsx)("div",{className:`${"spec_validity"===e.kind?f.bg:d.bg} flex items-center justify-center rounded-md px-1.5 py-0.5`,children:"spec_validity"===e.kind?1===e.score?(0,p.jsx)(tm,{className:`h-3 w-3 ${f.text}`}):(0,p.jsx)(tp.default,{className:`h-3 w-3 ${f.text}`}):(0,p.jsxs)("span",{className:`${d.text} text-[11px] font-semibold`,children:[e.score.toFixed(0),"%"]})}),(0,p.jsx)("span",{className:"truncate text-xs font-medium",children:e.name})]}),(0,p.jsx)("p",{className:"text-muted-foreground line-clamp-3 sm:line-clamp-1 text-xs",children:e.description})]}),(0,p.jsxs)("div",{className:"flex flex-shrink-0 items-center gap-2",children:[l.length>0&&(0,p.jsx)(io,{diagnostics:l}),u&&(0,p.jsx)(A.motion.div,{animate:{rotate:180*!!i},transition:{duration:.2},className:"text-muted-foreground",children:(0,p.jsx)(P.ChevronDown,{className:"h-3 w-3"})})]})]})}),(0,p.jsx)(L.AnimatePresence,{children:i&&u&&(0,p.jsx)(A.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"border-border bg-muted/5 border-t",children:(0,p.jsx)("div",{className:"p-2",children:c&&e.kind in ik&&(0,p.jsx)(iS,{signal:e,diagnostics:l,onViewAllDiagnostics:()=>{a(!0)}})})})})]}),(0,p.jsx)(iP,{isOpen:s,onClose:()=>a(!1),signal:e,diagnostics:l})]})}function iM({title:e,description:t,onGetFullAccess:n}){return(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.5},className:"relative",children:(0,p.jsx)("div",{className:"bg-background/80 border-border/50 rounded-lg border p-6 backdrop-blur-sm",children:(0,p.jsxs)("div",{className:"space-y-4 text-center",children:[(0,p.jsx)("div",{className:"bg-primary/10 mx-auto flex h-16 w-16 items-center justify-center rounded-full",children:(0,p.jsx)(e9,{className:"text-primary h-8 w-8"})}),(0,p.jsxs)("div",{className:"space-y-2",children:[(0,p.jsx)("h3",{className:"text-foreground text-lg font-semibold",children:e}),(0,p.jsx)("p",{className:"text-muted-foreground text-sm",children:t})]}),(0,p.jsx)("div",{className:"pt-2",children:n&&(0,p.jsxs)(tU,{variant:"cta",size:"lg",onClick:n,className:"w-full",children:["Get Full Access",(0,p.jsx)(th,{className:"ml-2 h-4 w-4"})]})})]})})})}function iL({report:e,dimensions:t,diagnostics:n,showBlurred:r=!1,onGetFullAccess:i,onOverallScore:o,formatTimestamp:s,normalizeDimensionSummary:a,normalizeDimensionDetails:l}){return(0,p.jsxs)("div",{className:"space-y-6",children:[(0,p.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,p.jsx)("h2",{className:"text-xl font-semibold",children:"Overview"}),o&&s&&(0,p.jsxs)("p",{className:"text-muted-foreground text-sm",children:["Overall score: ",Math.round(o)," out of 100"]})]}),(0,p.jsx)("div",{className:"space-y-3",children:(0,p.jsx)("div",{className:"space-y-3",children:r?e.summary.dimensions.slice(0,3).map((e,r)=>{let o=t.find(t=>t.kind===e.kind);return(0,p.jsx)(iA,{dimension:a(e),details:o?l(o):void 0,showBlurred:r>0,onGetFullAccess:i,diagnostics:n},e.kind)}):e.summary.dimensions.map(e=>{let r=t.find(t=>t.kind===e.kind);return(0,p.jsx)(iA,{dimension:a(e),details:r?l(r):void 0,showBlurred:!1,onGetFullAccess:i,diagnostics:n},e.kind)})})}),r&&e.summary.dimensions.length>0&&(0,p.jsx)(iM,{title:"Sign up to see detailed analysis",description:"Unlock comprehensive quality gauges and agent readiness metrics",onGetFullAccess:i})]})}var iR=(0,m.memo)(function({group:e,isExpanded:t,onToggle:n}){return(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsx)("div",{className:"absolute bottom-0 left-4 right-4 h-px bg-gradient-to-r from-transparent via-border/50 to-transparent"}),(0,p.jsxs)("button",{onClick:n,className:"\n					w-full flex items-center justify-between\n					px-4 py-3.5\n					bg-gradient-to-r from-muted/30 via-muted/20 to-transparent\n					hover:from-muted/50 hover:via-muted/30 hover:to-muted/10\n					transition-all duration-200 cursor-pointer\n					group\n				",children:[(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)(A.motion.div,{animate:{rotate:t?0:-90},transition:{duration:.2},className:"\n							p-1 rounded-md\n							bg-muted/50 group-hover:bg-muted\n							transition-colors\n						",children:(0,p.jsx)(P.ChevronDown,{className:"h-4 w-4 text-muted-foreground"})}),(0,p.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,p.jsx)("h4",{className:"text-sm font-semibold text-foreground",children:e.signalName}),(0,p.jsx)("span",{className:"\n							text-[10px] text-muted-foreground\n							px-2 py-0.5 rounded-full\n							bg-gradient-to-r from-primary/10 to-primary/5\n							ring-1 ring-primary/10\n						",children:e.dimensionName})]})]}),(0,p.jsxs)("span",{className:"\n					text-xs font-medium\n					px-3 py-1 rounded-full\n					bg-gradient-to-r from-muted/80 to-muted/40\n					text-muted-foreground\n					ring-1 ring-border/30\n					group-hover:ring-border/50\n					transition-all\n				",children:[e.diagnostics.length," ",1===e.diagnostics.length?"diagnostic":"diagnostics"]})]}),(0,p.jsx)(A.motion.div,{initial:!1,animate:{height:t?"auto":0,opacity:+!!t},transition:{height:{duration:.3,ease:[.4,0,.2,1]},opacity:{duration:.2,ease:"easeInOut"}},className:"overflow-hidden",children:(0,p.jsx)("div",{className:"space-y-3 p-4 pt-2",children:e.diagnostics.map((t,n)=>(0,p.jsx)(it,{diagnostic:t.diagnostic,sharedWithSignals:t.sharedWith},`${e.signalKind}-${t.diagnostic.code}-${n}`))})})]})});function i_({remainingCount:e,loadMoreRef:t,className:n=""}){return(0,p.jsx)("div",{ref:t,className:`flex items-center justify-center py-4 ${n}`,children:(0,p.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[(0,p.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}),(0,p.jsxs)("span",{children:["Loading more... (",e," remaining)"]})]})})}function iO({visibleCount:e,totalCount:t,hasMore:n,isPaginationEnabled:r}
86){if(e<=10&&!r)return null;let i=r?n?`Showing ${e} of ${t} diagnostics (scroll for more)`:`Showing all ${t} diagnostics`:`Scroll to see all ${t} diagnostics`;return(0,p.jsx)("p",{className:"text-muted-foreground text-center text-xs",children:i})}function iD({sortedDiagnostics:e,groupBySignal:t,groupedBySignal:n,filterKey:r}){let i=(0,m.useRef)(null),[o,a]=(0,m.useState)(()=>n?new Set(n.map(e=>e.signalKind)):new Set);(0,m.useEffect)(()=>{n&&a(e=>{let t=new Set(e);return(n.forEach(n=>{e.has(n.signalKind)||0!==e.size||t.add(n.signalKind)}),0===e.size)?new Set(n.map(e=>e.signalKind)):e})},[n]);let l=(0,m.useCallback)(e=>{a(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),c=o.size>0,u=iN({items:e,pageSize:50,threshold:200,resetKey:r,scrollContainerRef:i}),d=iC({groups:n,getGroupItems:e=>e.diagnostics,sliceGroup:(e,t)=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{diagnostics:t}),pageSize:50,threshold:200,resetKey:r,scrollContainerRef:i}),f=(0,m.useMemo)(()=>t&&d.paginatedGroups?d.paginatedGroups.reduce((e,t)=>o.has(t.signalKind)?e+t.diagnostics.length:e,0):u.paginatedItems.length,[t,d.paginatedGroups,u.paginatedItems,o]),h=(0,m.useMemo)(()=>t&&n?n.reduce((e,t)=>o.has(t.signalKind)?e+t.diagnostics.length:e,0):e.length,[t,n,o,e.length])-f,{hasMore:g,loadMoreRef:x,remainingCount:v,visibleCount:y,isPaginationEnabled:b}=t?d:u,w=g&&(!t||c&&h>0);if(0===e.length)return(0,p.jsx)("div",{className:"border-border bg-muted/30 rounded-lg border py-12 text-center",children:(0,p.jsx)("p",{className:"text-muted-foreground text-sm",children:"No diagnostics match your filters"})});let k=y>10||b,j=k?"600px":"auto";return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"border-border/30 rounded-lg border overflow-hidden",style:{maxHeight:j},children:(0,p.jsx)("div",{ref:i,className:`${t?"":"p-3"} ${k?"overflow-y-auto":""}`,style:{maxHeight:j},children:t&&d.paginatedGroups?(0,p.jsxs)("div",{className:"border border-border/40 overflow-hidden",children:[d.paginatedGroups.map(e=>(0,p.jsx)(iR,{group:e,isExpanded:o.has(e.signalKind),onToggle:()=>l(e.signalKind)},e.signalKind)),w&&(0,p.jsx)(i_,{remainingCount:t?h:v,loadMoreRef:x,className:"border-t border-border/40"})]}):(0,p.jsxs)("div",{className:"space-y-3",children:[u.paginatedItems.map((e,t)=>(0,p.jsx)(it,{diagnostic:e},`${e.code}-${t}`)),u.hasMore&&(0,p.jsx)(i_,{remainingCount:u.remainingCount,loadMoreRef:u.loadMoreRef})]})})}),(!t||c)&&(0,p.jsx)(iO,{visibleCount:t?f:y,totalCount:e.length,hasMore:g,isPaginationEnabled:b})]})}function iF({diagnostics:e,onGetFullAccess:t}){return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"space-y-3",children:e.slice(0,3).map((e,t)=>(0,p.jsx)(it,{diagnostic:e},`${e.code}-${t}`))}),e.length>3&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"space-y-3",children:e.slice(3,6).map((e,t)=>(0,p.jsx)("div",{className:"pointer-events-none select-none blur-sm",children:(0,p.jsx)(it,{diagnostic:e})},`${e.code}-${t+3}`))}),(0,p.jsx)(iM,{title:"Sign up to see all diagnostics",description:`Unlock ${e.length-3} more diagnostic details`,onGetFullAccess:t})]})]})}function i$({diagnostics:e,allSignals:t,showBlurred:n=!1,onGetFullAccess:r}){let{severityFilter:i,setSeverityFilter:o,groupBySignal:s,setGroupBySignal:a,searchQuery:l,setSearchQuery:c,filteredDiagnostics:u,sortedDiagnostics:d,groupedBySignal:f,diagnosticCounts:h,filterKey:g}=function({diagnostics:e,allSignals:t}){let[n,r]=(0,m.useState)(null),[i,o]=(0,m.useState)(!0),[s,a]=(0,m.useState)(""),l=(0,m.useDeferredValue)(s),c=(0,m.useCallback)(()=>{r(null),a("")},[]),u=r8(e),d=(0,m.useMemo)(()=>{let t=e;if(n&&(t=t.filter(e=>e.severity===n)),l.trim()){let e=l.toLowerCase();t=t.filter(t=>t.message.toLowerCase().includes(e)||t.code.toLowerCase().includes(e)||t.source.toLowerCase().includes(e))}return t},[e,n,l]),p=(0,m.useMemo)(()=>[...d].sort((e,t)=>e.severity-t.severity),[d]),f=(0,m.useMemo)(()=>{let n=new Map;return t.forEach(t=>{var r;r6(e,null==(r=t.metadata)?void 0:r.provenance).forEach(e=>{let r=`${e.code}|${e.message}|${e.source}|${e.severity}`;n.has(r)||n.set(r,new Set),n.get(r).add(t.name)})}),n},[e,t]),h=(0,m.useMemo)(()=>
86{if(!i)return null;let e=[];return t.forEach(t=>{var n;let r=r6(p,null==(n=t.metadata)?void 0:n.provenance);if(r.length>0){let n=r.map(e=>{let n,r,i=(n=`${e.code}|${e.message}|${e.source}|${e.severity}`,(r=f.get(n))?Array.from(r):[]).filter(e=>e!==t.name);return{diagnostic:e,sharedWith:i}});e.push({signalName:t.name,signalKind:t.kind,dimensionName:t.dimensionName,diagnostics:n})}}),e.sort((e,t)=>"lint_results"===e.signalKind?1:"lint_results"===t.signalKind?-1:t.diagnostics.length-e.diagnostics.length)},[p,t,i]),g=`${n}-${l}-${i}`;return{severityFilter:n,setSeverityFilter:r,groupBySignal:i,setGroupBySignal:o,searchQuery:s,setSearchQuery:a,resetFilters:c,filteredDiagnostics:d,sortedDiagnostics:p,groupedBySignal:h,diagnosticCounts:u,filterKey:g}}({diagnostics:e,allSignals:t});return(0,p.jsxs)("div",{className:"mt-14 space-y-6",children:[(0,p.jsxs)("div",{className:"mb-1 flex items-center justify-between",children:[(0,p.jsx)("h2",{className:"text-xl font-semibold",children:"Diagnostics"}),(0,p.jsx)("p",{className:"text-muted-foreground text-sm",children:u.length===e.length?`${e.length} total diagnostics`:`${u.length} of ${e.length} diagnostics`})]}),(0,p.jsxs)("div",{className:"rounded-xl border border-border/40 bg-card/50 p-4 space-y-3",children:[(0,p.jsx)(nd,{value:l,onChange:e=>c(e.target.value),onClear:()=>c(""),placeholder:"Search diagnostics..."}),(0,p.jsxs)("div",{className:"bg-muted/30 flex flex-wrap items-center justify-between gap-2 rounded-lg px-3 py-2",children:[(0,p.jsx)(ie,{counts:h,totalCount:e.length,severityFilter:i,onFilterChange:o}),(0,p.jsxs)("button",{onClick:()=>a(!s),disabled:n,className:`flex items-center gap-1.5 rounded-md px-2.5 py-1.5 text-xs font-medium transition-all ${s?"bg-primary text-primary-foreground shadow-sm":"bg-muted text-muted-foreground hover:text-foreground"} ${n?"cursor-not-allowed opacity-50":"cursor-pointer"}`,children:[(0,p.jsx)(tb,{className:"h-3.5 w-3.5"}),"Group by Signal"]})]}),n?(0,p.jsx)(iF,{diagnostics:d,onGetFullAccess:r}):(0,p.jsx)(iD,{sortedDiagnostics:d,groupBySignal:s,groupedBySignal:f,filterKey:g})]})]})}var iz=new Set(["spec_validity"]);function iV({report:e,showBlurred:t=!1,onGetFullAccess:n,onStartNew:r,onOverallScore:i,formatTimestamp:o}){let s="apiMetadata"in e&&"apiId"in e.apiMetadata&&"operationCount"in e.apiMetadata,a=e.details.flatMap(e=>e.dimensions),l=s&&e.diagnostics||[],c=(0,m.useMemo)(()=>a.flatMap(e=>s?(e.signals||[]).map(t=>{var n;return{kind:t.kind||(null==(n=t.name)?void 0:n.toLowerCase().replace(/\s+/g,"_"))||"unknown",name:t.name||"Unknown Signal",description:t.description||"",metadata:t.metadata,dimensionName:e.name}}):(e.signals||[]).map(t=>({kind:t.kind,name:t.name,description:t.description,metadata:t.metadata,dimensionName:e.name}))),[a,s]);return(0,p.jsxs)("div",{className:"w-full",children:[(0,p.jsx)(iL,{report:e,dimensions:a,diagnostics:l,showBlurred:t,onGetFullAccess:n,onOverallScore:i,formatTimestamp:o,normalizeDimensionSummary:e=>{var t;return s?{kind:e.kind,name:e.name,intention:e.intention,scores:{current:Math.round(e.score||0)},grade:e.grade}:{kind:e.kind,name:e.name,intention:e.intention,scores:{current:Math.round((null==(t=e.scores)?void 0:t.current)||0)},grade:e.grade}},normalizeDimensionDetails:e=>s?{kind:e.kind,name:e.name,intention:e.intention,score:Math.round(e.score||0),grade:e.grade,signals:(e.signals||[]).map(e=>{var t,n;let r=e.kind||(null==(t=e.name)?void 0:t.toLowerCase().replace(/\s+/g,"_"))||"unknown";return{kind:r,name:e.name||"Unknown Signal",description:e.description||`Measures ${(null==(n=e.name)?void 0:n.toLowerCase())||"unknown metric"}`,score:iz.has(r)?e.score||0:Math.round(100*(e.score||0)),metadata:e.metadata}})}:{kind:e.kind,name:e.name,intention:e.intention,score:Math.round(e.score||0),grade:e.grade,signals:(e.signals||[]).map(e=>({kind:e.kind,name:e.name,description:e.description,score:Math.round(e.score||0),metadata:e.metadata}))}}),l.length>0&&(0,p.jsx)(i$,{diagnostics:l,allSignals:c,showBlurred:t,onGetFullAccess:n}),r&&(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:1.1},className:"my-12 flex items-center justify-center",children:(0,p.jsxs)(tU,{variant:"secondary",size:"lg",onClick:r,className:"flex items-center gap-2",children:[(0,p.jsx)(ts,{className:"h-4 w-4"}),"Start New Analysis"]})})]})}function iB({scoreCardRef:t,reportData:n}){let[r,i]=(0,m.useState)(!1),o=async()=>
86{if(!t.current)return"";i(!0);let n=t.current;if(!n)return"";let r="",o=[];try{let t=(await e.A(966556)).default;r=n.style.overflow,n.style.overflow="visible",n.querySelectorAll('.absolute.bottom-6.right-6, [class*="absolute"][class*="bottom-6"][class*="right-6"]').forEach(e=>{o.push({el:e,display:e.style.display}),e.style.display="none"});let i=n.getBoundingClientRect(),s=window.getComputedStyle(n),a=document.documentElement.classList.contains("dark")||window.matchMedia("(prefers-color-scheme: dark)").matches,l="#ffffff";if(a){let e=getComputedStyle(document.documentElement).getPropertyValue("--background").trim();if(e){let t=e.match(/([\d.]+)\s+([\d.]+)%\s+([\d.]+)%/);if(t){let e=parseFloat(t[1]||"0"),n=parseFloat(t[2]||"0"),r=parseFloat(t[3]||"0"),i=n/100*(1-Math.abs(r/100*2-1)),o=i*(1-Math.abs(e/60%2-1)),s=r/100-i/2,a=0,c=0,u=0;e>=0&&e<60?(a=i,c=o,u=0):e>=60&&e<120?(a=o,c=i,u=0):e>=120&&e<180?(a=0,c=i,u=o):e>=180&&e<240?(a=0,c=o,u=i):e>=240&&e<300?(a=o,c=0,u=i):e>=300&&e<360&&(a=i,c=0,u=o),a=Math.round((a+s)*255),c=Math.round((c+s)*255),u=Math.round((u+s)*255),l=`#${[a,c,u].map(e=>e.toString(16).padStart(2,"0")).join("")}`}}if("#ffffff"===l){let e=s.backgroundColor,t=window.getComputedStyle(document.body).backgroundColor,n=e&&"rgba(0, 0, 0, 0)"!==e&&"transparent"!==e?e:t&&"rgba(0, 0, 0, 0)"!==t&&"transparent"!==t?t:null;if(n){let e=function(e){if(e.startsWith("#"))return e;let t=e.match(/\d+/g);if(t&&t.length>=3){let e=parseInt(t[0]||"0"),n=parseInt(t[1]||"0"),r=parseInt(t[2]||"0");return`#${[e,n,r].map(e=>e.toString(16).padStart(2,"0")).join("")}`}let n=e.match(/hsl\(?\s*(\d+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%/i);if(n){let e=parseInt(n[1]||"0"),t=parseInt(n[2]||"0"),r=parseInt(n[3]||"0"),i=t/100*(1-Math.abs(r/100*2-1)),o=i*(1-Math.abs(e/60%2-1)),s=r/100-i/2,a=0,l=0,c=0;return e>=0&&e<60?(a=i,l=o,c=0):e>=60&&e<120?(a=o,l=i,c=0):e>=120&&e<180?(a=0,l=i,c=o):e>=180&&e<240?(a=0,l=o,c=i):e>=240&&e<300?(a=o,l=0,c=i):e>=300&&e<360&&(a=i,l=0,c=o),a=Math.round((a+s)*255),l=Math.round((l+s)*255),c=Math.round((c+s)*255),`#${[a,l,c].map(e=>e.toString(16).padStart(2,"0")).join("")}`}return null}(n);l=e||"#0d1916"}else l="#0d1916"}}let c=Math.max(i.width,n.scrollWidth,parseInt(s.width)||0),u=Math.max(i.height,n.scrollHeight,parseInt(s.height)||0),d=await t.toPng(n,{quality:1,bgcolor:l,width:2*c,height:2*u,style:{transform:"scale(2)",transformOrigin:"top left",width:c+"px",height:u+"px",overflow:"visible"},filter:()=>!0});return n.style.overflow=r,o.forEach(({el:e,display:t})=>{e.style.display=t||""}),d}catch(e){return n&&(n.style.overflow=r),o.forEach(({el:e,display:t})=>{e.style.display=t||""}),console.error("Error generating image:",e),""}finally{i(!1)}};return{isGeneratingImage:r,downloadImage:async()=>{let e=await o();if(!e)return;let t=`api-quality-score-${n.specId||n.fileName||"report"}-${new Date().toISOString().split("T")[0]}.png`,r=document.createElement("a");r.href=e,r.download=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)},shareToTwitter:async()=>{if(!await o())return;let{overallScore:e,dimensions:t}=n,r=t.map(e=>{let t={"Spec Quality":"📊","Agent Readiness":"🤖","Developer Experience":"💻",Safety:"🔒",Performance:"⚡","Function Calling":"🎯","Developer Experience & JSON":"💻","Agent Readiness & Extraction":"🔍","Authentication & User Context":"🔐",Security:"🛡️","Agent Interface Design":"🤖"}[e.name]||e.name.split(" ").map(e=>e[0]).join("").toUpperCase();return`${t} ${e.name}: ${e.score}`}).join("\n"),i=`\u{1F680} Just achieved ${e}/100 API Quality Score! 
87
88${r}
89
90#API #Quality #OpenAPI #DeveloperExperience`;await navigator.clipboard.writeText(i),alert("Text copied to clipboard! Share it on X.com with your image.")},shareToLinkedIn:async()=>{if(!await o())return;let{overallScore:e,dimensions:t}=n,r=t.map(e=>{let t=void 0!==e.delta?` (+${e.delta})`:"";return`\u2022 ${e.name}: ${e.score}/100${t}`}).join("\n"),i=`\u{1F680} Excited to share my API Quality Score: ${e}/100!
91
92Key improvements across all dimensions:
93${r}
94
95Investing in API quality pays dividends in developer productivity and system reliability. #API #Quality #OpenAPI #DeveloperExperience #TechLeadership`;await navigator.clipboard.writeText(i),alert("Text copied to clipboard! Share it on LinkedIn with your image.")}}}function iH({report:e,showBlurred:t=!1,onGetFullAccess:n,onStartNew:r}){let i=(0,m.useRef)(null),o=e=>"apiMetadata"in e&&"apiId"in e.apiMetadata&&"operationCount"in e.apiMetadata,{isGeneratingImage:s,downloadImage:a,shareToTwitter:l,shareToLinkedIn:c}=iB({scoreCardRef:i,reportData:{overallScore:Math.round(e.summary.score),dimensions:e.summary.dimensions.map(t=>{var n;let r=0;return r=o(e)?t.score||0:(null==(n=t.scores)?void 0:n.current)||0,{name:t.name,score:Math.round(r),delta:void 0}}),specId:o(e)?e.apiMetadata.name:e.apiMetadata.id,fileName:e.apiMetadata.name}});return(0,p.jsxs)("div",{className:"w-full space-y-8 sm:space-y-12 lg:space-y-16",children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20}
95,animate:{opacity:1,y:0},transition:{delay:.1},className:"mb-1",children:(0,p.jsx)("div",{className:"space-y-4 text-center",children:(0,p.jsx)("div",{className:"space-y-4 text-right",children:(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:.1,type:"spring"},className:"flex flex-row items-center justify-end space-y-3 space-y-4 text-left",children:(0,p.jsx)("p",{className:"text-muted-foreground",children:"Comprehensive analysis of your OpenAPI specification"})})})})}),(0,p.jsx)(r0,{report:e,scoreCardRef:i,overallScore:Math.round(e.summary.score),downloadImage:()=>void a(),shareToTwitter:()=>void l(),shareToLinkedIn:()=>void c(),isGeneratingImage:s,showDownloadButton:!0}),(0,p.jsx)(iV,{report:e,showBlurred:t,onGetFullAccess:n,onStartNew:r,onOverallScore:e.summary.score,formatTimestamp:e=>new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})})]})}async function iU(e,t,n,r,i,o){return new Promise((s,a)=>{if(null==o?void 0:o.aborted)return void a(new DOMException("Request aborted","AbortError"));let l=0;fetch(r||"/api/api-score/analyze",{method:"POST",headers:{"Content-Type":"application/json",Accept:"text/event-stream","Cache-Control":"no-cache"},body:JSON.stringify({fileContent:e,fileUrl:t,fileName:n}),signal:o}).then(async e=>{if(!e.ok){let t={};try{t=await e.json()}catch(e){}throw Error(JSON.stringify({error:t.error||`HTTP ${e.status}: ${e.statusText}`,errorType:t.errorType||"http",details:t.details,message:t.message,statusCode:e.status}))}if(!e.body)throw Error("No response body for SSE stream");let t=e.body.getReader(),n=new TextDecoder,r="";try{for(;;){let{done:e,value:o}=await t.read();if(e)break;let c=(r+=n.decode(o,{stream:!0})).split("\n");for(let e of(r=c.pop()||"",c))if(e.startsWith("data: "))try{let t=JSON.parse(e.slice(6));switch(t.type){case"progress":{let e=Math.max(t.progress,l);l=e,null==i||i({progress:e,phase:t.phase,status:t.status,icon:function(e,t,n,r){let i=e.toLowerCase(),o=n?n/1e3:0,s=r||0;if(i.includes("completed"))return"CheckCircle";if(i.includes("failed")||i.includes("error"))return"XCircle";if(o>=120)if((n?n/6e4:0)<5){let e=["Zap","Award","Microscope","Cog","BarChart3","Layers","Rocket"];return e[Math.floor((o-120)/15)%e.length]}else{let e=["Brain","Microscope","Clock","CheckSquare","Target","Lightbulb","Sparkles"];return e[Math.floor((o-300)/30)%e.length]}if(s<10){let e=["FileText","BookOpen","CheckCircle2"];return e[Math.floor(o/8)%e.length]}if(s<25){let e=["Route","Search","ScanLine"];return e[Math.floor(o/10)%e.length]}if(s<50){let e=["BarChart3","Palette","Shield"];return e[Math.floor(o/12)%e.length]}if(s<75){let e=["Lock","Database","Layers"];return e[Math.floor(o/15)%e.length]}{if(!(s<95))return"Sparkles";let e=["Cog","Target","Lightbulb"];return e[Math.floor(o/18)%e.length]}}(t.status,t.phase,t.elapsedMs,e)});break}case"complete":l=100,null==i||i({progress:100,phase:"Analysis complete!",status:"completed",icon:"CheckCircle"}),console.log("[Scorecard API Response]",t.report),s({report:t.report,token:t.token});return;case"error":a(Error(JSON.stringify({error:t.error||"Analysis failed",errorType:t.errorType||"server",details:t.details,message:t.message})));return}}catch(e){continue}}}finally{t.releaseLock()}}).catch(e=>{a(e)})})}function iW(e,t,n,r,i,o,s,a,l,c){let u=!1,d=new AbortController,p=()=>{u=!0,d.abort(),null==l||l(!1),c&&(c.current=!1)};return(async()=>{try{if(a||(null==c?void 0:c.current))return;if(null==l||l(!0),c&&(c.current=!0),e({status:"validating",progress:0,currentPhase:"Starting API analysis..."}),r){if(e({status:"validating",progress:0,currentPhase:"Initiating API analysis..."}),await new Promise(e=>setTimeout(e,500)),u)return;e({status:"validating",progress:10,currentPhase:"Validating OpenAPI specification..."});let n=await iU(r,i,o,s,t=>{u||e({status:"analyzing",progress:t.progress,currentPhase:t.phase,icon:t.icon})},d.signal);if(u)return;e({status:"completed",progress:100,currentPhase:"Analysis complete!"}),t(n);return}if(i){if(e({status:"validating",progress:0,currentPhase:"Initiating API analysis..."}),await new Promise(e=>setTimeout(e,500)),u)return;
95e({status:"validating",progress:10,currentPhase:"Validating OpenAPI specification..."});let n=await iU(void 0,i,o,s,t=>{u||e({status:"analyzing",progress:t.progress,currentPhase:t.phase,icon:t.icon})},d.signal);if(u)return;e({status:"completed",progress:100,currentPhase:"Analysis complete!"}),t(n);return}throw Error("No file content or URL provided")}catch(t){let e;if(u||t instanceof Error&&"AbortError"===t.name)return;try{let n=JSON.parse(t instanceof Error?t.message:String(t));e={error:n.error||"Failed to analyze API specification",errorType:n.errorType||"server",details:n.details,statusCode:n.statusCode}}catch(n){e={error:t instanceof Error?t.message:"Failed to analyze API specification",errorType:"server"}}n(e)}finally{p()}})(),p}function iG(e,t={}){let n=(0,tk.useSearchParams)(),[r,i]=(0,m.useState)("upload"),[o,a]=(0,m.useState)({status:"idle",progress:0,currentPhase:""}),[l,c]=(0,m.useState)(null),[u,d]=(0,m.useState)(null),[p,f]=(0,m.useState)(null),[h,g]=(0,m.useState)(null),[x,v]=(0,m.useState)(!1),y=(0,m.useRef)(!1),b=(0,m.useRef)(!1),w=(0,m.useCallback)(()=>{!b.current&&e.trackingSource&&(tF((0,s.__spreadProps)((0,s.__spreadValues)({},t$.scorecard_api_uploaded),{source:e.trackingSource})),b.current=!0)},[e.trackingSource]),k=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(!e.enableSessionRestore)return;let r=n.get(e.sessionIdParam||"sessionId");if(!r){k.current=!1;return}if(!k.current&&t.loadAnalysisSession){let e=t.loadAnalysisSession(r);if(e){if(c(e),i("results"),k.current=!0,t.loadTransferToken){let e=t.loadTransferToken(r);e&&g(e)}t.clearAnalysisSession&&t.clearAnalysisSession()}}},[n,e.enableSessionRestore,e.sessionIdParam,t.loadAnalysisSession,t.clearAnalysisSession]);let j=(0,m.useCallback)(async n=>{var r;w(),a({status:"uploading",progress:0,currentPhase:"Uploading file..."});try{let r=!1!==e.enableUrlValidation&&!0===e.enableSpecValidation;if(!1!==e.enableUrlValidation){let o=function(e){var t;let n={isValid:!1,fileSize:e.size,fileType:"",fileName:e.name};if(!e.name||""===e.name.trim())return n.error="File name is required",n;if(0===e.size)return n.error="The selected file is empty. Please choose a file that contains an OpenAPI specification.",n;if(e.size>0x4600000)return n.error=`File too large. Maximum size is ${70}MB. Your file is ${(e.size/1048576).toFixed(1)}MB.`,n;let r="."+(null==(t=e.name.split(".").pop())?void 0:t.toLowerCase());return rf.includes(r)?(n.fileType=r,n.isValid=!0,e.size>0x3800000&&(n.warning="Large file detected. Processing may take longer.")):(n.error=`Unsupported file type "${r}". Please upload a JSON (.json) or YAML (.yaml, .yml) file containing your OpenAPI specification.`,n.fileType=r),n}(n);if(!o.isValid){f({error:o.error||"The selected file is invalid. Please choose a valid OpenAPI specification file.",errorType:"file_upload"}),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{file:n}));return}let l=await n.text();if(r){let e=function(e){let t,n={isValid:!1,details:{contentLength:e.length}};if(!e||""===e.trim())return n.error="The file appears to be empty. Please upload a file containing a valid OpenAPI specification.",n;if(e.length<10)return n.error="File content is too short to be a valid OpenAPI specification. Please ensure your file contains a complete API definition.",n;if(e.length>0x4600000)return n.error=`File content is too large. Maximum size is ${70}MB.`,n;let r=!1;try{t=JSON.parse(e),r=!0}catch(t){if(!e.includes("openapi")&&!e.includes("swagger"))return n.error='This file does not appear to be an OpenAPI specification. Please ensure your file is a valid JSON or YAML document containing "openapi" or "swagger" version fields.',n}let i=e.includes("openapi:")||e.includes('"openapi"'),o=e.includes("swagger:")||e.includes('"swagger"');if(!i&&!o)return n.error='Missing required OpenAPI version field. Your specification must include either "openapi": "3.x.x" for OpenAPI 3.x or "swagger": "2.0" for Swagger 2.0.',n;if(!(e.includes("paths:")||e.includes('"paths"')))return n.error='Missing required "paths" section. Your OpenAPI specification must include a "paths" object that defines your API endpoints and operations.',n;if(r&&t&&"object"==typeof t){let e=function(e){let t={isValid:!1,details:{}};if(Array.isArray(e))return t.error="OpenAPI specification must be an object, not an array.",t;
95let n="openapi"in e&&"string"==typeof e.openapi,r="swagger"in e&&"string"==typeof e.swagger;if(!n&&!r)return t.error='Missing required version field. Your specification must include either "openapi" (for 3.x) or "swagger" (for 2.x) at the root level.',t;if(n){let n=e.openapi;3>parseInt(n.split(".")[0])&&(t.warning=`OpenAPI ${n} detected. We recommend using OpenAPI 3.0+ for best results.`),t.details.openApiVersion=n}else if(r){let n=e.swagger;t.details.openApiVersion=n,t.warning=`Swagger ${n} detected. Consider upgrading to OpenAPI 3.0+ for better compatibility.`}if(!e.info)return t.error='Missing required "info" section. Your specification must include an "info" object.',t;if("object"!=typeof e.info||null===e.info)return t.error='The "info" field must be an object.',t;let i=e.info;if(!i.title)return t.error='Missing required "info.title" field. Your specification must include a title for your API.',t;if("string"!=typeof i.title||""===i.title.trim())return t.error='The "info.title" field must be a non-empty string.',t;if(!i.version)return t.error='Missing required "info.version" field. Your specification must include a version number.',t;if("string"!=typeof i.version||""===i.version.trim())return t.error='The "info.version" field must be a non-empty string.',t;if(!e.paths)return t.error='Missing required "paths" section. Your specification must include a "paths" object that defines your API endpoints.',t;if("object"!=typeof e.paths||null===e.paths)return t.error='The "paths" field must be an object.',t;let o=Object.keys(e.paths).length;if(t.details.endpointCount=o,0===o)return t.error='No API endpoints found in the "paths" section. Your specification must define at least one endpoint.',t;if(o>1e3&&(t.warning=`Large API detected with ${o} endpoints. Processing may take longer.`),e.servers){if(!Array.isArray(e.servers))return t.error='The "servers" field must be an array.',t;for(let n=0;n<e.servers.length;n++){let r=e.servers[n];if("object"!=typeof r||null===r)return t.error=`Server at index ${n} must be an object.`,t;if(!r.url)return t.error=`Server at index ${n} is missing required "url" field.`,t;if("string"!=typeof r.url)return t.error=`Server at index ${n} has invalid "url" field (must be a string).`,t;let i=r.url;if(!(i.startsWith("http://")||i.startsWith("https://")||i.startsWith("/")||i.includes("{")))return t.error=`Server at index ${n} has invalid URL "${i}". Server URLs must be absolute (http:// or https://), relative (starting with /), or use server variables.`,t}}return t.isValid=!0,t}(t);if(!e.isValid)return n.error=e.error,n;n.details=(0,s.__spreadValues)((0,s.__spreadValues)({},n.details),e.details)}for(let t of[/<script/i,/javascript:\s*(alert|void|window\.|document\.|location\.)/i,/data:text\/html/i,/eval\(/i])if(t.test(e))return n.error="File contains potentially unsafe content. Please ensure you are uploading a valid OpenAPI specification.",n;return n.isValid=!0,n}(l);if(!e.isValid){f({error:e.error||"The OpenAPI specification contains validation errors. Please fix the issues and try again.",errorType:"openapi_invalid"}),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{file:n}));return}}i("processing"),a({status:"validating",progress:0,currentPhase:"Validating OpenAPI specification..."});let u=iW(e=>{a(e)},e=>{var n;let{report:r,token:o}=e;c(r),g(o),a({status:"completed",progress:100,currentPhase:"Analysis complete!"}),i("results"),null==(n=t.onAnalysisComplete)||n.call(t,r)},e=>{var r;f(e),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{file:n})),null==(r=t.onError)||r.call(t,e.error)},l,void 0,n.name,e.analyzeEndpoint,x,v,y);d(()=>u)}else if(e.useMockData)setTimeout(()=>{i("processing"),a({status:"validating",progress:0,currentPhase:"Validating OpenAPI specification...",file:n});let r=iW(e=>{a(e)},e=>{var n;c(e.report),a({status:"completed",progress:100,currentPhase:"Analysis complete!"}),i("results"),null==(n=t.onAnalysisComplete)||n.call(t,e.report)},e=>{var n;f(e),i("validation-error"),null==(n=t.onError)||n.call(t,e.error)},void 0,void 0,n.name,e.analyzeEndpoint,x,v,y);d(()=>r)},1e3);else{let r=await n.text();
95i("processing"),a({status:"validating",progress:0,currentPhase:"Validating OpenAPI specification..."});let o=iW(e=>{a(e)},e=>{var n;let{report:r,token:o}=e;c(r),g(o),a({status:"completed",progress:100,currentPhase:"Analysis complete!"}),i("results"),null==(n=t.onAnalysisComplete)||n.call(t,r)},e=>{var n;f(e),i("validation-error"),null==(n=t.onError)||n.call(t,e.error)},r,void 0,n.name,e.analyzeEndpoint,x,v,y);d(()=>o)}}catch(e){a({status:"error",progress:0,currentPhase:"Upload failed. Please try again.",error:"Failed to read file"}),null==(r=t.onError)||r.call(t,"Failed to read file")}},[e,t,w]),S=(0,m.useCallback)(async n=>{if(w(),!n.trim()){f({error:"Please enter a valid URL pointing to your OpenAPI specification.",errorType:"url_invalid"}),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{url:n}));return}if(e.useMockData)return void setTimeout(()=>{i("processing"),a({status:"validating",progress:0,currentPhase:"Validating OpenAPI specification..."});let r=iW(e=>{a(e)},e=>{var n;c(e.report),a({status:"completed",progress:100,currentPhase:"Analysis complete!"}),i("results"),null==(n=t.onAnalysisComplete)||n.call(t,e.report)},e=>{var r;f(e),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{url:n})),null==(r=t.onError)||r.call(t,e.error)},void 0,n,n,e.analyzeEndpoint,x,v,y);d(()=>r)},1e3);i("processing"),a({status:"validating",progress:0,currentPhase:"Validating OpenAPI specification..."});let r=iW(e=>{a(e)},e=>{var n;let{report:r,token:o}=e;c(r),g(o),a({status:"completed",progress:100,currentPhase:"Analysis complete!"}),i("results"),null==(n=t.onAnalysisComplete)||n.call(t,r)},e=>{var r;f(e),i("validation-error"),a(e=>(0,s.__spreadProps)((0,s.__spreadValues)({},e),{url:n})),null==(r=t.onError)||r.call(t,e.error)},void 0,n,n,e.analyzeEndpoint,x,v,y);d(()=>r)},[e,t]),E=(0,m.useCallback)(()=>{f(null),o.file?j(o.file):o.url&&S(o.url),b.current=!1},[o.file,o.url,j,S]),N=(0,m.useCallback)(()=>{var e;u&&(u(),d(null)),i("upload"),a({status:"idle",progress:0,currentPhase:""}),c(null),f(null),g(null),b.current=!1,k.current=!1,null==(e=t.onStartNew)||e.call(t)},[u,t]);return(0,m.useEffect)(()=>()=>{u&&u()},[u]),{appState:r,uploadState:o,report:l,validationError:p,transferToken:h,handleFileUpload:j,handleUrlSubmit:S,resetToUpload:N,clearError:E}}function iq({heading:e="How it works",content:t="AI ready APIs are essential. The Scorecard evaluates your APIs across six dimensions of quality, security, and semantics, identifies what needs improvement, and gives you a clear roadmap for building safer, more interpretable, agent ready APIs.",eyebrow:n="HOW IT WORKS",videoUrl:r="https://www.youtube.com/embed/YUeMzdZgsGU",videoTitle:i="API Scoring Demo",backgroundPattern:o="/landing-page/Homepage/3 - How it works section/bg-pattern.svg"}){return(0,p.jsxs)("section",{className:"relative py-[60px] px-4 sm:px-6 lg:px-[109px] flex flex-col items-center gap-[60px] bg-background",children:[(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none z-0",children:(0,p.jsx)("div",{className:"absolute inset-0 w-full h-full bg-cover bg-center opacity-60",style:{backgroundImage:`url('${o}')`}})}),(0,p.jsxs)("div",{className:"relative z-10 max-w-5xl mx-auto w-full",children:[(0,p.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center mb-12 max-w-4xl mx-auto",children:[(0,p.jsx)("span",{className:"text-[14px] font-bold leading-[26px] tracking-[1px] uppercase text-primary m-0",children:n}),(0,p.jsx)("h2",{className:"text-[26px] lg:text-[36px] font-bold leading-[34px] lg:leading-[42px] tracking-[0.72px] text-foreground m-0",children:e}),(0,p.jsx)("p",{className:"text-[16px] font-normal leading-[26px] text-foreground-lighter m-0 max-w-[670px] text-left md:text-center",children:t})]}),r&&(0,p.jsx)("div",{className:"relative rounded-[30px] overflow-hidden shadow-2xl aspect-video bg-black",children:(0,p.jsx)("iframe",{className:"absolute inset-0 w-full h-full",src:r,title:i,frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0})})]})]})}var iK="/dimension-icons",iY=[{icon:`${iK}
95/icons--compliance.svg`,title:"Foundational Compliance",description:"Evaluates whether an API is structurally valid, standards-conformant, and parseable by modern tooling."},{icon:`${iK}/icons--developer-experience.svg`,title:"Developer Experience & Jentic Compatibility",description:"Assesses clarity, documentation quality, example coverage, and compatibility with Developer Tooling."},{icon:`${iK}/icons--ai-readiness.svg`,title:"AI-Readiness & Agent Experience",description:"Evaluates whether an API gives enough context for AI systems to understand its intent, constraints, and expected behaviours."},{icon:`${iK}/icons--agent-usability.svg`,title:"Agent Usability",description:"Measures orchestration safety and agent ergonomics."},{icon:`${iK}/icons--security.svg`,title:"Security & Governance",description:"Trust, risk posture, exposure and safety."},{icon:`${iK}/icons--AI-discoverability.svg`,title:"AI Discoverability",description:"Evaluates how easily AI systems can discover and understand the API"}];function iJ({icon:e,title:t,description:n}){return(0,p.jsxs)("div",{className:"relative rounded-[20px] bg-primary-scale-700/40 border border-primary-scale-500/30 p-6 sm:p-8",children:[(0,p.jsx)("div",{className:"inline-flex items-center justify-start w-[80px] h-[80px] mb-4",children:(0,p.jsx)(T.default,{src:e,alt:`${t} icon`,width:80,height:80,className:"object-contain"})}),(0,p.jsx)("h3",{className:"text-[20px] lg:text-[24px] font-bold mb-3 text-foreground",children:t}),(0,p.jsx)("p",{className:"text-[14px] lg:text-[16px] text-foreground-lighter leading-relaxed",children:n})]})}function iX({icon:e,title:t,description:n}){return(0,p.jsx)("div",{className:"relative rounded-[12px] backdrop-blur-[2px] border border-[rgba(104,146,150,0.6)] p-[24px] bg-[linear-gradient(158deg,rgba(104,146,150,0.15)_6.5%,rgba(48,82,86,0.25)_93.8%)]",children:(0,p.jsxs)("div",{className:"flex gap-[16px] items-start w-full",children:[(0,p.jsx)("div",{className:"shrink-0 w-[50px] h-[50px] flex items-center justify-center",children:(0,p.jsx)(T.default,{src:e,alt:`${t} icon`,width:50,height:50,className:"object-contain"})}),(0,p.jsxs)("div",{className:"flex flex-col gap-[8px] min-w-0 flex-1",children:[(0,p.jsx)("h3",{className:"text-[18px] font-bold leading-[24px] tracking-[0.36px] text-white m-0",children:t}),(0,p.jsx)("p",{className:"text-[14px] font-normal leading-[22px] text-[#f3f6ff] m-0",children:n})]})]})})}function iZ({heading:e="The six dimensions that determine your score",description:t="Your grade reflects how your APIs perform across our six evaluation dimensions. These pillars reveal the strengths, risks, and gaps in your AI foundation. Our team of experts can help you understand exactly how to improve them.",eyebrow:n="SCORING DIMENSIONS",dimensions:r=iY,variant:i="default"}){let o="compact"===i?iX:iJ;return(0,p.jsx)("section",{className:"w-full py-[60px] px-4 sm:px-6 lg:px-[109px] bg-[linear-gradient(180deg,#0E1A1D_0%,#193238_100%)]",children:(0,p.jsxs)("div",{className:"max-w-7xl mx-auto",children:[(0,p.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center mb-12 max-w-4xl mx-auto",children:[(0,p.jsx)("span",{className:"text-[14px] font-bold leading-[26px] tracking-[1px] uppercase text-primary m-0",children:n}),(0,p.jsx)("h2",{className:"text-[26px] lg:text-[36px] font-bold leading-[34px] lg:leading-[42px] tracking-[0.72px] text-foreground m-0",children:e}),(0,p.jsx)("p",{className:"text-[16px] font-normal leading-[26px] text-foreground-lighter m-0 max-w-[670px] text-left md:text-center",children:t})]}),(0,p.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 lg:gap-8",children:r.map((e,t)=>(0,p.jsx)(o,(0,s.__spreadValues)({},e),t))})]})})}function iQ({eyebrow:e,heading:t="Unlock",headingHighlight:n="AI Transformation",headingSuffix:r="With Confidence",description:i="Check your AI Readiness using our scorecard and pinpoint the issues preventing your AI initiatives from scaling.",onFileUpload:o,onUrlSubmit:s,isUploading:a,showTermsAgreement:l=!1,uploadInterfaceTitle:c,uploadInterfaceTitleHighlight:u,uploadInterfaceSubtitle:d,compactHeight:f=!1,className:h,heroCta:m}
95){let g=[t,n,r].filter(Boolean).join(" "),x=!!(e||g||i);return(0,p.jsxs)("section",{className:`relative w-full min-h-[max(700px,80dvh)] overflow-hidden rounded-b-[60px] z-[2] -mt-[104px] pt-[104px] box-border bg-[hsl(var(--lp-section-bg))]${h?` ${h}`:""}`,children:[(0,p.jsx)("div",{className:"absolute inset-0"}),(0,p.jsx)("div",{className:"relative z-10 w-full px-4 sm:px-6 lg:px-[109px] pt-12 pb-12",children:(0,p.jsxs)("div",{className:x?"grid grid-cols-1 lg:grid-cols-[2fr_3fr] gap-8 lg:gap-10 items-start max-w-7xl mx-auto":"flex justify-center max-w-7xl mx-auto",children:[x&&(0,p.jsxs)("div",{className:"flex flex-col items-center text-center md:items-start md:text-left pt-[60px]",children:[e&&(0,p.jsx)("p",{className:"text-[14px] font-bold leading-[20px] tracking-[1px] uppercase text-primary mb-4 m-0",children:e}),(0,p.jsx)("h1",{className:"text-[36px] sm:text-[40px] lg:text-[48px] font-bold leading-[44px] sm:leading-[48px] lg:leading-[56px] tracking-[0.96px] text-white mb-4 text-shadow-[0px_1px_10px_rgba(0,0,0,0.4)]",children:g}),(0,p.jsx)("p",{className:"block max-w-[486px] text-[16px] lg:text-[18px] font-semibold leading-[26px] lg:leading-[28px] text-foreground-lighter mb-0 text-left",children:i}),m&&(0,p.jsx)("div",{className:"w-full md:w-auto mt-5 flex justify-start",children:m})]}),(0,p.jsx)("div",{className:"w-full",children:(0,p.jsx)("div",{className:x?"w-full max-w-2xl mx-auto lg:mx-0":"w-full max-w-2xl mx-auto",id:"upload",children:(0,p.jsx)(rh,{onFileUpload:o,onUrlSubmit:s,isUploading:a,showTermsAgreement:l,title:c,titleHighlight:u,subtitle:d,compactHeight:f})})})]})})]})}function i0({apiEndpoint:e="/api/scorecard-preview",text:t="Want to boost your AI Readiness?",description:n="Let our experts guide you.",buttonText:r="Get in touch",loadingText:i="Letting our experts know...",successText:o="Sent! We'll be in touch soon",errorText:s="Error",onSuccess:a,onError:l,userName:c,userEmail:u,companyName:d}){let[f,h]=(0,m.useState)("idle"),[x,v]=(0,m.useState)([]),y=async()=>{try{if(!(await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fullName:c,email:u,companyName:d||"",source:"scorecard-get-in-touch",consentContact:!0,newsletter:!1}),signal:AbortSignal.timeout(15e3)})).ok)throw Error("Failed to submit");h("success"),null==a||a()}catch(e){h("error"),null==l||l(e)}},b=(()=>{switch(f){case"loading":return{text:i,icon:null};case"success":return{text:o,icon:(0,p.jsx)(g.Check,{className:"h-5 w-5"})};case"error":return{text:s,icon:(0,p.jsx)(tj,{className:"h-5 w-5"})};default:return{text:r,icon:(0,p.jsx)(th,{className:"h-5 w-5"})}}})();return(0,p.jsx)("section",{className:"py-16 sm:py-20 px-4 sm:px-6 lg:px-8",children:(0,p.jsx)(A.motion.div,{className:"max-w-6xl mx-auto rounded-2xl overflow-hidden bg-gradient-to-r from-primary-scale-500 via-primary-scale-500/90 to-accent-green/30 shadow-xl border border-accent-green/30",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6,ease:"easeOut"},children:(0,p.jsxs)("div",{className:"flex flex-col lg:flex-row items-center justify-between gap-6 p-8 sm:p-12",children:[(0,p.jsxs)(A.motion.div,{className:"flex-1 space-y-2",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.2},children:[(0,p.jsx)("h3",{className:"text-2xl sm:text-3xl font-bold text-foreground",children:t}),(0,p.jsx)("p",{className:"text-base sm:text-lg text-foreground-lighter",children:n})]}),(0,p.jsxs)(A.motion.div,{className:"flex-shrink-0 flex flex-col items-center gap-3",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.5,delay:.3},children:[(0,p.jsxs)("button",{onClick:()=>{if("loading"===f||"success"===f||"error"===f)return;let e=[];
95if(c&&c.trim()||e.push("Name"),u&&u.trim()||e.push("Email"),e.length>0){v(e),h("error");return}h("loading"),y()},disabled:"loading"===f||"success"===f||"error"===f,className:`relative overflow-hidden px-8 py-4 rounded-xl font-semibold text-lg transition-all duration-300 shadow-lg ${(()=>{switch(f){case"loading":return"bg-background/95 text-foreground cursor-wait";case"success":return"bg-accent-green/20 text-foreground border-2 border-accent-green";case"error":return"bg-card/50 text-foreground/50 border-2 border-border cursor-not-allowed";default:return"bg-background text-foreground hover:scale-105 hover:shadow-2xl active:scale-95 cursor-pointer"}})()}`,children:[(0,p.jsx)(L.AnimatePresence,{children:"loading"===f&&(0,p.jsx)(p.Fragment,{children:[0,1,2].map(e=>(0,p.jsx)(A.motion.div,{className:"absolute inset-0 rounded-xl",initial:{scale:0,opacity:.4},animate:{scale:2,opacity:0},exit:{opacity:0},transition:{duration:1.5,repeat:1/0,delay:.2*e,ease:"easeOut"},style:{background:"radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%)"}},e))})}),(0,p.jsx)("span",{className:"relative z-10 flex items-center gap-2",children:(0,p.jsx)(L.AnimatePresence,{mode:"wait",children:(0,p.jsxs)(A.motion.span,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},className:"flex items-center gap-2",children:[b.text,b.icon&&(0,p.jsx)(A.motion.span,{initial:{scale:0,rotate:-10},animate:{scale:1,rotate:0},transition:{type:"spring",damping:10,stiffness:200},children:b.icon})]},f)})})]}),(0,p.jsx)(L.AnimatePresence,{children:"error"===f&&(0,p.jsxs)(A.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.3},className:"text-foreground/90 flex flex-wrap items-center justify-center gap-1 text-sm",children:[x.length>0&&(0,p.jsxs)("span",{children:[x.join(", ")," not found, please"]}),(0,p.jsxs)(tR,{href:"https://jentic.com/scorecard#form",target:"_blank",className:"flex items-center gap-2 text-foreground/90 hover:text-foreground underline underline-offset-4 transition-colors text-sm font-medium",children:["Fill the form",(0,p.jsx)(M.ExternalLink,{className:"h-4 w-4"})]})]})})]})]})})})}function i1({heroProps:e,howItWorksProps:t,dimensionsProps:n,getInTouchProps:r,renderBelowHero:i,showHero:o=!0,showHowItWorks:a=!0,showDimensions:l=!0,showGetInTouch:c=!1}){return(0,p.jsx)(A.motion.div,{className:"min-h-screen bg-background relative w-full",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:(0,p.jsxs)("div",{className:"relative z-10 w-full",children:[o&&e&&(0,p.jsx)(iQ,(0,s.__spreadValues)({},e)),i,a&&(0,p.jsx)(iq,(0,s.__spreadValues)({},t)),l&&(0,p.jsx)(iZ,(0,s.__spreadValues)({},n)),c&&(0,p.jsx)(i0,(0,s.__spreadValues)({},r))]})},"landing")}function i2(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),(0,p.jsx)("path",{d:"M8 12h8"}),(0,p.jsx)("path",{d:"M8 16h8"}),(0,p.jsx)("path",{d:"M10 4v4h4"})]}))}function i5(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,p.jsx)("path",{d:"M12 19.5v-15m6 12v-9m-12 6v-3"})}))}function i4(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"}),(0,p.jsx)("path",{d:"M12 9a3 3 0 0 0-3 3c0 1.66 1.34 3 3 3s3-1.34 3-3a3 3 0 0 0-3-3Z"}),(0,p.jsx)("path",{d:"M12 15c-2.76 0-5 1.34-5 3v1h10v-1c0-1.66-2.24-3-5-3Z"})]}))}function i3(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"}),(0,p.jsx)("path",{d:"m16 8-8 8"}),(0,p.jsx)("path",{d:"M12 2v4"}),(0,p.jsx)("path",{d:"M12 18v4"}),(0,p.jsx)("path",{d:"M22 12h-4"}),(0,p.jsx)("path",{d:"M6 12H2"})]}))}function i6(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10"}),(0,p.jsx)("path",{d:"m16 12-4-4-4 4"}),(0,p.jsx)("path",{d:"M12 16V8"})]}))}function i8(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}),(0,p.jsx)("circle",{cx:"9",cy:"7",r:"4"}),(0,p.jsx)("path",{d:"M22 21v-2a4 4 0 0 0-3-3.87"}),(0,p.jsx)("path",{d:"M16 3.13a4 4 0 0 1 0 7.75"})]}))}function i7(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,p.jsx)("path",{d:"M4 20h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.93a2 2 0 0 1-1.66-.9l-.82-1.2A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13c0 1.1.9 2 2 2Z"})}))}function i9(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),(0,p.jsx)("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]}))}function oe(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5"}),(0,p.jsx)("path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"}),(0,p.jsx)("line",{x1:"17.5",y1:"6.5",x2:"17.51",y2:"6.5"})]}))}function ot(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),(0,p.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,p.jsx)("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),(0,p.jsx)("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),(0,p.jsx)("polyline",{points:"10 9 9 9 8 9"})]}))}function on(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2"}),(0,p.jsx)("path",{d:"M9 22v-4h6v4"}),(0,p.jsx)("path",{d:"M8 6h8"}),(0,p.jsx)("path",{d:"M8 10h8"}),(0,p.jsx)("path",{d:"M8 14h4"})]}))}function or(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),(0,p.jsx)("polyline",{points:"14 2 14 8 20 8"}),(0,p.jsx)("line",{x1:"9",y1:"12",x2:"15",y2:"12"}),(0,p.jsx)("line",{x1:"9",y1:"15",x2:"15",y2:"15"}),(0,p.jsx)("line",{x1:"9",y1:"18",x2:"13",y2:"18"})]}))}function oi(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z"}),(0,p.jsx)("rect",{x:"2",y:"9",width:"4",height:"12"}),(0,p.jsx)("circle",{cx:"4",cy:"4",r:"2"})]}))}function oo(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20Z"}),(0,p.jsx)("path",{d:"M12 16v-4"}),(0,p.jsx)("path",{d:"M12 8h.01"}),(0,p.jsx)("path",{d:"M18 10h-3"}),(0,p.jsx)("path",{d:"M9 10H6"})]}))}function os(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M22 12h-6l-2 3h-4l-2-3H2"}),(0,p.jsx)("path",{d:"M5 12v6c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2v-6"}),(0,p.jsx)("path",{d:"M16 5h-2a3 3 0 0 0-6 0H6a2 2 0 0 0-2 2v2h20V7a2 2 0 0 0-2-2Z"})]}))}function oa(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M18.5 12C18.5 7.58 14.92 4 10.5 4S2.5 7.58 2.5 12s3.58 8 8 8c.28 0 .55-.02.83-.05"}),(0,p.jsx)("path",{d:"M14.5 12C14.5 10.07 16.07 8.5 18 8.5s3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5"}),(0,p.jsx)("path",{d:"M14.5 12H21.5"})]}))}function ol(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"}),(0,p.jsx)("path",{d:"m3.3 7 8.7 5 8.7-5"}),(0,p.jsx)("path",{d:"M12 22V12"})]}))}function oc(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M4 2v20l4-4 4 4 4-4 4 4V2H4z"}),(0,p.jsx)("line",{x1:"8",y1:"8",x2:"16",y2:"8"}),(0,p.jsx)("line",{x1:"8",y1:"12",x2:"16",y2:"12"}),(0,p.jsx)("line",{x1:"8",y1:"16",x2:"12",y2:"16"})]}))}function ou(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"}),(0,p.jsx)("path",{d:"m10.27 12.9.27 3.81 3.81.27"}),(0,p.jsx)("path",{d:"M14.34 12.63 17.5 15"})]}))}function od(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,p.jsx)("path",{d:"M8 14s1.5 2 4 2 4-2 4-2"}),(0,p.jsx)("line",{x1:"9",y1:"9",x2:"9.01",y2:"9"}),(0,p.jsx)("line",{x1:"15",y1:"9",x2:"15.01",y2:"9"})]}))}function op(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}),(0,p.jsx)("path",{d:"M8 12h8"}),(0,p.jsx)("path",{d:"M12 8v8"})]}))}function of(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M18 6 7 17l-5-5"}),(0,p.jsx)("path",{d:"m22 10-7.5 7.5L9 12"})]}))}function oh(e){return(0,p.jsxs)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:[(0,p.jsx)("path",{d:"M12 20V10"}),(0,p.jsx)("path",{d:"M18 20V4"}),(0,p.jsx)("path",{d:"M6 20V16"})]}))}function om(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},e),{children:(0,p.jsx)("path",{d:"M22 4s-.7 2.1-2 3.4c1.6 1.4 2.8 3.2 3 5.2-1.4 1-2.8.8-4 .2-1.5 1.5-3.5 2.5-5.5 2.5-3.3 0-6-2.2-6-5s2.7-5 6-5c1.4 0 2.6.5 3.5 1.1 1.2-1.2 2.5-2.1 4-2.1h-1z"})}))}var og=[{id:"1",category:"Document processing",title:"Process PDF Invoices to Spreadsheet",description:"Extract and process PDF invoices from Google Drive into structured data, creating separate worksheets in a Google Sheet for...",icon:ot,company:"Jentic"},{id:"3",category:"Document processing",title:"Download and Convert OneDrive Files to PDF",description:"Convert multiple OneDrive files to PDF format concurrently, returning downloadable PDF file references for efficient batch...",icon:oa},{id:"dp-3",category:"Document processing",title:"Summarize Legal Documents",description:"Upload a lengthy legal document (e.g., terms of service, contract) and receive a concise summary of the key points and clauses.",icon:or},{id:"dp-4",category:"Document processing",title:"Extract Data from Scanned Receipts",description:"Upload images of scanned receipts to automatically extract vendor name, date, total amount, and line items into a spreadsheet.",icon:oc},{id:"2",category:"Data enrichment",title:"LinkedIn Profile Finder",description:"Search LinkedIn for professionals by role and company, and save their profiles to a Google Sheet.",icon:oi},{id:"de-2",category:"Data enrichment",title:"Find Company Tech Stack",description:"Enter a company's website URL to i
95dentify the technologies and software they use, from analytics to marketing automation.",icon:oh},{id:"de-3",category:"Data enrichment",title:"Enrich CRM Contacts with Social Profiles",description:"Upload a list of contacts from your CRM and find their corresponding LinkedIn and Twitter profiles to enrich your data.",icon:i8},{id:"de-4",category:"Data enrichment",title:"Scrape Product Reviews from E-commerce Sites",description:"Provide a product URL from a major e-commerce site and scrape all customer reviews, saving them to a structured spreadsheet.",icon:ou},{id:"4",category:"Research & analysis",title:"Extract Funding Data from Newsletters (e.g., StrictlyVC)",description:"Extract funding and investor data from StrictlyVC emails and save it to a Google Sheet. Process email content for company...",icon:i9,company:"StrictlyVC"},{id:"ra-2",category:"Research & analysis",title:"Monitor Competitor Website Changes",description:"Enter a list of competitor URLs and receive daily notifications of any significant content or structural changes on their websites.",icon:i3,company:"Acme Corp"},{id:"ra-3",category:"Research & analysis",title:"Analyze Customer Feedback Sentiment",description:"Paste a block of customer feedback text (e.g., from surveys or reviews) to analyze the overall sentiment (positive, neutral, negative).",icon:od,company:"Zendesk"},{id:"ra-4",category:"Research & analysis",title:"Scrape Job Postings from a Company's Career Page",description:"Provide a URL to a company's career page to scrape all open job positions, titles, and locations into a spreadsheet.",icon:on},{id:"cc-1",category:"Content creation",title:"Generate Blog Post Ideas from Keywords",description:"Input a list of keywords and automatically generate a list of engaging blog post titles and outlines using an AI model.",icon:i4},{id:"cc-2",category:"Content creation",title:"Create Social Media Captions from an Article",description:"Paste an article URL and generate a set of compelling social media captions tailored for different platforms like Twitter, LinkedIn, and Instagram.",icon:of,company:"Buffer"},{id:"cc-3",category:"Content creation",title:"Draft a Newsletter from Recent Blog Posts",description:"Automatically compile a weekly newsletter by summarizing your latest blog posts, including headlines, summaries, and links.",icon:oo},{id:"cc-4",category:"Content creation",title:"Generate Product Descriptions for E-commerce",description:"Provide product features and target audience to generate persuasive and SEO-friendly product descriptions for your online store.",icon:ol},{id:"p-1",category:"Productivity",title:"Transcribe Audio Meetings to Text",description:"Upload an audio file from a meeting and get a full text transcription, with speaker identification and timestamps.",icon:i5},{id:"p-2",category:"Productivity",title:"Organize Google Drive Files",description:"Automatically sort files in a specified Google Drive folder into subfolders based on file type, date, or keywords in the filename.",icon:i7},{id:"p-3",category:"Productivity",title:"Create Meeting Agendas from Bullet Points",description:"Input a list of topics as bullet points and generate a structured meeting agenda with timings, discussion points, and action items.",icon:i2},{id:"p-4",category:"Productivity",title:"Track Project Mentions on Slack",description:"Monitor specific Slack channels for mentions of a project name or keyword and log them in a Google Sheet with context and a link.",icon:op,company:"Slack"},{id:"sm-1",category:"Social media",title:"Schedule LinkedIn Posts from a Google Sheet",description:"Populate a Google Sheet with content and desired posting times, and automatically schedule them to be posted on your LinkedIn profile.",icon:os},{id:"sm-2",category:"Social media",title:"Find Relevant Twitter Influencers",description:"Enter a topic or keyword to find a list of relevant Twitter influencers, including their follower count and engagement rates.",icon:om},{id:"sm-3",category:"Social media",title:"Generate a Report of Instagram Hashtag Performance",description:"Track a set of Instagram hashtags and generate a report on their usage, top posts, and engagement over time.",icon:oe},{id:"sm-4",category:"Social media",title:"Cross-post Content to Multiple Platforms",description:"Create a single post and have it automatically adapted and published across Twitter, LinkedIn, and Facebook with platform-specific formatting.",icon:i6}],ox={blog:{header:{authorFallback:"Author",teamFallback:"Jentic Team",reviewerFallback:"Reviewer",reviewedBy:"Reviewed by",authorImageAlt:"Author image",meta:{estimatedReadTime:"Estimated read time: <0> min",lastUpdated:"Last updated: <0>"},toolbar:{searchPlaceholder:"Search blog"},backToBlog:"← Back to Blog"},metadata:{title:"Jentic Blog | Insights & Updates",description:"Explore the latest articles, insights, and updates from the Jentic team on AI, APIs, and agentic technology."},noPosts:"No blog posts found. Please check back later!",noSearchResults:"Nothing here! Not even a tumbleweed... Try another search.",hero:{title:"Blog"},previousPost:"Previous Post",nextPost:"Next Post",shareButtons:{shareLabel:"Share this post",twitterAria:"Share on Twitter",linkedinAria:"Share on LinkedIn",blueskyAria:"Share on BlueSky",hackernewsAria:"Share on Hacker News"},toc:{tocLabel:"On this page",noSections:"No sections"},error:"There was an error loading blog posts. Please try again later.",metaTitleSuffix:" | Jentic Blog",notFoundTitle:"Blog Post Not Found | Jentic Blog",notFoundDescription:"The requested blog post could not be found.",categories:{all:"All Posts",product:"Product",company:"Company",postgres:"Postgres",developers:"Developers",engineering:"Engineering","launch-week":"Launch Week"}}
95,home:{metadata:{title:"Jentic",description:"Jentic is building the agentic knowledge layer - One integration, thousands of APIs and workflows."},hero:{banner:"Jentic raises $4.5M to build agentic knowledge layer",title:{line1:"Build <0>universal agents</0>"},subtitle:"Automate complex operations with natural language",secondaryCtaButton:"See demo",ctaButton:"Start building",ctaButtonUrl:"https://app.jentic.com/",secondaryCtaButtonUrl:"/watch-demo"},manifesto:{title:"Our manifesto",subtitle:"Open Agentic Knowledge (OAK) repository",content:"Agents depend on APIs as much as AI. Chatbots chat, but agents act, and they act through APIs: checking calendars, booking flights, analyzing data, reconciling accounts, and controlling smart buildings. To realize this potential, we must build a common knowledge foundation that empowers AI to interact with the world's APIs reliably and without artificial barriers or unnecessary intermediaries.",readMore:"Read our manifesto"},features:{open:{title:"Open",description:"The Open Agentic Knowledge (OAK) repository is our open-source & open-standard AI-generated knowledge layer, with thousands of APIs and workflows optimized for agentic use."},secure:{title:"Secure",description:"No more high-stakes credentials in your agents, prompts and client code. Centralized auth, permissions and insights for your agents and APIs."},reliable:{title:"Reliable",description:"Use Jentic in your IDE or custom agent to get on-demand API and workflow knowledge, when it counts the most. Precise knowledge makes enterprise-ready agents that get it right the first time."}},openSection:{title:"<0>Open</0>
95 Agentic Knowledge",description:"The <0:https://github.com/jentic/oak>open-source</0> catalogue of API actions for AI agents — plan smarter, execute flawlessly.",communalApi:{title:"Standards First",body:"Built on OpenAPI & Arazzo for universal, future-proof interoperability.",manifestoLink:"Our manifesto"},apiConnectionsText:"+1,400 API connections",noGatekeeping:{title:"No Gatekeepers",body:"Vendor-neutral and community-driven—anyone can contribute or use OAK."},noHardcodedIntegrations:{title:"Zero Hard-Coding",body:"Add an API once; agents inherit the skill automatically."},ctaButton:"Give the power of OAK to every agent"},secureSection:{title:"Seamlessly <0>secure</0>",ctaButton:"See how Jentic works",altFeatureGraphic:"Feature graphic",cards:{authentication:{title:"Seamless authentication",description:"No more high-stakes credentials in your agents, prompts and client code.",detailText:"Coming Soon."},permissions:{title:"Fine-grained permissions",description:"Centralized policies keep agents within governed boundaries."},flexibility:{title:"Essential insights",description:"Get a real-time map of every agent, API, and cost."},altFeatureGraphic:"Abstract representation of security feature"},buttonText:"Learn more about Jentic enterprise"},reliableSection:{title:"Scalably <0>Reliable</0>",buttonText:"Learn About Jentic Reliability",altFeatureShowcase:"Abstract representation of Jentic reliability features",cards:{reliableByDesign:{title:"Reliable by Design",description:"JITT design loads tools on-demand, reducing errors and clutter."},agenticPlansSucceed:{title:"Agentic Plans that Succeed",description:"Policies, logs, and permissions give agents trusted paths."},declarativeWorkflows:{title:"Declarative Workflows That Always Land",description:"Deterministic workflows guarantee outcomes across any API."}}},enterpriseSection:{title:"<0>Enterprise-Grade</0> Agentic Architecture",buttonText:"Level up your agents with Jentic",altFeatureShowcase:"Abstract representation of Jentic AI feature",cards:{enhancingAgents:{title:"Give agents superpowers, wherever they live.",description:"Plug Jentic into prebuilt agents (Cursor, Windsurf, Claude), agent platforms (Amazon, Microsoft or Google), or your own bespoke agents. Gift unlimited API and workflow expertise to your agents with one integration."},correctChoiceFirstTime:{title:"Open by Design, Future-Proof in Practice",description:"Built on established open standards like OpenAPI, Arazzo, and MCP — ensuring maximum interoperability and long-term compatibility. Jentic fits into your architecture — not the other way around. Deploy it in the cloud or run it on-prem for complete control.",detailText:"Self-hosted version coming soon."},chatWithYourData:{title:"Unified control of your agentic fleet",description:"Bring your own auth keys, private APIs and microservice architectures, establishing a unified control plane for your growing agentic fleet. Accelerate AI adoption with seamless access into your own data infrastructure, while enforcing enterprise-grade security, access control, and compliance.",detailText:"Coming Soon!"}}},ctaSection:{title:"<0>Ready</0> to get started?",primaryButtonText:"Build an agent",secondaryButtonText:"Bring your agent"},educationSection:{title:"See Jentic in Action",tabs:[{id:"connect",title:"What is an Agent?",videoUrl:"/videos/connect.mp4"},{id:"build",title:"How to get started",videoUrl:"/videos/build.mp4"},{id:"secure",title:"Build an agent in 20 mins",videoUrl:"/videos/secure.mp4"}]},testimonials:{title:"<0>Join</0> the community",githubButton:"GitHub Discussion",discordButton:"Discord",list:[{text:"Jentic gave our agents instant access to 1,400+ APIs—no more patch-work SDKs. The OAK manifesto proves it: **agents run on APIs**, not manual glue code.",author:"Priya Singh",handle:"@priyas",avatar:"/randomUsers/52.jpg"},{text:"We scrapped three integration layers overnight. OAK’s standards-based approach (OpenAPI + Arazzo) means **zero vendor lock-in** and crystal-clear tooling.",author:"Ethan Clark",handle:"@ethanclark",avatar:"/randomUsers/12.jpg"},{text:"Jentic’s Just-In-Time-Tooling keeps our agents’ context clean and their calls deterministic—**reliability by design**, exactly as promised.",author:"Yara Gómez",handle:"@yarag",avatar:"/randomUsers/33.jpg"}
95,{text:"**“Documentation is essential infrastructure.”** With OAK our LLMs self-discover workflows in minutes; the open knowledge layer feels like auto-completed engineering.",author:"Marcus Lee",handle:"@marc_lee",avatar:"/randomUsers/45.jpg"},{text:"Centralized auth, fine-grained policies, and a **thriving open repo**—Jentic lets us ship agentic workflows faster than our sprint cycles.",author:"Sofia Russo",handle:"@sofiarusso",avatar:"/randomUsers/60.jpg"}]}},companyPage:{metadata:{title:"Jentic - Company",description:"Jentic is building the agentic knowledge layer - One integration, thousands of APIs and workflows"},hero:{heading:"API knowledge and infrastructure to power the agentic revolution",lead:"Agents are the future of software, and they run on APIs. Our mission is to connect them to each other and the world, openly, securely and reliably.",getInTouchButton:"Get in touch"},team:{subheading:"Meet the team",lead:"Experienced founders with decades of success in scaling technology companies, now uniting to build the future of AI integration and communication",paragraph:"Founded in late 2024, Jentic brings together an experienced team of tech entrepreneurs with a proven track record in building category-leading middleware. With decades of combined experience in scaling successful tech companies, our founding team combines deep technical expertise with exceptional business acumen. Our shared vision is to address the unique complexity, reliability, and security issues that arise when AI becomes highly connected, creating a foundation for the future of automation.",members:{seanBlanchfield:{name:"Sean Blanchfield",role:"Co-Founder & Chief Executive Officer",imgSrc:"/team/sean.png",linkUrl:"https://ie.linkedin.com/in/seanblanchfield"},dorothyCreaven:{name:"Dorothy Creaven",role:"Co-Founder & Chief Operating Officer",imgSrc:"/team/dorothy.png",linkUrl:"https://ie.linkedin.com/in/dorothycreaven"},michaelCordner:{name:"Michael Cordner",role:"Co-Founder & Chief Technology Officer",imgSrc:"/team/michael.png",linkUrl:"https://ie.linkedin.com/in/michaelcordner"}}},investors:{subheading:"Investors",lead:"We are fortunate to be backed by the best investors in the industry — both literal and metaphorical partners in crime.",remingtonSchwartzAlt:"Remington Schwartz logo",deccelAlt:"Deccel logo"}},header:{navLinks:[{label:"Docs",href:"https://docs.jentic.com/",target:"_blank"},{label:"Blog",href:"/blog"},{label:"Company",href:"/company"},{label:"Careers",href:"/careers"}]},footer:{copyright:"© {year} Jentic. All rights reserved.",sitemap:[{heading:"For Developers",links:[{label:"Docs",href:"https://docs.jentic.com/",target:"_blank"}
95,{label:"GitHub",href:"https://github.com/jentic/oak",target:"_blank"}]},{heading:"Company",links:[{label:"About",href:"/company"},{label:"Blog",href:"/blog"},{label:"Careers",href:"/careers"},{label:"Contact us",href:"/contact"}]}],socialLinks:[{href:"https://x.com/jenticai",ariaLabel:"Visit us on X"},{href:"https://www.linkedin.com/company/jentic",ariaLabel:"Visit us on LinkedIn"},{href:"https://bsky.app/profile/jentic.bsky.social",ariaLabel:"Visit us on Bluesky"},{href:"https://youtube.com/@JenticAI",ariaLabel:"Visit our YouTube channel"},{href:"https://discord.gg/TdbWXZsUSm",ariaLabel:"Join our Discord"}],sections:[{title:"Product",links:[{text:"Features",url:"/features"},{text:"Integrations",url:"/integrations"},{text:"Pricing",url:"/pricing"},{text:"Docs",url:"/docs"}]},{title:"Company",links:[{text:"About Us",url:"/about"},{text:"Blog",url:"/blog"},{text:"Careers",url:"/careers"},{text:"Contact",url:"/contact"}]},{title:"Legal",links:[{text:"Privacy Policy",url:"/privacy-policy"},{text:"Terms of Service",url:"/terms-of-service"}]}]},watchDemo:{metadata:{title:"Watch a Jentic Demo",description:"See Jentic in action: A walkthrough of our agentic knowledge layer and how it simplifies API integration for AI agents."},pageTitle:"Watch a Jentic Demo",pageSubtitle:"Discover How Jentic Empowers Your AI Agents",video:{titleAttribute:"Jentic Demo: The Agentic Knowledge Layer for Seamless API Integration",src:"https://www.youtube.com/embed/NNhWWZIDCC8",caption:{text:"This demo showcases Jentic's core capabilities. Have questions about integrating Jentic into your enterprise? Let's connect.",author:"- Sean Blanchfield, CEO and Co-Founder",buttonText:"Talk to us",buttonLink:"/contact",imageSrc:"/team/sean.png",imageAlt:"Sean Blanchfield, Jentic CEO and Co-Founder"}},learnMore:{title:"Dive Deeper into Jentic",item1:"Explore our <0>documentation</0> for comprehensive guides on Jentic's features and integration.",item1_link0_url:"https://docs.jentic.com/",item2:"Read our <0>manifesto</0> to understand the vision behind the Open Agentic Knowledge (OAK) repository.",item2_link0_url:"https://github.com/je
95ntic/oak/blob/main/MANIFESTO.md",item3:"See a live <0>example integration</0> and experience Jentic firsthand.",item3_link0_url:"https://youtu.be/NNhWWZIDCC8",item4:"Have questions? Our team is ready to <0>assist you</0>.",item4_link0_url:"/contact"},getStarted:{title:"Get Started with Jentic",text1:"Ready to empower your agents? <0>Install Jentic MCP</0> from our documentation and start developing.",text1_link0_url:"https://docs.jentic.com/",text2:"You can also <0>explore our GitHub</0> for community projects and contributions.",text2_link0_url:"https://github.com/jentic/oak"}},waitlistForm:{successTitle:"Thanks for signing up!",successMessage:"You're on the waitlist, we'll be sharing early access invites soon.",submitAnotherButton:"Submit another entry",nameLabel:"Name",jobTitleLabel:"Job Title",companyNameLabel:"Company Name",employeesLabel:"Number of Employees",selectEmployeesPlaceholder:"Select...",emailLabel:"Email",phoneLabel:"Phone Number (Optional)",aiAdoptionLabel:"Current Stage of AI Adoption",selectAiAdoptionPlaceholder:"Select...",aiAdoptionOption1:"Exploring AI options",aiAdoptionOption2:"Planning implementation",aiAdoptionOption3:"Initial implementation",aiAdoptionOption4:"Scaling AI solutions",aiAdoptionOption5:"Advanced AI integration",messageLabel:"Message (Optional)",messageCharacterCountIndicator:"Maximum %max% characters",errorSubmitFailed:"Failed to submit form. Please try again.",errorUnexpected:"An unexpected error occurred. Please try again later.",submitButton:"Send",submittingButton:"Submitting..."},careersPage:{metadata:{title:"Careers at Jentic",description:"Join Jentic to build the agentic knowledge layer"},hero:{title:"Work with us",lead:"We're building an AI-native company with a small, high-performing team where everyone is empowered by AI and shares both personal and financial ownership in our mission",talentCommunityButton:"Join the talent community",seePositionsButton:"See open positions"},openPositions:{title:"<0>Join</0> our team",noPositions:"No open positions at the moment. Check back later!",jobCard:{defaultEmploymentType:"Full-time",publishedOn:"Published on",viewDetailsButton:"View details"}}},contactPage:{metadata:{title:"Contact Us | Jentic",description:"Get in touch with the Jentic team. We are here to help you with your AI integration needs."},hero:{title:"<0>Talk</0> to us",leadLine1:"Curious to learn more?",leadLine2:"Speak to an expert",description:"Our team of AI experts is here to help you. Please fill out the below form to book a time with the team."}}},ov={metadata:{version:"0.1-beta",releaseDate:"2025-11-01",engine:{name:"Jentic API Scoring Engine",version:"b2025.10.19-commit9f7"},disclaimer:"Scores are indicative and opinion biased based on Jentic's view of what is important to deliver APIs with higher levels of interpretability for AI systems."},apiMetadata:{id:"example-api-v2",name:"OpenAI API",apiDescriptionVersion:"v2.3.1",specification:"openapi",specificationVersion:"3.1.0",sourceUrl:"https://api.exampleeeeeeeeeeeeeeeeeeeeeeeeeee.com/spec/openapi.yaml",vendor:{name:"OpenAI",domain:"https://openai.com",contact:{name:"OpenAI Engineering",email:"[email protected]"}},operationCount:219,schemaCount:7299,securitySchemeCount:1,securitySchemeTypes:["apiKey"],tagCount:33},summary:{scoringDate:"2025-10-24T11:24:33Z",score:50,level:"non-ready",grade:"C-",trend:"declined",scoreDeviation:{previous:55.2,current:50,delta:-5.2},dimensions:[{kind:"FC",name:"Foundational Compliance",intention:"Ensures API follows OpenAPI standards and best practices",scores:{current:40},grade:"D+"},{kind:"DXJ",name:"Developer Experience & Journey",intention:"Evaluates documentation quality and developer onboarding",scores:{current:52},grade:"C-"},{kind:"ARAX",name:"AI Readiness & Agent Experience",intention:"Evaluates how semantically interpretable and intent-rich the API is for AI agents",scores:{current:59},grade:"C-"},{kind:"AU",name:"Agent Usability",intention:"Measures orchestration safety and agent ergonomics",scores:{current:45},grade:void 0},{kind:"SEC",name:"Security",intention:"Assesses authentication, authorization, and security practices",scores:{current:48},grade:void 0},{kind:"AID",name:"AI Discoverability",intention:"Evaluates how easily AI systems can discover and understand the API",scores:{current:52},grade:void 0}]},details:[{name:"Foundational Quality",description:"Core API specification quality and standards compliance",score:40,dimensions:[{kind:"FC",name:"Foundational Compliance",intention:"Ensures API follows OpenAPI standards and best practices",score:40,scoreDeviation:{previous:45,current:40,delta:-5}
95,signals:[{kind:"validity_linting",name:"Validity & Linting",description:"Checks for specification validity and linting issues",score:45,scoreDeviation:{previous:50,current:45,delta:-5}},{kind:"completeness",name:"Completeness",description:"Measures documentation coverage and example availability",score:38,scoreDeviation:{previous:45,current:38,delta:-7}},{kind:"standards_compliance",name:"Standards Compliance",description:"Ensures adherence to OpenAPI and industry standards",score:37}]}]},{name:"Developer Experience",description:"Documentation quality, examples, and developer onboarding",score:55,dimensions:[{kind:"DXJ",name:"Developer Experience & Journey",intention:"Evaluates documentation quality and developer onboarding",score:52,scoreDeviation:{previous:55,current:52,delta:-3},signals:[{kind:"documentation_quality",name:"Documentation Quality",description:"Evaluates completeness and clarity of documentation",score:42},{kind:"example_coverage",name:"Example Coverage",description:"Measures availability of request/response examples",score:62,scoreDeviation:{previous:58,current:62,delta:4}}]}]},{name:"Security & Trust",description:"Authentication, authorization, and security best practices",score:48,dimensions:[{kind:"SEC",name:"Security",intention:"Assesses authentication, authorization, and security practices",score:48,scoreDeviation:{previous:52,current:48,delta:-4},signals:[{kind:"authentication",name:"Authentication",description:"Evaluates authentication scheme documentation",score:42},{kind:"authorization",name:"Authorization",description:"Evaluates authorization scope documentation",score:54}]}]},{name:"AI Readiness & Usability",description:"Evaluates interpretability, orchestration safety, and agent ergonomics",score:59,dimensions:[{kind:"ARAX",name:"AI Readiness & Agent Experience",intention:"Evaluates how semantically interpretable and intent-rich the API is for AI agents",score:59,scoreDeviation:{previous:65,current:59,delta:-6},signals:[{kind:"description_coverage",name:"Description Coverage",description:"Percentage of describable elements that have descriptions",score:58},{kind:"idempotency",name:"Idempotency Support",description:"Measures idempotency key usage for safe retries",score:55},{kind:"schema_precision",name:"Schema Precision",description:"Evaluates schema detail and type precision",score:64,scoreDeviation:{previous:68,current:64,delta:-4}}]},{kind:"AU",name:"Agent Usability",intention:"Measures orchestration safety and agent ergonomics",score:45,scoreDeviation:{previous:50,current:45,delta:-5},signals:[{kind:"error_handling",name:"Error Handling",description:"Evaluates error response standardization",score:42},{kind:"retry_safety",name:"Retry Safety",description:"Measures API safety for automatic retries",score:48}]}]},{name:"AI Discoverability",description:"How easily AI systems can discover and understand the API",score:52,dimensions:[{kind:"AID",name:"AI Discoverability",intention:"Evaluates how easily AI systems can discover and understand the API",score:52,scoreDeviation:{previous:55,current:52,delta:-3},signals:[{kind:"semantic_clarity",name:"Semantic Clarity",description:"Measures semantic richness of API elements",score:50},{kind:"intent_clarity",name:"Intent Clarity",description:"Evaluates how clearly API operations express intent",score:54}]}]}]},oy=(0,s.__toESM)(tT());function ob(){return crypto.randomUUID()}function ow(e){try{if(e){let t=`api-score-session-${e}`;document.cookie=`${t}=; max-age=0; path=/`,console.log("🍪 Cleared specific session cookie:",e);try{localStorage.removeItem(`api-score-session-${e}`),console.log("🗑️ Cleared from localStorage:",e)}catch(e){console.log("ℹ️ No localStorage entry to clear")}}else document.cookie="api-score-session=; max-age=0; path=/",console.log("🍪 Cleared generic session cookie")}catch(e){console.error("Failed to clear session cookie:",e)}}var ok=Symbol("NO_TIMEOUT"),oj=class e{static init(e,t,n,r,i){this.username=e,this.password=t,this.authType=n||"basic",this.contentType=r||"application/json",this.dataType=i||"json"}static onChangeUser(e){this.username=e.username,this.password=e.password}static getUsername(){return this.username}static async baseFetchWithParser(t,n,r,i,o,a,l,c){let u=this.constructRequest(n,r);return fetch(t,(0,s.__spreadValues)((0,s.__spreadValues)((0,s.__spreadValues)((0,s.__spreadValues)({},u),l&&{cache:l}),a&&{next:a}),c===ok?{}:{signal:null!=c?c:AbortSignal.timeout(3e4)})).then(async t=>{if(!t.ok)throw await e.buildHttpError(t);return o(t)}).catch(e=>{if(e instanceof Error&&("AbortError"===e.name||"TimeoutError"===e.name))throw console.error("BASIC STORE FAIL::FETCH_API::Request aborted or timed out"),e;if(e instanceof Error)throw e;throw oS.handleHTTPError(e,i),e})}static async buildHttpError(e){var t;
95if((null!=(t=e.headers.get("content-type"))?t:"").includes("application/problem+json"))try{let t=await e.json(),n=[];t.title&&n.push(t.title),t.detail&&n.push(t.detail),t.error_code&&n.push(`[${t.error_code}]`);let r=n.length>0?n.join(" — "):`HTTP ${e.status}`,i=Error(r);return i.problemDetail=t,i.httpStatus=e.status,i}catch(e){}return Error(`HTTP ${e.status}: ${e.statusText}`)}static async baseFetch(e,t,n,r,i,o,s){return this.baseFetchWithParser(e,t,n,r,e=>e.json(),i,o,s)}static async baseFetchXML(e,t,n,r,i){return this.baseFetchWithParser(e,t,n,r,async e=>{let t=await e.text();return new DOMParser().parseFromString(t,"application/xml")},void 0,void 0,i)}static async baseFetchText(e,t,n,r,i){return this.baseFetchWithParser(e,t,n,r,e=>e.text(),void 0,void 0,i)}static constructRequest(e,t,n){let r=t instanceof FormData;return{body:t||null,headers:n||this.constructHeaders(!r),method:e,referrerPolicy:"no-referrer"}}static setCustomHeader(e,t){this.customHeaders.set(e,t)}static clearCustomHeaders(){this.customHeaders.clear()}static constructHeaders(e=!0){var t;let n=new Headers;return e&&n.append("Content-Type","application/json"),null==(t=this.customHeaders)||t.forEach((e,t)=>{n.append(t,e)}),n}static getPetition(e,t,n,r){return this.baseFetch(e,"GET","",t,n,void 0,r)}static postPetition(e,t,n,r,i){return this.baseFetch(e,"POST",t,n,r,void 0,i)}static deletePetition(e,t,n,r){return this.baseFetch(e,"DELETE","",t,n,void 0,r)}static putPetition(e,t,n,r,i){return this.baseFetch(e,"PUT",t,n,r,void 0,i)}static patchPetition(e,t,n,r,i){return this.baseFetch(e,"PATCH",t,n,r,void 0,i)}static async uploadFile(e,t,n,r){return this.baseFetchWithParser(e,"POST",t,n,e=>e.json(),void 0,void 0,r)}};oj.basicHeaders=oj.constructHeaders(),oj.customHeaders=new Map;var oS=class{static init(){}static async handleHTTPError(e,t){var n;console.error("BASIC STORE FAIL::FETCH_API::"+(null==(n=e.status)?void 0:n.toString())+e.statusText)}static getErrorMsgFromHTTPCode(e){switch(e){case 100:return"Continue.";case 101:return"Switching protocols.";case 102:return"Processing request.";case 200:return"Request successful.";case 201:return"Resource created successfully.";case 202:return"Request accepted for processing.";case 203:return"Non-authoritative information received.";case 204:return"No content to display.";case 205:return"Please reset your view.";case 206:return"Partial content delivered.";case 207:return"Multiple status responses.";case 208:return"Already reported.";case 226:return"Instance manipulation used.";case 300:return"Multiple choices available.";case 301:return"Resource moved permanently.";case 302:return"Resource found at a different location.";case 303:return"See other resource.";case 304:return"Resource not modified.";case 305:return"Use proxy for this request.";case 306:return"Switch proxy.";case 307:return"Temporary redirect.";case 308:return"Permanent redirect.";case 400:return"Bad request. Please check your input.";case 401:return"Unauthorized. Please log in.";case 402:return"Payment required.";case 403:return"Forbidden. You do not have permission.";case 404:return"Resource not found.";case 405:return"Method not allowed.";case 406:return"Not acceptable.";case 407:return"Proxy authentication required.";case 408:return"Request timed out.";case 409:return"Conflict detected.";case 410:return"Resource is gone.";case 411:return"Content length required.";case 412:return"Precondition failed.";case 413:return"Payload too large.";case 414:return"URI too long.";case 415:return"Unsupported media type.";case 416:return"Requested range not satisfiable.";case 417:return"Expectation failed.";case 418:return"I'm a teapot.";case 421:return"Misdirected request.";case 422:return"Unprocessable entity.";case 423:return"Resource is locked.";case 424:return"Failed dependency.";case 426:return"Upgrade required.";case 428:return"Precondition required.";case 429:return"Too many requests. Please slow down.";case 431:return"Request header fields too large.";case 451:return"Unavailable for legal reasons.";case 500:return"Internal server error.";case 501:return"Not implemented.";case 502:return"Bad gateway.";case 503:return"Service unavailable.";
95case 504:return"Gateway timeout.";case 505:return"HTTP version not supported.";case 506:return"Variant also negotiates.";case 507:return"Insufficient storage.";case 508:return"Loop detected.";case 510:return"Not extended.";case 511:return"Network authentication required.";default:return"Unknown error."}}static async getCoolErrorMessageFromServer(e){try{let t=await e.text(),n=JSON.parse(t);return n&&n.Msg?n.Msg:""}catch(e){return""}}},oE={cookieName:"jentic_consent",maxAge:180,version:"v1.0",domain:void 0},oN=[{id:"essential",title:"Essential cookies",description:"Required for core functionality like security and session management.",required:!0,alwaysActive:!0},{id:"analytics",title:"Analytics cookies",description:"Help us understand site usage via Google Analytics and Microsoft Clarity.",required:!1,alwaysActive:!1},{id:"preferences",title:"Preferences cookies",description:"Store your preferences and enable enhanced features like newsletter embeds.",required:!1,alwaysActive:!1}],oC={essential:!0,analytics:!1,preferences:!1};function oP(e){"u"<typeof window||document.querySelectorAll('script[type="text/plain"][data-consent]').forEach(t=>{var n,r;let i,o=t.getAttribute("data-consent");"true"===t.getAttribute("data-activated")||!o||["essential","analytics","preferences"].includes(o)&&("essential"===o||!0===e[o])&&((n=t).setAttribute("data-activated","true"),i=document.createElement("script"),Array.from(n.attributes).forEach(e=>{"type"!==e.name&&"data-consent"!==e.name&&"data-activated"!==e.name&&i.setAttribute(e.name,e.value)}),i.type="text/javascript",n.src?i.src=n.src:n.innerHTML&&(i.innerHTML=n.innerHTML),null==(r=n.parentNode)||r.insertBefore(i,n.nextSibling))})}function oT(e,t){if("u"<typeof window)return;let n=[];["analytics","preferences"].forEach(r=>{e[r]&&!t[r]&&n.push(r)}),0!==n.length&&n.forEach(e=>{document.querySelectorAll(`script[data-consent="${e}"][data-activated="true"]`).forEach(e=>{e.setAttribute("data-activated","false");let t=e.nextElementSibling;(null==t?void 0:t.tagName)!=="SCRIPT"||t.hasAttribute("data-consent")||t.remove()})})}var oA=new Map;function oI(e){oA.forEach((t,n)=>{if("essential"===t.category||!0===e[t.category])try{t.activate()}catch(e){console.error(`[Consent] Failed to activate component ${n}:`,e)}})}function oM(e,t){oA.forEach((n,r)=>{let i=n.category;if("essential"===i)return;let o=e[i],s=t[i];if(o&&!s)try{n.deactivate()}catch(e){console.error(`[Consent] Failed to deactivate component ${r}:`,e)}})}var oL=new Set;function oR(e){"u">typeof window&&function(...e){window.dataLayer.push(e)}("consent","update",{analytics_storage:e.analytics?"granted":"denied",functionality_storage:e.preferences?"granted":"denied",personalization_storage:e.preferences?"granted":"denied"})}function o_(e,t=oE){if("u">typeof window)try{var n,r,i,o;let s,a,l=JSON.stringify(e);localStorage.setItem(t.cookieName,l),n=t.cookieName,r=l,i=t.maxAge,o=t.domain,s=new Date(Date.now()+24*i*36e5).toUTCString(),a=`${n}=${encodeURIComponent(r)}; expires=${s}; path=/; SameSite=Lax; Secure`,o&&(a+=`; domain=${o}`),document.cookie=a}catch(e){console.error("[Consent] Failed to save consent:",e)}}function oO(e){return!!e&&"object"==typeof e&&"string"==typeof e.version&&"string"==typeof e.timestamp&&"boolean"==typeof e.essential&&"boolean"==typeof e.analytics&&"boolean"==typeof e.preferences}function oD(e=oE){let[t,n]=(0,m.useState)(null),[r,i]=(0,m.useState)(!1),[o,a]=(0,m.useState)(!1),[l,c]=(0,m.useState)(!1);(0,m.useEffect)(()=>{"u">typeof window&&(window.dataLayer||(window.dataLayer=[],function(...e){window.dataLayer.push(e)}("consent","default",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied",functionality_storage:"denied",personalization_storage:"denied",security_storage:"granted",wait_for_update:500})));let t=function(e=oE){if("u"<typeof window)return null;try{let t=localStorage.getItem(e.cookieName);if(t&&"invalid-json"!==t){let e=JSON.parse(t);if(oO(e))return e}let n=function(e){var t;let n=`; ${document.cookie}`.split(`; ${e}=`);if(2===n.length){let e=null==(t=n.pop())?void 0:t.split(";").shift();return e?decodeURIComponent(e):null}return null}(e.cookieName);if(n&&"invalid-json"!==n){let e=JSON.parse(n);if(oO(e))return e}}catch(t){localStorage.removeItem(e.cookieName),console.error("[Consent] Failed to parse stored consent, cleared corrupted data:",t)}return null}(e);!t||function(e,t=oE){if(e.version!==t.version)return!0;let n=new Date(new Date(e.timestamp).getTime()+24*t.maxAge*36e5);return new Date>n}(t,e)?i(!0):(n(t),oR(t),oP(t),oI(t)),c(!0)},[e]),(0,m.useEffect)(()=>{let e=e=>{a(e)};return oL.add(e),()=>{oL.delete(e)}},[]);let u=(0,m.useCallback)(()=>{let t=(0,s.__spreadProps)((0,s.__spreadValues)({},oC),{analytics:!0,preferences:!0,version:e.version,timestamp:new Date().toISOString()});n(t),o_(t,e),oR(t),oP(t),oI(t),i(!1),a(!1),window.dispatchEvent(new CustomEvent("consent_update",{detail:t}))},[e]),d=(0,m.useCallback)(()=>{let r=(0,s.__spreadProps)((0,s.__spreadValues)({},oC),{version:e.version,timestamp:new Date().toISOString()});n(r),o_(r,e),oR(r),t&&(oT(t,r),oM(t,r)),i(!1),a(!1),window.dispatchEvent(new CustomEvent("consent_update",{detail:r}))},[t,e]),p=(0,m.useCallback)(r=>{let o=(0,s.__spreadProps)((0,s.__spreadValues)((0,s.__spreadValues)({},oC),r),{essential:!0,version:e.version,timestamp:new Date().toISOString()});n(o),o_(o,e),oR(o),t&&(oT(t,o),oM(t,o)),oP(o),oI(o),i(!1),a(!1),window.dispatchEvent(new CustomEvent("consent_update",{detail:o}
95))},[t,e]);return{consent:t,showBanner:r,showDrawer:o,isInitialized:l,acceptAll:u,rejectAll:d,save:p,openSettings:(0,m.useCallback)(()=>{oL.forEach(e=>e(!0))},[]),closeSettings:(0,m.useCallback)(()=>{oL.forEach(e=>e(!1))},[])}}function oF({consentContext:e}){let t=oD(),{showBanner:n,acceptAll:r,rejectAll:i,openSettings:o}=e||t;return n?(0,p.jsx)("div",{className:"fixed bottom-4 left-4 right-4 z-[1100] md:left-auto md:right-4 md:w-80",children:(0,p.jsxs)("div",{className:"rounded-2xl bg-card/95 backdrop-blur supports-[backdrop-filter]:bg-card/90 shadow-lg p-4 dark:shadow-2xl",children:[(0,p.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,p.jsx)(tN,{className:"flex-shrink-0 mt-0.5 w-5 h-5 text-amber-500 dark:text-amber-400"}),(0,p.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,p.jsx)("h3",{className:"text-sm font-semibold text-foreground mb-1",children:"Choose your cookies"}),(0,p.jsxs)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:["We use cookies to enhance your browsing experience and keep your data secure."," ",(0,p.jsx)("button",{onClick:o,className:"text-xs text-foreground underline underline-offset-2 hover:no-underline cursor-pointer transition-colors",type:"button",children:"Cookie Settings"})]})]})]}),(0,p.jsxs)("div",{className:"flex flex-col gap-2 mt-4",children:[(0,p.jsx)("button",{onClick:r,className:"cursor-pointer w-full inline-flex items-center justify-center rounded-full px-6 py-3 text-sm font-medium bg-foreground text-background hover:bg-foreground
95/90 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-all duration-200",type:"button",children:"Accept all"}),(0,p.jsx)("button",{onClick:i,className:"cursor-pointer w-full inline-flex items-center justify-center rounded-full px-6 py-3 text-sm font-medium text-muted-foreground hover:text-foreground hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-all duration-200",type:"button",children:"Reject non-essential cookies"})]})]})}):null}function o$({enabled:e,disabled:t=!1,onChange:n,ariaLabel:r}){let i=t?"bg-green-100 cursor-not-allowed dark:bg-green-950":e?"bg-primary":"bg-muted",o=e?"translate-x-6":"translate-x-1";return(0,p.jsx)("button",{type:"button",className:`cursor-pointer relative inline-flex h-6 w-11 items-center rounded-full transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${i}`,role:"switch","aria-checked":e,"aria-label":r,disabled:t,onClick:()=>!t&&n(!e),children:(0,p.jsx)("span",{className:`inline-block h-4 w-4 transform rounded-full bg-background transition-transform ${o}`})})}function oz({consentContext:e}){let t=oD(),{showDrawer:n,consent:r,save:i,acceptAll:o,closeSettings:a}=e||t,[l,c]=(0,m.useState)({}),[u,d]=(0,m.useState)(!1),f=(0,m.useRef)(null),h=(0,m.useRef)(null);return((0,m.useEffect)(()=>{n&&r&&c({essential:r.essential,analytics:r.analytics,preferences:r.preferences})},[n,r]),(0,m.useEffect)(()=>{if(n)d(!0),h.current=document.activeElement,document.body.style.overflow="hidden",setTimeout(()=>{var e;null==(e=f.current)||e.focus()},100);else{document.body.style.overflow="";let e=setTimeout(()=>{d(!1)},300);return h.current&&h.current.focus(),()=>{clearTimeout(e),document.body.style.overflow=""}}},[n]),(0,m.useEffect)(()=>{if(!n)return;let e=e=>{"Escape"===e.key&&a()};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[n,a]),n||u)?(0,p.jsxs)("div",{className:"fixed inset-0 z-[1100] overflow-hidden",children:[(0,p.jsx)("div",{className:`absolute inset-0 bg-black/20 backdrop-blur-sm transition-opacity duration-300 ${n?"opacity-100":"opacity-0"}`,onClick:a,"aria-hidden":"true"}),(0,p.jsxs)("div",{ref:f,className:`absolute right-0 top-0 h-full w-full max-w-md bg-background shadow-xl flex flex-col transform transition-transform duration-300 ease-in-out ${n?"translate-x-0":"translate-x-full"}`,role:"dialog","aria-modal":"true","aria-labelledby":"drawer-title",tabIndex:-1,children:[(0,p.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-border",children:[(0,p.jsx)("h2",{id:"drawer-title",className:"text-lg font-semibold text-foreground",children:"Cookie Settings"}),(0,p.jsx)("button",{onClick:a,className:"cursor-pointer p-2 text-muted-foreground hover:text-foreground rounded-lg hover:bg-muted focus:outline-none focus-visible:ring-2 focus-visible:ring-ring transition-colors","aria-label":"Close cookie settings",type:"button",children:(0,p.jsx)(b.X,{className:"w-5 h-5"})})]}),(0,p.jsxs)("div",{className:"flex-1 overflow-y-auto p-6",children:[(0,p.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-6",children:["Cookies help us to enhance your experience, tailor ads to your interests, and improve your website. Find out more on different cookie categories by toggling each cookie category below. Read our"," ",(0,p.jsx)(tR,{href:"/privacy",className:"cursor-pointer text-foreground underline underline-offset-2 hover:no-underline",target:"_blank",children:"Cookie Policy"})," ","to learn more about how we use cookies and how to adjust your cookie preferences if you change your mind."]}),(0,p.jsx)("div",{children:oN.map(e=>{var t;let n=null!=(t=l[e.id])&&t,r=!e.required,i=function(e){switch(e){case"essential":default:return ta;case"analytics":return tr;case"advertising":return tP;case"preferences":return tC}}(e.id);return(0,p.jsxs)("div",{className:"flex items-start justify-between gap-4 py-4 border-b border-border/50 last:border-b-0",children:[(0,p.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,p.jsxs)("div",{className:"flex items-center gap-3 mb-1",children:[(0,p.jsx)(i,{className:"w-5 h-5 text-muted-foreground"}),(0,p.jsx)("h3",{className:"text-sm font-medium text-foreground",children:e.title}),e.alwaysActive&&(0,p.jsx)("span",{className:"px-2 py-0.5 text-xs font-medium text-green-700 bg-green-50 rounded-full dark:text-green-400 dark:bg-green-950",children:"Always active"})]}),(0,p.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:e.description})]}),(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)(o$,{enabled:!!e.required||n,disabled:!r,onChange:t=>{r&&c(n=>(0,s.__spreadProps)((0,s.__spreadValues)({},n),{[e.id]:t}))},ariaLabel:`${e.title} cookies`})})]},e.id)})})]}),(0,p.jsx)("div",{className:"border-t border-border p-6",children:(0,p.jsxs)("div",{className:"flex items-center gap-3",children:[(0,p.jsx)("button",{onClick:()=>{i(l)},className:"cursor-pointer flex-1 inline-flex items-center justify-center rounded-full px-6 py-3 text-sm font-medium bg-foreground text-background hover:bg-foreground
95/90 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-all duration-200",type:"button",children:"Confirm my choices"}),(0,p.jsx)("button",{onClick:()=>{o()},className:"cursor-pointer flex-1 inline-flex items-center justify-center rounded-full px-6 py-3 text-sm font-medium text-muted-foreground border border-border hover:text-foreground hover:bg-muted/50 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 transition-all duration-200",type:"button",children:"Accept all"})]})})]})]}):null}var oV="jentic-theme-bridge",oB=(e,t)=>{},oH=["light","dark","system"],oU=e=>"string"==typeof e&&oH.includes(e),oW=()=>{if("u"<typeof document)return null;let e=document.cookie.match(RegExp(`(?:^|; )${oV}=([^;]+)`));if(!e)return null;try{let t=decodeURIComponent(e[1]);return oU(t)?t:null}catch(e){return oB("Error parsing theme cookie",e),null}};e.s(["ACCEPTED_FILE_TYPES",0,rf,"AgendaIcon",0,i2,"AnalysisTabsV2",0,iV,"AnimatedAvatars",0,function({avatars:e}){return(0,p.jsxs)("div",{"aria-hidden":"true",className:"isolate mx-auto grid h-full grid-cols-1",children:[(0,p.jsx)(nC,{}),(0,p.jsx)(nT,{avatars:e}),(0,p.jsx)(nP,{})]})},"AnimatedCardCarousel",0,function({cards:e,imageAltText:t}){let n=(0,m.useRef)(null),{scrollX:r}=(0,W.useScroll)({container:n}),[i,o]=(0,m.useState)(0);return(0,U.useMotionValueEvent)(r,"change",e=>{var t,r;let i=(null==(r=null==(t=n.current)?void 0:t.children[0])?void 0:r.clientWidth)||0;i&&o(Math.round(e/(i+32)))}),(0,m.useEffect)(()=>{let t=setInterval(()=>{var t,r;let o=(null==(r=null==(t=n.current)?void 0:t.children[0])?void 0:r.clientWidth)||0;if(n.current){let t=(i+1)%e.length;n.current.scrollTo({left:(o+32)*t,behavior:"smooth"})}},4e3);return()=>clearInterval(t)},[i]),(0,p.jsxs)("div",{className:"overflow-hidden py-16",children:[(0,p.jsx)("div",{ref:n,className:(0,u.clsx)("flex gap-8 px-6 overflow-x-auto scroll-smooth snap-x snap-mandatory","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"),children:[...e,...e].map((e,n)=>(0,p.jsx)(nA,{img:e.img,alt:e.alt||t},`${e.id}-${n}`))}),(0,p.jsx)("div",{className:"mt-4 flex justify-center gap-2",children:e.map((t,n)=>(0,p.jsx)("div",{className:(0,u.clsx)("size-2.5 rounded-full transition",i%e.length===n?"bg-gray-600":"bg-gray-300")},n))})]})},"AnimatedFeatureCardGrid",0,function({features:e,startDelay:t=.2}){let n=m.default.useRef(null),r=(0,V.useInView)(n,{once:!0,margin:"0px 0px -20% 0px"}),i=(0,H.useAnimation)();return m.default.useEffect(()=>{r&&i.start(e=>({opacity:1,y:0,transition:{delay:t+.1*e,duration:.5}}))},[r,i,t]),(0,p.jsx)("div",{ref:n,className:"grid gap-cards md:grid-cols-3",children:e.map((e,t)=>(0,p.jsx)(A.motion.div,{custom:t,initial:{opacity:0,y:40},animate:i,children:(0,p.jsxs)(t0,{className:"relative flex min-h-[170px] flex-col justify-between gap-4",children:[(0,p.jsxs)("div",{className:"flex items-center gap-gutter",children:[(0,p.jsx)("div",{className:"flex h-5 w-5 items-center justify-center overflow-hidden",children:e.icon}),(0,p.jsx)("h3",{className:"text-foreground",children:e.title})]}),(0,p.jsx)("p",{className:"mt-auto text-sm leading-relaxed text-muted-foreground",children:e.description})]})},t))})},"AnimatedLogo",0,ng,"AnimatedLogoCluster",0,function(){return(0,p.jsxs)("div",{"aria-hidden":"true",className:"relative h-full overflow-hidden",children:[(0,p.jsx)(nv,{}),(0,p.jsxs)("div",{className:"absolute left-1/2 h-full w-[26rem] -translate-x-1/2",children:[(0,p.jsx)(ny,{}),(0,p.jsx)(nb,{src:"/logo-cluster/career-builder.svg",left:360,top:144,hover:{x:6,y:1,rotate:5,delay:.38}}),(0,p.jsx)(nb,{src:"/logo-cluster/dribbble.svg",left:285,top:20,hover:{x:4,y:-5,rotate:6,delay:.3}}),(0,p.jsx)(nb,{src:"/logo-cluster/glassdoor.svg",left:255,top:210,hover:{x:3,y:5,rotate:7,delay:.2}}),(0,p.jsx)(nb,{src:"/logo-cluster/linkedin.svg",left:144,top:40,hover:{x:-2,y:-5,rotate:-6,delay:.15}}),(0,p.jsx)(nb,{src:"/logo-cluster/upwork.svg",left:36,top:56,hover:{x:-4,y:-5,rotate:-6,delay:.35}}),(0,p.jsx)(nb,{src:"/logo-cluster/we-work-remotely.svg",left:96,top:176,hover:{x:-3,y:5,rotate:3,delay:.15}})]})]})},"AnimatedLogoGrid",0,function(){let e=Array.from({length:120},(e,t)=>nw[t%nw.length]),t=(0,m.useRef)(null),n=(0,$.useMotionValue)(0),r=(0,$.useMotionValue)(0),i=(0,z.useSpring)(n,{stiffness:80,damping:20}),o=(0,z.useSpring)(r,{stiffness:80,damping:20}),s=(0,m.useCallback)(e=>{var i;let o=null==(i=t.current)?void 0:i.getBoundingClientRect();if(!o)return;let s=((e.clientX-o.left)/o.width-.5)*2,a=((e.clientY-o.top)/o.height-.5)*2;n.set(64*s),r.set(64*a)},[n,r]),a=(0,m.useCallback)(()=>{setTimeout(()=>{n.set(0),r.set(0)},100)},[n,r]);return(0,p.jsx)("div",{ref:t,onMouseMove:s,onMouseLeave:a,className:"relative h-full min-h-[500px] w-full min-w-[540px]",children:(0,p.jsx)(A.motion.div,{className:"absolute inset-0 grid grid-cols-10 grid-rows-12 gap-[78px]",style:{perspective:"800px",x:i,y:o,translateX:"-44px",translateY:"-44px"},children:e.map(({key:e,src:t},n)=>(0,p.jsx)("div",{className:"animate-float flex items-center justify-center rounded-full bg-emerald-900/80 shadow select-none",style:{width:52,height:52,animationDelay:`${n%10*.22}s`},children:(0,p.jsx)(T.default,{src:t,alt:`${e} logo`,width:30,height:30,className:"object-contain",draggable:!1})},e+n))})})},"AnimatedLogoMarquee",0,function({speed:e=40,logoHeight:t=28,className:n}){let r=(0,m.useRef)(null),[i,o]=(0,m.useState)(30);(0,m.useLayoutEffect)(()=>{let t=()=>{if(r.current){let t=r.current.scrollWidth/2;t>0&&e>0&&o(t/e)}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[e]);let s=[...nw,...nw];return(0,p.jsx)("div",{className:`relative w-full overflow-hidden mask-fade-x ${null!=n?n:""}
95`,"aria-hidden":!0,children:(0,p.jsx)(A.motion.div,{ref:r,className:"flex items-center whitespace-nowrap",style:{width:"max-content"},animate:{x:["0%","-50%"]},transition:{duration:i,ease:"linear",repeat:1/0,repeatType:"loop"},children:s.map(({src:e,key:n},r)=>(0,p.jsx)("div",{className:"flex-shrink-0 px-8 opacity-70 transition-opacity duration-300 hover:opacity-100",children:(0,p.jsx)(T.default,{src:e,alt:"",height:t,style:{width:"auto",height:`${t}px`},width:100,priority:!0})},`${n}-${r}`))},i)})},"AnimatedLogoTimeline",0,function(){return(0,p.jsxs)("div",{"aria-hidden":"true",className:"relative h-full overflow-hidden",children:[(0,p.jsxs)("div",{className:"absolute inset-0 top-8 z-10 flex items-center justify-center",children:[(0,p.jsx)("div",{className:"absolute inset-0 backdrop-blur-md",style:{maskImage:'url(\'data:image/svg+xml,<svg width="96" height="96" viewBox="0 0 96 96" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="96" height="96" rx="12" fill="black"/></svg>\')',maskPosition:"center",maskRepeat:"no-repeat"}}),(0,p.jsx)("div",{className:"relative flex size-24 items-center justify-center rounded-xl bg-linear-to-t from-white/5 to-white/25 ring-1 shadow-sm ring-white/10 outline outline-offset-[-5px] outline-white/5 ring-inset",children:(0,p.jsx)(ng,{className:"h-9 fill-white",showWord:!1})})]}),(0,p.jsxs)("div",{className:"[container-type:inline-size] absolute inset-0 grid grid-cols-1 pt-8",children:[(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Loom",src:"/logo-timeline/loom.svg",delay:0,duration:30}),(0,p.jsx)(nM,{label:"Gmail",src:"/logo-timeline/gmail.svg",delay:5,duration:30})]}),(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Asana",src:"/logo-timeline/asana.svg",delay:10,duration:40}),(0,p.jsx)(nM,{label:"Microsoft Teams",src:"/logo-timeline/microsoft-teams.svg",delay:15,duration:40})]}),(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Google Calendar",src:"/logo-timeline/google-calendar.svg",delay:5,duration:40}),(0,p.jsx)(nM,{label:"Google Drive",src:"/logo-timeline/google-drive.svg",delay:12,duration:40})]}),(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Basecamp",src:"/logo-timeline/basecamp.svg",delay:5,duration:45}),(0,p.jsx)(nM,{label:"Discord",src:"/logo-timeline/discord.svg",delay:20,duration:45})]}),(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Hubspot",src:"/logo-timeline/hubspot.svg",delay:5,duration:60}),(0,p.jsx)(nM,{label:"Slack",src:"/logo-timeline/slack.svg",delay:18,duration:60})]}),(0,p.jsxs)(nI,{children:[(0,p.jsx)(nM,{label:"Adobe Creative Cloud",src:"/logo-timeline/adobe-creative-cloud.svg",delay:6,duration:40}),(0,p.jsx)(nM,{label:"Zoom",src:"/logo-timeline/zoom.svg",delay:14,duration:40})]})]})]})},"AnimatedMap",0,function({markers:e,mapImageSrc:t="/map.png",mapImageAlt:n="Background map"}){return(0,p.jsxs)("div",{"aria-hidden":"true",className:"relative size-full",children:[(0,p.jsx)("div",{className:"absolute inset-0 bg-[length:530px_430px] bg-[center_-75px] bg-no-repeat [mask-image:linear-gradient(to_bottom,black_50%,transparent)]",style:{backgroundImage:`url(${t})`},role:"img","aria-label":n}),(0,p.jsx)("div",{className:"absolute inset-0",children:e.map(e=>(0,p.jsx)(nL,{src:e.src,alt:e.alt,top:e.top,offset:e.offset,delay:e.delay},e.key))})]})},"AnimatedNumber",0,function({start:e,end:t,decimals:n=0}){let r=(0,m.useRef)(null),i=(0,V.useInView)(r,{once:!0,amount:.5}),o=(0,$.useMotionValue)(e),s=(0,z.useSpring)(o,{damping:30,stiffness:100}),a=(0,B.useTransform)(s,e=>e.toFixed(n));return(0,m.useEffect)(()=>{o.set(i?t:e)},[e,t,i,o]),(0,p.jsx)(A.motion.span,{ref:r,children:a})},"AnimatedShowcaseSection",0,function({id:e,cards:t,startDelay:n=.2}){let r=m.default.useRef(null),i=(0,V.useInView)(r,{once:!0,margin:"0px 0px -20% 0px"}),o=(0,H.useAnimation)();return(0,m.useEffect)(()=>{i&&o.start("visible")},[i,o]),(0,p.jsx)("section",{id:e,ref:r,className:"py-section relative overflow-hidden",children:(0,p.jsx)("div",{className:"",children:(0,p.jsx)("div",{className:"mx-auto mt-10 grid grid-flow-dense auto-rows-[1fr] gap-cards md:grid-cols-3",children:t.map((e,t)=>{var r,i;let s=null!=(r=e.colSpan)?r:1,a=null!=(i=e.rowSpan)?i:1;return(0,p.jsx)(A.motion.div,{custom:n+t,variants:nR,initial:"hidden",animate:o,className:tM("h-full w-full",2===s&&"md:col-span-2",2===a&&"md:row-span-2"),children:(0,p.jsxs)(t0,{className:"relative flex h-full min-h-[200px] flex-col justify-between",children:[(0,p.jsxs)("div",{className:"flex items-center gap-gutter",children:[e.icon&&(0,p.jsx)("div",{className:"flex h-5 w-5 items-center justify-center overflow-hidden",children:e.icon}),(0,p.jsx)("h3",{className:"text-foreground",children:e.title})]}),(0,p.jsx)("p",{className:"mt-auto text-sm leading-relaxed text-muted-foreground",children:e.description})]})}
95,e.title+t)})})})})},"AnimatedVerticalList",0,nD,"ApiScoringPage",0,function({analyzeEndpoint:e,useMockData:t=!1,enableUrlValidation:n=!0,enableSpecValidation:r=!1,showBlurred:i=!1,showFullAccess:o=!1,showTermsAgreement:a=!1,enableSessionRestore:l=!1,sessionIdParam:c="sessionId",trackingSource:u,onGetFullAccess:d,onAnalysisComplete:f,onError:h,onStartNew:g,loadAnalysisSession:x,clearAnalysisSession:v,containerClassName:y="",customReportDisplay:b,onAppStateChange:w,showLandingPage:k=!1,landingPageConfig:j={}}){let S={onGetFullAccess:d,onAnalysisComplete:f,onError:h,onStartNew:g,loadAnalysisSession:x,clearAnalysisSession:v},{appState:E,uploadState:N,report:C,transferToken:P,validationError:T,handleFileUpload:I,handleUrlSubmit:M,resetToUpload:R,clearError:_}=iG({analyzeEndpoint:e,useMockData:t,enableUrlValidation:n,enableSpecValidation:r,enableSessionRestore:l,sessionIdParam:c,trackingSource:u},S);(0,m.useEffect)(()=>{null==w||w(E)},[E,w]);let O=()=>{var e;o&&C&&(null==(e=S.onGetFullAccess)||e.call(S,C,P))},D=k?"w-full":y;return(0,p.jsx)("div",{className:D,suppressHydrationWarning:!0,children:(0,p.jsxs)(L.AnimatePresence,{mode:"wait",children:["upload"===E&&k&&(0,p.jsx)(i1,{heroProps:(0,s.__spreadValues)({onFileUpload:e=>{I(e)},onUrlSubmit:e=>{M(e)},isUploading:"uploading"===N.status,showTermsAgreement:a},null==j?void 0:j.heroProps),howItWorksProps:null==j?void 0:j.howItWorksProps,dimensionsProps:null==j?void 0:j.dimensionsProps,getInTouchProps:null==j?void 0:j.getInTouchProps,renderBelowHero:null==j?void 0:j.renderBelowHero,showHero:(null==j?void 0:j.showHero)!==!1,showHowItWorks:(null==j?void 0:j.showHowItWorks)!==!1,showDimensions:(null==j?void 0:j.showDimensions)!==!1,showGetInTouch:(null==j?void 0:j.showGetInTouch)===!0}),"upload"===E&&!k&&(0,p.jsx)("div",{className:"container mx-auto px-2 py-10",suppressHydrationWarning:!0,children:(0,p.jsx)(A.motion.div,{className:"",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:(0,p.jsx)(rh,{onFileUpload:e=>{I(e)},onUrlSubmit:e=>{M(e)},isUploading:"uploading"===N.status,showTermsAgreement:a})},"upload")}),"processing"===E&&(0,p.jsx)("div",{className:"container mx-auto flex min-h-[calc(100dvh-200px)] items-center justify-center px-2 py-20",suppressHydrationWarning:!0,children:(0,p.jsx)(A.motion.div,{className:"w-full",initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:(0,p.jsx)(rx,{uploadState:N})},"processing")}),"results"===E&&C&&(0,p.jsxs)("div",{className:"container mx-auto px-2 py-10",suppressHydrationWarning:!0,children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:b?m.default.createElement(b,{report:C,onStartNew:R,showBlurred:i,onGetFullAccess:o?O:void 0}):(0,p.jsx)(iH,{report:C,onStartNew:R,showBlurred:i,onGetFullAccess:o?O:void 0})},"results"),k&&(null==j?void 0:j.showGetInTouch)&&(null==j?void 0:j.getInTouchProps)&&(0,p.jsx)(i0,(0,s.__spreadValues)({},j.getInTouchProps))]}),"validation-error"===E&&T&&(0,p.jsx)("div",{className:"container mx-auto px-2 py-10",suppressHydrationWarning:!0,children:(0,p.jsx)(rC,{error:T,onRetry:_,onStartOver:()=>window.location.reload()})})]})})},"AppLink",0,tR,"AudioIcon",0,i5,"Avatar",0,t5,"AvatarFallback",0,t3,"AvatarImage",0,t4,"BackgroundDots",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({},n),{className:(0,u.clsx)("pointer-events-none absolute inset-0","bg-[radial-gradient(hsl(var(--muted)/0.3)_1px,transparent_1px)] [background-size:16px_16px]",t)}))},"BackgroundGrid",0,function(e){var{className:t,lineThickness:n=1,spacing:r=32,animated:i=!1}=e,o=(0,s.__objRest)(e,["className","lineThickness","spacing","animated"]);let a={"--line-thickness":`${n}px`,"--spacing":`${r}px`,backgroundImage:`
96      linear-gradient(to right, currentColor var(--line-thickness), transparent var(--line-thickness)),
97      linear-gradient(to bottom, currentColor var(--line-thickness), transparent var(--line-thickness))
98    `,backgroundSize:"var(--spacing) var(--spacing)"};return(0,p.jsx)(A.motion.div,(0,s.__spreadProps)((0,s.__spreadValues)((0,s.__spreadValues)({},o),i?{initial:{opacity:0}
98,animate:{opacity:1},transition:{duration:.7,ease:"easeInOut"}}:{}),{className:(0,u.clsx)("absolute inset-0 -z-10 mt-[65px] h-full w-full","pointer-events-none","[mask-image:radial-gradient(ellipse_at_center,white_20%,transparent_75%)]","text-neutral-300/70 dark:text-neutral-800/80",t),style:a}))},"Badge",0,function(e){var{children:t,className:n,variant:r="default",size:i="md"}=e,o=(0,s.__objRest)(e,["children","className","variant","size"]);return(0,p.jsx)("span",(0,s.__spreadProps)((0,s.__spreadValues)({className:tM("inline-flex items-center rounded-full font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{default:"bg-primary text-primary-foreground hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"border border-input bg-background hover:bg-muted hover:text-foreground"}[r],{sm:"px-2 py-0.5 text-xs",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}[i],n)},o),{children:t}))},"BasicStore",0,oj,"BlogIdeasIcon",0,i4,"BodyText",0,nj,"Branding",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({className:tM("text-muted-foreground flex items-center gap-2 font-mono text-xs",t)},n),{children:(0,p.jsx)(ni,{height:18.2,width:58.1})}))},"Button",0,tU,"ButtonWithGA",0,tW,"COOKIE_CATEGORIES",0,oN,"CRMIcon",0,i8,"Card",0,t0,"CategoryFilter",0,function({categories:e,selectedCategory:t,onSelectCategory:n,getCategoryLabel:r=e=>e,className:i}){let o=e.map(e=>({value:e,label:r(e)}));return(0,p.jsxs)("div",{className:tM("flex w-full items-center",i),children:[(0,p.jsx)("div",{className:"hidden flex-wrap items-center justify-center gap-2 lg:flex",children:e.map(e=>(0,p.jsx)(tU,{variant:e===t?"filter-active":"filter",size:"sm",onClick:()=>n(e),children:r(e)},e))}),(0,p.jsx)("div",{className:"w-full lg:hidden",children:(0,p.jsx)(t6,{value:t,onChange:n,options:o})})]})},"ChatInput",0,function({onSend:e,disabled:t=!1,initialValue:n="",onEdit:r}){let[i,o]=(0,m.useState)(""),s=(0,m.useRef)(null),a=(0,m.useRef)(!1);(0,m.useEffect)(()=>{if(!a.current){let e=s.current;if(e){e.innerHTML=n;let t=document.createElement("div");t.innerHTML=n,o(t.innerText||"")}}},[n]);let l=()=>{i.trim()&&!t&&(e(i),s.current&&(s.current.innerHTML=""),o(""),a.current=!1)};return(0,p.jsxs)("div",{className:`flex w-full flex-col gap-4 roun
98ded-3xl border border-border bg-card p-4 shadow-sm transition-opacity ${t?"opacity-50":"opacity-100"}`,children:[(0,p.jsxs)("div",{className:"relative w-full",children:[(0,p.jsx)("div",{ref:s,contentEditable:!t,onInput:e=>{a.current||(r&&r(),a.current=!0),o(e.currentTarget.innerText)},onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),l())},className:"w-full max-h-[200px] overflow-y-auto bg-transparent text-base text-foreground focus:ring-0 focus:outline-none disabled:cursor-not-allowed custom-scrollbar"}),""===i.trim()&&(0,p.jsx)("div",{className:"pointer-events-none absolute inset-0 text-base text-muted-foreground",children:"Ask Jentic for help"})]}),(0,p.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,p.jsxs)("div",{className:"flex items-center gap-4",children:[(0,p.jsx)("button",{type:"button",disabled:t,className:"text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Attach file",children:(0,p.jsx)(_.Plus,{size:22,strokeWidth:2})}),(0,p.jsxs)("button",{type:"button",disabled:t,className:"flex items-center gap-2 text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Use tools",children:[(0,p.jsx)(O.WandSparkles,{size:22,strokeWidth:2}),(0,p.jsx)("span",{className:"hidden text-sm font-medium sm:inline",children:"Tools"})]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("button",{type:"button",disabled:t,className:"text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Use microphone",children:(0,p.jsx)(D.Mic,{size:22,strokeWidth:2})}),(0,p.jsx)("button",{type:"button",onClick:l,disabled:t||!i.trim(),className:"rounded-full bg-muted/30 p-2 text-foreground transition-colors hover:bg-muted/50 disabled:cursor-not-allowed disabled:bg-muted/10","aria-label":"Send message",children:(0,p.jsx)(F.Send,{size:22,strokeWidth:2})})]})]})]})},"ChatInputTest",0,function({onSend:e,disabled:t=!1,initialValue:n="",steps:r}){let[i,o]=(0,m.useState)(n),s=(0,m.useRef)(null);(0,m.useEffect)(()=>{o(n)},[n]),(0,m.useEffect)(()=>{let e=s.current;if(e){e.style.height="auto";let t=e.scrollHeight;e.style.height=`${Math.min(t,200)}px`}},[i]);let a=()=>{i.trim()&&!t&&(e(i),o(""))};return(0,p.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,p.jsxs)("div",{className:`flex w-full flex-col gap-3 rounded-3xl border border-border bg-card p-4 shadow-sm transition-opacity ${t?"opacity-50":"opacity-100"}`,children:[(0,p.jsx)("textarea",{ref:s,value:i,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),a())},placeholder:"Ask anything",rows:1,disabled:t,className:"w-full resize-none overflow-y-auto bg-transparent text-base text-foreground placeholder:text-muted-foreground focus:ring-0 focus:outline-none disabled:cursor-not-allowed",style:{maxHeight:"200px"}}),(0,p.jsxs)("div",{className:"flex items-center justify-between",children:[(0,p.jsxs)("div",{className:"flex items-center gap-4",children:[(0,p.jsx)("button",{type:"button",disabled:t,className:"text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Attach file",children:(0,p.jsx)(_.Plus,{size:22,strokeWidth:2})}),(0,p.jsxs)("button",{type:"button",disabled:t,className:"flex items-center gap-2 text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Use tools",children:[(0,p.jsx)(O.WandSparkles,{size:22,strokeWidth:2}),(0,p.jsx)("span",{className:"hidden text-sm font-medium sm:inline",children:"Tools"})]})]}),(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("button",{type:"button",disabled:t,className:"text-muted-foreground transition-colors hover:text-foreground disabled:cursor-not-allowed","aria-label":"Use microphone",children:(0,p.jsx)(D.Mic,{size:22,strokeWidth:2})}),(0,p.jsx)("button",{type:"button",onClick:a,disabled:t||!i.trim(),className:"rounded-full bg-muted/30 p-2 text-foreground transition-colors hover:bg-muted/50 disabled:cursor-not-allowed disabled:bg-muted/10","aria-label":"Send message",children:(0,p.jsx)(F.Send,{size:22,strokeWidth:2})})]})]})]}),r&&r.length>0&&(0,p.jsx)("div",{className:"w-full rounded-2xl border border-border/50 bg-accent/5 p-4 text-left font-sans text-sm text-foreground-lighter backdrop-blur-sm",children:(0,p.jsx)("ol",{className:"text-foreground-lightest list-inside list-decimal space-y-1.5",children:r.map((e,t)=>(0,p.jsx)("li",{children:e},t))})})]})},"Checkbox",0,function({checked:e,onChange:t,disabled:n=!1,size:r="md",className:i,showOnHover:o=!1,ariaLabel:s,children:a,id:l}){let c=tG[r],u=(0,p.jsx)("span",{className:tM("flex items-center justify-center rounded border transition-colors",c.box,e?"border-primary bg-primary":"border-2",!e&&!n&&"border-border",!e&&n&&"border-muted",!e&&!n&&"group-hover:border-foreground
98/50",n&&"opacity-40"),children:e&&(0,p.jsx)(g.Check,{className:tM(c.icon,"text-primary-foreground")})});return a?(0,p.jsxs)("button",{type:"button",onClick:r=>{r.stopPropagation(),n||t(!e)},disabled:n,className:tM("group flex items-center gap-3 text-left",n?"cursor-not-allowed":"cursor-pointer",i),children:[(0,p.jsx)("span",{className:"shrink-0",children:u}),(0,p.jsx)("span",{className:tM("text-muted-foreground text-sm leading-5",n&&"opacity-50"),children:a})]}):(0,p.jsx)("button",{type:"button",role:"checkbox","aria-checked":e,"aria-label":s||"Select item",onClick:r=>{r.stopPropagation(),n||t(!e)},disabled:n,className:tM("group flex items-center justify-center rounded p-1 transition-all",n?"cursor-not-allowed":"cursor-pointer",o&&!e&&"opacity-0 group-hover:opacity-100",e&&o&&"opacity-100",i),children:u})},"CircularMetric",0,rQ,"CircularProgress",0,function({percentage:e,size:t=80,strokeWidth:n=6,showText:r=!0,className:i=""}){let o=(t-n)/2,s=2*o*Math.PI,a=s-e/100*s,l=`circularGradient-${Math.round(e)}`;return(0,p.jsxs)("div",{className:`relative ${i}`,style:{width:t,height:t},children:[(0,p.jsxs)("svg",{width:t,height:t,className:"-rotate-90 transform",children:[(0,p.jsx)("circle",{cx:t/2,cy:t/2,r:o,stroke:"hsl(142, 7%, 92%)",strokeWidth:n,fill:"none",opacity:"0.3"}),(0,p.jsx)(A.motion.circle,{cx:t/2,cy:t/2,r:o,stroke:`url(#${l})`,strokeWidth:n,fill:"none",strokeLinecap:"round",strokeDasharray:s,initial:{strokeDashoffset:s},animate:{strokeDashoffset:a},transition:{duration:1.5,ease:"easeOut"}}),(0,p.jsx)("defs",{children:(0,p.jsxs)("linearGradient",{id:l,x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[e>=90&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(142, 76%, 36%)"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(142, 76%, 50%)"})]}),e>=80&&e<90&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(165, 97.8%, 18.2%)"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(165, 97.8%, 35%)"})]}),e>=70&&e<80&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(39, 100%, 59%)"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(39, 100%, 70%)"})]}),e>=60&&e<70&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(25, 95%, 53%)"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(25, 95%, 65%)"})]}),e<60&&(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(13, 87.2%, 45.9%)"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(13, 87.2%, 60%)"})]})]})})]}),r&&(0,p.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,p.jsx)(A.motion.span,{className:"text-foreground text-lg font-bold",initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:.8,duration:.5,ease:"easeOut"},children:Math.round(e)})})]})},"ClickableTooltip",0,function({children:e,content:t}){return(0,p.jsxs)(et.Popover,{children:[(0,p.jsx)(et.PopoverButton,{as:"div",className:"w-full",children:e}),(0,p.jsx)(E.Portal,{children:(0,p.jsx)(et.PopoverPanel,{anchor:"top",className:"z-[45] w-max rounded-md text-xs shadow-md",children:(0,p.jsx)(t0,{padding:"p-gutter",className:"bg-card backdrop-blur-sm",children:t})})})]})},"Combobox",0,function({options:e,selected:t,onSelect:n,placeholder:r="Select an option",searchPlaceholder:i="Search...",multiple:o=!1,searchable:s=!0,clearable:a=!0,fixedWidth:l=!1,id:c,className:u}){var d;let[f,h]=(0,m.useState)(""),[g,x]=(0,m.useState)(),y=(0,m.useRef)(null),w=null!=c?c:(0,m.useId)();(0,m.useEffect)(()=>{y.current&&x(y.current.offsetWidth)},[]);let k=""===f?e:e.filter(e=>e.label.toLowerCase().replace(/\s+/g,"").includes(f.toLowerCase().replace(/\s+/g,""))),j=null!=(d=null==t?void 0:t.length)?d:0,E=o?t:null==t?void 0:t[0],C=(0,m.useMemo)(()=>0===j?r:1===j?t[0].label:`${j} selected`,[j,r,t]);return(0,p.jsxs)(S.Listbox,{value:E,by:"value",onChange:e=>{Array.isArray(e)?n(e):n(e?[e]:[])},multiple:o,as:"div",className:tM("relative",u),children:[(0,p.jsxs)(S.ListboxButton,{ref:y,id:w,className:tM("border-border bg-background relative h-9 cursor-default rounded-lg border py-2 pl-3 pr-10 text-left text-sm shadow-sm focus:outline-none",l?"w-auto":"w-full min-w-0"),style:l?{minWidth:`${.6*r.length+4}rem`}:void 0,children:[(0,p.jsxs)("div",{className:"flex min-w-0 items-center gap-2",children:[j>0&&(0,p.jsx)("div",{className:"flex-shrink-0",children:(0,p.jsx)(en.CheckSquare,{className:"text-primary h-4 w-4"})}),(0,p.jsx)("span",{className:"text-foreground block min-w-0 flex-1 truncate",children:C})]}),(0,p.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:a&&j>0?(0,p.jsx)("div",{role:"button","aria-label":"Clear selection",onClick:e=>{e.preventDefault(),e.stopPropagation(),n([])},className:"text-muted-foreground hover:text-foreground pointer-events-auto cursor-pointer rounded-full p-0.5",children:(0,p.jsx)(b.X,{className:"h-4 w-4"})}):(0,p.jsx)(N.ChevronsUpDown,{className:"text-muted-foreground h-4 w-4","aria-hidden":"true"})})]}),(0,p.jsx)(v.Transition,{as:m.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",afterLeave:()=>h(""),children:(0,p.jsxs)(S.ListboxOptions,{style:{width:g?`${g}px`:"auto"},className:"bg-background ring-border absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md pb-1 text-base shadow-lg ring-1 focus:outline-none sm:text-sm",children:[s&&(0,p.jsx)("div",{className:"bg-background border-border sticky top-0 z-10 border-b px-2 py-2",children:(0,p.jsx)(nd,{value:f,onChange:e=>h(e.target.value),placeholder:i,onClear:()=>h("")})}),0===k.length&&""!==f?(0,p.jsx)("div",{className:"text-muted-foreground relative cursor-default select-none px-4 py-2",children:"No results found."}):k.map(e=>(0,p.jsx)(S.ListboxOption,{className:({focus:e})=>tM("relative cursor-default select-none py-2 pl-4 pr-4 transition-colors",e?"bg-muted text-foreground":"text-foreground"),value:e,children:({selected:t,focus:n})=>(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsx)("div",{className:"flex-shrink-0",children:t?(0,p.jsx)(en.CheckSquare,{className:tM("h-4 w-4",n?"text-foreground":"text-primary")}):(0,p.jsx)(er.Square,{className:tM("h-4 w-4",n?"text-foreground":"text-muted-foreground")})}),(0,p.jsx)("span",{className:tM("block truncate",t?"font-medium":"font-normal"),children:e.label})]})},e.value))]})})]})},"CompetitorIcon",0,i3,"ConfirmDialog",0,function({open:e,title:t,message:n,
98children:r,confirmLabel:i="Confirm",cancelLabel:o="Cancel",onConfirm:s,onCancel:a,isLoading:l=!1,variant:c="danger",icon:u}){let d=(0,m.useId)(),f=(0,m.useId)(),g=(0,m.useRef)(null),[x,v]=(0,m.useState)({title:t,message:n,confirmLabel:i,cancelLabel:o,variant:c,icon:u});(0,m.useEffect)(()=>{e&&v({title:t,message:n,confirmLabel:i,cancelLabel:o,variant:c,icon:u})},[e,t,n,i,o,c,u]);let y=e?t:x.title,b=e?n:x.message,w=e?i:x.confirmLabel,S=e?o:x.cancelLabel,E=e?c:x.variant,N=e?u:x.icon,C=tX[E],P="none"===N?null:"warning"===N||"warning"===E?k.AlertTriangle:j.Trash2,T=r?`${f} ${f}-extra`:f;return(0,p.jsxs)(tY,{open:e,onClose:l?()=>{}:a,preventClose:l,role:"alertdialog",ariaLabelledBy:d,ariaDescribedBy:T,initialFocus:g,className:"w-full max-w-md p-6",children:[P&&(0,p.jsx)("div",{className:"flex justify-center",children:(0,p.jsx)("div",{className:tM("rounded-full p-3",C.iconContainer),children:(0,p.jsx)(P,{className:"h-6 w-6"})})}),(0,p.jsx)("h2",{id:d,className:tM("text-center text-lg font-semibold text-foreground",P?"mt-4":""),children:y}),(0,p.jsx)("p",{id:f,className:"mt-2 text-center text-sm text-muted-foreground",children:b}),r&&(0,p.jsx)("div",{id:`${f}-extra`,className:"mt-3",children:r}),(0,p.jsxs)("div",{className:"mt-6 flex gap-3",children:[(0,p.jsx)(tU,{ref:g,variant:"secondary",size:"md",onClick:a,disabled:l,className:"flex-1",children:S}),(0,p.jsxs)(tU,{variant:"primary",size:"md",onClick:()=>{s()},disabled:l,className:tM("flex-1 gap-2",C.button),children:[l&&(0,p.jsx)(h.Loader2,{className:"h-4 w-4 animate-spin"}),w]})]})]})},"Container",0,function({className:e,children:t}){return(0,p.jsx)("div",{className:(0,u.clsx)(e,"px-6 lg:px-8"),children:(0,p.jsx)("div",{className:"mx-auto max-w-7xl",children:t})})},"ContainerNoPadding",0,function({className:e,children:t}){return(0,p.jsx)("div",{className:(0,u.clsx)(e,""),children:(0,p.jsx)("div",{className:"mx-auto max-w-7xl",children:t})})},"CookieBanner",0,oF,"CookieRoot",0,function(){let e=oD();return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(oF,{consentContext:e}),(0,p.jsx)(oz,{consentContext:e})]})},"CookieSettingsDrawer",0,oz,"CopyButton",0,function({text:e,className:t="",iconSize:n="h-4 w-4",toastMessage:r="Copied to clipboard!"}){let[i,o]=(0,m.useState)(!1),s=async()=>{try{await navigator.clipboard.writeText(e),o(!0),G.toast.success(r,{duration:2e3}),setTimeout(()=>o(!1),2e3)}catch(n){let t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t),o(!0),G.toast.success(r,{duration:2e3}),setTimeout(()=>o(!1),2e3)}};return(0,p.jsx)(tU,{type:"button",variant:"ghost",size:"icon",onClick:()=>void s(),className:`hover:bg-muted/50 shrink-0 cursor-pointer ${t}`,disabled:i,children:i?(0,p.jsx)(g.Check,{className:`${n} text-primary`}):(0,p.jsx)(ei.Copy,{className:`${n} text-muted-foreground hover:text-foreground`})})},"CrosspostIcon",0,i6,"DEFAULT_CONFIG",0,oE,"DEFAULT_CONSENT",0,oC,"DashboardHeader",0,function({leftContent:e,rightContent:t}){return(0,p.jsxs)("header",{className:"border-border bg-background fixed left-0 top-0 z-50 flex h-16 w-full items-center justify-between border-b px-4",children:[e,t]})},"DesktopNav",0,n3,"DiagnosticsDrawer",0,iP,"Dialog",0,tq,"DialogNew",0,function(e){var{open:t,onClose:n,title:r,children:i,footer:o,showBack:a=!1,onBack:l,panelClassName:c,size:u="md",hideCloseButton:d=!1,preventClose:f=!1,className:h}=e,g=(0,s.__objRest)(e,["open","onClose","title","children","footer","showBack","onBack","panelClassName","size","hideCloseButton","preventClose","className"]);let x=(0,m.useId)();return(0,p.jsxs)(tY,(0,s.__spreadProps)((0,s.__spreadValues)({open:t,onClose:n,preventClose:f,ariaLabelledBy:x,className:tM("w-full",tJ[u],c,h)},g),{children:[(0,p.jsxs)("div",{className:"relative flex items-start justify-between p-6 pb-0",children:[a&&(0,p.jsx)("button",{type:"button",onClick:l,className:"rounded-full p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2","aria-label":"Go back",children:(0,p.jsx)(y.ArrowLeft,{className:"h-5 w-5"})}),(0,p.jsx)("h2",{id:x,className:tM("flex-1 text-lg font-semibold text-foreground",a?"text-center":"pr-10 text-left"),children:r}),!d&&(0,p.jsx)("button",{type:"button",onClick:n,disabled:f,className:tM("roun
98ded-full p-1 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",!a&&"absolute right-6 top-6"),"aria-label":"Close dialog",children:(0,p.jsx)(b.X,{className:"h-5 w-5"})})]}),(0,p.jsx)("div",{className:"min-h-0 flex-1 overflow-hidden p-6",children:i}),o&&(0,p.jsx)("div",{className:"flex-shrink-0 border-t border-border p-6 pt-4",children:o})]}))},"DialogPrimitive",0,tY,"DimensionCardV2",0,iA,"DiscordIcon",0,function({className:e}){return(0,p.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",className:tM(e),children:(0,p.jsx)("path",{d:"M20.317 4.369a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.443.804-.656 1.245a18.56 18.56 0 0 0-5.316 0c-.213-.441-.446-.87-.656-1.245a.074.074 0 0 0-.079-.037A19.791 19.791 0 0 0 3.683 4.37a.074.074 0 0 0-.034.043c-1.43 5.028-1.43 9.925 0 14.953a.074.074 0 0 0 .034.043A19.882 19.882 0 0 0 8.569 21a.075.075 0 0 0 .079-.037c.21-.375.443-.804.656-1.245a18.56 18.56 0 0 0 5.316 0c.213.441.446.87.656-1.245a.075.075 0 0 0 .079.037c1.64.428 3.333.633 5.023.633a.075.075 0 0 0 .075-.075c.746-2.5.93-5.075.93-7.658a.075.075 0 0 0-.075-.075c-.005-.005-.01-.01-.015-.015H20.33a.074.074 0 0 0-.013-.025zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419s.974-2.419 2.157-2.419c1.183 0 2.157 1.085 2.157 2.419s-.974 2.419-2.157 2.419zm7.96 0c-1.183 0-2.157-1.085-2.157-2.419s.974-2.419 2.157-2.419c1.183 0 2.157 1.085 2.157 2.419s-.974 2.419-2.157 2.419z"})})},"Dropdown",0,function(e){return(0,p.jsx)(C.Menu,(0,s.__spreadValues)({},e))},"DropdownButton",0,nt,"DropdownDivider",0,function(e){return(0,p.jsx)("hr",(0,s.__spreadProps)((0,s.__spreadValues)({},e),{className:"bg-border mx-[-0.25rem] my-1 h-px border-0"}))},"DropdownItem",0,nr,"DropdownMenu",0,nn,"ErrorDisplay",0,({errorId:e,onRetry:t,onStartOver:n,className:r=""})=>{let i=rk(e),o=rj[i.severity],s=rS[i.severity];return(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},className:`mx-auto w-full max-w-2xl ${r}`,children:(0,p.jsx)(t0,{className:`border-2 p-8 text-center ${o}`,children:(0,p.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,p.jsx)("div",{className:"mb-4 text-6xl",children:s}),(0,p.jsx)("h2",{className:"mb-2 text-2xl font-bold",children:i.title}),(0,p.jsx)("p",{className:"mb-4 max-w-md text-lg",children:i.description}),(0,p.jsx)("p",{className:"mb-6 max-w-md text-sm opacity-80",children:i.action}),(0,p.jsxs)("div",{className:"flex w-full max-w-md flex-col gap-3 sm:flex-row",children:[t&&(0,p.jsxs)(tU,{onClick:t,variant:"primary",className:"flex flex-1 items-center gap-2",children:[(0,p.jsx)(es,{className:"h-4 w-4"}),"Try Again"]}),n&&(0,p.jsxs)(tU,{onClick:n,variant:"secondary",className:"flex flex-1 items-center gap-2",children:[(0,p.jsx)(ts,{className:"h-4 w-4"}),"Start Over"]})]})]})})})},"ErrorType",0,rE,"FeatureShowcaseGrid",0,function({cards:e,sharedImageAltText:t}){if(3!==e.length)return console.error("FeatureShowcaseGrid expects exactly 3 cards. Received:",e.length),null;let n=[{title:e[0].title,description:e[0].description,imageSrc:e[0].imageSrc,detailText:e[0].detailText,colSpan:2,rowSpan:1},{title:e[1].title,description:e[1].description,imageSrc:e[1].imageSrc,detailText:e[1].detailText,colSpan:2,rowSpan:1},{title:e[2].title,description:e[2].description,imageSrc:e[2].imageSrc,detailText:e[2].detailText,colSpan:1,rowSpan:2,right:!0}],r=(0,H.useAnimation)(),i=(0,H.useAnimation)(),o=(0,H.useAnimation)(),s=(0,m.useRef)({x:0,y:0}),a=(0,m.useRef)({x:0,y:0}),l=(0,m.useRef)({x:0,y:0}),c=(0,m.useRef)(null),u=(0,m.useRef)(null),d=(0,m.useRef)(null),f=(0,m.useRef)(null),[h,g]=(0,m.useState)(.6);(0,m.useEffect)(()=>{let e=()=>{g(window.innerWidth<=768?.2:.6)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let x=(0,V.useInView)(f,{amount:h,once:!0}),[v,y]=(0,m.useState)(!1),[b,w]=(0,m.useState)(!1);(0,m.useEffect)(()=>{let e=async()=>{y(!0),w(!0);let e={opacity:1,clipPath:"circle(150% at 0px 0px)",transition:{opacity:{duration:.1,ease:"linear"},clipPath:{duration:3,ease:"easeOut"}}},t={opacity:0,clipPath:"circle(0% at 0px 0px)",transition:{opacity:{duration:.4,ease:"linear"},clipPath:{duration:.5,ease:"easeIn"}}};if(await new Promise(e=>setTimeout(e,150)),f.current&&(await r.start(e),f.current)){if((await i.start(e),f.current)&&(await o.start(e),f.current)){if(await new Promise(e=>setTimeout(e,600)),!f.current)return void w(!1);await Promise.all([r.start(t),i.start(t),o.start(t)]),w(!1)}}};return x&&!v&&e(),()=>{r.stop(),i.stop(),o.stop()}},[x,v,r,i,o]);let k=(e,t,n,r)=>{if(b||!r.current)return;t.stop();let i=r.current.getBoundingClientRect(),o=e.clientX-i.left,s=e.clientY-i.top;n.current={x:o,y:s},t.start({opacity:1,clipPath:`circle(150% at ${o}px ${s}px)`,transition:{opacity:{duration:.1,ease:"linear"},clipPath:{duration:3,ease:"easeOut"}}})},j=(e,t,n)=>{if(b)return;let{x:r,y:i}=t.current;e.start({opacity:0,clipPath:`circle(0% at ${r}px ${i}px)`,transition:{opacity:{duration:.4,ease:"linear"},clipPath:{duration:.5,ease:"easeIn"}}})};return(0,p.jsxs)("div",{ref:f,className:"flex lg:flex-row flex-col gap-6 rounded-3xl shadow-2xl w-full items-stretch relative",children:[(0,p.jsx)(L.AnimatePresence,{children:b&&(0,p.jsx)(A.motion.div,{initial:{opacity:0}
98,animate:{opacity:0},exit:{opacity:0},className:"absolute inset-0 z-30 bg-transparent pointer-events-auto"},"interaction-blocker")}),(0,p.jsxs)("div",{className:"flex flex-col gap-6 flex-1 min-h-0",children:[(0,p.jsxs)(A.motion.div,{ref:c,className:`relative overflow-hidden rounded-3xl shadow-lg p-px ring-1 ring-inset ring-emerald-900 ${b?"pointer-events-none":""}`,variants:nS,initial:"initial",whileHover:"hover",onHoverStart:e=>k(e,r,s,c),onHoverEnd:()=>j(r,s,c),children:[(0,p.jsx)(A.motion.div,{className:"absolute inset-0 rounded-3xl",style:{background:"#00d492"},initial:{opacity:0,clipPath:"circle(0% at 0px 0px)"},animate:r}),(0,p.jsxs)("div",{className:"relative flex flex-col sm:flex-row items-stretch rounded-[calc(1.5rem-1px)] h-full bg-[#000d0a] overflow-hidden",children:[(0,p.jsxs)("div",{className:"w-full sm:w-[70%] p-8 order-1 sm:order-2",children:[(0,p.jsx)(nk,{as:"h3",className:"mb-2",children:n[0].title}),(0,p.jsxs)(nj,{className:"whitespace-pre-line text-gray-200",children:[n[0].description,n[0].detailText&&(0,p.jsx)("span",{className:"italic mt-2 block text-gray-400",children:n[0].detailText})]})]}),(0,p.jsxs)("div",{className:"relative w-full h-48 sm:h-auto sm:w-[30%] flex-shrink-0 overflow-hidden \n                rounded-b-[calc(1.5rem-1px)] sm:rounded-b-none sm:rounded-l-[calc(1.5rem-1px)] order-2 sm:order-1",children:[(0,p.jsx)(T.default,{src:n[0].imageSrc,alt:t,fill:!0,className:"absolute inset-0 object-contain scale-150"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-[#000d0a]/30"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-t sm:bg-gradient-to-r from-transparent via-transparent to-[#000d0a]"})]})]})]}),(0,p.jsxs)(A.motion.div,{ref:u,className:`relative overflow-hidden rounded-3xl shadow-lg flex-1 min-h-0 p-px ring-1 ring-inset ring-emerald-900 ${b?"pointer-events-none":""}`,variants:nS,initial:"initial",whileHover:"hover",onHoverStart:e=>k(e,i,a,u),onHoverEnd:()=>j(i,a,u),children:[(0,p.jsx)(A.motion.div,{className:"absolute inset-0 rounded-3xl",style:{background:"#00d492"},initial:{opacity:0,clipPath:"circle(0% at 0px 0px)"},animate:i}),(0,p.jsxs)("div",{className:"relative flex flex-col sm:flex-row items-stretch rounded-[calc(1.5rem-1px)] h-full bg-[#000d0a] overflow-hidden",children:[(0,p.jsxs)("div",{className:"w-full sm:w-[70%] p-8 order-1 sm:order-2",children:[(0,p.jsx)(nk,{as:"h3",className:"mb-2",children:n[1].title}),(0,p.jsxs)(nj,{className:"whitespace-pre-line text-gray-200",children:[n[1].description,n[1].detailText&&(0,p.jsx)("span",{className:"italic mt-2 block text-gray-400",children:n[1].detailText})]})]}),(0,p.jsxs)("div",{className:"relative w-full h-48 sm:h-auto sm:w-[30%] flex-shrink-0 overflow-hidden \n                  rounded-b-[calc(1.5rem-1px)] sm:rounded-b-none sm:rounded-l-[calc(1.5rem-1px)] order-2 sm:order-1",children:[(0,p.jsx)(T.default,{src:n[1].imageSrc,alt:t,fill:!0,className:"absolute inset-0 object-contain scale-150"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-[#000d0a]/60"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-t sm:bg-gradient-to-r from-transparent via-transparent to-[#000d0a]"})]})]})]})]}),(0,p.jsx)("div",{className:"flex flex-1",children:(0,p.jsxs)(A.motion.div,{ref:d,className:`relative overflow-hidden rounded-3xl shadow-lg h-full w-full p-px ring-1 ring-inset ring-emerald-900 ${b?"pointer-events-none":""}`,variants:nS,initial:"initial",whileHover:"hover",onHoverStart:e=>k(e,o,l,d),onHoverEnd:()=>j(o,l,d),children:[(0,p.jsx)(A.motion.div,{className:"absolute inset-0 rounded-3xl",style:{background:"#00d492"},initial:{opacity:0,clipPath:"circle(0% at 0px 0px)"},animate:o}),(0,p.jsxs)("div",{className:"relative flex flex-col items-stretch rounded-[calc(1.5rem-1px)] h-full bg-[#000d0a] overflow-hidden",children:[(0,p.jsxs)("div",{className:"p-8",children:[(0,p.jsx)(nk,{as:"h3",className:"mb-2",children:n[2].title}),(0,p.jsxs)(nj,{className:"text-gray-200",children:[n[2].description,n[2].detailText&&(0,p.jsx)("span",{className:"italic mt-2 block text-gray-400",children:n[2].detailText})]})]}),(0,p.jsxs)("div",{className:`relative overflow-hidden rounded-b-[calc(1.5rem-1px)] w-full h-48 md:h-64 ${n[2].right?"lg:h-full lg:flex-grow":""}`,children:[" ",(0,p.jsx)(T.default,{src:n[2].imageSrc,alt:t,fill:!0,className:"absolute inset-0 object-cover"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-[#000d0a]/50"}),(0,p.jsx)("div",{className:"absolute inset-0 pointer-events-none bg-gradient-to-b from-[#000d0a] via-[#000d0a]/50 to-transparent"})]})]})]})})]})},"FileOrgIcon",0,i7,"Footer",0,function({translations:e}){return(0,p.jsx)("footer",{className:"border-border w-full border-t pb-6",children:(0,p.jsxs)("div",{className:"container px-6 lg:px-8",children:[(0,p.jsxs)("div",{className:"flex w-full flex-col items-center gap-8 py-8 md:flex-row md:items-start md:justify-between",children:[(0,p.jsxs)("div",{className:"order-1 flex flex-col items-center gap-6 md:items-start md:justify-between md:self-stretch",children:[(0,p.jsx)(ni,{className:"h-9 w-auto"}),(0,p.jsx)("div",{className:"hidden md:block",children:(0,p.jsx)(ro,{linksData:e.socialLinks})})]}),(0,p.jsx)("div",{className:"order-2",children:(0,p.jsx)(n9,{sitemapTranslations:e.sitemap})}),(0,p.jsx)("div",{className:"order-3 md:hidden",children:(0,p.jsx)(ro,{linksData:e.socialLinks})})]}),(0,p.jsxs)("div",{className:"border-border flex w-full flex-row items-center justify-between gap-6 border-t py-8",children:[(0,p.jsx)(rs,{translations:e}),(0,p.jsx)(rp,{})]})]})})},"FooterActionBar",0,function({children:e,visible:t=!0,positionClass:n="bottom-20 md:bottom-12",widthClass:r="w-full",zIndex:i="z-30",className:o}){return(0,p.jsx)(L.AnimatePresence,{children:t&&(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:12}
98,animate:{opacity:1,y:0},exit:{opacity:0,y:12},transition:{duration:.2,ease:"easeOut"},className:tM("fixed left-0 flex justify-center pointer-events-none",n,r,i,o),children:(0,p.jsx)("div",{className:"pointer-events-auto",children:e})})})},"FundingIcon",0,i9,"GA_EVENTS",0,t$,"GenericPlusIcon",0,nu,"GitHubIcon",0,function({className:e}){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:tM("lucide lucide-github",e),children:[(0,p.jsx)("path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4"}),(0,p.jsx)("path",{d:"M9 18c-4.51 2-5-2-7-2"})]})},"GoogleIcon",0,function({className:e}){return(0,p.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 48 48",className:tM(e),children:[(0,p.jsx)("path",{fill:"#FFC107",d:"M43.611 20.083H42V20H24v8h11.303c-1.649 4.657-6.08 8-11.303 8c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C12.955 4 4 12.955 4 24s8.955 20 20 20s20-8.955 20-20c0-1.341-.138-2.65-.389-3.917"}),(0,p.jsx)("path",{fill:"#FF3D00",d:"m6.306 14.691l6.571 4.819C14.655 15.108 18.961 12 24 12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C34.046 6.053 29.268 4 24 4C16.318 4 9.656 8.337 6.306 14.691"}),(0,p.jsx)("path",{fill:"#4CAF50",d:"M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238A11.9 11.9 0 0 1 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44"}),(0,p.jsx)("path",{fill:"#1976D2",d:"M43.611 20.083H42V20H24v8h11.303a12.04 12.04 0 0 1-4.087 5.571l.003-.002l6.19 5.238C36.971 39.205 44 34 44 24c0-1.341-.138-2.65-.389-3.917"})]})},"GradientBottom",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({},n),{className:(0,u.clsx)(t,"bg-linear-180 from-[#000] via-40% to-[#000e0a] sm:bg-linear-180")}))},"GradientTop",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("div",(0,s.__spreadProps)((0,s.__spreadValues)({},n),{className:(0,u.clsx)(t,"bg-linear-180 from-[#000e0a] via-40% to-[#000] sm:bg-linear-180")}))},"GroupedListbox",0,function({options:e,value:t,onChange:n,className:r}){let i=(t8(e)?e.flatMap(e=>e.options):e).find(e=>e.value===t);return(0,p.jsx)("div",{className:tM("w-full",r),children:(0,p.jsx)(S.Listbox,{value:t,onChange:n,children:(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsxs)(S.ListboxButton,{className:"border-border bg-background group relative h-9 w-full cursor-pointer rounded-lg border py-2 pl-3 pr-10 text-left text-sm shadow-sm focus:outline-none",children:[(0,p.jsx)("span",{className:"block truncate",children:i?i.label:""}),(0,p.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,p.jsx)(N.ChevronsUpDown,{className:"text-muted-foreground group-hover:text-foreground h-4 w-4 transition-colors","aria-hidden":"true"})})]}),(0,p.jsx)(v.Transition,{as:m.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,p.jsx)(S.ListboxOptions,{className:"bg-card absolute z-10 mt-1 max-h-60 w-max min-w-full overflow-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:t8(e)?e.map(e=>(0,p.jsxs)("div",{className:"py-1 first:pt-0 last:pb-0",children:[(0,p.jsx)("div",{className:"text-muted-foreground px-3 py-2 text-xs font-semibold",children:e.label}),e.options.map(e=>(0,p.jsx)(t7,{option:e},e.value.toString()))]},e.label)):e.map(e=>(0,p.jsx)(t7,{option:e},e.value.toString()))})})]})})})},"Header",0,function({translations:e}){return(0,p.jsx)("header",{className:"relative z-[50] w-full",children:(0,p.jsx)(rc,{})})},"HeaderNavbar",0,rc,"HeaderSearch",0,function(){return(0,p.jsxs)("button",{type:"button",className:"group flex h-10 w-64 items-center gap-x-3 rounded-md border border-neutral-700 bg-neutral-800/50 px-3 text-sm text-neutral-400 shadow-sm transition-colors hover:border-neutral-600 hover:bg-neutral-800/80 focus:outline-none focus:ring-2 focus:ring-primary","aria-label":"Search documentation",children:[(0,p.jsx)(I.Search,{className:"h-5 w-5 flex-shrink-0"}),(0,p.jsx)("span",{className:"flex-grow text-left",children:"Search docs..."}),(0,p.jsx)("kbd",{className:"hidden rounded-md border border-neutral-700 bg-neutral-900/80 p-1.5 text-xs font-semibold text-neutral-500 group-hover:border-neutral-600 sm:inline-block",children:"⌘K"})]})},"Heading",0,function(e){var{className:t,as:n="h1",dark:r=!1}=e,i=(0,s.__objRest)(e,["className","as","dark"]);return(0,p.jsx)(n,(0,s.__spreadProps)((0,s.__spreadValues)({},i),{"data-dark":r?"true":void 0,className:tM(t,"heading")}))},"HoverTooltip",0,nV,"IconToggle",0,function({options:e,value:t,onChange:n,className:r}){let i=e.findIndex(e=>e.value===t),o=100/e.length,s="0.125rem";return(0,p.jsxs)("div",{className:tM("relative flex gap-0.5 rounded-lg border border-border bg-background p-0.5",r),children:[(0,p.jsx)(A.motion.div,{className:"bg-muted absolute rounded-md",style:{to
98p:s,bottom:s},initial:!1,animate:{left:`calc(${i*o}% + ${s})`,width:`calc(${o}% - 0.25rem)`},transition:{type:"spring",stiffness:300,damping:30}}),e.map(e=>{let r=e.value===t,i=e.icon;return(0,p.jsx)("button",{type:"button",onClick:()=>n(e.value),className:tM("relative z-0 flex h-9 w-9 items-center justify-center rounded-md transition-colors",r?"bg-muted text-foreground":"cursor-pointer text-muted-foreground hover:text-foreground hover:bg-muted/50"),style:{flex:"1 1 0",minWidth:0},"aria-label":e.label||e.value,title:e.label||e.value,children:(0,p.jsx)(i,{className:"h-4 w-4"})},e.value)})]})},"InfiniteMarquee",0,function({children:e,durationFactor:t=25,direction:n="left",pauseOnHover:r=!0,className:i}){let o=(0,m.useRef)(null),s=(0,H.useAnimation)(),a=(0,V.useInView)(o,{once:!1,margin:"100px"}),[l,c]=(0,m.useState)(!1),u=m.default.Children.toArray(e),d=[...u,...u];return((0,m.useEffect)(()=>{a?r&&l?s.stop():s.start({x:"left"===n?["0%","-50%"]:["-50%","0%"],transition:{ease:"linear",duration:t,repeat:1/0}}):s.stop()},[a,l,s,n,t,r]),0===u.length)?(0,p.jsx)(p.Fragment,{}):(0,p.jsx)("div",{ref:o,className:tM("relative w-full overflow-hidden","mask-fade-x",i),onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),children:(0,p.jsx)(A.motion.div,{className:"flex",style:{width:"200%"},animate:s,initial:{x:"left"===n?"0%":"-50%"},children:d.map((e,t)=>(0,p.jsx)("div",{className:"flex-shrink-0",children:e},t))})})},"InlineSplitHeading",0,function({children:e,className:t,variant:n="muted",as:r="h2"}){var i,o,s;let a=e.split(/<0>|<\/0>/),l=null!=(i=a[1])?i:"",c=(null!=(o=a[0])?o:"")+(null!=(s=a[2])?s:""),u=e.startsWith("<0>"),d=(0,p.jsx)("span",{className:"primary"===n?"text-primary":void 0,children:l}),f=(0,p.jsx)("span",{className:"muted"===n?"text-muted-foreground":void 0,children:c});return(0,p.jsx)(r,{className:tM("text-center text-2xl md:text-4xl",t),children:u?(0,p.jsxs)(p.Fragment,{children:[d," ",f]}):(0,p.jsxs)(p.Fragment,{children:[f," ",d]})})},"Input",0,nz,"InstagramIcon",0,oe,"InvoiceIcon",0,ot,"IsometricGrid",0,nl,"IsometricGridBackground",0,function(){return(0,p.jsx)("div",{className:"absolute inset-0 w-full h-full overflow-hidden",children:(0,p.jsx)(nl,{gridSize:40,lineColor:"#ffffff",lineOpacity:.07,xAngle:30,yAngle:-30,className:"transform scale-150"})})},"JobsIcon",0,on,"Label",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("label",(0,s.__spreadProps)((0,s.__spreadValues)({},n),{className:tM("text-muted-foreground text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",t)}))},"Lead",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("p",(0,s.__spreadValues)({className:tM(t,"lead")},n))},"LeadSpan",0,function(e){var{className:t}=e,n=(0,s.__objRest)(e,["className"]);return(0,p.jsx)("span",(0,s.__spreadValues)({className:tM(t,"leadspan")},n))},"LegalDocIcon",0,or,"LinkedInIcon",0,oi,"Listbox",0,t6,"LoadingOverlay",0,function({isLoading:e}){return e?(0,p.jsx)("div",{className:"absolute inset-0 z-50 flex items-center justify-center",children:(0,p.jsx)(tD,{size:"md"})}):null},"LoadingSpinner",0,tD,"Logo",0,function({className:e}){return(0,p.jsx)("div",{className:tM(e,"relative"),children:(0,p.jsx)(T.default,{src:"/jentic-full-logo.svg",alt:"Jentic Logo",width:125,height:40,priority:!0})})},"MAX_FILE_SIZE",0,0x4600000,"MainScoreCardV2",0,r0,"MobileNav",0,rd,"MobileNavButton",0,ru,"MultiSelectListbox",0,function({options:e,selected:t,onChange:n,placeholder:r,className:i="",buttonText:o}){let s=null!=o?o:t.length>0?t.join(", "):r;return(0,p.jsx)("div",{className:tM("w-full",i),children:(0,p.jsx)(S.Listbox,{value:t,onChange:n,multiple:!0,children:(0,p.jsxs)("div",{className:"relative",children:[(0,p.jsxs)(S.Listbox.Button,{className:"border-border bg-background relative h-9 w-full cursor-default rounded-lg border py-2 pl-3 pr-10 text-left text-sm shadow-sm focus:outline-none",children:[(0,p.jsx)("span",{className:"block truncate",children:s}),(0,p.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2",children:(0,p.jsx)(N.ChevronsUpDown,{className:"text-muted-foreground h-4 w-4","aria-hidden":"true"})})]}),(0,p.jsx)(v.Transition,{as:m.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,p.jsx)(S.Listbox.Options,{className:"bg-card absolute z-10 mt-1 max-h-60 w-full overflow-auto rounded-md py-1 text-sm shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none",children:e.map(e=>(0,p.jsx)(S.Listbox.Option,{className:({active:e})=>tM("relative cursor-default select-none py-2 pl-10 pr-4",e?"bg-muted text-foreground":"text-foreground"),value:e,children:({selected:t})=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("span",{className:`block truncate ${t?"font-semibold":"font-normal"}`,children:e}),t?(0,p.jsx)("span",{className:"text-primary absolute inset-y-0 left-0 flex items-center pl-3",children:(0,p.jsx)(g.Check,{className:"h-5 w-5","aria-hidden":"true"})}):null]})},e))})})]})})})},"NO_TIMEOUT",0,ok,"NewsletterDraftIcon",0,oo,"NewsletterIcon",0,os,"NotificationProvider",0,function({children:e,position:t="bottom-right",mobilePosition:n,offset:r,mobileOffset:i,offsetX:o,mobileOffsetX:s}){let a=nF(601),l=a&&n?n:t,c=a&&void 0!==i?i:r,u=a&&void 0!==s?s:o,d=u?{"--offset-x":"number"==typeof u?`${u}px`:u}:void 0;return(0,p.jsxs)(p.Fragment,{children:[e,(0,p.jsx)(G.Toaster,{position:l,offset:c,theme:"system",icons:{success:(0,p.jsx)(q.CircleCheck,{className:"h-[18px] w-[18px] text-emerald-500"}),error:(0,p.jsx)(K.CircleX,{className:"h-[18px] w-[18px] text-red-500"}),info:(0,p.jsx)(Y.Info,{className:"h-[18px] w-[18px] text-sky-500"}),warning:(0,p.jsx)(J.TriangleAlert,{className:"h-[18px] w-[18px] text-amber-500"}),loading:(0,p.jsx)(X.LoaderCircle,{className:"h-[18px] w-[18px] animate-spin text-muted-foreground"})}
98,toastOptions:{classNames:{toast:"group toast !rounded-xl !border !shadow-xl !shadow-black/[0.04] dark:!shadow-black/20 !bg-white dark:!bg-zinc-900 !border-zinc-200/80 dark:!border-zinc-700/60 !text-zinc-950 dark:!text-zinc-50 !px-4 !py-3.5 !gap-3 !font-['Nunito_Sans',sans-serif]",title:"!text-[13px] !font-semibold !leading-tight",description:"!text-[12px] !leading-snug !mt-0.5 !text-zinc-500 dark:!text-zinc-400",actionButton:"!rounded-lg !text-[12px] !font-semibold !px-3 !py-1.5 !bg-zinc-900 !text-white dark:!bg-zinc-100 dark:!text-zinc-900",cancelButton:"!rounded-lg !text-[12px] !font-medium !px-3 !py-1.5 !bg-zinc-100 !text-zinc-600 dark:!bg-zinc-800 dark:!text-zinc-400",closeButton:"!border-0 !bg-transparent !shadow-none !text-zinc-400 hover:!text-zinc-600 dark:!text-zinc-500 dark:hover:!text-zinc-300",success:"!border-emerald-200/60 dark:!border-emerald-800/40",error:"!border-red-200/60 dark:!border-red-900/40",info:"!border-sky-200/60 dark:!border-sky-800/40",warning:"!border-amber-200/60 dark:!border-amber-800/40"}},className:u?(null==l?void 0:l.includes("right"))?"[&>li]:!right-[var(--offset-x)]":(null==l?void 0:l.includes("left"))?"[&>li]:!left-[var(--offset-x)]":"":"",style:d,duration:4e3,gap:8})]})},"OneDriveIcon",0,oa,"OptionSelector",0,function({label:e,options:t,selectedValue:n,onValueChange:r,name:i,className:o=""}){let s=e=>{e.disabled||r(e.id)};return(0,p.jsxs)("div",{className:`flex flex-col gap-2 ${o}`,children:[(0,p.jsx)("div",{className:"text-[20px] font-bold leading-[20px] text-foreground",children:(0,p.jsx)("p",{children:e})}),t.map(e=>{let t=n===e.id,r=e.disabled;return(0,p.jsxs)("div",{className:` ${nU} ${r?nG:nW} ${t?nq:nK} `,onClick:()=>s(e),children:[(0,p.jsx)("div",{className:"absolute left-6 top-1/2 -translate-y-1/2 flex items-center",children:(0,p.jsx)("div",{className:nY,children:t&&(0,p.jsx)("div",{className:nJ,children:(0,p.jsx)("div",{className:nX})})})}),(0,p.jsxs)("div",{className:"absolute left-14 top-1/2 -translate-y-1/2 flex items-center gap-3",children:[(0,p.jsx)("span",{className:"font-medium text-foreground-lighter leading-[20px]",children:e.label}),e.comingSoon&&(0,p.jsx)(nh,{className:"bg-accent-yellow border-2 border-accent-yellow px-4 py-1.5 rounded-full text-[12px] font-bold text-foreground leading-[16px] tracking-wide",children:"Coming soon"}),e.tag&&e.tag]}),(0,p.jsx)("input",{type:"radio",name:i,value:e.id,checked:t,onChange:()=>s(e),disabled:r,className:"sr-only"})]},e.id)})]})},"PerspectiveGrid",0,nc,"PerspectiveGridBackground",0,function(){return(0,p.jsx)("div",{className:"absolute inset-0 w-full h-full overflow-hidden",children:(0,p.jsx)(nl,{lineColor:"#ffffff",lineOpacity:.08,perspective:!0,vanishingY:25,gridDensity:35,className:"transform scale-110"})})},"PerspectiveGridMinimal",0,function(){return(0,p.jsx)("div",{className:"absolute inset-0 h-full w-full overflow-hidden",children:(0,p.jsx)(nc,{lineColor:"#ffffff",lineOpacity:.08,horizonPosition:25,gridDensity:25,bottomWidth:95,showDots:!1,className:"scale-105 transform"})})},"PerspectiveGridRetro80s",0,function(){return(0,p.jsx)("div",{className:"absolute inset-0 h-full w-full overflow-hidden",children:(0,p.jsx)(nc,{lineColor:"#ff00ff",lineOpacity:.4,horizonPosition:28,lineThickness:1,gridDensity:30,bottomWidth:100,backgroundFill:"#000000",showDots:!0,dotSize:1.5,dotColor:"#00ffff",className:"scale-110 transform"})})},"PerspectiveGridWide",0,function(){return(0,p.jsx)("div",{className:"absolute inset-0 h-full w-full overflow-hidden",children:(0,p.jsx)(nc,{lineColor:"#ffffff",lineOpacity:.12,horizonPosition:30,gridDensity:40,bottomWidth:130,lineThickness:.6,showDots:!0,dotSize:1,enableFade:!0,fadeStartPosition:0,fadeEndPosition:40,className:"scale-110 transform"})})},"PlaybookCard",0,nm,"PlaybookGrid",0,function({playbooks:e}){return(0,p.jsx)(nD,{className:"grid grid-cols-1 gap-6 md:auto-rows-fr md:grid-cols-2",children:e.map(e=>(0,p.jsx)(nm,{playbook:e},e.id))})},"PlusContainer",0,function({children:e,className:t,style:n,bordered:r=!1}){return(0,p.jsxs)("div",{className:tM("relative",r&&"border-border border",t),style:n,children:[(0,p.jsx)(nu,{placement:"top left",className:"fill-foreground"}),(0,p.jsx)(nu,{placement:"top right",className:"fill-foreground"}),(0,p.jsx)(nu,{placement:"bottom left",className:"fill-foreground"}),(0,p.jsx)(nu,{placement:"bottom right",className:"fill-foreground"}),e]})},"PlusGrid",0,function({className:e="",children:t}){return(0,p.jsx)("div",{className:(0,u.clsx)(e,"plus-grid-group"),children:t})},"PlusGridItem",0,function({className:e="",children:t}){return(0,p.jsxs)("div",{className:(0,u.clsx)(e,"group/item relative"),children:[(0,p.jsx)(nu,{placement:"top left",className:"fill-emerald-900/70 hidden group-first/item:block"}),(0,p.jsx)(nu,{placement:"top right",className:"fill-emerald-900/70"}),(0,p.jsx)(nu,{placement:"bottom left",className:"fill-emerald-900/70 hidden group-first/item:group-last/row:block"}),(0,p.jsx)(nu,{placement:"bottom right",className:"fill-emerald-900/70 hidden group-last/row:block"}),t]})},"PlusGridRow",0,function({className:e="",children:t}){return(0,p.jsx)("div",{className:(0,u.clsx)(e,"group/row relative isolate","border-t border-emerald-900","last:border-b last:border-emerald-900"),children:t})},"ProcessingStatus",0,rg,"ProductDescIcon",0,ol,"ProgressOverview",0,rm,"ReceiptIcon",0,oc,"RefreshButton",0,function({onRefresh:e,className:t="",iconSize:n="h-4 w-4",title:r="Refresh"}){let[i,o]=(0,m.useState)(!1),s=(0,m.useCallback)(()=>{i||(o(!0),e(),setTimeout(()=>
98o(!1),600))},[i,e]);return(0,p.jsx)(tU,{type:"button",variant:"ghost",size:"icon",onClick:s,className:`hover:bg-muted/50 shrink-0 cursor-pointer ${t}`,disabled:i,title:r,children:(0,p.jsx)(A.motion.div,{animate:i?{rotate:360}:{rotate:0},transition:i?{duration:.6,ease:"easeInOut"}:{duration:0},children:(0,p.jsx)(es,{className:`${n} text-muted-foreground hover:text-foreground`})})})},"ReportDisplayV2",0,iH,"ReviewsIcon",0,ou,"SEVERITY_COLORS",0,r1,"ScoreCardButton",0,function({score:e,report:t,apiName:n,apiVersion:r,vendor:i,projectedScore:o=null,projectedReport:s=null,className:a}){var l,c,u;let[d,f]=(0,m.useState)(!1),h=(null==(l=null==t?void 0:t.summary)?void 0:l.grade)||null,g=(null==(c=null==t?void 0:t.summary)?void 0:c.level)||null,x=(null==(u=null==t?void 0:t.summary)?void 0:u.dimensions)||[],v=null!=o&&"number"==typeof o,y=v?o-e:0,b=t?(0,p.jsxs)("div",{className:"min-w-[280px] space-y-3",children:[(0,p.jsxs)("div",{children:[(0,p.jsx)("div",{className:"text-foreground text-sm font-semibold",children:n}),(0,p.jsxs)("div",{className:"text-muted-foreground mt-0.5 text-xs",children:["v",r," • ",i]})]}),(0,p.jsxs)("div",{className:"border-border space-y-2 border-t pt-2",children:[h&&(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Grade:"}),(0,p.jsx)("span",{className:"text-foreground font-semibold",children:h})]}),g&&(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:"Level:"}),(0,p.jsx)("span",{className:"text-foreground font-semibold",children:g})]})]}),Array.isArray(x)&&x.length>0&&(0,p.jsxs)("div",{className:"border-border border-t pt-2",children:[(0,p.jsx)("div",{className:"text-foreground mb-2 text-xs font-semibold",children:"Dimensions:"}),(0,p.jsxs)("div",{className:"space-y-1.5",children:[x.slice(0,4).map((e,t)=>{var n,r;let i=(null==e?void 0:e.name)||"Unknown",o=null!=(r=null==(n=null==e?void 0:e.scores)?void 0:n.current)?r:0;return(0,p.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,p.jsx)("span",{className:"text-muted-foreground",children:i}),(0,p.jsx)("span",{className:"text-foreground font-medium",children:o})]},t)}),x.length>4&&(0,p.jsxs)("div",{className:"text-muted-foreground pt-1 text-xs italic",children:["+",x.length-4," more dimensions"]})]})]}),(0,p.jsx)("div",{className:"border-border border-t pt-2",children:(0,p.jsx)("div",{className:"text-muted-foreground text-xs italic",children:"Click to view full report"})})]}):null,w=(0,p.jsxs)("button",{type:"button",onClick:()=>{(t||s)&&f(!0)},disabled:!t&&!s,className:tM("border-border/50 bg-muted/30 group relative flex items-center gap-3 rounded-lg border px-3 py-2 transition-all",t||s?"hover:border-primary/30 hover:bg-muted/50 hover:ring-primary/20 cursor-pointer hover:shadow-sm hover:ring-1":"cursor-default opacity-60",a),children:[(0,p.jsx)("div",{className:"shrink-0",children:(0,p.jsx)(rQ,{score:v?o:e,size:40,delay:0})}),(0,p.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col items-start justify-center",children:[v?(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[(0,p.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,p.jsx)("span",{className:"text-foreground text-base font-bold leading-none",children:e}),(0,p.jsx)("span",{className:"text-muted-foreground text-xs font-medium leading-none",children:"/100"})]}),(0,p.jsx)(th,{className:"text-muted-foreground h-3.5 w-3.5 shrink-0"}),(0,p.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,p.jsx)("span",{className:"text-primary text-base font-bold leading-none",children:o}),(0,p.jsx)("span",{className:"text-muted-foreground text-xs font-medium leading-none",children:"/100"})]}),v&&y>0&&(0,p.jsxs)("div",{className:"bg-primary/10 flex items-center gap-0.5 rounded-full px-1.5 py-0.5",children:[(0,p.jsx)(tw,{className:"text-primary h-3 w-3"}),(0,p.jsxs)("span",{className:"text-primary text-xs font-semibold",children:["+",y]})]})]}):(0,p.jsxs)("div",{className:"flex items-baseline gap-1.5",children:[(0,p.jsx)("span",{className:"text-foreground text-base font-bold leading-none",children:e}),(0,p.jsx)("span",{className:"text-muted-foreground text-xs font-medium leading-none",children:"/100"})]}),h&&(0,p.jsxs)("span",{className:"text-muted-foreground mt-0.5 text-xs font-medium leading-none",children:["Grade ",h]})]}),(t||s)&&(0,p.jsx)("div",{className:"bg-primary/10 group-hover:bg-primary/20 shrink-0 rounded-full p-1.5 transition-colors",children:(0,p.jsx)(Y.Info,{className:"text-primary h-3.5 w-3.5 transition-colors"})})]});return(0,p.jsxs)(p.Fragment,{children:[t&&b?(0,p.jsx)(nV,{content:b,children:w}):w,(t||s)&&(0,p.jsx)(tq,{isOpen:d,onClose:()=>f(!1),title:`API Score Report: ${n}`,panelClassName:"max-w-7xl",children:(0,p.jsx)(iH,{report:s||t})})]})},"ScorecardComingSoon",0,function(){return(0,p.jsx)("div",{className:"flex min-h-[80dvh] flex-col items-center justify-center px-4 text-center",children:(0,p.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(0,p.jsx)("div",{className:"bg-primary/10 text-primary mb-6 inline-flex items-center rounded-full px-4 py-2 text-sm font-medium",children:"Coming Soon"}),(0,p.jsx)("h1",{className:"text-foreground mb-4 text-4xl font-bold tracking-tight sm:text-5xl",children:"AI Readiness Scorecard"}),(0,p.jsx)("p",{className:"text-muted-foreground mb-8 text-lg",children:"We're working on something exciting! Our scorecard will help you evaluate how ready your APIs are for the age of AI and agents."}),(0,p.jsxs)("div",{className:"mb-8 grid gap-4 sm:grid-cols-3",children:[(0,p.jsxs)("div",{className:"bg-card border-border flex h-full flex-col items-center rounded-lg border p-5 text-center",children:[(0,p.jsx)("div",{className:"bg-primary/10 mb-3 flex h-10 w-10 items-center justify-center rounded-lg",children:(0,p.jsx)(I.Search,{className:"text-primary h-5 w-5"})}),(0,p.jsx)("h3",{className:"text-foreground mb-2 text-sm font-semibold",children:"AI Readiness Analysis"}),(0,p.jsx)("p",{className:"text-muted-foreground text-xs leading-snug",children:"Comprehensive evaluation across multiple dimensions"})]}),(0,p.jsxs)("div",{className:"bg-card border-border flex h-full flex-col items-center rounded-lg border p-5 text-center",children:[(0,p.jsx)("div",{className:"bg-primary/10 mb-3 flex h-10 w-10 items-center justify-center rounded-lg",children:(0,p.jsx)(tr,{className:"text-primary h-5 w-5"})}),(0,p.jsx)("h3",{className:"text-foreground mb-2 text-sm font-semibold",children:"Detailed Reports"}),(0,p.jsx)("p",{className:"text-muted-foreground text-xs leading-snug",children:"Get actionable insights and improvement recommendations"})]}),(0,p.jsxs)("div",{className:"bg-card border-border flex h-full flex-col items-center rounded-lg border p-5 text-center",children:[(0,p.jsx)("div",{className:"bg-primary/10 mb-3 flex h-10 w-10 items-center justify-center rounded-lg",children:(0,p.jsx)(tS,{className:"text-primary h-5 w-5"})}),(0,p.jsx)("h3",{className:"text-foreground mb-2 text-sm font-semibold",children:"Enterprise Ready"}),(0,p.jsx)("p",{className:"text-muted-foreground text-xs leading-snug",children:"Built for scale with security and compliance in mind"})]})]}),(0,p.jsxs)(tU,{onClick:()=>{window.open("https://jentic.com/scorecard-preview","_blank")},variant:"primary",size:"lg",className:"inline-flex items-center gap-2",children:["See How It Works",(0,p.jsx)(R.ArrowUpRight,{className:"h-4 w-4"})]}),(0,p.jsxs)("p",{className:"text-muted-foreground mt-6 text-sm",children:["Want to be notified when it's ready?"," ",(0,p.jsx)("button",{onClick:()=>{window.open("https://jentic.com/scorecard-preview#form","_blank")}
98,className:"text-primary cursor-pointer font-medium hover:underline",children:"Join our waitlist"})]})]})})},"SearchInput",0,nd,"SegmentedToggle",0,function({options:e,value:t,onChange:n,layoutId:r,className:i}){return(0,p.jsx)(ep,{id:r,children:(0,p.jsx)("div",{className:tM("border-border bg-muted/50 flex rounded-lg border p-0.5",i),children:e.map(e=>{let r=t===e.value;return(0,p.jsxs)("button",{type:"button",onClick:()=>n(e.value),className:tM("relative rounded-md px-3 py-1 text-xs font-medium transition-colors",!r&&"cursor-pointer"),children:[r&&(0,p.jsx)(A.motion.div,{layoutId:"activeSegment",className:"bg-foreground/10 ring-border/50 absolute inset-0 rounded-md shadow-sm ring-1",transition:{type:"spring",stiffness:500,damping:35}}),(0,p.jsx)("span",{className:tM("relative z-10 transition-colors",r?"text-foreground":"text-muted-foreground hover:text-foreground"),children:e.label})]},e.value)})})})},"SemicircularScore",0,function({score:e,size:t={width:128,height:96},delay:n=.8,gradientId:r="scoreGradient",showLabel:i=!0,labelText:o="out of 100"}){return(0,p.jsx)(A.motion.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{delay:n-.2},className:"absolute left-1/2 top-0 my-6 flex -translate-x-1/2 flex-col items-center sm:my-0",children:(0,p.jsxs)("div",{className:"relative",style:{width:t.width,height:t.height},children:[(0,p.jsxs)("svg",{className:"absolute inset-0 h-full w-full",viewBox:"0 0 120 60",xmlns:"http://www.w3.org/2000/svg",children:[(0,p.jsx)("path",{d:"M 20 50 A 40 40 0 0 1 100 50",stroke:"currentColor",strokeWidth:"6",fill:"none",className:"text-border/30"}),(0,p.jsx)(A.motion.path,{d:"M 20 50 A 40 40 0 0 1 100 50",stroke:`url(#${r})`,strokeWidth:"6",fill:"none",strokeLinecap:"round",initial:{pathLength:0},animate:{pathLength:e/100},transition:{duration:1.5,delay:n}}),(0,p.jsx)("defs",{children:(0,p.jsxs)("linearGradient",{id:r,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[(0,p.jsx)("stop",{offset:"0%",stopColor:"hsl(var(--primary))"}),(0,p.jsx)("stop",{offset:"50%",stopColor:"hsl(var(--primary))"}),(0,p.jsx)("stop",{offset:"100%",stopColor:"hsl(var(--primary))"})]})})]}),i&&(0,p.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[(0,p.jsx)(A.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:n+.2},className:"text-foreground text-2xl font-bold",style:{marginTop:30},children:Math.round(e)}),(0,p.jsx)(A.motion.div,{initial:{opacity:0}
98,animate:{opacity:1},transition:{delay:n+.4},className:"text-muted-foreground text-xs",children:o})]})]})})},"SentimentIcon",0,od,"SheetPrimitive",0,function({open:e,onClose:t,children:n,side:r="right",className:i,overlayClassName:o,preventClose:s=!1,initialFocus:a,onAfterClose:l,ariaLabel:c,ariaLabelledBy:u}){let d=(0,m.useRef)(null),f=(0,m.useRef)(null),[h,g]=(0,m.useState)("closed"),[x,v]=(0,m.useState)(!1),y=tQ[r];(0,m.useEffect)(()=>{v(!0)},[]),(0,m.useEffect)(()=>{e?"closed"===h&&g("entering"):("open"===h||"entering"===h)&&g("exiting")},[e]),(0,m.useEffect)(()=>{if("entering"===h){let e=requestAnimationFrame(()=>{requestAnimationFrame(()=>{g("open")})});return()=>cancelAnimationFrame(e)}if("exiting"===h){let e=setTimeout(()=>{g("closed"),null==l||l()},300);return()=>clearTimeout(e)}},[h,l]),(0,m.useEffect)(()=>{if("entering"===h&&(f.current=document.activeElement),"open"===h){let e=setTimeout(()=>{var e;if(null==a?void 0:a.current)a.current.focus();else{let t=null==(e=d.current)?void 0:e.querySelector(tZ);null==t||t.focus()}},50);return()=>clearTimeout(e)}},[h,a]),(0,m.useEffect)(()=>{if("closed"===h&&f.current){let e=f.current;f.current=null,setTimeout(()=>{null==e||e.focus()},10)}},[h]),(0,m.useEffect)(()=>{"closed"!==h?(document.documentElement.style.setProperty("overscroll-behavior","contain"),document.body.style.setProperty("overscroll-behavior","contain")):(document.documentElement.style.removeProperty("overscroll-behavior"),document.body.style.removeProperty("overscroll-behavior"))},[h]),(0,m.useEffect)(()=>()=>{document.documentElement.style.removeProperty("overscroll-behavior"),document.body.style.removeProperty("overscroll-behavior")},[]);let b=(0,m.useCallback)(e=>{var n;if("open"===h){if("Escape"===e.key&&!s){e.preventDefault(),t();return}if("Tab"===e.key){let t=null==(n=d.current)?void 0:n.querySelectorAll(tZ);if(!(null==t?void 0:t.length))return;let r=t[0],i=t[t.length-1];e.shiftKey&&document.activeElement===r?(e.preventDefault(),i.focus()):e.shiftKey||document.activeElement!==i||(e.preventDefault(),r.focus())}}},[h,t,s]);(0,m.useEffect)(()=>(document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)),[b]);let k=(0,m.useCallback)(()=>{s||"open"!==h||t()},[s,t,h]);if(!x||"closed"===h)return null;let j="open"===h;return(0,w.createPortal)((0,p.jsxs)("div",{className:"fixed inset-0 z-50",style:{overscrollBehavior:"contain"},children:[(0,p.jsx)("div",{className:tM("absolute inset-0 overflow-hidden bg-black/50 backdrop-blur-sm","transition-opacity duration-300 ease-out",j?"opacity-100":"opacity-0",o),style:{overscrollBehavior:"contain"},onClick:k,"aria-hidden":"true"}),(0,p.jsx)("div",{className:tM("fixed",y.container),children:(0,p.jsx)("div",{ref:d,role:"dialog","aria-modal":"true","aria-label":c,"aria-labelledby":u,className:tM("bg-card border-border shadow-xl","transition-transform duration-300 ease-out",y.panel,"right"===r&&"border-l","left"===r&&"border-r","bottom"===r&&"border-t",j?y.enter:y.exit,i),style:{willChange:"transform",overscrollBehavior:"contain"},children:n})})]}),document.body)},"Skeleton",0,np,"SlackIcon",0,op,"SocialCapsIcon",0,of,"SocialIconBsky",0,ri,"SocialIconDiscord",0,rn,"SocialIconFacebook",0,function(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({viewBox:"0 0 16 16",fill:"currentColor"},e),{children:(0,p.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 8.05C16 3.603 12.418 0 8 0S0 3.604 0 8.05c0 4.016 2.926 7.346 6.75 7.95v-5.624H4.718V8.05H6.75V6.276c0-2.017 1.194-3.131 3.022-3.131.875 0 1.79.157 1.79.157v1.98h-1.008c-.994 0-1.304.62-1.304 1.257v1.51h2.219l-.355 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.95z"})}))},"SocialIconHackerNews",0,function(e){return(0,p.jsx)("svg",(0,s.__spreadProps)((0,s.__spreadValues)({viewBox:"0 0 16 16",fill:"currentColor"},e),{children:(0,p.jsx)("path",{d:"M0 16V0h16v16H0zM4.634 3.931L7.375 9.07v3.376H8.43V9.132l2.766-5.2H10.03L8.392 7.182c-.248.497-.459.956-.459.956s-.198-.472-.434-.956L5.887 3.931H4.634z",fillRule:"evenodd",clipRule:"evenodd"})}))},"SocialIconLinkedIn",0,rt,"SocialIconX",0,re,"SocialIconYouTube",0,rr,"SplitHeading",0,function({children:e,className:t,variant:n="muted",as:r="h2"}){var i,o,s;let a=e.split(/<0>|<\/0>/),l=null!=(i=a[1])?i:"",c=(null!=(o=a[0])?o:"")+(null!=(s=a[2])?s:""),u=e.startsWith("<0>"),d=(0,p.jsx)("span",{className:tM("block","primary"===n?"text-primary":"text-foreground"),children:l}),f=(0,p.jsx)("span",{className:tM("block","muted"===n?"text-muted-foreground":"text-foreground"),children:c});return(0,p.jsx)(r,{className:tM("flex flex-col gap-2 text-center text-2xl md:text-4xl",t),children:u?(0,p.jsxs)(p.Fragment,{children:[d," ",f]}):(0,p.jsxs)(p.Fragment,{children:[f," ",d]})})},"SpotlightContainer",0,function({children:e,className:t="",style:n,spotlightSize:r=200,spotlightOpacity:i=.15,spotlightBlur:o=120,spotlightColor:s="rgba(16, 185, 129, 1)",disabled:a=!1}){let l=(0,m.useRef)(null),[c,d]=(0,m.useState)({x:0,y:0}),[f,h]=(0,m.useState)(!1);(0,m.useEffect)(()=>
98{if(a)return;let e=e=>{if(!l.current)return;let t=l.current.getBoundingClientRect();d({x:e.clientX-t.left,y:e.clientY-t.top})},t=()=>h(!0),n=()=>h(!1),r=l.current;return r&&(r.addEventListener("mousemove",e),r.addEventListener("mouseenter",t),r.addEventListener("mouseleave",n)),()=>{r&&(r.removeEventListener("mousemove",e),r.removeEventListener("mouseenter",t),r.removeEventListener("mouseleave",n))}},[a]);let g={position:"absolute",left:`${c.x}px`,top:`${c.y}px`,width:`${r}px`,height:`${r}px`,borderRadius:"50%",background:s,opacity:f?i:0,filter:`blur(${o}px)`,transform:"translate(-50%, -50%)",pointerEvents:"none",transition:"opacity 0.15s ease",zIndex:1};return(0,p.jsxs)("div",{ref:l,className:(0,u.clsx)("relative overflow-hidden",t),style:n,children:[!a&&(0,p.jsx)("div",{style:g,"aria-hidden":"true"}),(0,p.jsx)("div",{className:"relative z-10",children:e})]})},"StatusDisplay",0,rx,"StatusIndicator",0,function({active:e,className:t}){return(0,p.jsxs)("div",{className:tM("relative flex h-3 w-3 items-center justify-center",t),children:[e&&(0,p.jsx)("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-400 opacity-75"}),(0,p.jsx)("span",{className:tM("relative inline-flex h-3 w-3 rounded-full",{"bg-green-400":e,"bg-red-500":!e})})]})},"SubNavigation",0,function({tabs:e,currentPath:t,onNavigate:n,ariaLabel:r="Sub navigation",className:i}){let o=e.findIndex(e=>t===e.value||t.startsWith(`${e.value}/`)),s=(0,m.useRef)([]),[a,l]=(0,m.useState)(null),c=()=>{if(o>=0&&s.current[o]){let e=s.current[o];if(e){let t=e.parentElement;if(t){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect();l({left:r.left-n.left+r.width/2-16})}}}};return(0,m.useEffect)(()=>{c()},[o,t]),(0,m.useEffect)(()=>{let e=()=>{c()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[o,t]),(0,p.jsx)("div",{className:tM("border-border bg-background w-full border-b",i),children:(0,p.jsx)("div",{className:"mx-auto w-full max-w-[95%]",children:(0,p.jsxs)("nav",{className:"relative flex justify-center gap-1 py-3","aria-label":r,children:[a&&(0,p.jsx)(A.motion.span,{className:"bg-primary absolute bottom-0 h-0.5 w-8 rounded-full",initial:!1,animate:{left:a.left},transition:{type:"spring",stiffness:300,damping:30}}),e.map((e,r)=>{let i=t===e.value||t.startsWith(`${e.value}/`);return(0,p.jsx)("button",{ref:e=>{s.current[r]=e},type:"button",onClick:()=>n(e.value),className:tM("relative rounded-lg px-4 py-2 text-sm font-medium transition-all","focus-visible:ring-ring whitespace-nowrap focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",i?"bg-primary/10 text-primary font-semibold":"text-muted-foreground hover:bg-muted hover:text-foreground cursor-pointer"),children:e.label},e.value)})]})})})},"Subheading",0,function(e){var{className:t,as:n="h2"}=e,r=(0,s.__objRest)(e,["className","as"]);return(0,p.jsx)(n,(0,s.__spreadProps)((0,s.__spreadValues)({},r),{className:tM("subheading",t)}))},"SubheadingMonospace",0,nk,"SuggestionCarousel",0,function({suggestions:e,page:t,activeIndex:n,isPaused:r,interval:i,onClick:o,onMouseEnter:s,onMouseLeave:a}){return(0,p.jsx)("div",{className:"relative mt-4 flex w-full items-center justify-center",children:(0,p.jsx)(L.AnimatePresence,{mode:"wait",children:(0,p.jsx)(A.motion.div,{className:"grid w-full grid-cols-2 gap-x-2 gap-y-3 sm:flex sm:flex-wrap sm:justify-center sm:gap-4",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.4,ease:"easeInOut"},children:e.map((e,t)=>(0,p.jsxs)(tU,{variant:"secondary",onMouseEnter:s,onMouseLeave:a,className:(0,u.clsx)("relative h-full overflow-hidden card-hover border-border bg-card text-sm font-normal text-foreground-lighter backdrop-blur-sm transition-all duration-300",n===t&&""),onClick:()=>o(t),children:[e,(0,p.jsx)(R.ArrowUpRight,{className:"ml-1.5 h-4 w-4 flex-shrink-0"}),n===t&&!r&&(0,p.jsx)("div",{className:"absolute bottom-0 left-0 h-0.5 w-full bg-white/10",children:(0,p.jsx)(A.motion.div,{className:"h-full bg-primary",initial:{width:"0%"},animate:{width:"100%"},transition:{duration:i/1e3,ease:"linear"}},n)})]},t))},t)})})},"SvgLogo",0,ni,"Switch",0,function({checked:e,onChange:t,disabled:n=!1,size:r="md",className:i,ariaLabel:o,label:s,description:a,id:l}){let c=nH[r],u=!s&&!a,d=(0,p.jsx)("button",{type:"button",role:"switch","aria-checked":e,"aria-label":o||s||"Toggle",id:l,onClick:()=>{n||t(!e)},disabled:n,className:tM("relative inline-flex shrink-0 cursor-pointer items-center rounded-full transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2 focus-visible:ring-offset-background",c.track,e?"bg-primary":"bg-muted-foreground
98/30",n&&"cursor-not-allowed opacity-50",u&&i),children:(0,p.jsx)(A.motion.span,{className:tM("pointer-events-none inline-block rounded-full bg-white shadow-sm ring-0",c.thumb),initial:!1,animate:{x:function(e,t){let{padding:n,trackW:r,thumbW:i}=nH[e];return t?r-i-n:n}(r,e)},transition:{type:"spring",stiffness:500,damping:30}})});return u?d:(0,p.jsxs)("div",{className:tM("flex items-start justify-between gap-4",n&&"opacity-50",i),children:[(0,p.jsxs)("div",{className:"flex-1 space-y-0.5",children:[s&&(0,p.jsx)("label",{htmlFor:l,className:tM("text-sm font-medium text-foreground",!n&&"cursor-pointer"),children:s}),a&&(0,p.jsx)("p",{className:"text-sm text-muted-foreground",children:a})]}),d]})},"Table",0,function({columns:e,data:t,getRowKey:n,isLoading:r=!1,loadingRows:i=10,emptyState:o=(0,p.jsx)("div",{className:"text-muted-foreground p-4 text-center",children:"No data available."}),noResultsState:s=(0,p.jsx)("div",{className:"text-muted-foreground p-4 text-center",children:"No results found."}),initialSortColumn:a=null,initialSortDirection:l="asc",onSortChange:c,getRowClassName:u,manualSorting:d=!1}){let[f,h]=(0,m.useState)(a),[g,x]=(0,m.useState)(l);(0,m.useEffect)(()=>{h(a)},[a]),(0,m.useEffect)(()=>{x(l)},[l]);let v=(0,m.useMemo)(()=>d||!f||"string"!=typeof f?t:[...t].sort((e,t)=>{let n=e[f],r=t[f];if(n===r)return 0;let i=0;return null!==n&&null!==r&&(i="string"==typeof n&&"string"==typeof r?n.localeCompare(r):n-r),"asc"===g?i:-i}),[t,f,g,d]);return(0,p.jsx)("div",{className:"border-border custom-scrollbar w-full overflow-x-auto rounded-lg border",children:(0,p.jsxs)("table",{className:"divide-border min-w-full divide-y",children:[(0,p.jsx)("thead",{className:"bg-table-header",children:(0,p.jsx)("tr",{children:e.map(e=>(0,p.jsx)("th",{scope:"col",className:tM("text-muted-foreground whitespace-nowrap px-6 py-3 text-left text-xs font-medium uppercase tracking-wider",e.enableSorting&&e.accessorKey&&"cursor-pointer select-none"),onClick:()=>(e=>{let{enableSorting:t,accessorKey:n}=e;if(!t||!n)return;let r="asc";f===n?x(r="asc"===g?"desc":"asc"):(h(n),x(r="asc")),null==c||c({column:n,direction:r})})(e),children:(0,p.jsxs)("div",{className:"flex items-center gap-2",children:[e.header,f===e.accessorKey&&("asc"===g?(0,p.jsx)(Z.ChevronUp,{className:"h-4 w-4"}):(0,p.jsx)(P.ChevronDown,{className:"h-4 w-4"}))]})},e.id))})}),(0,p.jsx)("tbody",{className:"divide-border bg-table-body divide-y",children:r?Array.from({length:i}).map((t,n)=>(0,p.jsx)("tr",{children:e.map(e=>(0,p.jsx)("td",{className:tM("overflow-hidden whitespace-nowrap px-6 py-4 text-sm",!e.className&&"min-w-0 max-w-0",e.className),children:(0,p.jsx)(np,{className:"h-5 w-full"})},e.id))},`skeleton-${n}`)):v.length>0?v.map(t=>(0,p.jsx)("tr",{className:null==u?void 0:u(t),children:e.map(e=>(0,p.jsx)("td",{className:tM("overflow-hidden whitespace-nowrap px-6 py-4 text-sm",!e.className&&"min-w-0 max-w-0",e.className),children:e.cell(t)},e.id))},n(t))):(0,p.jsx)("tr",{children:(0,p.jsx)("td",{colSpan:e.length,className:"p-0",children:0===t.length?o:s})})})]})})},"Tag",0,nh,"TechStackIcon",0,oh,"TextLink",0,nf,"Textarea",0,function(e){var{className:t,resizable:n="vertical"}=e,r=(0,s.__objRest)(e,["className","resizable"]);let i=(()=>{switch(n){case"none":return"resize-none";case"vertical":default:return"resize-y";case"horizontal":return"resize-x";case"both":return"resize"}})();return(0,p.jsx)("textarea",(0,s.__spreadValues)({className:tM("border-border text-foreground ring-offset-background flex min-h-[80px] w-full rounded-lg border bg-transparent px-3 py-2 text-sm","placeholder:text-muted-foreground","focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","custom-scrollbar",i,t)},r))},"ThemeBridgeCookie",0,function(){let{theme:e,setTheme:t}=eX(),n=(0,m.useRef)(null);return(0,m.useEffect)(()=>{let r=oW();r&&r!==e&&(t(r),oB("Set theme from cookie on mount",r)),n.current=r},[]),(0,m.useEffect)(()=>{if(e&&oU(e)){let t=(()=>{if("u"<typeof window)return"";let e=window.location.hostname;if("localhost"===e||"127.0.0.1"===e)return"";if(e.includes("jentic.com"))return".jentic.com";if(e.includes("jenticdev.net"))return".jenticdev.net";let t=e.split(".");return t.length>=2?`.${t.slice(-2).join(".")}`:""})(),r=t?`; Domain=${t}`:"",i="https:"===window.location.protocol?"; Secure":"",o=new Date(Date.now()+31536e6).toUTCString();try{document.cookie=`${oV}=${encodeURIComponent(e)}; Path=/; Expires=${o}${i}; SameSite=Lax${r}`,oB("Set theme cookie",{theme:e,domain:t})}catch(e){oB("Failed to set theme cookie",e)}n.current=e}},[e]),(0,m.useEffect)(()=>{let r=()=>{let r=oW();r&&r!==n.current&&r!==e&&(oB("Cookie theme changed",{from:n.current,to:r}),n.current=r,t(r))},i=()=>{r()},o=()=>{document.hidden||r()},s=setInterval(r,2e3);return window.addEventListener("focus",i),document.addEventListener("visibilitychange",o),oB("Started cookie polling and event listeners"),()=>{clearInterval(s),window.removeEventListener("focus",i),document.removeEventListener("visibilitychange",o)}},[e,t]),null},"ThemeProvider",0,function(e){var{children:t}=e,n=(0,s.__objRest)(e,["children"]);return(0,p.jsx)(eZ,(0,s.__spreadProps)((0,s.__spreadValues)({}
98,n),{children:t}))},"ThemeSwitcher",0,rp,"ThreeFeatureCardsAnimated",0,function({cards:e}){let[t,n]=(0,m.useState)(null),[r,i]=(0,m.useState)(0),[o,s]=(0,m.useState)(!1),[a,l]=(0,m.useState)(!1),c=(0,m.useRef)(null),u=(0,m.useRef)(null),d=(0,m.useRef)(null),[f,h]=(0,m.useState)(.6);(0,m.useEffect)(()=>{let e=()=>{h(window.innerWidth<=768?.2:.6)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]);let g=(0,V.useInView)(d,{amount:f,once:!0});return(0,m.useEffect)(()=>(u.current&&(clearTimeout(u.current),u.current=null),!g||t||o||a||(u.current=setTimeout(()=>{l(!0),u.current=null},1e3)),()=>{u.current&&clearTimeout(u.current)}),[g,t,o,a]),(0,m.useEffect)(()=>{if(null!==t||!a||o){c.current&&(clearInterval(c.current),c.current=null);return}return c.current||null!==t||!a||o||(i(0),c.current=setInterval(()=>{i(t=>{let n=(t+1)%e.length;return 0===n&&(c.current&&(clearInterval(c.current),c.current=null),s(!0)),n})},3e3)),()=>{c.current&&(clearInterval(c.current),c.current=null)}},[t,a,o]),(0,m.useEffect)(()=>{null===t&&a&&!o&&i(0)},[t,a,o]),(0,p.jsxs)("div",{ref:d,className:"relative flex flex-col lg:flex-row gap-6 justify-center items-center w-full",children:[(0,p.jsx)(L.AnimatePresence,{children:!o&&(0,p.jsx)(A.motion.div,{initial:{opacity:0}
98,animate:{opacity:1},exit:{opacity:0},className:"absolute inset-0 z-30 bg-transparent pointer-events-auto"},"card-interaction-blocker")}),e.map((e,i)=>{let s=1,l=0;return null!==t?(s=t===i?1.04:1,l=20*(t===i)):a&&!o&&(s=r===i?1.04:1,l=10*(r===i)),(0,p.jsxs)(A.motion.div,{className:"bg-transparent rounded-3xl p-6 flex flex-col shadow-md h-[530px] w-full border border-transparent ring-1 ring-inset ring-emerald-900 relative",style:{zIndex:l},initial:!1,animate:{scale:s},transition:nE,onMouseEnter:()=>{o&&n(i)},onMouseLeave:()=>{o&&n(null)},children:[(0,p.jsxs)("div",{children:[(0,p.jsx)(nk,{as:"h3",className:"mb-2",children:e.title}),(0,p.jsx)(nj,{children:e.description}),e.detailText&&(0,p.jsx)("span",{className:"italic mt-2 block text-gray-400 text-sm",children:e.detailText})]}),(0,p.jsx)(T.default,{src:e.imageUrl,alt:e.imageAlt,width:250,height:250,className:"absolute bottom-6 left-1/2 -translate-x-1/2 filter brightness-[.63]"})]},e.id)})]})},"Toggle",0,function({options:e,value:t,onChange:n,className:r}){let i=e.findIndex(e=>e.value===t),o=100/e.length;return(0,p.jsxs)("div",{className:tM("relative flex rounded-full bg-primary/20",r),children:[(0,p.jsx)(A.motion.div,{className:"absolute inset-y-0 rounded-full bg-primary",initial:!1,animate:{left:`${i*o}%`,width:`${o}%`},transition:{type:"spring",stiffness:300,damping:30}}),e.map(e=>{let r=e.value===t;return(0,p.jsx)("button",{type:"button",onClick:()=>n(e.value),className:tM("relative z-10 rounded-full px-8 py-3 text-sm font-medium transition-colors whitespace-nowrap h-full flex items-center justify-center font-bold cursor-pointer",r?"text-background":"text-foreground hover:text-foreground/80"),style:{width:`${o}%`},children:e.label},e.value)})]})},"TranslationContext",0,ra,"TranslationProvider",0,function({translations:e,language:t,children:n}){return(0,p.jsx)(ra.Provider,{value:{translations:e,language:t},children:n})},"TruncatedText",0,function({children:e,tooltipContent:t,className:n,lines:r=1,disableTooltip:i=!1}){let o=(0,m.useRef)(null),[s,a]=(0,m.useState)(!1),l=(0,m.useCallback)(()=>{let e=o.current;e&&(1===r?a(e.scrollWidth>e.clientWidth):a(e.scrollHeight>e.clientHeight))},[r]);(0,m.useEffect)(()=>(l(),window.addEventListener("resize",l),()=>window.removeEventListener("resize",l)),[l,e]);let c=nB[r]||nB[1],u=(0,p.jsx)("span",{ref:o,className:tM("block min-w-0",c,n),children:e});return s&&!i?(0,p.jsx)(nV,{content:null!=t?t:e,children:u}):u},"TwitterIcon",0,om,"UploadInterface",0,rh,"ValidationError",0,rC,"VendorLogo",0,rb,"activateConsentedComponents",0,oI,"activateConsentedScripts",0,oP,"clearAnalysisSession",0,ow,"cn",0,tM,"compressData",0,n2,"countDiagnosticsBySeverity",0,r8,"deactivateRevokedComponents",0,oM,"deactivateRevokedScripts",0,oT,"decodeSessionData",0,function(e){try{let t=atob(e);return JSON.parse(t)}catch(e){return console.error("Failed to decode session data:",e),null}},"decompressData",0,n5,"deleteCookie",0,function(e){"u">typeof document&&(document.cookie=`${e}=; path=/; max-age=0`)},"en",0,ox,"filterDiagnosticsByProvenance",0,r6,"formatDate",0,function(e){return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})},"formatDateShort",0,function(e){return tA.format(new Date(e))},"formatDistanceToNow",0,function(e,t={}){let{locale:n="en"}=t,r=new Intl.RelativeTimeFormat(n,{numeric:"auto"}),i="string"==typeof e?new Date(e):e,o=-Math.round((new Date().getTime()-i.getTime())/1e3),s=Math.round(o/60),a=Math.round(s/60),l=Math.round(a/24),c=Math.round(l/30.44),u=Math.round(l/365.25);return Math.abs(u)>0?r.format(u,"year"):Math.abs(c)>0?r.format(c,"month"):Math.abs(l)>0?r.format(l,"day"):Math.abs(a)>0?r.format(a,"hour"):Math.abs(s)>0?r.format(s,"minute"):r.format(o,"second")},"formatMarkdown",0,nQ,"formatMarkdownWithBreaks",0,function(e){return e&&"string"==typeof e?nQ(e):e},"formatVersionDisplay",0,function(e){let t=`Scoring Engine ${e.engineVersion}`,n=e.frameworkVersion?`Scoring Framework ${e.frameworkVersion}`:null,r=n?`${n} | ${t}`:t;return{engine:t,framework:n,combined:r}},"generateSessionId",0,ob,"getAllLogoPaths",0,function(){return[...ns(),...na()]},"getCompressionPrefix",0,function(){return n0},"getCookie",0,function(e){if("u"<typeof document)return null;let t=document.cookie.match(RegExp(`(^| )${e}=([^;]+)`));if(!t)return null;try{return decodeURIComponent(t[2])}catch(e){return t[2]}},"getLogoViewBox",0,no,"getSeverityClasses",0,function(e){return r3(e)},"getSeverityClassesFromColors",0,r3,"getSeverityColorConfig",0,r5,"getSeverityColorConfiguration",0,function(e){return r5(e)},"getSeverityKey",0,r2,"getSeverityLabel",0,function(e){return r4(e)},"getSeverityLabelFromColors",0,r4,"getStatusIcon",0,function(e){return({passed:tm,warning:k.AlertTriangle,failed:tp.default,skipped:tE})[e]||Y.Info},"isCompressed",0,function(e){return e.startsWith(n0)},"isMarkdown",0,nZ,"isV2Report",0,function(e){return!!(e.metadata&&e.apiMetadata&&e.summary&&Array.isArray(e.details))},"loadAnalysisSession",0,function(e){var t;
98try{console.log("🍪 Loading session from cookie:",e),console.log("🍪 All cookies when loading:",document.cookie);let n=`api-score-session-${e}`,r=null==(t=document.cookie.split("; ").find(e=>e.startsWith(`${n}=`)))?void 0:t.split("=")[1];if(!r){console.log("❌ No session cookie found, checking localStorage...");try{if(!(r=localStorage.getItem(`api-score-session-${e}`)||void 0))return console.log("❌ No session found in localStorage either"),console.log("🍪 Available cookies:",document.cookie.split("; ")),null;console.log("✅ Found session in localStorage:",e)}catch(e){return console.error("❌ localStorage access failed:",e),null}}let i=function(e){try{try{let t=oy.default.decompressFromEncodedURIComponent(e);if(t){let e=JSON.parse(t);return console.log("🗜️ LZ-string URI component decompression successful"),e}}catch(e){console.log("🔄 URI component decompression failed, trying Base64...")}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);let r=new TextDecoder().decode(n),i=oy.default.decompress(r);if(!i)throw Error("Decompression returned null");let o=JSON.parse(i);return console.log("🗜️ Base64 decoded + LZ-string decompression successful"),o}catch(t){console.error("❌ Decompression failed:",t);try{return JSON.parse(atob(e))}catch(e){throw console.error("❌ Fallback decoding also failed:",e),Error("Failed to decompress session data")}}}(r);if(console.log("🍪 Decompressed session data:",i),i.sessionId!==e)return console.log("❌ Session ID mismatch:",{expected:e,actual:i.sessionId}),null;let o=new Date(i.timestamp),s=(new Date().getTime()-o.getTime())/36e5;if(s>24)return console.log("❌ Session expired:",{hoursDiff:s,maxHours:24}),ow(e),null;return console.log("✅ Session loaded successfully from cookie"),i}catch(e){return console.error("❌ Failed to load session data from cookie:",e),null}},"loadSessionFromUrl",0,function(e){try{console.log("🔍 Loading report from URL hash...");let t=e.match(/#session=(.+)/);if(!t)return console.log("❌ No session data found in hash"),null;let n=t[1];console.log("📊 Compressed data length:",n.length,"characters");let r=oy.default.decompressFromEncodedURIComponent(n);if(!r)return console.error("❌ Decompression returned null"),null;let i=JSON.parse(r);return console.log("✅ Successfully loaded report from URL hash"),i}catch(e){return console.error("❌ Failed to load report from URL hash:",e),null}},"logEvent",0,tF,"logoColors",0,{primary:"hsl(var(--primary))",light:"hsl(var(--background))"},"logoIconPaths",0,ns,"logoTextPaths",0,na,"logos",0,nw,"mapHttpStatusToErrorType",0,function(e){return 401===e||403===e?"security":408===e?"timeout":413===e?"file_too_large":422===e?"validation":429===e?"server":e>=400&&e<500?"http":"server"},"mapScoringErrorCode",0,function(e){var t;return null!=(t=rN[e])?t:"server"},"mockScoringResponseV2",0,ov,"openCookieSettings",0,function(){oL.forEach(e=>e(!0))},"parseEngineVersion",0,tI,"playbookCategories",0,["All","Content creation","Data enrichment","Document processing","Productivity","Research & analysis","Social media"],"playbookCompanies",0,["Jentic","StrictlyVC","Acme Corp","Zendesk","Buffer","Slack"],"playbooks",0,og,"registerConsentComponent",0,function(e,t,n,r){oA.set(e,{activate:n,deactivate:r,category:t})},"saveAnalysisSession",0,function(e,t,n){let r=ob(),i={sessionId:r,timestamp:new Date().toISOString(),report:e,fileName:t,fileUrl:n};try{let e=function(e){try{let t=JSON.stringify(e),n=oy.default.compressToEncodedURIComponent(t);if(console.log("🗜️ LZ-string compression (URI component) applied"),console.log("📊 Original JSON size:",t.length,"characters"),console.log("📊 Compressed size:",n.length,"characters"),console.log("📊 Compression ratio:",Math.round((1-n.length/t.length)*100)+"%"),n.length>3e3){console.log("🔄 Trying regular LZ-string + Base64 for better compression...");let e=oy.default.compress(t),r=new TextEncoder().encode(e),i=btoa(String.fromCharCode(...r));if(console.log("📊 Regular compressed size:",e.length,"characters"),console.log("📊 Base64 encoded size:",i.length,"characters"),i.length<n.length)return console.log("✅ Using regular LZ-string + Base64 (smaller)"),i}return console.log("✅ Using LZ-string URI component encoding"),n}catch(t){return console.error("❌ Compression failed:",t),btoa(JSON.stringify(e))}}(i);if(console.log("🗜️ Compressed data size:",e.length,"characters"),e.length>4e3){console.warn("⚠️ Cookie data exceeds 4KB limit:",e.length,"bytes"),console.warn("⚠️ Using localStorage fallback instead");try{return localStorage.setItem(`api-score-session-${r}`,e),console.log("✅ Saved to localStorage:",r),console.log("📊 Compressed size:",e.length,"bytes"),r}catch(e){throw console.error("❌ localStorage also failed:",e),Error("Failed to save session - data too large for both cookies and localStorage")}}let t=`api-score-session-${r}`,n=[`${t}=${e}`,"max-age=86400","path=/","sameSite=Lax",..."u">typeof window&&"https:"===window.location.protocol?["secure"]:[]].join("; ");document.cookie=n,console.log("🍪 Saved session to cookie:",r),console.log("🍪 Cookie options:",n),console.log("🍪 All cookies:",document.cookie),console.log("🔍 Verifying cookie with name:",t),console.log("🔍 All cookies after setting:",document.cookie);let o=document.cookie.split("; ").find(e=>e.startsWith(`${t}=`));if(o)console.log("✅ Cookie verification successful"),console.log("✅ Found cookie:",o.substring(0,50)+"...");else throw console.error("❌ Cookie was not set successfully!"),console.error("❌ Cookie name we were looking for:",t),console.error("❌ Available cookies:",document.cookie.split("; ")),console.error("❌ Cookie size was:",e.length,"bytes"),document.cookie="test-cookie
98=test-value; max-age=60; path=/",console.log("🧪 Set test cookie, all cookies now:",document.cookie),Error("Failed to set cookie - may be too large or blocked");return r}catch(e){throw console.error("Failed to save session data to cookie:",e),Error("Failed to save analysis session. Please try again.")}},"saveSessionToUrl",0,function(e){try{console.log("🗜️ Compressing report for URL hash...");let t=JSON.stringify(e),n=oy.default.compressToEncodedURIComponent(t);console.log("📊 Original report size:",t.length,"characters"),console.log("📊 Compressed size:",n.length,"characters"),console.log("📊 Compression ratio:",Math.round((1-n.length/t.length)*100)+"%");let r=`#session=${n}`;return console.log("✅ Generated URL hash:",r.substring(0,50)+"..."),r}catch(e){throw console.error("❌ Failed to compress report for URL:",e),Error("Failed to compress report data for URL")}},"setCookie",0,function(e,t,n=86400){"u">typeof document&&(document.cookie=`${e}=${encodeURIComponent(t)}; path=/; max-age=${n}; SameSite=Strict`)},"shouldShowRetry",0,function(e){return["api-score.api.request-failed","api-score.api.timeout","api-score.api.network-error","api-score.session.save-failed","api-score.session.load-failed","api-score.cookie.save-failed","api-score.cookie.load-failed","api-score.processing.failed","api-score.processing.timeout","api-score.general.unknown-error","api-score.general.network-error"].includes(e)},"shouldShowStartOver",0,function(e){return["api-score.file.too-large","api-score.file.invalid-type","api-score.file.read-error","api-score.file.empty","api-score.validation.invalid-json","api-score.validation.invalid-yaml","api-score.validation.missing-openapi","api-score.validation.missing-paths","api-score.validation.invalid-structure","api-score.validation.unsupported-version","api-score.session.expired","api-score.session.not-found","api-score.session.invalid-data","api-score.cookie.too-large","api-score.cookie.blocked","api-score.auth.session-missing","api-score.auth.invalid-session","api-score.processing.cancelled"].includes(e)},"suggestions",0,[{label:"Contact enrichment",prompt:"Need fresh sales insights? Just tell Jentic to:",steps:["Pull a list from HubSpot or Excel into a Google Sheet","Look up company news and updates","Automate this as a playbook","Update your sales data once a week"]},{label:"Extract data from websites",prompt:"Need data from 1000 web pages? Just tell Jentic to:",steps:["Visit a list of websites or web pages to research","Scrape specific information from them","Transform the data into an organized spreadsheet","Create a playbook and run it anytime"]},{label:"Data analysis",prompt:"Want to understand customer churn? Just tell Jentic to:",steps:["Connect to our PostgreSQL database","Analyze user activity logs from the last 90 days","Identify patterns preceding account cancellations","Generate a report with key findings and charts"]},{label:"Automate marketing reports",prompt:"Tired of manual reporting? Just tell Jentic to:",steps:["Aggregate data from Google Analytics and HubSpot","Generate a weekly performance report","Highlight key metrics and trends","Email the report to the marketing team every Monday"]},{label:"Competitor monitoring",prompt:"Want to keep an eye on the competition? Just tell Jentic to:",steps:["Monitor a list of competitor websites and social media profiles","Track mentions of new products, pricing changes, and key hires","Compile a weekly competitive intelligence brief","Send the brief to our strategy channel in Slack every Friday"]},{label:"Recruitment sourcing",prompt:"Struggling to find qualified candidates? Just tell Jentic to:",steps:["Scan LinkedIn and developer forums for profiles matching our job description","Filter candidates based on experience, skills, and location","Enrich the list with contact information and portfolio links","Import the qualified leads into our Greenhouse ATS"]},{label:"Summarize customer feedback",prompt:"Overwhelmed by user feedback? Just tell Jentic to:",steps:["Pull all new reviews from G2, Capterra, and our support inbox","Categorize feedback into themes like 'bug report', 'feature request', or 'praise'","Identify the most common feature requests this month","Create a summary document and post it to the #product-feedback channel"]},{label:"Social media management",prompt:"Need to streamline your social media posts? Just tell Jentic to:",steps:["Pull article titles and links from our company blog's RSS feed","Draft engaging social media posts for Twitter and LinkedIn","Create a content calendar in a Google Sheet for approval","Schedule the approved posts via our Buffer account"]},{label:"Financial reconciliation",prompt:"Need to reconcile monthly transactions? Just tell Jentic to:",steps:["Connect to our Stripe account and bank statements via Plaid","Match Stripe payouts to bank deposits","Flag any discrepancies or missing transactions","Generate a reconciliation report for our accounting software"]},{label:"SEO keyword analysis",prompt:"Trying to rank higher on Google? Just tell Jentic to:",steps:["Connect to our Google Search Console account","Identify underperforming keywords with high impression counts","Suggest content optimizations and new blog post ideas","Track keyword ranking changes and report monthly"]},{label:"Invoice processing",prompt:"Spending too much time on invoices? Just tell Jentic to:",steps:["Monitor our '[email protected]' inbox for new PDF attachments","Extract the vendor name, invoice number, amount, and due date","Enter the data into our Xero accounting system","Archive the processed email to an 'invoices-processed' folder"]},{label:"Inventory management",prompt:"Need to prevent stockouts? Just tell Jentic to:",steps:["Connect to our Shopify store's inventory data","Monitor stock levels for our top-selling products","Generate a purchase order when stock drops below 50 units","Email the PO to our supplier and cc the operations team"]},{label:"Triage support tickets",prompt:"Is your support queue overflowing? Just tell Jentic to:",steps:["Read all new tickets in our Zendesk queue","Identify the urgency and topic (e.g., 'b
98illing', 'technical issue')","Automatically route technical issues to the engineering team","Respond to common questions with a pre-written template"]},{label:"Generate sales proposals",prompt:"Want to create proposals faster? Just tell Jentic to:",steps:["Pull customer details from our Salesforce opportunity record","Use a Google Docs template to generate a new proposal","Populate the document with the customer's name, services, and pricing","Save the new proposal as a PDF and attach it to the Salesforce record"]},{label:"Meeting summarization",prompt:"Can't remember what was decided in that meeting? Just tell Jentic to:",steps:["Take the transcript from our recorded Zoom call","Identify the key discussion points and decisions made","List out all action items and assign them to the correct person","Email a concise summary to all meeting attendees"]},{label:"A/B test analysis",prompt:"Need to know which landing page won? Just tell Jentic to:",steps:["Pull conversion data for our recent A/B test from VWO","Calculate the conversion rate for variant A and variant B","Determine the statistical significance of the result","Announce the winning variant and its uplift in the #growth channel"]},{label:"Market trend research",prompt:"Want to stay ahead of industry trends? Just tell Jentic to:",steps:["Scan top industry news sites and publications daily","Identify articles related to AI, automation, and our market","Generate a daily digest with summaries of the top 5 articles","Send the digest to my email every morning at 8 AM"]},{label:"Customer segmentation",prompt:"Want to personalize your email campaigns? Just tell Jentic to:",steps:["Analyze customer purchase history in our Shopify data","Segment customers into groups like 'high-value', 'at-risk', and 'new'","Create tags for each customer segment","Sync these segments to our Mailchimp account for targeted campaigns"]}],"testCookieFunctionality",0,function(){var e;console.log("🧪 Testing cookie functionality...");let t="test-cookie=test-value; max-age=60; path=/";document.cookie=t,console.log("🧪 Set test cookie:",t),console.log("🧪 All cookies after test:",document.cookie),console.log("🧪 Test cookie value:",null==(e=document.cookie.split("; ").find(e=>e.startsWith("test-cookie=")))?void 0:e.split("=")[1]),document.cookie="test-cookie=; max-age=0; path=/",console.log("🧪 Cleared test cookie"),console.log("🧪 Browser cookie limits: ~4KB per cookie, ~50 cookies per domain")},"unregisterConsentComponent",0,function(e){oA.delete(e)},"useApiScoring",0,iG,"useConsent",0,oD,"useErrorMessage",0,function(e){return rk(e)},"useGroupedPagination",0,iC,"useInterval",0,function(e,t){let n=(0,m.useRef)();(0,m.useEffect)(()=>{n.current=e},[e]),(0,m.useEffect)(()=>{if(null!==t){let e=setInterval(function(){n.current&&n.current()},t);return()=>clearInterval(e)}},[t])},"useIsMobile",0,nF,"useLocalPagination",0,iN,"useMediaQuery",0,function(e="(max-width: 767px)"){let[t,n]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{let r=window.matchMedia(e);r.matches!==t&&n(r.matches);let i=()=>n(r.matches);return r.addEventListener("change",i),()=>r.removeEventListener("change",i)},[t,e]),t},"useShareableReport",0,iB,"useTranslation",0,rl,"validateScoringResponse",0,function(e){return!!(e.metadata&&e.apiMetadata&&e.summary&&Array.isArray(e.details))},"withGAEvent",0,tz],523870)},104100,(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},l=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)},c=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;else if(s)return s(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,o,s,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(t=arguments[p],null!=t)for(n in t)r=u(d,n),d!==(i=u(t,n))&&(h&&i&&(l(i)||(o=a(i)))?(o?(o=!1,s=r&&a(r)?r:[]):s=r&&l(r)?r:{}
98,c(d,{name:n,newValue:e(h,s,i)})):void 0!==i&&c(d,{name:n,newValue:i}));return d}},88653,e=>{"use strict";var t=e.i(843476),n=e.i(271645),r=e.i(231178),i=e.i(947414),o=e.i(674008),s=e.i(821476),a=e.i(772846),l=n,c=e.i(737806);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,a.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,a.isHTMLElement)(e)&&e.offsetWidth||0,r=(0,a.isHTMLElement)(e)&&e.offsetHeight||0,i=getComputedStyle(t),o=this.props.sizeRef.current;o.height=parseFloat(i.height),o.width=parseFloat(i.width),o.top=t.offsetTop,o.left=t.offsetLeft,o.right=n-o.width-o.left,o.bottom=r-o.height-o.top,o.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:e,isPresent:r,anchorX:i,anchorY:o,root:s,pop:a}){let f=(0,l.useId)(),h=(0,l.useRef)(null),m=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=(0,l.useContext)(c.MotionConfigContext),x=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=u(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():u(e[t],null)}}}}(...e),e)}(h,!1!==a?e.props?.ref??e?.ref:void 0);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:l,right:c,bottom:u,direction:d}=m.current;if(r||!1===a||!h.current||!e||!t)return;let p="rtl"===d,x="left"===i?p?`right: ${c}`:`left: ${l}`:p?`left: ${l}`:`right: ${c}`,v="bottom"===o?`bottom: ${u}`:`top: ${n}`;h.current.dataset.motionPopId=f;let y=document.createElement("style");g&&(y.nonce=g);let b=s??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
99          [data-motion-pop-id="${f}"] {
100            position: absolute !important;
101            width: ${e}px !important;
102            height: ${t}px !important;
103            ${x}px !important;
104            ${v}px !important;
105          }
106        `),()=>{h.current?.removeAttribute("data-motion-pop-id"),b.contains(y)&&b.removeChild(y)}},[r]),(0,t.jsx)(d,{isPresent:r,childRef:h,sizeRef:m,pop:a,children:!1===a?e:l.cloneElement(e,{ref:x})})}let f=({children:e,initial:r,isPresent:a,onExitComplete:l,custom:c,presenceAffectsLayout:u,mode:d,anchorX:f,anchorY:m,root:g})=>{let x=(0,i.useConstant)(h),v=(0,n.useId)(),y=(0,n.useRef)(a),b=(0,n.useRef)(l);(0,o.useIsomorphicLayoutEffect)(()=>{y.current=a,b.current=l});let w=!0,k=(0,n.useMemo)(()=>(w=!1,{id:v,initial:r,isPresent:a,custom:c,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;l&&l()},register:e=>(x.set(e,!1),()=>{x.delete(e),y.current||x.size||b.current?.()})}),[a,x,l]);return u&&w&&(k={...k}),(0,n.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[a]),n.useEffect(()=>{a||x.size||!l||l()},[a]),e=(0,t.jsx)(p,{pop:"popLayout"===d,isPresent:a,anchorX:f,anchorY:m,root:g,children:e}),(0,t.jsx)(s.PresenceContext.Provider,{value:k,children:e})};function h(){return new Map}var m=e.i(464978);let g=e=>e.key||"";function x(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}e.s(["AnimatePresence",0,({children:e,custom:s,initial:a=!0,onExitComplete:l,presenceAffectsLayout:c=!0,mode:u="sync",propagate:d=!1,anchorX:p="left",anchorY:h="top",root:v})=>{let[y,b]=(0,m.usePresence)(d),w=(0,n.useMemo)(()=>x(e),[e]),k=d&&!y?[]:w.map(g),j=(0,n.useRef)(!0),S=(0,n.useRef)(w),E=(0,i.useConstant)(()=>new Map),N=(0,n.useRef)(new Set),[C,P]=(0,n.useState)(w),[T,A]=(0,n.useState)(w);(0,o.useIsomorphicLayoutEffect)(()=>{!d||y||T.length||b?.()},[y,d,T.length,b]),(0,o.useIsomorphicLayoutEffect)(()=>{j.current=!1,S.current=w;for(let e=0;e<T.length;e++){let t=g(T[e]);k.includes(t)?(E.delete(t),N.current.delete(t)):!0!==E.get(t)&&E.set(t,!1)}},[T,k.length,k.join("-")]);let I=[];if(w!==C){let e=[...w],t=0;for(let n of T){let r=k.indexOf(g(n));-1===r?(e.splice(t++,0,n),I.push(n)):t=r+I.length+1}return"wait"===u&&I.length&&(e=I),A(x(e)),P(w),null}let{forceRender:M}=(0,n.useContext)(r.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:T.map(e=>{let n=g(e),r=(!d||!!y)&&(w===T||k.includes(n));return(0,t.jsx)(f,{isPresent:r,initial:(!j.current||!!a)&&void 0,custom:s,presenceAffectsLayout:c,mode:u,root:v,onExitComplete:r?void 0:()=>
106{if(N.current.has(n)||!E.has(n))return;N.current.add(n),E.set(n,!0);let e=!0;E.forEach(t=>{t||(e=!1)}),e&&(M?.(),A(S.current),d&&b?.(),l&&l())},anchorX:p,anchorY:h,children:e},n)})})}],88653)},846932,476959,130162,83411,965566,260830,287022,763074,133887,930551,997307,560140,325791,486427,472094,571164,138544,617218,100706,275737,386783,231178,737806,821476,947414,674008,347834,721748,528409,893544,430151,783920,344230,215932,515923,83352,372323,876859,889026,749652,661327,464978,768705,836331,772846,e=>{"use strict";let t,n,r,i=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],o=new Set([...i,"pathRotation"]),s=(e,t,n)=>n>t?t:n<e?e:n;e.s(["clamp",0,s],476959);let a={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},l={...a,transform:e=>s(0,1,e)},c={...a,default:1},u=e=>Math.round(1e5*e)/1e5,d=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,p=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,f=(e,t)=>n=>!!("string"==typeof n&&p.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),h=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,s,a]=r.match(d);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},m={...a,transform:e=>Math.round(s(0,255,e))},g={test:f("rgb","red"),parse:h("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+m.transform(e)+", "+m.transform(t)+", "+m.transform(n)+", "+u(l.transform(r))+")"},x={test:f("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:g.transform},v=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),y=v("deg"),b=v("%"),w=v("px"),k=v("vh"),j=v("vw"),S={...b,parse:e=>b.parse(e)/100,transform:e=>b.transform(100*e)},E={test:f("hsl","hue"),parse:h("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+b.transform(u(t))+", "+b.transform(u(n))+", "+u(l.transform(r))+")"},N={test:e=>g.test(e)||x.test(e)||E.test(e),parse:e=>g.test(e)?g.parse(e):E.test(e)?E.parse(e):x.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?g.transform(e):E.transform(e),getAnimatableNone:e=>{let t=N.parse(e);return t.alpha=0,N.transform(t)}},C=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,P="number",T="color",A=/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 I(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=t.replace(A,e=>(N.test(e)?(r.color.push(o),i.push(T),n.push(N.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(P),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function M({split:e,types:t}){let n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){let e=t[o];e===P?i+=u(r[o]):e===T?i+=N.transform(r[o]):i+=r[o]}return i}}let L={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(d)?.length||0)+(e.match(C)?.length||0)>0},parse:function(e){return I(e).values},createTransformer:function(e){return M(I(e))},getAnimatableNone:function(e){let t=I(e);return M(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:N.test(e)?N.getAnimatableNone(e):e)(e,t.split[n])))}},R=new Set(["brightness","contrast","saturate","opacity"]);function _(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(d)||[];if(!r)return e;let i=n.replace(r,""),o=+!!R.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let O=/\b([a-z-]*)\(.*?\)/gu,D={...L,getAnimatableNone:e=>{let t=e.match(O);return t?t.map(_).join(" "):e}},F={...L,getAnimatableNone:e=>{let t=L.parse(e);return L.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},$={...a,transform:Math.round},z={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,rotate:y,pathRotation:y,rotateX:y,rotateY:y,rotateZ:y,scale:c,scaleX:c,scaleY:c,scaleZ:c,skew:y,skewX:y,skewY:y,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:l,originX:S,originY:S,originZ:w,zIndex:$,fillOpacity:l,strokeOpacity:l,numOctaves:$},V={...z,color:N,backgroundColor:N,outlineColor:N,fill:N,stroke:N,borderColor:N,borderTopColor:N,borderRightColor:N,borderBottomColor:N,borderLeftColor:N,filter:D,WebkitFilter:D,mask:F,WebkitMask:F},B=e=>V[e],H=()=>({translate:0,scale:1,origin:0,originPoint:0}),U=()=>({x:H(),y:H()}),W=()=>({min:0,max:0}),G=()=>({x:W(),y:W()});e.s(["createBox",0,G,"createDelta",0,U],130162);let q=e=>!!(e&&e.getVelocity);e.s(["isMotionValue",0,q],83411);let K=new Set(["width","height","top","left","right","bottom",...i]),Y=e=>t=>
106t.test(e),J=[a,w,b,y,j,k,{test:e=>"auto"===e,parse:e=>e}],X=e=>J.find(Y(e));var Z=e.i(247167);let Q=()=>{},ee=()=>{};Z.default,e.s(["invariant",0,ee,"warning",0,Q],965566);let et=e=>t=>"string"==typeof t&&t.startsWith(e),en=et("--"),er=et("var(--"),ei=e=>!!er(e)&&eo.test(e.split("/*")[0].trim()),eo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function es(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let ea=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,el=e=>180*e/Math.PI,ec=e=>ed(el(Math.atan2(e[1],e[0]))),eu={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ec,rotateZ:ec,skewX:e=>el(Math.atan(e[1])),skewY:e=>el(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ed=e=>((e%=360)<0&&(e+=360),e),ep=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ef=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eh={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ep,scaleY:ef,scale:e=>(ep(e)+ef(e))/2,rotateX:e=>ed(el(Math.atan2(e[6],e[5]))),rotateY:e=>ed(el(Math.atan2(-e[2],e[0]))),rotateZ:ec,rotate:ec,skewX:e=>el(Math.atan(e[4])),skewY:e=>el(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function em(e){return+!!e.includes("scale")}function eg(e,t){let n,r;if(!e||"none"===e)return em(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=eh,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=eu,r=t}if(!r)return em(t);let o=n[t],s=r[1].split(",").map(ex);return"function"==typeof o?o(s):s[o]}function ex(e){return parseFloat(e.trim())}let ev=e=>e===a||e===w,ey=new Set(["x","y","z"]),eb=i.filter(e=>!ey.has(e)),ew={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{let i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>eg(t,"x"),y:(e,{transform:t})=>eg(t,"y")};ew.translateX=ew.x,ew.translateY=ew.y;let ek=e=>e;e.s(["noop",0,ek],260830);let ej={},eS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eE(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=eS.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(t){o.has(t)&&(l.schedule(t),e()),t(s)}let l={schedule:(e,i=!1,s=!1)=>{let a=s&&r?t:n;return i&&o.add(e),a.add(e),e},cancel:e=>{n.delete(e),o.delete(e)},process:e=>{if(s=e,r){i=!0;return}r=!0;let o=t;t=n,n=o,t.forEach(a),t.clear(),r=!1,i&&(i=!1,l.process(e))}};return l}(o),e),{}),{setup:a,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:p,render:f,postRender:h}=s,m=()=>{let o=ej.useManualTiming,s=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),d.process(i),p.process(i),f.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:eS.reduce((t,o)=>{let a=s[o];return t[o]=(t,o=!1,s=!1)=>(!n&&(n=!0,r=!0,i.isProcessing||e(m)),a.schedule(t,o,s)),t},{}),cancel:e=>{for(let t=0;t<eS.length;t++)s[eS[t]].cancel(e)},state:i,steps:s}}let{schedule:eN,cancel:eC,state:eP,steps:eT}=eE("u">typeof requestAnimationFrame?requestAnimationFrame:ek,!0);e.s(["cancelFrame",0,eC,"frame",0,eN,"frameData",0,eP,"frameSteps",0,eT],287022);let eA=new Set,eI=!1,eM=!1,eL=!1;function eR(){if(eM){let e=Array.from(eA).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t,r=(t=[],eb.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t);r.length&&(n.set(e,r),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}
106),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eM=!1,eI=!1,eA.forEach(e=>e.complete(eL)),eA.clear()}function e_(){eA.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eM=!0)})}class eO{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(eA.add(this),eI||(eI=!0,eN.read(e_),eN.resolveKeyframes(eR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),eA.delete(this)}cancel(){"scheduled"===this.state&&(eA.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eD=new Set([D,F]);function eF(e,t){let n=B(e);return eD.has(n)||(n=L),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let e$=new Set(["auto","none","0"]);class ez extends eO{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&ei(r=r.trim())){let i=function e(t,n,r=1){ee(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[i,o]=function(e){let t=ea.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let e=s.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return ei(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!K.has(n)||2!==e.length)return;let[r,i]=e,o=X(r),s=X(i);if(es(r)!==es(i)&&ew[n]){this.needsMeasurement=!0;return}if(o!==s)if(ev(o)&&ev(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else ew[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&n.push(t);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!e$.has(t)&&I(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eF(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ew[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=ew[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
106h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let eV=e=>1e3*e,eB=e=>e/1e3;function eH(e,t){-1===e.indexOf(t)&&e.push(t)}function eU(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}e.s(["millisecondsToSeconds",0,eB,"secondsToMilliseconds",0,eV],763074),e.s(["addUniqueItem",0,eH,"removeItem",0,eU],133887);class eW{constructor(){this.subscriptions=[]}add(e){return eH(this.subscriptions,e),()=>eU(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function eG(e,t,n){t.startsWith("--")?e.style.setProperty(t,n):e.style[t]=n}function eq(e){let t;return()=>(void 0===t&&(t=e()),t)}let eK={};function eY(e,t){let n=eq(e);return()=>eK[t]??n()}let eJ=eY(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),eX=eY(()=>void 0!==window.ViewTimeline,"viewTimeline");e.s(["supportsScrollTimeline",0,eJ,"supportsViewTimeline",0,eX],930551);let eZ=e=>null!==e;function eQ(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(eZ),s=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==r?r:o[s]}class e0{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let e1=e=>Array.isArray(e)&&"number"==typeof e[0],e2=eY(()=>{try{document.createElement("div").animate({opacity:0}
106,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),e5=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},e4=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,e3={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:e4([0,.65,.55,1]),circOut:e4([.55,0,1,.45]),backIn:e4([.31,.01,.66,-.59]),backOut:e4([.33,1.53,.69,.99])};function e6(e){return"function"==typeof e&&"applyToOptions"in e}e.s(["isGenerator",0,e6],997307);class e8 extends e0{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,ee(e.type);const l=function({type:e,...t}){return e6(e)&&e2()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}={},c){let u={[t]:n};l&&(u.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?e2()?e5(t,n):"ease-out":e1(t)?e4(t):Array.isArray(t)?t.map(t=>e(t,n)||e3.easeOut):e3[t]}(a,i);Array.isArray(d)&&(u.easing=d);let p={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};return c&&(p.pseudoElement=c),e.animate(u,p)}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=eQ(r,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(e),eG(t,n,e),this.animation.cancel()}a?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return eB(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eB(e)}get time(){return eB(Number(this.animation.currentTime)||0)}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=eV(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&eJ())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),ek):r(this)}}let e7=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:e9,cancel:te}=eE(queueMicrotask,!1);function tt(){t=void 0}e.s(["cancelMicrotask",0,te,"microtask",0,e9],560140);let tn={now:()=>(void 0===t&&tn.set(eP.isProcessing||ej.useManualTiming?eP.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tt)}},tr=(e,t)=>t?1e3/t*e:0;e.s(["velocityPerSecond",0,tr],325791);let ti={current:void 0};class to{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tn.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tn.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new eW);let n=this.events[e].add(t);return"change"===e?()=>{n(),eN.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}
106setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ti.current&&ti.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tn.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ts(e,t){return new to(e,t)}e.s(["collectMotionValues",0,ti,"motionValue",0,ts],486427);let ta=[...J,N,L],tl=new WeakMap;function tc(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tu(e){return"string"==typeof e||Array.isArray(e)}e.s(["visualElementStore",0,tl],472094);let td=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tp=["initial",...td];function tf(e){return tc(e.animate)||tp.some(t=>tu(e[t]))}function th(e){return!!(tf(e)||e.variants)}let tm={current:null},tg={current:!1};e.s(["hasReducedMotionListener",0,tg,"prefersReducedMotion",0,tm],571164);let tx="u">typeof window;function tv(){if(tg.current=!0,tx)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tm.current=e.matches;e.addEventListener("change",t),t()}else tm.current=!1}function ty(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tb(e,t,n,r){if("function"==typeof t){let[i,o]=ty(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=ty(r);t=t(void 0!==n?n:e.custom,i,o)}return t}e.s(["initPrefersReducedMotion",0,tv],138544);let tw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tk={};function tj(e){tk=e}function tS(){return tk}class tE{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=eO,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=tn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eN.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=s;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=a,this.blockInitialAnimation=!!o,this.isControllingVariants=tf(t),this.isVariantNode=th(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&q(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,tl.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
106h((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tg.current||tv(),this.shouldReduceMotion=tm.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eC(this.notifyUpdate),eC(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&e7.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:o,duration:s}=t.accelerate,a=new e8({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:eV(s)}),l=n(a);this.valueSubscriptions.set(e,()=>{l(),a.cancel()});return}let r=o.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eN.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in tk){let t=tk[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):G()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tw.length;t++){let n=tw[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(q(i))e.addValue(r,i);else if(q(o))e.addValue(r,ts(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,ts(void 0!==t?t:i,{owner:e}))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ts(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=n){let r,i;if("string"==typeof n&&(r=n,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(r)||(i=n,/^0[^.\s]+$/u.test(i))))n=parseFloat(n);else{let r;r=n,!ta.find(Y(r))&&L.test(t)&&(n=eF(e,t))}this.setBaseTarget(e,q(n)?n.get():n)}return q(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tb(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||q(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new eW),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){e9.render(this.render)}}e.s(["VisualElement",0,tE,"getFeatureDefinitions",0,tS,"setFeatureDefinitions",0,tj],617218);class tN extends tE{constructor(){super(...arguments),this.KeyframeResolver=ez}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;q(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tC(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tP=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tA=i.length;function tI(e,t,n){let{style:r,vars:s,transformOrigin:a}=e,l=!1,c=!1;for(let e in t){let n=t[e];if(o.has(e)){l=!0;continue}if(en(e)){s[e]=n;continue}{let t=tP(n,z[e]);e.startsWith("origin")?(c=!0,a[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",o=!0;for(let s=0;s<tA;s++){let a=i[s],l=e[a];if(void 0===l)continue;let c=!0;if("number"==typeof l)c=l===+!!a.startsWith("scale");else{let e=parseFloat(l);c=a.startsWith("scale")?1===e:0===e}if(!c||n){let e=tP(l,z[a]);if(!c){o=!1;let t=tT[a]||a;r+=`${t}(${e}) `}n&&(t[a]=e)}}let s=e.pathRotation;return s&&(o=!1,r+=`rotate(${tP(s,z.pathRotation)}) `),r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let tM={offset:"stroke-dashoffset",array:"stroke-dasharray"},tL={offset:"strokeDashoffset",array:"strokeDasharray"},tR=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t_(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:s=0,...a}
106,l,c,u){if(tI(e,a,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p}=e;for(let e of tR)void 0!==d[e]&&(p[e]=d[e],delete d[e]);(p.transform||d.transformOrigin)&&(p.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),p.transform&&(p.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tM:tL;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}(d,i,o,s,!1)}let tO=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"]),tD=e=>"string"==typeof e&&"svg"===e.toLowerCase();function tF(e,{style:t,vars:n},r,i){let o,s=e.style;for(o in t)s[o]=t[o];for(o in i?.applyProjectionStyles(s,r),n)s.setProperty(o,n[o])}let t$=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function tz(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let tV={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!w.test(e))return e;else e=parseFloat(e);let n=tz(e,t.target.x),r=tz(e,t.target.y);return`${n}% ${r}%`}},tB=(e,t,n)=>e+(t-e)*n;e.s(["mixNumber",0,tB],100706);let tH={borderRadius:{...tV,applyTo:[...t$]},borderTopLeftRadius:tV,borderTopRightRadius:tV,borderBottomLeftRadius:tV,borderBottomRightRadius:tV,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=L.parse(e);if(r.length>5)return e;let i=L.createTransformer(e),o=+("number"!=typeof r[0]),s=n.x.scale*t.x,a=n.y.scale*t.y;r[0+o]/=s,r[1+o]/=a;let l=tB(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};function tU(e,{layout:t,layoutId:n}){return o.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tH[e]||"opacity"===e)}function tW(e,t,n){let r=e.style,i=t?.style,o={};if(!r)return o;for(let t in r)(q(r[t])||i&&q(i[t])||tU(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(o[t]=r[t]);return o}function tG(e,t,n){let r=tW(e,t,n);for(let n in e)(q(e[n])||q(t[n]))&&(r[-1!==i.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tq extends tN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=G}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(o.has(t)){let e=B(t);return e&&e.default||0}if(tR.includes(t)){let n=getComputedStyle(e)[t];if("string"==typeof n&&n)return n.trim()}return t=tO.has(t)?t:tC(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return tG(e,t,n)}
106build(e,t,n){t_(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){for(let n in tF(e,t,void 0,r),t.attrs)e.setAttribute(tO.has(n)?n:tC(n),t.attrs[n])}mount(e){this.isSVGTag=tD(e.tagName),super.mount(e)}}function tK({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tY(e){return void 0===e||1===e}function tJ({scale:e,scaleX:t,scaleY:n}){return!tY(e)||!tY(t)||!tY(n)}function tX(e){return tJ(e)||tZ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tZ(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}e.s(["SVGVisualElement",0,tq],275737);function tQ(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function t0(e,t=0,n=1,r,i){e.min=tQ(e.min,t,n,r,i),e.max=tQ(e.max,t,n,r,i)}function t1(e,{x:t,y:n}){t0(e.x,t.translate,t.scale,t.originPoint),t0(e.y,n.translate,n.scale,n.originPoint)}function t2(e,t){e.min+=t,e.max+=t}function t5(e,t,n,r,i=.5){let o=tB(e.min,e.max,i);t0(e,t,n,o,r)}function t4(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function t3(e,t,n){let r=n??e;t5(e.x,t4(t.x,r.x),t.scaleX,t.scale,t.originX),t5(e.y,t4(t.y,r.y),t.scaleY,t.scale,t.originY)}function t6(e,t){return tK(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}class t8 extends tN{constructor(){super(...arguments),this.type="html",this.renderInstance=tF}mount(e){ee(e.style),super.mount(e)}readValueFromInstance(e,t){if(o.has(t))return this.projection?.isProjecting?em(t):((e,t)=>{let{transform:n="none"}=getComputedStyle(e);return eg(n,t)})(e,t);{let n=window.getComputedStyle(e),r=(en(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return t6(e,t)}build(e,t,n){tI(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tW(e,t,n)}}e.s(["HTMLVisualElement",0,t8],386783);var t7=e.i(271645);let t9=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ne(e){if("string"!=typeof e||e.includes("-"));else if(t9.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var nt=e.i(843476);let nn=(0,t7.createContext)({});e.s(["LayoutGroupContext",0,nn],231178);let nr=(0,t7.createContext)({strict:!1}),ni=(0,t7.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});e.s(["MotionConfigContext",0,ni],737806);let no=(0,t7.createContext)({});function ns(e){return Array.isArray(e)?e.join(" "):e}let na=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nl(e,t,n){for(let r in t)q(t[r])||tU(r,n)||(e[r]=t[r])}let nc=()=>({...na(),attrs:{}}),nu=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function nd(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||nu.has(e)}function np(e){return q(e)?e.get():e}let nf=(0,t7.createContext)(null);function nh(e){let t=(0,t7.useRef)(null);return null===t.current&&(t.current=e()),t.current}e.s(["PresenceContext",0,nf],821476),e.s(["useConstant",0,nh],947414);let nm=e=>(t,n)=>{let r=(0,t7.useContext)(no),i=(0,t7.useContext)(nf),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=np(o[e]);let{initial:s,animate:a}=e,l=tf(e),c=th(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial,d=(u=u||!1===s)?a:s;if(d&&"boolean"!=typeof d&&!tc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tb(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?o():nh(o)},ng=nm({scrapeMotionValuesFromProps:tW,createRenderState:na}),nx=nm({scrapeMotionValuesFromProps:tG,createRenderState:nc}),nv={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"]},ny=!1;function nb(){return!function(){if(ny)return;let e={};for(let t in nv)e[t]={isEnabled:e=>nv[t].some(t=>!!e[t])};
106tj(e),ny=!0}(),tS()}let nw=Symbol.for("motionComponentSymbol"),nk="data-"+tC("framerAppearId"),nj=(0,t7.createContext)({});function nS(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let nE="u">typeof window?t7.useLayoutEffect:t7.useEffect;function nN(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&function(e){let t=nb();for(let n in e)t[n]={...t[n],...e[n]};tj(t)}(r);let o=n?"svg"===n:ne(e),s=o?nx:ng;function a(n,r){var a;let l,c,u,d={...(0,t7.useContext)(ni),...n,layoutId:function({layoutId:e}){let t=(0,t7.useContext)(nn).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:p,isValidProp:f}=d,h=function(e){let{initial:t,animate:n}=function(e,t){if(tf(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tu(t)?t:void 0,animate:tu(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t7.useContext)(no));return(0,t7.useMemo)(()=>({initial:t,animate:n}),[ns(t),ns(n)])}(n),m=s(n,p);if(!p&&"u">typeof window){(0,t7.useContext)(nr).strict;let t=function(e){let{drag:t,layout:n}=nb();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(d);l=t.MeasureLayout,h.visualElement=function(e,t,n,r,i,o){let{visualElement:s}=(0,t7.useContext)(no),a=(0,t7.useContext)(nr),l=(0,t7.useContext)(nf),c=(0,t7.useContext)(ni),u=c.reducedMotion,d=c.skipAnimations,p=(0,t7.useRef)(null),f=(0,t7.useRef)(!1);r=r||a.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u,skipAnimations:d,isSVG:o}),f.current&&p.current&&(p.current.manuallyAnimateOnMount=!0));let h=p.current,m=(0,t7.useContext)(nj);h&&!h.projection&&i&&("html"===h.type||"svg"===h.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&nS(a),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(p.current,n,i,m);let g=(0,t7.useRef)(!1);(0,t7.useInsertionEffect)(()=>{h&&g.current&&h.update(n,l)});let x=n[nk],v=(0,t7.useRef)(!!x&&"u">typeof window&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return nE(()=>{f.current=!0,h&&(g.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),v.current&&h.animationState&&h.animationState.animateChanges())}),(0,t7.useEffect)(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),v.current=!1),h.enteringChildren=void 0)}),h}(e,m,d,i,t.ProjectionNode,o)}return(0,nt.jsxs)(no.Provider,{value:h,children:[l&&h.visualElement?(0,nt.jsx)(l,{visualElement:h.visualElement,...d}):null,function(e,t,n,{latestValues:r},i,o=!1,s,a){let l=(s??ne(e)?function(e,t,n,r){let i=(0,t7.useMemo)(()=>{let n=nc();return t_(n,t,tD(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nl(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n,r,i={},o=(n=e.style||{},nl(r={},n,e),Object.assign(r,function({transformTemplate:e},t){return(0,t7.useMemo)(()=>{let n=na();return tI(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=o,i})(t,r,i,e),c=function(e,t,n,r){let i={};for(let o in e)("values"!==o||"object"!=typeof e.values)&&!q(e[o])&&((o.startsWith("on")?!nd(o):r?.(o)??!nd(o))||!0===n&&nd(o)||!t&&!nd(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}(t,"string"==typeof e,o,a),u=e!==t7.Fragment?{...c,...l,ref:n}:{},{children:d}=t,p=(0,t7.useMemo)(()=>q(d)?d.get():d,[d]);return(0,t7.createElement)(e,{...u,children:p})}(e,n,(a=h.visualElement,c=(0,t7.useRef)(r),(0,t7.useInsertionEffect)(()=>{c.current=r}),u=(0,t7.useRef)(null),(0,t7.useCallback)(e=>{e&&m.onMount?.(e),a&&(e?a.mount(e):a.unmount());let t=c.current;if("function"==typeof t)if(e){let n=t(e);"function"==typeof n&&(u.current=n)}else u.current?(u.current(),u.current=null):t(e);else t&&(t.current=e)},[a])),m,p,t,o,f)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let l=(0,t7.forwardRef)(a);return l[nw]=e,l}e.s(["useIsomorphicLayoutEffect",0,nE],674008);class nC{constructor(e){this.isMounted=!1,this.node=e}update(){}}function nP(e,t,n){let r=e.getProps();return tb(r,t,void 0!==n?n:r.custom,e)}function nT(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function nA(e,t){let n=e?.[t]??e?.default??e;return n!==e?nT(n,e):n}let nI=e=>Array.isArray(e);function nM(e,t){let{transitionEnd:n={},transition:r={},...i}=nP(e,t)||{};for(let t in i={...i,...n}){var o;let n=nI(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ts(n))}}function nL(e,t){let n=e.getValue("willChange");if(q(n)&&n.add)return n.add(t);if(!n&&ej.WillChange){let n=new ej.WillChange("auto");e.addValue("willChange",n),n.add(t)}}e.s(["setTarget",0,nM],347834);let nR=(...e)=>e.reduce((e,t)=>
106n=>t(e(n)));function n_(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nO(e,t){return n=>n>0?t:e}let nD=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},nF=[x,g,E];function n$(e){let t=nF.find(t=>t.test(e));if(Q(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===E&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,s=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;i=n_(a,r,e+1/3),o=n_(a,r,e),s=n_(a,r,e-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let nz=(e,t)=>{let n=n$(e),r=n$(t);if(!n||!r)return nO(e,t);let i={...n};return e=>(i.red=nD(n.red,r.red,e),i.green=nD(n.green,r.green,e),i.blue=nD(n.blue,r.blue,e),i.alpha=tB(n.alpha,r.alpha,e),g.transform(i))},nV=new Set(["none","hidden"]);function nB(e,t){return n=>tB(e,t,n)}function nH(e){return"number"==typeof e?nB:"string"==typeof e?ei(e)?nO:N.test(e)?nz:nG:Array.isArray(e)?nU:"object"==typeof e?N.test(e)?nz:nW:nO}function nU(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nH(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nW(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nH(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nG=(e,t)=>{let n=L.createTransformer(t),r=I(e),i=I(t);if(!(r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length))return Q(`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),nO(e,t);if(nV.has(e)&&!i.values.length||nV.has(t)&&!r.values.length)return nV.has(e)?n=>n<=0?e:t:n=>n>=1?t:e;return nR(nU(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],s=e.indexes[o][r[o]],a=e.values[s]??0;n[i]=a,r[o]++}return n}(r,i),i.values),n)};function nq(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?tB(e,t,n):nH(e)(e,t)}let nK=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eN.update(t,e),stop:()=>eC(t),now:()=>eP.isProcessing?eP.timestamp:tn.now()}};function nY(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nJ(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nY(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:eB(i)}}e.s(["createGeneratorEasing",0,nJ],721748);let nX=.01,nZ=2,nQ=.005,n0=.5;function n1(e,t){return e*Math.sqrt(1-t*t)}let n2=["duration","bounce"],n5=["stiffness","damping","mass"];function n4(e,t){return t.some(t=>void 0!==e[t])}function n3(e=.3,t=.3){let n,r,i,o,a,l,c="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:u,restDelta:d}=c,p=c.keyframes[0],f=c.keyframes[c.keyframes.length-1],h={done:!1,value:p},{stiffness:m,damping:g,mass:x,duration:v,velocity:y,isResolvedFromDuration:b}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!n4(e,n5)&&n4(e,n2))if(t.velocity=0,e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*s(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:1,stiffness:r,damping:i}}else{let n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;Q(eV(10));let a=1-t;a=s(.05,1,a),e=s(.01,10,eB(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/n1(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=n1(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=eV(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...c,velocity:-eB(c.velocity||0)}
106),w=y||0,k=g/(2*Math.sqrt(m*x)),j=f-p,S=eB(Math.sqrt(m/x)),E=5>Math.abs(j);if(u||(u=E?nX:nZ),d||(d=E?nQ:n0),k<1)i=n1(S,k),o=(w+k*S*j)/i,n=e=>f-Math.exp(-k*S*e)*(o*Math.sin(i*e)+j*Math.cos(i*e)),a=k*S*o+j*i,l=k*S*j-o*i,r=e=>Math.exp(-k*S*e)*(a*Math.sin(i*e)+l*Math.cos(i*e));else if(1===k){n=e=>f-Math.exp(-S*e)*(j+(w+S*j)*e);let e=w+S*j;r=t=>Math.exp(-S*t)*(S*e*t-w)}else{let e=S*Math.sqrt(k*k-1);n=t=>{let n=Math.exp(-k*S*t),r=Math.min(e*t,300);return f-n*((w+k*S*j)*Math.sinh(r)+e*j*Math.cosh(r))/e};let t=(w+k*S*j)/e,i=k*S*t-j*e,o=k*S*j-t*e;r=t=>{let n=Math.exp(-k*S*t),r=Math.min(e*t,300);return n*(i*Math.sinh(r)+o*Math.cosh(r))}}let N={calculatedDuration:b&&v||null,velocity:e=>eV(r(e)),next:e=>{if(!b&&k<1){let t=Math.exp(-k*S*e),n=Math.sin(i*e),r=Math.cos(i*e),s=f-t*(o*n+j*r);return h.done=Math.abs(eV(t*(a*n+l*r)))<=u&&Math.abs(f-s)<=d,h.value=h.done?f:s,h}let t=n(e);return b?h.done=e>=v:h.done=Math.abs(eV(r(e)))<=u&&Math.abs(f-t)<=d,h.value=h.done?f:t,h},toString:()=>{let e=Math.min(nY(N),2e4),t=e5(t=>N.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return N}function n6(e,t,n){let r=Math.max(t-5,0);return tr(n-e(r),t-r)}function n8({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){let d,p,f=e[0],h={done:!1,value:f},m=n*t,g=f+m,x=void 0===s?g:s(g);x!==g&&(m=x-f);let v=e=>-m*Math.exp(-e/r),y=e=>x+v(e),b=e=>{let t=v(e),n=y(e);h.done=Math.abs(t)<=c,h.value=h.done?x:n},w=e=>{let t;if(t=h.value,void 0!==a&&t<a||void 0!==l&&t>l){var n;d=e,p=n3({keyframes:[h.value,(n=h.value,void 0===a?l:void 0===l||Math.abs(a-n)<Math.abs(l-n)?a:l)],velocity:n6(y,e,h.value),damping:i,stiffness:o,restDelta:c,restSpeed:u})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(p||void 0!==d||(t=!0,b(e),w(e)),void 0!==d&&e>=d)?p.next(e-d):(t||b(e),h)}}}n3.applyToOptions=e=>{let t=nJ(e,100,n3);return e.ease=t.ease,e.duration=eV(t.duration),e.type="keyframes",e},e.s(["spring",0,n3],528409);let n7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n9(e,t,n,r){return e===t&&n===r?ek:i=>0===i||1===i?i:n7(function(e,t,n,r,i){let o,s,a=0;do(o=n7(s=t+(n-t)/2,r,i)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12)return s}(i,0,1,e,n),t,r)}let re=n9(.42,0,1,1),rt=n9(0,0,.58,1),rn=n9(.42,0,.58,1),rr=e=>Array.isArray(e)&&"number"!=typeof e[0];e.s(["isEasingArray",0,rr],893544);let ri=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ro=e=>t=>1-e(1-t);e.s(["reverseEasing",0,ro],430151);let rs=n9(.33,1.53,.69,.99),ra=ro(rs),rl=ri(ra),rc=e=>e>=1?1:(e*=2)<1?.5*ra(e):.5*(2-Math.pow(2,-10*(e-1))),ru=e=>1-Math.sin(Math.acos(e)),rd=ro(ru),rp=ri(ru),rf={linear:ek,easeIn:re,easeInOut:rn,easeOut:rt,circIn:ru,circInOut:rp,circOut:rd,backIn:ra,backInOut:rl,backOut:rs,anticipate:rc},rh=e=>{if(e1(e)){ee(e.length);let[t,n,r,i]=e;return n9(t,n,r,i)}return"string"==typeof e?(ee(rf[e],`Invalid easing type '${e}'`),rf[e]):e},rm=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1};function rg(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(ee(t.length),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let r=[],i=n||ej.mix||nq,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nR(Array.isArray(t)?t[n]||ek:t,o)),r.push(o)}return r}(t,r,i),c=l.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=rm(e[r],e[r+1],n);return l[r](i)};return n?t=>u(s(e[0],e[o-1],t)):u}function rx(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=rm(0,t,r);e.push(tB(n,1,i))}}function rv(e){let t=[0];return rx(t,e.length-1),t}function ry({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){var i;let o=rr(r)?r.map(rh):rh(r),s={done:!1,value:t[0]},a=rg((i=n&&n.length===t.length?n:rv(t),i.map(t=>t*e)),t,{ease:Array.isArray(o)?o:t.map(()=>o||rn).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(s.value=a(t),s.done=t>=e,s)}}e.s(["progress",0,rm],783920),e.s(["interpolate",0,rg],344230),e.s(["fillOffset",0,rx],215932),e.s(["defaultOffset",0,rv],515923);let rb={decay:n8,inertia:n8,tween:ry,keyframes:ry,spring:n3};function rw(e){"string"==typeof e.type&&(e.type=rb[e.type])}let rk=e=>e/100;class rj extends e0{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;rw(e);let{type:t=ry,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:s}=e,a=t||ry;a!==ry&&"number"!=typeof s[0]&&(this.mixKeyframes=nR(rk,nq(s[0],s[1])),s=[0,100]);let l=a({...e,keyframes:s}
106);"mirror"===i&&(this.mirroredGenerator=a({...e,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nY(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let n,{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:c}=this;if(null===this.startTime)return r.next(0);let{delay:u=0,keyframes:d,repeat:p,repeatType:f,repeatDelay:h,type:m,onUpdate:g,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-u*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>i;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=r;if(p){let e=Math.min(this.currentTime,i)/l,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,p+1))%2&&("reverse"===f?(n=1-n,h&&(n-=h/l)):"mirror"===f&&(w=a)),b=s(0,1,n)*l}y?(this.delayState.value=d[0],n=this.delayState):n=w.next(b),o&&!y&&(n.value=o(n.value));let{done:k}=n;y||null===c||(k=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&k);return j&&m!==n8&&(n.value=eQ(d,this.options,x,this.speed)),g&&g(n.value),j&&this.finish(),n}then(e,t){return this.finished.then(e,t)}get duration(){return eB(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+eB(e)}get time(){return eB(this.currentTime)}set time(e){e=eV(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return n6(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tn.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=eB(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nK,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}e.s(["JSAnimation",0,rj],83352);let rS={anticipate:rc,backInOut:rl,circInOut:rp};class rE extends e8{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in rS&&(e.ease=rS[e.ease])}(e),rw(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new rj({...o,autoplay:!1}),l=Math.max(10,tn.now()-this.startTime),c=s(0,10,l-10),u=a.sample(l).value,{name:d}=this.options;i&&d&&eG(i,d,u),t.setWithVelocity(a.sample(Math.max(0,l-c)).value,u,c),a.stop()}}let rN=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(L.test(e)||"0"===e)&&!e.startsWith("url("));function rC(e){e.duration=0,e.type="keyframes"}let rP=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,rT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),rA=eq(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rI extends e0{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:
106o="loop",keyframes:s,name:a,motionValue:l,element:c,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:c,...u},p=c?.KeyframeResolver||eO;this.keyframeResolver=new p(s,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),a,l,c),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){let i;this.keyframeResolver=void 0;let{name:o,type:s,velocity:a,delay:l,isHandoff:c,onUpdate:u}=n;this.resolvedAt=tn.now();let d=!0;!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=rN(i,t),a=rN(o,t);return Q(`You are trying to animate ${t} from "${i}" to "${o}". "${s?o:i}" is not an animatable value.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||e6(n))&&r)}(e,o,s,a)&&(d=!1,(ej.instantAnimations||!l)&&u?.(eQ(e,n,t)),e[0]=e[e.length-1],rC(n),n.repeat=0);let p={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=d&&!c&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s,keyframes:a}=e,l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=t.owner.getProps();return rA()&&n&&(e7.has(n)||rT.has(n)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&rP.test(e[t]))return!0;return!1}(a))&&("transform"!==n||!u)&&!c&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}(p),h=p.motionValue?.owner?.current;if(f)try{i=new rE({...p,element:h})}catch{i=new rj(p)}else i=new rj(p);i.finished.then(()=>{this.notifyFinished()}).catch(ek),this.pendingTimeline&&(this.stopTimeline=i.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=i}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),eL=!0,e_(),eR(),eL=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let rM={type:"spring",stiffness:500,damping:25,restSpeed:10},rL={type:"keyframes",duration:.8},rR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},r_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),rO=(e,t,n,r={},i,s)=>a=>{let l=nA(r,e)||{},c=l.delay||r.delay||0,{elapsed:u=0}=r;u-=eV(c);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-u,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:s?void 0:i};!function(e){for(let t in e)if(!r_.has(t))return!0;return!1}(l)&&Object.assign(d,((e,{keyframes:t})=>t.length>2?rL:o.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:rM:rR)(e,d)),d.duration&&(d.duration=eV(d.duration)),d.repeatDelay&&(d.repeatDelay=eV(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(rC(d),0===d.delay&&(p=!0)),(ej.instantAnimations||ej.skipAnimations||i?.shouldSkipAnimations||l.skipAnimations)&&(p=!0,rC(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!s&&void 0!==t.get()){let e=eQ(d.keyframes,l);if(void 0!==e)return void eN.update(()=>{d.onUpdate(e),d.onComplete()})}return l.isSync?new rj(d):new rI(d)},rD="u">typeof window;function rF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:s,...a}=t,l=e.getDefaultTransition();o=o?nT(o,l):l;let c=o?.reduceMotion,u=o?.skipAnimations;r&&(o=r);let d=[],p=i&&e.animationState&&e.animationState.getState()[i],f=o?.path;for(let t in f&&f.animateVisualElement(e,a,o,n,d),a){let r=e.getValue(t,e.latestValues[t]??null),i=a[t];if(void 0===i||p&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(p,t))continue;let s={delay:n,...nA(o||{},t)};u&&(s.skipAnimations=!0);let l=r.get();if(void 0!==l&&!r.isAnimating()&&!Array.isArray(i)&&i===l&&!s.velocity){eN.update(()=>r.set(i));continue}let f=!1;if(rD&&window.MotionHandoffAnimation){let n=e.props[nk];if(n){let e=window.MotionHandoffAnimation(n,t,eN);null!==e&&(s.startTime=e,f=!0)}}nL(e,t);let h=c??e.shouldReduceMotion;r.start(rO(t,r,i,h&&K.has(t)?{type:!1}:s,e,f));let m=r.animation;m&&d.push(m)}if(s){let t=()=>eN.update(()=>
106{s&&nM(e,s)});d.length?Promise.all(d).then(t):t()}return d}function r$(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,a=(s-1)*r;return"function"==typeof n?n(o,s):1===i?o*r:a-o*r}function rz(e,t,n={}){let r=nP(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rF(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(e,t,n=0,r=0,i=0,o=1,s){let a=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),a.push(rz(l,t,{...s,delay:n+("function"==typeof r?0:r)+r$(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}(e,t,r,o,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[e,t]="beforeChildren"===a?[o,s]:[s,o];return e().then(()=>t())}}function rV(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rz(e,t,n)));else if("string"==typeof t)r=rz(e,t,n);else{let i="function"==typeof t?nP(e,t,n.custom):t;r=Promise.all(rF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}e.s(["animateTarget",0,rF],372323),e.s(["animateVisualElement",0,rV],876859);let rB=tp.length;function rH(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let rU=[...td].reverse(),rW=td.length;function rG(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rq(){return{animate:rG(!0),whileInView:rG(),whileHover:rG(),whileTap:rG(),whileDrag:rG(),whileFocus:rG(),exit:rG()}}let rK=0;function rY(e){return[e("x"),e("y")]}function rJ(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}let rX={x:!1,y:!1};function rZ(e){return e.max-e.min}function rQ(e,t,n,r=.5){e.origin=r,e.originPoint=tB(t.min,t.max,e.origin),e.scale=rZ(n)/rZ(t),e.translate=tB(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function r0(e,t,n,r){rQ(e.x,t.x,n.x,r?r.originX:void 0),rQ(e.y,t.y,n.y,r?r.originY:void 0)}function r1(e,t,n,r=0){e.min=(r?tB(n.min,n.max,r):n.min)+t.min,e.max=e.min+rZ(t)}function r2(e,t,n,r=0){let i=r?tB(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+rZ(t)}function r5(e,t,n,r){r2(e.x,t.x,n.x,r?.x),r2(e.y,t.y,n.y,r?.y)}let r4=e=>"object"==typeof e&&null!==e;function r3(e){return r4(e)&&"ownerSVGElement"in e}function r6(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>null!=e)}e.s(["isSVGElement",0,r3],889026),e.s(["resolveElements",0,r6],749652);let r8=new WeakMap,r7=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:r3(r)&&"getBBox"in r?r.getBBox()[t]:r[n],r9=r7("inline","width","offsetWidth"),ie=r7("block","height","offsetHeight");function it({target:e,borderBoxSize:t}){r8.get(e)?.forEach(n=>{n(e,{get width(){return r9(e,t)},get height(){return ie(e,t)}})})}function ir(e){e.forEach(it)}let ii=new Set;function io(e,t){let i;return"function"==typeof e?(ii.add(e),r||(r=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};ii.forEach(t=>t(e))},window.addEventListener("resize",r)),()=>{ii.delete(e),ii.size||"function"!=typeof r||(window.removeEventListener("resize",r),r=void 0)}):(!n&&"u">typeof ResizeObserver&&(n=new ResizeObserver(ir)),(i=r6(e)).forEach(e=>{let r=r8.get(e);r||(r=new Set,r8.set(e,r)),r.add(t),n?.observe(e)}),()=>{i.forEach(e=>{let r=r8.get(e);r?.delete(t),r?.size||n?.unobserve(e)})})}e.s(["resize",0,io],661327);let is=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ia=new Set(["INPUT","SELECT","TEXTAREA"]),il=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ic(e){return{point:{x:e.pageX,y:e.pageY}}}function iu(e,t,n,r){return rJ(e,t,e=>il(e)&&n(e,ic(e)),r)}let id=({current:e})=>e?e.ownerDocument.defaultView:null,ip=(e,t)=>Math.abs(e-t),ih=new Set(["auto","scroll"]);class im{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=ig(this.lastRawMoveEventInfo,this.transformPagePoint));let n=iv(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(ip(e.x,t.x)**2+ip(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=eP;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>
106{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=ig(t,this.transformPagePoint),eN.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=iv("pointercancel"===e.type?this.lastMoveEventInfo:ig(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!il(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const a=ig(ic(e),this.transformPagePoint),{point:l}=a,{timestamp:c}=eP;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,iv(a,this.history));const d={passive:!0,capture:!0};this.removeListeners=nR(iu(this.contextWindow,"pointermove",this.handlePointerMove,d),iu(this.contextWindow,"pointerup",this.handlePointerUp,d),iu(this.contextWindow,"pointercancel",this.handlePointerUp,d)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(ih.has(e.overflowX)||ih.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(0!==i.x||0!==i.y)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eN.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eC(this.updatePoint)}}function ig(e,t){return t?{point:t(e.point)}:e}function ix(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iv({point:e},t){return{point:e,delta:ix(e,iy(t)),offset:ix(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,n=null,r=iy(e);for(;t>=0&&(n=e[t],!(r.timestamp-n.timestamp>eV(.1)));)t--;if(!n)return{x:0,y:0};n===e[0]&&e.length>2&&r.timestamp-n.timestamp>2*eV(.1)&&(n=e[1]);let i=eB(r.timestamp-n.timestamp);if(0===i)return{x:0,y:0};let o={x:(r.x-n.x)/i,y:(r.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t)}}function iy(e){return e[e.length-1]}function ib(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iw(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function ik(e,t,n){return{min:ij(e,t),max:ij(e,n)}}function ij(e,t){return"number"==typeof e?e:e[t]||0}let iS=new WeakMap;class iE{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=G(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{t&&this.snapToCursor(ic(e).point),this.stopAnimation()},o=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(rX[e])return null;else return rX[e]=!0,()=>{rX[e]=!1};return rX.x||rX.y?null:(rX.x=rX.y=!0,()=>{rX.x=rX.y=!1})}(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rY(e=>{let t=this.getAxisMotionValue(e).get()||0;if(b.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rZ(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eN.update(()=>i(e,t),!1,!0),nL(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&eN.update(()=>o(e,t),!1,!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();
106this.panSession=new im(e,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:n,contextWindow:id(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&eN.postRender(()=>s(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!iC(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?tB(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?tB(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&nS(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:ib(e.x,n,i),y:ib(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:ik(e,"left","right"),y:ik(e,"top","bottom")}}(t),r!==this.constraints&&!nS(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&rY(e=>{var t,r;let i;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=n.layoutBox[e],r=this.constraints[e],i={},void 0!==r.min&&(i.min=r.min-t.min),void 0!==r.max&&(i.max=r.max-t.min),i))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!nS(t))return!1;let r=t.current;ee();let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;i.root&&(i.root.scroll=void 0,i.root.updateScroll());let o=function(e,t,n){let r=t6(e,n),{scroll:i}=t;return i&&(t2(r.x,i.offset.x),t2(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s=(e=i.layout.layoutBox,{x:iw(e.x,o.x),y:iw(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=tK(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rY(s=>{if(!iC(s,t,this.currentDirection))return;let l=a&&a[s]||{};(!0===o||o===s)&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,c)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return nL(this.visualElement,e),n.start(rO(e,n,0,t,this.visualElement,!1))}stopAnimation(){rY(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){rY(t=>{let{drag:n}=this.getProps();if(!iC(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t],s=i.get()||0;i.set(e[t]-tB(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!nS(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rY(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var n,i;let o,a,l,c=t.get();r[e]=(n={min:c,max:c},i=this.constraints[e],o=.5,a=rZ(n),(l=rZ(i))>a?o=rm(i.min,i.max-a,n.min):a>l&&(o=rm(n.min,n.max-l,i.min)),s(0,1,o))}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),rY(t=>
106{if(!iC(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(tB(i,o,r[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;iS.set(this.visualElement,this);let t=this.visualElement.current,n=iu(t,"pointerdown",e=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=e.target,o=i!==t&&(ia.has(i.tagName)||!0===i.isContentEditable);n&&r&&!o&&this.start(e)}),r=()=>{var n,r,i;let o,s,{dragConstraints:a}=this.getProps();nS(a)&&a.current&&(this.constraints=this.resolveRefConstraints(),e||(n=t,r=a.current,o=io(n,iN(i=()=>this.scalePositionWithinConstraints())),s=io(r,iN(i)),e=()=>{o(),s()}))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eN.read(r);let s=rJ(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rY(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),n(),o(),a&&a(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function iN(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function iC(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let iP=e=>(t,n)=>{e&&eN.update(()=>e(t,n),!1,!0)},iT={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var iA=t7;function iI(e=!0){let t=(0,t7.useContext)(nf);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,o=(0,t7.useId)();(0,t7.useEffect)(()=>{if(e)return i(o)},[e]);let s=(0,t7.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,s]:[!0]}e.s(["usePresence",0,iI],464978);let iM=!1;class iL extends iA.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iM&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),iT.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),iM=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||eN.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),e9.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iM=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iR(e){let[t,n]=iI(),r=(0,iA.useContext)(nn);return(0,nt.jsx)(iL,{...e,layoutGroup:r,switchLayoutGroup:(0,iA.useContext)(nj),isPresent:t,safeToRemove:n})}function i_(e,t,n){let r=q(e)?e:ts(e);return r.start(rO("",r,t,n)),r.animation}e.s(["animateSingleValue",0,i_],768705);function iO(e){return r3(e)&&"svg"===e.tagName}e.s(["isSVGSVGElement",0,iO],836331);let iD=t$.length,iF=e=>"string"==typeof e?parseFloat(e):e,i$=e=>"number"==typeof e||w.test(e);function iz(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iV=iH(0,.5,rd),iB=iH(.5,.95,ek);function iH(e,t,n){return r=>r<e?0:r>t?1:n(rm(e,t,r))}function iU(e,t){e.min=t.min,e.max=t.max}function iW(e,t){iU(e.x,t.x),iU(e.y,t.y)}function iG(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iq(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}
106function iK(e,t,[n,r,i],o,s){!function(e,t=0,n=1,r=.5,i,o=e,s=e){if(b.test(t)&&(t=parseFloat(t),t=tB(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=tB(o.min,o.max,r);e===o&&(a-=t),e.min=iq(e.min,t,n,a,i),e.max=iq(e.max,t,n,a,i)}(e,t[n],t[r],t[i],t.scale,o,s)}let iY=["x","scaleX","originX"],iJ=["y","scaleY","originY"];function iX(e,t,n,r){iK(e.x,t,iY,n?n.x:void 0,r?r.x:void 0),iK(e.y,t,iJ,n?n.y:void 0,r?r.y:void 0)}function iZ(e){return 0===e.translate&&1===e.scale}function iQ(e){return iZ(e.x)&&iZ(e.y)}function i0(e,t){return e.min===t.min&&e.max===t.max}function i1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function i2(e,t){return i1(e.x,t.x)&&i1(e.y,t.y)}function i5(e){return rZ(e.x)/rZ(e.y)}function i4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class i3{constructor(){this.members=[]}add(e){eH(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;r&&!1!==r.isConnected||n.snapshot||(eU(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(eU(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(void 0===r||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let i6=(e,t)=>e.depth-t.depth;class i8{constructor(){this.children=[],this.isDirty=!1}add(e){eH(this.children,e),this.isDirty=!0}remove(e){eU(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(i6),this.isDirty=!1,this.children.forEach(e)}}let i7=["","X","Y","Z"],i9=0;function oe(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ot({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=i9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(oi),this.nodes.forEach(of),this.nodes.forEach(oh),this.nodes.forEach(oo)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new i8)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new eW),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=r3(t)&&!iO(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eN.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==r){let t,o;r=e,this.root.updateBlockedByResize=!0,n&&n(),t=tn.now(),o=({timestamp:e})=>{let n=e-t;n>=250&&(eC(o),i())},eN.setup(o,!0),n=()=>eC(o),iT.hasAnimatedSinceResize&&(iT.hasAnimatedSinceResize=!1,this.nodes.forEac
106h(op))}})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||ob,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=i.getProps(),l=!this.targetLayout||!i2(this.targetLayout,r),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...nA(o,"layout"),onPlay:s,onComplete:a};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||op(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eC(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(om),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[nk];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",eN,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(ol),this.nodes.forEach(oa);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(oc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ou),this.nodes.forEach(od),this.nodes.forEach(on),this.nodes.forEach(or)):this.nodes.forEach(oc),this.clearAllSnapshots();let e=tn.now();eP.delta=s(0,1e3/60,e-eP.timestamp),eP.timestamp=e,eP.isProcessing=!0,eT.update.process(eP),eT.preRender.process(eP),eT.render.process(eP),eP.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,e9.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(os),this.sharedNodes.forEach(og)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eN.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eN.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||rZ(this.snapshot.measuredBox.x)||rZ(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=G()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iQ(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||tX(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),oj((t=r).x),oj(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return G();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oE))){let{scroll:e}=this.root;e&&(t2(t.x,e.offset.x),t2(t.y,e.offset.y))}return t}removeElementScroll(e){let t=G();if(iW(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iW(t,e),t2(t.x,i.offset.x),t2(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||G();iW(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(t2(r.x,-n.scroll.offset.x),t2(r.y,-n.scroll.offset.y)),tX(n.latestValues)&&t3(r,n.latestValues,n.layout?.layoutBox)}return tX(this.latestValues)&&t3(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=G();iW(t,e);for(let e=0;e<this.path.length;e++){let n,r=this.path[e];tX(r.latestValues)&&(r.instance&&(tJ(r.latestValues)&&r.updateSnapshot(),iW(n=G(),r.measurePageBox())),iX(t,r.latestValues,r.snapshot?.layoutBox,n))}return tX(this.latestValues)&&iX(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==eP.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
106isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=eP.timestamp;let o=this.getClosestProjectingParent();if(o&&this.linkedParentVersion!==o.layoutVersion&&!o.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&o&&o.layout?this.createRelativeTarget(o,this.layout.layoutBox,o.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=G(),this.targetWithTransforms=G()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var s,a,l,c;this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,r1(s.x,a.x,l.x,c?.x),r1(s.y,a.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):iW(this.target,this.layout.layoutBox),t1(this.target,this.targetDelta)):iW(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&o&&!!o.resumingFrom==!!this.resumingFrom&&!o.options.layoutScroll&&o.target&&1!==this.animationProgress?this.createRelativeTarget(o,this.target,o.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||tJ(this.parent.latestValues)||tZ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=G(),this.relativeTargetOrigin=G(),r5(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),iW(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===eP.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iW(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){let i,o,s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(t2(e.x,-i.scroll.offset.x),t2(e.y,-i.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,t1(e,o)),r&&tX(i.latestValues)&&t3(e,i.latestValues,i.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=G());let{target:a}=e;if(!a){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iG(this.prevProjectionDelta.x,this.projectionDelta.x),iG(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),r0(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.treeScale.x===o&&this.treeScale.y===s&&i4(this.projectionDelta.x,this.prevProjectionDelta.x)&&i4(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=U(),this.projectionDelta=U(),this.projectionDeltaWithTransform=U()}setAnimationOrigin(e,t=!1,n){let r,i=this.snapshot,o=i?i.latestValues:{},s={...this.latestValues},a=U();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=G(),c=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,p=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(oy));this.animationProgress=0;let f=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,i=f?.(n);if(i?(a.x.translate=i.x,a.x.scale=tB(e.x.scale,1,n),a.x.origin=e.x.origin,a.x.originPoint=e.x.originPoint,a.y.translate=i.y,a.y.scale=tB(e.y.scale,1,n),a.y.origin=e.y.origin,a.y.originPoint=e.y.originPoint):(ox(a.x,e.x,n),ox(a.y,e.y,n)),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,m,g,x,v;r5(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),m=this.relativeTarget,g=this.relativeTargetOrigin,x=l,v=n,ov(m.x,g.x,x.x,v),ov(m.y,g.y,x.y,v),r&&(u=this.relativeTarget,h=r,
106i0(u.x,h.x)&&i0(u.y,h.y))&&(this.isProjectionDirty=!1),r||(r=G()),iW(r,this.relativeTarget)}c&&(this.animationValues=s,function(e,t,n,r,i,o){i?(e.opacity=tB(0,n.opacity??1,iV(r)),e.opacityExit=tB(t.opacity??1,0,iB(r))):o&&(e.opacity=tB(t.opacity??1,n.opacity??1,r));for(let i=0;i<iD;i++){let o=t$[i],s=iz(t,o),a=iz(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||i$(s)===i$(a)?(e[o]=Math.max(tB(iF(s),iF(a),r),0),(b.test(a)||b.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=tB(t.rotate||0,n.rotate||0,r))}(s,o,this.latestValues,n,p,d)),i&&void 0!==i.rotate&&(this.animationValues||(this.animationValues=s),this.animationValues.pathRotation=i.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eC(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eN.update(()=>{iT.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ts(0)),this.motionValue.jump(0,!1),this.currentAnimation=i_(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&oS(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||G();let t=rZ(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rZ(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iW(t,n),t3(t,i),r0(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new i3),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&oe("z",e,r,this.animationValues);for(let t=0;t<i7.length;t++)oe(`rotate${i7[t]}`,e,r,this.animationValues),oe(`skew${i7[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=np(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=np(t?.pointerEvents)||""),this.hasProjected&&!tX(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
106let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:o,rotateY:s,skewX:a,skewY:l}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),o&&(r+=`rotateX(${o}deg) `),s&&(r+=`rotateY(${s}deg) `),a&&(r+=`skewX(${a}deg) `),l&&(r+=`skewY(${l}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:s,y:a}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*a.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tH){if(void 0===i[t])continue;let{correct:n,applyTo:s,isCSSVariable:a}=tH[t],l="none"===o?i[t]:n(i[t],r);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=l}else a?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?np(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(oa),this.root.sharedNodes.clear()}}}function on(e){e.updateLayout()}function or(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;if("size"===i)rY(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rZ(r);r.min=n[e].min,r.max=r.min+i});else if("x"===i||"y"===i){let e="x"===i?"y":"x";iU(o?t.measuredBox[e]:t.layoutBox[e],n[e])}else oS(i,t.layoutBox,n)&&rY(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],s=rZ(n[r]);i.max=i.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)});let s=U();r0(s,n,t.layoutBox);let a=U();o?r0(a,e.applyTransform(r,!0),t.measuredBox):r0(a,n,t.layoutBox);let l=!iQ(s),c=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=e.options.layoutAnchor||void 0,a=G();r5(a,t.layoutBox,i.layoutBox,s);let l=G();r5(l,n,o.layoutBox,s),i2(a,l)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function oi(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function oo(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function os(e){e.clearSnapshot()}function oa(e){e.clearMeasurements()}function ol(e){e.isLayoutDirty=!0,e.updateLayout()}function oc(e){e.isLayoutDirty=!1}function ou(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function od(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function op(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function of(e){e.resolveTargetDelta()}function oh(e){e.calcProjection()}function om(e){e.resetSkewAndRotation()}function og(e){e.removeLeadSnapshot()}function ox(e,t,n){e.translate=tB(t.translate,0,n),e.scale=tB(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ov(e,t,n,r){e.min=tB(t.min,n.min,r),e.max=tB(t.max,n.max,r)}function oy(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let ob={duration:.45,ease:[.4,0,.1,1]},ow=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ok=ow("applewebkit/")&&!ow("chrome/")?Math.round:ek;function oj(e){e.min=ok(e.min),e.max=ok(e.max)}function oS(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(i5(t)-i5(n)))}function oE(e){return e!==e.root&&e.scroll?.wasRoot}let oN=ot({attachResizeListener:(e,t)=>rJ(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),oC={current:void 0},oP=ot({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oC.current){let e=new oN({});e.mount(window),e.setOptions({layoutScroll:!0}),oC.current=e}return oC.current},resetTransform:(e,t)=>
106{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function oT(e,t){let n=r6(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function oA(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&eN.postRender(()=>i(t,ic(t)))}function oI(e){return r4(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}e.s(["isHTMLElement",0,oI],772846);let oM=(e,t)=>!!t&&(e===t||oM(e,t.parentElement)),oL=new WeakSet;function oR(e){return t=>{"Enter"===t.key&&e(t)}}function o_(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function oO(e){return il(e)&&!(rX.x||rX.y)}let oD=new WeakSet;function oF(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&eN.postRender(()=>i(t,ic(t)))}let o$=new WeakMap,oz=new WeakMap,oV=e=>{let t=o$.get(e.target);t&&t(e)},oB=e=>{e.forEach(oV)},oH={some:0,all:1},oU=function(e,t){if("u"<typeof Proxy)return nN;let n=new Map,r=(n,r)=>nN(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,nN(o,void 0,e,t)),n.get(o))})}({animation:{Feature:class extends nC{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>rV(e,t,n))),n=rq(),r=!0,i=!1,o=t=>(n,r)=>{let i=nP(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function s(s){let{props:a}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rB;e++){let r=tp[e],i=t.props[r];(tu(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},c=[],u=new Set,d={},p=1/0;for(let t=0;t<rW;t++){var f,h;let m=rU[t],g=n[m],x=void 0!==a[m]?a[m]:l[m],v=tu(x),y=m===s?g.isActive:null;!1===y&&(p=t);let b=x===l[m]&&x!==a[m]&&v;if(b&&(r||i)&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===y||!x&&!g.prevProp||tc(x)||"boolean"==typeof x)continue;if("exit"===m&&g.isActive&&!0!==y){g.prevResolvedValues&&(d={...d,...g.prevResolvedValues});continue}let w=(f=g.prevProp,"string"==typeof(h=x)?h!==f:!!Array.isArray(h)&&!rH(h,f)),k=w||m===s&&g.isActive&&!b&&v||t>p&&v,j=!1,S=Array.isArray(x)?x:[x],E=S.reduce(o(m),{});!1===y&&(E={});let{prevResolvedValues:N={}}=g,C={...N,...E},P=t=>{k=!0,u.has(t)&&(j=!0,u.delete(t)),g.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=E[e],n=N[e];if(!d.hasOwnProperty(e))(nI(t)&&nI(n)?!rH(t,n)||w:t!==n)?null!=t?P(e):u.add(e):void 0!==t&&u.has(e)?P(e):g.protectedKeys[e]=!0}g.prevProp=x,g.prevResolvedValues=E,g.isActive&&(d={...d,...E}),(r||i)&&e.blockInitialAnimation&&(k=!1);let T=b&&w,A=!T||j;k&&A&&c.push(...S.map(t=>{let n={type:m};if("string"==typeof t&&(r||i)&&!T&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=nP(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=r$(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof a.initial){let n=nP(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let m=!!c.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(m=!1),r=!1,i=!1,m?t(c):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rq(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends nC{constructor(){super(...arguments),this.id=rK++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let n=nP(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
106{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends nC{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:n={}}=this.node.getProps(),{root:r,margin:i,amount:o="some",once:s}=n,a={root:r?r.current:void 0,rootMargin:i,threshold:"number"==typeof o?o:oH[o]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let n=e||document;oz.has(n)||oz.set(n,{});let r=oz.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oB,{root:e,...t})),r[i]}(a),o$.set(e,l),t.observe(e),()=>{o$.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends nC{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){let[r,i,o]=oT(e,n),s=e=>{let r=e.currentTarget;if(!oO(e)||oD.has(e))return;oL.add(r),n.stopPropagation&&oD.add(e);let o=t(r,e),s={...i,capture:!0},a=(e,t)=>{window.removeEventListener("pointerup",l,s),window.removeEventListener("pointercancel",c,s),oL.has(r)&&oL.delete(r),oO(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{a(e,r===window||r===document||n.useGlobalTarget||oM(r,e.target))},c=e=>{a(e,!1)};window.addEventListener("pointerup",l,s),window.addEventListener("pointercancel",c,s)};return r.forEach(e=>{((n.useGlobalTarget?window:e).addEventListener("pointerdown",s,i),oI(e))&&(e.addEventListener("focus",e=>((e,t)=>{let n=e.currentTarget;if(!n)return;let r=oR(()=>{if(oL.has(n))return;o_(n,"down");let e=oR(()=>{o_(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>o_(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),is.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(oF(this.node,t,"Start"),(e,{success:t})=>oF(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}}},focus:{Feature:class extends nC{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=nR(rJ(this.node.current,"focus",()=>this.onFocus()),rJ(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends nC{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=oT(e,n);return r.forEach(e=>{let n,r=!1,o=!1,s=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},a=e=>{r=!1,window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",a),o&&(o=!1,s(e))},l=e=>{if("touch"!==e.pointerType){if(r){o=!0;return}s(e)}};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||rX.x||rX.y)return;o=!1;let s=t(e,r);"function"==typeof s&&(n=s,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",a,i)},i)}),o}(e,(e,t)=>(oA(this.node,t,"Start"),e=>oA(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends nC{constructor(){super(...arguments),this.removePointerDownListener=ek}onPointerDown(e){this.session=new im(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:id(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:iP(e),onStart:iP(t),onMove:iP(n),onEnd:(e,t)=>{delete this.session,r&&eN.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=iu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends nC{constructor(e){super(e),this.removeGroupControls=ek,this.removeListeners=ek,this.controls=new iE(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ek}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:oP,MeasureLayout:iR},layout:{ProjectionNode:oP,MeasureLayout:iR}},(e,t)=>t.isSVG??ne(e)?new tq(t):new t8(t,{allowProjection:e!==t7.Fragment}));e.s(["motion",0,oU],846932)},126568,(e,t,n)=>{"use strict";var r=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,i=/\n/g,o=/^\s*/,s=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;
106\s]*/,u=/^\s+|\s+$/g;function d(e){return e?e.replace(u,""):""}t.exports=function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,u=1;function p(e){var t=e.match(i);t&&(n+=t.length);var r=e.lastIndexOf("\n");u=~r?e.length-r:u+e.length}function f(){var e={line:n,column:u};return function(t){return t.position=new h(e),g(o),t}}function h(e){this.start=e,this.end={line:n,column:u},this.source=t.source}function m(r){var i=Error(t.source+":"+n+":"+u+": "+r);if(i.reason=r,i.filename=t.source,i.line=n,i.column=u,i.source=e,t.silent);else throw i}function g(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return u+=2,p(r),e=e.slice(n),u+=2,t({type:"comment",comment:r})}}h.prototype.content=e,g(o);var y,b=[];for(x(b);y=function(){var e=f(),t=g(s);if(t){if(v(),!g(a))return m("property missing ':'");var n=g(l),i=e({type:"declaration",property:d(t[0].replace(r,"")),value:n?d(n[0].replace(r,"")):""});return g(c),i}}();)!1!==y&&(b.push(y),x(b));return b}},270454,(e,t,n)=>{"use strict";var r=e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),o="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;o?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(e.r(126568))},965185,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,i=/-([a-z])/g,o=/^[^-]+$/,s=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,l=function(e,t){return t.toUpperCase()},c=function(e,t){return"".concat(t,"-")};n.camelCase=function(e,t){var n;return(void 0===t&&(t={}),!(n=e)||o.test(n)||r.test(n))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,c):e.replace(s,c)).replace(i,l))}},515511,(e,t,n)=>{"use strict";var r=(e.e&&e.e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(e.r(270454)),i=e.r(965185);function o(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}o.default=o,t.exports=o},475254,e=>{"use strict";var t=e.i(271645);let n=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},r=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,t.forwardRef)(({color:e="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...i,width:n,height:n,stroke:e,strokeWidth:s?24*Number(o)/Number(n):o,className:r("lucide",a),...!l&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,n])=>(0,t.createElement)(e,n)),...Array.isArray(l)?l:[l]]));e.s(["default",0,(e,i)=>{let s=(0,t.forwardRef)(({className:s,...a},l)=>(0,t.createElement)(o,{ref:l,iconNode:i,className:r(`lucide-${n(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,s),...a}
106));return s.displayName=n(e),s}],475254)},115057,107233,260619,387951,514764,887652,895420,591994,387652,870014,433768,310542,101048,798031,832724,952571,89128,164668,e=>{"use strict";var t=e.i(475254);let n=(0,t.default)("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);e.s(["ArrowUpRight",0,n],115057);let r=(0,t.default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["Plus",0,r],107233);let i=(0,t.default)("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);e.s(["WandSparkles",0,i],260619);let o=(0,t.default)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]);e.s(["Mic",0,o],387951);let s=(0,t.default)("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);e.s(["Send",0,s],514764);var a=e.i(486427),l=e.i(271645),c=e.i(737806),u=e.i(947414);function d(e){let t=(0,u.useConstant)(()=>(0,a.motionValue)(e)),{isStatic:n}=(0,l.useContext)(c.MotionConfigContext);if(n){let[,n]=(0,l.useState)(e);(0,l.useEffect)(()=>t.on("change",n),[])}return t}e.s(["useMotionValue",0,d],887652);var p=e.i(83352),f=e.i(83411),h=e.i(287022);function m(e){return"number"==typeof e?e:parseFloat(e)}var g=e.i(344230),x=e.i(674008);function v(e,t){let n=d(t()),r=()=>n.set(t());return r(),(0,x.useIsomorphicLayoutEffect)(()=>{let t=()=>h.frame.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,h.cancelFrame)(r)}}),n}function y(e,t,n,r){if("function"==typeof e){let t;return a.collectMotionValues.current=[],e(),t=v(a.collectMotionValues.current,e),a.collectMotionValues.current=void 0,t}if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t){var i=e,o=t,s=n,l=r;let a=(0,u.useConstant)(()=>Object.keys(s)),c=(0,u.useConstant)(()=>({}));for(let e of a)c[e]=y(i,o,s[e],l);return c}let c="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=(0,g.interpolate)(i,o,s);return t?a(r):a}(t,n,r),d=Array.isArray(e)?b(e,c):b([e],([e])=>c(e)),p=Array.isArray(e)?void 0:e.accelerate;return p&&!p.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&r?.clamp!==!1&&(d.accelerate={...p,times:t,keyframes:n,isTransformed:!0,...r?.ease?{ease:r.ease}:{}}),d}function b(e,t){let n=(0,u.useConstant)(()=>[]);return v(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}e.s(["useTransform",0,y],895420),e.s(["useSpring",0,function(e,t={}){return function(e,t={}){let{isStatic:n}=(0,l.useContext)(c.MotionConfigContext),r=()=>(0,f.isMotionValue)(e)?e.get():e;if(n)return y(r);let i=d(r());return(0,l.useInsertionEffect)(()=>(function(e,t,n={}){let r,i=e.get(),o=null,s=i,a="string"==typeof i?i.replace(/[\d.-]/g,""):void 0,l=()=>{o&&(o.stop(),o=null),e.animation=void 0},c=()=>{(()=>{let t=m(e.get()),i=m(s);if(t===i)return l();let a=o?o.getGeneratorVelocity():e.getVelocity();l(),o=new p.JSAnimation({keyframes:[t,i],velocity:a,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:r})})(),e.animation=o??void 0,e.events.animationStart?.notify(),o?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{s=e,r=e=>{var n,r;return t((n=e,(r=a)?n+r:n))},h.frame.postRender(c)},l),(0,f.isMotionValue)(t)){let r=!0===n.skipInitialAnimation,i=t.on("change",t=>{var n,i,o,s;r?(r=!1,e.jump((n=t,(i=a)?n+i:n),!1)):e.set((o=t,(s=a)?o+s:o))}),o=e.on("destroy",i);return()=>{i(),o()}}return l})(i,e,t),[i,JSON.stringify(t)]),i}(e,{type:"spring",...t})}],591994);var w=e.i(749652);let k={some:0,all:1};e.s(["useInView",0,function(e,{root:t,margin:n,amount:r,once:i=!1,initial:o=!1}={}){let[s,a]=(0,l.useState)(o);return(0,l.useEffect)(()=>
106{if(!e.current||i&&s)return;let o={root:t&&t.current||void 0,margin:n,amount:r};return function(e,t,{root:n,margin:r,amount:i="some"}={}){let o=(0,w.resolveElements)(e),s=new WeakMap,a=new IntersectionObserver(e=>{e.forEach(e=>{let n=s.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?s.set(e.target,n):a.unobserve(e.target)}else"function"==typeof n&&(n(e),s.delete(e.target))})},{root:n,rootMargin:r,threshold:"number"==typeof i?i:k[i]});return o.forEach(e=>a.observe(e)),()=>a.disconnect()}(e.current,()=>(a(!0),i?void 0:()=>a(!1)),o)},[t,e,n,i,r]),s}],387652);var j=e.i(876859),S=e.i(347834),E=e.i(965566);function N(e,t){[...t].reverse().forEach(n=>{let r=e.getVariant(n);r&&(0,S.setTarget)(e,r),e.variantChildren&&e.variantChildren.forEach(e=>{N(e,t)})})}function C(){let e=!1,t=new Set,n={subscribe:e=>(t.add(e),()=>void t.delete(e)),start(n,r){(0,E.invariant)(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let i=[];return t.forEach(e=>{i.push((0,j.animateVisualElement)(e,n,{transitionOverride:r}))}),Promise.all(i)},set:n=>((0,E.invariant)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{var t,r;t=e,Array.isArray(r=n)?N(t,r):"string"==typeof r?N(t,[r]):(0,S.setTarget)(t,r)})),stop(){t.forEach(e=>{e.values.forEach(e=>e.stop())})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}e.s(["useAnimation",0,function(){let e=(0,u.useConstant)(C);return(0,x.useIsomorphicLayoutEffect)(e.mount,[]),e}],870014),e.s(["useMotionValueEvent",0,function(e,t,n){(0,l.useInsertionEffect)(()=>e.on(t,n),[e,t,n])}],433768);var P=e.i(560140),T=e.i(930551),A=e.i(260830);function I(e,t){let n,r=()=>{let{currentTime:r}=t,i=(null===r?0:r.value)/100;n!==i&&e(i),n=i};return h.frame.preUpdate(r,!0),()=>(0,h.cancelFrame)(r)}function M(e){return!("u"<typeof window)&&(e?(0,T.supportsViewTimeline)():(0,T.supportsScrollTimeline)())}var L=e.i(661327),R=e.i(783920),_=e.i(325791);let O=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),D={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function F(e,t,n,r){let i=n[t],{length:o,position:s}=D[t],a=i.current,l=n.time;i.current=Math.abs(e[`scroll${s}`]),i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=(0,R.progress)(0,i.scrollLength,i.current);let c=r-l;i.velocity=c>50?0:(0,_.velocityPerSecond)(i.current-a,c)}var $=e.i(515923),z=e.i(476959),V=e.i(772846);let B={start:0,center:.5,end:1};function H(e,t,n=0){let r=0;if(e in B&&(e=B[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?r=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?r=t/100*document.documentElement.clientWidth:e.endsWith("vh")?r=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(r=t*e),n+r}let U=[0,0],W=[[0,0],[1,1]],G={x:0,y:0},q=new WeakMap,K=new WeakMap,Y=new WeakMap,J=new WeakMap,X=new WeakMap,Z=e=>e===document.scrollingElement?window:e;function Q(e,{container:t=document.scrollingElement,trackContentSize:n=!1,...r}={}){if(!t)return A.noop;let i=Y.get(t);i||(i=new Set,Y.set(t,i));let o=function(e,t,n,r={}){return{measure:t=>{!function(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}(e,r.target,n),F(e,"x",n,t),F(e,"y",n,t),n.time=t,(r.offset||r.target)&&function(e,t,n){let{offset:r=W}=n,{target:i=e,axis:o="y"}=n,s="y"===o?"height":"width",a=i!==e?function(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if((0,V.isHTMLElement)(r))n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if("svg"===r.tagName){let e=r.getBoundingClientRect(),t=(r=r.parentElement).getBoundingClientRect();n.x+=e.left-t.left,n.y+=e.top-t.top}else if(r instanceof SVGGraphicsElement){let{x:e,y:t}=r.getBBox();n.x+=e,n.y+=t;let i=null,o=r.parentNode;for(;!i;)"svg"===o.tagName&&(i=o),o=r.parentNode;r=i}else break;return n}(i,e):G,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in i&&"svg"!==i.tagName?i.getBBox():{width:i.clientWidth,height:i.clientHeight},c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate,d=r.length;for(let e=0;e<d;e++){let n=function(e,t,n,r){let i=Array.isArray(e)?e:U,o=0;
106return"number"==typeof e?i=[e,e]:"string"==typeof e&&(i=(e=e.trim()).includes(" ")?e.split(" "):[e,B[e]?e:"0"]),(o=H(i[0],n,r))-H(i[1],t)}(r[e],c[s],l[s],a[o]);u||n===t[o].interpolatorOffsets[e]||(u=!0),t[o].offset[e]=n}u&&(t[o].interpolate=(0,g.interpolate)(t[o].offset,(0,$.defaultOffset)(r),{clamp:!1}),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=(0,z.clamp)(0,1,t[o].interpolate(t[o].current))}(e,n,r)},notify:()=>t(n)}}(t,e,{time:0,x:O(),y:O()},r);if(i.add(o),!q.has(t)){let e=()=>{for(let e of i)e.measure(h.frameData.timestamp);h.frame.preUpdate(n)},n=()=>{for(let e of i)e.notify()},r=()=>h.frame.read(e);q.set(t,r);let o=Z(t);window.addEventListener("resize",r),t!==document.documentElement&&K.set(t,(0,L.resize)(t,r)),o.addEventListener("scroll",r),r()}if(n&&!X.has(t)){let e=q.get(t),n={width:t.scrollWidth,height:t.scrollHeight};J.set(t,n);let r=h.frame.read(()=>{let r=t.scrollWidth,i=t.scrollHeight;(n.width!==r||n.height!==i)&&(e(),n.width=r,n.height=i)},!0);X.set(t,r)}let s=q.get(t);return h.frame.read(s,!1,!0),()=>{(0,h.cancelFrame)(s);let e=Y.get(t);if(!e||(e.delete(o),e.size))return;let n=q.get(t);q.delete(t),n&&(Z(t).removeEventListener("scroll",n),K.get(t)?.(),window.removeEventListener("resize",n));let r=X.get(t);r&&((0,h.cancelFrame)(r),X.delete(t)),J.delete(t)}}let ee=[[[[0,1],[1,1]],"entry"],[[[0,0],[1,0]],"exit"],[[[1,0],[0,1]],"cover"],[W,"contain"]],et={start:0,end:1};function en(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(let[t,n]of ee)if(function(e,t){let n=function(e){if(2!==e.length)return;let t=[];for(let n of e)if(Array.isArray(n))t.push(n);else{if("string"!=typeof n)return;let e=function(e){let t=e.trim().split(/\s+/);if(2!==t.length)return;let n=et[t[0]],r=et[t[1]];if(void 0!==n&&void 0!==r)return[n,r]}(n);if(!e)return;t.push(e)}return t}(e);if(!n)return!1;for(let e=0;e<2;e++){let r=n[e],i=t[e];if(r[0]!==i[0]||r[1]!==i[1])return!1}return!0}(e,t))return{rangeStart:`${n} 0%`,rangeEnd:`${n} 100%`}}let er=new Map;function ei(e){let t={value:0},n=Q(n=>{t.value=100*n[e.axis].progress},e);return{currentTime:t,cancel:n}}function eo({source:e,container:t,...n}){let{axis:r}=n;e&&(t=e);let i=er.get(t);i||(i=new Map,er.set(t,i));let o=n.target??"self",s=i.get(o);s||(s={},i.set(o,s));let a=r+(n.offset??[]).join(",");return s[a]||(n.target&&M(n.target)?en(n.offset)?s[a]=new ViewTimeline({subject:n.target,axis:r}):s[a]=ei({container:t,...n}):M()?s[a]=new ScrollTimeline({source:t,axis:r}):s[a]=ei({container:t,...n})),s[a]}function es(e,{axis:t="y",container:n=document.scrollingElement,...r}={}){let i,o,s;if(!n)return A.noop;let a={axis:t,container:n,...r};return"function"==typeof e?function(e,t){return 2===e.length||t&&(t.target||t.offset)?Q(n=>{e(n[t.axis].progress,n)},t):I(e,eo(t))}(e,a):(i=eo(a),o=a.target?en(a.offset):void 0,s=a.target?M(a.target)&&!!o:M(),e.attachTimeline({timeline:s?i:void 0,...o&&s&&{rangeStart:o.rangeStart,rangeEnd:o.rangeEnd},observe:e=>(e.pause(),I(t=>{e.time=e.iterationDuration*t},i))}))}let ea=()=>({scrollX:(0,a.motionValue)(0),scrollY:(0,a.motionValue)(0),scrollXProgress:(0,a.motionValue)(0),scrollYProgress:(0,a.motionValue)(0)}),el=e=>!!e&&!e.current;function ec(e,t,n,r){return{factory:i=>{let o,s=()=>{el(n)||el(r)?P.microtask.read(s):o=es(i,{...t,axis:e,container:n?.current||void 0,target:r?.current||void 0})};return P.microtask.read(s),()=>{(0,P.cancelMicrotask)(s),o?.()}},times:[0,1],keyframes:[0,1],ease:e=>e,duration:1}}e.s(["useScroll",0,function({container:e,target:t,...n}={}){var r;let i=(0,u.useConstant)(ea);r=n.offset,!("u"<typeof window)&&(t?(0,T.supportsViewTimeline)()&&!!en(r):(0,T.supportsScrollTimeline)())&&(i.scrollXProgress.accelerate=ec("x",n,e,t),i.scrollYProgress.accelerate=ec("y",n,e,t));let o=(0,l.useRef)(null),s=(0,l.useRef)(!1),a=(0,l.useCallback)(()=>(o.current=es((e,{x:t,y:n})=>{i.scrollX.set(t.current),i.scrollXProgress.set(t.progress),i.scrollY.set(n.current),i.scrollYProgress.set(n.progress)},{...n,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(n.offset)]);return(0,x.useIsomorphicLayoutEffect)(()=>
106{if(s.current=!1,!(el(e)||el(t)))return a();s.current=!0},[a]),(0,l.useEffect)(()=>{let n;if(!s.current)return;let r=()=>{let r=el(e),i=el(t);(0,E.invariant)(!r,"Container ref is defined but not hydrated","use-scroll-ref"),(0,E.invariant)(!i,"Target ref is defined but not hydrated","use-scroll-ref"),r||i||(n=a())};return P.microtask.read(r),()=>{(0,P.cancelMicrotask)(r),n?.()}},[a]),i}],310542);let eu=(0,t.default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);e.s(["CircleCheck",0,eu],101048);let ed=(0,t.default)("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);e.s(["default",0,ed],798031),e.s(["CircleX",0,ed],832724);let ep=(0,t.default)("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);e.s(["Info",0,ep],952571);var ef=e.i(582458);e.s(["TriangleAlert",()=>ef.default],89128);var eh=e.i(717521);e.s(["LoaderCircle",()=>eh.default],164668)},643531,e=>{"use strict";let t=(0,e.i(475254).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,t],643531)},664659,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",0,t],664659)},655900,e=>{"use strict";let t=(0,e.i(475254).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);e.s(["ChevronUp",0,t],655900)},174886,e=>{"use strict";let t=(0,e.i(475254).default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,t],174886)},286536,77705,998307,656272,752044,e=>{"use strict";let t,n;var r=e.i(475254);let i=(0,r.default)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);e.s(["Eye",0,i],286536);let o=(0,r.default)("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);e.s(["EyeOff",0,o],77705);var s=e.i(783222),a=e.i(433336),l=e.i(271645),c=e.i(394487),u=e.i(992704),d=e.i(914189),p=e.i(693456),f=e.i(835696),h=e.i(941444),m=e.i(877891),g=e.i(952744),x=e.i(605083),v=e.i(144279),y=e.i(185935),b=e.i(101852),w=e.i(255743),k=e.i(294316),j=e.i(661130),S=e.i(83733),E=e.i(674175),N=e.i(919751),C=e.i(2788),P=e.i(233137),T=e.i(140407),A=e.i(233538),I=e.i(813581),M=e.i(652265),L=e.i(397701),R=e.i(402155),_=e.i(700020),O=e.i(998348),D=e.i(635307),F=e.i(825720),$=e.i(341650),z=Object.defineProperty,V=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?z(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},B=((t=B||{})[t.Open=0]="Open",t[t.Closed=1]="Closed",t),H=((n=H||{})[n.OpenPopover=0]="OpenPopover",n[n.ClosePopover=1]="ClosePopover",n[n.SetButton=2]="SetButton",n[n.SetButtonId=3]="SetButtonId",n[n.SetPanel=4]="SetPanel",n[n.SetPanelId=5]="SetPanelId",n);let U={0:e=>0===e.popoverState?e:{...e,popoverState:0,__demoMode:!1},1:e=>1===e.popoverState?e:{...e,popoverState:1,__demoMode:!1},2:(e,t)=>e.button===t.button?e:{...e,button:t.button},3:(e,t)=>
106e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},4:(e,t)=>e.panel===t.panel?e:{...e,panel:t.panel},5:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}};class W extends F.Machine{constructor(e){super(e),V(this,"actions",{close:()=>this.send({type:1}),refocusableClose:e=>{this.actions.close();let t=e?I.isHTMLElement(e)?e:"current"in e&&I.isHTMLElement(e.current)?e.current:this.state.button:this.state.button;null==t||t.focus()},open:()=>this.send({type:0}),setButtonId:e=>this.send({type:3,buttonId:e}),setButton:e=>this.send({type:2,button:e}),setPanelId:e=>this.send({type:5,panelId:e}),setPanel:e=>this.send({type:4,panel:e})}),V(this,"selectors",{isPortalled:e=>{var t;if(!e.button||!e.panel)return!1;let n=null!=(t=(0,R.getOwnerDocument)(e.button))?t:document;for(let t of n.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(e.button))^Number(null==t?void 0:t.contains(e.panel)))return!0;let r=(0,M.getFocusableElements)(n),i=r.indexOf(e.button),o=(i+r.length-1)%r.length,s=(i+1)%r.length,a=r[o],l=r[s];return!e.panel.contains(a)&&!e.panel.contains(l)}});{let e=this.state.id,t=$.stackMachines.get(null);this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}static new({id:e,__demoMode:t=!1}){return new W({id:e,__demoMode:t,popoverState:+!t,buttons:{current:[]},button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:{current:null},afterPanelSentinel:{current:null},afterButtonSentinel:{current:null}})}reduce(e,t){return(0,L.match)(t.type,U,e,t)}}var G=e.i(526599);let q=(0,l.createContext)(null);function K(e){let t=(0,l.useContext)(q);if(null===t){let t=Error(`<${e} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,K),t}return t}let Y=(0,l.createContext)(null);function J(){return(0,l.useContext)(Y)}Y.displayName="PopoverGroupContext";let X=(0,l.createContext)(null);X.displayName="PopoverPanelContext";let Z=_.RenderFeatures.RenderStrategy|_.RenderFeatures.Static;function Q(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-backdrop-${n}`,transition:i=!1,...o}=e,s=K("Popover.Backdrop"),a=(0,T.useSlice)(s,(0,l.useCallback)(e=>e.popoverState,[])),[c,u]=(0,l.useState)(null),p=(0,k.useSyncRefs)(t,u),f=(0,P.useOpenClosed)(),[h,m]=(0,S.useTransition)(i,c,null!==f?(f&P.State.Open)===P.State.Open:a===B.Open),g=(0,d.useEvent)(e=>{if((0,A.isDisabledReactIssue7711)(e.currentTarget))return e.preventDefault();s.actions.close()}),x=(0,w.useSlot)({open:a===B.Open}),v={ref:p,id:r,"aria-hidden":!0,onClick:g,...(0,S.transitionDataAttributes)(m)};return(0,_.useRender)()({ourProps:v,theirProps:o,slot:x,defaultTag:"div",features:Z,visible:h,name:"Popover.Backdrop"})}let ee=_.RenderFeatures.RenderStrategy|_.RenderFeatures.Static,et=(0,_.forwardRefWithAs)(function(e,t){var n;let r=(0,l.useId)(),{__demoMode:i=!1,...o}=e,s=function({id:e,__demoMode:t=!1}){let n=(0,l.useMemo)(()=>W.new({id:e,__demoMode:t}),[]);return(0,G.useOnUnmount)(()=>n.dispose()),n}({id:r,__demoMode:i}),a=(0,l.useRef)(null),c=(0,k.useSyncRefs)(t,(0,k.optionalRef)(e=>{a.current=e})),[u,f,m,v,b]=(0,T.useSlice)(s,(0,l.useCallback)(e=>[e.popoverState,e.button,e.panel,e.buttonId,e.panelId],[])),j=(0,x.useRootDocument)(null!=(n=a.current)?n:f),S=(0,h.useLatestValue)(v),C=(0,h.useLatestValue)(b),A=(0,l.useMemo)(()=>({buttonId:S,panelId:C,close:s.actions.close}),[S,C,s]),O=J(),F=null==O?void 0:O.registerPopover,$=(0,d.useEvent)(()=>{var e,t;let n=(0,R.getActiveElement)(null!=(e=a.current)?e:f);return null!=(t=null==O?void 0:O.isFocusWithinPopoverGroup())?t:n&&((null==f?void 0:f.contains(n))||(null==m?void 0:m.contains(n)))});(0,l.useEffect)(()=>null==F?void 0:F(A),[F,A]);let[z,V]=(0,D.useNestedPortals)(),H=(0,y.useMainTreeNode)(f),U=(0,y.useRootContainers)({mainTreeNode:H,portals:z,defaultContainers:[{get current(){return s.state.button}},{get current(){return s.state.panel}}]});(0,p.useEventListener)(j,"focus",e=>{var t,n,r,i,o,a;e.target!==window&&I.isHTMLorSVGElement(e.target)&&s.state.popoverState===B.Open&&($()||s.state.button&&s.state.panel&&(U.contains(e.target)||null!=(n=null==(t=s.state.beforePanelSentinel.current)?void 0:t.contains)&&n.call(t,e.target)||null!=(i=null==(r=s.state.afterPanelSentinel.current)?void 0:r.contains)&&i.call(r,e.target)||null!=(a=null==(o=s.state.afterButtonSentinel.current)?void 0:o.contains)&&a.call(o,e.target)||s.actions.close()))},!0);let K=u===B.Open;(0,g.useOutsideClick)(K,U.resolveContainers,(e,t)=>{s.actions.close(),(0,M.isFocusableElement)(t,M.FocusableMode.Loose)||(e.preventDefault(),null==f||f.focu
106s())});let Y=(0,w.useSlot)({open:u===B.Open,close:s.actions.refocusableClose}),Z=(0,T.useSlice)(s,(0,l.useCallback)(e=>(0,L.match)(e.popoverState,{[B.Open]:P.State.Open,[B.Closed]:P.State.Closed}),[])),Q=(0,_.useRender)();return l.default.createElement(y.MainTreeProvider,{node:H},l.default.createElement(N.FloatingProvider,null,l.default.createElement(X.Provider,{value:null},l.default.createElement(q.Provider,{value:s},l.default.createElement(E.CloseProvider,{value:s.actions.refocusableClose},l.default.createElement(P.OpenClosedProvider,{value:Z},l.default.createElement(V,null,Q({ourProps:{ref:c},theirProps:o,slot:Y,defaultTag:"div",name:"Popover"}))))))))}),en=(0,_.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-button-${n}`,disabled:i=!1,autoFocus:o=!1,...u}=e,p=K("Popover.Button"),[f,h,m,g,x,y,b]=(0,T.useSlice)(p,(0,l.useCallback)(e=>[e.popoverState,p.selectors.isPortalled(e),e.button,e.buttonId,e.panel,e.panelId,e.afterButtonSentinel],[])),S=(0,l.useRef)(null),E=`headlessui-focus-sentinel-${(0,l.useId)()}`,P=J(),D=null==P?void 0:P.closeOthers,F=null!==(0,l.useContext)(X);(0,l.useEffect)(()=>{if(!F)return p.actions.setButtonId(r),()=>p.actions.setButtonId(null)},[F,r,p]);let[$]=(0,l.useState)(()=>Symbol()),z=(0,k.useSyncRefs)(S,t,(0,N.useFloatingReference)(),(0,d.useEvent)(e=>{if(!F){if(e)p.state.buttons.current.push($);else{let e=p.state.buttons.current.indexOf($);-1!==e&&p.state.buttons.current.splice(e,1)}p.state.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),e&&p.actions.setButton(e)}})),V=(0,k.useSyncRefs)(S,t),H=(0,d.useEvent)(e=>{var t,n,r;if(F){if(p.state.popoverState===B.Closed)return;switch(e.key){case O.Keys.Space:case O.Keys.Enter:e.preventDefault(),null==(n=(t=e.target).click)||n.call(t),p.actions.close(),null==(r=p.state.button)||r.focus()}}else switch(e.key){case O.Keys.Space:case O.Keys.Enter:e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==D||D(p.state.buttonId),p.actions.open()):p.actions.close();break;case O.Keys.Escape:if(p.state.popoverState!==B.Open)return null==D?void 0:D(p.state.buttonId);if(!S.current)return;let i=(0,R.getActiveElement)(S.current);if(i&&!S.current.contains(i))return;e.preventDefault(),e.stopPropagation(),p.actions.close()}}),U=(0,d.useEvent)(e=>{F||e.key===O.Keys.Space&&e.preventDefault()}),W=(0,d.useEvent)(e=>{var t,n;(0,A.isDisabledReactIssue7711)(e.currentTarget)||i||(F?(p.actions.close(),null==(t=p.state.button)||t.focus()):(e.preventDefault(),e.stopPropagation(),p.state.popoverState===B.Closed?(null==D||D(p.state.buttonId),p.actions.open()):p.actions.close(),null==(n=p.state.button)||n.focus()))}),G=(0,d.useEvent)(e=>{e.preventDefault(),e.stopPropagation()}),{isFocusVisible:q,focusProps:Y}=(0,s.useFocusRing)({autoFocus:o}),{isHovered:Z,hoverProps:Q}=(0,a.useHover)({isDisabled:i}),{pressed:ee,pressProps:et}=(0,c.useActivePress)({disabled:i}),en=f===B.Open,er=(0,w.useSlot)({open:en,active:ee||en,disabled:i,hover:Z,focus:q,autofocus:o}),ei=(0,v.useResolveButtonType)(e,m),eo=F?(0,_.mergeProps)({ref:V,type:ei,onKeyDown:H,onClick:W,disabled:i||void 0,autoFocus:o},Y,Q,et):(0,_.mergeProps)({ref:z,id:g,type:ei,"aria-expanded":f===B.Open,"aria-controls":x?y:void 0,disabled:i||void 0,autoFocus:o,onKeyDown:H,onKeyUp:U,onClick:W,onMouseDown:G},Y,Q,et),es=(0,j.useTabDirection)(),ea=(0,d.useEvent)(()=>{if(!I.isHTMLElement(p.state.panel))return;let e=p.state.panel;(0,L.match)(es.current,{[j.Direction.Forwards]:()=>(0,M.focusIn)(e,M.Focus.First),[j.Direction.Backwards]:()=>(0,M.focusIn)(e,M.Focus.Last)})===M.FocusResult.Error&&(0,M.focusIn)((0,M.getFocusableElements)((0,R.getRootNode)(p.state.button)).filter(e=>"true"!==e.dataset.headlessuiFocusGuard),(0,L.match)(es.current,{[j.Direction.Forwards]:M.Focus.Next,[j.Direction.Backwards]:M.Focus.Previous}),{relativeTo:p.state.button})}),el=(0,_.useRender)();return l.default.createElement(l.default.Fragment,null,el({ourProps:eo,theirProps:u,slot:er,defaultTag:"button",name:"Popover.Button"}),en&&!F&&h&&l.default.createElement(C.Hidden,{id:E,ref:b,features:C.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ea}))}),er=(0,_.forwardRefWithAs)(Q),ei=(0,_.forwardRefWithAs)(Q),eo=(0,_.forwardRefWithAs)(function(e,t){let n=(0,l.useId)(),{id:r=`headlessui-popover-panel-${n}
106`,focus:i=!1,anchor:o,portal:s=!1,modal:a=!1,transition:c=!1,...p}=e,h=K("Popover.Panel"),g=(0,T.useSlice)(h,h.selectors.isPortalled),[v,y,A,I,F]=(0,T.useSlice)(h,(0,l.useCallback)(e=>[e.popoverState,e.button,e.__demoMode,e.beforePanelSentinel,e.afterPanelSentinel],[])),$=`headlessui-focus-sentinel-before-${n}`,z=`headlessui-focus-sentinel-after-${n}`,V=(0,l.useRef)(null),H=(0,N.useResolvedAnchor)(o),[U,W]=(0,N.useFloatingPanel)(H),G=(0,N.useFloatingPanelProps)();H&&(s=!0);let[q,Y]=(0,l.useState)(null),J=(0,k.useSyncRefs)(V,t,H?U:null,h.actions.setPanel,Y),Z=(0,x.useOwnerDocument)(y),Q=(0,x.useOwnerDocument)(V.current);(0,f.useIsoMorphicEffect)(()=>(h.actions.setPanelId(r),()=>h.actions.setPanelId(null)),[r,h]);let et=(0,P.useOpenClosed)(),[en,er]=(0,S.useTransition)(c,q,null!==et?(et&P.State.Open)===P.State.Open:v===B.Open);(0,m.useOnDisappear)(en,y,h.actions.close),(0,b.useScrollLock)(!A&&a&&en,Q);let ei=(0,d.useEvent)(e=>{var t;if(e.key===O.Keys.Escape){if(h.state.popoverState!==B.Open||!V.current)return;let n=(0,R.getActiveElement)(V.current);if(n&&!V.current.contains(n))return;e.preventDefault(),e.stopPropagation(),h.actions.close(),null==(t=h.state.button)||t.focus()}});(0,l.useEffect)(()=>{var t;e.static||v===B.Closed&&(null==(t=e.unmount)||t)&&h.actions.setPanel(null)},[v,e.unmount,e.static,h]),(0,l.useEffect)(()=>{if(A||!i||v!==B.Open||!V.current)return;let e=(0,R.getActiveElement)(V.current);V.current.contains(e)||(0,M.focusIn)(V.current,M.Focus.First)},[A,i,V.current,v]);let eo=(0,w.useSlot)({open:v===B.Open,close:h.actions.refocusableClose}),es=(0,_.mergeProps)(H?G():{},{ref:J,id:r,onKeyDown:ei,onBlur:i&&v===B.Open?e=>{var t,n,r,i,o;let s=e.relatedTarget;s&&V.current&&(null!=(t=V.current)&&t.contains(s)||(h.actions.close(),(null!=(r=null==(n=I.current)?void 0:n.contains)&&r.call(n,s)||null!=(o=null==(i=F.current)?void 0:i.contains)&&o.call(i,s))&&s.focus({preventScroll:!0})))}:void 0,tabIndex:-1,style:{...p.style,...W,"--button-width":(0,u.useElementSize)(en,y,!0).width},...(0,S.transitionDataAttributes)(er)}),ea=(0,j.useTabDirection)(),el=(0,d.useEvent)(()=>{let e=V.current;e&&(0,L.match)(ea.current,{[j.Direction.Forwards]:()=>{var t;(0,M.focusIn)(e,M.Focus.First)===M.FocusResult.Error&&(null==(t=h.state.afterPanelSentinel.current)||t.focus())},[j.Direction.Backwards]:()=>{var e;null==(e=h.state.button)||e.focus({preventScroll:!0})}})}),ec=(0,d.useEvent)(()=>{let e=V.current;e&&(0,L.match)(ea.current,{[j.Direction.Forwards]:()=>{var e;if(!h.state.button)return;let t=null!=(e=(0,R.getRootNode)(h.state.button))?e:document.body,n=(0,M.getFocusableElements)(t),r=n.indexOf(h.state.button),i=n.slice(0,r+1),o=[...n.slice(r+1),...i];for(let e of o.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=q&&q.contains(e)){let t=o.indexOf(e);-1!==t&&o.splice(t,1)}(0,M.focusIn)(o,M.Focus.First,{sorted:!1})},[j.Direction.Backwards]:()=>{var t;(0,M.focusIn)(e,M.Focus.Previous)===M.FocusResult.Error&&(null==(t=h.state.button)||t.focus())}})}),eu=(0,_.useRender)();return l.default.createElement(P.ResetOpenClosedProvider,null,l.default.createElement(X.Provider,{value:r},l.default.createElement(E.CloseProvider,{value:h.actions.refocusableClose},l.default.createElement(D.Portal,{enabled:!!s&&(e.static||en),ownerDocument:Z},en&&g&&l.default.createElement(C.Hidden,{id:$,ref:I,features:C.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:el}),eu({ourProps:es,theirProps:p,slot:eo,defaultTag:"div",features:ee,visible:en,name:"Popover.Panel"}),en&&g&&l.default.createElement(C.Hidden,{id:z,ref:F,features:C.HiddenFeatures.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:ec})))))}),es=Object.assign(et,{Button:en,Backdrop:ei,Overlay:er,Panel:eo,Group:(0,_.forwardRefWithAs)(function(e,t){let n=(0,l.useRef)(null),r=(0,k.useSyncRefs)(n,t),[i,o]=(0,l.useState)([]),s=(0,d.useEvent)(e=>{o(t=>{let n=t.indexOf(e);if(-1!==n){let e=t.slice();return e.splice(n,1),e}return t})}),a=(0,d.useEvent)(e=>(o(t=>[...t,e]),()=>s(e))),c=(0,d.useEvent)(()=>{var e;let t=(0,R.getRootNode)(n.current);if(!t)return!1;
106let r=(0,R.getActiveElement)(n.current);return!!(null!=(e=n.current)&&e.contains(r))||i.some(e=>{var n,i;return(null==(n=t.getElementById(e.buttonId.current))?void 0:n.contains(r))||(null==(i=t.getElementById(e.panelId.current))?void 0:i.contains(r))})}),u=(0,d.useEvent)(e=>{for(let t of i)t.buttonId.current!==e&&t.close()}),p=(0,l.useMemo)(()=>({registerPopover:a,unregisterPopover:s,isFocusWithinPopoverGroup:c,closeOthers:u}),[a,s,c,u]),f=(0,w.useSlot)({}),h=(0,_.useRender)();return l.default.createElement(y.MainTreeProvider,null,l.default.createElement(Y.Provider,{value:p},h({ourProps:{ref:r},theirProps:e,slot:f,defaultTag:"div",name:"Popover.Group"})))})});e.s(["Popover",0,es,"PopoverButton",0,en,"PopoverPanel",0,eo],998307);let ea=(0,r.default)("square-check-big",[["path",{d:"M21 10.656V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.344",key:"2acyp4"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);e.s(["CheckSquare",0,ea],656272);let el=(0,r.default)("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);e.s(["Square",0,el],752044)},531278,717521,e=>{"use strict";let t=(0,e.i(475254).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["default",0,t],717521),e.s(["Loader2",0,t],531278)},555436,778917,e=>{"use strict";var t=e.i(475254);let n=(0,t.default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",0,n],555436);let r=(0,t.default)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);e.s(["ExternalLink",0,r],778917)},878894,582458,727612,783222,433336,394487,992704,233538,144279,919751,495470,344523,989895,e=>{"use strict";let t,n,r,i,o,s,a,l,c,u,d,p;var f=e.i(475254);let h=(0,f.default)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);e.s(["default",0,h],582458),e.s(["AlertTriangle",0,h],878894);let m=(0,f.default)("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);e.s(["Trash2",0,m],727612);let g=e=>{var t,n;return"object"==typeof(t=e)&&null!=t&&"window"in t&&t.window===t?e.document:function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType}(n=e)&&9===n.nodeType?e:e?.ownerDocument??("u">typeof document?document:void 0)},x=e=>{let t=g(e);return t?.defaultView??("u">typeof window?window:void 0)};function v(e,t){return!!t&&!!e&&e.contains(t)}function y(e){return e.target}let b=null;"u">typeof Element&&Element.prototype;let w=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable^="false"])',"permission"];w.join(":not([hidden]),"),w.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),w.join(':not([hidden]):not([tabindex="-1"]),');var k=e.i(271645);let j="u">typeof document?k.default.useLayoutEffect:()=>{};function S(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function E(e){let t=(0,k.useRef)({isFocused:!1,observer:null});return j(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,k.useCallback)(n=>{let r=y(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=S(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function N(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function C(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function P(e){let t=null;return()=>(null==t&&(t=e()),t)}let T=P(function(){return C(/^Mac/i)}),A=P(function(){return C(/^iPhone/i)}),I=P(function(){return C(/^iPad/i)||T()&&navigator.maxTouchPoints>1}),M=P(function(){return A()||I()});P(function(){return T()||M()});
106let L=P(function(){return N(/AppleWebKit/i)&&(M()||!R())});P(function(){return L()&&!R()&&!O()});let R=P(function(){return N(/Chrome|CriOS|CrMo/i)}),_=P(function(){return N(/Android/i)}),O=P(function(){return N(/(Firefox|FxiOS)/i)});function D(e,t,n=!0){let{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}=t;!L()&&O()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(T()?r=!0:i=!0);let a=L()&&T()&&!I()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:i,altKey:o,shiftKey:s}):new MouseEvent("click",{metaKey:r,ctrlKey:i,altKey:o,shiftKey:s,detail:1,bubbles:!0,cancelable:!0});D.isOpening=n;if(function(){if(null==b){b=!1;try{document.createElement("div").focus({get preventScroll(){return b=!0,!0}})}catch{}}return b}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}e.dispatchEvent(a),D.isOpening=!1}D.isOpening=!1;let F={prefix:String(Math.round(1e10*Math.random())),current:0};k.default.createContext(F),k.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;k.default.useId;let $=null,z=new Set,V=new Map,B=!1,H=!1,U={Tab:!0,Escape:!0};function W(e,t){for(let n of z)n(e,t)}function G(e){B=!0,D.isOpening||e.metaKey||!T()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||($="keyboard",W("keyboard",e))}function q(e){$="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(B=!0,W("pointer",e))}function K(e){D.isOpening||(""!==e.pointerType||!e.isTrusted)&&(_()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(B=!0,$="virtual")}function Y(e){let t=x(y(e)),n=g(y(e));y(e)!==t&&y(e)!==n&&e.isTrusted&&(B||H||($="virtual",W("virtual",e)),B=!1,H=!1)}function J(){B=!1,H=!0}function X(e){if("u"<typeof window||"u"<typeof document)return;let t=x(e),n=g(e);if(V.get(t))return;let r=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){B=!0,r.apply(this,arguments)}}),n.addEventListener("keydown",G,!0),n.addEventListener("keyup",G,!0),n.addEventListener("click",K,!0),t.addEventListener("focus",Y,!0),t.addEventListener("blur",J,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",q,!0),n.addEventListener("pointermove",q,!0),n.addEventListener("pointerup",q,!0)),t.addEventListener("beforeunload",()=>{Z(e)},{once:!0}),V.set(t,{focus:r})}let Z=(e,t)=>{let n=x(e),r=g(e);t&&r.removeEventListener("DOMContentLoaded",t),V.has(n)&&(Reflect.defineProperty(n.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:V.get(n).focus}),r.removeEventListener("keydown",G,!0),r.removeEventListener("keyup",G,!0),r.removeEventListener("click",K,!0),n.removeEventListener("focus",Y,!0),n.removeEventListener("blur",J,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",q,!0),r.removeEventListener("pointermove",q,!0),r.removeEventListener("pointerup",q,!0)),V.delete(n))};function Q(){return"pointer"!==$}"u">typeof document&&("loading"!==(n=g(void 0)).readyState?X(void 0):n.addEventListener("DOMContentLoaded",()=>{X(void 0)}));let ee=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function et(){let e=(0,k.useRef)(new Map),t=(0,k.useCallback)((t,n,r,i)=>{let o=i?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,k.useCallback)((t,n,r,i)=>{let o=e.current.get(r)?.fn||r;t.removeEventListener(n,o,i),e.current.delete(r)},[]),r=(0,k.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,k.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function en(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:i}=e,o=(0,k.useRef)({isFocused:!1,isFocusVisible:n||Q()}),[s,a]=(0,k.useState)(!1),[l,c]=(0,k.useState)(()=>o.current.isFocused&&o.current.isFocusVisible),u=(0,k.useCallback)(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),d=(0,k.useCallback)(e=>{o.current.isFocused=e,o.current.isFocusVisible=Q(),a(e),u()},[u]);t={enabled:s,isTextInput:r},X(),(0,k.useEffect)(()=>
106{if(t?.enabled===!1)return;let e=(e,n)=>{var r;let i,s,a,l,c,d,p,f;r=!!t?.isTextInput,s=g(i=n?y(n):void 0),l=void 0!==(a=x(i))?a.HTMLInputElement:HTMLInputElement,c=void 0!==a?a.HTMLTextAreaElement:HTMLTextAreaElement,d=void 0!==a?a.HTMLElement:HTMLElement,p=void 0!==a?a.KeyboardEvent:KeyboardEvent,f=((e=document)=>e.activeElement)(s),(r=r||f instanceof l&&!ee.has(f.type)||f instanceof c||f instanceof d&&f.isContentEditable)&&"keyboard"===e&&n instanceof p&&!U[n.key]||(e=>{o.current.isFocusVisible=e,u()})(Q())};return z.add(e),()=>{z.delete(e)}},[r,s]);let{focusProps:p}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,o=(0,k.useCallback)(e=>{if(y(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),s=E(o),a=(0,k.useCallback)(e=>{let t=y(e),r=g(t),o=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===o&&(n&&n(e),i&&i(!0),s(e))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}({isDisabled:i,onFocusChange:d}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,k.useRef)({isFocusWithin:!1}),{addGlobalListener:s,removeAllGlobalListeners:a}=et(),l=(0,k.useCallback)(e=>{v(e.currentTarget,y(e))&&o.current.isFocusWithin&&!v(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,a(),n&&n(e),i&&i(!1))},[n,i,o,a]),c=E(l),u=(0,k.useCallback)(e=>{if(!v(e.currentTarget,y(e)))return;let t=y(e),n=g(t),a=((e=document)=>e.activeElement)(n);if(!o.current.isFocusWithin&&a===t){r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,c(e);let t=e.currentTarget;s(n,"focus",e=>{let r=y(e);if(o.current.isFocusWithin&&!v(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),l(S(e))}},{capture:!0})}},[r,i,c,s,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}({isDisabled:!i,onFocusWithinChange:d});return{isFocused:s,isFocusVisible:l,focusProps:i?f:p}}e.s(["useFocusRing",0,en],783222);let er=!1,ei=0;function eo(e){"touch"===e.pointerType&&(er=!0,setTimeout(()=>{er=!1},500))}function es(){let e=g(null);if(void 0!==e)return 0===ei&&"u">typeof PointerEvent&&e.addEventListener("pointerup",eo),ei++,()=>{!(--ei>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",eo)}}function ea(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=(0,k.useState)(!1),a=(0,k.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,k.useEffect)(es,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=et(),{hoverProps:u,triggerHoverEnd:d}=(0,k.useMemo)(()=>{let e=(e,t)=>{let i=a.target;a.pointerType="",a.target=null,"touch"!==t&&a.isHovered&&i&&(a.isHovered=!1,c(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),s(!1))},o={};return"u">typeof PointerEvent&&(o.onPointerEnter=r=>{er&&"mouse"===r.pointerType||((r,o)=>{if(a.pointerType=o,i||"touch"===o||a.isHovered||!v(r.currentTarget,y(r)))return;a.isHovered=!0;let c=r.currentTarget;a.target=c,l(g(y(r)),"pointerover",t=>{a.isHovered&&a.target&&!v(a.target,y(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),n&&n(!0),s(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!i&&v(t.currentTarget,y(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,i,a,l,c]);return(0,k.useEffect)(()=>{i&&d({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:u,isHovered:o}}e.s(["useHover",0,ea],433336);var el=e.i(174080),ec=e.i(402155),eu=e.i(746725),ed=e.i(914189);function ep({disabled:e=!1}={}){let t=(0,k.useRef)(null),[n,r]=(0,k.useState)(!1),i=(0,eu.useDisposables)(),o=(0,ed.useEvent)(()=>{t.current=null,r(!1),i.dispose()}),s=(0,ed.useEvent)(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=(0,ec.getOwnerDocument)(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",e=>{if(t.current){var n,i;let o,s;r((o=e.width/2,s=e.height/2,n={top:e.clientY-s,right:e.clientX+o,bottom:e.clientY+s,left:e.clientX-o},i=t.current.getBoundingClientRect(),!(!n||!i||n.right<i.left||n.left>i.right||n.bottom<i.top||n.top>i.bottom)))}},!1),i.addEventListener(n,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}e.s(["useActivePress",0,ep],394487);var ef=e.i(544508),eh=e.i(835696);function em(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function eg(e,t,n=!1){let[r,i]=(0,k.useState)(()=>em(t));return(0,eh.useIsoMorphicEffect)(()=>
106{if(!t||!e)return;let n=(0,ef.disposables)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),i(e=>{let n=em(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}e.s(["useElementSize",0,eg],992704);var ex=((r=ex||{})[r.Left=0]="Left",r[r.Right=2]="Right",r),ev=e.i(813581);function ey(e){let t=e.parentElement,n=null;for(;t&&!ev.isHTMLFieldSetElement(t);)ev.isHTMLLegendElement(t)&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(ev.isHTMLLegendElement(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}function eb(e){let t=(0,k.useRef)(null);return{onPointerDown:(0,ed.useEvent)(n=>{t.current=n.pointerType,ey(n.currentTarget)||"mouse"!==n.pointerType||n.button!==ex.Left||(n.preventDefault(),e(n))}),onClick:(0,ed.useEvent)(n=>{"mouse"!==t.current&&(ey(n.currentTarget)||e(n))})}}e.s(["isDisabledReactIssue7711",0,ey],233538);var ew=e.i(684653),ek=e.i(941444),ej=e.i(877891),eS=e.i(952744),eE=e.i(605083),eN=e.i(22357),eC=((i=eC||{})[i.Ignore=0]="Ignore",i[i.Select=1]="Select",i[i.Close=2]="Close",i);let eP={kind:0},eT=e=>({kind:1,target:e}),eA={kind:2};function eI(e,{trigger:t,action:n,close:r,select:i}){let o=(0,k.useRef)(null),s=(0,k.useRef)(null),a=(0,k.useRef)(null);(0,eN.useDocumentEvent)(e&&null!==t,"pointerdown",e=>{ev.isNode(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(s.current=e.x,a.current=e.y,o.current=e.timeStamp)}),(0,eN.useDocumentEvent)(e&&null!==t,"pointerup",e=>{var t,l;let c=o.current;if(null===c||(o.current=null,!ev.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=s.current)?t:e.x))&&5>Math.abs(e.y-(null!=(l=a.current)?l:e.y)))return;let u=n(e);switch(u.kind){case 0:return;case 1:e.timeStamp-c>200&&(i(u.target),r());break;case 2:r()}},{capture:!0})}function eM(e,t){return(0,k.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}e.s(["useResolveButtonType",0,eM],144279);var eL=e.i(101852),eR=e.i(255743),e_=e.i(294316);let eO=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function eD(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!ev.isHTMLElement(i))return r;let o=!1;for(let e of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),o=!0;let s=o?null!=(n=i.innerText)?n:"":r;return eO.test(s)&&(s=s.replace(eO,"")),s}function eF(e){let t=(0,k.useRef)(""),n=(0,k.useRef)("");return(0,ed.useEvent)(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():eD(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return eD(e).trim()})(r).trim().toLowerCase();return t.current=i,n.current=o,o})}function e$(e){return[e.screenX,e.screenY]}function ez(){let e=(0,k.useRef)([-1,-1]);return{wasMoved(t){let n=e$(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=e$(t)}}}var eV=e.i(83733),eB=e.i(601893);let eH=Math.min,eU=Math.max,eW=Math.round,eG=Math.floor,eq=e=>({x:e,y:e}),eK={left:"right",right:"left",bottom:"top",top:"bottom"};function eY(e,t){return"function"==typeof e?e(t):e}function eJ(e){return e.split("-")[0]}function eX(e){return e.split("-")[1]}function eZ(e){return"x"===e?"y":"x"}function eQ(e){return"y"===e?"height":"width"}function e0(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function e1(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let e2=["left","right"],e5=["right","left"],e4=["top","bottom"],e3=["bottom","top"];function e6(e){let t=eJ(e);return eK[t]+e.slice(t.length)}function e8(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function e7(e,t,n){let r,{reference:i,floating:o}=e,s=e0(t),a=eZ(e0(t)),l=eQ(a),c=eJ(t),u=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;switch(c){case"top":r={x:u,y:i.y-o.height};break;case"bottom":r={x:u,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:d};break;case"left":r={x:i.x-o.width,y:d};break;default:r={x:i.x,y:i.y}}let f=eX(t);
vendor: 4,333 bytes, line 106
106return f&&(r[a]+=p*("end"===f?1:-1)*(n&&"y"===s?-1:1)),r}async function e9(e,t){var n,r,i,o,s;void 0===t&&(t={});let{x:a,y:l,platform:c,rects:u,elements:d,strategy:p}=e,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:x=0}=eY(t,e),v="number"!=typeof x?{top:null!=(r=x.top)?r:0,right:null!=(i=x.right)?i:0,bottom:null!=(o=x.bottom)?o:0,left:null!=(s=x.left)?s:0}:{top:x,right:x,bottom:x,left:x},y=d[g?"floating"===m?"reference":"floating":m],b=e8(await c.getClippingRect({element:null==(n=await (null==c.isElement?void 0:c.isElement(y)))||n?y:y.contextElement||await (null==c.getDocumentElement?void 0:c.getDocumentElement(d.floating)),boundary:f,rootBoundary:h,strategy:p})),w="floating"===m?{x:a,y:l,width:u.floating.width,height:u.floating.height}:u.reference,k=await (null==c.getOffsetParent?void 0:c.getOffsetParent(d.floating)),j=await (null==c.isElement?void 0:c.isElement(k))&&await (null==c.getScale?void 0:c.getScale(k))||{x:1,y:1},S=e8(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:w,offsetParent:k,strategy:p}):w);return{top:(b.top-S.top+v.top)/j.y,bottom:(S.bottom-b.bottom+v.bottom)/j.y,left:(b.left-S.left+v.left)/j.x,right:(S.right-b.right+v.right)/j.x}}let te=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:e9},l=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=e7(c,r,l),p=r,f=0,h={};for(let n=0;n<o.length;n++){let m=o[n];if(!m)continue;let{name:g,fn:x}=m,{x:v,y:y,data:b,reset:w}=await x({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,h[g]={...h[g],...b},w&&f<50&&(f++,"object"==typeof w&&(w.placement&&(p=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:d}=e7(c,p,l)),n=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}},tt=new Set(["left","top"]);async function tn(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),s=eJ(n),a=eX(n),l="y"===e0(n),c=tt.has(s)?-1:1,u=o&&l?-1:1,d=eY(t,e),{mainAxis:p,crossAxis:f,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof h&&(f="end"===a?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}function tr(){return"u">typeof window}function ti(e){return ta(e)?(e.nodeName||"").toLowerCase():"#document"}function to(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ts(e){var t;return null==(t=(ta(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ta(e){return!!tr()&&(e instanceof Node||e instanceof to(e).Node)}function tl(e){return!!tr()&&(e instanceof Element||e instanceof to(e).Element)}function tc(e){return!!tr()&&(e instanceof HTMLElement||e instanceof to(e).HTMLElement)}function tu(e){return!(!tr()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof to(e).ShadowRoot)}function td(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ty(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function tp(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let tf=/transform|translate|scale|rotate|perspective|filter/,th=/paint|layout|strict|content/,tm=e=>!!e&&"none"!==e;function tg(e){let t=tl(e)?ty(e):e;return tm(t.transform)||tm(t.translate)||tm(t.scale)||tm(t.rotate)||tm(t.perspective)||!tx()&&(tm(t.backdropFilter)||tm(t.filter))||tf.test(t.willChange||"")||th.test(t.contain||"")}function tx(){return null==t&&(t="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),t}function tv(e){return/^(html|body|#document)$/.test(ti(e))}function ty(e){return to(e).getComputedStyle(e)}function tb(e){return tl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tw(e){if("html"===ti(e))return e;let t=e.assignedSlot||e.parentNode||tu(e)&&e.host||ts(e);return tu(t)?t.host:t}
106function tk(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=tw(t);return tv(n)?(t.ownerDocument||t).body:tc(n)&&td(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=to(i);if(!o)return t.concat(i,tk(i,[],n));{let e=tj(s);return t.concat(s,s.visualViewport||[],td(i)?i:[],e&&n?tk(e):[])}}function tj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tS(e){let t=ty(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=tc(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=eW(n)!==o||eW(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function tE(e){return tl(e)?e:e.contextElement}function tN(e){let t=tE(e);if(!tc(t))return eq(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=tS(t),s=(o?eW(n.width):n.width)/r,a=(o?eW(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let tC=eq(0);function tP(e){let t=to(e);return tx()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:tC}function tT(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=tE(e),a=eq(1);t&&(r?tl(r)&&(a=tN(r)):a=tN(e));let l=(void 0===(i=n)&&(i=!1),r&&i&&r===to(s))?tP(s):eq(0),c=(o.left+l.x)/a.x,u=(o.top+l.y)/a.y,d=o.width/a.x,p=o.height/a.y;if(s&&r){let e=to(s),t=tl(r)?to(r):r,n=e,i=tj(n);for(;i&&t!==n;){let e=tN(i),t=i.getBoundingClientRect(),r=ty(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,d*=e.x,p*=e.y,c+=o,u+=s,i=tj(n=to(i))}}return e8({width:d,height:p,x:c,y:u})}function tA(e,t){let n=tb(e).scrollLeft;return t?t.left+n:tT(ts(e)).left+n}function tI(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-tA(e,n),y:n.top+t.scrollTop}}function tM(e,t,n){var r;let i;if("viewport"===t||"layoutViewport"===t)i=function(e,t,n){void 0===n&&(n="viewport");let r="layoutViewport"===n,i=to(e),o=ts(e),s=i.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let e=!tx()||"fixed"===t;r?e||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,e&&(c=s.offsetLeft,u=s.offsetTop))}if(0>=tA(o)){let e=o.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;s<=25&&(a-=s)}return{width:a,height:l,x:c,y:u}}(e,n,t);else if("document"===t){let t,n,o,s,a,l;t=tb(r=ts(e)),n=r.ownerDocument.body,o=eU(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=eU(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+tA(r),l=-t.scrollTop,"rtl"===ty(n).direction&&(a+=eU(r.clientWidth,n.clientWidth)-o),i={width:o,height:s,x:a,y:l}}else if(tl(t)){let e,r,o,s,a,l;r=(e=tT(t,!0,"fixed"===n)).top+t.clientTop,o=e.left+t.clientLeft,s=tN(t),a=t.clientWidth*s.x,l=t.clientHeight*s.y,i={width:a,height:l,x:o*s.x,y:r*s.y}}else{let n=tP(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return e8(i)}function tL(e){return"static"===ty(e).position}function tR(e,t){if(!tc(e)||"fixed"===ty(e).position)return null;if(t)return t(e);let n=e.offsetParent;return ts(e)===n&&(n=n.ownerDocument.body),n}function t_(e,t){var n;let r=to(e);if(tp(e))return r;if(!tc(e)){let t=tw(e);for(;t&&!tv(t);){if(tl(t)&&!tL(t))return t;t=tw(t)}return r}let i=tR(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(ti(n)))&&tL(i);)i=tR(i,t);return i&&tv(i)&&tL(i)&&!tg(i)?r:i||function(e){let t=tw(e);for(;tc(t)&&!tv(t);){if(tg(t))return t;if(tp(t))break;t=tw(t)}return null}(e)||r}let tO=async function(e){let t=this.getOffsetParent||t_,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=tc(t),i=ts(t),o="fixed"===n,s=tT(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=eq(0);if((r||!o)&&(("body"!==ti(t)||td(i))&&(a=tb(t)),r)){let e=tT(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=tA(i));let c=!i||r||o?eq(0):tI(i,a);return{x:s.left+a.scrollLeft-l.x-c.x,y:s.top+a.scrollTop-l.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tD={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,s=ts(r),a=!!t&&tp(t.floating);if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=eq(1),u=eq(0),d=tc(r);
106if((d||!o)&&(("body"!==ti(r)||td(s))&&(l=tb(r)),d)){let e=tT(r);c=tN(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let p=!s||d||o?eq(0):tI(s,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:ts,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?tp(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=tk(e,[],!1).filter(e=>tl(e)&&"body"!==ti(e)),i=null,o="fixed"===ty(e).position,s=o?tw(e):e;for(;tl(s)&&!tv(s);){let e=ty(s),t=tg(s),n=i?i.position:o?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?i=e:r=r.filter(e=>e!==s),s=tw(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=tM(t,o[0],i),a=s.top,l=s.right,c=s.bottom,u=s.left;for(let e=1;e<o.length;e++){let n=tM(t,o[e],i);a=eU(n.top,a),l=eH(n.right,l),c=eH(n.bottom,c),u=eU(n.left,u)}return{width:l-u,height:c-a,x:u,y:a}},getOffsetParent:t_,getElementRects:tO,getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){let{width:t,height:n}=tS(e);return{width:t,height:n}},getScale:tN,isElement:tl,isRTL:function(e){return"rtl"===ty(e).direction}};function tF(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function t$(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,u=tE(e),d=o||s?[...u?tk(u):[],...t?tk(t):[]]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n),s&&e.addEventListener("resize",n)});let p=u&&l?function(e,t,n){let r,i=null,o=ts(e);function s(){var e;clearTimeout(r),null==(e=i)||e.disconnect(),i=null}function a(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();let c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(n||t(),!p||!f)return;let h={rootMargin:-eG(d)+"px "+-eG(o.clientWidth-(u+p))+"px "+-eG(o.clientHeight-(d+f))+"px "+-eG(u)+"px",threshold:eU(0,eH(1,l))||1},m=!0;function g(t){let n=t[0].intersectionRatio;if(!tF(c,e.getBoundingClientRect()))return a();if(n!==l){if(!m)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(e){i=new IntersectionObserver(g,h)}i.observe(e)}let l=to(e),c=()=>a(n);return l.addEventListener("resize",c),a(!0),()=>{l.removeEventListener("resize",c),s()}}(u,n,s):null,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!c&&h.observe(u),t&&h.observe(t));let m=c?tT(e):null;return c&&function t(){let r=tT(e);m&&!tF(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{o&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=h)||e.disconnect(),h=null,c&&cancelAnimationFrame(i)}}var tz="u">typeof document?k.useLayoutEffect:function(){};function tV(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tV(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!tV(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tB(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tH(e,t){let n=tB(e);return Math.round(t*n)/n}function tU(e){let t=k.useRef(e);return tz(()=>{t.current=e}),t}let tW=(e,t)=>{var n;let r=(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:s,middlewareData:a}=e,l=await tn(e,n);return s===(null==(t=a.offset)?void 0:t.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}});return{name:r.name,fn:r.fn,options:[e,t]}};var tG="u"<typeof Element;tG||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tG||Element.prototype.getRootNode;let tq={...k},tK=tq.useInsertionEffect||(e=>e());function tY(e){let t=k.useRef(()=>{});return tK(()=>{t.current=e}),k.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var tJ="u">typeof document?k.useLayoutEffect:k.useEffect;let tX=!1,tZ=0,tQ=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tZ++,t0=tq.useId||function(){let[e,t]=k.useState(()=>tX?tQ():void 0);return tJ(()=>{null==e&&t(tQ())},[]),k.useEffect(()=>{tX=!0},[]),e},t1=k.createContext(null),t2=k.createContext(null),t5="active",t4="selected";function t3(e,t,n){let r=new Map,i="item"===n,o=e;if(i&&e){let{[t5]:t,[t4]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...o,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>
106(t&&Object.entries(t).forEach(t=>{let[n,o]=t;if(!(i&&[t5,t4].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof o){var s;null==(s=r.get(n))||s.push(o),e[n]=function(){for(var e,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)}}}else e[n]=o}),e),{})}}function t6(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let t8=(0,k.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});t8.displayName="FloatingContext";let t7=(0,k.createContext)(null);function t9(e){return(0,k.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function ne(){return(0,k.useContext)(t8).setReference}function nt(){return(0,k.useContext)(t8).getReferenceProps}function nn(){let{getFloatingProps:e,slot:t}=(0,k.useContext)(t8);return(0,k.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function nr(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,k.useContext)(t7),n=(0,k.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,eh.useIsoMorphicEffect)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,k.useContext)(t8);return(0,k.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function ni({children:e,enabled:t=!0}){var n,r,i,o,s,a,l,c,u,d,p,f,h;let m,g,x,v,y,b,w,j,S,E,N,C,P,[T,A]=(0,k.useState)(null),[I,M]=(0,k.useState)(0),L=(0,k.useRef)(null),[R,_]=(0,k.useState)(null);c=R,(0,eh.useIsoMorphicEffect)(()=>{if(!c)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(c).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(c.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(c,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[c]);let O=t&&null!==T&&null!==R,{to:D="bottom",gap:F=0,offset:$=0,padding:z=0,inner:V}=(u=T,d=R,m=no(null!=(p=null==u?void 0:u.gap)?p:"var(--anchor-gap, 0)",d),g=no(null!=(f=null==u?void 0:u.offset)?f:"var(--anchor-offset, 0)",d),x=no(null!=(h=null==u?void 0:u.padding)?h:"var(--anchor-padding, 0)",d),{...u,gap:m,offset:g,padding:x}),[B,H="center"]=D.split(" ");(0,eh.useIsoMorphicEffect)(()=>{O&&M(0)},[O]);let{refs:U,floatingStyles:W,context:G}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:r,elements:i}=e,o=t0(),s=k.useRef({}),[a]=k.useState(()=>{let e;return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),l=null!=((null==(t=k.useContext(t1))?void 0:t.id)||null),[c,u]=k.useState(i.reference),d=tY((e,t,n)=>{s.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:l}),null==r||r(e,t,n)}),p=k.useMemo(()=>({setPositionReference:u}),[]),f=k.useMemo(()=>({reference:c||i.reference||null,floating:i.floating||null,domReference:i.reference}),[c,i.reference,i.floating]);return k.useMemo(()=>({dataRef:s,open:n,onOpenChange:d,elements:f,events:a,floatingId:o,refs:p}),[n,d,f,a,o,p])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=k.useState(null),[a,l]=k.useState(null),c=(null==i?void 0:i.domReference)||o,u=k.useRef(null),d=k.useContext(t2);tJ(()=>{c&&(u.current=c)},[c]);let p=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,d]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=k.useState(r);tV(p,r)||f(r);let[h,m]=k.useState(null),[g,x]=k.useState(null),v=k.useCallback(e=>{e!==j.current&&(j.current=e,m(e))},[]),y=k.useCallback(e=>{e!==S.current&&(S.current=e,x(e))},[]),b=o||h,w=s||g,j=k.useRef(null),S=k.useRef(null),E=k.useRef(u),N=null!=l,C=tU(l),P=tU(i),T=tU(c),A=k.useCallback(()=>{var e,r;let i,o,s;if(!j.current||!S.current)return;let a={placement:t,strategy:n,middleware:p};P.current&&(a.platform=P.current),(e=j.current,r=S.current,i=new Map,o=null!=a?a:{},s={...tD,...o.platform,_c:i},te(e,r,{...o,platform:s})).then(e=>{let t={...e,isPositioned:!1!==T.current};I.current&&!tV(E.current,t)&&(E.current=t,el.flushSync(()=>{d(t)}))})},[p,t,n,P,T]);tz(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);let I=k.useRef(!1);tz(()=>(I.current=!0,()=>
106{I.current=!1}),[]),tz(()=>{if(b&&(j.current=b),w&&(S.current=w),b&&w){if(C.current)return C.current(b,w,A);A()}},[b,w,A,C,N]);let M=k.useMemo(()=>({reference:j,floating:S,setReference:v,setFloating:y}),[v,y]),L=k.useMemo(()=>({reference:b,floating:w}),[b,w]),R=k.useMemo(()=>{let e={position:n,left:0,top:0};if(!L.floating)return e;let t=tH(L.floating,u.x),r=tH(L.floating,u.y);return a?{...e,transform:"translate("+t+"px, "+r+"px)",...tB(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,a,L.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:A,refs:M,elements:L,floatingStyles:R}),[u,A,M,L,R])}({...e,elements:{...i,...a&&{reference:a}}}),f=k.useCallback(e=>{let t=tl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)},[p.refs]),h=k.useCallback(e=>{(tl(e)||null===e)&&(u.current=e,s(e)),(tl(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!tl(e))&&p.refs.setReference(e)},[p.refs]),m=k.useMemo(()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u}),[p.refs,h,f]),g=k.useMemo(()=>({...p.elements,domReference:c}),[p.elements,c]),x=k.useMemo(()=>({...p,...r,refs:m,elements:g,nodeId:t}),[p,m,g,t,r]);return tJ(()=>{r.dataRef.current.floatingContext=x;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=x)}),k.useMemo(()=>({...p,context:x,refs:m,elements:g}),[p,m,g,x])}({open:O,placement:"selection"===B?"center"===H?"bottom":`bottom-${H}`:"center"===H?`${B}`:`${B}-${H}`,strategy:"absolute",transform:!1,middleware:[tW({mainAxis:"selection"===B?0:F,crossAxis:$}),{name:(v={name:"shift",options:r=n={padding:z},async fn(e){let{x:t,y:n,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=eY(r,e),u={x:t,y:n},d=await o.detectOverflow(e,c),p=e0(i),f=eZ(p),h=u[f],m=u[p],g=(e,t)=>eU(t+d["y"===e?"top":"left"],eH(t,t-d["y"===e?"bottom":"right"]));s&&(h=g(f,h)),a&&(m=g(p,m));let x=l.fn({...e,[f]:h,[p]:m});return{...x,data:{x:x.x-t,y:x.y-n,enabled:{[f]:s,[p]:a}}}}}).name,fn:v.fn,options:[n,void 0]},"selection"!==B&&{name:(y={name:"flip",options:o=i={padding:z},async fn(e){var t,n,r,i,s,a,l,c;let u,d,p,{placement:f,middlewareData:h,rects:m,initialPlacement:g,platform:x,elements:v}=e,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:S=!0,...E}=eY(o,e);if(null!=(t=h.arrow)&&t.alignmentOffset)return{};let N=eJ(f),C=e0(g),P=eJ(g)===g,T=await (null==x.isRTL?void 0:x.isRTL(v.floating)),A=w||(P||!S?[e6(g)]:(u=e6(g),[e1(g),u,e1(u)])),I="none"!==j;!w&&I&&A.push(...(d=eX(g),p=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?e5:e2;return t?e2:e5;case"left":case"right":return t?e4:e3;default:return[]}}(eJ(g),"start"===j,T),d&&(p=p.map(e=>e+"-"+d),S&&(p=p.concat(p.map(e1)))),p));let M=[g,...A],L=await x.detectOverflow(e,E),R=[],_=(null==(n=h.flip)?void 0:n.overflows)||[];if(y&&R.push(L[N]),b){let e,t,n,r,i=(a=f,l=m,void 0===(c=T)&&(c=!1),e=eX(a),n=eQ(t=eZ(e0(a))),r="x"===t?e===(c?"end":"start")?"right":"left":"start"===e?"bottom":"top",l.reference[n]>l.floating[n]&&(r=e6(r)),[r,e6(r)]);R.push(L[i[0]],L[i[1]])}if(_=[..._,{placement:f,overflows:R}],!R.every(e=>e<=0)){let e=((null==(r=h.flip)?void 0:r.index)||0)+1,t=M[e];if(t&&("alignment"!==b||C===e0(t)||_.every(e=>e0(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:_},reset:{placement:t}};let n=null==(i=_.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(k){case"bestFit":{let e=null==(s=_.filter(e=>{if(I){let t=e0(e.placement);return t===C||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=g}if(f!==n)return{reset:{placement:n}}}return{}}}).name,fn:y.fn,options:[i,void 0]},"selection"===B&&V?{name:"inner",options:b={...V,padding:z,overflowRef:L,offset:I,minItemsVisible:4,referenceOverflowThreshold:z,onFallbackChange(e){var t,n;if(!e)return;let r=G.elements.floating;if(!r)return;
106let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,o=Math.min(4,r.childElementCount),s=0,a=0;for(let e of null!=(n=null==(t=G.elements.floating)?void 0:t.childNodes)?n:[])if(ev.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+i,l=r.scrollTop,c=l+r.clientHeight;if(t>=l&&n<=c)o--;else{a=Math.max(0,Math.min(n,c)-Math.max(t,l)),s=e.clientHeight;break}}o>=1&&M(e=>{let t=s*o-a+i;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:s=4,referenceOverflowThreshold:a=0,scrollRef:l,...c}=eY(b,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],f=(null==l?void 0:l.current)||d,h=d.clientTop||f.clientTop,m=0!==d.clientTop,g=0!==f.clientTop,x=d===f;if(!p)return{};let v={...e,...await tW(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},y=await e9(t6(v,f.scrollHeight+h+d.clientTop),c),w=await e9(v,{...c,elementContext:"reference"}),k=eU(0,y.top),j=v.y+k,S=(f.scrollHeight>f.clientHeight?e=>e:eW)(eU(0,f.scrollHeight+(m&&x||g?2*h:0)-k-eU(0,y.bottom)));if(f.style.maxHeight=S+"px",f.scrollTop=k,r){let e=f.offsetHeight<p.offsetHeight*eH(s,t.current.length)-1||w.top>=-a||w.bottom>=-a;el.flushSync(()=>r(e))}return n&&(n.current=await e9(t6({...v,y:j},f.offsetHeight+h+d.clientTop),c)),{y:j}}}:null,{name:(w={name:"size",options:a=s={padding:z,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){let t,n,{placement:r,rects:i,platform:o,elements:s}=e,{apply:l=()=>{},...c}=eY(a,e),u=await o.detectOverflow(e,c),d=eJ(r),p=eX(r),f="y"===e0(r),{width:h,height:m}=i.floating;"top"===d||"bottom"===d?(t=d,n=p===(await (null==o.isRTL?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(n=d,t="end"===p?"top":"bottom");let g=m-u.top-u.bottom,x=h-u.left-u.right,v=eH(m-u[t],g),y=eH(h-u[n],x),b=e.middlewareData.shift,w=!b,k=v,j=y;null!=b&&b.enabled.x&&(j=x),null!=b&&b.enabled.y&&(k=g),w&&!p&&(f?j=h-2*eU(u.left,u.right):k=m-2*eU(u.top,u.bottom)),await l({...e,availableWidth:j,availableHeight:k});let S=await o.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}).name,fn:w.fn,options:[s,void 0]}].filter(Boolean),whileElementsMounted:t$}),[q=B,K=H]=G.placement.split("-");"selection"===B&&(q="selection");let Y=(0,k.useMemo)(()=>({anchor:[q,K].filter(Boolean).join(" ")}),[q,K]),{getReferenceProps:J,getFloatingProps:X}=(j=(l=[function(e,t){let{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=tY(a),c=k.useRef(!1),u=k.useRef(null),d=k.useRef(null);k.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;let n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,s=t.scrollHeight-t.clientHeight,a=n<0?-1:1,c=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!i&&n<0)e.preventDefault(),el.flushSync(()=>{l(e=>e+Math[c](n,s*a))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==s?void 0:s.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}},[i,n,r.floating,o,s,l]);let p=k.useMemo(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){let e=(null==s?void 0:s.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){let t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&el.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{u.current=e.scrollTop})}}}),[r.floating,l,o,s]);return k.useMemo(()=>i?{floating:p}:{},[i,p])}(G,{overflowRef:L,onChange:M})]).map(e=>null==e?void 0:e.reference),S=l.map(e=>null==e?void 0:e.floating),E=l.map(e=>null==e?void 0:e.item),N=k.useCallback(e=>t3(e,l,"reference"),j),C=k.useCallback(e=>t3(e,l,"floating"),S),P=k.useCallback(e=>t3(e,l,"item"),E),k.useMemo(()=>({getReferenceProps:N,getFloatingProps:C,getItemProps:P}),[N,C,P])),Z=(0,ed.useEvent)(e=>{_(e),U.setFloating(e)});return k.createElement(t7.Provider,{value:A},k.createElement(t8.Provider,{value:{setFloating:Z,setReference:U.setReference,styles:W,getReferenceProps:J,getFloatingProps:X,slot:Y}},e))}function no(e,t,n){let r=(0,eu.useDisposables)(),i=(0,ed.useEvent)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=ns(e,t);return[i,n=>{let o=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),i=n[1].slice(t+1).trim();return i?[r,...e(i)]:[r]}return[]}(e);{let s=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(s[e]!==r){s[e]=r,l=!0;break}}if(!l)return;let c=ns(e,t);i!==c&&(n(c),i=c)})}return r.dispose}]}return[n,null]}),o=(0,k.useMemo)(()=>i(e,t)[0],[e,t]),[s=o,a]=(0,k.useState)();return(0,eh.useIsoMorphicEffect)(()=>{let[n,r]=i(e,t);if(a(n),r)return r(a)},[e,t]),s}function ns(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}t7.displayName="PlacementContext",e.s(["FloatingProvider",0,ni,"useFloatingPanel",0,nr,"useFloatingPanelProps",0,nn,"useFloatingReference",0,ne,"useFloatingReferenceProps",0,nt,"useResolvedAnchor",0,t9],919751);function na(e,t){return e?e+"["+t+"]":t}var nl=e.i(700020),nc=e.i(2788);let nu=(0,k.createContext)(null);
106function nd({children:e}){let t=(0,k.useContext)(nu);if(!t)return k.default.createElement(k.default.Fragment,null,e);let{target:n}=t;return n?(0,el.createPortal)(k.default.createElement(k.default.Fragment,null,e),n):null}function np({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=(0,k.useState)(null),a=(0,eu.useDisposables)();return(0,k.useEffect)(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),k.default.createElement(nd,null,k.default.createElement(nf,{setForm:s,formId:t}),(function e(t={},n=null,r=[]){for(let[i,o]of Object.entries(t))!function t(n,r,i){if(Array.isArray(i))for(let[e,o]of i.entries())t(n,na(r,e.toString()),o);else i instanceof Date?n.push([r,i.toISOString()]):"boolean"==typeof i?n.push([r,i?"1":"0"]):"string"==typeof i?n.push([r,i]):"number"==typeof i?n.push([r,`${i}`]):null==i?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(i)&&!(0,k.isValidElement)(i)&&e(i,r,n)}(r,na(n,i),o);return r})(e).map(([e,r])=>k.default.createElement(nc.Hidden,{features:nc.HiddenFeatures.Hidden,...(0,nl.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})})))}function nf({setForm:e,formId:t}){return(0,k.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:k.default.createElement(nc.Hidden,{features:nc.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}function nh(e,t){let[n,r]=(0,k.useState)(t);return e||n===t||r(t),e?n:t}k.default.forwardRef(function({children:e,freeze:t},n){let r=nh(t,e);return(0,k.isValidElement)(r)?(0,k.cloneElement)(r,{ref:n}):k.default.createElement(k.default.Fragment,null,r)});let nm=(0,k.createContext)(void 0);function ng(){return(0,k.useContext)(nm)}var nx=e.i(233137),nv=e.i(341650),ny=e.i(140407),nb=((o=nb||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function nw(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}var nk=e.i(652265),nj=e.i(397701),nS=e.i(35889),nE=e.i(998348);let nN=(0,k.createContext)(null);function nC(){let e=(0,k.useContext)(nN);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,nC),e}return e}function nP(e){var t,n,r;let i=null!=(n=null==(t=(0,k.useContext)(nN))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function nT({inherit:e=!1}={}){let t=nP(),[n,r]=(0,k.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,k.useMemo)(()=>function(e){let t=(0,ed.useEvent)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,k.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return k.default.createElement(nN.Provider,{value:n},e.children)},[r])]}nN.displayName="LabelContext";let nA=Object.assign((0,nl.forwardRefWithAs)(function(e,t){var n;let r=(0,k.useId)(),i=nC(),o=ng(),s=(0,eB.useDisabled)(),{id:a=`headlessui-label-${r}`,htmlFor:l=null!=o?o:null==(n=i.props)?void 0:n.htmlFor,passive:c=!1,...u}=e,d=(0,e_.useSyncRefs)(t);(0,eh.useIsoMorphicEffect)(()=>i.register(a),[a,i.register]);let p=(0,ed.useEvent)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&ev.isInteractiveElement(e.target))&&(ev.isHTMLLabelElement(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),ev.isHTMLLabelElement(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(ev.isHTMLInputElement(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),f=(0,eR.useSlot)({...i.slot,disabled:s||!1}),h={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),(0,nl.useRender)()({ourProps:h,theirProps:u,slot:f,defaultTag:l?"label":"div",name:i.name||"Label"})}),{});var nI=e.i(635307),nM=e.i(825720);let nL={kind:"Idle"},nR=e=>({kind:"Tracked",position:e}),n_={kind:"Moved"};function nO(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function nD(e,t,n){let r=(0,ef.disposables)();if("Tracked"===t.kind){let i=function(){o!==nO(e)&&(r.dispose(),n())},{position:o}=t,s=new ResizeObserver(i);s.observe(e),r.add(()=>s.disconnect()),r.addEventListener(window,"scroll",i,{passive:!0}),r.addEventListener(window,"resize",i)}return()=>r.dispose()}
106var nF=Object.defineProperty,n$=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?nF(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},nz=((s=nz||{})[s.Open=0]="Open",s[s.Closed=1]="Closed",s),nV=((a=nV||{})[a.Single=0]="Single",a[a.Multi=1]="Multi",a),nB=((l=nB||{})[l.Pointer=0]="Pointer",l[l.Other=1]="Other",l),nH=((c=nH||{})[c.OpenListbox=0]="OpenListbox",c[c.CloseListbox=1]="CloseListbox",c[c.GoToOption=2]="GoToOption",c[c.Search=3]="Search",c[c.ClearSearch=4]="ClearSearch",c[c.SelectOption=5]="SelectOption",c[c.RegisterOptions=6]="RegisterOptions",c[c.UnregisterOptions=7]="UnregisterOptions",c[c.SetButtonElement=8]="SetButtonElement",c[c.SetOptionsElement=9]="SetOptionsElement",c[c.SortOptions=10]="SortOptions",c[c.MarkButtonAsMoved=11]="MarkButtonAsMoved",c);function nU(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,nk.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{options:r,activeOptionIndex:i}}let nW={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?nR(nO(e.buttonElement)):e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:nb.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,i=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==i&&(n=i),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:nL}},2(e,t){var n,r,i,o,s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===nb.Nothing)return{...a,activeOptionIndex:null};if(t.focus===nb.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===nb.Previous){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,s=nw(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.options[s].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:s}}}}else if(t.focus===nb.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,i=nw(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:i}}}}let l=nU(e),c=nw(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),o=i?e.options.indexOf(i):-1;return -1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==nb.Nothing&&(r=nw(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:nb.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],i=new Set(t.options);for(let[e,t]of n.entries())if(i.has(t.id)&&(r.push(e),i.delete(t.id),0===i.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>
106e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...nU(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:n_}};class nG extends nM.Machine{constructor(e){super(e),n$(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:i}=this.state.dataRef.current;return(0,nj.match)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=i.slice(),o=r.findIndex(t=>n(t,e));return -1===o?r.push(e):r.splice(o,1),null==t?void 0:t(r)}})},registerOption:(0,nM.batch)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,nM.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,nM.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),n$(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,i=e.options;return null!==r&&(null==(n=i[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=nv.stackMachines.get(null);this.disposables.add(t.on(nv.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(nD(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new nG({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:nb.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:nL})}reduce(e,t){return(0,nj.match)(t.type,nW,e,t)}}var nq=e.i(526599);let nK=(0,k.createContext)(null);function nY(e){let t=(0,k.useContext)(nK);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,nJ),t}return t}function nJ({id:e,__demoMode:t=!1}){let n=(0,k.useMemo)(()=>nG.new({id:e,__demoMode:t}),[]);return(0,nq.useOnUnmount)(()=>n.dispose()),n}let nX=(0,k.createContext)(null);function nZ(e){let t=(0,k.useContext)(nX);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,nZ),t}return t}nX.displayName="ListboxDataContext";let nQ=k.Fragment,n0=(0,k.createContext)(!1),n1=nl.RenderFeatures.RenderStrategy|nl.RenderFeatures.Static,n2=k.Fragment,n5=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),r=(0,eB.useDisabled)(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:c,invalid:u=!1,disabled:d=r||!1,horizontal:p=!1,multiple:f=!1,__demoMode:h=!1,...m}=e,g=(0,e_.useSyncRefs)(t),x=function(e){let[t]=(0,k.useState)(e);return t}(o),[v=f?[]:void 0,y]=function(e,t,n){let[r,i]=(0,k.useState)(n),o=void 0!==e,s=(0,k.useRef)(o),a=(0,k.useRef)(!1),l=(0,k.useRef)(!1);return!o||s.current||a.current?o||!s.current||l.current||(l.current=!0,s.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(a.current=!0,s.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,(0,ed.useEvent)(e=>(o||(0,el.flushSync)(()=>i(e)),null==t?void 0:t(e)))]}(i,l,x),b=nJ({id:n,__demoMode:h}),w=(0,k.useRef)({static:!1,hold:!1}),j=(0,k.useRef)(new Map),S=function(e=function(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}){return(0,k.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(c),E=(0,k.useCallback)(e=>(0,nj.match)(N.mode,{[nV.Multi]:()=>v.some(t=>S(t,e)),[nV.Single]:()=>S(v,e)}),[v]),N=(0,eR.useSlot)({value:v,disabled:d,invalid:u,mode:f?nV.Multi:nV.Single,orientation:p?"horizontal":"vertical",onChange:y,compare:S,isSelected:E,optionsPropsRef:w,listRef:j});(0,eh.useIsoMorphicEffect)(()=>{b.state.dataRef.current=N},[N]);let C=(0,ny.useSlice)(b,e=>e.listboxState),P=nv.stackMachines.get(null),T=(0,ny.useSlice)(P,(0,k.useCallback)(e=>P.selectors.isTop(e,n),[P,n])),[A,I]=(0,ny.useSlice)(b,e=>[e.buttonElement,e.optionsElement]);
106(0,eS.useOutsideClick)(T,[A,I],(e,t)=>{b.send({type:nH.CloseListbox}),(0,nk.isFocusableElement)(t,nk.FocusableMode.Loose)||(e.preventDefault(),null==A||A.focus())});let M=(0,eR.useSlot)({open:C===nz.Open,disabled:d,invalid:u,value:v}),[L,R]=nT({inherit:!0}),_=(0,k.useCallback)(()=>{if(void 0!==x)return null==y?void 0:y(x)},[y,x]),O=(0,nl.useRender)();return k.default.createElement(R,{value:L,props:{htmlFor:null==A?void 0:A.id},slot:{open:C===nz.Open,disabled:d}},k.default.createElement(ni,null,k.default.createElement(nK.Provider,{value:b},k.default.createElement(nX.Provider,{value:N},k.default.createElement(nx.OpenClosedProvider,{value:(0,nj.match)(C,{[nz.Open]:nx.State.Open,[nz.Closed]:nx.State.Closed})},null!=a&&null!=v&&k.default.createElement(np,{disabled:d,data:{[a]:v},form:s,onReset:_}),O({ourProps:{ref:g},theirProps:m,slot:M,defaultTag:nQ,name:"Listbox"}))))))}),n4=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),r=ng(),i=nZ("Listbox.Button"),o=nY("Listbox.Button"),{id:s=r||`headlessui-listbox-button-${n}`,disabled:a=i.disabled||!1,autoFocus:l=!1,...c}=e,u=(0,e_.useSyncRefs)(t,ne(),o.actions.setButtonElement),d=nt(),[p,f,h]=(0,ny.useSlice)(o,e=>[e.listboxState,e.buttonElement,e.optionsElement]);eI(p===nz.Open,{trigger:f,action:(0,k.useCallback)(e=>{if(null!=f&&f.contains(e.target))return eP;let t=e.target.closest('[role="option"]:not([data-disabled])');return ev.isHTMLElement(t)?eT(t):null!=h&&h.contains(e.target)?eP:eA},[f,h]),close:o.actions.closeListbox,select:o.actions.selectActiveOption});let m=(0,ed.useEvent)(e=>{switch(e.key){case nE.Keys.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case nE.Keys.Space:case nE.Keys.ArrowDown:e.preventDefault(),o.actions.openListbox({focus:i.value?nb.Nothing:nb.First});break;case nE.Keys.ArrowUp:e.preventDefault(),o.actions.openListbox({focus:i.value?nb.Nothing:nb.Last})}}),g=(0,ed.useEvent)(e=>{e.key===nE.Keys.Space&&e.preventDefault()}),x=eb(e=>{var t;o.state.listboxState===nz.Open?((0,el.flushSync)(()=>o.actions.closeListbox()),null==(t=o.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),o.actions.openListbox({focus:nb.Nothing}))}),v=(0,ed.useEvent)(e=>e.preventDefault()),y=nP([s]),b=(0,nS.useDescribedBy)(),{isFocusVisible:w,focusProps:j}=en({autoFocus:l}),{isHovered:S,hoverProps:E}=ea({isDisabled:a}),{pressed:N,pressProps:C}=ep({disabled:a}),P=(0,eR.useSlot)({open:p===nz.Open,active:N||p===nz.Open,disabled:a,invalid:i.invalid,value:i.value,hover:S,focus:w,autofocus:l}),T=(0,ny.useSlice)(o,e=>e.listboxState===nz.Open),A=(0,nl.mergeProps)(d(),{ref:u,id:s,type:eM(e,f),"aria-haspopup":"listbox","aria-controls":null==h?void 0:h.id,"aria-expanded":T,"aria-labelledby":y,"aria-describedby":b,disabled:a||void 0,autoFocus:l,onKeyDown:m,onKeyUp:g,onKeyPress:v},x,j,E,C);return(0,nl.useRender)()({ourProps:A,theirProps:c,slot:P,defaultTag:"button",name:"Listbox.Button"})}),n3=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:i,portal:o=!1,modal:s=!0,transition:a=!1,...l}=e,c=t9(i),[u,d]=(0,k.useState)(null);c&&(o=!0);let p=nZ("Listbox.Options"),f=nY("Listbox.Options"),[h,m,g,x]=(0,ny.useSlice)(f,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),v=(0,eE.useOwnerDocument)(m),y=(0,eE.useOwnerDocument)(g),b=(0,nx.useOpenClosed)(),[w,j]=(0,eV.useTransition)(a,u,null!==b?(b&nx.State.Open)===nx.State.Open:h===nz.Open);(0,ej.useOnDisappear)(w,m,f.actions.closeListbox);let S=!x&&s&&h===nz.Open;(0,eL.useScrollLock)(S,y);let E=!x&&s&&h===nz.Open;(0,ew.useInertOthers)(E,{allowed:(0,k.useCallback)(()=>[m,g],[m,g])});let N=!(0,ny.useSlice)(f,f.selectors.didButtonMove)&&w,C=nh((0,ny.useSlice)(f,f.selectors.hasFrozenValue)&&!e.static,p.value),P=(0,k.useCallback)(e=>p.compare(C,e),[p.compare,C]),T=(0,ny.useSlice)(f,e=>{var t;if(null==c||!(null!=(t=null==c?void 0:c.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>P(e.dataRef.current.value));return -1===n&&(n=0),n}
106),[A,I]=nr((()=>{if(null==c)return;if(null===T)return{...c,inner:void 0};let e=Array.from(p.listRef.current.values());return{...c,inner:{listRef:{current:e},index:T}}})()),M=nn(),L=(0,e_.useSyncRefs)(t,c?A:null,f.actions.setOptionsElement,d),R=(0,eu.useDisposables)();(0,k.useEffect)(()=>{g&&h===nz.Open&&((0,ec.isActiveElement)(g)||null==g||g.focus({preventScroll:!0}))},[h,g]);let _=(0,ed.useEvent)(e=>{var t;switch(R.dispose(),e.key){case nE.Keys.Space:if(""!==f.state.searchQuery)return e.preventDefault(),e.stopPropagation(),f.actions.search(e.key);case nE.Keys.Enter:e.preventDefault(),e.stopPropagation(),f.actions.selectActiveOption();break;case(0,nj.match)(p.orientation,{vertical:nE.Keys.ArrowDown,horizontal:nE.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),f.actions.goToOption({focus:nb.Next});case(0,nj.match)(p.orientation,{vertical:nE.Keys.ArrowUp,horizontal:nE.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),f.actions.goToOption({focus:nb.Previous});case nE.Keys.Home:case nE.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),f.actions.goToOption({focus:nb.First});case nE.Keys.End:case nE.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),f.actions.goToOption({focus:nb.Last});case nE.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,el.flushSync)(()=>f.actions.closeListbox()),null==(t=f.state.buttonElement)||t.focus({preventScroll:!0});return;case nE.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,el.flushSync)(()=>f.actions.closeListbox()),(0,nk.focusFrom)(f.state.buttonElement,e.shiftKey?nk.Focus.Previous:nk.Focus.Next);break;default:1===e.key.length&&(f.actions.search(e.key),R.setTimeout(()=>f.actions.clearSearch(),350))}}),O=(0,ny.useSlice)(f,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),D=(0,eR.useSlot)({open:h===nz.Open}),F=(0,nl.mergeProps)(c?M():{},{id:r,ref:L,"aria-activedescendant":(0,ny.useSlice)(f,f.selectors.activeDescendantId),"aria-multiselectable":p.mode===nV.Multi||void 0,"aria-labelledby":O,"aria-orientation":p.orientation,onKeyDown:_,role:"listbox",tabIndex:h===nz.Open?0:void 0,style:{...l.style,...I,"--button-width":eg(w,m,!0).width},...(0,eV.transitionDataAttributes)(j)}),$=(0,nl.useRender)(),z=(0,k.useMemo)(()=>p.mode===nV.Multi?p:{...p,isSelected:P},[p,P]);return k.default.createElement(nI.Portal,{enabled:!!o&&(e.static||w),ownerDocument:v},k.default.createElement(nX.Provider,{value:z},$({ourProps:F,theirProps:l,slot:D,defaultTag:"div",features:n1,visible:N,name:"Listbox.Options"}
106)))}),n6=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=!0===(0,k.useContext)(n0),l=nZ("Listbox.Option"),c=nY("Listbox.Option"),u=(0,ny.useSlice)(c,e=>c.selectors.isActive(e,r)),d=l.isSelected(o),p=(0,k.useRef)(null),f=eF(p),h=(0,ek.useLatestValue)({disabled:i,value:o,domRef:p,get textValue(){return f()}}),m=(0,e_.useSyncRefs)(t,p,e=>{e?l.listRef.current.set(r,e):l.listRef.current.delete(r)}),g=(0,ny.useSlice)(c,e=>c.selectors.shouldScrollIntoView(e,r));(0,eh.useIsoMorphicEffect)(()=>{if(g)return(0,ef.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[g,p]),(0,eh.useIsoMorphicEffect)(()=>{if(!a)return c.actions.registerOption(r,h),()=>c.actions.unregisterOption(r)},[h,r,a]);let x=(0,ed.useEvent)(e=>{if(i)return e.preventDefault();c.actions.selectOption(o)}),v=(0,ed.useEvent)(()=>{if(i)return c.actions.goToOption({focus:nb.Nothing});c.actions.goToOption({focus:nb.Specific,id:r})}),y=ez(),b=(0,ed.useEvent)(e=>y.update(e)),w=(0,ed.useEvent)(e=>{y.wasMoved(e)&&(i||u&&c.state.activationTrigger===nB.Pointer||c.actions.goToOption({focus:nb.Specific,id:r},nB.Pointer))}),j=(0,ed.useEvent)(e=>{y.wasMoved(e)&&(i||u&&c.state.activationTrigger===nB.Pointer&&c.actions.goToOption({focus:nb.Nothing}))}),S=(0,eR.useSlot)({active:u,focus:u,selected:d,disabled:i,selectedOption:d&&a}),E=a?{}:{id:r,ref:m,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":d,disabled:void 0,onClick:x,onFocus:v,onPointerEnter:b,onMouseEnter:b,onPointerMove:w,onMouseMove:w,onPointerLeave:j,onMouseLeave:j},N=(0,nl.useRender)();return!d&&a?null:N({ourProps:E,theirProps:s,slot:S,defaultTag:"div",name:"Listbox.Option"})}),n8=Object.assign(n5,{Button:n4,Label:nA,Options:n3,Option:n6,SelectedOption:(0,nl.forwardRefWithAs)(function(e,t){let{options:n,placeholder:r,...i}=e,o={ref:(0,e_.useSyncRefs)(t)},s=nZ("ListboxSelectedOption"),a=(0,eR.useSlot)({}),l=void 0===s.value||null===s.value||s.mode===nV.Multi&&Array.isArray(s.value)&&0===s.value.length,c=(0,nl.useRender)();return k.default.createElement(n0.Provider,{value:!0},c({ourProps:o,theirProps:{...i,children:k.default.createElement(k.default.Fragment,null,r&&l?r:n)},slot:a,defaultTag:n2,name:"ListboxSelectedOption"}))})});e.s(["Listbox",0,n8,"ListboxButton",0,n4,"ListboxOption",0,n6,"ListboxOptions",0,n3],495470);let n7=(0,f.default)("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);e.s(["ChevronsUpDown",0,n7],344523);var n9=nM,re=Object.defineProperty,rt=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?re(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},rn=((u=rn||{})[u.Open=0]="Open",u[u.Closed=1]="Closed",u),rr=((d=rr||{})[d.Pointer=0]="Pointer",d[d.Other=1]="Other",d),ri=((p=ri||{})[p.OpenMenu=0]="OpenMenu",p[p.CloseMenu=1]="CloseMenu",p[p.GoToItem=2]="GoToItem",p[p.Search=3]="Search",p[p.ClearSearch=4]="ClearSearch",p[p.RegisterItems=5]="RegisterItems",p[p.UnregisterItems=6]="UnregisterItems",p[p.SetButtonElement=7]="SetButtonElement",p[p.SetItemsElement=8]="SetItemsElement",p[p.SortItems=9]="SortItems",p[p.MarkButtonAsMoved=10]="MarkButtonAsMoved",p);function ro(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,nk.sortByDomNode)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return -1===i&&(i=null),{items:r,activeItemIndex:i}}let rs={1(e){if(1===e.menuState)return e;let t=e.buttonElement?nR(nO(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:nb.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:nL},2:(e,t)=>{var n,r,i,o,s;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===nb.Nothing)return{...a,activeItemIndex:null};if(t.focus===nb.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===nb.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,s=nw(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==s){let t=e.items[s].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||(null==(i=t.current)?void 0:i.previousElementSibling)===null)return{...a,activeItemIndex:s}}}}else if(t.focus===nb.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=nw(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||(null==(s=t.current)?void 0:s.nextElementSibling)===null)return{...a,activeItemIndex:i}}}}let l=ro(e),c=nw(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...l,activeItemIndex:c}},3:(e,t)=>
106{let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return -1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),r=e.activeItemIndex;return e.pendingFocus.focus!==nb.Nothing&&(r=nw(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:nb.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],i=new Set(t.items);for(let[e,t]of n.entries())if(i.has(t.id)&&(r.push(e),i.delete(t.id),0===i.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...ro(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:n_}};class ra extends n9.Machine{constructor(e){super(e),rt(this,"actions",{registerItem:(0,n9.batch)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,n9.batch)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),rt(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,r=e.items;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeItemIndex,i=e.items;return null!==r&&(null==(n=i[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=nv.stackMachines.get(null);this.disposables.add(t.on(nv.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(nD(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:e,__demoMode:t=!1}){return new ra({id:e,__demoMode:t,menuState:+!t,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:nb.Nothing},buttonPositionState:nL})}reduce(e,t){return(0,nj.match)(t.type,rs,e,t)}}let rl=(0,k.createContext)(null);function rc(e){let t=(0,k.useContext)(rl);if(null===t){let t=Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ru),t}return t}function ru({id:e,__demoMode:t=!1}){let n=(0,k.useMemo)(()=>ra.new({id:e,__demoMode:t}),[]);return(0,nq.useOnUnmount)(()=>n.dispose()),n}let rd=k.Fragment,rp=nl.RenderFeatures.RenderStrategy|nl.RenderFeatures.Static,rf=k.Fragment,rh=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{__demoMode:r=!1,...i}=e,o=ru({id:n,__demoMode:r}),[s,a,l]=(0,ny.useSlice)(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),c=(0,e_.useSyncRefs)(t),u=nv.stackMachines.get(null),d=(0,ny.useSlice)(u,(0,k.useCallback)(e=>u.selectors.isTop(e,n),[u,n]));(0,eS.useOutsideClick)(d,[l,a],(e,t)=>{var n;o.send({type:ri.CloseMenu}),(0,nk.isFocusableElement)(t,nk.FocusableMode.Loose)||(e.preventDefault(),null==(n=o.state.buttonElement)||n.focus())});let p=(0,ed.useEvent)(()=>{o.send({type:ri.CloseMenu})}),f=(0,eR.useSlot)({open:s===rn.Open,close:p}),h=(0,nl.useRender)();return k.default.createElement(ni,null,k.default.createElement(rl.Provider,{value:o},k.default.createElement(nx.OpenClosedProvider,{value:(0,nj.match)(s,{[rn.Open]:nx.State.Open,[rn.Closed]:nx.State.Closed})},h({ourProps:{ref:c},theirProps:i,slot:f,defaultTag:rd,name:"Menu"}))))}),rm=(0,nl.forwardRefWithAs)(function(e,t){let n=rc("Menu.Button"),r=(0,k.useId)(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:s=!1,...a}=e,l=(0,k.useRef)(null),c=nt(),u=(0,e_.useSyncRefs)(t,l,ne(),(0,ed.useEvent)(e=>n.send({type:ri.SetButtonElement,element:e}))),d=(0,ed.useEvent)(e=>{switch(e.key){case nE.Keys.Space:case nE.Keys.Enter:case nE.Keys.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:ri.OpenMenu,focus:{focus:nb.First}});break;case nE.Keys.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:ri.OpenMenu,focus:{focus:nb.Last}})}}),p=(0,ed.useEvent)(e=>{e.key===nE.Keys.Space&&e.preventDefault()}),[f,h,m]=(0,ny.useSlice)(n,e=>[e.menuState,e.buttonElement,e.itemsElement]);eI(f===rn.Open,{trigger:h,action:(0,k.useCallback)(e=>{if(null!=h&&h.contains(e.target))return eP;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return ev.isHTMLElement(t)?eT(t):null!=m&&m.contains(e.target)?eP:eA},[h,m]),close:(0,k.useCallback)(()=>n.send({type:ri.CloseMenu}),[]),select:(0,k.useCallback)(e=>e.click(),[])});let g=eb(e=>{var t;o||(f===rn.Open?((0,el.flushSync)(()=>n.send({type:ri.CloseMenu}
106)),null==(t=l.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:ri.OpenMenu,focus:{focus:nb.Nothing},trigger:rr.Pointer})))}),{isFocusVisible:x,focusProps:v}=en({autoFocus:s}),{isHovered:y,hoverProps:b}=ea({isDisabled:o}),{pressed:w,pressProps:j}=ep({disabled:o}),S=(0,eR.useSlot)({open:f===rn.Open,active:w||f===rn.Open,disabled:o,hover:y,focus:x,autofocus:s}),E=(0,nl.mergeProps)(c(),{ref:u,id:i,type:eM(e,l.current),"aria-haspopup":"menu","aria-controls":null==m?void 0:m.id,"aria-expanded":f===rn.Open,disabled:o||void 0,autoFocus:s,onKeyDown:d,onKeyUp:p},g,v,b,j);return(0,nl.useRender)()({ourProps:E,theirProps:a,slot:S,defaultTag:"button",name:"Menu.Button"})}),rg=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{id:r=`headlessui-menu-items-${n}`,anchor:i,portal:o=!1,modal:s=!0,transition:a=!1,...l}=e,c=t9(i),u=rc("Menu.Items"),[d,p]=nr(c),f=nn(),[h,m]=(0,k.useState)(null),g=(0,e_.useSyncRefs)(t,c?d:null,(0,ed.useEvent)(e=>u.send({type:ri.SetItemsElement,element:e})),m),[x,v]=(0,ny.useSlice)(u,e=>[e.menuState,e.buttonElement]),y=(0,eE.useOwnerDocument)(v),b=(0,eE.useOwnerDocument)(h);c&&(o=!0);let w=(0,nx.useOpenClosed)(),[j,S]=(0,eV.useTransition)(a,h,null!==w?(w&nx.State.Open)===nx.State.Open:x===rn.Open);(0,ej.useOnDisappear)(j,v,()=>{u.send({type:ri.CloseMenu})});let E=(0,ny.useSlice)(u,e=>e.__demoMode),N=!E&&s&&x===rn.Open;(0,eL.useScrollLock)(N,b);let C=!E&&s&&x===rn.Open;(0,ew.useInertOthers)(C,{allowed:(0,k.useCallback)(()=>[v,h],[v,h])});let P=!(0,ny.useSlice)(u,u.selectors.didButtonMove)&&j;(0,k.useEffect)(()=>{h&&x===rn.Open&&((0,ec.isActiveElement)(h)||h.focus({preventScroll:!0}))},[x,h]),function(e,{container:t,accept:n,walk:r}){let i=(0,k.useRef)(n),o=(0,k.useRef)(r);(0,k.useEffect)(()=>{i.current=n,o.current=r},[n,r]),(0,eh.useIsoMorphicEffect)(()=>{if(!t||!e)return;let n=(0,ec.getOwnerDocument)(t);if(!n)return;let r=i.current,s=o.current,a=Object.assign(e=>r(e),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,a,!1);for(;l.nextNode();)s(l.currentNode)},[t,e,i,o])}(x===rn.Open,{container:h,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let T=(0,eu.useDisposables)(),A=(0,ed.useEvent)(e=>{var t,n,r;switch(T.dispose(),e.key){case nE.Keys.Space:if(""!==u.state.searchQuery)return e.preventDefault(),e.stopPropagation(),u.send({type:ri.Search,value:e.key});case nE.Keys.Enter:if(e.preventDefault(),e.stopPropagation(),null!==u.state.activeItemIndex){let{dataRef:e}=u.state.items[u.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}u.send({type:ri.CloseMenu}),(0,nk.restoreFocusIfNecessary)(u.state.buttonElement);break;case nE.Keys.ArrowDown:return e.preventDefault(),e.stopPropagation(),u.send({type:ri.GoToItem,focus:nb.Next});case nE.Keys.ArrowUp:return e.preventDefault(),e.stopPropagation(),u.send({type:ri.GoToItem,focus:nb.Previous});case nE.Keys.Home:case nE.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),u.send({type:ri.GoToItem,focus:nb.First});case nE.Keys.End:case nE.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),u.send({type:ri.GoToItem,focus:nb.Last});case nE.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,el.flushSync)(()=>u.send({type:ri.CloseMenu})),null==(r=u.state.buttonElement)||r.focus({preventScroll:!0});break;case nE.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,el.flushSync)(()=>u.send({type:ri.CloseMenu})),(0,nk.focusFrom)(u.state.buttonElement,e.shiftKey?nk.Focus.Previous:nk.Focus.Next);break;default:1===e.key.length&&(u.send({type:ri.Search,value:e.key}),T.setTimeout(()=>u.send({type:ri.ClearSearch}),350))}}),I=(0,ed.useEvent)(e=>{e.key===nE.Keys.Space&&e.preventDefault()}),M=(0,eR.useSlot)({open:x===rn.Open}),L=(0,nl.mergeProps)(c?f():{},{"aria-activedescendant":(0,ny.useSlice)(u,u.selectors.activeDescendantId),"aria-labelledby":(0,ny.useSlice)(u,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:r,onKeyDown:A,onKeyUp:I,role:"menu",tabIndex:x===rn.Open?0:void 0,ref:g,style:{...l.style,...p,"--button-width":eg(j,v,!0).width},...(0,eV.transitionDataAttributes)(S)}),R=(0,nl.useRender)();return k.default.createElement(nI.Portal,{enabled:!!o&&(e.static||j),ownerDocument:y},R({ourProps:L,theirProps:l,slot:M,defaultTag:"div",features:rp,visible:P,name:"Menu.Items"}))}),rx=(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,s=rc("Menu.Item"),a=(0,ny.useSlice)(s,e=>s.selectors.isActive(e,r)),l=(0,k.useRef)(null),c=(0,e_.useSyncRefs)(t,l),u=(0,ny.useSlice)(s,e=>s.selectors.shouldScrollIntoView(e,r));(0,eh.useIsoMorphicEffect)(()=>
106{if(u)return(0,ef.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[u,l]);let d=eF(l),p=(0,k.useRef)({disabled:i,domRef:l,get textValue(){return d()}});(0,eh.useIsoMorphicEffect)(()=>{p.current.disabled=i},[p,i]),(0,eh.useIsoMorphicEffect)(()=>(s.actions.registerItem(r,p),()=>s.actions.unregisterItem(r)),[p,r]);let f=(0,ed.useEvent)(()=>{s.send({type:ri.CloseMenu})}),h=(0,ed.useEvent)(e=>{if(i)return e.preventDefault();s.send({type:ri.CloseMenu}),(0,nk.restoreFocusIfNecessary)(s.state.buttonElement)}),m=(0,ed.useEvent)(()=>{if(i)return s.send({type:ri.GoToItem,focus:nb.Nothing});s.send({type:ri.GoToItem,focus:nb.Specific,id:r})}),g=ez(),x=(0,ed.useEvent)(e=>g.update(e)),v=(0,ed.useEvent)(e=>{g.wasMoved(e)&&(i||a||s.send({type:ri.GoToItem,focus:nb.Specific,id:r,trigger:rr.Pointer}))}),y=(0,ed.useEvent)(e=>{g.wasMoved(e)&&(i||a&&s.state.activationTrigger===rr.Pointer&&s.send({type:ri.GoToItem,focus:nb.Nothing}))}),[b,w]=nT(),[j,S]=(0,nS.useDescriptions)(),E=(0,eR.useSlot)({active:a,focus:a,disabled:i,close:f}),N=(0,nl.useRender)();return k.default.createElement(w,null,k.default.createElement(S,null,N({ourProps:{id:r,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":j,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:x,onMouseEnter:x,onPointerMove:v,onMouseMove:v,onPointerLeave:y,onMouseLeave:y},theirProps:o,slot:E,defaultTag:rf,name:"Menu.Item"})))}),rv=Object.assign(rh,{Button:rm,Items:rg,Item:rx,Section:(0,nl.forwardRefWithAs)(function(e,t){let[n,r]=nT(),i=(0,nl.useRender)();return k.default.createElement(r,null,i({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,nl.forwardRefWithAs)(function(e,t){let n=(0,k.useId)(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=nC();(0,eh.useIsoMorphicEffect)(()=>o.register(r),[r,o.register]);let s={id:r,ref:t,role:"presentation",...o.props};return(0,nl.useRender)()({ourProps:s,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,nl.forwardRefWithAs)(function(e,t){return(0,nl.useRender)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})});e.s(["Menu",0,rv,"MenuButton",0,rm,"MenuItem",0,rx,"MenuItems",0,rg],989895)},37727,e=>{"use strict";let t=(0,e.i(475254).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],37727)},618566,(e,t,n)=>{t.exports=e.r(976562)},918789,76696,124963,640553,157871,359091,329422,35198,713059,807432,177927,175765,496481,454751,432066,177049,586281,583664,742531,207670,919056,e=>{"use strict";function t(){}function n(){}function r(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}e.s(["stringify",0,r],76696);let i=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,o=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function a(e,t){return((t||s).jsx?o:i).test(e)}let l=/[ \t\n\f\r]/g;function c(e){return"object"==typeof e?"text"===e.type&&u(e.value):u(e)}function u(e){return""===e.replace(l,"")}e.s(["whitespace",0,c],124963);class d{constructor(e,t){this.attribute=t,this.property=e}}d.prototype.attribute="",d.prototype.booleanish=!1,d.prototype.boolean=!1,d.prototype.commaOrSpaceSeparated=!1,d.prototype.commaSeparated=!1,d.prototype.defined=!1,d.prototype.mustUseProperty=!1,d.prototype.number=!1,d.prototype.overloadedBoolean=!1,d.prototype.property="",d.prototype.spaceSeparated=!1,d.prototype.space=void 0;let p=0,f=b(),h=b(),m=b(),g=b(),x=b(),v=b(),y=b();function b(){return 2**++p}e.s(["boolean",0,f,"booleanish",0,h,"commaOrSpaceSeparated",0,y,"commaSeparated",0,v,"number",0,g,"overloadedBoolean",0,m,"spaceSeparated",0,x],400744);var w=e.i(400744);let k=Object.keys(w);class j extends d{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<k.length;){const e=k[i];!function(e,t,n){n&&(e[t]=n)}(this,k[i],(n&w[e])===w[e])}}}function S(e){return e.toLowerCase()}j.prototype.defined=!0;let E=/[A-Z]/g,N=/-[a-z]/g,C=/^data[-\w.:]+$/i;function P(e,t){let n=S(t),r=t,i=d;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&C.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(N,A);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!N.test(e)){let n=e.replace(E,T);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=j}return new i(r,t)}function T(e){return"-"+e.toLowerCase()}function A(e){return e.charAt(1).toUpperCase()}e.s(["find",0,P],640553);let I={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};class M{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function L(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new M(n,r,t)}function R(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let o=new j(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[S(r)]=r,n[S(o.attribute)]=r}return new M(t,n,e.space)}M.prototype.normal={},M.prototype.property={},M.prototype.space=void 0;let _=R({properties:{ariaActiveDescendant:null,ariaAtomic:h,ariaAutoComplete:null,ariaBusy:h,ariaChecked:h,ariaColCount:g,ariaColIndex:g,ariaColSpan:g,ariaControl
106s:x,ariaCurrent:null,ariaDescribedBy:x,ariaDetails:null,ariaDisabled:h,ariaDropEffect:x,ariaErrorMessage:null,ariaExpanded:h,ariaFlowTo:x,ariaGrabbed:h,ariaHasPopup:null,ariaHidden:h,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:x,ariaLevel:g,ariaLive:null,ariaModal:h,ariaMultiLine:h,ariaMultiSelectable:h,ariaOrientation:null,ariaOwns:x,ariaPlaceholder:null,ariaPosInSet:g,ariaPressed:h,ariaReadOnly:h,ariaRelevant:null,ariaRequired:h,ariaRoleDescription:x,ariaRowCount:g,ariaRowIndex:g,ariaRowSpan:g,ariaSelected:h,ariaSetSize:g,ariaSort:null,ariaValueMax:g,ariaValueMin:g,ariaValueNow:g,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function O(e,t){return t in e?e[t]:t}function D(e,t){return O(e,t.toLowerCase())}let F=R({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:v,acceptCharset:x,accessKey:x,action:null,allow:null,allowFullScreen:f,allowPaymentRequest:f,allowUserMedia:f,alpha:f,alt:null,as:null,async:f,autoCapitalize:null,autoComplete:x,autoFocus:f,autoPlay:f,blocking:x,capture:null,charSet:null,checked:f,cite:null,className:x,closedBy:null,colorSpace:null,cols:g,colSpan:g,command:null,commandFor:null,content:null,contentEditable:h,controls:f,controlsList:x,coords:g|v,crossOrigin:null,data:null,dateTime:null,decoding:null,default:f,defer:f,dir:null,dirName:null,disabled:f,download:m,draggable:h,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:f,formTarget:null,headers:x,height:g,hidden:m,high:g,href:null,hrefLang:null,htmlFor:x,httpEquiv:x,id:null,imageSizes:null,imageSrcSet:null,inert:f,inputMode:null,integrity:null,is:null,isMap:f,itemId:null,itemProp:x,itemRef:x,itemScope:f,itemType:x,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:f,low:g,manifest:null,max:null,maxLength:g,media:null,method:null,min:null,minLength:g,multiple:f,muted:f,name:null,nonce:null,noModule:f,noValidate:f,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:f,optimum:g,pattern:null,ping:x,placeholder:null,playsInline:f,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:f,referrerPolicy:null,rel:x,required:f,reversed:f,rows:g,rowSpan:g,sandbox:x,scope:null,scoped:f,seamless:f,selected:f,shadowRootClonable:f,shadowRootCustomElementRegistry:f,shadowRootDelegatesFocus:f,shadowRootMode:null,shadowRootSerializable:f,shape:null,size:g,sizes:null,slot:null,span:g,spellCheck:h,src:null,srcDoc:null,srcLang:null,srcSet:null,start:g,step:null,style:null,tabIndex:g,target:null,title:null,translate:null,type:null,typeMustMatch:f,useMap:null,value:h,width:g,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:x,axis:null,background:null,bgColor:null,border:g,borderColor:null,bottomMargin:g,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:f,declare:f,event:null,face:null,frame:null,frameBorder:null,hSpace:g,leftMargin:g,link:null,longDesc:null,lowSrc:null,marginHeight:g,marginWidth:g,noResize:f,noHref:f,noShade:f,noWrap:f,object:null,profile:null,prompt:null,rev:null,rightMargin:g,rules:null,scheme:null,scrolling:h,standby:null,summary:null,text:null,topMargin:g,valueType:null,version:null,vAlign:null,vLink:null,vSpace:g,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:f,disablePictureInPicture:f,disableRemotePlayback:f,exportParts:v,part:x,prefix:null,property:null,results:g,security:null,unselectable:null},space:"html",transform:D}),$=R({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRen
106dering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
106-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:y,accentHeight:g,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:g,amplitude:g,arabicForm:null,ascent:g,attributeName:null,attributeType:null,azimuth:g,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:g,by:null,calcMode:null,capHeight:g,className:x,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:g,diffuseConstant:g,direction:null,display:null,dur:null,divisor:g,dominantBaseline:null,download:f,dx:null,dy:null,edgeMode:null,editable:null,elevation:g,enableBackground:null,end:null,event:null,exponent:g,externalResourcesRequired:null,fill:null,fillOpacity:g,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:v,g2:v,glyphName:v,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:g,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:g,horizOriginX:g,horizOriginY:g,id:null,ideographic:g,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:g,k:g,k1:g,k2:g,k3:g,k4:g,kernelMatrix:y,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:g,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:g,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
106Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:g,overlineThickness:g,paintOrder:null,panose1:null,path:null,pathLength:g,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:x,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:g,pointsAtY:g,pointsAtZ:g,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:y,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:y,rev:y,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:y,requiredFeatures:y,requiredFonts:y,requiredFormats:y,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:g,specularExponent:g,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:g,strikethroughThickness:g,string:null,stroke:null,strokeDashArray:y,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:g,strokeOpacity:g,strokeWidth:null,style:null,surfaceScale:g,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:y,tabIndex:g,tableValues:null,target:null,targetX:g,targetY:g,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:y,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:g,underlineThickness:g,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:g,values:null,vAlphabetic:g,vMathematical:g,vectorEffect:null,vHanging:g,vIdeographic:g,version:null,vertAdvY:g,vertOriginX:g,vertOriginY:g,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:g,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:O}),z=R({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),V=R({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:D}),B=R({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),H=L([_,F,z,V,B],"html"),U=L([_,$,z,V,B],"svg");function W(e){return e.join(" ").trim()}e.s(["html",0,H,"svg",0,U],157871),e.s(["stringify",0,W],359091);var G=e.i(515511);let q=Y("end"),K=Y("start");function Y(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function J(e){let t=K(e),n=q(e);if(t&&n)return{start:t,end:n}}function X(e){return e&&"object"==typeof e?"position"in e||"type"in e?Q(e.position):"start"in e||"end"in e?Q(e):"line"in e||"column"in e?Z(e):"":""}function Z(e){return ee(e&&e.line)+":"+ee(e&&e.column)}function Q(e){return Z(e&&e.start)+"-"+Z(e&&e.end)}function ee(e){return e&&"number"==typeof e?e:1}e.s(["pointEnd",0,q,"pointStart",0,K,"position",0,J],329422);class et extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=X(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}et.prototype.file="",et.prototype.name="",et.prototype.reason="",et.prototype.message="",et.prototype.stack="",et.prototype.column=void 0,et.prototype.line=void 0,et.prototype.ancestors=void 0,et.prototype.cause=void 0,et.prototype.fatal=void 0,et.prototype.place=void 0,et.prototype.ruleId=void 0,et.prototype.source=void 0;let en={}.hasOwnProperty,er=new Map,ei=/[A-Z]/g,eo=new Set(["table","tbody","thead","tfoot","tr"]),es=new Set(["td","th"]),ea="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function el(e,n,i){var o,s,a,l,u,d,p,f,h;let m,g,x,v,y,b,w,k,j,S,E;return"element"===n.type?(o=e,s=n,a=i,g=m=o.schema,"svg"===s.tagName.toLowerCase()&&"html"===m.space&&(o.schema=U),o.ancestors.push(s),x=ep(o,s.tagName,!1),v=function(e,t){let n,i,o={};for(i in t.properties)if("children"!==i&&en.call(t.properties,i)){let s=function(e,t,n){let i=P(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?r(n):W(n)),"style"===i.property){let t="object"==typeof n?n:function(e,t){try{return(0,G.default)(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new et("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
106throw t.file=e.filePath||void 0,t.url=ea+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)en.call(e,t)&&(n[function(e){let t=e.replace(ei,eh);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?I[i.property]||i.property:i.attribute,n]}}(e,i,t.properties[i]);if(s){let[r,i]=s;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof i&&es.has(t.tagName)?n=i:o[r]=i}}return n&&((o.style||(o.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),o}(o,s),y=ed(o,s),eo.has(s.tagName)&&(y=y.filter(function(e){return"string"!=typeof e||!c(e)})),ec(o,v,x,s),eu(v,y),o.ancestors.pop(),o.schema=m,o.create(s,x,v,a)):"mdxFlowExpression"===n.type||"mdxTextExpression"===n.type?function(e,n){if(n.data&&n.data.estree&&e.evaluater){let r=n.data.estree.body[0];return t(r.type),e.evaluater.evaluateExpression(r.expression)}ef(e,n.position)}(e,n):"mdxJsxFlowElement"===n.type||"mdxJsxTextElement"===n.type?(l=e,u=n,d=i,w=b=l.schema,"svg"===u.name&&"html"===b.space&&(l.schema=U),l.ancestors.push(u),k=null===u.name?l.Fragment:ep(l,u.name,!0),j=function(e,n){let r={};for(let i of n.attributes)if("mdxJsxExpressionAttribute"===i.type)if(i.data&&i.data.estree&&e.evaluater){let n=i.data.estree.body[0];t(n.type);let o=n.expression;t(o.type);let s=o.properties[0];t(s.type),Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else ef(e,n.position);else{let o,s=i.name;if(i.value&&"object"==typeof i.value)if(i.value.data&&i.value.data.estree&&e.evaluater){let n=i.value.data.estree.body[0];t(n.type),o=e.evaluater.evaluateExpression(n.expression)}else ef(e,n.position);else o=null===i.value||i.value;r[s]=o}return r}(l,u),S=ed(l,u),ec(l,j,k,u),eu(j,S),l.ancestors.pop(),l.schema=b,l.create(u,k,j,d)):"mdxjsEsm"===n.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ef(e,t.position)}(e,n):"root"===n.type?(p=e,f=n,h=i,eu(E={},ed(p,f)),p.create(f,p.Fragment,E,h)):"text"===n.type?n.value:void 0}function ec(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eu(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ed(e,t){let n=[],r=-1,i=e.passKeys?new Map:er;for(;++r<t.children.length;){let o,s=t.children[r];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=i.get(e)||0;o=e+"-"+t,i.set(e,t+1)}}let a=el(e,s,o);void 0!==a&&n.push(a)}return n}function ep(e,n,r){let i;if(r)if(n.includes(".")){let e,r=n.split("."),o=-1;for(;++o<r.length;){let t=a(r[o])?{type:"Identifier",name:r[o]}:{type:"Literal",value:r[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}t(),i=e}else i=a(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};else i={type:"Literal",value:n};if("Literal"===i.type){let t=i.value;return en.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);ef(e)}function ef(e,t){let n=new et("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ea+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eh(e){return"-"+e.toLowerCase()}let em={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var eg=e.i(843476);e.i(271645);let ex={};function ev(e,t){let n=t||ex;return ey(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function ey(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eb(e.children,t,n)}return Array.isArray(e)?eb(e,t,n):""}function eb(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ey(e[i],t,n);return r.join("")}function ew(e,t,n,r){let i,o=e.length,s=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);s<r.length;)(i=r.slice(s,s+1e4)).unshift(t,0),e.splice(...i),s+=1e4,t+=1e4}function ek(e,t){return e.length>0?(ew(e,e.length,0,t),e):t}let ej={}.hasOwnProperty;function eS(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(ej.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){ej.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);ew(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let eE=eD(/[A-Za-z]/),eN=eD(/[\dA-Za-z]/),eC=eD(/[#-'*+\--9=?A-Z^-~]/);function eP(e){return null!==e&&(e<32||127===e)}let eT=eD(/\d/),eA=eD(/[\dA-Fa-f]/),eI=eD(/[!-/:-@[-`{-~]/);function eM(e){return null!==e&&e<-2}function eL(e){return null!==e&&(e<0||32===e)}function eR(e){return -2===e||-1===e||32===e}let e_=eD(/\p{P}|\p{S}/u),eO=eD(/\s/);function eD(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function eF(e,t,n,r){let i=r?r-1:1/0,o=0;return function(r){return eR(r)?(e.enter(n),function r(s){return eR(s)&&o++<i?(e.consume(s),r):(e.exit(n),t(s))}(r)):t(r)}}let e$={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return eM(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},ez={tokenize:function(e){let t,n,r,i=this,o=[],s=0;return a;function a(t){if(s<o.length){let n=o[s];return i.containerState=n[1],e.attempt(n[0].continuation,l,c)(t)}return c(t)}function l(e){if(s++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&x();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}g(s);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return ew(i.events,o+1,0,i.events.slice(r)),i.events.length=a,c(e)}return a(e)}function c(n){if(s===o.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return h(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(eV,u,d)(n)}function u(e){return t&&x(),g(s),p(e)}function d(e){return i.parser.lazy[i.now().line]=s!==o.length,r=i.now().offset,h(e)}function p(t){return i.containerState={},e.attempt(eV,f,h)(t)}function f(e){return s++,o.push([i.currentConstruct,i.containerState]),p(e)}function h(r){if(null===r){t&&x(),g(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),g(0),e.consume(n);return}return eM(n)?(e.consume(n),m(e.exit("chunkFlow")),s=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,o){let a=i.sliceStream(e);
106if(o&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let a=i.events.length,l=a;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){if(e){n=i.events[l][1].end;break}e=!0}for(g(s),o=a;o<i.events.length;)i.events[o][1].end={...n},o++;ew(i.events,l+1,0,i.events.slice(a)),i.events.length=o}}function g(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function x(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},eV={tokenize:function(e,t,n){return eF(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},eB={partial:!0,tokenize:function(e,t,n){return function(t){return eR(t)?eF(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||eM(e)?t(e):n(e)}}};class eH{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&eU(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),eU(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eU(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);eU(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);eU(this.left,t.reverse())}}}function eU(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function eW(e){let t,n,r,i,o,s,a,l={},c=-1,u=new eH(e);for(;++c<u.length;){for(;c in l;)c=l[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(l,function(e,t){let n,r,i=e.get(t)[1],o=e.get(t)[2],s=t-1,a=[],l=i._tokenizer;!l&&(l=o.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));let c=l.events,u=[],d={},p=-1,f=i,h=0,m=0,g=[0];for(;f;){for(;e.get(++s)[1]!==f;);a.push(s),!f._tokenizer&&(n=o.sliceStream(f),f.next||n.push(null),r&&l.defineSkip(f.start),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(n),f._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),r=f,f=f.next}for(f=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,g.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(l.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),p=g.length;p--;){let t=c.slice(g[p],g[p+1]),n=a.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)d[h+u[p][0]]=h+u[p][1],h+=u[p][1]-u[p][0]-1;return d}(u,c)),c=l[c],a=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;
106n&&(t[1].end={...u.get(n)[1].start},(o=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,o))}}return ew(e,0,1/0,u.slice(0)),!a}let eG={resolve:function(e){return eW(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):eM(t)?e.check(eq,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},eq={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,i,"linePrefix")};function i(i){if(null===i||eM(i))return n(i);let o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},eK={tokenize:function(e){let t=this,n=e.attempt(eB,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,eF(e,e.attempt(this.parser.constructs.flow,r,e.attempt(eG,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},eY={resolveAll:eQ()},eJ=eZ("string"),eX=eZ("text");function eZ(e){return{resolveAll:eQ("text"===e?e0:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function eQ(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function e0(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],o=t.sliceStream(i),s=o.length,a=-1,l=0;for(;s--;){let e=o[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)l++,a--;if(a)break;a=-1}else if(-2===e)r=!0,l++;else if(-1===e);else{s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let o={type:n===e.length||r||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?a:i.start._bufferIndex+a,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...o.start},i.start.offset===i.end.offset?Object.assign(i,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function e1(e){return null===e||eL(e)||eO(e)?1:e_(e)?2:void 0}function e2(e,t,n){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}let e5={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[u][1].start};e4(d,-a),e4(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[u][1].start={...s.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=ek(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=ek(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=ek(l,e2(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=ek(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=ek(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,ew(e,n-1,u-n+3,l),u=n+l.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,o=e1(i);return function(s){return n=s,e.enter("attentionSequence"),function s(a){if(a===n)return e.consume(a),s;let l=e.exit("attentionSequence"),c=e1(a),u=!c||2===c&&o||r.includes(a),d=!o||2===o&&c||r.includes(i);return l._open=!!(42===n?u:u&&(o||!d)),l._close=!!(42===n?d:d&&(c||!u)),t(a)}(s)}}};function e4(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let e3={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return eR(t)?eF(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(e3,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return eR(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},e6={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return eI(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},e8=document.createElement("i");function e7(e){let t="&"+e+";";e8.innerHTML=t;let n=e8.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let e9={name:"characterReference",tokenize:function(e,t,n){let r,i,o=this,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),r=31,i=eN,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eA,c):(e.enter("characterReferenceValue"),r=7,i=eT,c(t))}function c(a){if(59===a&&s){let r=e.exit("characterReferenceValue");return i!==eN||e7(o.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&s++<r?(e.consume(a),c):n(a)}}},te={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tt={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,o={partial:!0,tokenize:function(e,t,n){let o=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s};
vendor: 11,033 bytes, line 106
106function s(t){return e.enter("codeFencedFence"),eR(t)?eF(e,l,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(o++,e.consume(i),t):o>=a?(e.exit("codeFencedFenceSequence"),eR(i)?eF(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||eM(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},s=0,a=0;return function(t){var o;let c;return o=t,s=(c=i.events[i.events.length-1])&&"linePrefix"===c[1].type?c[2].sliceSerialize(c[1],!0).length:0,r=o,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),eR(i)?eF(e,l,"whitespace")(i):l(i))}(o)};function l(o){return null===o||eM(o)?(e.exit("codeFencedFence"),i.interrupt?t(o):e.check(te,u,h)(o)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eM(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(i)):eR(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),eF(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(o))}function c(t){return null===t||eM(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||eM(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(o,h,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return s>0&&eR(t)?eF(e,f,"linePrefix",s+1)(t):f(t)}function f(t){return null===t||eM(t)?e.check(te,u,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||eM(n)?(e.exit("codeFlowValue"),f(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},tn={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),eF(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?o(n):eM(n)?e.attempt(tr,t,o)(n):(e.enter("codeFlowValue"),function n(r){return null===r||eM(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):eM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):eF(e,o,"linePrefix",5)(t)}function o(e){let o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):eM(e)?i(e):n(e)}}};function ti(e,t,n,r,i,o,s,a,l){let c=l||1/0,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),d):null===t||32===t||41===t||eP(t)?n(t):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(t))};function d(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||eM(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function h(i){return!u&&(null===i||41===i||eL(i))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,h):41===i?(e.consume(i),u--,h):null===i||32===i||40===i||eP(i)?n(i):(e.consume(i),92===i?m:h)}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function to(e,t,n,r,i,o){let s,a=this,l=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):eM(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||eM(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!eR(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ts(e,t,n,r,i,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a):n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):eM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),eF(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||eM(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function ta(e,t){let n;return function r(i){return eM(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):eR(i)?eF(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tl(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tc={partial:!0,tokenize:function(e,t,n){return function(t){return eL(t)?ta(e,r)(t):n(t)};function r(t){return ts(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return eR(t)?eF(e,o,"whitespace")(t):o(t)}function o(e){return null===e||eM(e)?t(e):n(e)}}},tu=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],td=["pre","script","style","textarea"],tp={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(eB,t,n)}}},tf={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return eM(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},th={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&ew(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);let l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=ek(o=[["enter",l,t],["enter",c,t]],e.slice(r+1,r+a+3)),o=ek(o,[["enter",u,t]]),o=ek(o,e2(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=ek(o,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),o=ek(o,e.slice(i+1)),o=ek(o,[["exit",l,t]]),ew(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,o=this,s=o.events.length;for(;s--;)if(("labelImage"===o.events[s][1].type||"labelLink"===o.events[s][1].type)&&!o.events[s][1]._balanced){r=o.events[s][1];break}return function(t){return r?r._inactive?u(t):(i=o.parser.defined.includes(tl(o.sliceSerialize({start:r.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tm,c,i?c:u)(t):91===t?e.attempt(tg,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(tx,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},tm={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return eL(t)?ta(e,i)(t):i(t)}function i(t){return 41===t?c(t):ti(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return eL(t)?ta(e,a)(t):c(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?ts(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return eL(t)?ta(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tg={tokenize:function(e,t,n){let r=this;return function(t){return to.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tl(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},tx={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tv={name:"labelStartImage",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},ty={name:"labelStartLink",resolveAll:th.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tb={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),eF(e,t,"linePrefix")}}},tw={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(o){var s;return e.enter("thematicBreak"),r=s=o,function o(s){return s===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),eR(n)?eF(e,o,"whitespace")(n):o(n))}(s)):i>=3&&(null===s||eM(s))?(e.exit("thematicBreak"),t(s)):n(s)}(s)}}},tk={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(eB,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,eF(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!eR(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
106=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tS,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,eF(e,e.attempt(tk,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eT(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tw,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eT(i)&&++s<10?(e.consume(i),t):(!r.interrupt||s<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(eB,r.interrupt?n:l,e.attempt(tj,u,c))}
106function l(e){return r.containerState.initialBlankLine=!0,o++,u(e)}function c(t){return eR(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tj={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return!eR(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tS={partial:!0,tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tE={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);let s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var s;let a,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){a="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,s=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),eR(n)?eF(e,o,"lineSuffix")(n):o(n))}(s)):n(t)};function o(r){return null===r||eM(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};e.s(["attentionMarkers",0,{null:[42,95]},"contentInitial",0,{91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,to.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function o(t){return(r=tl(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return eL(t)?ta(e,a)(t):a(t)}function a(t){return ti(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(tc,c,c)(t)}function c(t){return eR(t)?eF(e,u,"whitespace")(t):u(t)}function u(o){return null===o||eM(o)?(e.exit("definition"),i.parser.defined.push(r),t(o)):n(o)}}}},"disable",0,{null:[]},"document",0,{42:tk,43:tk,45:tk,48:tk,49:tk,50:tk,51:tk,52:tk,53:tk,54:tk,55:tk,56:tk,57:tk,62:e3},"flow",0,{35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},ew(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var o;return e.enter("atxHeading"),o=i,e.enter("atxHeadingSequence"),function i(o){return 35===o&&r++<6?(e.consume(o),i):null===o||eL(o)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||eM(r)?(e.exit("atxHeading"),t(r)):eR(r)?eF(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||eL(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(o)):n(o)}(o)}}},42:tw,45:[tE,tw],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,o,s,a,l=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),c};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),r=3,l.interrupt?t:M):eE(s)?(e.consume(s),o=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,s=0,p):eE(i)?(e.consume(i),r=4,l.interrupt?t:M):n(i)}function d(r){return 45===r?(e.consume(r),l.interrupt?t:M):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(s++)?(e.consume(r),s===i.length)?l.interrupt?t:S:p:n(r)}function f(t){return eE(t)?(e.consume(t),o=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||eL(s)){let a=47===s,c=o.toLowerCase();return!a&&!i&&td.includes(c)?(r=1,l.interrupt?t(s):S(s)):tu.includes(o.toLowerCase())?(r=6,a)?(e.consume(s),m):l.interrupt?t(s):S(s):(r=7,l.interrupt&&!l.parser.lazy[l.now().line]?n(s):i?function t(n){return eR(n)?(e.consume(n),t):k(n)}(s):g(s))}return 45===s||eN(s)?(e.consume(s),o+=String.fromCharCode(s),h):n(s)}function m(r){return 62===r?(e.consume(r),l.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||eE(t)?(e.consume(t),x):eR(t)?(e.consume(t),g):k(t)}function x(t){return 45===t||46===t||58===t||95===t||eN(t)?(e.consume(t),x):v(t)}function v(t){return 61===t?(e.consume(t),y):eR(t)?(e.consume(t),v):g(t)}function y(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,b):eR(t)?(e.consume(t),y):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||eL(n)?v(n):(e.consume(n),t)}(t)}function b(t){return t===a?(e.consume(t),a=null,w):null===t||eM(t)?n(t):(e.consume(t),b)}function w(e){return 47===e||62===e||eR(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||eM(t)?S(t):eR(t)?(e.consume(t),j):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),P):60===t&&1===r?(e.consume(t),T):62===t&&4===r?(e.consume(t),L):63===t&&3===r?(e.consume(t),M):93===t&&5===r?(e.consume(t),I):eM(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tp,R,E)(t)):null===t||eM(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),S)}function E(t){return e.check(tf,N,R)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),C}function C(t){return null===t||eM(t)?E(t):(e.enter("htmlFlowData"),S(t))}function P(t){return 45===t?(e.consume(t),M):S(t)}function T(t){return 47===t?(e.consume(t),o="",A):S(t)}function A(t){if(62===t){let n=o.toLowerCase();return td.includes(n)?(e.consume(t),L):S(t)}return eE(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),A):S(t)}function I(t){return 93===t?(e.consume(t),M):S(t)}function M(t){return 62===t?(e.consume(t),L):45===t&&2===r?(e.consume(t),M):S(t)}function L(t){return null===t||eM(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),L)}function R(n){return e.exit("htmlFlow"),t(n)}}},61:tE,95:tw,96:tt,126:tt},"flowInitial",0,{[-2]:tn,[-1]:tn,32:tn},"insideSpan",0,{null:[e5,eY]},"string",0,{38:e9,92:e6},"text",0,{[-5]:tb,[-4]:tb,[-3]:tb,33:tv,38:e9,42:e5,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eE(t)?(e.consume(t),o):64===t?n(t):a(t)}function o(t){return 43===t||45===t||46===t||eN(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,s):(43===n||45===n||46===n||eN(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eP(r)?n(r):(e.consume(r),s)}function a(t){return 64===t?(e.consume(t),l):eC(t)?(e.consume(t),a):n(t)}function l(i){return eN(i)?function i(o){return 46===o?(e.consume(o),r=0,l):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||eN(o))&&r++<63){let n=45===o?t:i;return e.consume(o),n}return n(o)}(o)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,o,s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),b):63===t?(e.consume(t),v):eE(t)?(e.consume(t),k):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):eE(t)?(e.consume(t),x):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):eM(t)?(o=u,A(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?T(e):45===e?d(e):u(e)}function f(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:f):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):eM(t)?(o=h,A(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?T(t):93===t?(e.consume(t),g):h(t)}function x(t){return null===t||62===t?T(t):eM(t)?(o=x,A(t)):(e.consume(t),x)}function v(t){return null===t?n(t):63===t?(e.consume(t),y):eM(t)?(o=v,A(t)):(e.consume(t),v)}function y(e){return 62===e?T(e):v(e)}function b(t){return eE(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||eN(t)?(e.consume(t),w):function t(n){return eM(n)?(o=t,A(n)):eR(n)?(e.consume(n),t):T(n)}(t)}function k(t){return 45===t||eN(t)?(e.consume(t),k):47===t||62===t||eL(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),T):58===t||95===t||eE(t)?(e.consume(t),S):eM(t)?(o=j,A(t)):eR(t)?(e.consume(t),j):T(t)}function S(t){return 45===t||46===t||58===t||95===t||eN(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),E):eM(n)?(o=t,A(n)):eR(n)?(e.consume(n),t):j(n)}(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,N):eM(t)?(o=E,A(t)):eR(t)?(e.consume(t),E):(e.consume(t),C)}function N(t){return t===r?(e.consume(t),r=void 0,P):null===t?n(t):eM(t)?(o=N,A(t)):(e.consume(t),N)}function C(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||eL(t)?j(t):(e.consume(t),C)}function P(e){return 47===e||62===e||eL(e)?j(e):n(e)}function T(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function A(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return eR(t)?eF(e,M,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),o(t)}}}],91:ty,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return eM(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},e6],93:th,95:e5,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;
106return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),o++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(l){return null===l?n(l):32===l?(e.enter("space"),e.consume(l),e.exit("space"),s):96===l?(i=e.enter("codeTextSequence"),r=0,function n(s){return 96===s?(e.consume(s),r++,n):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(i.type="codeTextData",a(s))}(l)):eM(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(l))}function a(t){return null===t||32===t||96===t||eM(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),a)}}}}],304127);var tN=e.i(304127);let tC=/[\0\t\n\r]/g;function tP(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let tT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function tA(e){return e.replace(tT,tI)}function tI(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return tP(n.slice(t?2:1),t?16:10)}return e7(n)||e}e.s(["decodeString",0,tA],35198);let tM={}.hasOwnProperty;function tL(e){return{line:e.line,column:e.column,offset:e.offset}}function tR(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+X({start:t.start,end:t.end})+") is still open")}function t_(e){let t=this;t.parser=function(n){var r,i;let o,s,a,l;return"object"==typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(f),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(f,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(g,i),htmlFlowData:c,htmlText:r(g,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(v,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(v),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:s(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=tP(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=e7(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=tL(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tl(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:s(),hardBreakEscape:s(d),hardBreakTrailing:s(d),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=tA(t),n.identifier=tl(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=tL(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
106ype)&&(c.call(this,e),u.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tl(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(tM.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},s={stack:[r],tokenStack:[],config:t,enter:o,exit:a,buffer:i,resume:l,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,o,s,a=t-1,l=-1,c=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||l||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){let t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=s}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}o&&(!i||o<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];tM.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},s),e[u][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||tR).call(s,void 0,e[0])}for(r.position={start:tL(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:tL(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:tL(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||tR).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+X({start:e.start,end:e.end})+"): it’s not open");n.position.end=tL(e.end)}function l(){return ev(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:tL(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=tL(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function f(){return{type:"code",lang:null,meta:null,value:""}}function h(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function g(){return{type:"html",value:""}}function x(){return{type:"link",title:null,url:"",children:[]}}function v(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(i)(function(e){for(;!eW(e););return e}((function(e){let t={constructs:eS([tN,...(e||{}).extensions||[]]),content:n(e$),defined:[],document:n(ez),flow:n(eK),lazy:{},string:n(eJ),text:n(eX)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
106olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],s=[],a=[],l={attempt:h(function(e,t){m(e,t.from)}),check:h(f),consume:function(e){eM(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,g()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(f,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,g()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let o,s=e[r];if("string"==typeof s)o=s;else switch(s){case -5:o="\r";break;case -4:o="\n";break;case -3:o="\r\n";break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(s)}n=-2===s,i.push(o)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(s=ek(s,e),function(){let e;for(;r._index<s.length;){let n=s[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==s[s.length-1])?[]:(m(t,0),c.events=e2(o,c.events,c),c.events)}},u=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function d(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;if(r===o)n=[e[r].slice(i,s)];else{if(n=e.slice(r,o),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:o}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:o}}function f(e,t){t.restore()}function h(e,t){return function(n,i,o){var s;let u,d,f,h;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):(s=n,function(e){let t=null!==e&&s[e],n=null!==e&&s.null;return m([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function m(e){return(u=e,d=0,0===e.length)?o:x(e[d])}function x(e){return function(n){let i,o,s,u,d;return(i=p(),o=c.previous,s=c.currentConstruct,u=c.events.length,d=Array.from(a),h={from:u,restore:function(){r=i,c.previous=o,c.currentConstruct=s,c.events.length=u,a=d,g()}},f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,v,y)(n)}}function v(t){return e(f,h),i}function y(e){return(h.restore(),++d<u.length)?x(u[d]):o}}}function m(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&ew(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function g(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(i).document().write((s=1,a="",l=!0,function(e,t,n){let r,i,c,u,d,p=[];for(e=a+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,a="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(tC.lastIndex=c,u=(r=tC.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){a=e.slice(c);break}if(10===d&&c===u&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),c<u&&(p.push(e.slice(c,u)),s+=u-c),d){case 0:p.push(65533),s++;break;case 9:for(i=4*Math.ceil(s/4),p.push(-2);s++<i;)p.push(-1);break;case 10:p.push(-4),s=1;break;default:o=!0,s=1}c=u+1}return n&&(o&&p.push(-5),a&&p.push(a),p.push(null)),p})(n,r,!0))))}}e.s(["default",0,t_],713059);let{defineProperty:tO}=Object,tD="object"==typeof self?self:globalThis,tF=(e,t)=>
106{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+e)}return new tD[e](t)},t$=e=>{var t;let n,r;return(t=new Map,n=(e,n)=>(t.set(n,e),e),r=i=>{if(t.has(i))return t.get(i);let[o,s]=e[i];switch(o){case 0:case -1:return n(s,i);case 1:{let e=n([],i);for(let t of s)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of s){let i=r(t),o=r(n);"__proto__"===i?tO(e,i,{value:o,configurable:!0,enumerable:!0,writable:!0}):e[i]=o}return e}case 3:return n(new Date(s),i);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of s)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of s)e.add(r(t));return e}case 7:{let{name:e,message:t}=s;return n("function"==typeof tD[e]?tF(e,t):Error(t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}case"-0":return -0}return n(tF(o,s),i)})(0)},{toString:tz}={},{keys:tV,is:tB}=Object,tH=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=tz.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:e instanceof Error?[7,e.name||"Error"]:[2,n]},tU=([e,t])=>0===e&&("function"===t||"symbol"===t),tW=(e,{json:t,lossy:n}={})=>{var r,i,o;let s,a,l=[];return(r=!(t||n),i=!!t,o=new Map,s=(e,t)=>{let n=l.push(e)-1;return o.set(t,n),n},a=e=>{if(o.has(e))return o.get(e);let[t,n]=tH(e);switch(t){case 0:{let i=e;switch(n){case"bigint":t=8,i=e.toString();break;case"number":if(!e&&tB(e,-0))return l.push(["-0"])-1;break;case"function":case"symbol":if(r)throw TypeError("unable to serialize "+n);i=null;break;case"undefined":return s([-1],e)}return s([t,i],e)}case 1:{if(n){let t=e;return"DataView"===n?t=new Uint8Array(e.buffer):"ArrayBuffer"===n&&(t=new Uint8Array(e)),s([n,[...t]],e)}let r=[],i=s([t,r],e);for(let t of e)r.push(a(t));return i}case 2:{if(n)switch(n){case"BigInt":return s([n,e.toString()],e);case"Boolean":case"Number":case"String":return s([n,e.valueOf()],e)}if(i&&"toJSON"in e)return a(e.toJSON());let o=[],l=s([t,o],e);for(let t of tV(e))(r||!tU(tH(e[t])))&&o.push([a(t),a(e[t])]);return l}case 3:return s([t,isNaN(e.getTime())?"":e.toISOString()],e);case 4:{let{source:n,flags:r}=e;return s([t,{source:n,flags:r}],e)}case 5:{let n=[],i=s([t,n],e);for(let[t,i]of e)(r||!(tU(tH(t))||tU(tH(i))))&&n.push([a(t),a(i)]);return i}case 6:{let n=[],i=s([t,n],e);for(let t of e)(r||!tU(tH(t)))&&n.push(a(t));return i}}let{message:c}=e;return s([t,{name:n,message:c}],e)})(e),l},tG="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?t$(tW(e,t)):structuredClone(e):(e,t)=>t$(tW(e,t));function tq(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let o=e.charCodeAt(n),s="";if(37===o&&eN(e.charCodeAt(n+1))&&eN(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function tK(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function tY(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}e.s(["default",0,tG],807432);let tJ=function(e){var t,n;if(null==e)return tZ;if("function"==typeof e)return tX(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=tJ(e[n]);return tX(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,tX(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,tX(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function tX(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function tZ(){return!0}let tQ=[];function t0(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let o=tJ(i),s=r?-1:1;(function e(i,a,l){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return u;function u(){var c;let u,d,p,f=tQ;if((!t||o(i,a,l[l.length-1]||void 0))&&!1===(f=Array.isArray(c=n(i,l))?c:"number"==typeof c?[!0,c]:null==c?tQ:[c])[0])return f;if("children"in i&&i.children&&i.children&&"skip"!==f[0])for(d=(r?i.children.length:-1)+s,p=l.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,p)())[0])return u;d="number"==typeof u[1]?u[1]:d+s}return f}})(e,void 0,[])()}function t1(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),t0(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},i)}function t2(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});let s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function t5(e){let t=e.spread;return null==t?e.children.length>1:t}function t4(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let t3={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
106,footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=tq(i.toLowerCase()),s=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=s+1,a+=1,e.footnoteCounts.set(i,a);let l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t2(e,t);let i={src:tq(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:tq(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return t2(e,t);let i={href:tq(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:tq(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=t5(n[r])}return t}(n):t5(t),o={},s=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}let l=r[r.length-1];l&&(i||"element"!==l.type||"p"!==l.tagName)&&s.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=K(t.children[1]),s=q(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}let o={type:"element",tagName:"table",properties:{}
106,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,a=-1,l=[];for(;++a<s;){let n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,o=[];for(;r;)o.push(t4(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(t4(t.slice(i),i>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:t6,yaml:t6,definition:t6,footnoteDefinition:t6};function t6(){}let t8={}.hasOwnProperty,t7={};function t9(e,t){e.position&&(t.position=J(e))}function ne(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,tG(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nt(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nn(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nr(e,n){let r,i,o,s,a=(r=n||t7,i=new Map,o=new Map,s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=s.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nn(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nn(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:ne,definitionById:i,footnoteById:o,footnoteCounts:new Map,footnoteOrder:[],handlers:{...t3,...r.handlers},one:function(e,t){let n=e.type,r=s.handlers[n];if(t8.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=tG(n);return r.children=s.all(e),r}return tG(e)}return(s.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(t8.call(n,"hProperties")||t8.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(s,e,t)},options:r,patch:t9,wrap:nt},t1(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:o,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s),l=a.one(e,void 0),c=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tK,r=e.options.footnoteBackLabel||tY,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[l]);if(!i)continue;let o=e.all(i),s=String(i.identifier).toUpperCase(),c=tq(s.toLowerCase()),u=0,d=[],p=e.footnoteCounts.get(s);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let f=o[o.length-1];if(f&&"element"===f.type&&"p"===f.tagName){let e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else o.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...tG(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
106,{type:"text",value:"\n"}]}}(a),u=Array.isArray(l)?{type:"root",children:l}:l||{type:"root",children:[]};return c&&(t(),u.children.push({type:"text",value:"\n"},c)),u}function ni(e,t){return e&&"run"in e?async function(n,r){let i=nr(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nr(n,{file:r,...e||t})}}function no(e){if(e)throw e}e.s(["toHast",0,nr],177927);var ns=e.i(104100);function na(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nl=function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');np(e);let r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)},nc=function(e){let t;if(np(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},nu=function(e){let t;np(e);let n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1)}return o<0||r<0||0===s||1===s&&o===r-1&&o===i+1?"":e.slice(o,r)},nd=function(...e){var t;let n,r,i,o=-1;for(;++o<e.length;
106)np(e[o]),e[o]&&(i=void 0===i?e[o]:i+"/"+e[o]);return void 0===i?".":(np(t=i),n=47===t.codePointAt(0),0!==(r=function(e,t){let n,r,i="",o=0,s=-1,a=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else if(47===n)break;else n=47;if(47===n){if(s===l-1||1===a);else if(s!==l-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(t,!n)).length||n||(r="."),r.length>0&&47===t.codePointAt(t.length-1)&&(r+="/"),n?"/"+r:r)};function np(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}function nf(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let nh=["history","path","basename","stem","extname","dirname"];class nm{constructor(e){let t,n;t=e?nf(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":"/",this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nh.length;){const e=nh[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nh.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nl(this.path):void 0}set basename(e){nx(e,"basename"),ng(e,"basename"),this.path=nd(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nc(this.path):void 0}set dirname(e){nv(this.basename,"dirname"),this.path=nd(e||"",this.basename)}get extname(){return"string"==typeof this.path?nu(this.path):void 0}set extname(e){if(ng(e,"extname"),nv(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nd(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nf(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!nf(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),nx(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nl(this.path,this.extname):void 0}set stem(e){nx(e,"stem"),ng(e,"stem"),this.path=nd(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new et(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ng(e,t){if(e&&e.includes("/"))throw Error("`"+t+"` cannot be a path: did not expect `/`")}function nx(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nv(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let ny=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nb={}.hasOwnProperty,nw=new class e extends ny{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(o,...s){let a=e[++n],l=-1;if(o)return void r(o);for(;++l<t.length;)(null===s[l]||void 0===s[l])&&(s[l]=t[l]);t=s,a?(function(e,t){let n;return function(...t){let o,s=e.length>t.length;
106s&&t.push(r);try{o=e.apply(this,t)}catch(e){if(s&&n)throw e;return r(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(i,r):o instanceof Error?r(o):i(o))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...s):r(null,...s)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,ns.default)(!0,{},this.namespace)),t}data(e,t){return"string"==typeof e?2==arguments.length?(nS("data",this.frozen),this.namespace[e]=t,this):nb.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nS("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=nC(e),n=this.parser||this.Parser;return nk("parse",n),n(String(t),t)}process(e,n){let r=this;return this.freeze(),nk("process",this.parser||this.Parser),nj("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(i,o){let s=nC(e),a=r.parse(s);function l(e,r){e||!r?o(e):i?i(r):(t(),n(void 0,r))}r.run(a,s,function(e,t,n){var i,o;if(e||!t||!n)return l(e);let s=r.stringify(t,n);"string"==typeof(i=s)||(o=i)&&"object"==typeof o&&"byteLength"in o&&"byteOffset"in o?n.value=s:n.result=s,l(e,n)})}}processSync(e){let n,r=!1;return this.freeze(),nk("processSync",this.parser||this.Parser),nj("processSync",this.compiler||this.Compiler),this.process(e,function(e,t){r=!0,no(e),n=t}),nN("processSync","process",r),t(),n}run(e,n,r){nE(e),this.freeze();let i=this.transformers;return r||"function"!=typeof n||(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(o,s){t();let a=nC(n);i.run(e,a,function(n,i,a){let l=i||e;n?s(n):o?o(l):(t(),r(void 0,l,a))})}}runSync(e,n){let r,i=!1;return this.run(e,n,function(e,t){no(e),r=t,i=!0}),nN("runSync","run",i),t(),r}stringify(e,t){this.freeze();let n=nC(t),r=this.compiler||this.Compiler;return nj("stringify",r),nE(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nS("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,ns.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)s(e,[]);else if("object"==typeof e)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else i(e);else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t,s=n[i][1];na(s)&&na(r)&&(r=(0,ns.default)(!0,s,r)),n[i]=[e,r,...o]}}}}().freeze();function nk(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nj(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nS(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nE(e){if(!na(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nN(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nC(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new nm(e)}e.s(["unified",0,nw],175765);let nP=[],nT={allowDangerousHtml:!0},nA=/^(https?|ircs?|mailto|xmpp)$/i,nI=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function nM(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||nA.test(e.slice(0,t))?e:""}function nL(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}e.s(["default",0,function(e){var t;let r,i,o,s,a,l=(r=(t=e).rehypePlugins||nP,i=t.remarkPlugins||nP,o=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...nT}:nT,nw().use(t_).use(i).use(ni,o).use(r)),c=(s=e.children||"",a=new nm,"string"==typeof s?a.value=s:n(),a);return function(e,t){let r=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,a=t.skipHtml,l=t.unwrapDisallowed,c=t.urlTransform||nM;for(let e of nI)Object.hasOwn(t,e.from)&&n((e.from,e.to&&e.to,e.id));return r&&s&&n(),t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]}),t1(e,function(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in em)if(Object.hasOwn(em,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=em[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&i&&"number"==typeof t&&(o=!i(e,t,n)),o&&n&&"number"==typeof t)return l&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}),function(e,t){var n,r,i,o;let s;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,s=function(e,t,i,o){let s=Array.isArray(i.children),a=K(e);return r(t,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
106if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,o=t.jsxs,s=function(e,t,n,r){let s=Array.isArray(n.children)?o:i;return r?s(t,n,r):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:s,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?U:H,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},c=el(l,e,void 0);return c&&"string"!=typeof c?c:l.create(e,l.Fragment,{children:c||void 0},void 0)}(e,{Fragment:eg.Fragment,components:o,ignoreInvalidStyle:!0,jsx:eg.jsx,jsxs:eg.jsxs,passKeys:!0,passNode:!0})}(l.runSync(l.parse(c),c),e)}],918789),e.s(["ccount",0,nL],496481);let nR="phrasing",n_=["autolink","link","image","label"];function nO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function nD(e){this.config.enter.autolinkProtocol.call(this,e)}function nF(e){this.config.exit.autolinkProtocol.call(this,e)}function n$(e){this.config.exit.data.call(this,e);let n=this.stack[this.stack.length-1];t(n.type),n.url="http://"+this.sliceSerialize(e)}function nz(e){this.config.exit.autolinkEmail.call(this,e)}function nV(e){this.exit(e)}function nB(e){!function(e,t,n){let r=tJ((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<i.length;)t0(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){let e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[o][0],s=i[o][1],a=0,l=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},o=s(...d,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?u.push(...o):o&&u.push(o),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(l,1,...u)):u=[e],l+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,nH],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,nU]],{ignore:["link","linkReference"]})}function nH(e,t,n,r,i){let o,s="";if(!nW(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",s="http://"),(o=n.split(".")).length<2||o[o.length-1]&&(/_/.test(o[o.length-1])||!/[a-zA-Z\d]/.test(o[o.length-1]))||o[o.length-2]&&(/_/.test(o[o.length-2])||!/[a-zA-Z\d]/.test(o[o.length-2])))return!1;let a=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=nL(e,"("),o=nL(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),o++;return[e,n]}(n+r);if(!a[0])return!1;let l={type:"link",title:null,url:s+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[l,{type:"text",value:a[1]}]:l}function nU(e,t,n,r){return!(!nW(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function nW(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||eO(n)||e_(n))&&(!t||47!==n)}function nG(){this.buffer()}function nq(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nK(){this.buffer()}function nY(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function nJ(e){let n=this.resume(),r=this.stack[this.stack.length-1];t(r.type),r.identifier=tl(this.sliceSerialize(e)).toLowerCase(),r.label=n}function nX(e){this.exit(e)}function nZ(e){let n=this.resume(),r=this.stack[this.stack.length-1];t(r.type),r.identifier=tl(this.sliceSerialize(e)).toLowerCase(),r.label=n}function nQ(e){this.exit(e)}function n0(e,t,n,r){let i=n.createTracker(r),o=i.move("[^"),s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]")}function n1(e,t,n){return 0===t?e:n2(e,t,n)}function n2(e,t,n){return(n?"":"    ")+e}n0.peek=function(){return"["};let n5=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function n4(e){this.enter({type:"delete",children:[]},e)}function n3(e){this.exit(e)}function n6(e,t,n,r){let i=n.createTracker(r),o=n.enter("strikethrough"),s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function n8(e){return e.length}function n7(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:114*(82===t||114===t)}function n9(e,t,n){return">"+(n?"":" ")+e}function re(e,t){return rt(e,t.inConstruct,!0)&&!rt(e,t.notInConstruct,!1)}function rt(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function rn(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&re(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function rr(e,t){return!!(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ri(e,t,n){return(n?"":"    ")+e}function ro(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function rs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ra(e,t,n){let r=e1(e),i=e1(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function rl(e,t,n,r){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i),l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()})),c=l.charCodeAt(0),u=ra(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=rs(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=ra(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+rs(d));let f=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+f}function rc(e,t){let n=!1;return t1(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,!1}),!!((!e.depth||e.depth<3)&&ev(e)&&(t.options.setext||n))}function ru(e){return e.value||""}function rd(e,t,n,r){let i=ro(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image"),a=n.enter("label"),l=n.createTracker(r),c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function rp(e,t,n,r){let i=e.referenceType,o=n.enter("imageReference"),s=n.enter("label"),a=n.createTracker(r),l=a.move("!["),c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();let u=n.stack;n.stack=[],s=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function rf(e,t,n){let r=e.value||"",i="`",o=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){let e,t=n.unsafe[o],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}function rh(e,t){let n=ev(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function rm(e,t,n,r){let i,o,s=ro(n),a='"'===s?"Quote":"Apostrophe",l=n.createTracker(r);if(rh(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=l.move("<");return r+=l.move(n.containerPhrasing(e,{before:r,after:">",...l.current()})),r+=l.move(">"),i(),n.stack=t,r}i=n.enter("link"),o=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(o=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),c+=l.move(" "+s),c+=l.move(n.safe(e.title,{before:c,after:s,...l.current()})),c+=l.move(s),o()),c+=l.move(")"),i(),c}function rg(e,t,n,r){let i=e.referenceType,o=n.enter("linkReference"),s=n.enter("label"),a=n.createTracker(r),l=a.move("["),c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();let u=n.stack;n.stack=[],s=n.enter("reference");let d=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,o(),"full"!==i&&c&&c===d?"shortcut"===i?l=l.slice(0,-1):l+=a.move("]"):l+=a.move(d+"]"),l}function rx(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function rv(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}n6.peek=function(){return"~"},e.s(["patternInScope",0,re],454751),e.s(["formatCodeAsIndented",0,rr],432066),e.s(["encodeCharacterReference",0,rs],177049),rl.peek=function(e,t,n){return n.options.emphasis||"*"},e.s(["formatHeadingAsSetext",0,rc],586281),ru.peek=function(){return"<"},rd.peek=function(){return"!"},rp.peek=function(){return"!"},rf.peek=function(){return"`"},rm.peek=function(e,t,n){return rh(e,n)?"<":"["},rg.peek=function(){return"["};let ry=tJ(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rb(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i),l=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()})),c=l.charCodeAt(0),u=ra(r.before.charCodeAt(r.before.length-1),c,i);u.inside&&(l=rs(c)+l.slice(1));let d=l.charCodeAt(l.length-1),p=ra(r.after.charCodeAt(0),d,i);p.inside&&(l=l.slice(0,-1)+rs(d));let f=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},a+l+f}rb.peek=function(e,t,n){return n.options.strong||"*"};let rw={blockquote:function(e,t,n,r){let i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);let s=n.indentLines(n.containerFlow(e,o.current()),n9);return i(),s},break:rn,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";
106if(rr(e,n)){let e=n.enter("codeIndented"),t=n.indentLines(o,ri);return e(),t}let a=n.createTracker(r),l=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),c=n.enter("codeFenced"),u=a.move(l);if(e.lang){let t=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...a.current()})),t()}return u+=a.move("\n"),o&&(u+=a.move(o+"\n")),u+=a.move(l),c(),u},definition:function(e,t,n,r){let i=ro(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition"),a=n.enter("label"),l=n.createTracker(r),c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),s(),c},emphasis:rl,hardBreak:rn,heading:function(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(rc(e,n)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}let s="#".repeat(i),a=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(c)&&(c=rs(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c},html:ru,image:rd,imageReference:rp,inlineCode:rf,link:rm,linkReference:rg,list:function(e,t,n,r){let i=n.enter("list"),o=n.bulletCurrent,s=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):rx(n),a=e.ordered?"."===s?")":".":function(e){let t=rx(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),l=!!t&&!!n.bulletLastUsed&&s===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),rv(n)===s&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;let c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),c},listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||rx(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?o:o+" ".repeat(s-o.length))+e});return l(),c},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some(function(e){return ry(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:rb,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(rv(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function rk(e){let n=e._align;t(),this.enter({type:"table",align:n.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rj(e){this.exit(e),this.data.inTable=void 0}function rS(e){this.enter({type:"tableRow",children:[]},e)}function rE(e){this.exit(e)}function rN(e){this.enter({type:"tableCell",children:[]},e)}function rC(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,rP));let r=this.stack[this.stack.length-1];t(r.type),r.value=n,this.exit(e)}function rP(e,t){return"|"===t?t:e}function rT(e){let n=this.stack[this.stack.length-2];t(n.type),n.checked="taskListCheckValueChecked"===e.type}function rA(e){let n=this.stack[this.stack.length-2];if(n&&"listItem"===n.type&&"boolean"==typeof n.checked){let e=this.stack[this.stack.length-1];t(e.type);let r=e.children[0];if(r&&"text"===r.type){let t,i=n.children,o=-1;for(;++o<i.length;){let e=i[o];if("paragraph"===e.type){t=e;break}}t===e&&(r.value=r.value.slice(1),0===r.value.length?e.children.shift():e.position&&r.position&&"number"==typeof r.position.start.offset&&(r.position.start.column++,r.position.start.offset++,e.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function rI(e,t,n,r){let i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let l=rw.listItem(e,t,n,{...r,...a.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),l}e.s(["handle",0,rw],583664);let rM={tokenize:function(e,t,n){let r=0;return function t(o){return(87===o||119===o)&&r<3?(r++,e.consume(o),t):46===o&&3===r?(e.consume(o),i):n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},rL={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(r_,l,a)(t):null===t||eL(t)||eO(t)||45!==t&&e_(t)?l(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},rR={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(r_,t,o)(s):null===s||eL(s)||eO(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},r_={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||eL(s)||eO(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||eL(e)||eO(e)?t(e):r(e)}function o(t){return eE(t)?function t(i){return 59===i?(e.consume(i),r):eE(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rO={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eN(e)?n(e):t(e)}},partial:!0},rD={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rB.call(r,r.previous)||rG(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rM,e.attempt(rL,e.attempt(rR,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rB},rF={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",o=!1;return function(t){return(72===t||104===t)&&rH.call(r,r.previous)&&!rG(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if(eE(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o)?l:(o=!0,a):n(t)}function l(t){return null===t||eP(t)||eL(t)||eO(t)||e_(t)?n(t):e.attempt(rL,e.attempt(rR,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rH},r$={name:"emailAutolink",tokenize:function(e,t,n){let r,i,o=this;return function(t){return!rW(t)||!rU.call(o,o.previous)||rG(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rW(r)?(e.consume(r),t):64===r?(e.consume(r),s):n(r)}(t))};function s(t){return 46===t?e.check(rO,l,a)(t):45===t||95===t||eN(t)?(i=!0,e.consume(t),s):l(t)}function a(t){return e.consume(t),r=!0,s}function l(s){return i&&r&&eE(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:rU},rz={},rV=48;for(;rV<123;)rz[rV]=r$,58==++rV?rV=65:91===rV&&(rV=97);function rB(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||eL(e)}function rH(e){return!eE(e)}function rU(e){return!(47===e||rW(e))}function rW(e){return 43===e||45===e||46===e||95===e||eN(e)}function rG(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rz[43]=r$,rz[45]=r$,rz[46]=r$,rz[95]=r$,rz[72]=[r$,rF],rz[104]=[r$,rF],rz[87]=[r$,rD],rz[119]=[r$,rD];let rq={tokenize:function(e,t,n){let r=this;return eF(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function rK(e,t,n){let r,i=this,o=i.events.length,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;o--;){let e=i.events[o][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}
106return function(o){if(!r||!r._balanced)return n(o);let a=tl(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&s.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function rY(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function rJ(e,t,n){let r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!r||null===a||91===a||eL(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return o.includes(tl(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return eL(a)||(r=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function rX(e,t,n){let r,i,o=this,s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!i||null===t||91===t||eL(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tl(o.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return eL(t)||(i=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s.includes(r)||s.push(r),eF(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function rZ(e,t,n){return e.check(eB,t,e.attempt(rq,t,n))}function rQ(e){e.exit("gfmFootnoteDefinition")}class r0{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function r1(e,t,n){let r,i=this,o=0,s=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,o="tableHead"===r||"tableRow"===r?v:a;return o===v&&i.parser.lazy[i.now().line]?n(e):o(e)};function a(t){var n;return e.enter("tableHead"),e.enter("tableRow"),124===(n=t)||(r=!0,s+=1),l(n)}function l(t){return null===t?n(t):eM(t)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):eR(t)?eF(e,l,"whitespace")(t):(s+=1,r&&(r=!1,o+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l):(e.enter("data"),c(t))}function c(t){return null===t||124===t||eL(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,eR(t))?eF(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):n(t)}function f(t){return eR(t)?eF(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(s+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||eM(t)?x(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(n))}(t)):n(t)}function g(t){return eR(t)?eF(e,x,"whitespace")(t):x(t)}function x(i){if(124===i)return p(i);if(null===i||eM(i))return r&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i);return n(i)}function v(t){return e.enter("tableRow"),y(t)}function y(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),y):null===n||eM(n)?(e.exit("tableRow"),t(n)):eR(n)?eF(e,y,"whitespace")(n):(e.enter("data"),b(n))}function b(t){return null===t||124===t||eL(t)?(e.exit("data"),y(t)):(e.consume(t),92===t?w:b)}function w(t){return 92===t||124===t?(e.consume(t),b):b(t)}}function r2(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new r0;for(;++o<e.length;){let f=e[o],h=f[1];"enter"===f[0]?"tableHead"===h.type?(u=!1,0!==d&&(r4(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(o,0,[["enter",n,t]])):"tableRow"===h.type||"tableDelimiterRow"===h.type?(s=!0,i=void 0,l=[0,0,0,0],c=[0,o+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===h.type?2:r?3:1):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)?(s=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],i=r5(p,t,l,a,void 0,i),l=[0,0,0,0]),c[2]=o)):"tableCellDivider"===h.type&&(s?s=!1:(0!==l[1]&&(c[0]=c[1],i=r5(p,t,l,a,void 0,i)),c=[(l=c)[1],o,0,0])):"tableHead"===h.type?(u=!0,d=o):"tableRow"===h.type||"tableDelimiterRow"===h.type?(d=o,0!==l[1]?(c[0]=c[1],i=r5(p,t,l,a,o,i)):0!==c[1]&&(i=r5(p,t,c,a,o,i)),a=0):a&&("data"===h.type||"tableDelimiterMarker"===h.type||"tableDelimiterFiller"===h.type)&&(c[3]=o)}for(0!==d&&r4(p,t,d,n,r),p.consume(t.events),o=-1;++o<t.events.length;){let e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left"
106:"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,o))}return e}function r5(e,t,n,r,i,o){0!==n[0]&&(o.end=Object.assign({},r3(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let s=r3(t.events,n[1]);if(o={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let i=r3(t.events,n[2]),o=r3(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},r3(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function r4(e,t,n,r,i){let o=[],s=r3(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function r3(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let r6={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return eL(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return eM(r)?t(r):eR(r)?e.check({tokenize:r8},t,n)(r):n(r)}}};function r8(e,t,n){return eF(e,function(e){return null===e?n(e):t(e)},"whitespace")}let r7={};function r9(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r)}else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(r&&(r+=" "),r+=t);return r}e.s(["default",0,function(e){let t,n,r,i=e||r7,o=this.data(),s=o.micromarkExtensions||(o.micromarkExtensions=[]),a=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);s.push(eS([{text:rz},{document:{91:{name:"gfmFootnoteDefinition",tokenize:rX,continuation:{tokenize:rZ},exit:rQ}},text:{91:{name:"gfmFootnoteCall",tokenize:rJ},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:rK,resolveTo:rY}}},(t=(i||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,o=this.events,s=0;return function(a){return 126===i&&"characterEscape"!==o[o.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function o(a){let l=e1(i);if(126===a)return s>1?r(a):(e.consume(a),s++,o);if(s<2&&!t)return r(a);let c=e.exit("strikethroughSequenceTemporary"),u=e1(a);return c._open=!u||2===u&&!!l,c._close=!l||2===l&&!!u,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&ew(s,s.length,0,e2(a,e.slice(r+1,n),t)),ew(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),ew(e,r-1,n-r+3,s),n=r+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}},null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}),{flow:{null:{name:"table",tokenize:r1,resolveAll:r2}}},{text:{91:r6}}])),a.push([{transforms:[nB],enter:{literalAutolink:nO,literalAutolinkEmail:nD,literalAutolinkHttp:nD,literalAutolinkWww:nD},exit:{literalAutolink:nV,literalAutolinkEmail:nz,literalAutolinkHttp:nF,literalAutolinkWww:n$}}
106,{enter:{gfmFootnoteCallString:nG,gfmFootnoteCall:nq,gfmFootnoteDefinitionLabelString:nK,gfmFootnoteDefinition:nY},exit:{gfmFootnoteCallString:nJ,gfmFootnoteCall:nX,gfmFootnoteDefinitionLabelString:nZ,gfmFootnoteDefinition:nQ}},{canContainEols:["delete"],enter:{strikethrough:n4},exit:{strikethrough:n3}},{enter:{table:rk,tableData:rN,tableHeader:rN,tableRow:rS},exit:{codeText:rC,table:rj,tableData:rE,tableHeader:rE,tableRow:rE}},{exit:{taskListCheckValueChecked:rT,taskListCheckValueUnchecked:rT,paragraph:rA}}]),l.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:nR,notInConstruct:n_},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:nR,notInConstruct:n_},{character:":",before:"[ps]",after:"\\/",inConstruct:nR,notInConstruct:n_}]},(r=!1,i&&i.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:function(e,t,n,i){let o=n.createTracker(i),s=o.move("[^"),a=n.enter("footnoteDefinition"),l=n.enter("label");return s+=o.move(n.safe(n.associationId(e),{before:s,after:"]"})),l(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((r?"\n":" ")+n.indentLines(n.containerFlow(e,o.current()),r?n2:n1))),a(),s},footnoteReference:n0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:n5}],handlers:{delete:n6}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rw.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,o=[],s=t.enter("table");for(;++i<r.length;)o[i]=l(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){let i=a([l(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){let i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||n8,o=[],s=[],a=[],l=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],o=-1;for(e[u].length>c&&(c=e[u].length);++o<e[u].length;){var d;let s=null==(d=e[u][o])?"":String(d);if(!1!==n.alignDelimiters){let e=i(s);r[o]=e,(void 0===l[o]||e>l[o])&&(l[o]=e)}t.push(s)}s[u]=t,a[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)o[p]=n7(r[p]);else{let e=n7(r);for(;++p<c;)o[p]=e}p=-1;let f=[],h=[];for(;++p<c;){let e=o[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,l[p]-t.length-r.length),s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>l[p]&&(l[p]=i),h[p]=i),f[p]=s}s.splice(1,0,f),a.splice(1,0,h),u=-1;let m=[];for(;++u<s.length;){let e=s[u],t=a[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",s="",a="";if(!1!==n.alignDelimiters){let e=l[p]-(t[p]||0),n=o[p];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=s=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&(!1!==n.alignDelimiters||""!==i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function l(e,t,n){let r=e.children,i=-1,o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],e,t,n);return a(),o}}(i),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rI}}]})}],742531),e.s(["clsx",0,r9,"default",0,r9],207670);let ie=(e,t)=>{if(0===e.length)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?ie(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;let o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},it=/^\[(.+)\]$/,ir=(e,t,n,r)=>
106{e.forEach(e=>{if("string"==typeof e){(""===e?t:ii(t,e)).classGroupId=n;return}"function"==typeof e?io(e)?ir(e(r),t,n,r):t.validators.push({validator:e,classGroupId:n}):Object.entries(e).forEach(([e,i])=>{ir(i,ii(t,e),n,r)})})},ii=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},io=e=>e.isThemeGetter,is=/\s+/;function ia(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=il(e))&&(r&&(r+=" "),r+=t);return r}let il=e=>{let t;if("string"==typeof e)return e;let n="";for(let r=0;r<e.length;r++)e[r]&&(t=il(e[r]))&&(n&&(n+=" "),n+=t);return n},ic=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},iu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,id=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ip=/^\d+\/\d+$/,ih=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,im=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ig=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ix=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iv=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,iy=e=>ip.test(e),ib=e=>!!e&&!Number.isNaN(Number(e)),iw=e=>!!e&&Number.isInteger(Number(e)),ik=e=>e.endsWith("%")&&ib(e.slice(0,-1)),ij=e=>ih.test(e),iS=()=>!0,iE=e=>im.test(e)&&!ig.test(e),iN=()=>!1,iC=e=>ix.test(e),iP=e=>iv.test(e),iT=e=>!iI(e)&&!iD(e),iA=e=>iU(e,iK,iN),iI=e=>iu.test(e),iM=e=>iU(e,iY,iE),iL=e=>iU(e,iJ,ib),iR=e=>iU(e,iG,iN),i_=e=>iU(e,iq,iP),iO=e=>iU(e,iZ,iC),iD=e=>id.test(e),iF=e=>iW(e,iY),i$=e=>iW(e,iX),iz=e=>iW(e,iG),iV=e=>iW(e,iK),iB=e=>iW(e,iq),iH=e=>iW(e,iZ,!0),iU=(e,t,n)=>{let r=iu.exec(e);return!!r&&(r[1]?t(r[1]):n(r[2]))},iW=(e,t,n=!1)=>{let r=id.exec(e);return!!r&&(r[1]?t(r[1]):n)},iG=e=>"position"===e||"percentage"===e,iq=e=>"image"===e||"url"===e,iK=e=>"length"===e||"size"===e||"bg-size"===e,iY=e=>"length"===e,iJ=e=>"number"===e,iX=e=>"family-name"===e,iZ=e=>"shadow"===e,iQ=function(e){let t,n,r,i=function(s){var a;let l;return n=(t={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map,i=(i,o)=>{n.set(i,o),++t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(i(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}})((a=[].reduce((e,t)=>t(e),e())).cacheSize),parseClassName:(e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t,n,r=[],i=0,o=0,s=0;for(let t=0;t<e.length;t++){let a=e[t];if(0===i&&0===o){if(":"===a){r.push(e.slice(s,t)),s=t+1;continue}if("/"===a){n=t;continue}}"["===a?i++:"]"===a?i--:"("===a?o++:")"===a&&o--}let a=0===r.length?e:e.substring(s),l=(t=a).endsWith("!")?t.substring(0,t.length-1):t.startsWith("!")?t.substring(1):t;return{modifiers:r,hasImportantModifier:l!==a,baseClassName:l,maybePostfixModifierPosition:n&&n>s?n-s:void 0}};if(t){let e=t+":",n=r;r=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r})(a),sortModifiers:(l=Object.fromEntries(a.orderSensitiveModifiers.map(e=>[e,!0])),e=>{if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]||l[e]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t}),...(e=>{let t=(e=>{let{theme:t,classGroups:n}=e,r={nextPart:new Map,validators:[]};for(let e in n)ir(n[e],r,e,t);return r})(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ie(n,t)||(e=>{if(it.test(e)){let t=it.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}})(e)},getConflictingClassGroupIds:(e,t)=>{let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}}})(a)}).cache.get,r=t.cache.set,i=o,o(s)};function o(e){let i=n(e);if(i)return i;let o=((e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:o}=t,s=[],a=e.trim().split(is),l="";for(let e=a.length-1;e>=0;e-=1){let t=a[e],{isExternal:c,modifiers:u,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:f}=n(t);if(c){l=t+(l.length>0?" "+l:l);continue}let h=!!f,m=r(h?p.substring(0,f):p);if(!m){if(!h||!(m=r(p))){l=t+(l.length>0?" "+l:l);continue}h=!1}let g=o(u).join(":"),x=d?g+"!":g,v=x+m;if(s.includes(v))continue;s.push(v);let y=i(m,h);for(let e=0;e<y.length;++e){let t=y[e];s.push(x+t)}l=t+(l.length>0?" "+l:l)}return l})(e,t);return r(e,o),o}return function(){return i(ia.apply(null,arguments))}}(()=>{let e=ic("color"),t=ic("font"),n=ic("text"),r=ic("font-weight"),i=ic("tracking"),o=ic("leading"),s=ic("breakpoint"),a=ic("container"),l=ic("spacing"),c=ic("radius"),u=ic("shadow"),d=ic("inset-shadow"),p=ic("text-shadow"),f=ic("drop-shadow"),h=ic("blur"),m=ic("perspective"),g=ic("aspect"),x=ic("ease"),v=ic("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...b(),iD,iI],k=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto","contain","none"],S=()=>[iD,iI,l],E=()=>[iy,"full","auto",...S()],N=()=>[iw,"none","subgrid",iD,iI],C=()=>["auto",{span:["full",iw,iD,iI]},iw,iD,iI],P=()=>[iw,"auto",iD,iI],T=()=>["auto","min","max","fr",iD,iI],A=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...S()],L=()=>[iy,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...S()],R=()=>[e,iD,iI],_=()=>[...b(),iz,iR,{position:[iD,iI]}],O=()=>["no-repeat",{repeat:["","x","y","space","round"]}],D=()=>["auto","cover","contain",iV,iA,{size:[iD,iI]}],F=()=>[ik,iF,iM],$=()=>["","none","full",c,iD,iI],z=()=>["",ib,iF,iM],V=()=>["solid","dashed","dotted","double"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[ib,ik,iz,iR],U=()=>["","none",h,iD,iI],W=()=>["none",ib,iD,iI],G=()=>["none",ib,iD,iI],q=()=>[ib,iD,iI],K=()=>[iy,"full",...S()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ij],breakpoint:[ij],c
vendor: 6,083 bytes, line 106
106olor:[iS],container:[ij],"drop-shadow":[ij],ease:["in","out","in-out"],font:[iT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ij],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ij],shadow:[ij],spacing:["px",ib],text:[ij],"text-shadow":[ij],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",iy,iI,iD,g]}],container:["container"],columns:[{columns:[ib,iI,iD,a]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{start:E()}],end:[{end:E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:["visible","invisible","collapse"],z:[{z:[iw,"auto",iD,iI]}],basis:[{basis:[iy,"full","auto",a,...S()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ib,iy,"auto","initial","none",iI]}],grow:[{grow:["",ib,iD,iI]}],shrink:[{shrink:["",ib,iD,iI]}],order:[{order:[iw,"first","last","none",iD,iI]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:C()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:C()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":T()}],"auto-rows":[{"auto-rows":T()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...A(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...A()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":S()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":S()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[a,"screen",...L()]}],"min-w":[{"min-w":[a,"screen","none",...L()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",n,iF,iM]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,iD,iL]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ik,iI]}],"font-family":[{font:[i$,iI,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,iD,iI]}],"line-clamp":[{"line-clamp":[ib,"none",iD,iL]}],leading:[{leading:[o,...S()]}],"list-image":[{"list-image":["none",iD,iI]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",iD,iI]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...V(),"wavy"]}],"text-decoration-thickness":[{decoration:[ib,"from-font","auto",iD,iM]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[ib,"auto",iD,iI]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:S()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",iD,iI]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",iD,iI]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:O()}],"bg-size":[{bg:D()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},iw,iD,iI],radial:["",iD,iI],conic:[iw,iD,iI]},iB,i_]}
106],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:$()}],"rounded-s":[{"rounded-s":$()}],"rounded-e":[{"rounded-e":$()}],"rounded-t":[{"rounded-t":$()}],"rounded-r":[{"rounded-r":$()}],"rounded-b":[{"rounded-b":$()}],"rounded-l":[{"rounded-l":$()}],"rounded-ss":[{"rounded-ss":$()}],"rounded-se":[{"rounded-se":$()}],"rounded-ee":[{"rounded-ee":$()}],"rounded-es":[{"rounded-es":$()}],"rounded-tl":[{"rounded-tl":$()}],"rounded-tr":[{"rounded-tr":$()}],"rounded-br":[{"rounded-br":$()}],"rounded-bl":[{"rounded-bl":$()}],"border-w":[{border:z()}],"border-w-x":[{"border-x":z()}],"border-w-y":[{"border-y":z()}],"border-w-s":[{"border-s":z()}],"border-w-e":[{"border-e":z()}],"border-w-t":[{"border-t":z()}],"border-w-r":[{"border-r":z()}],"border-w-b":[{"border-b":z()}],"border-w-l":[{"border-l":z()}],"divide-x":[{"divide-x":z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...V(),"hidden","none"]}],"divide-style":[{divide:[...V(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}
vendor: 5,715 bytes, line 106
106],"divide-color":[{divide:R()}],"outline-style":[{outline:[...V(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ib,iD,iI]}],"outline-w":[{outline:["",ib,iF,iM]}],"outline-color":[{outline:R()}],shadow:[{shadow:["","none",u,iH,iO]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",d,iH,iO]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[ib,iM]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":z()}],"inset-ring-color":[{"inset-ring":R()}],"text-shadow":[{"text-shadow":["none",p,iH,iO]}],"text-shadow-color":[{"text-shadow":R()}],opacity:[{opacity:[ib,iD,iI]}],"mix-blend":[{"mix-blend":[...B(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":B()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ib]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":R()}],"mask-image-linear-to-color":[{"mask-linear-to":R()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":R()}],"mask-image-t-to-color":[{"mask-t-to":R()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":R()}],"mask-image-r-to-color":[{"mask-r-to":R()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":R()}],"mask-image-b-to-color":[{"mask-b-to":R()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":R()}],"mask-image-l-to-color":[{"mask-l-to":R()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":R()}],"mask-image-x-to-color":[{"mask-x-to":R()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":R()}],"mask-image-y-to-color":[{"mask-y-to":R()}],"mask-image-radial":[{"mask-radial":[iD,iI]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":R()}],"mask-image-radial-to-color":[{"mask-radial-to":R()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[ib]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":R()}],"mask-image-conic-to-color":[{"mask-conic-to":R()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_()}],"mask-repeat":[{mask:O()}],"mask-size":[{mask:D()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",iD,iI]}],filter:[{filter:["","none",iD,iI]}],blur:[{blur:U()}],brightness:[{brightness:[ib,iD,iI]}],contrast:[{contrast:[ib,iD,iI]}],"drop-shadow":[{"drop-shadow":["","none",f,iH,iO]}],"drop-shadow-color":[{"drop-shadow":R()}],grayscale:[{grayscale:["",ib,iD,iI]}],"hue-rotate":[{"hue-rotate":[ib,iD,iI]}],invert:[{invert:["",ib,iD,iI]}],saturate:[{saturate:[ib,iD,iI]}],sepia:[{sepia:["",ib,iD,iI]}],"backdrop-filter":[{"backdrop-filter":["","none",iD,iI]}],"backdrop-blur":[{"backdrop-blur":U()}],"backdrop-brightness":[{"backdrop-brightness":[ib,iD,iI]}],"backdrop-contrast":[{"backdrop-contrast":[ib,iD,iI]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ib,iD,iI]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ib,iD,iI]}],"backdrop-invert":[{"backdrop-invert":["",ib,iD,iI]}],"backdrop-opacity":[{"backdrop-opacity":[ib,iD,iI]}],"backdrop-saturate":[{"backdrop-saturate":[ib,iD,iI]}],"backdrop-sepia":[{"backdrop-sepia":["",ib,iD,iI]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",iD,iI]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ib,"initial",iD,iI]}],ease:[{ease:["linear","initial",x,iD,iI]}],delay:[{delay:[ib,iD,iI]}],animate:[{animate:["none",v,iD,iI]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,iD,iI]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:W()}],"rotate-x":[{"rotate-x":W()}],"rotate-y":[{"rotate-y":W()}],"rotate-z":[{"rotate-z":W()}],scale:[{scale:G()}],"scale-x":[{"scale-x":G()}],"scale-y":[{"scale-y":G()}],"scale-z":[{"scale-z":G()}],"scale-3d":["scale-3d"],skew:[{skew:q()}],"skew-x":[{"skew-x":q()}],"skew-y":[{"skew-y":q()}],transform:[{transform:[iD,iI,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:K()}],"translate-x":[{"translate-x":K()}],"translate-y":[{"translate-y":K()}],"translate-z":[{"translate-z":K()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}
106],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",iD,iI]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",iD,iI]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[ib,iF,iM,iL]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});e.s(["twMerge",0,iQ],919056)},467604,(e,t,n)=>{"use strict";
106t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||0x1fffffffffffff,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},209201,(e,t,n)=>{"use strict";var r=e.i(247167);t.exports="object"==typeof r.default&&r.default.env&&r.default.env.NODE_DEBUG&&/\bsemver\b/i.test(r.default.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}},425488,(e,t,n)=>{"use strict";let{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=e.r(467604),s=e.r(209201),a=(n=t.exports={}).re=[],l=n.safeRe=[],c=n.src=[],u=n.safeSrc=[],d=n.t={},p=0,f="[a-zA-Z0-9-]",h=[["\\s",1],["\\d",o],[f,i]],m=(e,t,n)=>{let r=(e=>{for(let[t,n]of h)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;s(e,i,t),d[e]=i,c[i]=t,u[i]=r,a[i]=new RegExp(t,n?"g":void 0),l[i]=new RegExp(r,n?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NONNUMERICIDENTIFIER]}|${c[d.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),m("FULL",`^${c[d.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),m("LOOSE",`^${c[d.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),m("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),m("COERCE",`${c[d.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[d.COERCEPLAIN]+`(?:${c[d.PRERELEASE]})?`+`(?:${c[d.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[d.COERCE],!0),m("COERCERTLFULL",c[d.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),n.tildeTrimReplace="$1~",m("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),n.caretTrimReplace="$1^",m("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),n.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},552145,(e,t,n)=>{"use strict";let r=Object.freeze({loose:!0}),i=Object.freeze({});t.exports=e=>e?"object"!=typeof e?r:e:i}
106,819549,(e,t,n)=>{"use strict";let r=/^[0-9]+$/,i=(e,t)=>{if("number"==typeof e&&"number"==typeof t)return e===t?0:e<t?-1:1;let n=r.test(e),i=r.test(t);return n&&i&&(e*=1,t*=1),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1};t.exports={compareIdentifiers:i,rcompareIdentifiers:(e,t)=>i(t,e)}},606423,(e,t,n)=>{"use strict";let r=e.r(209201),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=e.r(467604),{safeRe:s,t:a}=e.r(425488),l=e.r(552145),{compareIdentifiers:c}=e.r(819549);t.exports=class e{constructor(t,n){if(n=l(n),t instanceof e)if(!!n.loose===t.loose&&!!n.includePrerelease===t.includePrerelease)return t;else t=t.version;else if("string"!=typeof t)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const c=t.trim().match(n.loose?s[a.LOOSE]:s[a.FULL]);if(!c)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(r("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return(t instanceof e||(t=new e(t,this.options)),this.major<t.major)?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:+(this.patch>t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return -1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let e=this.prerelease[n],i=t.prerelease[n];if(r("prerelease compare",n,e,i),void 0===e&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===e)return -1;else if(e===i)continue;else return c(e,i)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let e=this.build[n],i=t.build[n];if(r("build compare",n,e,i),void 0===e&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===e)return -1;else if(e===i)continue;else return c(e,i)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw Error("invalid increment argument: identifier is empty");if(t){let e=`-${t}`.match(this.options.loose?s[a.PRERELEASELOOSE]:s[a.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+!!Number(n);if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),((e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(0!==c(e[t],n[t]))return!1;return!0})(this.prerelease,t)?isNaN(this.prerelease[t.split(".").length])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}}
106,776293,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},782880,(e,t,n)=>{"use strict";let r=e.r(776293);t.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}},89624,(e,t,n)=>{"use strict";let r=e.r(776293);t.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},964894,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},826285,(e,t,n)=>{"use strict";let r=e.r(776293);t.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c){if(!l.patch&&!l.minor)return"major";if(0===l.compareMain(a))return l.minor&&!l.patch?"minor":"patch"}let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease"}},656421,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t)=>new r(e,t).major},653246,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t)=>new r(e,t).minor},927315,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t)=>new r(e,t).patch},866415,(e,t,n)=>{"use strict";let r=e.r(776293);t.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},441055,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},192636,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>r(t,e,n)},961990,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t)=>r(e,t,!0)},80458,(e,t,n)=>{"use strict";let r=e.r(606423);t.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},225379,(e,t,n)=>{"use strict";let r=e.r(80458);t.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},149864,(e,t,n)=>{"use strict";let r=e.r(80458);t.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},9982,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>r(e,t,n)>0},902416,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>0>r(e,t,n)},374171,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>0===r(e,t,n)},798042,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>0!==r(e,t,n)},810712,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>r(e,t,n)>=0},408696,(e,t,n)=>{"use strict";let r=e.r(441055);t.exports=(e,t,n)=>0>=r(e,t,n)},362813,(e,t,n)=>{"use strict";let r=e.r(374171),i=e.r(798042),o=e.r(9982),s=e.r(810712),a=e.r(902416),l=e.r(408696);t.exports=(e,t,n,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return i(e,n,c);case">":return o(e,n,c);case">=":return s(e,n,c);case"<":return a(e,n,c);case"<=":return l(e,n,c);default:throw TypeError(`Invalid operator: ${t}`)}}},326439,(e,t,n)=>{"use strict";let r=e.r(606423),i=e.r(776293),{safeRe:o,t:s}=e.r(425488);t.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let r,i=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=i.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i.lastIndex=r.index+r[1].length+r[2].length;i.lastIndex=-1}else n=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===n)return null;let a=n[2],l=n[3]||"0",c=n[4]||"0",u=t.includePrerelease&&n[5]?`-${n[5]}`:"",d=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${a}.${l}.${c}${u}${d}`,t)}},65059,(e,t,n)=>{"use strict";let r=e.r(776293),i=e.r(467604),o=e.r(606423),s=e=>e.startsWith("pre");t.exports=(e,t,n)=>{let a,l;if(!i.RELEASE_TYPES.includes(t))return null;let c=(a=e,l=n,r(a instanceof o?a.version:a,l));return c&&((e,t)=>{if(s(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0}return e.format()})(c,t)}},724960,(e,t,n)=>{"use strict";
106t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}},543639,(e,t,n)=>{"use strict";let r=/\s+/g;t.exports=class e{constructor(t,n){if(n=o(n),t instanceof e)if(!!n.loose===t.loose&&!!n.includePrerelease===t.includePrerelease)return t;else return new e(t.raw,n);if(t instanceof s)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(r," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!v(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(const e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(x,"");let t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,n=i.get(t);if(n)return n;let r=this.options.loose,o=r?c[d.HYPHENRANGELOOSE]:c[d.HYPHENRANGE];a("hyphen replace",e=e.replace(o,I(this.options.includePrerelease))),a("comparator trim",e=e.replace(c[d.COMPARATORTRIM],p)),a("tilde trim",e=e.replace(c[d.TILDETRIM],f)),a("caret trim",e=e.replace(c[d.CARETTRIM],h));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));r&&(l=l.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(c[d.COMPARATORLOOSE])))),a("range list",l);let u=new Map;for(let e of l.map(e=>new s(e,this.options))){if(v(e))return[e];u.set(e.value,e)}u.size>1&&u.has("")&&u.delete("");let y=[...u.values()];return i.set(t,y),y}intersects(t,n){if(!(t instanceof e))throw TypeError("a Range is required");return this.set.some(e=>b(e,n)&&t.set.some(t=>b(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(M(this.set[t],e,this.options))return!0;return!1}};let i=new(e.r(724960)),o=e.r(552145),s=e.r(448953),a=e.r(209201),l=e.r(606423),{safeRe:c,src:u,t:d,comparatorTrimReplace:p,tildeTrimReplace:f,caretTrimReplace:h}=e.r(425488),{FLAG_INCLUDE_PRERELEASE:m,FLAG_LOOSE:g}=e.r(467604),x=RegExp(u[d.BUILD],"g"),v=e=>"<0.0.0-0"===e.value,y=e=>""===e.value,b=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},w=(e,t)=>(a("comp",e=e.replace(c[d.BUILD],""),t),a("caret",e=E(e,t)),a("tildes",e=j(e,t)),a("xrange",e=C(e,t)),a("stars",e=T(e,t)),e),k=e=>!e||"x"===e.toLowerCase()||"*"===e,j=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let n=t.loose?c[d.TILDELOOSE]:c[d.TILDE],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,s)=>{let l;return a("tilde",e,t,n,i,o,s),k(n)?l="":k(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:k(o)?l=`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:s?(a("replaceTilde pr",s),l=`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`):l=`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`,a("tilde return",l),l})},E=(e,t)=>e.trim().split(/\s+/).map(e=>N(e,t)).join(" "),N=(e,t)=>{a("caret",e,t);let n=t.loose?c[d.CARETLOOSE]:c[d.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,i,o,s)=>{let l;return a("caret",e,t,n,i,o,s),k(n)?l="":k(i)?l=`>=${n}.0.0${r} <${+n+1}.0.0-0`:k(o)?l="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===n?"0"===i?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a("no pr"),l="0"===n?"0"===i?`>=${n}.${i}.${o} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a("caret return",l),l})},C=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>P(e,t)).join(" ")),P=(e,t)=>{e=e.trim();let n=t.loose?c[d.XRANGELOOSE]:c[d.XRANGE];return e.replace(n,(n,r,i,o,s,l)=>{let c,u,d;if(a("xRange",e,n,r,i,o,s,l),c=i,u=o,d=s,k(c)&&!k(u)||k(u)&&d&&!k(d))return e;let p=k(i),f=p||k(o),h=f||k(s);return"="===r&&h&&(r=""),l=t.includePrerelease?"-0":"",p?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&h?(f&&(o=0),s=0,">"===r?(r=">=",f?(i=+i+1,o=0):o=+o+1,s=0):"<="===r&&(r="<",f?i=+i+1:o=+o+1),"<"===r&&(l="-0"),n=`${r+i}.${o}.${s}${l}`):f?n=`>=${i}.0.0${l} <${+i+1}.0.0-0`:h&&(n=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",n),n})},T=(e,t)=>
106(a("replaceStars",e,t),e.trim().replace(c[d.STAR],"")),A=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?d.GTE0PRE:d.GTE0],"")),I=e=>(t,n,r,i,o,s,a,l,c,u,d,p)=>(n=k(r)?"":k(i)?`>=${r}.0.0${e?"-0":""}`:k(o)?`>=${r}.${i}.0${e?"-0":""}`:s?`>=${n}`:`>=${n}${e?"-0":""}`,l=k(c)?"":k(u)?`<${+c+1}.0.0-0`:k(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${l}`,`${n} ${l}`.trim()),M=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==s.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},448953,(e,t,n)=>{"use strict";let r=Symbol("SemVer ANY");t.exports=class e{static get ANY(){return r}constructor(t,n){if(n=i(n),t instanceof e)if(!!n.loose===t.loose)return t;else t=t.value;l("comparator",t=t.trim().split(/\s+/).join(" "),n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){let t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}return a(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(t.value,n).test(this.value):""===t.operator?""===t.value||new u(this.value,n).test(t.semver):!((n=i(n)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===t.value)||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||a(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||a(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">"))}};let i=e.r(552145),{safeRe:o,t:s}=e.r(425488),a=e.r(362813),l=e.r(209201),c=e.r(606423),u=e.r(543639)},47509,(e,t,n)=>{"use strict";let r=e.r(543639);t.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},121130,(e,t,n)=>{"use strict";let r=e.r(543639);t.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},189609,(e,t,n)=>{"use strict";let r=e.r(606423),i=e.r(543639);t.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,n))}),o}},378338,(e,t,n)=>{"use strict";let r=e.r(606423),i=e.r(543639);t.exports=(e,t,n)=>{let o=null,s=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,n))}),o}},337468,(e,t,n)=>{"use strict";let r=e.r(606423),i=e.r(543639),o=e.r(9982);t.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],s=null;i.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||o(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),s&&(!n||o(n,s))&&(n=s)}return n&&e.test(n)?n:null}},975337,(e,t,n)=>{"use strict";let r=e.r(543639);t.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},772781,(e,t,n)=>{"use strict";let r=e.r(606423),i=e.r(448953),{ANY:o}=i,s=e.r(543639),a=e.r(47509),l=e.r(9982),c=e.r(902416),u=e.r(408696),d=e.r(810712);t.exports=(e,t,n,p)=>{let f,h,m,g,x;switch(e=new r(e,p),t=new s(t,p),n){case">":f=l,h=u,m=c,g=">",x=">=";break;case"<":f=c,h=d,m=l,g="<",x="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p))return!1;for(let n=0;n<t.set.length;++n){let r=t.set[n],s=null,a=null;
106if(r.forEach(e=>{e.semver===o&&(e=new i(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,p)?s=e:m(e.semver,a.semver,p)&&(a=e)}),s.operator===g||s.operator===x||(!a.operator||a.operator===g)&&h(e,a.semver)||a.operator===x&&m(e,a.semver))return!1}return!0}},826539,(e,t,n)=>{"use strict";let r=e.r(772781);t.exports=(e,t,n)=>r(e,t,">",n)},816638,(e,t,n)=>{"use strict";let r=e.r(772781);t.exports=(e,t,n)=>r(e,t,"<",n)},897071,(e,t,n)=>{"use strict";let r=e.r(543639);t.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},913782,(e,t,n)=>{"use strict";let r=e.r(47509),i=e.r(441055);t.exports=(e,t,n)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>i(e,t,n));for(let e of l)r(e,t,n)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let u=c.join(" || "),d="string"==typeof t.raw?t.raw:String(t);return u.length<d.length?u:t}},153877,(e,t,n)=>{"use strict";let r=e.r(543639),i=e.r(448953),{ANY:o}=i,s=e.r(47509),a=e.r(441055),l=[new i(">=0.0.0-0")],c=[new i(">=0.0.0")],u=(e,t,n)=>{let r,i,u,f,h,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===o)if(1===t.length&&t[0].semver===o)return!0;else e=n.includePrerelease?l:c;if(1===t.length&&t[0].semver===o)if(n.includePrerelease)return!0;else t=c;let x=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=d(r,t,n):"<"===t.operator||"<="===t.operator?i=p(i,t,n):x.add(t.semver);if(x.size>1)return null;if(r&&i&&((u=a(r.semver,i.semver,n))>0||0===u&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of x){if(r&&!s(e,String(r),n)||i&&!s(e,String(i),n))return null;for(let r of t)if(!s(e,String(r),n))return!1;return!0}let v=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver,y=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(v&&1===v.prerelease.length&&"<"===i.operator&&0===v.prerelease[0]&&(v=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,r){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=d(r,e,n))===e&&f!==r)return!1}else if(">="===r.operator&&!e.test(r.semver))return!1}if(i){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if((h=p(i,e,n))===e&&h!==i)return!1}else if("<="===i.operator&&!e.test(i.semver))return!1}if(!e.operator&&(i||r)&&0!==u)return!1}return(!r||!m||!!i||0===u)&&(!i||!g||!!r||0===u)&&!y&&!v&&!0},d=(e,t,n)=>{if(!e)return t;let r=a(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},p=(e,t,n)=>{if(!e)return t;let r=a(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};t.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=u(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},308528,(e,t,n)=>{"use strict";let r=e.r(425488),i=e.r(467604),o=e.r(606423),s=e.r(819549),a=e.r(776293),l=e.r(782880),c=e.r(89624),u=e.r(964894),d=e.r(826285),p=e.r(656421),f=e.r(653246),h=e.r(927315),m=e.r(866415),g=e.r(441055),x=e.r(192636),v=e.r(961990),y=e.r(80458),b=e.r(225379),w=e.r(149864),k=e.r(9982),j=e.r(902416),S=e.r(374171),E=e.r(798042),N=e.r(810712),C=e.r(408696),P=e.r(362813),T=e.r(326439),A=e.r(65059),I=e.r(448953),M=e.r(543639),L=e.r(47509),R=e.r(121130),_=e.r(189609),O=e.r(378338),D=e.r(337468),F=e.r(975337),$=e.r(772781),z=e.r(826539),V=e.r(816638),B=e.r(897071);t.exports={parse:a,valid:l,clean:c,inc:u,diff:d,major:p,minor:f,patch:h,prerelease:m,compare:g,rcompare:x,compareLoose:v,compareBuild:y,sort:b,rsort:w,gt:k,lt:j,eq:S,neq:E,gte:N,lte:C,cmp:P,coerce:T,truncate:A,Comparator:I,Range:M,satisfies:L,toComparators:R,maxSatisfying:_,minSatisfying:O,minVersion:D,validRange:F,outside:$,gtr:z,ltr:V,intersects:B,simplifyRange:e.r(913782),subset:e.r(153877),SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}},846696,e=>{"use strict";var t=e.i(271645),n=e.i(174080);let r=Array(12).fill(0),i=({visible:e,className:n})=>t.default.createElement("div",{className:["sonner-loading-wrapper",n].filter(
106Boolean).join(" "),"data-visible":e},t.default.createElement("div",{className:"sonner-spinner"},r.map((e,n)=>t.default.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),o=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},t.default.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),s=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},t.default.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),a=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},t.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),l=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20","aria-hidden":"true"},t.default.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),c=t.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true"},t.default.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),t.default.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),u=1,d=e=>{var t;return"number"==typeof(null==e?void 0:e.id)||(null==e||null==(t=e.id)?void 0:t.length)>0?e.id:u++},p=new class{constructor(){this.subscribe=e=>
106(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-100;e<=0||(this.toasts=this.toasts.filter(t=>!(e>0&&this.dismissedToasts.has(t.id))||(this.dismissedToasts.delete(t.id),e--,!1)))},this.create=e=>{let{message:t,...n}=e,r=d(e),i=this.pendingDismissals.get(r);void 0!==i&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let o=this.dismissedToasts.has(r),s=void 0===e.dismissible||e.dismissible;return o&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),(o?void 0:this.toasts.find(e=>e.id===r))?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:s,title:t}):n):this.addToast({title:t,...n,dismissible:s,id:r}),r},this.dismiss=e=>{if(null==e)return this.getActiveToasts().forEac
106h(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return void 0!==t&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,n)=>{let r,i;if(!n)return;void 0!==n.loading&&(i=this.create({...n,promise:e,type:"loading",message:n.loading,description:"function"!=typeof n.description?n.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),s=void 0!==i,a=o.then(async e=>{if(r=["resolve",e],t.default.isValidElement(e))s=!1,this.create({id:i,type:"default",message:e});else if(f(e)&&!e.ok){s=!1;let r="function"==typeof n.error?await n.error(`HTTP error! status: ${e.status}`):n.error,o="function"==typeof n.description?await n.description(`HTTP error! status: ${e.status}`):n.description,a="object"!=typeof r||t.default.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...a})}else if(e instanceof Error){s=!1;let r="function"==typeof n.error?await n.error(e):n.error,o="function"==typeof n.description?await n.description(e):n.description,a="object"!=typeof r||t.default.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...a})}else if(void 0!==n.success){s=!1;let r="function"==typeof n.success?await n.success(e):n.success,o="function"==typeof n.description?await n.description(e):n.description,a="object"!=typeof r||t.default.isValidElement(r)?{message:r}:r;this.create({id:i,type:"success",description:o,...a})}}).catch(async e=>{if(r=["reject",e],void 0!==n.error){s=!1;let r="function"==typeof n.error?await n.error(e):n.error,o="function"==typeof n.description?await n.description(e):n.description,a="object"!=typeof r||t.default.isValidElement(r)?{message:r}:r;this.create({id:i,type:"error",description:o,...a})}}).finally(()=>{s&&(this.dismiss(i),i=void 0),null==n.finally||n.finally.call(n)}),l=()=>new Promise((e,t)=>a.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof i&&"number"!=typeof i?{unwrap:l}:Object.assign(i,{unwrap:l})},this.custom=(e,t)=>{let n=d(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},f=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,h=Object.assign((e,t)=>p.message(e,t),{success:p.success,info:p.info,warning:p.warning,error:p.error,custom:p.custom,message:p.message,promise:p.promise,dismiss:p.dismiss,loading:p.loading},{getHistory:()=>p.toasts,getToasts:()=>p.getActiveToasts()});function m(e){return void 0!==e.label}function g(...e){return e.filter(Boolean).join(" ")}!function(e){if(!e||"u"<typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}
vendor: 14,921 bytes, line 106
106("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");
106let x=e=>{var n,r,u,d,p,f,h,x,v,y,b;let{invert:w,toast:k,unstyled:j,interacting:S,setHeights:E,visibleToasts:N,heights:C,index:P,toasts:T,expanded:A,removeToast:I,defaultRichColors:M,closeButton:L,style:R,cancelButtonStyle:_,actionButtonStyle:O,className:D="",descriptionClassName:F="",duration:$,position:z,gap:V,expandByDefault:B,classNames:H,icons:U,closeButtonAriaLabel:W="Close toast"}=e,[G,q]=t.default.useState(null),[K,Y]=t.default.useState(null),[J,X]=t.default.useState(!1),[Z,Q]=t.default.useState(!1),[ee,et]=t.default.useState(!1),[en,er]=t.default.useState(!1),[ei,eo]=t.default.useState(!1),[es,ea]=t.default.useState(0),[el,ec]=t.default.useState(0),eu=t.default.useRef(k.duration||$||4e3),ed=t.default.useRef(null),ep=t.default.useRef(null),ef=0===P,eh=P+1<=N,em=k.type,eg=null!=em?em:"default",ex=!1!==k.dismissible,ev=k.className||"",ey=k.descriptionClassName||"",eb=t.default.useMemo(()=>C.findIndex(e=>e.toastId===k.id)||0,[C,k.id]),ew=t.default.useMemo(()=>{var e;return null!=(e=k.closeButton)?e:L},[k.closeButton,L]),ek=t.default.useMemo(()=>k.duration||$||4e3,[k.duration,$]),ej=t.default.useRef(0),eS=t.default.useRef(0),eE=t.default.useRef(0),eN=t.default.useRef(null),[eC,eP]=z.split("-"),eT=t.default.useMemo(()=>C.reduce((e,t,n)=>n>=eb?e:e+t.height,0),[C,eb]),eA=(()=>{let[e,n]=t.default.useState(document.hidden);return t.default.useEffect(()=>{let e=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)},[]),e})(),eI=t.default.useMemo(()=>{var t;return null!=(t=e.swipeDirections)?t:function(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(z)},[e.swipeDirections,z]),eM=k.invert||w,eL="loading"===em;eS.current=t.default.useMemo(()=>eb*V+eT,[eb,eT]),t.default.useEffect(()=>{eu.current=ek},[ek]),t.default.useEffect(()=>{X(!0)},[]),t.default.useEffect(()=>{let e=ep.current;if(e){let t=e.getBoundingClientRect().height;return ec(t),E(e=>[{toastId:k.id,height:t,position:k.position},...e]),()=>E(e=>e.filter(e=>e.toastId!==k.id))}},[E,k.id]),t.default.useLayoutEffect(()=>{if(!J)return;let e=ep.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ec(n),E(e=>e.find(e=>e.toastId===k.id)?e.map(e=>e.toastId===k.id?{...e,height:n}:e):[{toastId:k.id,height:n,position:k.position},...e])},[J,k.title,k.description,E,k.id,k.jsx,k.action,k.cancel]);let eR=t.default.useCallback(()=>{Q(!0),ea(eS.current),E(e=>e.filter(e=>e.toastId!==k.id)),setTimeout(()=>{I(k)},200)},[k,I,E,eS]);function e_(){var e,n;return(null==U?void 0:U.loading)?t.default.createElement("div",{className:g(null==H?void 0:H.loader,null==k||null==(n=k.classNames)?void 0:n.loader,"sonner-loader"),"data-visible":"loading"===em},U.loading):t.default.createElement(i,{className:g(null==H?void 0:H.loader,null==k||null==(e=k.classNames)?void 0:e.loader),visible:"loading"===em})}t.default.useEffect(()=>{let e;if((!k.promise||"loading"!==em)&&k.duration!==1/0&&"loading"!==k.type){if(A||S||eA){if(eE.current<ej.current){let e=new Date().getTime()-ej.current;eu.current=eu.current-e}eE.current=new Date().getTime()}else eu.current!==1/0&&(ej.current=new Date().getTime(),e=setTimeout(()=>{null==k.onAutoClose||k.onAutoClose.call(k,k),eR()},eu.current));return()=>clearTimeout(e)}},[A,S,k,em,eA,eR]),t.default.useEffect(()=>{k.delete&&(eR(),null==k.onDismiss||k.onDismiss.call(k,k))},[eR,k.delete]);let eO=k.icon||(null==U?void 0:U[em])||(e=>{switch(e){case"success":return o;case"info":return a;case"warning":return s;case"error":return l;default:return null}})(em);return t.default.createElement("li",{tabIndex:0,ref:ep,className:g(D,ev,null==H?void 0:H.toast,null==k||null==(n=k.classNames)?void 0:n.toast,null==H?void 0:H[eg],null==k||null==(r=k.classNames)?void 0:r[eg]),"data-sonner-toast":"","data-rich-colors":null!=(y=k.richColors)?y:M,"data-styled":!(k.jsx||k.unstyled||j),"data-mounted":J,"data-promise":!!k.promise,"data-swiped":ei,"data-removed":Z,"data-visible":eh,"data-y-position":eC,"data-x-position":eP,"data-index":P,"data-front":ef,"data-swiping":ee,"data-dismissible":ex,"data-type":em,"data-invert":eM,"data-swipe-out":en,"data-swipe-direction":K,"data-expanded":!!(A||B&&J),"data-testid":k.testId,style:{"--index":P,"--toasts-before":P,"--z-index":T.length-P,"--offset":`${Z?es:eS.current}px`,"--initial-height":B?"auto":`${el}px`,...R,...k.style},onDragEnd:()=>{et(!1),q(null),eN.current=null},onPointerDown:e=>
106{2===e.button||eL||!ex||(ed.current=new Date,ea(eS.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(et(!0),eN.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r,i;if(en||!ex)return;eN.current=null;let o=Number((null==(e=ep.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),s=Number((null==(t=ep.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=new Date().getTime()-(null==(n=ed.current)?void 0:n.getTime()),l="x"===G?o:s,c=Math.abs(l)/a;if(("x"===G?eI.includes(o>0?"right":"left"):eI.includes(s>0?"bottom":"top"))&&(Math.abs(l)>=45||c>.11)){ea(eS.current),null==k.onDismiss||k.onDismiss.call(k,k),"x"===G?Y(o>0?"right":"left"):Y(s>0?"down":"up"),eR(),er(!0);return}null==(r=ep.current)||r.style.setProperty("--swipe-amount-x","0px"),null==(i=ep.current)||i.style.setProperty("--swipe-amount-y","0px"),eo(!1),et(!1),q(null)},onPointerMove:e=>{var t,n,r;if(!eN.current||!ex||(null==(t=window.getSelection())?void 0:t.toString().length)>0)return;let i=e.clientY-eN.current.y,o=e.clientX-eN.current.x;!G&&(Math.abs(o)>1||Math.abs(i)>1)&&q(Math.abs(o)>Math.abs(i)?"x":"y");let s={x:0,y:0},a=e=>1/(1.5+Math.abs(e)/20);if("y"===G){if(eI.includes("top")||eI.includes("bottom"))if(eI.includes("top")&&i<0||eI.includes("bottom")&&i>0)s.y=i;else{let e=i*a(i);s.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===G&&(eI.includes("left")||eI.includes("right")))if(eI.includes("left")&&o<0||eI.includes("right")&&o>0)s.x=o;else{let e=o*a(o);s.x=Math.abs(e)<Math.abs(o)?e:o}(Math.abs(s.x)>0||Math.abs(s.y)>0)&&eo(!0),null==(n=ep.current)||n.style.setProperty("--swipe-amount-x",`${s.x}px`),null==(r=ep.current)||r.style.setProperty("--swipe-amount-y",`${s.y}px`)}},ew&&!k.jsx&&"loading"!==em?t.default.createElement("button",{"aria-label":W,"data-disabled":eL,"data-close-button":!0,onClick:eL||!ex?()=>{}:()=>{eR(),null==k.onDismiss||k.onDismiss.call(k,k)},className:g(null==H?void 0:H.closeButton,null==k||null==(u=k.classNames)?void 0:u.closeButton)},null!=(b=null==U?void 0:U.close)?b:c):null,(em||k.icon||k.promise)&&null!==k.icon&&((null==U?void 0:U[em])!==null||k.icon)?t.default.createElement("div",{"data-icon":"",className:g(null==H?void 0:H.icon,null==k||null==(d=k.classNames)?void 0:d.icon)},"loading"===em?k.icon||e_():k.promise?e_():null,"loading"!==em?eO:null):null,t.default.createElement("div",{"data-content":"",className:g(null==H?void 0:H.content,null==k||null==(p=k.classNames)?void 0:p.content)},t.default.createElement("div",{"data-title":"",className:g(null==H?void 0:H.title,null==k||null==(f=k.classNames)?void 0:f.title)},k.jsx?k.jsx:"function"==typeof k.title?k.title():k.title),k.description?t.default.createElement("div",{"data-description":"",className:g(F,ey,null==H?void 0:H.description,null==k||null==(h=k.classNames)?void 0:h.description)},"function"==typeof k.description?k.description():k.description):null),t.default.isValidElement(k.cancel)?k.cancel:k.cancel&&m(k.cancel)?t.default.createElement("button",{"data-button":!0,"data-cancel":!0,style:k.cancelButtonStyle||_,onClick:e=>{!m(k.cancel)||ex&&(null==k.cancel.onClick||k.cancel.onClick.call(k.
106cancel,e),eR())},className:g(null==H?void 0:H.cancelButton,null==k||null==(x=k.classNames)?void 0:x.cancelButton)},k.cancel.label):null,t.default.isValidElement(k.action)?k.action:k.action&&m(k.action)?t.default.createElement("button",{"data-button":!0,"data-action":!0,style:k.actionButtonStyle||O,onClick:e=>{!m(k.action)||(null==k.action.onClick||k.action.onClick.call(k.action,e),e.defaultPrevented||eR())},className:g(null==H?void 0:H.actionButton,null==k||null==(v=k.classNames)?void 0:v.actionButton)},k.action.label):null)};function v(){if("u"<typeof window||"u"<typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let y=t.default.forwardRef(function(e,r){let{id:i,invert:o,position:s="bottom-right",hotkey:a=["altKey","KeyT"],expand:l,closeButton:c,className:u,offset:d,mobileOffset:f,theme:h="light",richColors:m,duration:g,style:y,visibleToasts:b=3,toastOptions:w,dir:k=v(),gap:j=14,icons:S,customAriaLabel:E,containerAriaLabel:N="Notifications"}=e,[C,P]=t.default.useState([]),T=t.default.useMemo(()=>i?C.filter(e=>e.toasterId===i):C.filter(e=>!e.toasterId),[C,i]),A=t.default.useMemo(()=>Array.from(new Set([s].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,s]),[I,M]=t.default.useState([]),[L,R]=t.default.useState(!1),[_,O]=t.default.useState(!1),[D,F]=t.default.useState("system"!==h?h:"u">typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),$=t.default.useRef(null),z=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),V=t.default.useRef(null),B=t.default.useRef(!1),H=t.default.useCallback(e=>{P(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||p.dismiss(e.id),t.filter(({id:t})=>t!==e.id)})},[]);return t.default.useEffect(()=>p.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{P(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))}):setTimeout(()=>{n.default.flushSync(()=>{P(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),t.default.useEffect(()=>{if("system"!==h)return void F(h);if("system"===h&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"u"<typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",({matches:e})=>{e?F("dark"):F("light")})}catch(t){e.addListener(({matches:e})=>{try{e?F("dark"):F("light")}catch(e){console.error(e)}})}},[h]),t.default.useEffect(()=>{C.length<=1&&R(!1)},[C]),t.default.useEffect(()=>{let e=e=>{var t,n;a.length>0&&a.every(t=>e[t]||e.code===t)&&(R(!0),null==(n=$.current)||n.focus()),"Escape"===e.code&&(document.activeElement===$.current||(null==(t=$.current)?void 0:t.contains(document.activeElement)))&&R(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),t.default.useEffect(()=>{if($.current)return()=>{V.current&&(V.current.focus({preventScroll:!0}),V.current=null,B.current=!1)}},[$.current]),t.default.createElement("section",{ref:r,"aria-label":null!=E?E:`${N} ${z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},A.map((n,r)=>{var i;let s,[a,p]=n.split("-");return T.length?t.default.createElement("ol",{key:n,dir:"auto"===k?v():k,tabIndex:-1,ref:$,className:u,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":a,"data-x-position":p,style:{"--front-toast-height":`${(null==(i=I[0])?void 0:i.height)||0}px`,"--width":"356px","--gap":`${j}px`,...y,...(s={},[d,f].forEach((e,t)=>{let n=1===t,r=n?"--mobile-offset":"--offset",i=n?"16px":"24px";function o(e){["top","right","bottom","left"].forEach(t=>{s[`${r}-${t}`]="number"==typeof e?`${e}px`:e})}"number"==typeof e||"string"==typeof e?o(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?s[`${r}-${t}`]=i:s[`${r}-${t}`]="number"==typeof e[t]?`${e[t]}px`:e[t]}):o(i)}),s)},onBlur:e=>{B.current&&!e.currentTarget.contains(e.relatedTarget)&&(B.current=!1,V.current&&(V.current.focus({preventScroll:!0}),V.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(B.current||(B.current=!0,V.current=e.relatedTarget))},onMouseEnter:()=>R(!0),onMouseMove:()=>R(!0),onMouseLeave:()=>{_||R(!1)},onDragEnd:()=>R(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||O(!0)},onPointerUp:()=>O(!1)},T.filter(e=>!e.position&&0===r||e.position===n).map((r,i)=>{var s,a;return t.default.createElement(x,{key:r.id,icons:S,index:i,toast:r,defaultRichColors:m,duration:null!=(s=null==w?void 0:w.duration)?s:g,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:o,visibleToasts:b,closeButton:null!=(a=null==w?void 0:w.closeButton)?a:c,interacting:_,position:n,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:H,toasts:T.filter(e=>e.position==r.position),heights:I.filter(e=>e.position==r.position),setHeights:M,expandByDefault:l,gap:j,expanded:L,swipeDirections:e.swipeDirections})})):null}))});e.s(["Toaster",0,y,"toast",0,h])},614595,(e,t,n)=>{"use strict";var r=e.r(271645),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,s=r.useRef,a=r.useEffect,l=r.useMemo,c=r.useDebugValue;n.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;var f=o(e,(d=l(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),void 0!==u&&p.hasValue){var t=p.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?(o=e,t):(o=e,s=n)}var o,s,a=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,n,r,u]))[0],d[1]);return a(function(){p.hasValue=!0,p.value=f},[f]),c(f),f}},313027,(e,t,n)=>{"use strict";e.i(247167),t.exports=e.r(614595)}]);

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