vendor: 9,043 bytes, lines 1-10
1import{r as x,R as L,a as H_,b as xi,c as pr,g as Ee,j as Ei}from"./vendor-react-BmPKW15C.js";import{u as Ci,P as Tr,R as G_,a as Y_,O as K_,C as X_,c as Go}from"./vendor-radix-BNEoYZZ5.js";/** 2 * @remix-run/router v1.23.2 3 * 4 * Copyright (c) Remix Software Inc. 5 * 6 * This source code is licensed under the MIT license found in the 7 * LICENSE.md file in the root directory of this source tree. 8 * 9 * @license MIT 10 */function Yo(){return Yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yo.apply(this,arguments)}var ki;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(ki||(ki={}));const xp="popstate";function Xre(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return zc("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:Y0(i)}return Q_(t,n,null,e)}function Ai(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function hd(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function J_(){return Math.random().toString(36).substr(2,8)}function kp(e,t){return{usr:e.state,key:e.key,idx:t}}function zc(e,t,n,r){return n===void 0&&(n=null),Yo({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Tl(t):t,{state:n,key:t&&t.key||r||J_()})}function Y0(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Tl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Q_(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=ki.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(Yo({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function c(){s=ki.Pop;let g=f(),y=g==null?null:g-u;u=g,l&&l({action:s,location:m.location,delta:y})}function h(g,y){s=ki.Push;let b=zc(m.location,g,y);u=f()+1;let v=kp(b,u),S=m.createHref(b);try{a.pushState(v,"",S)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(S)}o&&l&&l({action:s,location:m.location,delta:1})}function d(g,y){s=ki.Replace;let b=zc(m.location,g,y);u=f();let v=kp(b,u),S=m.createHref(b);a.replaceState(v,"",S),o&&l&&l({action:s,location:m.location,delta:0})}function p(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof g=="string"?g:Y0(g);return b=b.replace(/ $/,"%20"),Ai(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let m={get action(){return s},get location(){return e(i,a)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(xp,c),l=g,()=>{i.removeEventListener(xp,c),l=null}},createHref(g){return t(i,g)},createURL:p,encodeLocation(g){let y=p(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:d,go(g){return a.go(g)}};return m}var Sp;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Sp||(Sp={}));function Jre(e,t,n){return n===void 0&&(n="/"),eT(e,t,n)}function eT(e,t,n,r){let i=typeof t=="string"?Tl(t):t,o=pT(i.pathname||"/",n);if(o==null)return null;let a=K0(e);tT(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=hT(o);s=cT(a[l],u)}return s}function K0(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ai(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=ps([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Ai(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),K0(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:lT(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of X0(o.path))i(o,a,l)}),t}function X0(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=X0(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function tT(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:uT(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const nT=/^:[\w-]+$/,rT=3,iT=2,oT=1,aT=10,sT=-2,_p=e=>e==="*";function lT(e,t){let n=e.split("/"),r=n.length;return n.some(_p)&&(r+=sT),t&&(r+=iT),n.filter(i=>!_p(i)).reduce((i,o)=>i+(nT.test(o)?rT:o===""?oT:aT),r)}function uT(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function cT(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,f=o==="/"?t:t.slice(o.length)||"/",c=fT({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},f),h=l.route;if(!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:ps([o,c.pathname]),pathnameBase:bT(ps([o,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(o=ps([o,c.pathnameBase]))}return a}function fT(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=dT(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,c)=>{let{paramName:h,isOptional:d}=f;if(h==="*"){let m=s[c]||"";a=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=s[c];return d&&!p?u[h]=void 0:u[h]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:a,pattern:e}}function dT(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),hd(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function hT(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return hd(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function pT(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const mT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gT=e=>mT.test(e);function yT(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Tl(e):e,o;if(n)if(gT(n))o=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),hd(!1,"Pathnames cannot have embedded double slashes - normalizing "+(a+" -> "+n))}n.startsWith("/")?o=Tp(n.substring(1),"/"):o=Tp(n,t)}else o=t;return{pathname:o,search:wT(r),hash:xT(i)}}function Tp(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Su(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function vT(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Qre(e,t){let n=vT(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eie(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Tl(e):(i=Yo({},e),Ai(!i.pathname||!i.pathname.includes("?"),Su("?","pathname","search",i)),Ai(!i.pathname||!i.pathname.includes("#"),Su("#","pathname","hash",i)),Ai(!i.search||!i.search.includes("#"),Su("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(a==null)s=n;else{let c=t.length-1;if(!r&&a.startsWith("..")){let h=a.split("/");for(;h[0]==="..";)h.shift(),c-=1;i.pathname=h.join("/")}s=c>=0?t[c]:"/"}let l=yT(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}
10const ps=e=>e.join("/").replace(/\/\/+/g,"/"),bT=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wT=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xT=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tie(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const J0=["post","put","patch","delete"];new Set(J0);const kT=["get",...J0];new Set(kT);var Ep=["light","dark"],ST="(prefers-color-scheme: dark)",_T=x.createContext(void 0),TT={setTheme:e=>{},themes:[]},nie=()=>{var e;return(e=x.useContext(_T))!=null?e:TT};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:o,value:a,attrs:s,nonce:l})=>{let u=o==="system",f=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${s.map(p=>`'${p}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,c=i?Ep.includes(o)&&o?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${o}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",h=(p,m=!1,g=!0)=>{let y=a?a[p]:p,b=m?p+"|| ''":`'${y}'`,v="";return i&&g&&!m&&Ep.includes(p)&&(v+=`d.style.colorScheme = '${p}';`),n==="class"?m||y?v+=`c.add(${b})`:v+="null":y&&(v+=`d[s](n,${b})`),v},d=e?`!function(){${f}${h(e)}}()`:r?`!function(){try{${f}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${ST}',m=window.matchMedia(t);if(m.media!==t||m.matches){${h("dark")}}else{${h("light")}}}else if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}${u?"":"else{"+h(o,!1,!1)+"}"}${c}}catch(e){}}()`:`!function(){try{${f}var e=localStorage.getItem('${t}');if(e){${a?`var x=${JSON.stringify(a)};`:""}${h(a?"x[e]":"e",!0)}}else{${h(o,!1,!1)};}${c}}catch(t){}}();`;return x.createElement("script",{nonce:l,dangerouslySetInnerHTML:{__html:d}})});var ET=e=>{switch(e){case"success":return MT;case"info":return IT;case"warning":return PT;case"error":return $T;default:return null}},CT=Array(12).fill(0),AT=({visible:e,className:t})=>L.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},L.createElement("div",{className:"sonner-spinner"},CT.map((n,r)=>L.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),MT=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),PT=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},L.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"})),IT=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),$T=L.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},L.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"})),RT=L.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"},L.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),OT=()=>{let[e,t]=L.useState(document.hidden);return L.useEffect(()=>{let n=()=>{t(document.hidden)};
10return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Fc=1,DT=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{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.create=e=>{var t;let{message:n,...r}=e,i=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Fc++,o=this.toasts.find(s=>s.id===i),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(i)&&this.dismissedToasts.delete(i),o?this.toasts=this.toasts.map(s=>s.id===i?(this.publish({...s,...e,id:i,title:n}),{...s,...e,id:i,dismissible:a,title:n}):s):this.addToast({title:n,...r,dismissible:a,id:i}),i},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),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)=>
10this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),i=n!==void 0,o,a=r.then(async l=>{if(o=["resolve",l],L.isValidElement(l))i=!1,this.create({id:n,type:"default",message:l});else if(LT(l)&&!l.ok){i=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${l.status}`):t.error,f=typeof t.description=="function"?await t.description(`HTTP error! status: ${l.status}`):t.description;this.create({id:n,type:"error",message:u,description:f})}else if(t.success!==void 0){i=!1;let u=typeof t.success=="function"?await t.success(l):t.success,f=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"success",message:u,description:f})}}).catch(async l=>{if(o=["reject",l],t.error!==void 0){i=!1;let u=typeof t.error=="function"?await t.error(l):t.error,f=typeof t.description=="function"?await t.description(l):t.description;this.create({id:n,type:"error",message:u,description:f})}}).finally(()=>{var l;i&&(this.dismiss(n),n=void 0),(l=t.finally)==null||l.call(t)}),s=()=>new Promise((l,u)=>a.then(()=>o[0]==="reject"?u(o[1]):l(o[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Fc++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Dt=new DT,NT=(e,t)=>{let n=(t==null?void 0:t.id)||Fc++;return Dt.addToast({title:e,...t,id:n}),n},LT=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zT=NT,FT=()=>Dt.toasts,jT=()=>Dt.getActiveToasts();Object.assign(zT,{success:Dt.success,info:Dt.info,warning:Dt.warning,error:Dt.error,custom:Dt.custom,message:Dt.message,promise:Dt.promise,dismiss:Dt.dismiss,loading:Dt.loading},{getHistory:FT,getToasts:jT});function BT(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}BT(`:where(html[dir="ltr"]),:where([data-sonner-toaster][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%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][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%)}:where([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:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([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);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([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 #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([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)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[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;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
10left: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(--gray12);border:1px solid var(--gray4);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-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
10:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([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}:where([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}:where([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, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{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{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{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{0%{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-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--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-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-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-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, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
10--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-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-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],[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],[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],[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],[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:nth-child(1){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)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{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%)} 11`);function qa(e){return e.label!==void 0}var VT=3,UT="32px",ZT="16px",Cp=4e3,qT=356,WT=14,HT=20,GT=200;function cn(...e){return e.filter(Boolean).join(" ")}function YT(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var KT=e=>{var t,n,r,i,o,a,s,l,u,f,c;let{invert:h,toast:d,unstyled:p,interacting:m,setHeights:g,visibleToasts:y,heights:b,index:v,toasts:S,expanded:k,removeToast:w,defaultRichColors:C,closeButton:A,style:R,cancelButtonStyle:E,actionButtonStyle:M,className:P="",descriptionClassName:V="",duration:j,position:W,gap:G,loadingIcon:Y,expandByDefault:U,classNames:N,icons:T,closeButtonAriaLabel:he="Close toast",pauseWhenPageIsHidden:I}=e,[_,H]=L.useState(null),[q,K]=L.useState(null),[te,xe]=L.useState(!1),[z,J]=L.useState(!1),[se,D]=L.useState(!1),[Ye,pe]=L.useState(!1),[We,$e]=L.useState(!1),[wt,un]=L.useState(0),[rr,It]=L.useState(0),Gt=L.useRef(d.duration||j||Cp),Vn=L.useRef(null),Yt=L.useRef(null),ai=v
vendor: 5,352 bytes, line 11
11===0,ho=v+1<=y,$=d.type,F=d.dismissible!==!1,ne=d.className||"",le=d.descriptionClassName||"",ve=L.useMemo(()=>b.findIndex(re=>re.toastId===d.id)||0,[b,d.id]),Ke=L.useMemo(()=>{var re;return(re=d.closeButton)!=null?re:A},[d.closeButton,A]),jt=L.useMemo(()=>d.duration||j||Cp,[d.duration,j]),xt=L.useRef(0),$t=L.useRef(0),Kt=L.useRef(0),He=L.useRef(null),[Sn,Rt]=W.split("-"),Ua=L.useMemo(()=>b.reduce((re,ce,me)=>me>=ve?re:re+ce.height,0),[b,ve]),Za=OT(),xu=d.invert||h,tt=$==="loading";$t.current=L.useMemo(()=>ve*G+Ua,[ve,Ua]),L.useEffect(()=>{Gt.current=jt},[jt]),L.useEffect(()=>{xe(!0)},[]),L.useEffect(()=>{let re=Yt.current;if(re){let ce=re.getBoundingClientRect().height;return It(ce),g(me=>[{toastId:d.id,height:ce,position:d.position},...me]),()=>g(me=>me.filter(Je=>Je.toastId!==d.id))}},[g,d.id]),L.useLayoutEffect(()=>{if(!te)return;let re=Yt.current,ce=re.style.height;re.style.height="auto";let me=re.getBoundingClientRect().height;re.style.height=ce,It(me),g(Je=>Je.find(ut=>ut.toastId===d.id)?Je.map(ut=>ut.toastId===d.id?{...ut,height:me}:ut):[{toastId:d.id,height:me,position:d.position},...Je])},[te,d.title,d.description,g,d.id]);let Xe=L.useCallback(()=>{J(!0),un($t.current),g(re=>re.filter(ce=>ce.toastId!==d.id)),setTimeout(()=>{w(d)},GT)},[d,w,g,$t]);L.useEffect(()=>{if(d.promise&&$==="loading"||d.duration===1/0||d.type==="loading")return;let re;return k||m||I&&Za?(()=>{if(Kt.current<xt.current){let ce=new Date().getTime()-xt.current;Gt.current=Gt.current-ce}Kt.current=new Date().getTime()})():Gt.current!==1/0&&(xt.current=new Date().getTime(),re=setTimeout(()=>{var ce;(ce=d.onAutoClose)==null||ce.call(d,d),Xe()},Gt.current)),()=>clearTimeout(re)},[k,m,d,$,I,Za,Xe]),L.useEffect(()=>{d.delete&&Xe()},[Xe,d.delete]);function kt(){var re,ce,me;return T!=null&&T.loading?L.createElement("div",{className:cn(N==null?void 0:N.loader,(re=d==null?void 0:d.classNames)==null?void 0:re.loader,"sonner-loader"),"data-visible":$==="loading"},T.loading):Y?L.createElement("div",{className:cn(N==null?void 0:N.loader,(ce=d==null?void 0:d.classNames)==null?void 0:ce.loader,"sonner-loader"),"data-visible":$==="loading"},Y):L.createElement(AT,{className:cn(N==null?void 0:N.loader,(me=d==null?void 0:d.classNames)==null?void 0:me.loader),visible:$==="loading"})}return L.createElement("li",{tabIndex:0,ref:Yt,className:cn(P,ne,N==null?void 0:N.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[$],(n=d==null?void 0:d.classNames)==null?void 0:n[$]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:C,"data-styled":!(d.jsx||d.unstyled||p),"data-mounted":te,"data-promise":!!d.promise,"data-swiped":We,"data-removed":z,"data-visible":ho,"data-y-position":Sn,"data-x-position":Rt,"data-index":v,"data-front":ai,"data-swiping":se,"data-dismissible":F,"data-type":$,"data-invert":xu,"data-swipe-out":Ye,"data-swipe-direction":q,"data-expanded":!!(k||U&&te),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${z?wt:$t.current}px`,"--initial-height":U?"auto":`${rr}px`,...R,...d.style},onDragEnd:()=>{D(!1),H(null),He.current=null},onPointerDown:re=>{tt||!F||(Vn.current=new Date,un($t.current),re.target.setPointerCapture(re.pointerId),re.target.tagName!=="BUTTON"&&(D(!0),He.current={x:re.clientX,y:re.clientY}))},onPointerUp:()=>{var re,ce,me,Je;if(Ye||!F)return;He.current=null;let ut=Number(((re=Yt.current)==null?void 0:re.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Re=Number(((ce=Yt.current)==null?void 0:ce.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),yt=new Date().getTime()-((me=Vn.current)==null?void 0:me.getTime()),Qe=_==="x"?ut:Re,ct=Math.abs(Qe)/yt;if(Math.abs(Qe)>=HT||ct>.11){un($t.current),(Je=d.onDismiss)==null||Je.call(d,d),K(_==="x"?ut>0?"right":"left":Re>0?"down":"up"),Xe(),pe(!0),$e(!1);return}D(!1),H(null)},onPointerMove:re=>{var ce,me,Je,ut;if(!He.current||!F||((ce=window.getSelection())==null?void 0:ce.toString().length)>0)return;let Re=re.clientY-He.current.y,yt=re.clientX-He.current.x,Qe=(me=e.swipeDirections)!=null?me:YT(W);!_&&(Math.abs(yt)>1||Math.abs(Re)>1)&&H(Math.abs(yt)>Math.abs(Re)?"x":"y");let ct={x:0,y:0};_==="y"?(Qe.includes("top")||Qe.includes("bottom"))&&(Qe.includes("top")&&Re<0||Qe.includes("bottom")&&Re>0)&&(ct.y=Re):_==="x"&&(Qe.includes("left")||Qe.includes("right"))&&(Qe.includes("left")&&yt<0||Qe.includes("right")&&yt>0)&&(ct.x=yt),(Math.abs(ct.x)>0||Math.abs(ct.y)>0)&&$e(!0),(Je=Yt.current)==null||Je.style.setProperty("--swipe-amount-x",`${ct.x}px`),(ut=Yt.current)==null||ut.style.setProperty("--swipe-amount-y",`${ct.y}px`)}},Ke&&!d.jsx?L.createElement("button",{"aria-label":he,"data-disabled":tt,"data-close-button":!0,onClick:tt||!F?()=>{}:()=>{var re;Xe(),(re=d.onDismiss)==null||re.call(d,d)},className:cn(N==null?void 0:N.closeButton,(i=d==null?void 0:d.classNames)==null?void 0:i.closeButton)},(o=T==null?void 0:T.close)!=null?o:RT):null,d.jsx||x.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:L.createElement(L.Fragment,null,$||d.icon||d.promise?L.createElement("div",{"data-icon":"",className:cn(N==null?void 0:N.icon,(a=d==null?void 0:d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||kt():null,d.type!=="loading"?d.icon||(T==null?void 0:T[$])||ET($):null):null,
vendor: 7,300 bytes, lines 11-16
11L.createElement("div",{"data-content":"",className:cn(N==null?void 0:N.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},L.createElement("div",{"data-title":"",className:cn(N==null?void 0:N.title,(l=d==null?void 0:d.classNames)==null?void 0:l.title)},typeof d.title=="function"?d.title():d.title),d.description?L.createElement("div",{"data-description":"",className:cn(V,le,N==null?void 0:N.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),x.isValidElement(d.cancel)?d.cancel:d.cancel&&qa(d.cancel)?L.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||E,onClick:re=>{var ce,me;qa(d.cancel)&&F&&((me=(ce=d.cancel).onClick)==null||me.call(ce,re),Xe())},className:cn(N==null?void 0:N.cancelButton,(f=d==null?void 0:d.classNames)==null?void 0:f.cancelButton)},d.cancel.label):null,x.isValidElement(d.action)?d.action:d.action&&qa(d.action)?L.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||M,onClick:re=>{var ce,me;qa(d.action)&&((me=(ce=d.action).onClick)==null||me.call(ce,re),!re.defaultPrevented&&Xe())},className:cn(N==null?void 0:N.actionButton,(c=d==null?void 0:d.classNames)==null?void 0:c.actionButton)},d.action.label):null))};function Ap(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function XT(e,t){let n={};return[e,t].forEach((r,i)=>{let o=i===1,a=o?"--mobile-offset":"--offset",s=o?ZT:UT;function l(u){["top","right","bottom","left"].forEach(f=>{n[`${a}-${f}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?l(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${a}-${u}`]=s:n[`${a}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):l(s)}),n}var rie=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:i=["altKey","KeyT"],expand:o,closeButton:a,className:s,offset:l,mobileOffset:u,theme:f="light",richColors:c,duration:h,style:d,visibleToasts:p=VT,toastOptions:m,dir:g=Ap(),gap:y=WT,loadingIcon:b,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:k}=e,[w,C]=L.useState([]),A=L.useMemo(()=>Array.from(new Set([r].concat(w.filter(I=>I.position).map(I=>I.position)))),[w,r]),[R,E]=L.useState([]),[M,P]=L.useState(!1),[V,j]=L.useState(!1),[W,G]=L.useState(f!=="system"?f:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Y=L.useRef(null),U=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=L.useRef(null),T=L.useRef(!1),he=L.useCallback(I=>{C(_=>{var H;return(H=_.find(q=>q.id===I.id))!=null&&H.delete||Dt.dismiss(I.id),_.filter(({id:q})=>q!==I.id)})},[]);return L.useEffect(()=>Dt.subscribe(I=>{if(I.dismiss){C(_=>_.map(H=>H.id===I.id?{...H,delete:!0}:H));return}setTimeout(()=>{H_.flushSync(()=>{C(_=>{let H=_.findIndex(q=>q.id===I.id);return H!==-1?[..._.slice(0,H),{..._[H],...I},..._.slice(H+1)]:[I,..._]})})})}),[]),L.useEffect(()=>{if(f!=="system"){G(f);return}if(f==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;let I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:_})=>{G(_?"dark":"light")})}catch{I.addListener(({matches:H})=>{try{G(H?"dark":"light")}catch(q){console.error(q)}})}},[f]),L.useEffect(()=>{w.length<=1&&P(!1)},[w]),L.useEffect(()=>{let I=_=>{var H,q;i.every(K=>_[K]||_.code===K)&&(P(!0),(H=Y.current)==null||H.focus()),_.code==="Escape"&&(document.activeElement===Y.current||(q=Y.current)!=null&&q.contains(document.activeElement))&&P(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[i]),L.useEffect(()=>{if(Y.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,T.current=!1)}},[Y.current]),L.createElement("section",{ref:t,"aria-label":`${S} ${U}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((I,_)=>{var H;let[q,K]=I.split("-");return w.length?L.createElement("ol",{key:I,dir:g==="auto"?Ap():g,tabIndex:-1,ref:Y,className:s,"data-sonner-toaster":!0,"data-theme":W,"data-y-position":q,"data-lifted":M&&w.length>1&&!o,"data-x-position":K,style:{"--front-toast-height":`${((H=R[0])==null?void 0:H.height)||0}px`,"--width":`${qT}px`,"--gap":`${y}px`,...d,...XT(l,u)},onBlur:te=>{T.current&&!te.currentTarget.contains(te.relatedTarget)&&(T.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||T.current||(T.current=!0,N.current=te.relatedTarget)},onMouseEnter:()=>P(!0),onMouseMove:()=>P(!0),onMouseLeave:()=>{V||P(!1)},onDragEnd:()=>P(!1),onPointerDown:te=>{te.target instanceof HTMLElement&&te.target.dataset.dismissible==="false"||j(!0)},onPointerUp:()=>j(!1)},w.filter(te=>!te.position&&_===0||te.position===I).map((te,xe)=>{var z,J;return L.createElement(KT,{key:te.id,icons:v,index:xe,toast:te,defaultRichColors:c,duration:(z=m==null?void 0:m.duration)!=null?z:h,className:m==null?void 0:m.className,descriptionClassName:m==null?void 0:m.descriptionClassName,invert:n,visibleToasts:p,closeButton:(J=m==null?void 0:m.closeButton)!=null?J:a,interacting:V,position:I,style:m==null?void 0:m.style,unstyled:m==null?void 0:m.unstyled,classNames:m==null?void 0:m.classNames,cancelButtonStyle:m==null?void 0:m.cancelButtonStyle,actionButtonStyle:m==null?void 0:m.actionButtonStyle,removeToast:he,toasts:w.filter(se=>se.position==te.position),heights:R.filter(se=>se.position==te.position),setHeights:E,expandByDefault:o,gap:y,loadingIcon:b,expanded:M,pauseWhenPageIsHidden:k,swipeDirections:e.swipeDirections})})):null}))});function Q0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Q0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function JT(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Q0(e))&&(r&&(r+=" "),r+=t);return r}const Mp=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Pp=JT,iie=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Pp(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:o}=t,a=Object.keys(i).map(u=>{const f=n==null?void 0:n[u],c=o==null?void 0:o[u];if(f===null)return null;const h=Mp(f)||Mp(c);return i[u][h]}),s=n&&Object.entries(n).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),l=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...d}=f;return Object.entries(d).every(p=>{let[m,g]=p;return Array.isArray(g)?g.includes({...o,...s}[m]):{...o,...s}[m]===g})?[...u,c,h]:u},[]);return Pp(e,a,l,n==null?void 0:n.class,n==null?void 0:n.className)};/** 12 * @license lucide-react v0.462.0 - ISC 13 * 14 * This source code is licensed under the ISC license. 15 * See the LICENSE file in the root directory of this source tree. 16 */const QT=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),eb=(...e)=>
vendor: 5,456 bytes, lines 16-100
16e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** 17 * @license lucide-react v0.462.0 - ISC 18 * 19 * This source code is licensed under the ISC license. 20 * See the LICENSE file in the root directory of this source tree. 21 */var eE={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"};/** 22 * @license lucide-react v0.462.0 - ISC 23 * 24 * This source code is licensed under the ISC license. 25 * See the LICENSE file in the root directory of this source tree. 26 */const tE=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:a,...s},l)=>x.createElement("svg",{ref:l,...eE,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:eb("lucide",i),...s},[...a.map(([u,f])=>x.createElement(u,f)),...Array.isArray(o)?o:[o]]));/** 27 * @license lucide-react v0.462.0 - ISC 28 * 29 * This source code is licensed under the ISC license. 30 * See the LICENSE file in the root directory of this source tree. 31 */const ae=(e,t)=>{const n=x.forwardRef(({className:r,...i},o)=>x.createElement(tE,{ref:o,iconNode:t,className:eb(`lucide-${QT(e)}`,r),...i}));return n.displayName=`${e}`,n};/** 32 * @license lucide-react v0.462.0 - ISC 33 * 34 * This source code is licensed under the ISC license. 35 * See the LICENSE file in the root directory of this source tree. 36 */const oie=ae("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** 37 * @license lucide-react v0.462.0 - ISC 38 * 39 * This source code is licensed under the ISC license. 40 * See the LICENSE file in the root directory of this source tree. 41 */const aie=ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 42 * @license lucide-react v0.462.0 - ISC 43 * 44 * This source code is licensed under the ISC license. 45 * See the LICENSE file in the root directory of this source tree. 46 */const sie=ae("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** 47 * @license lucide-react v0.462.0 - ISC 48 * 49 * This source code is licensed under the ISC license. 50 * See the LICENSE file in the root directory of this source tree. 51 */const lie=ae("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/** 52 * @license lucide-react v0.462.0 - ISC 53 * 54 * This source code is licensed under the ISC license. 55 * See the LICENSE file in the root directory of this source tree. 56 */const uie=ae("ChartColumn",[["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"}]]);/** 57 * @license lucide-react v0.462.0 - ISC 58 * 59 * This source code is licensed under the ISC license. 60 * See the LICENSE file in the root directory of this source tree. 61 */const cie=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 62 * @license lucide-react v0.462.0 - ISC 63 * 64 * This source code is licensed under the ISC license. 65 * See the LICENSE file in the root directory of this source tree. 66 */const fie=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 67 * @license lucide-react v0.462.0 - ISC 68 * 69 * This source code is licensed under the ISC license. 70 * See the LICENSE file in the root directory of this source tree. 71 */const die=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 72 * @license lucide-react v0.462.0 - ISC 73 * 74 * This source code is licensed under the ISC license. 75 * See the LICENSE file in the root directory of this source tree. 76 */const hie=ae("CircleAlert",[["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"}]]);/** 77 * @license lucide-react v0.462.0 - ISC 78 * 79 * This source code is licensed under the ISC license. 80 * See the LICENSE file in the root directory of this source tree. 81 */const pie=ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 82 * @license lucide-react v0.462.0 - ISC 83 * 84 * This source code is licensed under the ISC license. 85 * See the LICENSE file in the root directory of this source tree. 86 */const mie=ae("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 87 * @license lucide-react v0.462.0 - ISC 88 * 89 * This source code is licensed under the ISC license. 90 * See the LICENSE file in the root directory of this source tree. 91 */const gie=ae("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** 92 * @license lucide-react v0.462.0 - ISC 93 * 94 * This source code is licensed under the ISC license. 95 * See the LICENSE file in the root directory of this source tree. 96 */const yie=ae("CloudUpload",[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]]);/** 97 * @license lucide-react v0.462.0 - ISC 98 * 99 * This source code is licensed under the ISC license. 100 * See the LICENSE file in the root directory of this source tree.
101 */const vie=ae("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"}]]);/** 102 * @license lucide-react v0.462.0 - ISC 103 * 104 * This source code is licensed under the ISC license. 105 * See the LICENSE file in the root directory of this source tree. 106 */const bie=ae("ExternalLink",[["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"}]]);/** 107 * @license lucide-react v0.462.0 - ISC 108 * 109 * This source code is licensed under the ISC license. 110 * See the LICENSE file in the root directory of this source tree. 111 */const wie=ae("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"}]]);/** 112 * @license lucide-react v0.462.0 - ISC 113 * 114 * This source code is licensed under the ISC license. 115 * See the LICENSE file in the root directory of this source tree. 116 */const xie=ae("FileImage",[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]);/** 117 * @license lucide-react v0.462.0 - ISC 118 * 119 * This source code is licensed under the ISC license. 120 * See the LICENSE file in the root directory of this source tree. 121 */const kie=ae("FileSpreadsheet",[["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:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]]);/** 122 * @license lucide-react v0.462.0 - ISC 123 * 124 * This source code is licensed under the ISC license. 125 * See the LICENSE file in the root directory of this source tree. 126 */const Sie=ae("FileText",[["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"}]]);/** 127 * @license lucide-react v0.462.0 - ISC 128 * 129 * This source code is licensed under the ISC license. 130 * See the LICENSE file in the root directory of this source tree. 131 */const _ie=ae("File",[["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"}]]);/** 132 * @license lucide-react v0.462.0 - ISC 133 * 134 * This source code is licensed under the ISC license. 135 * See the LICENSE file in the root directory of this source tree. 136 */const Tie=ae("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** 137 * @license lucide-react v0.462.0 - ISC 138 * 139 * This source code is licensed under the ISC license. 140 * See the LICENSE file in the root directory of this source tree. 141 */const Eie=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 142 * @license lucide-react v0.462.0 - ISC 143 * 144 * This source code is licensed under the ISC license. 145 * See the LICENSE file in the root directory of this source tree. 146 */const Cie=ae("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 147 * @license lucide-react v0.462.0 - ISC 148 * 149 * This source code is licensed under the ISC license. 150 * See the LICENSE file in the root directory of this source tree. 151 */const Aie=ae("MapPin",[["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"}]]);/** 152 * @license lucide-react v0.462.0 - ISC 153 * 154 * This source code is licensed under the ISC license. 155 * See the LICENSE file in the root directory of this source tree. 156 */const Mie=ae("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 157 * @license lucide-react v0.462.0 - ISC 158 * 159 * This source code is licensed under the ISC license. 160 * See the LICENSE file in the root directory of this source tree. 161 */const Pie=ae("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 162 * @license lucide-react v0.462.0 - ISC 163 * 164 * This source code is licensed under the ISC license. 165 * See the LICENSE file in the root directory of this source tree. 166 */const Iie=ae("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);/** 167 * @license lucide-react v0.462.0 - ISC 168 * 169 * This source code is licensed under the ISC license. 170 * See the LICENSE file in the root directory of this source tree. 171 */const $ie=ae("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/** 172 * @license lucide-react v0.462.0 - ISC 173 * 174 * This source code is licensed under the ISC license. 175 * See the LICENSE file in the root directory of this source tree. 176 */const Rie=ae("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/** 177 * @license lucide-react v0.462.0 - ISC 178 * 179 * This source code is licensed under the ISC license. 180 * See the LICENSE file in the root directory of this source tree. 181 */const Oie=ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 182 * @license lucide-react v0.462.0 - ISC 183 * 184 * This source code is licensed under the ISC license. 185 * See the LICENSE file in the root directory of this source tree. 186 */const Die=ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 187 * @license lucide-react v0.462.0 - ISC 188 * 189 * This source code is licensed under the ISC license. 190 * See the LICENSE file in the root directory of this source tree. 191 */const Nie=ae("RefreshCw",[["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"}]]);/** 192 * @license lucide-react v0.462.0 - ISC 193 * 194 * This source code is licensed under the ISC license. 195 * See the LICENSE file in the root directory of this source tree. 196 */const Lie=ae("RotateCw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]);/** 197 * @license lucide-react v0.462.0 - ISC 198 * 199 * This source code is licensed under the ISC license. 200 * See the LICENSE file in the root directory of this source tree.
201 */const zie=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 202 * @license lucide-react v0.462.0 - ISC 203 * 204 * This source code is licensed under the ISC license. 205 * See the LICENSE file in the root directory of this source tree. 206 */const Fie=ae("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"}]]);/** 207 * @license lucide-react v0.462.0 - ISC 208 * 209 * This source code is licensed under the ISC license. 210 * See the LICENSE file in the root directory of this source tree. 211 */const jie=ae("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 212 * @license lucide-react v0.462.0 - ISC 213 * 214 * This source code is licensed under the ISC license. 215 * See the LICENSE file in the root directory of this source tree. 216 */const Bie=ae("ShieldAlert",[["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"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/** 217 * @license lucide-react v0.462.0 - ISC 218 * 219 * This source code is licensed under the ISC license. 220 * See the LICENSE file in the root directory of this source tree. 221 */const Vie=ae("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 222 * @license lucide-react v0.462.0 - ISC 223 * 224 * This source code is licensed under the ISC license. 225 * See the LICENSE file in the root directory of this source tree. 226 */const Uie=ae("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"}]]);/** 227 * @license lucide-react v0.462.0 - ISC 228 * 229 * This source code is licensed under the ISC license. 230 * See the LICENSE file in the root directory of this source tree. 231 */const Zie=ae("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/** 232 * @license lucide-react v0.462.0 - ISC 233 * 234 * This source code is licensed under the ISC license. 235 * See the LICENSE file in the root directory of this source tree. 236 */const qie=ae("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 237 * @license lucide-react v0.462.0 - ISC 238 * 239 * This source code is licensed under the ISC license. 240 * See the LICENSE file in the root directory of this source tree. 241 */const Wie=ae("Trash2",[["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"}]]);/** 242 * @license lucide-react v0.462.0 - ISC 243 * 244 * This source code is licensed under the ISC license. 245 * See the LICENSE file in the root directory of this source tree. 246 */const Hie=ae("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 247 * @license lucide-react v0.462.0 - ISC 248 * 249 * This source code is licensed under the ISC license. 250 * See the LICENSE file in the root directory of this source tree. 251 */const Gie=ae("TriangleAlert",[["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"}]]);/** 252 * @license lucide-react v0.462.0 - ISC 253 * 254 * This source code is licensed under the ISC license. 255 * See the LICENSE file in the root directory of this source tree. 256 */const Yie=ae("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/** 257 * @license lucide-react v0.462.0 - ISC 258 * 259 * This source code is licensed under the ISC license. 260 * See the LICENSE file in the root directory of this source tree. 261 */const Kie=ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 262 * @license lucide-react v0.462.0 - ISC 263 * 264 * This source code is licensed under the ISC license. 265 * See the LICENSE file in the root directory of this source tree. 266 */const Xie=ae("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/** 267 * @license lucide-react v0.462.0 - ISC 268 * 269 * This source code is licensed under the ISC license. 270 * See the LICENSE file in the root directory of this source tree. 271 */const Jie=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 5,915 bytes, line 271
271],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pd="-",nE=e=>{const t=iE(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:a=>{const s=a.split(pd);return s[0]===""&&s.length!==1&&s.shift(),tb(s,t)||rE(a)},getConflictingClassGroupIds:(a,s)=>{const l=n[a]||[];return s&&r[a]?[...l,...r[a]]:l}}},tb=(e,t)=>{var a;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),i=r?tb(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;const o=e.join(pd);return(a=t.validators.find(({validator:s})=>s(o)))==null?void 0:a.classGroupId},Ip=/^\[(.+)\]$/,rE=e=>{if(Ip.test(e)){const t=Ip.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},iE=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return aE(Object.entries(e.classGroups),n).forEach(([o,a])=>{jc(a,r,o,t)}),r},jc=(e,t,n,r)=>{e.forEach(i=>{if(typeof i=="string"){const o=i===""?t:$p(t,i);o.classGroupId=n;return}if(typeof i=="function"){if(oE(i)){jc(i(r),t,n,r);return}t.validators.push({validator:i,classGroupId:n});return}Object.entries(i).forEach(([o,a])=>{jc(a,$p(t,o),n,r)})})},$p=(e,t)=>{let n=e;return t.split(pd).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},oE=e=>e.isThemeGetter,aE=(e,t)=>t?e.map(([n,r])=>{const i=r.map(o=>typeof o=="string"?t+o:typeof o=="object"?Object.fromEntries(Object.entries(o).map(([a,s])=>[t+a,s])):o);return[n,i]}):e,sE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const i=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(o){let a=n.get(o);if(a!==void 0)return a;if((a=r.get(o))!==void 0)return i(o,a),a},set(o,a){n.has(o)?n.set(o,a):i(o,a)}}},nb="!",lE=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,i=t[0],o=t.length,a=s=>{const l=[];let u=0,f=0,c;for(let g=0;g<s.length;g++){let y=s[g];if(u===0){if(y===i&&(r||s.slice(g,g+o)===t)){l.push(s.slice(f,g)),f=g+o;continue}if(y==="/"){c=g;continue}}y==="["?u++:y==="]"&&u--}const h=l.length===0?s:s.substring(f),d=h.startsWith(nb),p=d?h.substring(1):h,m=c&&c>f?c-f:void 0;return{modifiers:l,hasImportantModifier:d,baseClassName:p,maybePostfixModifierPosition:m}};return n?s=>n({className:s,parseClassName:a}):a},uE=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},cE=e=>({cache:sE(e.cacheSize),parseClassName:lE(e),...nE(e)}),fE=/\s+/,dE=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,o=[],a=e.trim().split(fE);let s="";for(let l=a.length-1;l>=0;l-=1){const u=a[l],{modifiers:f,hasImportantModifier:c,baseClassName:h,maybePostfixModifierPosition:d}=n(u);let p=!!d,m=r(p?h.substring(0,d):h);if(!m){if(!p){s=u+(s.length>0?" "+s:s);continue}if(m=r(h),!m){s=u+(s.length>0?" "+s:s);continue}p=!1}const g=uE(f).join(":"),y=c?g+nb:g,b=y+m;if(o.includes(b))continue;o.push(b);const v=i(m,p);for(let S=0;S<v.length;++S){const k=v[S];o.push(y+k)}s=u+(s.length>0?" "+s:s)}return s};function hE(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=rb(t))&&(r&&(r+=" "),r+=n);return r}const rb=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=rb(e[r]))&&(n&&(n+=" "),n+=t);return n};function pE(e,...t){let n,r,i,o=a;function a(l){const u=t.reduce((f,c)=>c(f),e());return n=cE(u),r=n.cache.get,i=n.cache.set,o=s,s(l)}function s(l){const u=r(l);if(u)return u;const f=dE(l,n);return i(l,f),f}return function(){return o(hE.apply(null,arguments))}}const Le=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},ib=/^\[(?:([a-z-]+):)?(.+)\]$/i,mE=/^\d+\/\d+$/,gE=new Set(["px","full","screen"]),yE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,vE=/\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$/,bE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,wE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Un=e=>Mi(e)||gE.has(e)||mE.test(e),or=e=>Zi(e,"length",ME),Mi=e=>!!e&&!Number.isNaN(Number(e)),_u=e=>Zi(e,"number",Mi),yo=e=>!!e&&Number.isInteger(Number(e)),kE=e=>e.endsWith("%")&&Mi(e.slice(0,-1)),fe=e=>ib.test(e),ar=e=>yE.test(e),SE=new Set(["length","size","percentage"]),_E=e=>Zi(e,SE,ob),TE=e=>Zi(e,"position",ob),EE=new Set(["image","url"]),CE=e=>Zi(e,EE,IE),AE=e=>Zi(e,"",PE),vo=()=>!0,Zi=(e,t,n)=>{const r=ib.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},ME=e=>vE.test(e)&&!bE.test(e),ob=()=>!1,PE=e=>wE.test(e),IE=e=>xE.test(e),$E=()=>{const e=Le("colors"),t=Le("spacing"),n=Le("blur"),r=Le("brightness"),i=Le("borderColor"),o=Le("borderRadius"),a=Le("borderSpacing"),s=Le("borderWidth"),l=Le("contrast"),u=Le("grayscale"),f=Le("hueRotate"),c=Le("invert"),h=Le("gap"),d=Le("gradientColorStops"),p=Le("gradientColorStopPositions"),m=Le("inset"),g=Le("margin"),y=Le("opacity"),b=Le("padding"),v=Le("saturate"),S=Le("scale"),k=Le("sepia"),w=Le("skew"),C=Le("space"),A=Le("translate"),R=()=>["auto","contain","none"],E=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto",fe,t],P=()=>[fe,t],V=()=>["",Un,or],j=()=>["auto",Mi,fe],W=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],G=()=>["solid","dashed","dotted","double","none"],Y=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",fe],T=()=>["auto","avoid","all","avoid-page","page","left","right","column"],he=()=>[Mi,fe];return{cacheSize:500,separator:":",theme:{colors:[vo],spacing:[Un,or],blur:["none","",ar,fe],brightness:he(),borderColor:[e],borderRadius:["n
271one","","full",ar,fe],borderSpacing:P(),borderWidth:V(),contrast:he(),grayscale:N(),hueRotate:he(),invert:N(),gap:P(),gradientColorStops:[e],gradientColorStopPositions:[kE,or],inset:M(),margin:M(),opacity:he(),padding:P(),saturate:he(),scale:he(),sepia:N(),skew:he(),space:P(),translate:P()},classGroups:{aspect:[{aspect:["auto","square","video",fe]}],container:["container"],columns:[{columns:[ar]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...W(),fe]}],overflow:[{overflow:E()}],"overflow-x":[{"overflow-x":E()}],"overflow-y":[{"overflow-y":E()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[m]}],"inset-x":[{"inset-x":[m]}],"inset-y":[{"inset-y":[m]}],start:[{start:[m]}],end:[{end:[m]}],top:[{top:[m]}],right:[{right:[m]}],bottom:[{bottom:[m]}],left:[{left:[m]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",yo,fe]}],basis:[{basis:M()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",fe]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",yo,fe]}],"grid-cols":[{"grid-cols":[vo]}],"col-start-end":[{col:["auto",{span:["full",yo,fe]},fe]}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":[vo]}],"row-start-end":[{row:["auto",{span:[yo,fe]},fe]}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",fe]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",fe]}],gap:[{gap:[h]}],"gap-x":[{"gap-x":[h]}],"gap-y":[{"gap-y":[h]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[C]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",fe,t]}],"min-w":[{"min-w":[fe,t,"min","max","fit"]}],"max-w":[{"max-w":[fe,t,"none","full","min","max","fit","prose",{screen:[ar]},ar]}],h:[{h:[fe,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[fe,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[fe,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ar,or]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_u]}],"font-family":[{font:[vo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",fe]}],"line-clamp":[{"line-clamp":["none",Mi,_u]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Un,fe]}],"list-image":[{"list-image":["none",fe]}],"list-style-type":[{list:["none","disc","decimal",fe]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...G(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Un,or]}],"underline-offset":[{"underline-offset":["auto",Un,fe]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...W(),TE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_E]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},CE]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}
271],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[y]}],"border-style":[{border:[...G(),"hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[y]}
vendor: 4,469 bytes, line 271
271],"divide-style":[{divide:G()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-s":[{"border-s":[i]}],"border-color-e":[{"border-e":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:["",...G()]}],"outline-offset":[{"outline-offset":[Un,fe]}],"outline-w":[{outline:[Un,or]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:V()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[Un,or]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ar,AE]}],"shadow-color":[{shadow:[vo]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...Y(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":Y()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",ar,fe]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[f]}],invert:[{invert:[c]}],saturate:[{saturate:[v]}],sepia:[{sepia:[k]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[f]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[k]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",fe]}],duration:[{duration:he()}],ease:[{ease:["linear","in","out","in-out",fe]}],delay:[{delay:he()}],animate:[{animate:["none","spin","ping","pulse","bounce",fe]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[yo,fe]}],"translate-x":[{"translate-x":[A]}],"translate-y":[{"translate-y":[A]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",fe]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",fe]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",fe]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Un,or,_u]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","
271none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Qie=pE($E),RE=["top","right","bottom","left"],vr=Math.min,Vt=Math.max,Ps=Math.round,Wa=Math.floor,$n=e=>({x:e,y:e}),OE={left:"right",right:"left",bottom:"top",top:"bottom"},DE={start:"end",end:"start"};function Bc(e,t,n){return Vt(e,vr(t,n))}function Hn(e,t){return typeof e=="function"?e(t):e}function Gn(e){return e.split("-")[0]}function qi(e){return e.split("-")[1]}function md(e){return e==="x"?"y":"x"}function gd(e){return e==="y"?"height":"width"}const NE=new Set(["top","bottom"]);function Pn(e){return NE.has(Gn(e))?"y":"x"}function yd(e){return md(Pn(e))}function LE(e,t,n){n===void 0&&(n=!1);const r=qi(e),i=yd(e),o=gd(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Is(a)),[a,Is(a)]}function zE(e){const t=Is(e);return[Vc(e),t,Vc(t)]}function Vc(e){return e.replace(/start|end/g,t=>DE[t])}const Rp=["left","right"],Op=["right","left"],FE=["top","bottom"],jE=["bottom","top"];function BE(e,t,n){switch(e){case"top":case"bottom":return n?t?Op:Rp:t?Rp:Op;case"left":case"right":return t?FE:jE;default:return[]}}function VE(e,t,n,r){const i=qi(e);let o=BE(Gn(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Vc)))),o}function Is(e){return e.replace(/left|right|bottom|top/g,t=>OE[t])}function UE(e){return{top:0,right:0,bottom:0,left:0,...e}}function ab(e){return typeof e!="number"?UE(e):{top:e,right:e,bottom:e,left:e}}function $s(e){const{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 Dp(e,t,n){let{reference:r,floating:i}=e;const o=Pn(t),a=yd(t),s=gd(a),l=Gn(t),u=o==="y",f=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2,h=r[s]/2-i[s]/2;let d;switch(l){case"top":d={x:f,y:r.y-i.height};break;case"bottom":d={x:f,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:c};break;case"left":d={x:r.x-i.width,y:c};break;default:d={x:r.x,y:r.y}}switch(qi(t)){case"start":d[a]-=h*(n&&u?-1:1);break;case"end":d[a]+=h*(n&&u?-1:1);break}return d}const ZE=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}
vendor: 9,931 bytes, line 271
271=n,s=o.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:c}=Dp(u,r,l),h=r,d={},p=0;for(let m=0;m<s.length;m++){const{name:g,fn:y}=s[m],{x:b,y:v,data:S,reset:k}=await y({x:f,y:c,initialPlacement:r,placement:h,strategy:i,middlewareData:d,rects:u,platform:a,elements:{reference:e,floating:t}});f=b??f,c=v??c,d={...d,[g]:{...d[g],...S}},k&&p<=50&&(p++,typeof k=="object"&&(k.placement&&(h=k.placement),k.rects&&(u=k.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):k.rects),{x:f,y:c}=Dp(u,h,l)),m=-1)}return{x:f,y:c,placement:h,strategy:i,middlewareData:d}};async function Ko(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:c="floating",altBoundary:h=!1,padding:d=0}=Hn(t,e),p=ab(d),g=s[h?c==="floating"?"reference":"floating":c],y=$s(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:f,strategy:l})),b=c==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),S=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},k=$s(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(y.top-k.top+p.top)/S.y,bottom:(k.bottom-y.bottom+p.bottom)/S.y,left:(y.left-k.left+p.left)/S.x,right:(k.right-y.right+p.right)/S.x}}const qE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=Hn(e,t)||{};if(u==null)return{};const c=ab(f),h={x:n,y:r},d=yd(i),p=gd(d),m=await a.getDimensions(u),g=d==="y",y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",S=o.reference[p]+o.reference[d]-h[d]-o.floating[p],k=h[d]-o.reference[d],w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let C=w?w[v]:0;(!C||!await(a.isElement==null?void 0:a.isElement(w)))&&(C=s.floating[v]||o.floating[p]);const A=S/2-k/2,R=C/2-m[p]/2-1,E=vr(c[y],R),M=vr(c[b],R),P=E,V=C-m[p]-M,j=C/2-m[p]/2+A,W=Bc(P,j,V),G=!l.arrow&&qi(i)!=null&&j!==W&&o.reference[p]/2-(j<P?E:M)-m[p]/2<0,Y=G?j<P?j-P:j-V:0;return{[d]:h[d]+Y,data:{[d]:W,centerOffset:j-W-Y,...G&&{alignmentOffset:Y}},reset:G}}}),WE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=Hn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Gn(i),b=Pn(s),v=Gn(s)===s,S=await(l.isRTL==null?void 0:l.isRTL(u.floating)),k=h||(v||!m?[Is(s)]:zE(s)),w=p!=="none";!h&&w&&k.push(...VE(s,m,p,S));const C=[s,...k],A=await Ko(t,g),R=[];let E=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&R.push(A[y]),c){const j=LE(i,a,S);R.push(A[j[0]],A[j[1]])}if(E=[...E,{placement:i,overflows:R}],!R.every(j=>j<=0)){var M,P;const j=(((M=o.flip)==null?void 0:M.index)||0)+1,W=C[j];if(W&&(!(c==="alignment"?b!==Pn(W):!1)||E.every(U=>U.overflows[0]>0&&Pn(U.placement)===b)))return{data:{index:j,overflows:E},reset:{placement:W}};let G=(P=E.filter(Y=>Y.overflows[0]<=0).sort((Y,U)=>Y.overflows[1]-U.overflows[1])[0])==null?void 0:P.placement;if(!G)switch(d){case"bestFit":{var V;const Y=(V=E.filter(U=>{if(w){const N=Pn(U.placement);return N===b||N==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(N=>N>0).reduce((N,T)=>N+T,0)]).sort((U,N)=>U[1]-N[1])[0])==null?void 0:V[0];Y&&(G=Y);break}case"initialPlacement":G=s;break}if(i!==G)return{reset:{placement:G}}}return{}}}};function Np(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lp(e){return RE.some(t=>e[t]>=0)}const HE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Hn(e,t);switch(r){case"referenceHidden":{const o=await Ko(t,{...i,elementContext:"reference"}),a=Np(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Lp(a)}}}case"escaped":{const o=await Ko(t,{...i,altBoundary:!0}),a=Np(o,n.floating);return{data:{escapedOffsets:a,escaped:Lp(a)}}}default:return{}}}}},sb=new Set(["left","top"]);async function GE(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Gn(n),s=qi(n),l=Pn(n)==="y",u=sb.has(a)?-1:1,f=o&&l?-1:1,c=Hn(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&typeof p=="number"&&(d=s==="end"?p*-1:p),l?{x:d*f,y:h*u}:{x:h*u,y:d*f}}const YE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await GE(t,e);return a===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},KE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:y,y:b}=g;return{x:y,y:b}}},...l}=Hn(e,t),u={x:n,y:r},f=await Ko(t,l),c=Pn(Gn(i)),h=md(c);let d=u[h],p=u[c];if(o){const g=h==="y"?"top":"left",y=h==="y"?"bottom":"right",b=d+f[g],v=d-f[y];d=Bc(b,d,v)}if(a){const g=c==="y"?"top":"left",y=c==="y"?"bottom":"right",b=p+f[g],v=p-f[y];p=Bc(b,p,v)}const m=s.fn({...t,[h]:d,[c]:p});return{...m,data:{x:m.x-n,y:m.y-r,enabled:{[h]:o,[c]:a}}}}}},XE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Hn(e,t),f={x:n,y:r},c=Pn(i),h=md(c);let d=f[h],p=f[c];const m=Hn(s,t),g=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const v=h==="y"?"height":"width",S=o.reference[h]-o.floating[v]+g.mainAxis,k=o.reference[h]+o.reference[v]-g.mainAxis;d<S?d=S:d>k&&(d=k)}if(u){var y,b;const v=h==="y"?"width":"height",S=sb.has(Gn(i)),k=o.reference[c]-o.floating[v]+(S&&((y=a.offset)==null?void 0:y[c])||0)+(S?0:g.crossAxis),w=o.reference[c]+o.reference[v]+(S?0:((b=a.offset)==null?void 0:b[c])||0)-(S?g.crossAxis:0);p<k?p=k:p>w&&(p=w)}return{[h]:d,[c]:p}}}},JE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Hn(e,t),f=await Ko(t,u),c=Gn(i),h=qi(i),d=Pn(i)==="y",{width:p,height:m}=o.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=h==="end"?"top":"bottom");const b=m-f.top-f.bottom,v=p-f.left-f.right,S=vr(m-f[g],b),k=vr(p-f[y],v),w=!t.middlewareData.shift;let C=S,A=k;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=b),w&&!h){const E=Vt(f.left,0),M=Vt(f.right,0),P=Vt(f.top,0),V=Vt(f.bottom,0);d?A=p-2*(E!==0||M!==0?E+M:Vt(f.left,f.right)):C=m-2*(P!==0||V!==0?P+V:Vt(f.top,f.bottom))}await l({...t,availableWidth:A,availableHeight:C});const R=await a.getDimensions(s.floating);return p!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function El(){return typeof window<"u"}function Wi(e){return lb(e)?(e.nodeName||"").toLowerCase():"#document"}function Zt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Fn(e){var t;return(t=(lb(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function lb(e){return El()?e instanceof Node||e instanceof Zt(e).Node:!1}function bn(e){return El()?e instanceof Element||e instanceof Zt(e).Element:!1}function Dn(e){return El()?e instanceof HTMLElement||e instanceof Zt(e).HTMLElement:!1}function zp(e){return!El()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Zt(e).ShadowRoot}const QE=new Set(["inline","contents"]);function xa(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=wn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!QE.has(i)}const eC=new Set(["table","td","th"]);function tC(e){return eC.has(Wi(e))}const nC=[":popover-open",":modal"];function Cl(e){return nC.some(t=>{try{return e.matches(t)}catch{return!1}})}const rC=["transform","translate","scale","rotate","perspective"],iC=["transform","translate","scale","rotate","perspective","filter"],oC=["paint","layout","strict","content"];function vd(e){const t=bd(),n=bn(e)?wn(e):e;return rC.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||iC.some(r=>(n.willChange||"").includes(r))||oC.some(r=>(n.contain||"").includes(r))}function aC(e){let t=br(e);for(;Dn(t)&&!Di(t);){if(vd(t))return t;if(Cl(t))return null;t=br(t)}return null}function bd(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const sC=new Set(["html","body","#document"]);function Di(e){return sC.has(Wi(e))}function wn(e){return Zt(e).getComputedStyle(e)}function Al(e){return bn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function br(e){if(Wi(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zp(e)&&e.host||Fn(e);return zp(t)?t.host:t}function ub(e){const t=br(e);return Di(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dn(t)&&xa(t)?t:ub(t)}function Xo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=ub(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=Zt(i);if(o){const s=Uc(a);
vendor: 3,862 bytes, line 271
271return t.concat(a,a.visualViewport||[],xa(i)?i:[],s&&n?Xo(s):[])}return t.concat(i,Xo(i,[],n))}function Uc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function cb(e){const t=wn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Dn(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Ps(n)!==o||Ps(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function wd(e){return bn(e)?e:e.contextElement}function Pi(e){const t=wd(e);if(!Dn(t))return $n(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=cb(t);let a=(o?Ps(n.width):n.width)/r,s=(o?Ps(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const lC=$n(0);function fb(e){const t=Zt(e);return!bd()||!t.visualViewport?lC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Zt(e)?!1:t}function Yr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=wd(e);let a=$n(1);t&&(r?bn(r)&&(a=Pi(r)):a=Pi(e));const s=uC(o,n,r)?fb(o):$n(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,f=i.width/a.x,c=i.height/a.y;if(o){const h=Zt(o),d=r&&bn(r)?Zt(r):r;let p=h,m=Uc(p);for(;m&&r&&d!==p;){const g=Pi(m),y=m.getBoundingClientRect(),b=wn(m),v=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;l*=g.x,u*=g.y,f*=g.x,c*=g.y,l+=v,u+=S,p=Zt(m),m=Uc(p)}}return $s({width:f,height:c,x:l,y:u})}function xd(e,t){const n=Al(e).scrollLeft;return t?t.left+n:Yr(Fn(e)).left+n}function db(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:xd(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function cC(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=Fn(r),s=t?Cl(t.floating):!1;if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=$n(1);const f=$n(0),c=Dn(r);if((c||!c&&!o)&&((Wi(r)!=="body"||xa(a))&&(l=Al(r)),Dn(r))){const d=Yr(r);u=Pi(r),f.x=d.x+r.clientLeft,f.y=d.y+r.clientTop}const h=a&&!c&&!o?db(a,l,!0):$n(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-l.scrollTop*u.y+f.y+h.y}}function fC(e){return Array.from(e.getClientRects())}function dC(e){const t=Fn(e),n=Al(e),r=e.ownerDocument.body,i=Vt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Vt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+xd(e);const s=-n.scrollTop;return wn(r).direction==="rtl"&&(a+=Vt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}function hC(e,t){const n=Zt(e),r=Fn(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const u=bd();(!u||u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}const pC=new Set(["absolute","fixed"]);function mC(e,t){const n=Yr(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Dn(e)?Pi(e):$n(1),a=e.clientWidth*o.x,s=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:a,height:s,x:l,y:u}}function Fp(e,t,n){let r;if(t==="viewport")r=hC(e,n);else if(t==="document")r=dC(Fn(e));else if(bn(t))r=mC(t,n);else{const i=fb(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return $s(r)}function hb(e,t){const n=br(e);return n===t||!bn(n)||Di(n)?!1:wn(n).position==="fixed"||hb(n,t)}function gC(e,t){const n=t.get(e);if(n)return n;let r=Xo(e,[],!1).filter(s=>bn(s)&&Wi(s)!=="body"),i=null;const o=wn(e).position==="fixed";let a=o?br(e):e;for(;bn(a)&&!Di(a);){const s=wn(a),l=vd(a);!l&&s.position==="fixed"&&(i=null),(o?!l&&!i:!l&&s.position==="static"&&!!i&&pC.has(i.position)||xa(a)&&!l&&hb(e,a))?r=r.filter(f=>f!==a):i=s,a=br(a)}return t.set(e,r),r}function yC(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?Cl(t)?[]:gC(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,f)=>{const c=Fp(t,f,i);
vendor: 4,842 bytes, line 271
271return u.top=Vt(c.top,u.top),u.right=vr(c.right,u.right),u.bottom=vr(c.bottom,u.bottom),u.left=Vt(c.left,u.left),u},Fp(t,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function vC(e){const{width:t,height:n}=cb(e);return{width:t,height:n}}function bC(e,t,n){const r=Dn(t),i=Fn(t),o=n==="fixed",a=Yr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=$n(0);function u(){l.x=xd(i)}if(r||!r&&!o)if((Wi(t)!=="body"||xa(i))&&(s=Al(t)),r){const d=Yr(t,!0,o,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else i&&u();o&&!r&&i&&u();const f=i&&!r&&!o?db(i,s):$n(0),c=a.left+s.scrollLeft-l.x-f.x,h=a.top+s.scrollTop-l.y-f.y;return{x:c,y:h,width:a.width,height:a.height}}function Tu(e){return wn(e).position==="static"}function jp(e,t){if(!Dn(e)||wn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Fn(e)===n&&(n=n.ownerDocument.body),n}function pb(e,t){const n=Zt(e);if(Cl(e))return n;if(!Dn(e)){let i=br(e);for(;i&&!Di(i);){if(bn(i)&&!Tu(i))return i;i=br(i)}return n}let r=jp(e,t);for(;r&&tC(r)&&Tu(r);)r=jp(r,t);return r&&Di(r)&&Tu(r)&&!vd(r)?n:r||aC(e)||n}const wC=async function(e){const t=this.getOffsetParent||pb,n=this.getDimensions,r=await n(e.floating);return{reference:bC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function xC(e){return wn(e).direction==="rtl"}const kC={convertOffsetParentRelativeRectToViewportRelativeRect:cC,getDocumentElement:Fn,getClippingRect:yC,getOffsetParent:pb,getElementRects:wC,getClientRects:fC,getDimensions:vC,getScale:Pi,isElement:bn,isRTL:xC};function mb(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SC(e,t){let n=null,r;const i=Fn(e);function o(){var s;clearTimeout(r),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),o();const u=e.getBoundingClientRect(),{left:f,top:c,width:h,height:d}=u;if(s||t(),!h||!d)return;const p=Wa(c),m=Wa(i.clientWidth-(f+h)),g=Wa(i.clientHeight-(c+d)),y=Wa(f),v={rootMargin:-p+"px "+-m+"px "+-g+"px "+-y+"px",threshold:Vt(0,vr(1,l))||1};let S=!0;function k(w){const C=w[0].intersectionRatio;if(C!==l){if(!S)return a();C?a(!1,C):r=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!mb(u,e.getBoundingClientRect())&&a(),S=!1}try{n=new IntersectionObserver(k,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(k,v)}n.observe(e)}return a(!0),o}function eoe(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=wd(e),f=i||o?[...u?Xo(u):[],...Xo(t)]:[];f.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),o&&y.addEventListener("resize",n)});const c=u&&s?SC(u,n):null;let h=-1,d=null;a&&(d=new ResizeObserver(y=>{let[b]=y;b&&b.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),u&&!l&&d.observe(u),d.observe(t));let p,m=l?Yr(e):null;l&&g();function g(){const y=Yr(e);m&&!mb(m,y)&&n(),m=y,p=requestAnimationFrame(g)}return n(),()=>{var y;f.forEach(b=>{i&&b.removeEventListener("scroll",n),o&&b.removeEventListener("resize",n)}),c==null||c(),(y=d)==null||y.disconnect(),d=null,l&&cancelAnimationFrame(p)}}const _C=YE,TC=KE,EC=WE,CC=JE,AC=HE,Bp=qE,MC=XE,PC=(e,t,n)=>{const r=new Map,i={platform:kC,...n},o={...i.platform,_c:r};return ZE(e,t,{...i,platform:o})};var IC=typeof document<"u",$C=function(){},ms=IC?x.useLayoutEffect:$C;function Rs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Rs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!Rs(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function gb(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Vp(e,t){const n=gb(e);return Math.round(t*n)/n}function Eu(e){const t=x.useRef(e);return ms(()=>{t.current=e}),t}function toe(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[f,c]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,d]=x.useState(r);Rs(h,r)||d(r);const[p,m]=x.useState(null),[g,y]=x.useState(null),b=x.useCallback(U=>{U!==w.current&&(w.current=U,m(U))},[]),v=x.useCallback(U=>{U!==C.current&&(C.current=U,y(U))},[]),S=o||p,k=a||g,w=x.useRef(null),C=x.useRef(null),A=x.useRef(f),R=l!=null,E=Eu(l),M=Eu(i),P=Eu(u),V=x.useCallback(()=>
271{if(!w.current||!C.current)return;const U={placement:t,strategy:n,middleware:h};M.current&&(U.platform=M.current),PC(w.current,C.current,U).then(N=>{const T={...N,isPositioned:P.current!==!1};j.current&&!Rs(A.current,T)&&(A.current=T,xi.flushSync(()=>{c(T)}))})},[h,t,n,M,P]);ms(()=>{u===!1&&A.current.isPositioned&&(A.current.isPositioned=!1,c(U=>({...U,isPositioned:!1})))},[u]);const j=x.useRef(!1);ms(()=>(j.current=!0,()=>{j.current=!1}),[]),ms(()=>{if(S&&(w.current=S),k&&(C.current=k),S&&k){if(E.current)return E.current(S,k,V);V()}},[S,k,V,E,R]);const W=x.useMemo(()=>({reference:w,floating:C,setReference:b,setFloating:v}),[b,v]),G=x.useMemo(()=>({reference:S,floating:k}),[S,k]),Y=x.useMemo(()=>{const U={position:n,left:0,top:0};if(!G.floating)return U;const N=Vp(G.floating,f.x),T=Vp(G.floating,f.y);return s?{...U,transform:"translate("+N+"px, "+T+"px)",...gb(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:T}},[n,s,G.floating,f.x,f.y]);return x.useMemo(()=>({...f,update:V,refs:W,elements:G,floatingStyles:Y}),[f,V,W,G,Y])}const RC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Bp({element:r.current,padding:i}).fn(n):{}:r?Bp({element:r,padding:i}).fn(n):{}}}},noe=(e,t)=>({..._C(e),options:[e,t]}),roe=(e,t)=>({...TC(e),options:[e,t]}),ioe=(e,t)=>({...MC(e),options:[e,t]}),ooe=(e,t)=>({...EC(e),options:[e,t]}),aoe=(e,t)=>({...CC(e),options:[e,t]}),soe=(e,t)=>({...AC(e),options:[e,t]}),loe=(e,t)=>({...RC(e),options:[e,t]});var Mn=function(){return Mn=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Mn.apply(this,arguments)};function yb(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function uoe(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(c){a(c)}}function l(f){try{u(r.throw(f))}catch(c){a(c)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function OC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var Jo=class extends Error{constructor(e,t){var n;super(e),this.name="IcebergError",this.status=t.status,this.icebergType=t.icebergType,this.icebergCode=t.icebergCode,this.details=t.details,this.isCommitStateUnknown=t.icebergType==="CommitStateUnknownException"||[500,502,504].includes(t.status)&&((n=t.icebergType)==null?void 0:n.includes("CommitState"))===!0}isNotFound(){return this.status===404}isConflict(){return this.status===409}isAuthenticationTimeout(){return this.status===419}};function DC(e,t,n){const r=new URL(t,e);if(n)for(const[i,o]of Object.entries(n))o!==void 0&&r.searchParams.set(i,o);return r.toString()}async function NC(e){return!e||e.type==="none"?{}:e.type==="bearer"?{Authorization:`Bearer ${e.token}`}:e.type==="header"?{[e.name]:e.value}:e.type==="custom"?await e.getHeaders():{}}function LC(e){const t=e.fetchImpl??globalThis.fetch;return{async request({method:n,path:r,query:i,body:o,headers:a}){const s=DC(e.baseUrl,r,i),l=await NC(e.auth),u=await t(s,{method:n,headers:{...o?{"Content-Type":"application/json"}:{},...l,...a},body:o?JSON.stringify(o):void 0}),f=await u.text(),c=(u.headers.get("content-type")||"").includes("application/json"),h=c&&f?JSON.parse(f):f;if(!u.ok){const d=c?h:void 0,p=d==null?void 0:d.error;throw new Jo((p==null?void 0:p.message)??`Request failed with status ${u.status}`,{status:u.status,icebergType:p==null?void 0:p.type,icebergCode:p==null?void 0:p.code,details:d})}return{status:u.status,headers:u.headers,data:h}}}}function Ha(e){return e.join("�")}var zC=class{constructor(e,t=""){this.client=e,this.prefix=t}async listNamespaces(e){const t=e?{parent:Ha(e.namespace)}:void 0;return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces`,query:t})).data.namespaces.map(r=>({namespace:r}))}async createNamespace(e,t){const n={namespace:e.namespace,properties:t==null?void 0:t.properties};return(await this.client.request({method:"POST",path:`${this.prefix}/namespaces`,body:n})).data}async dropNamespace(e){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`})}async loadNamespaceMetadata(e){return{properties:(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`})).data.properties}}async namespaceExists(e){try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${Ha(e.namespace)}`}),!0}catch(t){if(t instanceof Jo&&t.status===404)return!1;throw t}}async createNamespaceIfNotExists(e,t){try{return await this.createNamespace(e,t)}catch(n){if(n instanceof Jo&&n.status===409)return;throw n}}};function si(e){return e.join("�")}var FC=class{constructor(e,t="",n){this.client=e,this.prefix=t,this.accessDelegation=n}async listTables(e){return(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`})).data.identifiers}async createTable(e,t){const n={};return this.accessDelegation&&(n["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables`,body:t,headers:n})).data.metadata}async updateTable(e,t){const n=await this.client.request({method:"POST",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,body:t});return{"metadata-location":n.data["metadata-location"],metadata:n.data.metadata}}async dropTable(e,t){await this.client.request({method:"DELETE",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,query:{purgeRequested:String((t==null?void 0:t.purge)??!1)}})}async loadTable(e){const t={};return this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation),(await this.client.request({method:"GET",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t})).data.metadata}async tableExists(e){const t={};this.accessDelegation&&(t["X-Iceberg-Access-Delegation"]=this.accessDelegation);try{return await this.client.request({method:"HEAD",path:`${this.prefix}/namespaces/${si(e.namespace)}/tables/${e.name}`,headers:t}),!0}catch(n){if(n instanceof Jo&&n.status===404)return!1;throw n}}async createTableIfNotExists(e,t){try{return await this.createTable(e,t)}catch(n){if(n instanceof Jo&&n.status===409)return await this.loadTable({namespace:e.namespace,name:t.name});throw n}}},coe=class{constructor(e){var r;let t="v1";e.catalogName&&(t+=`/${e.catalogName}`);const n=e.baseUrl.endsWith("/")?e.baseUrl:`${e.baseUrl}/`;this.client=LC({baseUrl:n,auth:e.auth,fetchImpl:e.fetch}),this.accessDelegation=(r=e.accessDelegation)==null?void 0:r.join(","),this.namespaceOps=new zC(this.client,t),this.tableOps=new FC(this.client,t,this.accessDelegation)}async listNamespaces(e){return this.namespaceOps.listNamespaces(e)}async createNamespace(e,t){return this.namespaceOps.createNamespace(e,t)}async dropNamespace(e){await this.namespaceOps.dropNamespace(e)}async loadNamespaceMetadata(e){return this.namespaceOps.loadNamespaceMetadata(e)}async listTables(e){return this.tableOps.listTables(e)}
271async createTable(e,t){return this.tableOps.createTable(e,t)}async updateTable(e,t){return this.tableOps.updateTable(e,t)}async dropTable(e,t){await this.tableOps.dropTable(e,t)}async loadTable(e){return this.tableOps.loadTable(e)}async namespaceExists(e){return this.namespaceOps.namespaceExists(e)}async tableExists(e){return this.tableOps.tableExists(e)}async createNamespaceIfNotExists(e,t){return this.namespaceOps.createNamespaceIfNotExists(e,t)}async createTableIfNotExists(e,t){return this.tableOps.createTableIfNotExists(e,t)}},gs="right-scroll-bar-position",ys="width-before-scroll-bar",jC="with-scroll-bars-hidden",BC="--removed-body-scroll-bar-size";function Cu(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VC(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var UC=typeof window<"u"?x.useLayoutEffect:x.useEffect,Up=new WeakMap;function ZC(e,t){var n=VC(null,function(r){return e.forEach(function(i){return Cu(i,r)})});return UC(function(){var r=Up.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;
vendor: 4,196 bytes, lines 271-286
271i.forEach(function(s){o.has(s)||Cu(s,null)}),o.forEach(function(s){i.has(s)||Cu(s,a)})}Up.set(n,e)},[e]),n}function qC(e){return e}function WC(e,t){t===void 0&&(t=qC);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(o){var a=t(o,r);return n.push(a),function(){n=n.filter(function(s){return s!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(s){return o(s)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var s=n;n=[],s.forEach(o),a=n}var l=function(){var f=a;a=[],f.forEach(o)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return i}function HC(e){e===void 0&&(e={});var t=WC(null);return t.options=Mn({async:!0,ssr:!1},e),t}var vb=function(e){var t=e.sideCar,n=yb(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,Mn({},n))};vb.isSideCarExport=!0;function GC(e,t){return e.useMedium(t),vb}var bb=HC(),Au=function(){},Ml=x.forwardRef(function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Au,onWheelCapture:Au,onTouchMoveCapture:Au}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,c=e.shards,h=e.sideCar,d=e.noRelative,p=e.noIsolation,m=e.inert,g=e.allowPinchZoom,y=e.as,b=y===void 0?"div":y,v=e.gapMode,S=yb(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=h,w=ZC([n,t]),C=Mn(Mn({},S),i);return x.createElement(x.Fragment,null,f&&x.createElement(k,{sideCar:bb,removeScrollBar:u,shards:c,noRelative:d,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:v}),a?x.cloneElement(x.Children.only(s),Mn(Mn({},C),{ref:w})):x.createElement(b,Mn({},C,{className:l,ref:w}),s))});Ml.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ml.classNames={fullWidth:ys,zeroRight:gs};var YC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KC(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YC();return t&&e.setAttribute("nonce",t),e}function XC(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function JC(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QC=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KC())&&(XC(t,n),JC(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eA=function(){var e=QC();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wb=function(){var e=eA(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},tA={left:0,top:0,right:0,gap:0},Mu=function(e){return parseInt(e||"",10)||0},nA=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[Mu(n),Mu(r),Mu(i)]},rA=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tA;var t=nA(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},iA=wb(),Ii="data-scroll-locked",oA=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return n===void 0&&(n="margin"),` 272 .`.concat(jC,` { 273 overflow: hidden `).concat(r,`; 274 padding-right: `).concat(s,"px ").concat(r,`; 275 } 276 body[`).concat(Ii,`] { 277 overflow: hidden `).concat(r,`; 278 overscroll-behavior: contain; 279 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 280 padding-left: `.concat(i,`px; 281 padding-top: `).concat(o,`px; 282 padding-right: `).concat(a,`px; 283 margin-left:0; 284 margin-top:0; 285 margin-right: `).concat(s,"px ").concat(r,`; 286 `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(r,";
286")].filter(Boolean).join(""),` 287 } 288 289 .`).concat(gs,` { 290 right: `).concat(s,"px ").concat(r,`; 291 } 292 293 .`).concat(ys,` { 294 margin-right: `).concat(s,"px ").concat(r,`; 295 } 296 297 .`).concat(gs," .").concat(gs,` { 298 right: 0 `).concat(r,`; 299 } 300 301 .`).concat(ys," .").concat(ys,` { 302 margin-right: 0 `).concat(r,`; 303 } 304 305 body[`).concat(Ii,`] { 306 `).concat(BC,": ").concat(s,`px; 307 } 308`)},Zp=function(){var e=parseInt(document.body.getAttribute(Ii)||"0",10);return isFinite(e)?e:0},aA=function(){x.useEffect(function(){return document.body.setAttribute(Ii,(Zp()+1).toString()),function(){var e=Zp()-1;e<=0?document.body.removeAttribute(Ii):document.body.setAttribute(Ii,e.toString())}},[])},sA=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;aA();var o=x.useMemo(function(){return rA(i)},[i]);return x.createElement(iA,{styles:oA(o,!t,i,n?"":"!important")})},Zc=!1;if(typeof window<"u")try{var Ga=Object.defineProperty({},"passive",{get:function(){return Zc=!0,!0}});window.addEventListener("test",Ga,Ga),window.removeEventListener("test",Ga,Ga)}catch{Zc=!1}var li=Zc?{passive:!1}:!1,lA=function(e){return e.tagName==="TEXTAREA"},xb=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!lA(e)&&n[t]==="visible")},uA=function(e){return xb(e,"overflowY")},cA=function(e){return xb(e,"overflowX")},qp=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=kb(e,r);if(i){var o=Sb(e,r),a=o[1],s=o[2];if(a>s)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},fA=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},dA=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},kb=function(e,t){return e==="v"?uA(t):cA(t)},Sb=function(e,t){return e==="v"?fA(t):dA(t)},hA=function(e,t){return e==="h"&&t==="rtl"?-1:1},pA=function(e,t,n,r,i){var o=hA(e,window.getComputedStyle(t).direction),a=o*r,s=n.target,l=t.contains(s),u=!1,f=a>0,c=0,h=0;do{if(!s)break;var d=Sb(e,s),p=d[0],m=d[1],g=d[2],y=m-g-o*p;(p||y)&&kb(e,s)&&(c+=y,h+=p);var b=s.parentNode;s=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(f&&Math.abs(c)<1||!f&&Math.abs(h)<1)&&(u=!0),u},Ya=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Wp=function(e){return[e.deltaX,e.deltaY]},Hp=function(e){return e&&"current"in e?e.current:e},mA=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gA=function(e){return` 309 .block-interactivity-`.concat(e,` {pointer-events: none;} 310 .allow-interactivity-`).concat(e,` {pointer-events: all;} 311`)},yA=0,ui=[];function vA(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),i=x.useState(yA++)[0],o=x.use
vendor: 15,595 bytes, line 311
311State(wb)[0],a=x.useRef(e);x.useEffect(function(){a.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var m=OC([e.lockRef.current],(e.shards||[]).map(Hp),!0).filter(Boolean);return m.forEach(function(g){return g.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),m.forEach(function(g){return g.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=x.useCallback(function(m,g){if("touches"in m&&m.touches.length===2||m.type==="wheel"&&m.ctrlKey)return!a.current.allowPinchZoom;var y=Ya(m),b=n.current,v="deltaX"in m?m.deltaX:b[0]-y[0],S="deltaY"in m?m.deltaY:b[1]-y[1],k,w=m.target,C=Math.abs(v)>Math.abs(S)?"h":"v";if("touches"in m&&C==="h"&&w.type==="range")return!1;var A=qp(C,w);if(!A)return!0;if(A?k=C:(k=C==="v"?"h":"v",A=qp(C,w)),!A)return!1;if(!r.current&&"changedTouches"in m&&(v||S)&&(r.current=k),!k)return!0;var R=r.current||k;return pA(R,g,m,R==="h"?v:S)},[]),l=x.useCallback(function(m){var g=m;if(!(!ui.length||ui[ui.length-1]!==o)){var y="deltaY"in g?Wp(g):Ya(g),b=t.current.filter(function(k){return k.name===g.type&&(k.target===g.target||g.target===k.shadowParent)&&mA(k.delta,y)})[0];if(b&&b.should){g.cancelable&&g.preventDefault();return}if(!b){var v=(a.current.shards||[]).map(Hp).filter(Boolean).filter(function(k){return k.contains(g.target)}),S=v.length>0?s(g,v[0]):!a.current.noIsolation;S&&g.cancelable&&g.preventDefault()}}},[]),u=x.useCallback(function(m,g,y,b){var v={name:m,delta:g,target:y,should:b,shadowParent:bA(y)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(S){return S!==v})},1)},[]),f=x.useCallback(function(m){n.current=Ya(m),r.current=void 0},[]),c=x.useCallback(function(m){u(m.type,Wp(m),m.target,s(m,e.lockRef.current))},[]),h=x.useCallback(function(m){u(m.type,Ya(m),m.target,s(m,e.lockRef.current))},[]);x.useEffect(function(){return ui.push(o),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:h}),document.addEventListener("wheel",l,li),document.addEventListener("touchmove",l,li),document.addEventListener("touchstart",f,li),function(){ui=ui.filter(function(m){return m!==o}),document.removeEventListener("wheel",l,li),document.removeEventListener("touchmove",l,li),document.removeEventListener("touchstart",f,li)}},[]);var d=e.removeScrollBar,p=e.inert;return x.createElement(x.Fragment,null,p?x.createElement(o,{styles:gA(i)}):null,d?x.createElement(sA,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function bA(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const wA=GC(bb,vA);var xA=x.forwardRef(function(e,t){return x.createElement(Ml,Mn({},e,{ref:t,sideCar:wA}))});xA.classNames=Ml.classNames;var kA=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Ka=new WeakMap,Xa={},Pu=0,_b=function(e){return e&&(e.host||_b(e.parentNode))},SA=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=_b(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_A=function(e,t,n,r){var i=SA(t,Array.isArray(e)?e:[e]);Xa[n]||(Xa[n]=new WeakMap);var o=Xa[n],a=[],s=new Set,l=new Set(i),u=function(c){!c||s.has(c)||(s.add(c),u(c.parentNode))};i.forEach(u);var f=function(c){!c||l.has(c)||Array.prototype.forEach.call(c.children,function(h){if(s.has(h))f(h);else try{var d=h.getAttribute(r),p=d!==null&&d!=="false",m=(ci.get(h)||0)+1,g=(o.get(h)||0)+1;ci.set(h,m),o.set(h,g),a.push(h),m===1&&p&&Ka.set(h,!0),g===1&&h.setAttribute(n,"true"),p||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return f(t),s.clear(),Pu++,function(){a.forEach(function(c){var h=ci.get(c)-1,d=o.get(c)-1;ci.set(c,h),o.set(c,d),h||(Ka.has(c)||c.removeAttribute(r),Ka.delete(c)),d||c.removeAttribute(n)}),Pu--,Pu||(ci=new WeakMap,ci=new WeakMap,Ka=new WeakMap,Xa={})}},foe=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=kA(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),_A(r,i,n,"aria-hidden")):function(){return null}},Gp=1,TA=.9,EA=.8,CA=.17,Iu=.1,$u=.999,AA=.9999,MA=.99,PA=/[\\\/_+.#"@\[\(\{&]/,IA=/[\\\/_+.#"@\[\(\{&]/g,$A=/[\s-]/,Tb=/[\s-]/g;function qc(e,t,n,r,i,o,a){if(o===t.length)return i===e.length?Gp:MA;var s=`${i},${o}`;if(a[s]!==void 0)return a[s];for(var l=r.charAt(o),u=n.indexOf(l,i),f=0,c,h,d,p;u>=0;)c=qc(e,t,n,r,u+1,o+1,a),c>f&&(u===i?c*=Gp:PA.test(e.charAt(u-1))?(c*=EA,d=e.slice(i,u-1).match(IA),d&&i>0&&(c*=Math.pow($u,d.length))):$A.test(e.charAt(u-1))?(c*=TA,p=e.slice(i,u-1).match(Tb),p&&i>0&&(c*=Math.pow($u,p.length))):(c*=CA,i>0&&(c*=Math.pow($u,u-i))),e.charAt(u)!==t.charAt(o)&&(c*=AA)),(c<Iu&&n.charAt(u-1)===r.charAt(o+1)||r.charAt(o+1)===r.charAt(o)&&n.charAt(u-1)!==r.charAt(o))&&(h=qc(e,t,n,r,u+1,o+2,a),h*Iu>c&&(c=h*Iu)),c>f&&(f=c),u=n.indexOf(l,u+1);return a[s]=f,f}function Yp(e){return e.toLowerCase().replace(Tb," ")}function RA(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,qc(e,t,Yp(e),Yp(t),0,0,{})}var bo='[cmdk-group=""]',Ru='[cmdk-group-items=""]',OA='[cmdk-group-heading=""]',Eb='[cmdk-item=""]',Kp=`${Eb}:not([aria-disabled="true"])`,Wc="cmdk-item-select",mi="data-value",DA=(e,t,n)=>RA(e,t,n),Cb=x.createContext(void 0),ka=()=>x.useContext(Cb),Ab=x.createContext(void 0),kd=()=>x.useContext(Ab),Mb=x.createContext(void 0),Pb=x.forwardRef((e,t)=>{let n=gi(()=>{var I,_;return{search:"",value:(_=(I=e.value)!=null?I:e.defaultValue)!=null?_:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),r=gi(()=>new Set),i=gi(()=>new Map),o=gi(()=>new Map),a=gi(()=>new Set),s=Ib(e),{label:l,children:u,value:f,onValueChange:c,filter:h,shouldFilter:d,loop:p,disablePointerSelection:m=!1,vimBindings:g=!0,...y}=e,b=Ci(),v=Ci(),S=Ci(),k=x.useRef(null),w=WA();Kr(()=>{if(f!==void 0){let I=f.trim();n.current.value=I,C.emit()}},[f]),Kr(()=>{w(6,V)},[]);let C=x.useMemo(()=>({subscribe:I=>(a.current.add(I),()=>a.current.delete(I)),snapshot:()=>n.current,setState:(I,_,H)=>{var q,K,te,xe;if(!Object.is(n.current[I],_)){if(n.current[I]=_,I==="search")P(),E(),w(1,M);else if(I==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let z=document.getElementById(S);z?z.focus():(q=document.getElementById(b))==null||q.focus()}if(w(7,()=>{var z;n.current.selectedItemId=(z=j())==null?void 0:z.id,C.emit()}),H||w(5,V),((K=s.current)==null?void 0:K.value)!==void 0){let z=_??"";(xe=(te=s.current).onValueChange)==null||xe.call(te,z);return}}C.emit()}},emit:()=>{a.current.forEach(I=>I())}}),[]),A=x.useMemo(()=>({value:(I,_,H)=>{var q;_!==((q=o.current.get(I))==null?void 0:q.value)&&(o.current.set(I,{value:_,keywords:H}),n.current.filtered.items.set(I,R(_,H)),w(2,()=>{E(),C.emit()}))},item:(I,_)=>(r.current.add(I),_&&(i.current.has(_)?i.current.get(_).add(I):i.current.set(_,new Set([I]))),w(3,()=>{P(),E(),n.current.value||M(),C.emit()}),()=>{o.current.delete(I),r.current.delete(I),n.current.filtered.items.delete(I);let H=j();w(4,()=>{P(),(H==null?void 0:H.getAttribute("id"))===I&&M(),C.emit()})}),group:I=>(i.current.has(I)||i.current.set(I,new Set),()=>{o.current.delete(I),i.current.delete(I)}),filter:()=>s.current.shouldFilter,label:l||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:b,inputId:S,labelId:v,listInnerRef:k}),[]);function R(I,_){var H,q;let K=(q=(H=s.current)==null?void 0:H.filter)!=null?q:DA;return I?K(I,n.current.search,_):0}function E(){if(!n.current.search||s.current.shouldFilter===!1)return;let I=n.current.filtered.items,_=[];n.current.filtered.groups.forEach(q=>{let K=i.current.get(q),te=0;K.forEach(xe=>{let z=I.get(xe);te=Math.max(z,te)}),_.push([q,te])});let H=k.current;W().sort((q,K)=>{var te,xe;let z=q.getAttribute("id"),J=K.getAttribute("id");return((te=I.get(J))!=null?te:0)-((xe=I.get(z))!=null?xe:0)}).forEach(q=>{let K=q.closest(Ru);K?K.appendChild(q.parentElement===K?q:q.closest(`${Ru} > *`)):H.appendChild(q.parentElement===H?q:q.closest(`${Ru} > *`))}),_.sort((q,K)=>K[1]-q[1]).forEach(q=>{var K;let te=(K=k.current)==null?void 0:K.querySelector(`${bo}[${mi}="${encodeURIComponent(q[0])}"]`);te==null||te.parentElement.appendChild(te)})}function M(){let I=W().find(H=>H.getAttribute("aria-disabled")!=="true"),_=I==null?void 0:I.getAttribute(mi);C.setState("value",_||void 0)}function P(){var I,_,H,q;if(!n.current.search||s.current.shouldFilter===!1){n.current.filtered.count=r.current.size;return}n.current.filtered.groups=new Set;let K=0;for(let te of r.current){let xe=(_=(I=o.current.get(te))==null?void 0:I.value)!=null?_:"",z=(q=(H=o.current.get(te))==null?void 0:H.keywords)!=null?q:[],J=R(xe,z);n.current.filtered.items.set(te,J),J>0&&K++}for(let[te,xe]of i.current)for(let z of xe)if(n.current.filtered.items.get(z)>0){n.current.filtered.groups.add(te);break}n.current.filtered.count=K}function V(){var I,_,H;let q=j();q&&(((I=q.parentElement)==null?void 0:I.firstChild)===q&&((H=(_=q.closest(bo))==null?void 0:_.querySelector(OA))==null||H.scrollIntoView({block:"nearest"})),q.scrollIntoView({block:"nearest"}))}function j(){var I;return(I=k.current)==null?void 0:I.querySelector(`${Eb}[aria-selected="true"]`)}function W(){var I;return Array.from(((I=k.current)==null?void 0:I.querySelectorAll(Kp))||[])}function G(I){let _=W()[I];_&&C.setState("value",_.getAttribute(mi))}function Y(I){var _;let H=j(),q=W(),K=q.findIndex(xe=>xe===H),te=q[K+I];(_=s.current)!=null&&_.loop&&(te=K+I<0?q[q.length-1]:K+I===q.length?q[0]:q[K+I]),te&&C.setState("value",te.getAttribute(mi))}function U(I){let _=j(),H=_==null?void 0:_.closest(bo),q;for(;H&&!q;)H=I>0?ZA(H,bo):qA(H,bo),q=H==null?void 0:H.querySelector(Kp);q?C.setState("value",q.getAttribute(mi)):Y(I)}let N=()=>G(W().length-1),T=I=>{I.preventDefault(),I.metaKey?N():I.altKey?U(1):Y(1)},he=I=>{I.preventDefault(),I.metaKey?G(0):I.altKey?U(-1):Y(-1)};return x.createElement(Tr.div,{ref:t,tabIndex:-1,...y,"cmdk-root":"",onKeyDown:I=>{var _;(_=y.onKeyDown)==null||_.call(y,I);let H=I.nativeEvent.isComposing||I.keyCode===229;if(!(I.defaultPrevented||H))switch(I.key){case"n":case"j":{g&&I.ctrlKey&&T(I);break}case"ArrowDown":{T(I);break}case"p":case"k":{g&&I.ctrlKey&&he(I);break}case"ArrowUp":{he(I);break}case"Home":{I.preventDefault(),G(0);break}case"End":{I.preventDefault(),N();break}case"Enter":{I.preventDefault();let q=j();if(q){let K=new Event(Wc);q.dispatchEvent(K)}}}}},x.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:GA},l),Pl(e,I=>x.createElement(Ab.Provider,{value:C},x.createElement(Cb.Provider,{value:A},I))))}),NA=x.forwardRef((e,t)=>{var n,r;let i=Ci(),o=x.useRef(null),a=x.useContext(Mb),s=ka(),l=Ib(e),u=(r=(n=l.current)==null?void 0:n.forceMount)!=null?r:a==null?void 0:a.forceMount;Kr(()=>{if(!u)return s.item(i,a==null?void 0:a.id)},[u]);let f=$b(i,o,[e.value,e.children,o],e.keywords),c=kd(),h=wr(w=>w.value&&w.value===f.current),d=wr(w=>u||s.filter()===!1?!0:w.search?w.filtered.items.get(i)>0:!0);x.useEffect(()=>{let w=o.current;if(!(!w||e.disabled))return w.addEventListener(Wc,p),()=>w.removeEventListener(Wc,p)},[d,e.onSelect,e.disabled]);function p(){var w,C;m(),(C=(w=l.current).onSelect)==null||C.call(w,f.current)}function m(){c.setState("value",f.current,!0)}if(!d)return null;let{disabled:g,value:y,onSelect:b,forceMount:v,keywords:S,...k}=e;return x.createElement(Tr.div,{ref:Go(o,t),...k,id:i,"cmdk-item":"",role:"option","aria-disabled":!!g,"aria-selected":!!h,"data-disabled":!!g,"data-selected":!!h,onPointerMove:g||s.getDisablePointerSelection()?void 0:m,onClick:g?void 0:p},e.children)}),LA=x.forwardRef((e,t)=>{let{heading:n,children:r,forceMount:i,...o}=e,a=Ci(),s=x.useRef(null),l=x.useRef(null),u=Ci(),f=ka(),c=wr(d=>i||f.filter()===!1?!0:d.search?d.filtered.groups.has(a):!0);Kr(()=>f.group(a),[]),$b(a,s,[e.value,e.heading,l]);let h=x.useMemo(()=>({id:a,forceMount:i}),[i]);return x.createElement(Tr.div,{ref:Go(s,t),...o,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},n&&x.createElement("div",{ref:l,"cmdk-group-heading":"","aria-hidden":!0,id:u},n),Pl(e,d=>x.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?u:void 0},x.createElement(Mb.Provider,{value:h},d))))}),zA=x.forwardRef((e,t)=>{let{alwaysRender:n,...r}=e,i=x.useRef(null),o=wr(a=>!a.search);return!n&&!o?null:x.createElement(Tr.div,{ref:Go(i,t),...r,"cmdk-separator":"",role:"separator"})}),FA=x.forwardRef((e,t)=>{let{onValueChange:n,...r}=e,i=e.value!=null,o=kd(),a=wr(u=>u.search),s=wr(u=>u.selectedItemId),l=ka();return x.useEffect(()=>{e.value!=null&&o.setState("search",e.value)},[e.value]),x.createElement(Tr.input,{ref:t,...r,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":l.listId,"aria-labelledby":l.labelId,"aria-activedescendant":s,id:l.inputId,type:"text",value:i?e.value:a,onChange:u=>{i||o.setState("search",u.target.value),n==null||n(u.target.value)}})}),jA=x.forwardRef((e,t)=>{let{children:n,label:r="Suggestions",...i}=e,o=x.useRef(null),a=x.useRef(null),s=wr(u=>u.selectedItemId),l=ka();return x.useEffect(()=>{if(a.current&&o.current){let u=a.current,f=o.current,c,h=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let d=u.offsetHeight;f.style.setProperty("--cmdk-list-height",d.toFixed(1)+"px")})});return h.observe(u),()=>{cancelAnimationFrame(c),h.unobserve(u)}}},[]),x.createElement(Tr.div,{ref:Go(o,t),...i,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":s,"aria-label":r,id:l.listId},Pl(e,u=>x.createElement("div",{ref:Go(a,l.listInnerRef),"cmdk-list-sizer":""},u)))}),BA=x.forwardRef((e,t)=>{let{open:n,onOpenChange:r,overlayClassName:i,contentClassName:o,container:a,...s}=e;return x.createElement(G_,{open:n,onOpenChange:r},x.createElement(Y_,{container:a},x.createElement(K_,{"cmdk-overlay":"",className:i}),x.createElement(X_,{"aria-label":e.label,"cmdk-dialog":"",className:o},x.createElement(Pb,{ref:t,...s}))))}),VA=x.forwardRef((e,t)=>wr(n=>n.filtered.count===0)?x.createElement(Tr.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),UA=x.forwardRef((e,t)=>{let{progress:n,children:r,label:i="Loading...",...o}=e;return x.createElement(Tr.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":i},Pl(e,a=>x.createElement("div",{"aria-hidden":!0},a)))}),doe=Object.assign(Pb,{List:jA,Item:NA,Input:FA,Group:LA,Separator:zA,Dialog:BA,Empty:VA,Loading:UA});function ZA(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function qA(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function Ib(e){let t=x.useRef(e);return Kr(()=>{t.current=e}),t}var Kr=typeof window>"u"?x.useEffect:x.useLayoutEffect;function gi(e){let t=x.useRef();return t.current===void 0&&(t.current=e()),t}function wr(e){let t=kd(),n=()=>e(t.snapshot());return x.useSyncExternalStore(t.subscribe,n,n)}function $b(e,t,n,r=[]){let i=x.useRef(),o=ka();return Kr(()=>{var a;let s=(()=>{var u;for(let f of n){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(u=f.current.textContent)==null?void 0:u.trim():i.current}})(),l=r.map(u=>u.trim());o.value(e,s,l),(a=t.current)==null||a.setAttribute(mi,s),i.current=s}),i}var WA=()=>
vendor: 11,016 bytes, lines 311-319
311{let[e,t]=x.useState(),n=gi(()=>new Map);return Kr(()=>{n.current.forEach(r=>r()),n.current=new Map},[e]),(r,i)=>{n.current.set(r,i),t({})}};function HA(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function Pl({asChild:e,children:t},n){return e&&x.isValidElement(t)?x.cloneElement(HA(t),{ref:t.ref},n(t.props.children)):n(t)}var GA={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},YA=Array.isArray,Lt=YA,KA=typeof pr=="object"&&pr&&pr.Object===Object&&pr,Rb=KA,XA=Rb,JA=typeof self=="object"&&self&&self.Object===Object&&self,QA=XA||JA||Function("return this")(),jn=QA,eM=jn,tM=eM.Symbol,Sa=tM,Xp=Sa,Ob=Object.prototype,nM=Ob.hasOwnProperty,rM=Ob.toString,wo=Xp?Xp.toStringTag:void 0;function iM(e){var t=nM.call(e,wo),n=e[wo];try{e[wo]=void 0;var r=!0}catch{}var i=rM.call(e);return r&&(t?e[wo]=n:delete e[wo]),i}var oM=iM,aM=Object.prototype,sM=aM.toString;function lM(e){return sM.call(e)}var uM=lM,Jp=Sa,cM=oM,fM=uM,dM="[object Null]",hM="[object Undefined]",Qp=Jp?Jp.toStringTag:void 0;function pM(e){return e==null?e===void 0?hM:dM:Qp&&Qp in Object(e)?cM(e):fM(e)}var Qn=pM;function mM(e){return e!=null&&typeof e=="object"}var er=mM,gM=Qn,yM=er,vM="[object Symbol]";function bM(e){return typeof e=="symbol"||yM(e)&&gM(e)==vM}var Hi=bM,wM=Lt,xM=Hi,kM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,SM=/^\w*$/;function _M(e,t){if(wM(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xM(e)?!0:SM.test(e)||!kM.test(e)||t!=null&&e in Object(t)}var Sd=_M;function TM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Er=TM;const hoe=Ee(Er);var EM=Qn,CM=Er,AM="[object AsyncFunction]",MM="[object Function]",PM="[object GeneratorFunction]",IM="[object Proxy]";function $M(e){if(!CM(e))return!1;var t=EM(e);return t==MM||t==PM||t==AM||t==IM}var _d=$M;const poe=Ee(_d);var RM=jn,OM=RM["__core-js_shared__"],DM=OM,Ou=DM,em=function(){var e=/[^.]+$/.exec(Ou&&Ou.keys&&Ou.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function NM(e){return!!em&&em in e}var LM=NM,zM=Function.prototype,FM=zM.toString;function jM(e){if(e!=null){try{return FM.call(e)}catch{}try{return e+""}catch{}}return""}var Db=jM,BM=_d,VM=LM,UM=Er,ZM=Db,qM=/[\\^$.*+?()[\]{}|]/g,WM=/^\[object .+?Constructor\]$/,HM=Function.prototype,GM=Object.prototype,YM=HM.toString,KM=GM.hasOwnProperty,XM=RegExp("^"+YM.call(KM).replace(qM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function JM(e){if(!UM(e)||VM(e))return!1;var t=BM(e)?XM:WM;return t.test(ZM(e))}var QM=JM;function eP(e,t){return e==null?void 0:e[t]}var tP=eP,nP=QM,rP=tP;function iP(e,t){var n=rP(e,t);return nP(n)?n:void 0}var ei=iP,oP=ei,aP=oP(Object,"create"),Il=aP,tm=Il;function sP(){this.__data__=tm?tm(null):{},this.size=0}var lP=sP;function uP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cP=uP,fP=Il,dP="__lodash_hash_undefined__",hP=Object.prototype,pP=hP.hasOwnProperty;function mP(e){var t=this.__data__;if(fP){var n=t[e];return n===dP?void 0:n}return pP.call(t,e)?t[e]:void 0}var gP=mP,yP=Il,vP=Object.prototype,bP=vP.hasOwnProperty;function wP(e){var t=this.__data__;return yP?t[e]!==void 0:bP.call(t,e)}var xP=wP,kP=Il,SP="__lodash_hash_undefined__";function _P(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=kP&&t===void 0?SP:t,this}var TP=_P,EP=lP,CP=cP,AP=gP,MP=xP,PP=TP;function Gi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gi.prototype.clear=EP;Gi.prototype.delete=CP;Gi.prototype.get=AP;Gi.prototype.has=MP;Gi.prototype.set=PP;var IP=Gi;function $P(){this.__data__=[],this.size=0}var RP=$P;function OP(e,t){return e===t||e!==e&&t!==t}var Td=OP,DP=Td;function NP(e,t){for(var n=e.length;n--;)if(DP(e[n][0],t))return n;return-1}var $l=NP,LP=$l,zP=Array.prototype,FP=zP.splice;function jP(e){var t=this.__data__,n=LP(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():FP.call(t,n,1),--this.size,!0}var BP=jP,VP=$l;function UP(e){var t=this.__data__,n=VP(t,e);return n<0?void 0:t[n][1]}var ZP=UP,qP=$l;function WP(e){return qP(this.__data__,e)>-1}var HP=WP,GP=$l;function YP(e,t){var n=this.__data__,r=GP(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var KP=YP,XP=RP,JP=BP,QP=ZP,e2=HP,t2=KP;function Yi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Yi.prototype.clear=XP;Yi.prototype.delete=JP;Yi.prototype.get=QP;Yi.prototype.has=e2;Yi.prototype.set=t2;var Rl=Yi,n2=ei,r2=jn,i2=n2(r2,"Map"),Ed=i2,nm=IP,o2=Rl,a2=Ed;function s2(){this.size=0,this.__data__={hash:new nm,map:new(a2||o2),string:new nm}}var l2=s2;function u2(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var c2=u2,f2=c2;function d2(e,t){var n=e.__data__;return f2(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Ol=d2,h2=Ol;function p2(e){var t=h2(this,e).delete(e);return this.size-=t?1:0,t}var m2=p2,g2=Ol;function y2(e){return g2(this,e).get(e)}var v2=y2,b2=Ol;function w2(e){return b2(this,e).has(e)}var x2=w2,k2=Ol;function S2(e,t){var n=k2(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var _2=S2,T2=l2,E2=m2,C2=v2,A2=x2,M2=_2;function Ki(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ki.prototype.clear=T2;Ki.prototype.delete=E2;Ki.prototype.get=C2;Ki.prototype.has=A2;Ki.prototype.set=M2;var Cd=Ki,Nb=Cd,P2="Expected a function";function Ad(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(P2);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ad.Cache||Nb),n}Ad.Cache=Nb;var Lb=Ad;const moe=Ee(Lb);var I2=Lb,$2=500;function R2(e){var t=I2(e,function(r){return n.size===$2&&n.clear(),r}),n=t.cache;return t}var O2=R2,D2=O2,N2=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L2=/\\(\\)?/g,z2=D2(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(N2,function(n,r,i,o){t.push(i?o.replace(L2,"$1"):r||n)}),t}),F2=z2;function j2(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Md=j2,rm=Sa,B2=Md,V2=Lt,U2=Hi,im=rm?rm.prototype:void 0,om=im?im.toString:void 0;function zb(e){if(typeof e=="string")return e;if(V2(e))return B2(e,zb)+"";if(U2(e))return om?om.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Z2=zb,q2=Z2;function W2(e){return e==null?"":q2(e)}var Fb=W2,H2=Lt,G2=Sd,Y2=F2,K2=Fb;function X2(e,t){return H2(e)?e:G2(e,t)?[e]:Y2(K2(e))}var jb=X2,J2=Hi;function Q2(e){if(typeof e=="string"||J2(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Dl=Q2,eI=jb,tI=Dl;function nI(e,t){t=eI(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[tI(t[n++])];return n&&n==r?e:void 0}var Pd=nI,rI=Pd;function iI(e,t,n){var r=e==null?void 0:rI(e,t);return r===void 0?n:r}var Bb=iI;const goe=Ee(Bb);function oI(e){return e==null}var aI=oI;const yoe=Ee(aI);var sI=Qn,lI=Lt,uI=er,cI="[object String]";function fI(e){return typeof e=="string"||!lI(e)&&uI(e)&&sI(e)==cI}var dI=fI;const voe=Ee(dI);var Vb={exports:{}},Te={};/** 312 * @license React 313 * react-is.production.min.js 314 * 315 * Copyright (c) Facebook, Inc. and its affiliates. 316 * 317 * This source code is licensed under the MIT license found in the 318 * LICENSE file in the root directory of this source tree. 319 */var Id=Symbol.for("react.element"),$d=Symbol.for("react.portal"),Nl=Symbol.for("react.fragment"),Ll=Symbol.for("react.strict_mode"),zl=Symbol.for("react.profiler"),Fl=Symbol.for("react.provider"),jl=Symbol.for("react.context"),hI=Symbol.for("react.server_context"),Bl=Symbol.for("react.forward_ref"),Vl=Symbol.for("react.suspense"),Ul=Symbol.for("react.suspense_list"),Zl=Symbol.for("react.memo"),ql=Symbol.for("react.lazy"),pI=Symbol.for("react.offscreen"),Ub;Ub=Symbol.for("react.module.reference");function sn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Id:switch(e=e.type,e){case Nl:case zl:case Ll:case Vl:case Ul:return e;default:switch(e=e&&e.$$typeof,e){case hI:case jl:case Bl:case ql:case Zl:case Fl:return e;default:return t}}case $d:return t}}}Te.ContextConsumer=jl;Te.ContextProvider=Fl;Te.Element=Id;Te.ForwardRef=Bl;Te.Fragment=Nl;Te.Lazy=ql;Te.Memo=Zl;Te.Portal=$d;Te.Profiler=zl;Te.StrictMode=Ll;Te.Suspense=Vl;Te.SuspenseList=Ul;Te.isAsyncMode=function(){return!1};Te.isConcurrentMode=function(){return!1};Te.isContextConsumer=function(e){return sn(e)===jl};Te.isContextProvider=function(e){return sn(e)===Fl};Te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Id};Te.isForwardRef=function(e){return sn(e)===Bl};Te.isFragment=function(e){return sn(e)===Nl};Te.isLazy=function(e){return sn(e)===ql};Te.isMemo=function(e){return sn(e)===Zl};Te.isPortal=function(e){return sn(e)===$d};Te.isProfiler=function(e){return sn(e)===zl};Te.isStrictMode=function(e){return sn(e)===Ll};Te.isSuspense=function(e){return sn(e)===Vl};Te.isSuspenseList=function(e){return sn(e)===Ul};Te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Nl||e===zl||e===Ll||e===Vl||e===Ul||e===pI||typeof e=="object"&&e!==null&&(e.$$typeof===ql||e.$$typeof===Zl||e.$$typeof===Fl||e.$$typeof===jl||e.$$typeof===Bl||e.$$typeof===Ub||e.getModuleId!==void 0)};Te.typeOf=sn;Vb.exports=Te;var boe=Vb.exports,mI=Qn,gI=er,yI="[object Number]";function vI(e){return typeof e=="number"||gI(e)&&mI(e)==yI}var Zb=vI;const woe=Ee(Zb);var bI=Zb;function wI(e){return bI(e)&&e!=+e}var xI=wI;const xoe=Ee(xI);function kI(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var SI=kI,_I=SI;function TI(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:_I(e,t,n)}var EI=TI,CI="\\ud800-\\udfff",AI="\\u0300-\\u036f",MI="\\ufe20-\\ufe2f",PI="\\u20d0-\\u20ff",II=AI+MI+PI,$I="\\ufe0e\\ufe0f",RI="\\u200d",OI=RegExp("["+RI+CI+II+$I+"]");function DI(e){return OI.test(e)}var qb=DI;function NI(e){return e.split("")}var LI=NI,Wb="\\ud800-\\udfff",zI="\\u0300-\\u036f",FI="\\ufe20-\\ufe2f",jI="\\u20d0-\\u20ff",BI=zI+FI+jI,VI="\\ufe0e\\ufe0f",UI="["+Wb+"]",Hc="["+BI+"]",Gc="\\ud83c[\\udffb-\\udfff]",ZI="(?:"+Hc+"|"+Gc+")",Hb="[^"+Wb+"]",Gb="(?:\\ud83c[\\udde6-\\uddff]){2}",Yb="[\\ud800-\\udbff][\\udc00-\\udfff]",qI="\\u200d",Kb=ZI+"?",Xb="["+VI+"]?",WI="(?:"+qI+"(?:"+[Hb,Gb,Yb].join("|")+")"+Xb+Kb+")*",HI=Xb+Kb+WI,GI="(?:"+[Hb+Hc+"?",Hc,Gb,Yb,UI].join("|")+")",YI=RegExp(Gc+"(?="+Gc+")|"+GI+HI,"g");function KI(e){return e.match(YI)||[]}var XI=KI,JI=LI,QI=qb,e$=XI;function t$(e){return QI(e)?e$(e):JI(e)}var n$=t$,r$=EI,i$=qb,o$=n$,a$=Fb;function s$(e){return function(t){t=a$(t);var n=i$(t)?o$(t):void 0,r=n?n[0]:t.charAt(0),i=n?r$(n,1).join(""):t.slice(1);return r[e]()+i}}var l$=s$,u$=l$,c$=u$("toUpperCase"),f$=c$;
vendor: 5,538 bytes, line 319
319const koe=Ee(f$);function De(e){return function(){return e}}const Jb=Math.cos,Os=Math.sin,kn=Math.sqrt,Ds=Math.PI,Wl=2*Ds,Yc=Math.PI,Kc=2*Yc,Dr=1e-6,d$=Kc-Dr;function Qb(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function h$(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Qb;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class p${constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Qb:h$(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,o,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+a}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let a=this._x1,s=this._y1,l=r-t,u=i-n,f=a-t,c=s-n,h=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Dr)if(!(Math.abs(c*l-u*f)>Dr)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-a,p=i-s,m=l*l+u*u,g=d*d+p*p,y=Math.sqrt(m),b=Math.sqrt(h),v=o*Math.tan((Yc-Math.acos((m+h-g)/(2*y*b)))/2),S=v/b,k=v/y;Math.abs(S-1)>Dr&&this._append`L${t+S*f},${n+S*c}`,this._append`A${o},${o},0,0,${+(c*d>f*p)},${this._x1=t+k*l},${this._y1=n+k*u}`}}arc(t,n,r,i,o,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),l=r*Math.sin(i),u=t+s,f=n+l,c=1^a,h=a?i-o:o-i;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Dr||Math.abs(this._y1-f)>Dr)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%Kc+Kc),h>d$?this._append`A${r},${r},0,1,${c},${t-s},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:h>Dr&&this._append`A${r},${r},0,${+(h>=Yc)},${c},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Rd(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new p$(t)}function Od(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function e1(e){this._context=e}e1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function t1(e){return new e1(e)}function n1(e){return e[0]}function r1(e){return e[1]}function m$(e,t){var n=De(!0),r=null,i=t1,o=null,a=Rd(s);e=typeof e=="function"?e:e===void 0?n1:De(e),t=typeof t=="function"?t:t===void 0?r1:De(t);function s(l){var u,f=(l=Od(l)).length,c,h=!1,d;for(r==null&&(o=i(d=a())),u=0;u<=f;++u)!(u<f&&n(c=l[u],u,l))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+e(c,u,l),+t(c,u,l));if(d)return o=null,d+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:De(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:De(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:De(!!l),s):n},s.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),s):i},s.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),s):r},s}function Soe(e,t,n){var r=null,i=De(!0),o=null,a=t1,s=null,l=Rd(u);e=typeof e=="function"?e:e===void 0?n1:De(+e),t=typeof t=="function"?t:De(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?r1:De(+n);function u(c){var h,d,p,m=(c=Od(c)).length,g,y=!1,b,v=new Array(m),S=new Array(m);for(o==null&&(s=a(b=l())),h=0;h<=m;++h){if(!(h<m&&i(g=c[h],h,c))===y)if(y=!y)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=h-1;p>=d;--p)s.point(v[p],S[p]);s.lineEnd(),s.areaEnd()}y&&(v[h]=+e(g,h,c),S[h]=+t(g,h,c),s.point(r?+r(g,h,c):v[h],n?+n(g,h,c):S[h]))}if(b)return s=null,b+""||null}function f(){return m$().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:De(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:De(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:De(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:De(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:De(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:De(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:De(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}class i1{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}
vendor: 8,433 bytes, line 319
319point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _oe(e){return new i1(e,!0)}function Toe(e){return new i1(e,!1)}const g$={draw(e,t){const n=kn(t/Ds);e.moveTo(n,0),e.arc(0,0,n,0,Wl)}},Eoe={draw(e,t){const n=kn(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},o1=kn(1/3),y$=o1*2,Coe={draw(e,t){const n=kn(t/y$),r=n*o1;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Aoe={draw(e,t){const n=kn(t),r=-n/2;e.rect(r,r,n,n)}},v$=.8908130915292852,a1=Os(Ds/10)/Os(7*Ds/10),b$=Os(Wl/10)*a1,w$=-Jb(Wl/10)*a1,Moe={draw(e,t){const n=kn(t*v$),r=b$*n,i=w$*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const a=Wl*o/5,s=Jb(a),l=Os(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*i,l*r+s*i)}e.closePath()}},Du=kn(3),Poe={draw(e,t){const n=-kn(t/(Du*3));e.moveTo(0,n*2),e.lineTo(-Du*n,-n),e.lineTo(Du*n,-n),e.closePath()}},Xt=-.5,Jt=kn(3)/2,Xc=1/kn(12),x$=(Xc/2+1)*3,Ioe={draw(e,t){const n=kn(t/x$),r=n/2,i=n*Xc,o=r,a=n*Xc+n,s=-o,l=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,l),e.lineTo(Xt*r-Jt*i,Jt*r+Xt*i),e.lineTo(Xt*o-Jt*a,Jt*o+Xt*a),e.lineTo(Xt*s-Jt*l,Jt*s+Xt*l),e.lineTo(Xt*r+Jt*i,Xt*i-Jt*r),e.lineTo(Xt*o+Jt*a,Xt*a-Jt*o),e.lineTo(Xt*s+Jt*l,Xt*l-Jt*s),e.closePath()}};function $oe(e,t){let n=null,r=Rd(i);e=typeof e=="function"?e:De(e||g$),t=typeof t=="function"?t:De(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:De(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:De(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function Ns(){}function Ls(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function s1(e){this._context=e}s1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ls(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ls(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Roe(e){return new s1(e)}function l1(e){this._context=e}l1.prototype={areaStart:Ns,areaEnd:Ns,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ls(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ooe(e){return new l1(e)}function u1(e){this._context=e}u1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ls(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Doe(e){return new u1(e)}function c1(e){this._context=e}c1.prototype={areaStart:Ns,areaEnd:Ns,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Noe(e){return new c1(e)}function am(e){return e<0?-1:1}function sm(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(am(o)+am(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function lm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Nu(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function zs(e){this._context=e}zs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Nu(this,this._t0,lm(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Nu(this,lm(this,n=sm(this,e,t)),n);break;default:Nu(this,this._t0,n=sm(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function f1(e){this._context=new d1(e)}(f1.prototype=Object.create(zs.prototype)).point=function(e,t){zs.prototype.point.call(this,t,e)};function d1(e){this._context=e}d1.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Loe(e){return new zs(e)}function zoe(e){return new f1(e)}function h1(e){this._context=e}h1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=um(e),i=um(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function um(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Foe(e){return new h1(e)}function Hl(e,t){this._context=e,this._t=t}Hl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;
vendor: 4,778 bytes, line 319
319default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function joe(e){return new Hl(e,.5)}function Boe(e){return new Hl(e,0)}function Voe(e){return new Hl(e,1)}function Qo(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function cm(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function k$(e,t){return e[t]}function S$(e){const t=[];return t.key=e,t}function Uoe(){var e=De([]),t=cm,n=Qo,r=k$;function i(o){var a=Array.from(e.apply(this,arguments),S$),s,l=a.length,u=-1,f;for(const c of o)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(c,a[s].key,u,o)]).data=c;for(s=0,f=Od(t(a));s<l;++s)a[f[s]].index=s;return n(a,f),a}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:De(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:De(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?cm:typeof o=="function"?o:De(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??Qo,i):n},i}function Zoe(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}Qo(e,t)}}function qoe(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}Qo(e,t)}}function Woe(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,l=0,u=0;s<a;++s){for(var f=e[t[s]],c=f[r][1]||0,h=f[r-1][1]||0,d=(c-h)/2,p=0;p<s;++p){var m=e[t[p]],g=m[r][1]||0,y=m[r-1][1]||0;d+=g-y}l+=c,u+=d*c}i[r-1][1]+=i[r-1][0]=n,l&&(n-=u/l)}i[r-1][1]+=i[r-1][0]=n,Qo(e,t)}}var _$=Rl;function T$(){this.__data__=new _$,this.size=0}var E$=T$;function C$(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var A$=C$;function M$(e){return this.__data__.get(e)}var P$=M$;function I$(e){return this.__data__.has(e)}var $$=I$,R$=Rl,O$=Ed,D$=Cd,N$=200;function L$(e,t){var n=this.__data__;if(n instanceof R$){var r=n.__data__;if(!O$||r.length<N$-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new D$(r)}return n.set(e,t),this.size=n.size,this}var z$=L$,F$=Rl,j$=E$,B$=A$,V$=P$,U$=$$,Z$=z$;function Xi(e){var t=this.__data__=new F$(e);this.size=t.size}Xi.prototype.clear=j$;Xi.prototype.delete=B$;Xi.prototype.get=V$;Xi.prototype.has=U$;Xi.prototype.set=Z$;var p1=Xi,q$="__lodash_hash_undefined__";function W$(e){return this.__data__.set(e,q$),this}var H$=W$;function G$(e){return this.__data__.has(e)}var Y$=G$,K$=Cd,X$=H$,J$=Y$;function Fs(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new K$;++t<n;)this.add(e[t])}Fs.prototype.add=Fs.prototype.push=X$;Fs.prototype.has=J$;var m1=Fs;function Q$(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var g1=Q$;function eR(e,t){return e.has(t)}var y1=eR,tR=m1,nR=g1,rR=y1,iR=1,oR=2;function aR(e,t,n,r,i,o){var a=n&iR,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,d=n&oR?new tR:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],m=t[c];if(r)var g=a?r(m,p,c,t,e,o):r(p,m,c,e,t,o);if(g!==void 0){if(g)continue;h=!1;break}if(d){if(!nR(t,function(y,b){if(!rR(d,b)&&(p===y||i(p,y,n,r,o)))return d.push(b)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,o))){h=!1;break}}return o.delete(e),o.delete(t),h}var v1=aR,sR=jn,lR=sR.Uint8Array,uR=lR;function cR(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var fR=cR;function dR(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Dd=dR,fm=Sa,dm=uR,hR=Td,pR=v1,mR=fR,gR=Dd,yR=1,vR=2,bR="[object Boolean]",wR="[object Date]",xR="[object Error]",kR="[object Map]",SR="[object Number]",_R="[object RegExp]",TR="[object Set]",ER="[object String]",CR="[object Symbol]",AR="[object ArrayBuffer]",MR="[object DataView]",hm=fm?fm.prototype:void 0,Lu=hm?hm.valueOf:void 0;function PR(e,t,n,r,i,o,a){switch(n){case MR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case AR:return!(e.byteLength!=t.byteLength||!o(new dm(e),new dm(t)));case bR:case wR:case SR:return hR(+e,+t);case xR:return e.name==t.name&&e.message==t.message;case _R:case ER:return e==t+"";case kR:var s=mR;case TR:var l=r&yR;if(s||(s=gR),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=vR,a.set(e,t);var f=pR(s(e),s(t),r,i,o,a);return a.delete(e),f;case CR:if(Lu)return Lu.call(e)==Lu.call(t)}return!1}var IR=PR;function $R(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var b1=$R,RR=b1,OR=Lt;
vendor: 5,344 bytes, line 319
319function DR(e,t,n){var r=t(e);return OR(e)?r:RR(r,n(e))}var NR=DR;function LR(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var zR=LR;function FR(){return[]}var jR=FR,BR=zR,VR=jR,UR=Object.prototype,ZR=UR.propertyIsEnumerable,pm=Object.getOwnPropertySymbols,qR=pm?function(e){return e==null?[]:(e=Object(e),BR(pm(e),function(t){return ZR.call(e,t)}))}:VR,WR=qR;function HR(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var GR=HR,YR=Qn,KR=er,XR="[object Arguments]";function JR(e){return KR(e)&&YR(e)==XR}var QR=JR,mm=QR,eO=er,w1=Object.prototype,tO=w1.hasOwnProperty,nO=w1.propertyIsEnumerable,rO=mm(function(){return arguments}())?mm:function(e){return eO(e)&&tO.call(e,"callee")&&!nO.call(e,"callee")},Nd=rO,js={exports:{}};function iO(){return!1}var oO=iO;js.exports;(function(e,t){var n=jn,r=oO,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(js,js.exports);var x1=js.exports,aO=9007199254740991,sO=/^(?:0|[1-9]\d*)$/;function lO(e,t){var n=typeof e;return t=t??aO,!!t&&(n=="number"||n!="symbol"&&sO.test(e))&&e>-1&&e%1==0&&e<t}var Ld=lO,uO=9007199254740991;function cO(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uO}var zd=cO,fO=Qn,dO=zd,hO=er,pO="[object Arguments]",mO="[object Array]",gO="[object Boolean]",yO="[object Date]",vO="[object Error]",bO="[object Function]",wO="[object Map]",xO="[object Number]",kO="[object Object]",SO="[object RegExp]",_O="[object Set]",TO="[object String]",EO="[object WeakMap]",CO="[object ArrayBuffer]",AO="[object DataView]",MO="[object Float32Array]",PO="[object Float64Array]",IO="[object Int8Array]",$O="[object Int16Array]",RO="[object Int32Array]",OO="[object Uint8Array]",DO="[object Uint8ClampedArray]",NO="[object Uint16Array]",LO="[object Uint32Array]",je={};je[MO]=je[PO]=je[IO]=je[$O]=je[RO]=je[OO]=je[DO]=je[NO]=je[LO]=!0;je[pO]=je[mO]=je[CO]=je[gO]=je[AO]=je[yO]=je[vO]=je[bO]=je[wO]=je[xO]=je[kO]=je[SO]=je[_O]=je[TO]=je[EO]=!1;function zO(e){return hO(e)&&dO(e.length)&&!!je[fO(e)]}var FO=zO;function jO(e){return function(t){return e(t)}}var k1=jO,Bs={exports:{}};Bs.exports;(function(e,t){var n=Rb,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(Bs,Bs.exports);var BO=Bs.exports,VO=FO,UO=k1,gm=BO,ym=gm&&gm.isTypedArray,ZO=ym?UO(ym):VO,S1=ZO,qO=GR,WO=Nd,HO=Lt,GO=x1,YO=Ld,KO=S1,XO=Object.prototype,JO=XO.hasOwnProperty;function QO(e,t){var n=HO(e),r=!n&&WO(e),i=!n&&!r&&GO(e),o=!n&&!r&&!i&&KO(e),a=n||r||i||o,s=a?qO(e.length,String):[],l=s.length;for(var u in e)(t||JO.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||YO(u,l)))&&s.push(u);return s}var eD=QO,tD=Object.prototype;function nD(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tD;return e===n}var rD=nD;function iD(e,t){return function(n){return e(t(n))}}var _1=iD,oD=_1,aD=oD(Object.keys,Object),sD=aD,lD=rD,uD=sD,cD=Object.prototype,fD=cD.hasOwnProperty;function dD(e){if(!lD(e))return uD(e);var t=[];for(var n in Object(e))fD.call(e,n)&&n!="constructor"&&t.push(n);return t}var hD=dD,pD=_d,mD=zd;function gD(e){return e!=null&&mD(e.length)&&!pD(e)}var Gl=gD,yD=eD,vD=hD,bD=Gl;function wD(e){return bD(e)?yD(e):vD(e)}var Fd=wD,xD=NR,kD=WR,SD=Fd;function _D(e){return xD(e,SD,kD)}var TD=_D,vm=TD,ED=1,CD=Object.prototype,AD=CD.hasOwnProperty;function MD(e,t,n,r,i,o){var a=n&ED,s=vm(e),l=s.length,u=vm(t),f=u.length;if(l!=f&&!a)return!1;for(var c=l;c--;){var h=s[c];if(!(a?h in t:AD.call(t,h)))return!1}var d=o.get(e),p=o.get(t);if(d&&p)return d==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=a;++c<l;){h=s[c];var y=e[h],b=t[h];if(r)var v=a?r(b,y,h,t,e,o):r(y,b,h,e,t,o);if(!(v===void 0?y===b||i(y,b,n,r,o):v)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var S=e.constructor,k=t.constructor;S!=k&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof k=="function"&&k instanceof k)&&(m=!1)}return o.delete(e),o.delete(t),m}var PD=MD,ID=ei,$D=jn,RD=ID($D,"DataView"),OD=RD,DD=ei,ND=jn,LD=DD(ND,"Promise"),zD=LD,FD=ei,jD=jn,BD=FD(jD,"Set"),T1=BD,VD=ei,UD=jn,ZD=VD(UD,"WeakMap"),qD=ZD,Jc=OD,Qc=Ed,ef=zD,tf=T1,nf=qD,E1=Qn,Ji=Db,bm="[object Map]",WD="[object Object]",wm="[object Promise]",xm="[object Set]",km="[object WeakMap]",Sm="[object DataView]",HD=Ji(Jc),GD=Ji(Qc),YD=Ji(ef),KD=Ji(tf),XD=Ji(nf),Nr=E1;(Jc&&Nr(new Jc(new ArrayBuffer(1)))!=Sm||Qc&&Nr(new Qc)!=bm||ef&&Nr(ef.resolve())!=wm||tf&&Nr(new tf)!=xm||nf&&Nr(new nf)!=km)&&(Nr=function(e){var t=E1(e),n=t==WD?e.constructor:void 0,r=n?Ji(n):"";if(r)switch(r){case HD:return Sm;case GD:return bm;case YD:return wm;case KD:return xm;case XD:return km}return t});var JD=Nr,zu=p1,QD=v1,eN=IR,tN=PD,_m=JD,Tm=Lt,Em=x1,nN=S1,rN=1,Cm="[object Arguments]",Am="[object Array]",Ja="[object Object]",iN=Object.prototype,Mm=iN.hasOwnProperty;function oN(e,t,n,r,i,o){var a=Tm(e),s=Tm(t),l=a?Am:_m(e),u=s?Am:_m(t);l=l==Cm?Ja:l,u=u==Cm?Ja:u;var f=l==Ja,c=u==Ja,h=l==u;if(h&&Em(e)){if(!Em(t))return!1;a=!0,f=!1}if(h&&!f)return o||(o=new zu),a||nN(e)?QD(e,t,n,r,i,o):eN(e,t,l,n,r,i,o);if(!(n&rN)){var d=f&&Mm.call(e,"__wrapped__"),p=c&&Mm.call(t,"__wrapped__");
vendor: 6,985 bytes, line 319
319if(d||p){var m=d?e.value():e,g=p?t.value():t;return o||(o=new zu),i(m,g,n,r,o)}}return h?(o||(o=new zu),tN(e,t,n,r,i,o)):!1}var aN=oN,sN=aN,Pm=er;function C1(e,t,n,r,i){return e===t?!0:e==null||t==null||!Pm(e)&&!Pm(t)?e!==e&&t!==t:sN(e,t,n,r,C1,i)}var jd=C1,lN=p1,uN=jd,cN=1,fN=2;function dN(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var c=new lN;if(r)var h=r(u,f,l,e,t,c);if(!(h===void 0?uN(f,u,cN|fN,r,c):h))return!1}}return!0}var hN=dN,pN=Er;function mN(e){return e===e&&!pN(e)}var A1=mN,gN=A1,yN=Fd;function vN(e){for(var t=yN(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,gN(i)]}return t}var bN=vN;function wN(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var M1=wN,xN=hN,kN=bN,SN=M1;function _N(e){var t=kN(e);return t.length==1&&t[0][2]?SN(t[0][0],t[0][1]):function(n){return n===e||xN(n,e,t)}}var TN=_N;function EN(e,t){return e!=null&&t in Object(e)}var CN=EN,AN=jb,MN=Nd,PN=Lt,IN=Ld,$N=zd,RN=Dl;function ON(e,t,n){t=AN(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=RN(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&$N(i)&&IN(a,i)&&(PN(e)||MN(e)))}var DN=ON,NN=CN,LN=DN;function zN(e,t){return e!=null&&LN(e,t,NN)}var FN=zN,jN=jd,BN=Bb,VN=FN,UN=Sd,ZN=A1,qN=M1,WN=Dl,HN=1,GN=2;function YN(e,t){return UN(e)&&ZN(t)?qN(WN(e),t):function(n){var r=BN(n,e);return r===void 0&&r===t?VN(n,e):jN(t,r,HN|GN)}}var KN=YN;function XN(e){return e}var Qi=XN;function JN(e){return function(t){return t==null?void 0:t[e]}}var QN=JN,eL=Pd;function tL(e){return function(t){return eL(t,e)}}var nL=tL,rL=QN,iL=nL,oL=Sd,aL=Dl;function sL(e){return oL(e)?rL(aL(e)):iL(e)}var lL=sL,uL=TN,cL=KN,fL=Qi,dL=Lt,hL=lL;function pL(e){return typeof e=="function"?e:e==null?fL:typeof e=="object"?dL(e)?cL(e[0],e[1]):uL(e):hL(e)}var eo=pL;function mL(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var gL=mL;function yL(e){return e!==e}var vL=yL;function bL(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var wL=bL,xL=gL,kL=vL,SL=wL;function _L(e,t,n){return t===t?SL(e,t,n):xL(e,kL,n)}var TL=_L,EL=TL;function CL(e,t){var n=e==null?0:e.length;return!!n&&EL(e,t,0)>-1}var AL=CL;function ML(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var PL=ML;function IL(){}var $L=IL,Fu=T1,RL=$L,OL=Dd,DL=1/0,NL=Fu&&1/OL(new Fu([,-0]))[1]==DL?function(e){return new Fu(e)}:RL,LL=NL,zL=m1,FL=AL,jL=PL,BL=y1,VL=LL,UL=Dd,ZL=200;function qL(e,t,n){var r=-1,i=FL,o=e.length,a=!0,s=[],l=s;if(n)a=!1,i=jL;else if(o>=ZL){var u=t?null:VL(e);if(u)return UL(u);a=!1,i=BL,l=new zL}else l=t?[]:s;e:for(;++r<o;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,a&&c===c){for(var h=l.length;h--;)if(l[h]===c)continue e;t&&l.push(c),s.push(f)}else i(l,c,n)||(l!==s&&l.push(c),s.push(f))}return s}var WL=qL,HL=eo,GL=WL;function YL(e,t){return e&&e.length?GL(e,HL(t)):[]}var KL=YL;const Hoe=Ee(KL);var Im=Sa,XL=Nd,JL=Lt,$m=Im?Im.isConcatSpreadable:void 0;function QL(e){return JL(e)||XL(e)||!!($m&&e&&e[$m])}var ez=QL,tz=b1,nz=ez;function P1(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=nz),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?P1(s,t-1,n,r,i):tz(i,s):r||(i[i.length]=s)}return i}var I1=P1;function rz(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var iz=rz,oz=iz,az=oz(),sz=az,lz=sz,uz=Fd;function cz(e,t){return e&&lz(e,t,uz)}var $1=cz,fz=Gl;function dz(e,t){return function(n,r){if(n==null)return n;if(!fz(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var hz=dz,pz=$1,mz=hz,gz=mz(pz),Bd=gz,yz=Bd,vz=Gl;function bz(e,t){var n=-1,r=vz(e)?Array(e.length):[];return yz(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var R1=bz;function wz(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var xz=wz,Rm=Hi;function kz(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,o=Rm(e),a=t!==void 0,s=t===null,l=t===t,u=Rm(t);if(!s&&!u&&!o&&e>t||o&&a&&l&&!s&&!u||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!u&&e<t||u&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0}var Sz=kz,_z=Sz;function Tz(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=_z(i[r],o[r]);if(l){if(r>=s)return l;var u=n[r];return l*(u=="desc"?-1:1)}}return e.index-t.index}var Ez=Tz,ju=Md,Cz=Pd,Az=eo,Mz=R1,Pz=xz,Iz=k1,$z=Ez,Rz=Qi,Oz=Lt;function Dz(e,t,n){t.length?t=ju(t,function(o){return Oz(o)?function(a){return Cz(a,o.length===1?o[0]:o)}:o}):t=[Rz];var r=-1;t=ju(t,Iz(Az));var i=Mz(e,function(o,a,s){var l=ju(t,function(u){return u(o)});return{criteria:l,index:++r,value:o}});return Pz(i,function(o,a){return $z(o,a,n)})}var Nz=Dz;function Lz(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var zz=Lz,Fz=zz,Om=Math.max;function jz(e,t,n){return t=Om(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Om(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Fz(e,this,s)}}var Bz=jz;function Vz(e){return function(){return e}}var Uz=Vz,Zz=ei,qz=function(){try{var e=Zz(Object,"defineProperty");return e({},"",{}),e}catch{}}(),O1=qz,Wz=Uz,Dm=O1,Hz=Qi,Gz=Dm?function(e,t){return Dm(e,"toString",{configurable:!0,enumerable:!1,value:Wz(t),writable:!0})}:Hz,Yz=Gz,Kz=800,Xz=16,Jz=Date.now;function Qz(e){var t=0,n=0;return function(){var r=Jz(),i=Xz-(r-n);if(n=r,i>0){if(++t>=Kz)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var eF=Qz,tF=Yz,nF=eF,rF=nF(tF),iF=rF,oF=Qi,aF=Bz,sF=iF;function lF(e,t){return sF(aF(e,t,oF),e+"")}var uF=lF,cF=Td,fF=Gl,dF=Ld,hF=Er;function pF(e,t,n){if(!hF(n))return!1;var r=typeof t;return(r=="number"?fF(n)&&dF(t,n.length):r=="string"&&t in n)?cF(n[t],e):!1}var Yl=pF,mF=I1,gF=Nz,yF=uF,Nm=Yl,vF=yF(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Nm(e,t[0],t[1])?t=[]:n>2&&Nm(t[0],t[1],t[2])&&(t=[t[0]]),gF(e,mF(t,1),[])}),bF=vF;const Goe=Ee(bF);var wF=jn,xF=function(){return wF.Date.now()},kF=xF,SF=/\s/;function _F(e){for(var t=e.length;t--&&SF.test(e.charAt(t)););return t}var TF=_F,EF=TF,CF=/^\s+/;function AF(e){return e&&e.slice(0,EF(e)+1).replace(CF,"")}var MF=AF,PF=MF,Lm=Er,IF=Hi,zm=NaN,$F=/^[-+]0x[0-9a-f]+$/i,RF=/^0b[01]+$/i,OF=/^0o[0-7]+$/i,DF=parseInt;function NF(e){if(typeof e=="number")return e;if(IF(e))return zm;if(Lm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Lm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=PF(e);var n=RF.test(e);return n||OF.test(e)?DF(e.slice(2),n?2:8):$F.test(e)?zm:+e}var D1=NF,LF=Er,Bu=kF,Fm=D1,zF="Expected a function",FF=Math.max,jF=Math.min;function BF(e,t,n){var r,i,o,a,s,l,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(zF);
vendor: 1,027 bytes, line 319
319t=Fm(t)||0,LF(n)&&(f=!!n.leading,c="maxWait"in n,o=c?FF(Fm(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h);function d(w){var C=r,A=i;return r=i=void 0,u=w,a=e.apply(A,C),a}function p(w){return u=w,s=setTimeout(y,t),f?d(w):a}function m(w){var C=w-l,A=w-u,R=t-C;return c?jF(R,o-A):R}function g(w){var C=w-l,A=w-u;return l===void 0||C>=t||C<0||c&&A>=o}function y(){var w=Bu();if(g(w))return b(w);s=setTimeout(y,m(w))}function b(w){return s=void 0,h&&r?d(w):(r=i=void 0,a)}function v(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function S(){return s===void 0?a:b(Bu())}function k(){var w=Bu(),C=g(w);if(r=arguments,i=this,l=w,C){if(s===void 0)return p(l);if(c)return clearTimeout(s),s=setTimeout(y,t),d(l)}return s===void 0&&(s=setTimeout(y,t)),a}return k.cancel=v,k.flush=S,k}var VF=BF,UF=VF,ZF=Er,qF="Expected a function";function WF(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(qF);return ZF(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),UF(e,t,{leading:r,maxWait:t,trailing:i}
319)}var HF=WF;const Yoe=Ee(HF);function gr(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GF(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Vd(e){let t,n,r;e.length!==2?(t=gr,n=(s,l)=>gr(e(s),l),r=(s,l)=>e(s)-l):(t=e===gr||e===GF?e:YF,n=e,r=e);function i(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;n(s[c],l)<0?u=c+1:f=c}while(u<f)}return u}function o(s,l,u=0,f=s.length){if(u<f){if(t(l,l)!==0)return f;do{const c=u+f>>>1;n(s[c],l)<=0?u=c+1:f=c}while(u<f)}return u}function a(s,l,u=0,f=s.length){const c=i(s,l,u,f-1);return c>u&&r(s[c-1],l)>-r(s[c],l)?c-1:c}return{left:i,center:a,right:o}}function YF(){return 0}function N1(e){return e===null?NaN:+e}function*KF(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const XF=Vd(gr),_a=XF.right;Vd(N1).center;class jm extends Map{constructor(t,n=e4){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(Bm(this,t))}has(t){return super.has(Bm(this,t))}set(t,n){return super.set(JF(this,t),n)}delete(t){return super.delete(QF(this,t))}}function Bm({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function JF({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function QF({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function e4(e){return e!==null&&typeof e=="object"?e.valueOf():e}function t4(e=gr){if(e===gr)return L1;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function L1(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const n4=Math.sqrt(50),r4=Math.sqrt(10),i4=Math.sqrt(2);function Vs(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=n4?10:o>=r4?5:o>=i4?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Vs(e,t,n*2):[s,l,u]}function rf(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,a]=r?Vs(t,e,n):Vs(e,t,n);if(!(o>=i))return[];const s=o-i+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(o-u)/-a;else for(let u=0;u<s;++u)l[u]=(o-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(i+u)/-a;else for(let u=0;u<s;++u)l[u]=(i+u)*a;return l}function of(e,t,n){return t=+t,e=+e,n=+n,Vs(e,t,n)[2]}function af(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?of(t,e,n):of(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Vm(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function Um(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function z1(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?L1:t4(i);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,f=Math.log(l),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(l-c)/l)*(u-l/2<0?-1:1),d=Math.max(n,Math.floor(t-u*c/l+h)),p=Math.min(r,Math.floor(t+(l-u)*c/l+h));z1(e,t,d,p,i)}const o=e[t];let a=n,s=r;for(xo(e,n,t),i(e[r],o)>0&&xo(e,n,r);a<s;){for(xo(e,a,s),++a,--s;i(e[a],o)<0;)++a;for(;i(e[s],o)>0;)--s}i(e[n],o)===0?xo(e,n,s):(++s,xo(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function xo(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function o4(e,t,n){if(e=Float64Array.from(KF(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Um(e);if(t>=1)return Vm(e);var r,i=(r-1)*t,o=Math.floor(i),a=Vm(z1(e,o).subarray(0,o+1)),s=Um(e.subarray(o+1));return a+(s-a)*(i-o)}}function a4(e,t,n=N1){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e),s=+n(e[o+1],o+1,e);return a+(s-a)*(i-o)}}function s4(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function ln(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function tr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}
vendor: 5,781 bytes, line 319
319const sf=Symbol("implicit");function Ud(){var e=new jm,t=[],n=[],r=sf;function i(o){let a=e.get(o);if(a===void 0){if(r!==sf)return r;e.set(o,a=t.push(o)-1)}return n[a%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new jm;for(const a of o)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return Ud(t,n).unknown(r)},ln.apply(i,arguments),i}function Zd(){var e=Ud().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,a,s=!1,l=0,u=0,f=.5;delete e.unknown;function c(){var h=t().length,d=i<r,p=d?i:r,m=d?r:i;o=(m-p)/Math.max(1,h-l+u*2),s&&(o=Math.floor(o)),p+=(m-p-o*(h-l))*f,a=o*(1-l),s&&(p=Math.round(p),a=Math.round(a));var g=s4(h).map(function(y){return p+o*y});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),c()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,c()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,c()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(h){return arguments.length?(s=!!h,c()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),c()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),c()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,c()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),c()):f},e.copy=function(){return Zd(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(f)},ln.apply(c(),arguments)}function F1(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return F1(t())},e}function l4(){return F1(Zd.apply(null,arguments).paddingInner(1))}function qd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function j1(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ta(){}var ea=.7,Us=1/ea,$i="\\s*([+-]?\\d+)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u4=/^#([0-9a-f]{3,8})$/,c4=new RegExp(`^rgb\\(${$i},${$i},${$i}\\)$`),f4=new RegExp(`^rgb\\(${Rn},${Rn},${Rn}\\)$`),d4=new RegExp(`^rgba\\(${$i},${$i},${$i},${ta}\\)$`),h4=new RegExp(`^rgba\\(${Rn},${Rn},${Rn},${ta}\\)$`),p4=new RegExp(`^hsl\\(${ta},${Rn},${Rn}\\)$`),m4=new RegExp(`^hsla\\(${ta},${Rn},${Rn},${ta}\\)$`),Zm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};qd(Ta,na,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:qm,formatHex:qm,formatHex8:g4,formatHsl:y4,formatRgb:Wm,toString:Wm});function qm(){return this.rgb().formatHex()}function g4(){return this.rgb().formatHex8()}function y4(){return B1(this).formatHsl()}function Wm(){return this.rgb().formatRgb()}function na(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u4.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Hm(t):n===3?new Nt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Qa(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Qa(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>
vendor: 7,390 bytes, line 319
3194&15|t&240,((t&15)<<4|t&15)/255):null):(t=c4.exec(e))?new Nt(t[1],t[2],t[3],1):(t=f4.exec(e))?new Nt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d4.exec(e))?Qa(t[1],t[2],t[3],t[4]):(t=h4.exec(e))?Qa(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=p4.exec(e))?Km(t[1],t[2]/100,t[3]/100,1):(t=m4.exec(e))?Km(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?Hm(Zm[e]):e==="transparent"?new Nt(NaN,NaN,NaN,0):null}function Hm(e){return new Nt(e>>16&255,e>>8&255,e&255,1)}function Qa(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function v4(e){return e instanceof Ta||(e=na(e)),e?(e=e.rgb(),new Nt(e.r,e.g,e.b,e.opacity)):new Nt}function lf(e,t,n,r){return arguments.length===1?v4(e):new Nt(e,t,n,r??1)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}qd(Nt,lf,j1(Ta,{brighter(e){return e=e==null?Us:Math.pow(Us,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ea:Math.pow(ea,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Nt(qr(this.r),qr(this.g),qr(this.b),Zs(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Gm,formatHex:Gm,formatHex8:b4,formatRgb:Ym,toString:Ym}));function Gm(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}`}function b4(){return`#${jr(this.r)}${jr(this.g)}${jr(this.b)}${jr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ym(){const e=Zs(this.opacity);return`${e===1?"rgb(":"rgba("}${qr(this.r)}, ${qr(this.g)}, ${qr(this.b)}${e===1?")":`, ${e})`}`}function Zs(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function jr(e){return e=qr(e),(e<16?"0":"")+e.toString(16)}function Km(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gn(e,t,n,r)}function B1(e){if(e instanceof gn)return new gn(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=na(e)),!e)return new gn;if(e instanceof gn)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new gn(a,s,l,e.opacity)}function w4(e,t,n,r){return arguments.length===1?B1(e):new gn(e,t,n,r??1)}function gn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}qd(gn,w4,j1(Ta,{brighter(e){return e=e==null?Us:Math.pow(Us,e),new gn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ea:Math.pow(ea,e),new gn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Nt(Vu(e>=240?e-240:e+120,i,r),Vu(e,i,r),Vu(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new gn(Xm(this.h),es(this.s),es(this.l),Zs(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Zs(this.opacity);return`${e===1?"hsl(":"hsla("}${Xm(this.h)}, ${es(this.s)*100}%, ${es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xm(e){return e=(e||0)%360,e<0?e+360:e}function es(e){return Math.max(0,Math.min(1,e||0))}function Vu(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Wd=e=>()=>e;function x4(e,t){return function(n){return e+n*t}}function k4(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function S4(e){return(e=+e)==1?V1:function(t,n){return n-t?k4(t,n,e):Wd(isNaN(t)?n:t)}}function V1(e,t){var n=t-e;return n?x4(e,n):Wd(isNaN(e)?t:e)}const Jm=function e(t){var n=S4(t);function r(i,o){var a=n((i=lf(i)).r,(o=lf(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=V1(i.opacity,o.opacity);return function(f){return i.r=a(f),i.g=s(f),i.b=l(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function _4(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function T4(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function E4(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),a;for(a=0;a<r;++a)i[a]=to(e[a],t[a]);for(;a<n;++a)o[a]=t[a];return function(s){for(a=0;a<r;++a)o[a]=i[a](s);return o}}function C4(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function qs(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function A4(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=to(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var uf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Uu=new RegExp(uf.source,"g");function M4(e){return function(){return e}}function P4(e){return function(t){return e(t)+""}}function I4(e,t){var n=uf.lastIndex=Uu.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=uf.exec(e))&&(i=Uu.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:qs(r,i)})),n=Uu.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?P4(l[0].x):M4(t):(t=l.length,function(u){for(var f=0,c;f<t;++f)s[(c=l[f]).i]=c.x(u);return s.join("")})}function to(e,t){var n=typeof t,r;return t==null||n==="boolean"?Wd(t):(n==="number"?qs:n==="string"?(r=na(t))?(t=r,Jm):I4:t instanceof na?Jm:t instanceof Date?C4:T4(t)?_4:Array.isArray(t)?E4:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?A4:qs)(e,t)}function Hd(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function $4(e,t){t===void 0&&(t=e,e=to);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return o[s](a-s)}}function R4(e){return function(){return e}}function Ws(e){return+e}var Qm=[0,1];function Et(e){return e}function cf(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:R4(isNaN(t)?NaN:.5)}function O4(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function D4(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=cf(i,r),o=n(a,o)):(r=cf(r,i),o=n(o,a)),function(s){return o(r(s))}}function N4(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=cf(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(s){var l=_a(e,s,1,r)-1;return o[l](i[l](s))}}function Ea(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Kl(){var e=Qm,t=Qm,n=to,r,i,o,a=Et,s,l,u;function f(){var h=Math.min(e.length,t.length);return a!==Et&&(a=O4(e[0],e[h-1])),s=h>2?N4:D4,l=u=null,c}function c(h){return h==null||isNaN(h=+h)?o:(l||(l=s(e.map(r),t,n)))(r(a(h)))}return c.invert=function(h){return a(i((u||(u=s(t,e.map(r),qs)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,Ws),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),n=Hd,f()},c.clamp=function(h){return arguments.length?(a=h?!0:Et,f()):a!==Et},c.interpolate=function(h){return arguments.length?(n=h,f()):n},c.unknown=function(h){return arguments.length?(o=h,c):o},function(h,d){return r=h,i=d,f()}}function Gd(){return Kl()(Et,Et)}
vendor: 3,810 bytes, line 319
319function L4(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Hs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Ni(e){return e=Hs(Math.abs(e)),e?e[1]:NaN}function z4(e,t){return function(n,r){for(var i=n.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(t)}}function F4(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var j4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ra(e){if(!(t=j4.exec(e)))throw new Error("invalid format: "+e);var t;return new Yd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ra.prototype=Yd.prototype;function Yd(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Yd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function B4(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var U1;function V4(e,t){var n=Hs(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(U1=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Hs(e,Math.max(0,t+o-1))[0]}function eg(e,t){var n=Hs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const tg={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:L4,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>eg(e*100,t),r:eg,s:V4,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ng(e){return e}var rg=Array.prototype.map,ig=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function U4(e){var t=e.grouping===void 0||e.thousands===void 0?ng:z4(rg.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?ng:F4(rg.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(c){c=ra(c);var h=c.fill,d=c.align,p=c.sign,m=c.symbol,g=c.zero,y=c.width,b=c.comma,v=c.precision,S=c.trim,k=c.type;k==="n"?(b=!0,k="g"):tg[k]||(v===void 0&&(v=12),S=!0,k="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var w=m==="$"?n:m==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",C=m==="$"?r:/[%p]/.test(k)?a:"",A=tg[k],R=/[defgprs%]/.test(k);v=v===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function E(M){var P=w,V=C,j,W,G;if(k==="c")V=A(M)+V,M="";else{M=+M;var Y=M<0||1/M<0;if(M=isNaN(M)?l:A(Math.abs(M),v),S&&(M=B4(M)),Y&&+M==0&&p!=="+"&&(Y=!1),P=(Y?p==="("?p:s:p==="-"||p==="("?"":p)+P,V=(k==="s"?ig[8+U1/3]:"")+V+(Y&&p==="("?")":""),R){for(j=-1,W=M.length;++j<W;
vendor: 4,064 bytes, line 319
319)if(G=M.charCodeAt(j),48>G||G>57){V=(G===46?i+M.slice(j+1):M.slice(j))+V,M=M.slice(0,j);break}}}b&&!g&&(M=t(M,1/0));var U=P.length+M.length+V.length,N=U<y?new Array(y-U+1).join(h):"";switch(b&&g&&(M=t(N+M,N.length?y-V.length:1/0),N=""),d){case"<":M=P+M+V+N;break;case"=":M=P+N+M+V;break;case"^":M=N.slice(0,U=N.length>>1)+P+M+V+N.slice(U);break;default:M=N+P+M+V;break}return o(M)}return E.toString=function(){return c+""},E}function f(c,h){var d=u((c=ra(c),c.type="f",c)),p=Math.max(-8,Math.min(8,Math.floor(Ni(h)/3)))*3,m=Math.pow(10,-p),g=ig[8+p/3];return function(y){return d(m*y)+g}}return{format:u,formatPrefix:f}}var ts,Kd,Z1;Z4({thousands:",",grouping:[3],currency:["$",""]});function Z4(e){return ts=U4(e),Kd=ts.format,Z1=ts.formatPrefix,ts}function q4(e){return Math.max(0,-Ni(Math.abs(e)))}function W4(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ni(t)/3)))*3-Ni(Math.abs(e)))}function H4(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ni(t)-Ni(e))+1}function q1(e,t,n,r){var i=af(e,t,n),o;switch(r=ra(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=W4(i,a))&&(r.precision=o),Z1(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=H4(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=q4(i))&&(r.precision=o-(r.type==="%")*2);break}}return Kd(r)}function Cr(e){var t=e.domain;return e.ticks=function(n){var r=t();return rf(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return q1(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,a=r[i],s=r[o],l,u,f=10;for(s<a&&(u=a,a=s,s=u,u=i,i=o,o=u);f-- >0;){if(u=of(a,s,n),u===l)return r[i]=a,r[o]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function W1(){var e=Gd();return e.copy=function(){return Ea(e,W1())},ln.apply(e,arguments),Cr(e)}function H1(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Ws),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return H1(e).unknown(t)},e=arguments.length?Array.from(e,Ws):[0,1],Cr(n)}function G1(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],a;return o<i&&(a=n,n=r,r=a,a=i,i=o,o=a),e[n]=t.floor(i),e[r]=t.ceil(o),e}function og(e){return Math.log(e)}function ag(e){return Math.exp(e)}function G4(e){return-Math.log(-e)}function Y4(e){return-Math.exp(-e)}function K4(e){return isFinite(e)?+("1e"+e):e<0?0:e}function X4(e){return e===10?K4:e===Math.E?Math.exp:t=>Math.pow(e,t)}function J4(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function sg(e){return(t,n)=>-e(-t,n)}function Xd(e){const t=e(og,ag),n=t.domain;let r=10,i,o;function a(){return i=J4(r),o=X4(r),n()[0]<0?(i=sg(i),o=sg(o),e(G4,Y4)):e(og,ag),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],f=l[l.length-1];const c=f<u;c&&([u,f]=[f,u]);let h=i(u),d=i(f),p,m;const g=s==null?10:+s;let y=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(p=1;p<r;++p)if(m=h<0?p/o(-h):p*o(h),!(m<u)){if(m>f)break;y.push(m)}}else for(;h<=d;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/o(-h):p*o(h),!(m<u)){if(m>f)break;y.push(m)}y.length*2<g&&(y=rf(u,f,g))}else y=rf(h,d,Math.min(d-h,g)).map(o);return c?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=ra(l)).precision==null&&(l.trim=!0),l=Kd(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return f=>{let c=f/o(Math.round(i(f)));return c*r<r-.5&&(c*=r),c<=u?l(f):""}},t.nice=()=>n(G1(n(),{floor:s=>o(Math.floor(i(s))),ceil:s=>o(Math.ceil(i(s)))})),t}function Y1(){const e=Xd(Kl()).domain([1,10]);return e.copy=()=>Ea(e,Y1()).base(e.base()),ln.apply(e,arguments),e}
319function lg(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ug(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Jd(e){var t=1,n=e(lg(t),ug(t));return n.constant=function(r){return arguments.length?e(lg(t=+r),ug(t)):t},Cr(n)}function K1(){var e=Jd(Kl());return e.copy=function(){return Ea(e,K1()).constant(e.constant())},ln.apply(e,arguments)}function cg(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Q4(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ej(e){return e<0?-e*e:e*e}function Qd(e){var t=e(Et,Et),n=1;function r(){return n===1?e(Et,Et):n===.5?e(Q4,ej):e(cg(n),cg(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Cr(t)}function eh(){var e=Qd(Kl());return e.copy=function(){return Ea(e,eh()).exponent(e.exponent())},ln.apply(e,arguments),e}function tj(){return eh.apply(null,arguments).exponent(.5)}function fg(e){return Math.sign(e)*e*e}function nj(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function X1(){var e=Gd(),t=[0,1],n=!1,r;function i(o){var a=nj(e(o));return isNaN(a)?r:n?Math.round(a):a}return i.invert=function(o){return e.invert(fg(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,Ws)).map(fg)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return X1(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},ln.apply(i,arguments),Cr(i)}function J1(){var e=[],t=[],n=[],r;function i(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=a4(e,a/s);return o}function o(a){return a==null||isNaN(a=+a)?r:t[_a(n,a)]}return o.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},o.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(gr),i()},o.range=function(a){return arguments.length?(t=Array.from(a),i()):t.slice()},o.unknown=function(a){return arguments.length?(r=a,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return J1().domain(e).range(t).unknown(r)},ln.apply(o,arguments)}function Q1(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function a(l){return l!=null&&l<=l?i[_a(r,l,0,n)]:o}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,s()):i.slice()},a.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(o=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return Q1().domain([e,t]).range(i).unknown(o)},ln.apply(Cr(a),arguments)}function ew(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[_a(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var a=t.indexOf(o);return[e[a-1],e[a]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return ew().domain(e).range(t).unknown(n)},ln.apply(i,arguments)}const Zu=new Date,qu=new Date;function lt(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const a=i(o),s=i.ceil(o);return o-a<s-o?a:s},i.offset=(o,a)=>(t(o=new Date(+o),a==null?1:Math.floor(a)),o),i.range=(o,a,s)=>{const l=[];if(o=i.ceil(o),s=s==null?1:Math.floor(s),!(o<a)||!(s>0))return l;let u;do l.push(u=new Date(+o)),t(o,s),e(o);while(u<o&&o<a);return l},i.filter=o=>lt(a=>{if(a>=a)for(;e(a),!o(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!o(a););else for(;--s>=0;)for(;t(a,1),!o(a););}),n&&(i.count=(o,a)=>(Zu.setTime(+o),qu.setTime(+a),e(Zu),e(qu),Math.floor(n(Zu,qu))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?a=>r(a)%o===0:a=>i.count(0,a)%o===0):i)),i}const Gs=lt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Gs.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?lt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Gs);Gs.range;const Zn=1e3,nn=Zn*60,qn=nn*60,Yn=qn*24,th=Yn*7,dg=Yn*30,Wu=Yn*365,Br=lt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zn)},(e,t)=>(t-e)/Zn,e=>e.getUTCSeconds());Br.range;const nh=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zn)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getMinutes());nh.range;const rh=lt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*nn)},(e,t)=>(t-e)/nn,e=>e.getUTCMinutes());rh.range;const ih=lt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zn-e.getMinutes()*nn)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getHours());ih.range;const oh=lt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qn)},(e,t)=>(t-e)/qn,e=>e.getUTCHours());oh.range;const Ca=lt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nn)/Yn,e=>e.getDate()-1);Ca.range;const Xl=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yn,e=>e.getUTCDate()-1);Xl.range;const tw=lt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Yn,e=>Math.floor(e/Yn));tw.range;function ti(e){return lt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*nn)/th)}const Jl=ti(0),Ys=ti(1),rj=ti(2),ij=ti(3),Li=ti(4),oj=ti(5),aj=ti(6);Jl.range;Ys.range;rj.range;ij.range;Li.range;oj.range;aj.range;function ni(e){return lt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/th)}const Ql=ni(0),Ks=ni(1),sj=ni(2),lj=ni(3),zi=ni(4),uj=ni(5),cj=ni(6);Ql.range;Ks.range;sj.range;lj.range;zi.range;uj.range;cj.range;const ah=lt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());ah.range;const sh=lt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());sh.range;const Kn=lt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Kn.every=e=>
vendor: 5,939 bytes, line 319
319!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Kn.range;const Xn=lt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:lt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Xn.range;function nw(e,t,n,r,i,o){const a=[[Br,1,Zn],[Br,5,5*Zn],[Br,15,15*Zn],[Br,30,30*Zn],[o,1,nn],[o,5,5*nn],[o,15,15*nn],[o,30,30*nn],[i,1,qn],[i,3,3*qn],[i,6,6*qn],[i,12,12*qn],[r,1,Yn],[r,2,2*Yn],[n,1,th],[t,1,dg],[t,3,3*dg],[e,1,Wu]];function s(u,f,c){const h=f<u;h&&([u,f]=[f,u]);const d=c&&typeof c.range=="function"?c:l(u,f,c),p=d?d.range(u,+f+1):[];return h?p.reverse():p}function l(u,f,c){const h=Math.abs(f-u)/c,d=Vd(([,,g])=>g).right(a,h);if(d===a.length)return e.every(af(u/Wu,f/Wu,c));if(d===0)return Gs.every(Math.max(af(u,f,c),1));const[p,m]=a[h/a[d-1][2]<a[d][2]/h?d-1:d];return p.every(m)}return[s,l]}const[fj,dj]=nw(Xn,sh,Ql,tw,oh,rh),[hj,pj]=nw(Kn,ah,Jl,Ca,ih,nh);function Hu(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gu(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ko(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function mj(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=So(i),f=_o(i),c=So(o),h=_o(o),d=So(a),p=_o(a),m=So(s),g=_o(s),y=So(l),b=_o(l),v={a:Y,A:U,b:N,B:T,c:null,d:vg,e:vg,f:zj,g:Gj,G:Kj,H:Dj,I:Nj,j:Lj,L:rw,m:Fj,M:jj,p:he,q:I,Q:xg,s:kg,S:Bj,u:Vj,U:Uj,V:Zj,w:qj,W:Wj,x:null,X:null,y:Hj,Y:Yj,Z:Xj,"%":wg},S={a:_,A:H,b:q,B:K,c:null,d:bg,e:bg,f:t5,g:f5,G:h5,H:Jj,I:Qj,j:e5,L:ow,m:n5,M:r5,p:te,q:xe,Q:xg,s:kg,S:i5,u:o5,U:a5,V:s5,w:l5,W:u5,x:null,X:null,y:c5,Y:d5,Z:p5,"%":wg},k={a:E,A:M,b:P,B:V,c:j,d:gg,e:gg,f:Ij,g:mg,G:pg,H:yg,I:yg,j:Cj,L:Pj,m:Ej,M:Aj,p:R,q:Tj,Q:Rj,s:Oj,S:Mj,u:wj,U:xj,V:kj,w:bj,W:Sj,x:W,X:G,y:mg,Y:pg,Z:_j,"%":$j};v.x=w(n,v),v.X=w(r,v),v.c=w(t,v),S.x=w(n,S),S.X=w(r,S),S.c=w(t,S);function w(z,J){return function(se){var D=[],Ye=-1,pe=0,We=z.length,$e,wt,un;for(se instanceof Date||(se=new Date(+se));++Ye<We;)z.charCodeAt(Ye)===37&&(D.push(z.slice(pe,Ye)),(wt=hg[$e=z.charAt(++Ye)])!=null?$e=z.charAt(++Ye):wt=$e==="e"?" ":"0",(un=J[$e])&&($e=un(se,wt)),D.push($e),pe=Ye+1);return D.push(z.slice(pe,Ye)),D.join("")}}function C(z,J){return function(se){var D=ko(1900,void 0,1),Ye=A(D,z,se+="",0),pe,We;if(Ye!=se.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(J&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(pe=Gu(ko(D.y,0,1)),We=pe.getUTCDay(),pe=We>4||We===0?Ks.ceil(pe):Ks(pe),pe=Xl.offset(pe,(D.V-1)*7),D.y=pe.getUTCFullYear(),D.m=pe.getUTCMonth(),D.d=pe.getUTCDate()+(D.w+6)%7):(pe=Hu(ko(D.y,0,1)),We=pe.getDay(),pe=We>4||We===0?Ys.ceil(pe):Ys(pe),pe=Ca.offset(pe,(D.V-1)*7),D.y=pe.getFullYear(),D.m=pe.getMonth(),D.d=pe.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),We="Z"in D?Gu(ko(D.y,0,1)).getUTCDay():Hu(ko(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(We+5)%7:D.w+D.U*7-(We+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Gu(D)):Hu(D)}}function A(z,J,se,D){for(var Ye=0,pe=J.length,We=se.length,$e,wt;Ye<pe;){if(D>=We)return-1;if($e=J.charCodeAt(Ye++),$e===37){if($e=J.charAt(Ye++),wt=k[$e in hg?J.charAt(Ye++):$e],!wt||(D=wt(z,se,D))<0)return-1}else if($e!=se.charCodeAt(D++))return-1}return D}function R(z,J,se){var D=u.exec(J.slice(se));return D?(z.p=f.get(D[0].toLowerCase()),se+D[0].length):-1}function E(z,J,se){var D=d.exec(J.slice(se));return D?(z.w=p.get(D[0].toLowerCase()),se+D[0].length):-1}function M(z,J,se){var D=c.exec(J.slice(se));return D?(z.w=h.get(D[0].toLowerCase()),se+D[0].length):-1}function P(z,J,se){var D=y.exec(J.slice(se));return D?(z.m=b.get(D[0].toLowerCase()),se+D[0].length):-1}function V(z,J,se){var D=m.exec(J.slice(se));return D?(z.m=g.get(D[0].toLowerCase()),se+D[0].length):-1}function j(z,J,se){return A(z,t,J,se)}function W(z,J,se){return A(z,n,J,se)}function G(z,J,se){return A(z,r,J,se)}function Y(z){return a[z.getDay()]}function U(z){return o[z.getDay()]}function N(z){return l[z.getMonth()]}function T(z){return s[z.getMonth()]}function he(z){return i[+(z.getHours()>=12)]}function I(z){return 1+~~(z.getMonth()/3)}function _(z){return a[z.getUTCDay()]}function H(z){return o[z.getUTCDay()]}function q(z){return l[z.getUTCMonth()]}function K(z){return s[z.getUTCMonth()]}function te(z){return i[+(z.getUTCHours()>=12)]}function xe(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var J=w(z+="",v);return J.toString=function(){return z},J},parse:function(z){var J=C(z+="",!1);return J.toString=function(){return z},J},utcFormat:function(z){var J=w(z+="",S);return J.toString=function(){return z},J},utcParse:function(z){var J=C(z+="",!0);return J.toString=function(){return z},J}}}var hg={"-":"",_:" ",0:"0"},ht=/^\s*\d+/,gj=/^%/,yj=/[\\^$*+?|[\]().{}]/g;function we(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function vj(e){return e.replace(yj,"\\$&")}function So(e){return new RegExp("^(?:"+e.map(vj).join("|")+")","i")}function _o(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function bj(e,t,n){var r=ht.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function wj(e,t,n){var r=ht.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xj(e,t,n){var r=ht.exec(t.slice(n,n+2));
vendor: 5,888 bytes, line 319
319return r?(e.U=+r[0],n+r[0].length):-1}function kj(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Sj(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pg(e,t,n){var r=ht.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function mg(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _j(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Tj(e,t,n){var r=ht.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ej(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function gg(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Cj(e,t,n){var r=ht.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yg(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Aj(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Mj(e,t,n){var r=ht.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Pj(e,t,n){var r=ht.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ij(e,t,n){var r=ht.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function $j(e,t,n){var r=gj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Rj(e,t,n){var r=ht.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Oj(e,t,n){var r=ht.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function vg(e,t){return we(e.getDate(),t,2)}function Dj(e,t){return we(e.getHours(),t,2)}function Nj(e,t){return we(e.getHours()%12||12,t,2)}function Lj(e,t){return we(1+Ca.count(Kn(e),e),t,3)}function rw(e,t){return we(e.getMilliseconds(),t,3)}function zj(e,t){return rw(e,t)+"000"}function Fj(e,t){return we(e.getMonth()+1,t,2)}function jj(e,t){return we(e.getMinutes(),t,2)}function Bj(e,t){return we(e.getSeconds(),t,2)}function Vj(e){var t=e.getDay();return t===0?7:t}function Uj(e,t){return we(Jl.count(Kn(e)-1,e),t,2)}function iw(e){var t=e.getDay();return t>=4||t===0?Li(e):Li.ceil(e)}function Zj(e,t){return e=iw(e),we(Li.count(Kn(e),e)+(Kn(e).getDay()===4),t,2)}function qj(e){return e.getDay()}function Wj(e,t){return we(Ys.count(Kn(e)-1,e),t,2)}function Hj(e,t){return we(e.getFullYear()%100,t,2)}function Gj(e,t){return e=iw(e),we(e.getFullYear()%100,t,2)}function Yj(e,t){return we(e.getFullYear()%1e4,t,4)}function Kj(e,t){var n=e.getDay();return e=n>=4||n===0?Li(e):Li.ceil(e),we(e.getFullYear()%1e4,t,4)}function Xj(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+we(t/60|0,"0",2)+we(t%60,"0",2)}function bg(e,t){return we(e.getUTCDate(),t,2)}function Jj(e,t){return we(e.getUTCHours(),t,2)}function Qj(e,t){return we(e.getUTCHours()%12||12,t,2)}function e5(e,t){return we(1+Xl.count(Xn(e),e),t,3)}function ow(e,t){return we(e.getUTCMilliseconds(),t,3)}function t5(e,t){return ow(e,t)+"000"}function n5(e,t){return we(e.getUTCMonth()+1,t,2)}function r5(e,t){return we(e.getUTCMinutes(),t,2)}function i5(e,t){return we(e.getUTCSeconds(),t,2)}function o5(e){var t=e.getUTCDay();return t===0?7:t}function a5(e,t){return we(Ql.count(Xn(e)-1,e),t,2)}function aw(e){var t=e.getUTCDay();return t>=4||t===0?zi(e):zi.ceil(e)}function s5(e,t){return e=aw(e),we(zi.count(Xn(e),e)+(Xn(e).getUTCDay()===4),t,2)}function l5(e){return e.getUTCDay()}function u5(e,t){return we(Ks.count(Xn(e)-1,e),t,2)}function c5(e,t){return we(e.getUTCFullYear()%100,t,2)}function f5(e,t){return e=aw(e),we(e.getUTCFullYear()%100,t,2)}function d5(e,t){return we(e.getUTCFullYear()%1e4,t,4)}function h5(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zi(e):zi.ceil(e),we(e.getUTCFullYear()%1e4,t,4)}function p5(){return"+0000"}function wg(){return"%"}function xg(e){return+e}function kg(e){return Math.floor(+e/1e3)}var fi,sw,lw;m5({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function m5(e){return fi=mj(e),sw=fi.format,fi.parse,lw=fi.utcFormat,fi.utcParse,fi}function g5(e){return new Date(e)}function y5(e){return e instanceof Date?+e:+new Date(+e)}function lh(e,t,n,r,i,o,a,s,l,u){var f=Gd(),c=f.invert,h=f.domain,d=u(".%L"),p=u(":%S"),m=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),b=u("%b %d"),v=u("%B"),S=u("%Y");function k(w){return(l(w)<w?d:s(w)<w?p:a(w)<w?m:o(w)<w?g:r(w)<w?i(w)<w?y:b:n(w)<w?v:S)(w)}return f.invert=function(w){return new Date(c(w))},f.domain=function(w){return arguments.length?h(Array.from(w,y5)):h().map(g5)},f.ticks=function(w){var C=h();return e(C[0],C[C.length-1],w??10)},f.tickFormat=function(w,C){return C==null?k:u(C)},f.nice=function(w){var C=h();return(!w||typeof w.range!="function")&&(w=t(C[0],C[C.length-1],w??10)),w?h(G1(C,w)):f},f.copy=function(){return Ea(f,lh(e,t,n,r,i,o,a,s,l,u))},f}function v5(){return ln.apply(lh(hj,pj,Kn,ah,Jl,Ca,ih,nh,Br,sw).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function b5(){return ln.apply(lh(fj,dj,Xn,sh,Ql,Xl,oh,rh,Br,lw).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function eu(){var e=0,t=1,n,r,i,o,a=Et,s=!1,l;function u(c){return c==null||isNaN(c=+c)?l:a(i===0?.5:(c=(o(c)-n)*i,s?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(c){return arguments.length?(s=!!c,u):s},u.interpolator=function(c){return arguments.length?(a=c,u):a};function f(c){return function(h){var d,p;return arguments.length?([d,p]=h,a=c(d,p),u):[a(0),a(1)]}}
vendor: 15,945 bytes, line 319
319return u.range=f(to),u.rangeRound=f(Hd),u.unknown=function(c){return arguments.length?(l=c,u):l},function(c){return o=c,n=c(e),r=c(t),i=n===r?0:1/(r-n),u}}function Ar(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function uw(){var e=Cr(eu()(Et));return e.copy=function(){return Ar(e,uw())},tr.apply(e,arguments)}function cw(){var e=Xd(eu()).domain([1,10]);return e.copy=function(){return Ar(e,cw()).base(e.base())},tr.apply(e,arguments)}function fw(){var e=Jd(eu());return e.copy=function(){return Ar(e,fw()).constant(e.constant())},tr.apply(e,arguments)}function uh(){var e=Qd(eu());return e.copy=function(){return Ar(e,uh()).exponent(e.exponent())},tr.apply(e,arguments)}function w5(){return uh.apply(null,arguments).exponent(.5)}function dw(){var e=[],t=Et;function n(r){if(r!=null&&!isNaN(r=+r))return t((_a(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(gr),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,o)=>o4(e,o/r))},n.copy=function(){return dw(t).domain(e)},tr.apply(n,arguments)}function tu(){var e=0,t=.5,n=1,r=1,i,o,a,s,l,u=Et,f,c=!1,h;function d(m){return isNaN(m=+m)?h:(m=.5+((m=+f(m))-o)*(r*m<r*o?s:l),u(c?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t,n]=m,i=f(e=+e),o=f(t=+t),a=f(n=+n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,d):[e,t,n]},d.clamp=function(m){return arguments.length?(c=!!m,d):c},d.interpolator=function(m){return arguments.length?(u=m,d):u};function p(m){return function(g){var y,b,v;return arguments.length?([y,b,v]=g,u=$4(m,[y,b,v]),d):[u(0),u(.5),u(1)]}}return d.range=p(to),d.rangeRound=p(Hd),d.unknown=function(m){return arguments.length?(h=m,d):h},function(m){return f=m,i=m(e),o=m(t),a=m(n),s=i===o?0:.5/(o-i),l=o===a?0:.5/(a-o),r=o<i?-1:1,d}}function hw(){var e=Cr(tu()(Et));return e.copy=function(){return Ar(e,hw())},tr.apply(e,arguments)}function pw(){var e=Xd(tu()).domain([.1,1,10]);return e.copy=function(){return Ar(e,pw()).base(e.base())},tr.apply(e,arguments)}function mw(){var e=Jd(tu());return e.copy=function(){return Ar(e,mw()).constant(e.constant())},tr.apply(e,arguments)}function ch(){var e=Qd(tu());return e.copy=function(){return Ar(e,ch()).exponent(e.exponent())},tr.apply(e,arguments)}function x5(){return ch.apply(null,arguments).exponent(.5)}const Koe=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Zd,scaleDiverging:hw,scaleDivergingLog:pw,scaleDivergingPow:ch,scaleDivergingSqrt:x5,scaleDivergingSymlog:mw,scaleIdentity:H1,scaleImplicit:sf,scaleLinear:W1,scaleLog:Y1,scaleOrdinal:Ud,scalePoint:l4,scalePow:eh,scaleQuantile:J1,scaleQuantize:Q1,scaleRadial:X1,scaleSequential:uw,scaleSequentialLog:cw,scaleSequentialPow:uh,scaleSequentialQuantile:dw,scaleSequentialSqrt:w5,scaleSequentialSymlog:fw,scaleSqrt:tj,scaleSymlog:K1,scaleThreshold:ew,scaleTime:v5,scaleUtc:b5,tickFormat:q1},Symbol.toStringTag,{value:"Module"}));var k5=Hi;function S5(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(a!=null&&(s===void 0?a===a&&!k5(a):n(a,s)))var s=a,l=o}return l}var gw=S5;function _5(e,t){return e>t}var T5=_5,E5=gw,C5=T5,A5=Qi;function M5(e){return e&&e.length?E5(e,A5,C5):void 0}var P5=M5;const Xoe=Ee(P5);function I5(e,t){return e<t}var $5=I5,R5=gw,O5=$5,D5=Qi;function N5(e){return e&&e.length?R5(e,D5,O5):void 0}var L5=N5;const Joe=Ee(L5);var z5=Md,F5=eo,j5=R1,B5=Lt;function V5(e,t){var n=B5(e)?z5:j5;return n(e,F5(t))}var U5=V5,Z5=I1,q5=U5;function W5(e,t){return Z5(q5(e,t),1)}var H5=W5;const Qoe=Ee(H5);var G5=jd;function Y5(e,t){return G5(e,t)}var K5=Y5;const eae=Ee(K5);var no=1e9,X5={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},dh,Ue=!0,an="[DecimalError] ",Wr=an+"Invalid argument: ",fh=an+"Exponent out of range: ",ro=Math.floor,Lr=Math.pow,J5=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ut,ft=1e7,Be=7,yw=9007199254740991,Xs=ro(yw/Be),X={};X.absoluteValue=X.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};X.comparedTo=X.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};X.decimalPlaces=X.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Be;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};X.dividedBy=X.div=function(e){return Wn(this,new this.constructor(e))};X.dividedToIntegerBy=X.idiv=function(e){var t=this,n=t.constructor;return Me(Wn(t,new n(e),0,1),n.precision)};X.equals=X.eq=function(e){return!this.cmp(e)};X.exponent=function(){return it(this)};X.greaterThan=X.gt=function(e){return this.cmp(e)>0};X.greaterThanOrEqualTo=X.gte=function(e){return this.cmp(e)>=0};X.isInteger=X.isint=function(){return this.e>this.d.length-2};X.isNegative=X.isneg=function(){return this.s<0};X.isPositive=X.ispos=function(){return this.s>0};X.isZero=function(){return this.s===0};X.lessThan=X.lt=function(e){return this.cmp(e)<0};X.lessThanOrEqualTo=X.lte=function(e){return this.cmp(e)<1};X.logarithm=X.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ut))throw Error(an+"NaN");if(n.s<1)throw Error(an+(n.s?"NaN":"-Infinity"));return n.eq(Ut)?new r(0):(Ue=!1,t=Wn(ia(n,o),ia(e,o),o),Ue=!0,Me(t,i))};X.minus=X.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ww(t,e):vw(t,(e.s=-e.s,e))};X.modulo=X.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(an+"NaN");return n.s?(Ue=!1,t=Wn(n,e,0,1).times(e),Ue=!0,n.minus(t)):Me(new r(n),i)};X.naturalExponential=X.exp=function(){return bw(this)};X.naturalLogarithm=X.ln=function(){return ia(this)};X.negated=X.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};X.plus=X.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?vw(t,e):ww(t,(e.s=-e.s,e))};X.precision=X.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wr+e);if(t=it(i)+1,r=i.d.length-1,n=r*Be+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};X.squareRoot=X.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(an+"NaN")}for(e=it(s),Ue=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=In(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ro((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(i.toString()),n=l.precision,i=a=n+3;;)if(o=r,r=o.plus(Wn(s,o,a+2)).times(.5),In(o.d).slice(0,a)===(t=In(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&t=="4999"){if(Me(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if(t!="9999")break;a+=4}return Ue=!0,Me(r,n)};X.times=X.mul=function(e){var t,n,r,i,o,a,s,l,u,f=this,c=f.constructor,h=f.d,d=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,u=d.length,l<u&&(o=h,h=d,d=o,a=l,l=u,u=a),o=[],a=l+u,r=a;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,i=l+r;i>r;)s=o[i]+d[r]*h[i-r-1]+t,o[i--]=s%ft|0,t=s/ft|0;o[i]=(o[i]+t)%ft|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,Ue?Me(e,c.precision):e};X.toDecimalPlaces=X.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Nn(e,0,no),t===void 0?t=r.rounding:Nn(t,0,8),Me(n,e+it(n)+1,t))};X.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Xr(r,!0):(Nn(e,0,no),t===void 0?t=i.rounding:Nn(t,0,8),r=Me(new i(r),e+1,t),n=Xr(r,!0,e+1)),n};X.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Xr(i):(Nn(e,0,no),t===void 0?t=o.rounding:Nn(t,0,8),r=Me(new o(i),e+it(i)+1,t),n=Xr(r.abs(),!1,e+it(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};X.toInteger=X.toint=function(){var e=this,t=e.constructor;return Me(new t(e),it(e)+1,t.rounding)};X.toNumber=function(){return+this};X.toPower=X.pow=function(e){var t,n,r,i,o,a,s=this,l=s.constructor,u=12,f=+(e=new l(e));if(!e.s)return new l(Ut);if(s=new l(s),!s.s){if(e.s<1)throw Error(an+"Infinity");return s}if(s.eq(Ut))return s;if(r=l.precision,e.eq(Ut))return Me(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,o=s.s,a){if((n=f<0?-f:f)<=yw){for(i=new l(Ut),t=Math.ceil(r/Be+4),Ue=!1;n%2&&(i=i.times(s),_g(i.d,t)),n=ro(n/2),n!==0;)s=s.times(s),_g(s.d,t);return Ue=!0,e.s<0?new l(Ut).div(i):Me(i,r)}}else if(o<0)throw Error(an+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Ue=!1,i=e.times(ia(s,r+u)),Ue=!0,i=bw(i),i.s=o,i};X.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=it(i),r=Xr(i,n<=o.toExpNeg||n>=o.toExpPos)):(Nn(e,1,no),t===void 0?t=o.rounding:Nn(t,0,8),i=Me(new o(i),e,t),n=it(i),r=Xr(i,e<=n||n<=o.toExpNeg,e)),r};X.toSignificantDigits=X.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Nn(e,1,no),t===void 0?t=r.rounding:Nn(t,0,8)),Me(new r(n),e,t)};X.toString=X.valueOf=X.val=X.toJSON=X[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=it(e),n=e.constructor;return Xr(e,t<=n.toExpNeg||t>=n.toExpPos)};function vw(e,t){var n,r,i,o,a,s,l,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),Ue?Me(t,c):t;if(l=e.d,u=t.d,a=e.e,i=t.e,l=l.slice(),o=a-i,o){for(o<0?(r=l,o=-o,s=u.length):(r=u,i=a,s=l.length),a=Math.ceil(c/Be),s=a>s?a+1:s+1,o>s&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(s=l.length,o=u.length,s-o<0&&(o=s,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/ft|0,l[o]%=ft;for(n&&(l.unshift(n),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,Ue?Me(t,c):t}function Nn(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wr+e)}function In(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",n=Be-r.length,n&&(o+=fr(n)),o+=r;a=e[t],r=a+"",n=Be-r.length,n&&(o+=fr(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return o+a}var Wn=function(){function e(r,i){var o,a=0,s=r.length;for(r=r.slice();s--;)o=r[s]*i+a,r[s]=o%ft|0,a=o/ft|0;return a&&r.unshift(a),r}function t(r,i,o,a){var s,l;if(o!=a)l=o>a?1:-1;else for(s=l=0;s<o;s++)if(r[s]!=i[s]){l=r[s]>i[s]?1:-1;break}return l}function n(r,i,o){for(var a=0;o--;)r[o]-=a,a=r[o]<i[o]?1:0,r[o]=a*ft+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,a){var s,l,u,f,c,h,d,p,m,g,y,b,v,S,k,w,C,A,R=r.constructor,E=r.s==i.s?1:-1,M=r.d,P=i.d;if(!r.s)return new R(r);if(!i.s)throw Error(an+"Division by zero");for(l=r.e-i.e,C=P.length,k=M.length,d=new R(E),p=d.d=[],u=0;P[u]==(M[u]||0);)++u;if(P[u]>(M[u]||0)&&--l,o==null?b=o=R.precision:a?b=o+(it(r)-it(i))+1:b=o,b<0)return new R(0);if(b=b/Be+2|0,u=0,C==1)for(f=0,P=P[0],b++;(u<k||f)&&b--;u++)v=f*ft+(M[u]||0),p[u]=v/P|0,f=v%P|0;else{for(f=ft/(P[0]+1)|0,f>1&&(P=e(P,f),M=e(M,f),C=P.length,k=M.length),S=C,m=M.slice(0,C),g=m.length;g<C;)m[g++]=0;A=P.slice(),A.unshift(0),w=P[0],P[1]>=ft/2&&++w;do f=0,s=t(P,m,C,g),s<0?(y=m[0],C!=g&&(y=y*ft+(m[1]||0)),f=y/w|0,f>1?(f>=ft&&(f=ft-1),c=e(P,f),h=c.length,g=m.length,s=t(c,m,h,g),s==1&&(f--,n(c,C<h?A:P,h))):(f==0&&(s=f=1),c=P.slice()),h=c.length,h<g&&c.unshift(0),n(m,c,g),s==-1&&(g=m.length,s=t(P,m,C,g),s<1&&(f++,n(m,C<g?A:P,g))),g=m.length):s===0&&(f++,m=[0]),p[u++]=f,s&&m[0]?m[g++]=M[S]||0:(m=[M[S]],g=1);while((S++<k||m[0]!==void 0)&&b--)}return p[0]||p.shift(),d.e=l,Me(d,a?o+it(d)+1:o)}}();function bw(e,t){var n,r,i,o,a,s,l=0,u=0,f=e.constructor,c=f.precision;if(it(e)>16)throw Error(fh+it(e));if(!e.s)return new f(Ut);for(Ue=!1,s=c,a=new f(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Lr(2,u))/Math.LN10*2+5|0,s+=r,n=i=o=new f(Ut),f.precision=s;;){if(i=Me(i.times(e),s),n=n.times(++l),a=o.plus(Wn(i,n,s)),In(a.d).slice(0,s)===In(o.d).slice(0,s)){for(;u--;)o=Me(o.times(o),s);return f.precision=c,t==null?(Ue=!0,Me(o,c)):o}o=a}}function it(e){for(var t=e.e*Be,n=e.d[0];n>=10;n/=10)t++;return t}function Yu(e,t,n){if(t>e.LN10.sd())throw Ue=!0,n&&(e.precision=n),Error(an+"LN10 precision limit exceeded");return Me(new e(e.LN10),t)}function fr(e){for(var t="";e--;)t+="0";return t}function ia(e,t){var n,r,i,o,a,s,l,u,f,c=1,h=10,d=e,p=d.d,m=d.constructor,g=m.precision;if(d.s<1)throw Error(an+(d.s?"NaN":"-Infinity"));if(d.eq(Ut))return new m(0);if(t==null?(Ue=!1,u=g):u=t,d.eq(10))return t==null&&(Ue=!0),Yu(m,u);if(u+=h,m.precision=u,n=In(p),r=n.charAt(0),o=it(d),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)d=d.times(e),n=In(d.d),r=n.charAt(0),c++;o=it(d),r>1?(d=new m("0."+n),o++):d=new m(r+"."+n.slice(1))}else return l=Yu(m,u+2,g).times(o+""),d=ia(new m(r+"."+n.slice(1)),u-h).plus(l),m.precision=g,t==null?(Ue=!0,Me(d,g)):d;for(s=a=d=Wn(d.minus(Ut),d.plus(Ut),u),f=Me(d.times(d),u),i=3;;){if(a=Me(a.times(f),u),l=s.plus(Wn(a,new m(i),u)),In(l.d).slice(0,u)===In(s.d).slice(0,u))return s=s.times(2),o!==0&&(s=s.plus(Yu(m,u+2,g).times(o+""))),s=Wn(s,new m(c),u),m.precision=g,t==null?(Ue=!0,Me(s,g)):s;s=l,i+=2}}function Sg(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=ro(n/Be),e.d=[],r=(n+1)%Be,n<0&&(r+=Be),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=Be;r<i;)e.d.push(+t.slice(r,r+=Be));t=t.slice(r),r=Be-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Ue&&(e.e>Xs||e.e<-Xs))throw Error(fh+n)}else e.s=0,e.e=0,e.d=[0];return e}function Me(e,t,n){var r,i,o,a,s,l,u,f,c=e.d;for(a=1,o=c[0];o>=10;o/=10)a++;if(r=t-a,r<0)r+=Be,i=t,u=c[f=0];else{if(f=Math.ceil((r+1)/Be),o=c.length,f>=o)return e;for(u=o=c[f],a=1;o>=10;o/=10)a++;r%=Be,i=r-Be+a}if(n!==void 0&&(o=Lr(10,a-i-1),s=u/o%10|0,l=t<0||c[f+1]!==void 0||u%o,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?i>0?u/Lr(10,a-i):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return l?(o=it(e),c.length=1,t=t-o-1,c[0]=Lr(10,(Be-t%Be)%Be),e.e=ro(-t/Be)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,o=1,f--):(c.length=f+1,o=Lr(10,Be-r),c[f]=i>0?(u/Lr(10,a-i)%Lr(10,i)|0)*o:0),l)for(;;)if(f==0){(c[0]+=o)==ft&&(c[0]=1,++e.e);break}else{if(c[f]+=o,c[f]!=ft)break;c[f--]=0,o=1}for(r=c.length;c[--r]===0;)c.pop();if(Ue&&(e.e>Xs||e.e<-Xs))throw Error(fh+it(e));return e}function ww(e,t){var n,r,i,o,a,s,l,u,f,c,h=e.constructor,d=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Ue?Me(t,d):t;if(l=e.d,c=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(f=a<0,f?(n=l,a=-a,s=c.length):(n=c,r=u,s=l.length),i=Math.max(Math.ceil(d/Be),s)+2,a>i&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for(i=l.length,s=c.length,f=i<s,f&&(s=i),i=0;i<s;i++)if(l[i]!=c[i]){f=l[i]<c[i];break}a=0}for(f&&(n=l,l=c,c=n,t.s=-t.s),s=l.length,i=c.length-s;i>0;--i)l[s++]=0;for(i=c.length;i>a;){if(l[--i]<c[i]){for(o=i;o&&l[--o]===0;)l[o]=ft-1;--l[o],l[i]+=ft}l[i]-=c[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Ue?Me(t,d):t):new h(0)}function Xr(e,t,n){var r,i=it(e),o=In(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+fr(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+fr(-i-1)+o,n&&(r=n-a)>0&&(o+=fr(r))):i>=a?(o+=fr(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+fr(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=fr(r))),e.s<0?"-"+o:o}function _g(e,t){if(e.length>t)return e.length=t,!0}function xw(e){var t,n,r;function i(o){var a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,o instanceof i){a.s=o.s,a.e=o.e,a.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Wr+o);if(o>0)a.s=1;else if(o<0)o=-o,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(o===~~o&&o<1e7){a.e=0,a.d=[o];return}return Sg(a,o.toString())}else if(typeof o!="string")throw Error(Wr+o);
319if(o.charCodeAt(0)===45?(o=o.slice(1),a.s=-1):a.s=1,J5.test(o))Sg(a,o);else throw Error(Wr+o)}if(i.prototype=X,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=xw,i.config=i.set=Q5,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function Q5(e){if(!e||typeof e!="object")throw Error(an+"Object expected");var t,n,r,i=["precision",1,no,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(ro(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Wr+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Wr+n+": "+r);return this}var dh=xw(X5);Ut=new dh(1);const tae=dh;var eB="Invariant failed";function nae(e,t){throw new Error(eB)}function tB(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var nB=tB;const rae=Ee(nB);var kw={exports:{}},rB="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",iB=rB,oB=iB;function Sw(){}function _w(){}_w.resetWarningCache=Sw;var aB=function(){function e(r,i,o,a,s,l){if(l!==oB){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:_w,resetWarningCache:Sw};return n.PropTypes=n,n};kw.exports=aB();var sB=kw.exports;const ke=Ee(sB);var lB=Object.getOwnPropertyNames,uB=Object.getOwnPropertySymbols,cB=Object.prototype.hasOwnProperty;function Tg(e,t){return function(r,i,o){return e(r,i,o)&&t(r,i,o)}}function ns(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var o=i.cache,a=o.get(n),s=o.get(r);if(a&&s)return a===r&&s===n;o.set(n,r),o.set(r,n);var l=e(n,r,i);return o.delete(n),o.delete(r),l}}function Eg(e){return lB(e).concat(uB(e))}var fB=Object.hasOwn||function(e,t){return cB.call(e,t)};function ri(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var dB="__v",hB="__o",pB="_owner",Cg=Object.getOwnPropertyDescriptor,Ag=Object.keys;function mB(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function gB(e,t){return ri(e.getTime(),t.getTime())}function yB(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function vB(e,t){return e===t}function Mg(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),o=e.entries(),a,s,l=0;(a=o.next())&&!a.done;){for(var u=t.entries(),f=!1,c=0;(s=u.next())&&!s.done;){if(i[c]){c++;continue}var h=a.value,d=s.value;if(n.equals(h[0],d[0],l,c,e,t,n)&&n.equals(h[1],d[1],h[0],d[0],e,t,n)){f=i[c]=!0;break}c++}if(!f)return!1;l++}return!0}var bB=ri;function wB(e,t,n){var r=Ag(e),i=r.length;if(Ag(t).length!==i)return!1;for(;i-- >0;)if(!Tw(e,t,n,r[i]))return!1;return!0}function To(e,t,n){var r=Eg(e),i=r.length;if(Eg(t).length!==i)return!1;for(var o,a,s;i-- >0;)if(o=r[i],!Tw(e,t,n,o)||(a=Cg(e,o),s=Cg(t,o),(a||s)&&(!a||!s||a.configurable!==s.configurable||a.enumerable!==s.enumerable||a.writable!==s.writable)))return!1;return!0}function xB(e,t){return ri(e.valueOf(),t.valueOf())}function kB(e,t){return e.source===t.source&&e.flags===t.flags}function Pg(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),o=e.values(),a,s;(a=o.next())&&!a.done;){for(var l=t.values(),u=!1,f=0;(s=l.next())&&!s.done;){if(!i[f]&&n.equals(a.value,s.value,a.value,s.value,e,t,n)){u=i[f]=!0;break}f++}if(!u)return!1}return!0}function SB(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function _B(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}
319function Tw(e,t,n,r){return(r===pB||r===hB||r===dB)&&(e.$$typeof||t.$$typeof)?!0:fB(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var TB="[object Arguments]",EB="[object Boolean]",CB="[object Date]",AB="[object Error]",MB="[object Map]",PB="[object Number]",IB="[object Object]",$B="[object RegExp]",RB="[object Set]",OB="[object String]",DB="[object URL]",NB=Array.isArray,Ig=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,$g=Object.assign,LB=Object.prototype.toString.call.bind(Object.prototype.toString);function zB(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,o=e.areMapsEqual,a=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,f=e.areSetsEqual,c=e.areTypedArraysEqual,h=e.areUrlsEqual;return function(p,m,g){if(p===m)return!0;if(p==null||m==null)return!1;var y=typeof p;if(y!==typeof m)return!1;if(y!=="object")return y==="number"?a(p,m,g):y==="function"?i(p,m,g):!1;var b=p.constructor;if(b!==m.constructor)return!1;if(b===Object)return s(p,m,g);if(NB(p))return t(p,m,g);if(Ig!=null&&Ig(p))return c(p,m,g);if(b===Date)return n(p,m,g);if(b===RegExp)return u(p,m,g);if(b===Map)return o(p,m,g);if(b===Set)return f(p,m,g);var v=LB(p);return v===CB?n(p,m,g):v===$B?u(p,m,g):v===MB?o(p,m,g):v===RB?f(p,m,g):v===IB?typeof p.then!="function"&&typeof m.then!="function"&&s(p,m,g):v===DB?h(p,m,g):v===AB?r(p,m,g):v===TB?s(p,m,g):v===EB||v===PB||v===OB?l(p,m,g):!1}}function FB(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?To:mB,areDatesEqual:gB,areErrorsEqual:yB,areFunctionsEqual:vB,areMapsEqual:r?Tg(Mg,To):Mg,areNumbersEqual:bB,areObjectsEqual:r?To:wB,arePrimitiveWrappersEqual:xB,areRegExpsEqual:kB,areSetsEqual:r?Tg(Pg,To):Pg,areTypedArraysEqual:r?To:SB,areUrlsEqual:_B};if(n&&(i=$g({},i,n(i))),t){var o=ns(i.areArraysEqual),a=ns(i.areMapsEqual),s=ns(i.areObjectsEqual),l=ns(i.areSetsEqual);i=$g({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:l})}return i}function jB(e){return function(t,n,r,i,o,a,s){return e(t,n,s)}}function BB(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,o=e.strict;if(r)return function(l,u){var f=r(),c=f.cache,h=c===void 0?t?new WeakMap:void 0:c,d=f.meta;return n(l,u,{cache:h,equals:i,meta:d,strict:o})};if(t)return function(l,u){return n(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(l,u){return n(l,u,a)}}var VB=Mr();Mr({strict:!0});Mr({circular:!0});Mr({circular:!0,strict:!0});Mr({createInternalComparator:function(){return ri}});Mr({strict:!0,createInternalComparator:function(){return ri}});Mr({circular:!0,createInternalComparator:function(){return ri}});Mr({circular:!0,createInternalComparator:function(){return ri},strict:!0});function Mr(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,o=e.strict,a=o===void 0?!1:o,s=FB(e),l=zB(s),u=r?r(l):jB(l);return BB({circular:n,comparator:l,createState:i,equals:u,strict:a})}function UB(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Rg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(o){n<0&&(n=o),o-n>t?(e(o),n=-1):UB(i)};requestAnimationFrame(r)}function ff(e){"@babel/helpers - typeof";return ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ff(e)}function ZB(e){return GB(e)||HB(e)||WB(e)||qB()}function qB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 320In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WB(e,t){if(e){if(typeof e=="string")return Og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Og(e,t)}}function Og(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GB(e){if(Array.isArray(e))return e}function YB(){var e={},t=function(){return null}
vendor: 17,020 bytes, lines 320-325
320,n=!1,r=function i(o){if(!n){if(Array.isArray(o)){if(!o.length)return;var a=o,s=ZB(a),l=s[0],u=s.slice(1);if(typeof l=="number"){Rg(i.bind(null,u),l);return}i(l),Rg(i.bind(null,u));return}ff(o)==="object"&&(e=o,t(e)),typeof o=="function"&&o()}};return{stop:function(){n=!0},start:function(o){n=!1,r(o)},subscribe:function(o){return t=o,function(){t=function(){return null}}}}}function oa(e){"@babel/helpers - typeof";return oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oa(e)}function Dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ng(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(n),!0).forEach(function(r){Ew(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ew(e,t,n){return t=KB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KB(e){var t=XB(e,"string");return oa(t)==="symbol"?t:String(t)}function XB(e,t){if(oa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JB=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(o){return i.includes(o)})})},QB=function(t){return t},e3=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},No=function(t,n){return Object.keys(n).reduce(function(r,i){return Ng(Ng({},r),{},Ew({},i,t(i,n[i])))},{})},Lg=function(t,n,r){return t.map(function(i){return"".concat(e3(i)," ").concat(n,"ms ").concat(r)}).join(",")};function t3(e,t){return i3(e)||r3(e,t)||Cw(e,t)||n3()}function n3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 321In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function i3(e){if(Array.isArray(e))return e}function o3(e){return l3(e)||s3(e)||Cw(e)||a3()}function a3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 322In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cw(e,t){if(e){if(typeof e=="string")return df(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return df(e,t)}}function s3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function l3(e){if(Array.isArray(e))return df(e)}function df(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Js=1e-4,Aw=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Mw=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},zg=function(t,n){return function(r){var i=Aw(t,n);return Mw(i,r)}},u3=function(t,n){return function(r){var i=Aw(t,n),o=[].concat(o3(i.map(function(a,s){return a*s}).slice(1)),[0]);return Mw(o,r)}},Fg=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1],a=n[2],s=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,o=0,a=1,s=1;break;case"ease":i=.25,o=.1,a=.25,s=1;break;case"ease-in":i=.42,o=0,a=1,s=1;break;case"ease-out":i=.42,o=0,a=.58,s=1;break;case"ease-in-out":i=0,o=0,a=.58,s=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=t3(u,4);i=f[0],o=f[1],a=f[2],s=f[3]}}}var c=zg(i,a),h=zg(o,s),d=u3(i,a),p=function(y){return y>1?1:y<0?0:y},m=function(y){for(var b=y>1?1:y,v=b,S=0;S<8;++S){var k=c(v)-b,w=d(v);if(Math.abs(k-b)<Js||w<Js)return h(v);v=p(v-k/w)}return h(v)};return m.isStepper=!1,m},c3=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,o=i===void 0?8:i,a=t.dt,s=a===void 0?17:a,l=function(f,c,h){var d=-(f-c)*r,p=h*o,m=h+(d-p)*s/1e3,g=h*s/1e3+f;return Math.abs(g-c)<Js&&Math.abs(m)<Js?[c,0]:[g,m]};return l.isStepper=!0,l.dt=s,l},f3=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Fg(i);case"spring":return c3();default:if(i.split("(")[0]==="cubic-bezier")return Fg(i)}return typeof i=="function"?i:null};function aa(e){"@babel/helpers - typeof";return aa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aa(e)}function jg(e){return p3(e)||h3(e)||Pw(e)||d3()}function d3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 323In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p3(e){if(Array.isArray(e))return pf(e)}function Bg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bg(Object(n),!0).forEach(function(r){hf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hf(e,t,n){return t=m3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m3(e){var t=g3(e,"string");return aa(t)==="symbol"?t:String(t)}function g3(e,t){if(aa(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(aa(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y3(e,t){return w3(e)||b3(e,t)||Pw(e,t)||v3()}function v3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 324In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pw(e,t){if(e){if(typeof e=="string")return pf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pf(e,t)}}function pf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b3(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(f){u=!0,i=f}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}function w3(e){if(Array.isArray(e))return e}var Qs=function(t,n,r){return t+(n-t)*r},mf=function(t){var n=t.from,r=t.to;return n!==r},x3=function e(t,n,r){var i=No(function(o,a){if(mf(a)){var s=t(a.from,a.to,a.velocity),l=y3(s,2),u=l[0],f=l[1];return pt(pt({},a),{},{from:u,velocity:f})}return a},n);return r<1?No(function(o,a){return mf(a)?pt(pt({},a),{},{velocity:Qs(a.velocity,i[o].velocity,r),from:Qs(a.from,i[o].from,r)}):a},n):e(t,i,r-1)};const k3=function(e,t,n,r,i){var o=JB(e,t),a=o.reduce(function(g,y){return pt(pt({},g),{},hf({},y,[e[y],t[y]]))},{}),s=o.reduce(function(g,y){return pt(pt({},g),{},hf({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,u,f,c=function(){return null},h=function(){return No(function(y,b){return b.from},s)},d=function(){return!Object.values(s).filter(mf).length},p=function(y){u||(u=y);var b=y-u,v=b/n.dt;s=x3(n,s,v),i(pt(pt(pt({},e),t),h())),u=y,d()||(l=requestAnimationFrame(c))},m=function(y){f||(f=y);var b=(y-f)/r,v=No(function(k,w){return Qs.apply(void 0,jg(w).concat([n(b)]))},a);if(i(pt(pt(pt({},e),t),v)),b<1)l=requestAnimationFrame(c);else{var S=No(function(k,w){return Qs.apply(void 0,jg(w).concat([n(1)]))},a);i(pt(pt(pt({},e),t),S))}};return c=n.isStepper?p:m,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(l)}}};function Fi(e){"@babel/helpers - typeof";return Fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fi(e)}var S3=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function _3(e,t){if(e==null)return{};var n=T3(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function T3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ku(e){return M3(e)||A3(e)||C3(e)||E3()}function E3(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 325In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C3(e,t){if(e){if(typeof e=="string")return gf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gf(e,t)}}function A3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M3(e){if(Array.isArray(e))return gf(e)}function gf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vg(Object(n),!0).forEach(function(r){Po(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Po(e,t,n){return t=Iw(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I3(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Iw(r.key),r)}}function $3(e,t,n){return t&&I3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iw(e){var t=R3(e,"string");return Fi(t)==="symbol"?t:String(t)}function R3(e,t){if(Fi(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fi(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function O3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},yf(e,t)}function D3(e){var t=N3();return function(){var r=el(e),i;if(t){var o=el(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return vf(this,i)}}function vf(e,t){if(t&&(Fi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bf(e)}function bf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},el(e)}var hh=function(e){O3(n,e);var t=D3(n);function n(r,i){var o;P3(this,n),o=t.call(this,r,i);var a=o.props,s=a.isActive,l=a.attributeName,u=a.from,f=a.to,c=a.steps,h=a.children,d=a.duration;if(o.handleStyleChange=o.handleStyleChange.bind(bf(o)),o.changeStyle=o.changeStyle.bind(bf(o)),!s||d<=0)return o.state={style:{}},typeof h=="function"&&(o.state={style:f}),vf(o);if(c&&c.length)o.state={style:c[0].style};else if(u){if(typeof h=="function")return o.state={style:u},vf(o);o.state={style:l?Po({},l,u):u}}else o.state={style:{}};return o}return $3(n,[{key:"componentDidMount",value:function(){var i=this.props,o=i.isActive,a=i.canBegin;this.mounted=!0,!(!o||!a)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var o=this.props,a=o.isActive,s=o.canBegin,l=o.attributeName,u=o.shouldReAnimate,f=o.to,c=o.from,h=this.state.style;if(s){if(!a){var d={style:l?Po({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(d);return}if(!(VB(i.to,f)&&i.canBegin&&i.isActive)){var p=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=p||u?c:i.to;if(this.state&&h){var g={style:l?Po({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(g)}this.runAnimation(fn(fn({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var o=this,a=i.from,s=i.to,l=i.duration,u=i.easing,f=i.begin,c=i.onAnimationEnd,h=i.onAnimationStart,d=k3(a,s,f3(u),l,this.changeStyle),p=function(){o.stopJSAnimation=d()};this.manager.start([h,f,p,l,c])}},{key:"runStepAnimation",value:function(i){var o=this,a=i.steps,s=i.begin,l=i.onAnimationStart,u=a[0],f=u.style,c=u.duration,h=c===void 0?0:c,d=function(m,g,y){if(y===0)return m;var b=g.duration,v=g.easing,S=v===void 0?"ease":v,k=g.style,w=g.properties,C=g.onAnimationEnd,A=y>0?a[y-1]:g,R=w||Object.keys(k);if(typeof S=="function"||S==="spring")return[].concat(Ku(m),[o.runJSAnimation.bind(o,{from:A.style,to:k,duration:b,easing:S}),b]);var E=Lg(R,b,S),M=fn(fn(fn({},A.style),k),{},{transition:E});return[].concat(Ku(m),[M,b,C]).filter(QB)};return this.manager.start([l].concat(Ku(a.reduce(d,[f,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=YB());var o=i.begin,a=i.duration,s=i.attributeName,l=i.to,u=i.easing,f=i.onAnimationStart,c=i.onAnimationEnd,h=i.steps,d=i.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),typeof u=="function"||typeof d=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?Po({},s,l):l,g=Lg(Object.keys(m),a,u);p.start([f,o,fn(fn({},m),{},{transition:g}),a,c])}},{key:"render",value:function(){var i=this.props,o=i.children;i.begin;var a=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=_3(i,S3),u=x.Children.count(o),f=this.state.style;if(typeof o=="function")return o(f);if(!s||u===0||a<=0)return o;var c=function(d){var p=d.props,m=p.style,g=m===void 0?{}:m,y=p.className,b=x.cloneElement(d,fn(fn({},l),{},{style:fn(fn({},g),f),className:y}));return b};
325return u===1?c(x.Children.only(o)):L.createElement("div",null,x.Children.map(o,function(h){return c(h)}))}}]),n}(x.PureComponent);hh.displayName="Animate";hh.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hh.propTypes={from:ke.oneOfType([ke.object,ke.string]),to:ke.oneOfType([ke.object,ke.string]),attributeName:ke.string,duration:ke.number,begin:ke.number,easing:ke.oneOfType([ke.string,ke.func]),steps:ke.arrayOf(ke.shape({duration:ke.number.isRequired,style:ke.object.isRequired,easing:ke.oneOfType([ke.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ke.func]),properties:ke.arrayOf("string"),onAnimationEnd:ke.func})),children:ke.oneOfType([ke.node,ke.func]),isActive:ke.bool,canBegin:ke.bool,onAnimationEnd:ke.func,shouldReAnimate:ke.bool,onAnimationStart:ke.func,onAnimationReStart:ke.func};var L3=_1,z3=L3(Object.getPrototypeOf,Object),F3=z3,j3=Qn,B3=F3,V3=er,U3="[object Object]",Z3=Function.prototype,q3=Object.prototype,$w=Z3.toString,W3=q3.hasOwnProperty,H3=$w.call(Object);function G3(e){if(!V3(e)||j3(e)!=U3)return!1;var t=B3(e);if(t===null)return!0;var n=W3.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&$w.call(n)==H3}var Y3=G3;const iae=Ee(Y3);var K3=Qn,X3=er,J3="[object Boolean]";function Q3(e){return e===!0||e===!1||X3(e)&&K3(e)==J3}var eV=Q3;const oae=Ee(eV);var tV=Math.ceil,nV=Math.max;function rV(e,t,n,r){for(var i=-1,o=nV(tV((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a}var iV=rV,oV=D1,Ug=1/0,aV=17976931348623157e292;function sV(e){if(!e)return e===0?e:0;if(e=oV(e),e===Ug||e===-Ug){var t=e<0?-1:1;return t*aV}return e===e?e:0}var lV=sV,uV=iV,cV=Yl,Xu=lV;function fV(e){return function(t,n,r){return r&&typeof r!="number"&&cV(t,n,r)&&(n=r=void 0),t=Xu(t),n===void 0?(n=t,t=0):n=Xu(n),r=r===void 0?t<n?1:-1:Xu(r),uV(t,n,r,e)}}var dV=fV,hV=dV,pV=hV(),mV=pV;const aae=Ee(mV);var gV=Bd;function yV(e,t){var n;return gV(e,function(r,i,o){return n=t(r,i,o),!n}),!!n}var vV=yV,bV=g1,wV=eo,xV=vV,kV=Lt,SV=Yl;function _V(e,t,n){var r=kV(e)?bV:xV;return n&&SV(e,t,n)&&(t=void 0),r(e,wV(t))}var TV=_V;const sae=Ee(TV);var Zg=O1;function EV(e,t,n){t=="__proto__"&&Zg?Zg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var CV=EV,AV=CV,MV=$1,PV=eo;function IV(e,t){var n={};return t=PV(t),MV(e,function(r,i,o){AV(n,i,t(r,i,o))}),n}var $V=IV;const lae=Ee($V);function RV(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var OV=RV,DV=Bd;function NV(e,t){var n=!0;return DV(e,function(r,i,o){return n=!!t(r,i,o),n}),n}var LV=NV,zV=OV,FV=LV,jV=eo,BV=Lt,VV=Yl;function UV(e,t,n){var r=BV(e)?zV:FV;return n&&VV(e,t,n)&&(t=void 0),r(e,jV(t))}var ZV=UV;const uae=Ee(ZV);var Rw={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(l,u,f){this.fn=l,this.context=u,this.once=f||!1}function o(l,u,f,c,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var d=new i(f,c||l,h),p=n?n+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],d]:l._events[p].push(d):(l._events[p]=d,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},s.prototype.listeners=function(u){var f=n?n+u:u,c=this._events[f];if(!c)return[];
325if(c.fn)return[c.fn];for(var h=0,d=c.length,p=new Array(d);h<d;h++)p[h]=c[h].fn;return p},s.prototype.listenerCount=function(u){var f=n?n+u:u,c=this._events[f];return c?c.fn?1:c.length:0},s.prototype.emit=function(u,f,c,h,d,p){var m=n?n+u:u;if(!this._events[m])return!1;var g=this._events[m],y=arguments.length,b,v;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,h),!0;case 5:return g.fn.call(g.context,f,c,h,d),!0;case 6:return g.fn.call(g.context,f,c,h,d,p),!0}for(v=1,b=new Array(y-1);v<y;v++)b[v-1]=arguments[v];g.fn.apply(g.context,b)}else{var S=g.length,k;for(v=0;v<S;v++)switch(g[v].once&&this.removeListener(u,g[v].fn,void 0,!0),y){case 1:g[v].fn.call(g[v].context);break;case 2:g[v].fn.call(g[v].context,f);break;case 3:g[v].fn.call(g[v].context,f,c);break;case 4:g[v].fn.call(g[v].context,f,c,h);break;default:if(!b)for(k=1,b=new Array(y-1);k<y;k++)b[k-1]=arguments[k];g[v].fn.apply(g[v].context,b)}}return!0},s.prototype.on=function(u,f,c){return o(this,u,f,c,!1)},s.prototype.once=function(u,f,c){return o(this,u,f,c,!0)},s.prototype.removeListener=function(u,f,c,h){var d=n?n+u:u;if(!this._events[d])return this;if(!f)return a(this,d),this;var p=this._events[d];if(p.fn)p.fn===f&&(!h||p.once)&&(!c||p.context===c)&&a(this,d);else{for(var m=0,g=[],y=p.length;m<y;m++)(p[m].fn!==f||h&&!p[m].once||c&&p[m].context!==c)&&g.push(p[m]);g.length?this._events[d]=g.length===1?g[0]:g:a(this,d)}return this},s.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&a(this,f)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(Rw);var qV=Rw.exports;const cae=Ee(qV),Ow=x.createContext({});function WV(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const HV=typeof window<"u",GV=HV?x.useLayoutEffect:x.useEffect,ph=x.createContext(null);function mh(e,t){e.indexOf(t)===-1&&e.push(t)}function tl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ln=(e,t,n)=>n>t?t:n<e?e:n;let gh=()=>{};const xr={},Dw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Nw(e){return typeof e=="object"&&e!==null}const Lw=e=>/^0[^.\s]+$/u.test(e);function zw(e){let t;return()=>(t===void 0&&(t=e()),t)}const on=e=>e,YV=(e,t)=>n=>t(e(n)),Aa=(...e)=>e.reduce(YV),sa=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class yh{constructor(){this.subscriptions=[]}add(t){return mh(this.subscriptions,t),()=>tl(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const qt=e=>e*1e3,rn=e=>e/1e3;function Fw(e,t){return t?e*(1e3/t):0}const jw=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,KV=1e-7,XV=12;function JV(e,t,n,r,i){let o,a,s=0;do a=t+(n-t)/2,o=jw(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>KV&&++s<XV);return a}function Ma(e,t,n,r){if(e===t&&n===r)return on;const i=o=>JV(o,0,1,e,n);return o=>o===0||o===1?o:jw(i(o),t,r)}const Bw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Vw=e=>t=>1-e(1-t),Uw=Ma(.33,1.53,.69,.99),vh=Vw(Uw),Zw=Bw(vh),qw=e=>e>=1?1:(e*=2)<1?.5*vh(e):.5*(2-Math.pow(2,-10*(e-1))),bh=e=>1-Math.sin(Math.acos(e)),Ww=Vw(bh),Hw=Bw(bh),QV=Ma(.42,0,1,1),e9=Ma(0,0,.58,1),Gw=Ma(.42,0,.58,1),t9=e=>Array.isArray(e)&&typeof e[0]!="number",Yw=e=>Array.isArray(e)&&typeof e[0]=="number",n9={linear:on,easeIn:QV,easeInOut:Gw,easeOut:e9,circIn:bh,circInOut:Hw,circOut:Ww,backIn:vh,backInOut:Zw,backOut:Uw,anticipate:qw},r9=e=>typeof e=="string",qg=e=>{if(Yw(e)){gh(e.length===4);const[t,n,r,i]=e;return Ma(t,n,r,i)}else if(r9(e))return n9[e];return e},rs=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function i9(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};
vendor: 96,799 bytes, line 325
325function l(f){a.has(f)&&(u.schedule(f),e()),f(s)}const u={schedule:(f,c=!1,h=!1)=>{const p=h&&i?n:r;return c&&a.add(f),p.add(f),f},cancel:f=>{r.delete(f),a.delete(f)},process:f=>{if(s=f,i){o=!0;return}i=!0;const c=n;n=r,r=c,n.forEach(l),n.clear(),i=!1,o&&(o=!1,u.process(f))}};return u}const o9=40;function Kw(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=rs.reduce((v,S)=>(v[S]=i9(o),v),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:f,update:c,preRender:h,render:d,postRender:p}=a,m=()=>{const v=xr.useManualTiming,S=v?i.timestamp:performance.now();n=!1,v||(i.delta=r?1e3/60:Math.max(Math.min(S-i.timestamp,o9),1)),i.timestamp=S,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),f.process(i),c.process(i),h.process(i),d.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},g=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:rs.reduce((v,S)=>{const k=a[S];return v[S]=(w,C=!1,A=!1)=>(n||g(),k.schedule(w,C,A)),v},{}),cancel:v=>{for(let S=0;S<rs.length;S++)a[rs[S]].cancel(v)},state:i,steps:a}}const{schedule:Pe,cancel:kr,state:mt,steps:Ju}=Kw(typeof requestAnimationFrame<"u"?requestAnimationFrame:on,!0);let vs;function a9(){vs=void 0}const Ct={now:()=>(vs===void 0&&Ct.set(mt.isProcessing||xr.useManualTiming?mt.timestamp:performance.now()),vs),set:e=>{vs=e,queueMicrotask(a9)}},Xw=e=>t=>typeof t=="string"&&t.startsWith(e),Jw=Xw("--"),s9=Xw("var(--"),wh=e=>s9(e)?l9.test(e.split("/*")[0].trim()):!1,l9=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Wg(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const io={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},la={...io,transform:e=>Ln(0,1,e)},is={...io,default:1},Lo=e=>Math.round(e*1e5)/1e5,xh=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function u9(e){return e==null}const c9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,kh=(e,t)=>n=>!!(typeof n=="string"&&c9.test(n)&&n.startsWith(e)||t&&!u9(n)&&Object.prototype.hasOwnProperty.call(n,t)),Qw=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,s]=r.match(xh);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},f9=e=>Ln(0,255,e),Qu={...io,transform:e=>Math.round(f9(e))},Vr={test:kh("rgb","red"),parse:Qw("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qu.transform(e)+", "+Qu.transform(t)+", "+Qu.transform(n)+", "+Lo(la.transform(r))+")"};function d9(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}}const wf={test:kh("#"),parse:d9,transform:Vr.transform},Pa=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),lr=Pa("deg"),On=Pa("%"),Q=Pa("px"),h9=Pa("vh"),p9=Pa("vw"),Hg={...On,parse:e=>On.parse(e)/100,transform:e=>On.transform(e*100)},Si={test:kh("hsl","hue"),parse:Qw("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+On.transform(Lo(t))+", "+On.transform(Lo(n))+", "+Lo(la.transform(r))+")"},rt={test:e=>Vr.test(e)||wf.test(e)||Si.test(e),parse:e=>Vr.test(e)?Vr.parse(e):Si.test(e)?Si.parse(e):wf.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vr.transform(e):Si.transform(e),getAnimatableNone:e=>{const t=rt.parse(e);return t.alpha=0,rt.transform(t)}},m9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function g9(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(xh))==null?void 0:t.length)||0)+(((n=e.match(m9))==null?void 0:n.length)||0)>0}const ex="number",tx="color",y9="var",v9="var(",Gg="${}",b9=/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 ji(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const s=t.replace(b9,l=>(rt.test(l)?(r.color.push(o),i.push(tx),n.push(rt.parse(l))):l.startsWith(v9)?(r.var.push(o),i.push(y9),n.push(l)):(r.number.push(o),i.push(ex),n.push(parseFloat(l))),++o,Gg)).split(Gg);return{values:n,split:s,indexes:r,types:i}}function w9(e){return ji(e).values}function nx({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],r[o]!==void 0){const a=t[o];a===ex?i+=Lo(r[o]):a===tx?i+=rt.transform(r[o]):i+=r[o]}return i}}function x9(e){return nx(ji(e))}const k9=e=>typeof e=="number"?0:rt.test(e)?rt.getAnimatableNone(e):e,S9=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:k9(e);function _9(e){const t=ji(e);return nx(t)(t.values.map((r,i)=>S9(r,t.split[i])))}const yn={test:g9,parse:w9,createTransformer:x9,getAnimatableNone:_9};function ec(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function T9({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;i=ec(l,s,e+1/3),o=ec(l,s,e),a=ec(l,s,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function nl(e,t){return n=>n>0?t:e}const Ve=(e,t,n)=>e+(t-e)*n,tc=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},E9=[wf,Vr,Si],C9=e=>E9.find(t=>t.test(e));function Yg(e){const t=C9(e);if(!t)return!1;let n=t.parse(e);return t===Si&&(n=T9(n)),n}const Kg=(e,t)=>{const n=Yg(e),r=Yg(t);if(!n||!r)return nl(e,t);const i={...n};return o=>(i.red=tc(n.red,r.red,o),i.green=tc(n.green,r.green,o),i.blue=tc(n.blue,r.blue,o),i.alpha=Ve(n.alpha,r.alpha,o),Vr.transform(i))},xf=new Set(["none","hidden"]);function A9(e,t){return xf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function M9(e,t){return n=>Ve(e,t,n)}function Sh(e){return typeof e=="number"?M9:typeof e=="string"?wh(e)?nl:rt.test(e)?Kg:$9:Array.isArray(e)?rx:typeof e=="object"?rt.test(e)?Kg:P9:nl}function rx(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>Sh(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function P9(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Sh(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function I9(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}const $9=(e,t)=>{const n=yn.createTransformer(t),r=ji(e),i=ji(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?xf.has(e)&&!i.values.length||xf.has(t)&&!r.values.length?A9(e,t):Aa(rx(I9(r,i),i.values),n):nl(e,t)};function ix(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ve(e,t,n):Sh(e)(e,t)}const R9=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>Pe.update(t,n),stop:()=>kr(t),now:()=>mt.isProcessing?mt.timestamp:Ct.now()}},ox=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(e(o/(i-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},rl=2e4;function _h(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<rl;)t+=n,r=e.next(t);return t>=rl?1/0:t}function O9(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(_h(r),rl);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:rn(i)}}const et={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function kf(e,t){return e*Math.sqrt(1-t*t)}const D9=12;function N9(e,t,n){let r=n;for(let i=1;i<D9;i++)r=r-e(r)/t(r);return r}const nc=.001;function L9({duration:e=et.duration,bounce:t=et.bounce,velocity:n=et.velocity,mass:r=et.mass}){let i,o,a=1-t;a=Ln(et.minDamping,et.maxDamping,a),e=Ln(et.minDuration,et.maxDuration,rn(e)),a<1?(i=u=>{const f=u*a,c=f*e,h=f-n,d=kf(u,a),p=Math.exp(-c);return nc-h/d*p},o=u=>{const c=u*a*e,h=c*n+n,d=Math.pow(a,2)*Math.pow(u,2)*e,p=Math.exp(-c),m=kf(Math.pow(u,2),a);return(-i(u)+nc>0?-1:1)*((h-d)*p)/m}):(i=u=>{const f=Math.exp(-u*e),c=(u-n)*e+1;return-nc+f*c},o=u=>{const f=Math.exp(-u*e),c=(n-u)*(e*e);return f*c});const s=5/e,l=N9(i,o,s);if(e=qt(e),isNaN(l))return{stiffness:et.stiffness,damping:et.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const z9=["duration","bounce"],F9=["stiffness","damping","mass"];function Xg(e,t){return t.some(n=>e[n]!==void 0)}function j9(e){let t={velocity:et.velocity,stiffness:et.stiffness,damping:et.damping,mass:et.mass,isResolvedFromDuration:!1,...e};if(!Xg(e,F9)&&Xg(e,z9))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*Ln(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:et.mass,stiffness:i,damping:o}}else{const n=L9({...e,velocity:0});t={...t,...n,mass:et.mass},t.isResolvedFromDuration=!0}return t}function il(e=et.visualDuration,t=et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:o},{stiffness:l,damping:u,mass:f,duration:c,velocity:h,isResolvedFromDuration:d}=j9({...n,velocity:-rn(n.velocity||0)}),p=h||0,m=u/(2*Math.sqrt(l*f)),g=a-o,y=rn(Math.sqrt(l/f)),b=Math.abs(g)<5;r||(r=b?et.restSpeed.granular:et.restSpeed.default),i||(i=b?et.restDelta.granular:et.restDelta.default);let v,S,k,w,C,A;if(m<1)k=kf(y,m),w=(p+m*y*g)/k,v=E=>{const M=Math.exp(-m*y*E);return a-M*(w*Math.sin(k*E)+g*Math.cos(k*E))},C=m*y*w+g*k,A=m*y*g-w*k,S=E=>Math.exp(-m*y*E)*(C*Math.sin(k*E)+A*Math.cos(k*E));else if(m===1){v=M=>a-Math.exp(-y*M)*(g+(p+y*g)*M);const E=p+y*g;S=M=>Math.exp(-y*M)*(y*E*M-p)}else{const E=y*Math.sqrt(m*m-1);v=j=>{const W=Math.exp(-m*y*j),G=Math.min(E*j,300);return a-W*((p+m*y*g)*Math.sinh(G)+E*g*Math.cosh(G))/E};const M=(p+m*y*g)/E,P=m*y*M-g*E,V=m*y*g-M*E;S=j=>{const W=Math.exp(-m*y*j),G=Math.min(E*j,300);return W*(P*Math.sinh(G)+V*Math.cosh(G))}}const R={calculatedDuration:d&&c||null,velocity:E=>qt(S(E)),next:E=>{if(!d&&m<1){const P=Math.exp(-m*y*E),V=Math.sin(k*E),j=Math.cos(k*E),W=a-P*(w*V+g*j),G=qt(P*(C*V+A*j));return s.done=Math.abs(G)<=r&&Math.abs(a-W)<=i,s.value=s.done?a:W,s}const M=v(E);if(d)s.done=E>=c;else{const P=qt(S(E));s.done=Math.abs(P)<=r&&Math.abs(a-M)<=i}return s.value=s.done?a:M,s},toString:()=>{const E=Math.min(_h(R),rl),M=ox(P=>R.next(E*P).value,E,30);return E+"ms "+M},toTransition:()=>{}};return R}il.applyToOptions=e=>{const t=O9(e,100,il);return e.ease=t.ease,e.duration=qt(t.duration),e.type="keyframes",e};const B9=5;function ax(e,t,n){const r=Math.max(t-B9,0);return Fw(n-e(r),t-r)}function Sf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:f}){const c=e[0],h={done:!1,value:c},d=A=>s!==void 0&&A<s||l!==void 0&&A>l,p=A=>s===void 0?l:l===void 0||Math.abs(s-A)<Math.abs(l-A)?s:l;let m=n*t;const g=c+m,y=a===void 0?g:a(g);y!==g&&(m=y-c);const b=A=>-m*Math.exp(-A/r),v=A=>y+b(A),S=A=>{const R=b(A),E=v(A);h.done=Math.abs(R)<=u,h.value=h.done?y:E};let k,w;const C=A=>{d(h.value)&&(k=A,w=il({keyframes:[h.value,p(h.value)],velocity:ax(v,A,h.value),damping:i,stiffness:o,restDelta:u,restSpeed:f}))};return C(0),{calculatedDuration:null,next:A=>{let R=!1;return!w&&k===void 0&&(R=!0,S(A),C(A)),k!==void 0&&A>=k?w.next(A-k):(!R&&S(A),h)}}}function V9(e,t,n){const r=[],i=n||xr.mix||ix,o=e.length-1;for(let a=0;a<o;a++){let s=i(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||on:t;s=Aa(l,s)}r.push(s)}return r}function U9(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(gh(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=V9(t,r,i),l=s.length,u=f=>{if(a&&f<e[0])return t[0];let c=0;if(l>1)for(;c<e.length-2&&!(f<e[c+1]);c++);const h=sa(e[c],e[c+1],f);return s[c](h)};return n?f=>u(Ln(e[0],e[o-1],f)):u}function Z9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=sa(0,t,r);e.push(Ve(n,1,i))}}function q9(e){const t=[0];return Z9(t,e.length-1),t}function W9(e,t){return e.map(n=>n*t)}function H9(e,t){return e.map(()=>t||Gw).splice(0,e.length-1)}function zo({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=t9(r)?r.map(qg):qg(r),o={done:!1,value:t[0]},a=W9(n&&n.length===t.length?n:q9(t),e),s=U9(a,t,{ease:Array.isArray(i)?i:H9(t,i)});return{calculatedDuration:e,next:l=>(o.value=s(l),o.done=l>=e,o)}}const G9=e=>e!==null;function nu(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(G9),s=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!s||r===void 0?o[s]:r}const Y9={decay:Sf,inertia:Sf,tween:zo,keyframes:zo,spring:il};function sx(e){typeof e.type=="string"&&(e.type=Y9[e.type])}class Th{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const K9=e=>e/100;class ol extends Th{constructor(t){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=()=>{var r,i;const{motionValue:n}=this.options;n&&n.updatedAt!==Ct.now()&&this.tick(Ct.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;sx(t);const{type:n=zo,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=t;let{keyframes:s}=t;const l=n||zo;l!==zo&&typeof s[0]!="number"&&(this.mixKeyframes=Aa(K9,ix(s[0],s[1])),s=[0,100]);const u=l({...t,keyframes:s});o==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=_h(u));const{calculatedDuration:f}=u;this.calculatedDuration=f,this.resolvedDuration=f+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:f,repeat:c,repeatType:h,repeatDelay:d,type:p,onUpdate:m,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),b=this.playbackSpeed>=0?y<0:y>i;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,S=r;if(c){const A=Math.min(this.currentTime,i)/s;let R=Math.floor(A),E=A%1;!E&&A>=1&&(E=1),E===1&&R--,R=Math.min(R,c+1),!!(R%2)&&(h==="reverse"?(E=1-E,d&&(E-=d/s)):h==="mirror"&&(S=a)),v=Ln(0,1,E)*s}let k;b?(this.delayState.value=f[0],k=this.delayState):k=S.next(v),o&&!b&&(k.value=o(k.value));let{done:w}=k;!b&&l!==null&&(w=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&w);return C&&p!==Sf&&(k.value=nu(f,this.options,g,this.speed)),m&&m(k.value),C&&this.finish(),k}then(t,n){return this.finished.then(t,n)}get duration(){return rn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rn(t)}get time(){return rn(this.currentTime)}set time(t){t=qt(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return ax(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Ct.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=rn(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=R9,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ct.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function X9(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ur=e=>e*180/Math.PI,_f=e=>{const t=Ur(Math.atan2(e[1],e[0]));return Tf(t)},J9={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:_f,rotateZ:_f,skewX:e=>Ur(Math.atan(e[1])),skewY:e=>Ur(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Tf=e=>(e=e%360,e<0&&(e+=360),e),Jg=_f,Qg=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ey=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Q9={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Qg,scaleY:ey,scale:e=>(Qg(e)+ey(e))/2,rotateX:e=>Tf(Ur(Math.atan2(e[6],e[5]))),rotateY:e=>Tf(Ur(Math.atan2(-e[2],e[0]))),rotateZ:Jg,rotate:Jg,skewX:e=>Ur(Math.atan(e[4])),skewY:e=>Ur(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ef(e){return e.includes("scale")?1:0}function Cf(e,t){if(!e||e==="none")return Ef(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Q9,i=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=J9,i=s}if(!i)return Ef(t);const o=r[t],a=i[1].split(",").map(t6);return typeof o=="function"?o(a):a[o]}const e6=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Cf(n,t)};function t6(e){return parseFloat(e.trim())}const oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ao=new Set(oo),ty=e=>e===io||e===Q,n6=new Set(["x","y","z"]),r6=oo.filter(e=>!n6.has(e));function i6(e){const t=[];return r6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const mr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return r==="border-box"?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})=>Cf(t,"x"),y:(e,{transform:t})=>Cf(t,"y")};mr.translateX=mr.x;mr.translateY=mr.y;const Hr=new Set;let Af=!1,Mf=!1,Pf=!1;function lx(){if(Mf){const e=Array.from(Hr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=i6(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var s;(s=r.getValue(o))==null||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Mf=!1,Af=!1,Hr.forEach(e=>e.complete(Pf)),Hr.clear()}function ux(){Hr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Mf=!0)})}function o6(){Pf=!0,ux(),lx(),Pf=!1}class Eh{constructor(t,n,r,i,o,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(Hr.add(this),Af||(Af=!0,Pe.read(ux),Pe.resolveKeyframes(lx))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const s=r.readValue(n,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}X9(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Hr.delete(this)}cancel(){this.state==="scheduled"&&(Hr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const a6=e=>e.startsWith("--");function cx(e,t,n){a6(t)?e.style.setProperty(t,n):e.style[t]=n}const s6={};function fx(e,t){const n=zw(e);return()=>s6[t]??n()}const l6=fx(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),dx=fx(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Io=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ny={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Io([0,.65,.55,1]),circOut:Io([.55,0,1,.45]),backIn:Io([.31,.01,.66,-.59]),backOut:Io([.33,1.53,.69,.99])};function hx(e,t){if(e)return typeof e=="function"?dx()?ox(e,t):"ease-out":Yw(e)?Io(e):Array.isArray(e)?e.map(n=>hx(n,t)||ny.easeOut):ny[e]}function u6(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){const f={[t]:n};l&&(f.offset=l);const c=hx(s,i);Array.isArray(c)&&(f.easing=c);const h={delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};return u&&(h.pseudoElement=u),e.animate(f,h)}function px(e){return typeof e=="function"&&"applyToOptions"in e}function c6({type:e,...t}){return px(e)&&dx()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class mx extends Th{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!o,this.allowFlatten=a,this.options=t,gh(typeof t.type!="string");const u=c6(t);this.animation=u6(n,r,i,u,o),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const f=nu(i,this.options,s,this.speed);this.updateMotionValue&&this.updateMotionValue(f),cx(n,r,f),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,i;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((i=(r=this.animation).commitStyles)==null||i.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return rn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+rn(t)}get time(){return rn(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=qt(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:i}){var o;return this.allowFlatten&&((o=this.animation.effect)==null||o.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&l6()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),on):i(this)}}const gx={anticipate:qw,backInOut:Zw,circInOut:Hw};function f6(e){return e in gx}function d6(e){typeof e.ease=="string"&&f6(e.ease)&&(e.ease=gx[e.ease])}const rc=10;class h6 extends mx{constructor(t){d6(t),sx(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new ol({...a,autoplay:!1}),l=Math.max(rc,Ct.now()-this.startTime),u=Ln(0,rc,l-rc),f=s.sample(l).value,{name:c}=this.options;o&&c&&cx(o,c,f),n.setWithVelocity(s.sample(Math.max(0,l-u)).value,f,u),s.stop()}}const ry=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(yn.test(e)||e==="0")&&!e.startsWith("url("));function p6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function m6(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=ry(i,t),s=ry(o,t);return!a||!s?!1:p6(e)||(n==="spring"||px(n))&&r}function If(e){e.duration=0,e.type="keyframes"}const yx=new Set(["opacity","clipPath","filter","transform"]),g6=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function y6(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&g6.test(e[t]))return!0;return!1}const v6=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),b6=zw(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function w6(e){var c;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a,keyframes:s}=e;if(!(((c=t==null?void 0:t.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:f}=t.owner.getProps();return b6()&&n&&(yx.has(n)||v6.has(n)&&y6(s))&&(n!=="transform"||!f)&&!u&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}const x6=40;class k6 extends Th{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",keyframes:s,name:l,motionValue:u,element:f,...c}){var p;super(),this.stop=()=>{var m,g;this._animation&&(this._animation.stop(),(m=this.stopTimeline)==null||m.call(this)),(g=this.keyframeResolver)==null||g.cancel()},this.createdAt=Ct.now();const h={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,name:l,motionValue:u,element:f,...c},d=(f==null?void 0:f.KeyframeResolver)||Eh;this.keyframeResolver=new d(s,(m,g,y)=>this.onKeyframesResolved(m,g,h,!y),l,u,f),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,i){var y,b;this.keyframeResolver=void 0;const{name:o,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:f}=r;this.resolvedAt=Ct.now();let c=!0;m6(t,o,a,s)||(c=!1,(xr.instantAnimations||!l)&&(f==null||f(nu(t,r,n))),t[0]=t[t.length-1],If(r),r.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>x6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},p=c&&!u&&w6(d),m=(b=(y=d.motionValue)==null?void 0:y.owner)==null?void 0:b.current;let g;if(p)try{g=new h6({...d,element:m})}catch{g=new ol(d)}else g=new ol(d);g.finished.then(()=>{this.notifyFinished()}).catch(on),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),o6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function vx(e,t,n,r=0,i=1){const o=Array.from(e).sort((u,f)=>u.sortNodePosition(f)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(o,a):i===1?o*r:s-o*r}const S6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function _6(e){const t=S6.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function bx(e,t,n=1){const[r,i]=_6(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return Dw(a)?parseFloat(a):a}return wh(i)?bx(i,t,n+1):i}const T6={type:"spring",stiffness:500,damping:25,restSpeed:10},E6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),C6={type:"keyframes",duration:.8},A6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},M6=(e,{keyframes:t})=>t.length>2?C6:ao.has(e)?e.startsWith("scale")?E6(t[1]):T6:A6;function wx(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Ch(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?wx(n,e):n}const P6=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function I6(e){for(const t in e)if(!P6.has(t))return!0;return!1}const Ah=(e,t,n,r={},i,o)=>a=>{const s=Ch(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-qt(l);const f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:h=>{t.set(h),s.onUpdate&&s.onUpdate(h)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};I6(s)||Object.assign(f,M6(e,f)),f.duration&&(f.duration=qt(f.duration)),f.repeatDelay&&(f.repeatDelay=qt(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let c=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(If(f),f.delay===0&&(c=!0)),(xr.instantAnimations||xr.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(c=!0,If(f),f.delay=0),f.allowFlatten=!s.type&&!s.ease,c&&!o&&t.get()!==void 0){const h=nu(f.keyframes,s);if(h!==void 0){Pe.update(()=>{f.onUpdate(h),f.onComplete()});return}}return s.isSync?new ol(f):new k6(f)};function iy(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mh(e,t,n,r){if(typeof t=="function"){const[i,o]=iy(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=iy(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function Gr(e,t,n){const r=e.getProps();return Mh(r,t,n!==void 0?n:r.custom,e)}const xx=new Set(["width","height","top","left","right","bottom",...oo]),oy=30,$6=e=>!isNaN(parseFloat(e));class R6{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var o;const i=Ct.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((o=this.events.change)==null||o.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ct.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new yh);const r=this.events[t].add(n);return t==="change"?()=>{r(),Pe.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ct.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>oy)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,oy);return Fw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bi(e,t){return new R6(e,t)}const $f=e=>Array.isArray(e);function O6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bi(n))}function D6(e){return $f(e)?e[e.length-1]||0:e}function N6(e,t){const n=Gr(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const s=D6(o[a]);O6(e,a,s)}}const gt=e=>!!(e&&e.getVelocity);function L6(e){return!!(gt(e)&&e.add)}function Rf(e,t){const n=e.getValue("willChange");if(L6(n))return n.add(t);if(!n&&xr.WillChange){const r=new xr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ph(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const z6="framerAppearId",kx="data-"+Ph(z6);function Sx(e){return e.props[kx]}function F6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function _x(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();o=o?wx(o,l):l;const u=o==null?void 0:o.reduceMotion;r&&(o=r);const f=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const h in s){const d=e.getValue(h,e.latestValues[h]??null),p=s[h];if(p===void 0||c&&F6(c,h))continue;const m={delay:n,...Ch(o||{},h)},g=d.get();if(g!==void 0&&!d.isAnimating()&&!Array.isArray(p)&&p===g&&!m.velocity){Pe.update(()=>d.set(p));continue}let y=!1;if(window.MotionHandoffAnimation){const S=Sx(e);if(S){const k=window.MotionHandoffAnimation(S,h,Pe);k!==null&&(m.startTime=k,y=!0)}}Rf(e,h);const b=u??e.shouldReduceMotion;d.start(Ah(h,d,p,b&&xx.has(h)?{type:!1}:m,e,y));const v=d.animation;v&&f.push(v)}if(a){const h=()=>Pe.update(()=>{a&&N6(e,a)});f.length?Promise.all(f).then(h):h()}return f}function Of(e,t,n={}){var l;const r=Gr(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(_x(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:f=0,staggerChildren:c,staggerDirection:h}=i;return j6(e,t,u,f,c,h,n)}:()=>Promise.resolve(),{when:s}=i;if(s){const[u,f]=s==="beforeChildren"?[o,a]:[a,o];return u().then(()=>f())}else return Promise.all([o(),a(n.delay)])}function j6(e,t,n=0,r=0,i=0,o=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(Of(l,t,{...a,delay:n+(typeof r=="function"?0:r)+vx(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function B6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Of(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Of(e,t,n);else{const i=typeof t=="function"?Gr(e,t,n.custom):t;r=Promise.all(_x(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const V6={test:e=>e==="auto",parse:e=>e},Tx=e=>t=>t.test(e),Ex=[io,Q,On,lr,p9,h9,V6],ay=e=>Ex.find(Tx(e));function U6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Lw(e):!0}const Z6=new Set(["brightness","contrast","saturate","opacity"]);function q6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(xh)||[];if(!r)return e;const i=n.replace(r,"");let o=Z6.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const W6=/\b([a-z-]*)\(.*?\)/gu,Df={...yn,getAnimatableNone:e=>{const t=e.match(W6);return t?t.map(q6).join(" "):e}},Nf={...yn,getAnimatableNone:e=>{const t=yn.parse(e);return yn.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},sy={...io,transform:Math.round},H6={rotate:lr,rotateX:lr,rotateY:lr,rotateZ:lr,scale:is,scaleX:is,scaleY:is,scaleZ:is,skew:lr,skewX:lr,skewY:lr,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:la,originX:Hg,originY:Hg,originZ:Q},Ih={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,...H6,zIndex:sy,fillOpacity:la,strokeOpacity:la,numOctaves:sy},G6={...Ih,color:rt,backgroundColor:rt,outlineColor:rt,fill:rt,stroke:rt,borderColor:rt,borderTopColor:rt,borderRightColor:rt,borderBottomColor:rt,borderLeftColor:rt,filter:Df,WebkitFilter:Df,mask:Nf,WebkitMask:Nf},Cx=e=>G6[e],Y6=new Set([Df,Nf]);function Ax(e,t){let n=Cx(e);return Y6.has(n)||(n=yn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const K6=new Set(["auto","none","0"]);function X6(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!K6.has(o)&&ji(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=Ax(n,i)}class J6 extends Eh{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let c=t[f];if(typeof c=="string"&&(c=c.trim(),wh(c))){const h=bx(c,n.current);h!==void 0&&(t[f]=h),f===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!xx.has(r)||t.length!==2)return;const[i,o]=t,a=ay(i),s=ay(o),l=Wg(i),u=Wg(o);if(l!==u&&mr[r]){this.needsMeasurement=!0;return}if(a!==s)if(ty(a)&&ty(s))for(let f=0;f<t.length;f++){const c=t[f];typeof c=="string"&&(t[f]=parseFloat(c))}else mr[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||U6(t[i]))&&r.push(i);r.length&&X6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=mr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=mr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Mx(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(r=>r!=null)}const Px=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Q6(e){return Nw(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:$h}=Kw(queueMicrotask,!1),mn={x:!1,y:!1};function Ix(){return mn.x||mn.y}function eU(e){return e==="x"||e==="y"?mn[e]?null:(mn[e]=!0,()=>{mn[e]=!1}):mn.x||mn.y?null:(mn.x=mn.y=!0,()=>{mn.x=mn.y=!1})}function $x(e,t){const n=Mx(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function tU(e){return!(e.pointerType==="touch"||Ix())}function nU(e,t,n={}){const[r,i,o]=$x(e,n);return r.forEach(a=>{let s=!1,l=!1,u;const f=()=>{a.removeEventListener("pointerleave",p)},c=g=>{u&&(u(g),u=void 0),f()},h=g=>{s=!1,window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",h),l&&(l=!1,c(g))},d=()=>{s=!0,window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",h,i)},p=g=>{if(g.pointerType!=="touch"){if(s){l=!0;return}c(g)}},m=g=>{if(!tU(g))return;l=!1;const y=t(a,g);typeof y=="function"&&(u=y,a.addEventListener("pointerleave",p,i))};a.addEventListener("pointerenter",m,i),a.addEventListener("pointerdown",d,i)}),o}const Rx=(e,t)=>t?e===t?!0:Rx(e,t.parentElement):!1,Rh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iU(e){return rU.has(e.tagName)||e.isContentEditable===!0}const oU=new Set(["INPUT","SELECT","TEXTAREA"]);function aU(e){return oU.has(e.tagName)||e.isContentEditable===!0}const bs=new WeakSet;function ly(e){return t=>{t.key==="Enter"&&e(t)}}function ic(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sU=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=ly(()=>{if(bs.has(n))return;ic(n,"down");const i=ly(()=>{ic(n,"up")}),o=()=>ic(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function uy(e){return Rh(e)&&!Ix()}const cy=new WeakSet;function lU(e,t,n={}){const[r,i,o]=$x(e,n),a=s=>{const l=s.currentTarget;if(!uy(s)||cy.has(s))return;bs.add(l),n.stopPropagation&&cy.add(s);const u=t(l,s),f=(d,p)=>{window.removeEventListener("pointerup",c),window.removeEventListener("pointercancel",h),bs.has(l)&&bs.delete(l),uy(d)&&typeof u=="function"&&u(d,{success:p})},c=d=>{f(d,l===window||l===document||n.useGlobalTarget||Rx(l,d.target))},h=d=>{f(d,!1)};window.addEventListener("pointerup",c,i),window.addEventListener("pointercancel",h,i)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,i),Q6(s)&&(s.addEventListener("focus",u=>sU(u,i)),!iU(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),o}function Oh(e){return Nw(e)&&"ownerSVGElement"in e}const ws=new WeakMap;let ur;const Ox=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:Oh(r)&&"getBBox"in r?r.getBBox()[t]:r[n],uU=Ox("inline","width","offsetWidth"),cU=Ox("block","height","offsetHeight");function fU({target:e,borderBoxSize:t}){var n;(n=ws.get(e))==null||n.forEach(r=>{r(e,{get width(){return uU(e,t)},get height(){return cU(e,t)}})})}function dU(e){e.forEach(fU)}function hU(){typeof ResizeObserver>"u"||(ur=new ResizeObserver(dU))}function pU(e,t){ur||hU();const n=Mx(e);return n.forEach(r=>{let i=ws.get(r);i||(i=new Set,ws.set(r,i)),i.add(t),ur==null||ur.observe(r)}),()=>{n.forEach(r=>{const i=ws.get(r);i==null||i.delete(t),i!=null&&i.size||ur==null||ur.unobserve(r)})}}const xs=new Set;let _i;function mU(){_i=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};xs.forEach(t=>t(e))},window.addEventListener("resize",_i)}function gU(e){return xs.add(e),_i||mU(),()=>{xs.delete(e),!xs.size&&typeof _i=="function"&&(window.removeEventListener("resize",_i),_i=void 0)}}function fy(e,t){return typeof e=="function"?gU(e):pU(e,t)}function yU(e){return Oh(e)&&e.tagName==="svg"}const vU=[...Ex,rt,yn],bU=e=>vU.find(Tx(e)),dy=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ti=()=>({x:dy(),y:dy()}),hy=()=>({min:0,max:0}),at=()=>({x:hy(),y:hy()}),wU=new WeakMap;function ru(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ua(e){return typeof e=="string"||Array.isArray(e)}const Dh=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Nh=["initial",...Dh];function iu(e){return ru(e.animate)||Nh.some(t=>ua(e[t]))}function Dx(e){return!!(iu(e)||e.variants)}function xU(e,t,n){for(const r in t){const i=t[r],o=n[r];if(gt(i))e.addValue(r,i);else if(gt(o))e.addValue(r,Bi(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Bi(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Lf={current:null},Nx={current:!1},kU=typeof window<"u";function SU(){if(Nx.current=!0,!!kU)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Lf.current=e.matches;e.addEventListener("change",t),t()}else Lf.current=!1}const py=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let al={};function Lx(e){al=e}function _U(){return al}class TU{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,skipAnimations:o,blockInitialAnimation:a,visualState:s},l={}){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=Eh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=Ct.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,Pe.render(this.render,!1,!0))};const{latestValues:u,renderState:f}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=o,this.options=l,this.blockInitialAnimation=!!a,this.isControllingVariants=iu(n),this.isVariantNode=Dx(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:c,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const d in h){const p=h[d];u[d]!==void 0&>(p)&&p.set(u[d])}}mount(t){var n,r;if(this.hasBeenMounted)for(const i in this.initialValues)(n=this.values.get(i))==null||n.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i];this.current=t,wU.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((i,o)=>this.bindToMotionValue(o,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Nx.current||SU(),this.shouldReduceMotion=Lf.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),kr(this.notifyUpdate),kr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&yx.has(t)&&this.current instanceof HTMLElement){const{factory:a,keyframes:s,times:l,ease:u,duration:f}=n.accelerate,c=new mx({element:this.current,name:t,keyframes:s,times:l,ease:u,duration:qt(f)}),h=a(c);this.valueSubscriptions.set(t,()=>{h(),c.cancel()});return}const r=ao.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Pe.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let o;typeof window<"u"&&window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in al){const n=al[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):at()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<py.length;r++){const i=py[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=xU(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Bi(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Dw(r)||Lw(r))?r=parseFloat(r):!bU(r)&&yn.test(n)&&(r=Ax(t,n)),this.setBaseTarget(t,gt(r)?r.get():r)),gt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=Mh(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!gt(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new yh),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){$h.render(this.render)}}class zx extends TU{constructor(){super(...arguments),this.KeyframeResolver=J6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;gt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Pr{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Fx({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function EU({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function CU(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function oc(e){return e===void 0||e===1}function zf({scale:e,scaleX:t,scaleY:n}){return!oc(e)||!oc(t)||!oc(n)}function zr(e){return zf(e)||jx(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function jx(e){return my(e.x)||my(e.y)}function my(e){return e&&e!=="0%"}function sl(e,t,n){const r=e-n,i=t*r;return n+i}function gy(e,t,n,r,i){return i!==void 0&&(e=sl(e,i,r)),sl(e,n,r)+t}function Ff(e,t=0,n=1,r,i){e.min=gy(e.min,t,n,r,i),e.max=gy(e.max,t,n,r,i)}function Bx(e,{x:t,y:n}){Ff(e.x,t.translate,t.scale,t.originPoint),Ff(e.y,n.translate,n.scale,n.originPoint)}const yy=.999999999999,vy=1.0000000000001;function AU(e,t,n,r=!1){var s;const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:u}=o.options;u&&u.props.style&&u.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(An(e.x,-o.scroll.offset.x),An(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Bx(e,a)),r&&zr(o.latestValues)&&ks(e,o.latestValues,(s=o.layout)==null?void 0:s.layoutBox))}t.x<vy&&t.x>yy&&(t.x=1),t.y<vy&&t.y>yy&&(t.y=1)}function An(e,t){e.min+=t,e.max+=t}function by(e,t,n,r,i=.5){const o=Ve(e.min,e.max,i);Ff(e,t,n,o,r)}function wy(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function ks(e,t,n){const r=n??e;by(e.x,wy(t.x,r.x),t.scaleX,t.scale,t.originX),by(e.y,wy(t.y,r.y),t.scaleY,t.scale,t.originY)}function Vx(e,t){return Fx(CU(e.getBoundingClientRect(),t))}function MU(e,t,n){const r=Vx(e,n),{scroll:i}=t;return i&&(An(r.x,i.offset.x),An(r.y,i.offset.y)),r}const PU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IU=oo.length;function $U(e,t,n){let r="",i=!0;for(let o=0;o<IU;o++){const a=oo[o],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number")l=s===(a.startsWith("scale")?1:0);else{const u=parseFloat(s);l=a.startsWith("scale")?u===1:u===0}if(!l||n){const u=Px(s,Ih[a]);if(!l){i=!1;const f=PU[a]||a;r+=`${f}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function Lh(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const l in t){const u=t[l];if(ao.has(l)){a=!0;continue}else if(Jw(l)){i[l]=u;continue}else{const f=Px(u,Ih[l]);l.startsWith("origin")?(s=!0,o[l]=f):r[l]=f}}if(t.transform||(a||n?r.transform=$U(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:u="50%",originZ:f=0}=o;r.transformOrigin=`${l} ${u} ${f}`}}function Ux(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];i==null||i.applyProjectionStyles(o,r);for(a in n)o.setProperty(a,n[a])}function xy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Eo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Q.test(e))e=parseFloat(e);else return e;const n=xy(e,t.target.x),r=xy(e,t.target.y);return`${n}% ${r}%`}},RU={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=yn.parse(e);if(i.length>5)return r;const o=yn.createTransformer(e),a=typeof i[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=Ve(s,l,.5);return typeof i[2+a]=="number"&&(i[2+a]/=u),typeof i[3+a]=="number"&&(i[3+a]/=u),o(i)}},jf={borderRadius:{...Eo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Eo,borderTopRightRadius:Eo,borderBottomLeftRadius:Eo,borderBottomRightRadius:Eo,boxShadow:RU};function Zx(e,{layout:t,layoutId:n}){return ao.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!jf[e]||e==="opacity")}function zh(e,t,n){var a;const r=e.style,i=t==null?void 0:t.style,o={};if(!r)return o;for(const s in r)(gt(r[s])||i&>(i[s])||Zx(s,e)||((a=n==null?void 0:n.getValue(s))==null?void 0:a.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function OU(e){return window.getComputedStyle(e)}class DU extends zx{constructor(){super(...arguments),this.type="html",this.renderInstance=Ux}readValueFromInstance(t,n){var r;if(ao.has(n))return(r=this.projection)!=null&&r.isProjecting?Ef(n):e6(t,n);{const i=OU(t),o=(Jw(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Vx(t,n)}build(t,n,r){Lh(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return zh(t,n,r)}}const NU={offset:"stroke-dashoffset",array:"stroke-dasharray"},LU={offset:"strokeDashoffset",array:"strokeDasharray"};function zU(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?NU:LU;e[o.offset]=`${-r}`,e[o.array]=`${t} ${n}`}const FU=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function qx(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,f){if(Lh(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:c,style:h}=e;c.transform&&(h.transform=c.transform,delete c.transform),(h.transform||c.transformOrigin)&&(h.transformOrigin=c.transformOrigin??"50% 50%",delete c.transformOrigin),h.transform&&(h.transformBox=(f==null?void 0:f.transformBox)??"fill-box",delete c.transformBox);for(const d of FU)c[d]!==void 0&&(h[d]=c[d],delete c[d]);t!==void 0&&(c.x=t),n!==void 0&&(c.y=n),r!==void 0&&(c.scale=r),i!==void 0&&zU(c,i,o,a,!1)}const Wx=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"]),Hx=e=>typeof e=="string"&&e.toLowerCase()==="svg";function jU(e,t,n,r){Ux(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Wx.has(i)?i:Ph(i),t.attrs[i])}function Gx(e,t,n){const r=zh(e,t,n);for(const i in e)if(gt(e[i])||gt(t[i])){const o=oo.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}class BU extends zx{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=at}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ao.has(n)){const r=Cx(n);return r&&r.default||0}return n=Wx.has(n)?n:Ph(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Gx(t,n,r)}build(t,n,r){qx(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){jU(t,n,r,i)}mount(t){this.isSVGTag=Hx(t.tagName),super.mount(t)}}const VU=Nh.length;function Yx(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Yx(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<VU;n++){const r=Nh[n],i=e.props[r];(ua(i)||i===!1)&&(t[r]=i)}return t}function Kx(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const UU=[...Dh].reverse(),ZU=Dh.length;function qU(e){return t=>Promise.all(t.map(({animation:n,options:r})=>B6(e,n,r)))}function WU(e){let t=qU(e),n=ky(),r=!0,i=!1;const o=u=>(f,c)=>{var d;const h=Gr(e,c,u==="exit"?(d=e.presenceContext)==null?void 0:d.custom:void 0);if(h){const{transition:p,transitionEnd:m,...g}=h;f={...f,...g,...m}}return f};function a(u){t=u(e)}function s(u){const{props:f}=e,c=Yx(e.parent)||{},h=[],d=new Set;let p={},m=1/0;for(let y=0;y<ZU;y++){const b=UU[y],v=n[b],S=f[b]!==void 0?f[b]:c[b],k=ua(S),w=b===u?v.isActive:null;w===!1&&(m=y);let C=S===c[b]&&S!==f[b]&&k;if(C&&(r||i)&&e.manuallyAnimateOnMount&&(C=!1),v.protectedKeys={...p},!v.isActive&&w===null||!S&&!v.prevProp||ru(S)||typeof S=="boolean")continue;if(b==="exit"&&v.isActive&&w!==!0){v.prevResolvedValues&&(p={...p,...v.prevResolvedValues});continue}const A=HU(v.prevProp,S);let R=A||b===u&&v.isActive&&!C&&k||y>m&&k,E=!1;const M=Array.isArray(S)?S:[S];let P=M.reduce(o(b),{});w===!1&&(P={});const{prevResolvedValues:V={}}=v,j={...V,...P},W=U=>{R=!0,d.has(U)&&(E=!0,d.delete(U)),v.needsAnimating[U]=!0;const N=e.getValue(U);N&&(N.liveStyle=!1)};for(const U in j){const N=P[U],T=V[U];if(p.hasOwnProperty(U))continue;let he=!1;$f(N)&&$f(T)?he=!Kx(N,T):he=N!==T,he?N!=null?W(U):d.add(U):N!==void 0&&d.has(U)?W(U):v.protectedKeys[U]=!0}v.prevProp=S,v.prevResolvedValues=P,v.isActive&&(p={...p,...P}),(r||i)&&e.blockInitialAnimation&&(R=!1);const G=C&&A;R&&(!G||E)&&h.push(...M.map(U=>{const N={type:b};if(typeof U=="string"&&(r||i)&&!G&&e.manuallyAnimateOnMount&&e.parent){const{parent:T}=e,he=Gr(T,U);if(T.enteringChildren&&he){const{delayChildren:I}=he.transition||{};N.delay=vx(T.enteringChildren,e,I)}}return{animation:U,options:N}}))}if(d.size){const y={};if(typeof f.initial!="boolean"){const b=Gr(e,Array.isArray(f.initial)?f.initial[0]:f.initial);b&&b.transition&&(y.transition=b.transition)}d.forEach(b=>{const v=e.getBaseTarget(b),S=e.getValue(b);S&&(S.liveStyle=!0),y[b]=v??null}),h.push({animation:y})}let g=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,i=!1,g?t(h):Promise.resolve()}function l(u,f){var h;if(n[u].isActive===f)return Promise.resolve();(h=e.variantChildren)==null||h.forEach(d=>{var p;return(p=d.animationState)==null?void 0:p.setActive(u,f)}),n[u].isActive=f;const c=s(u);for(const d in n)n[d].protectedKeys={};return c}return{animateChanges:s,setActive:l,setAnimateFunction:a,getState:()=>n,reset:()=>{n=ky(),i=!0}}}function HU(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Kx(t,e):!1}function $r(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ky(){return{animate:$r(!0),whileInView:$r(),whileHover:$r(),whileTap:$r(),whileDrag:$r(),whileFocus:$r(),exit:$r()}}function Bf(e,t){e.min=t.min,e.max=t.max}function dn(e,t){Bf(e.x,t.x),Bf(e.y,t.y)}function Sy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Xx=1e-4,GU=1-Xx,YU=1+Xx,Jx=.01,KU=0-Jx,XU=0+Jx;function At(e){return e.max-e.min}function JU(e,t,n){return Math.abs(e-t)<=n}function _y(e,t,n,r=.5){e.origin=r,e.originPoint=Ve(t.min,t.max,e.origin),e.scale=At(n)/At(t),e.translate=Ve(n.min,n.max,e.origin)-e.originPoint,(e.scale>=GU&&e.scale<=YU||isNaN(e.scale))&&(e.scale=1),(e.translate>=KU&&e.translate<=XU||isNaN(e.translate))&&(e.translate=0)}function Fo(e,t,n,r){_y(e.x,t.x,n.x,r?r.originX:void 0),_y(e.y,t.y,n.y,r?r.originY:void 0)}function Ty(e,t,n,r=0){const i=r?Ve(n.min,n.max,r):n.min;e.min=i+t.min,e.max=e.min+At(t)}function QU(e,t,n,r){Ty(e.x,t.x,n.x,r==null?void 0:r.x),Ty(e.y,t.y,n.y,r==null?void 0:r.y)}function Ey(e,t,n,r=0){const i=r?Ve(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+At(t)}function ll(e,t,n,r){Ey(e.x,t.x,n.x,r==null?void 0:r.x),Ey(e.y,t.y,n.y,r==null?void 0:r.y)}function Cy(e,t,n,r,i){return e-=t,e=sl(e,1/n,r),i!==void 0&&(e=sl(e,1/i,r)),e}function eZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(On.test(t)&&(t=parseFloat(t),t=Ve(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=Ve(o.min,o.max,r);e===o&&(s-=t),e.min=Cy(e.min,t,n,s,i),e.max=Cy(e.max,t,n,s,i)}function Ay(e,t,[n,r,i],o,a){eZ(e,t[n],t[r],t[i],t.scale,o,a)}const tZ=["x","scaleX","originX"],nZ=["y","scaleY","originY"];function My(e,t,n,r){Ay(e.x,t,tZ,n?n.x:void 0,r?r.x:void 0),Ay(e.y,t,nZ,n?n.y:void 0,r?r.y:void 0)}function Py(e){return e.translate===0&&e.scale===1}function Qx(e){return Py(e.x)&&Py(e.y)}function Iy(e,t){return e.min===t.min&&e.max===t.max}function rZ(e,t){return Iy(e.x,t.x)&&Iy(e.y,t.y)}function $y(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ek(e,t){return $y(e.x,t.x)&&$y(e.y,t.y)}function Ry(e){return At(e.x)/At(e.y)}function Oy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Tn(e){return[e("x"),e("y")]}function iZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:f,rotateX:c,rotateY:h,skewX:d,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),f&&(r+=`rotate(${f}deg) `),c&&(r+=`rotateX(${c}deg) `),h&&(r+=`rotateY(${h}deg) `),d&&(r+=`skewX(${d}deg) `),p&&(r+=`skewY(${p}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const tk=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],oZ=tk.length,Dy=e=>typeof e=="string"?parseFloat(e):e,Ny=e=>typeof e=="number"||Q.test(e);function aZ(e,t,n,r,i,o){i?(e.opacity=Ve(0,n.opacity??1,sZ(r)),e.opacityExit=Ve(t.opacity??1,0,lZ(r))):o&&(e.opacity=Ve(t.opacity??1,n.opacity??1,r));for(let a=0;a<oZ;a++){const s=tk[a];let l=Ly(t,s),u=Ly(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ny(l)===Ny(u)?(e[s]=Math.max(Ve(Dy(l),Dy(u),r),0),(On.test(u)||On.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=Ve(t.rotate||0,n.rotate||0,r))}function Ly(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const sZ=nk(0,.5,Ww),lZ=nk(.5,.95,on);function nk(e,t,n){return r=>r<e?0:r>t?1:n(sa(e,t,r))}function uZ(e,t,n){const r=gt(e)?e:Bi(e);return r.start(Ah("",r,t,n)),r.animation}function ca(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const cZ=(e,t)=>e.depth-t.depth;class fZ{constructor(){this.children=[],this.isDirty=!1}add(t){mh(this.children,t),this.isDirty=!0}remove(t){tl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(cZ),this.isDirty=!1,this.children.forEach(t)}}function dZ(e,t){const n=Ct.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(kr(r),e(o-t))};return Pe.setup(r,!0),()=>kr(r)}function Ss(e){return gt(e)?e.get():e}class hZ{constructor(){this.members=[]}add(t){mh(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const i=r.instance;(!i||i.isConnected===!1)&&!r.snapshot&&(tl(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(tl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(t,n){var i;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:o}=r.options,{layoutDependency:a}=t.options;(o===void 0||o!==a)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(i=t.root)!=null&&i.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,i,o,a;(r=(n=t.options).onExitComplete)==null||r.call(n),(a=(i=t.resumingFrom)==null?void 0:(o=i.options).onExitComplete)==null||a.call(o)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const _s={hasAnimatedSinceResize:!0,hasEverUpdated:!1},ac=["","X","Y","Z"],pZ=1e3;let mZ=0;function sc(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function rk(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Sx(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Pe,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&rk(r)}function ik({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},s=t==null?void 0:t()){this.id=mZ++,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(vZ),this.nodes.forEach(_Z),this.nodes.forEach(TZ),this.nodes.forEach(bZ)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new fZ)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new yh),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Oh(a)&&!yU(a),this.instance=a;const{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let f,c=0;const h=()=>this.root.updateBlockedByResize=!1;Pe.read(()=>{c=window.innerWidth}),e(a,()=>{const d=window.innerWidth;d!==c&&(c=d,this.root.updateBlockedByResize=!0,f&&f(),f=dZ(h,250),_s.hasAnimatedSinceResize&&(_s.hasAnimatedSinceResize=!1,this.nodes.forEach(jy)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:c,hasRelativeLayoutChanged:h,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||PZ,{onLayoutAnimationStart:m,onLayoutAnimationComplete:g}=u.getProps(),y=!this.targetLayout||!ek(this.targetLayout,d),b=!c&&h;if(this.options.layoutRoot||this.resumeFrom||b||c&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...Ch(p,"layout"),onPlay:m,onComplete:g};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(f,b)}else c||jy(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),kr(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(EZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&rk(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const c=this.path[f];c.shouldResetTransform=!0,(typeof c.latestValues.x=="string"||typeof c.latestValues.y=="string")&&(c.isLayoutDirty=!0),c.updateScroll("snapshot"),c.options.layoutRoot&&c.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(xZ),this.nodes.forEach(zy);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Fy);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(kZ),this.nodes.forEach(SZ),this.nodes.forEach(gZ),this.nodes.forEach(yZ)):this.nodes.forEach(Fy),this.clearAllSnapshots();const s=Ct.now();mt.delta=Ln(0,1e3/60,s-mt.timestamp),mt.timestamp=s,mt.isProcessing=!0,Ju.update.process(mt),Ju.preRender.process(mt),Ju.render.process(mt),mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$h.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(wZ),this.sharedNodes.forEach(CZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Pe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Pe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!At(this.snapshot.measuredBox.x)&&!At(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=at()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!Qx(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,f=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||zr(this.latestValues)||f)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),IZ(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return at();const s=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some($Z))){const{scroll:f}=this.root;f&&(An(s.x,f.offset.x),An(s.y,f.offset.y))}return s}removeElementScroll(a){var l;const s=at();if(dn(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let u=0;u<this.path.length;u++){const f=this.path[u],{scroll:c,options:h}=f;f!==this.root&&c&&h.layoutScroll&&(c.wasRoot&&dn(s,a),An(s.x,c.offset.x),An(s.y,c.offset.y))}return s}applyTransform(a,s=!1,l){var f,c;const u=l||at();dn(u,a);for(let h=0;h<this.path.length;h++){const d=this.path[h];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&(An(u.x,-d.scroll.offset.x),An(u.y,-d.scroll.offset.y)),zr(d.latestValues)&&ks(u,d.latestValues,(f=d.layout)==null?void 0:f.layoutBox)}return zr(this.latestValues)&&ks(u,this.latestValues,(c=this.layout)==null?void 0:c.layoutBox),u}removeTransform(a){var l;const s=at();dn(s,a);for(let u=0;u<this.path.length;u++){const f=this.path[u];if(!zr(f.latestValues))continue;let c;f.instance&&(zf(f.latestValues)&&f.updateSnapshot(),c=at(),dn(c,f.measurePageBox())),My(s,f.latestValues,(l=f.snapshot)==null?void 0:l.layoutBox,c)}return zr(this.latestValues)&&My(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var d;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:c}=this.options;if(!this.layout||!(f||c))return;this.resolvedRelativeTargetAt=mt.timestamp;const h=this.getClosestProjectingParent();h&&this.linkedParentVersion!==h.layoutVersion&&!h.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&h&&h.layout?this.createRelativeTarget(h,this.layout.layoutBox,h.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=at(),this.targetWithTransforms=at()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),QU(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):dn(this.target,this.layout.layoutBox),Bx(this.target,this.targetDelta)):dn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?this.createRelativeTarget(h,this.target,h.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||zf(this.parent.latestValues)||jx(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=at(),this.relativeTargetOrigin=at(),ll(this.relativeTargetOrigin,s,l,this.options.layoutAnchor||void 0),dn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===mt.timestamp&&(l=!1),l)return;const{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;dn(this.layoutCorrected,this.layout.layoutBox);const c=this.treeScale.x,h=this.treeScale.y;AU(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=at());const{target:d}=a;if(!d){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Sy(this.prevProjectionDelta.x,this.projectionDelta.x),Sy(this.prevProjectionDelta.y,this.projectionDelta.y)),Fo(this.projectionDelta,this.layoutCorrected,d,this.latestValues),(this.treeScale.x!==c||this.treeScale.y!==h||!Oy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Oy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",d))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ti(),this.projectionDelta=Ti(),this.projectionDeltaWithTransform=Ti()}setAnimationOrigin(a,s=!1){const l=this.snapshot,u=l?l.latestValues:{},f={...this.latestValues},c=Ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const h=at(),d=l?l.source:void 0,p=this.layout?this.layout.source:void 0,m=d!==p,g=this.getStack(),y=!g||g.members.length<=1,b=!!(m&&!y&&this.options.crossfade===!0&&!this.path.some(MZ));this.animationProgress=0;let v;this.mixTargetDelta=S=>{const k=S/1e3;By(c.x,a.x,k),By(c.y,a.y,k),this.setTargetDelta(c),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ll(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),AZ(this.relativeTarget,this.relativeTargetOrigin,h,k),v&&rZ(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=at()),dn(v,this.relativeTarget)),m&&(this.animationValues=f,aZ(f,u,this.latestValues,k,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=k},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,u;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(kr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Pe.update(()=>{_s.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bi(0)),this.motionValue.jump(0,!1),this.currentAnimation=uZ(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),a.onUpdate&&a.onUpdate(f)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(pZ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:f}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&ok(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||at();const c=At(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+c;const h=At(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+h}dn(s,l),ks(s,f),Fo(this.projectionDeltaWithTransform,this.layoutCorrected,s,f)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new hZ),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&sc("z",a,u,this.animationValues);for(let f=0;f<ac.length;f++)sc(`rotate${ac[f]}`,a,u,this.animationValues),sc(`skew${ac[f]}`,a,u,this.animationValues);a.render();for(const f in u)a.setStaticValue(f,u[f]),this.animationValues&&(this.animationValues[f]=u[f]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=Ss(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=Ss(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!zr(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const f=u.animationValues||u.latestValues;this.applyTransformsToTarget();let c=iZ(this.projectionDeltaWithTransform,this.treeScale,f);l&&(c=l(f,c)),a.transform=c;const{x:h,y:d}=this.projectionDelta;a.transformOrigin=`${h.origin*100}% ${d.origin*100}% 0`,u.animationValues?a.opacity=u===this?f.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:a.opacity=u===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in jf){if(f[p]===void 0)continue;const{correct:m,applyTo:g,isCSSVariable:y}=jf[p],b=c==="none"?f[p]:m(f[p],u);if(g){const v=g.length;for(let S=0;S<v;S++)a[g[S]]=b}else y?this.options.visualElement.renderState.vars[p]=b:a[p]=b}this.options.layoutId&&(a.pointerEvents=u===this?Ss(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(zy),this.root.sharedNodes.clear()}}}function gZ(e){e.updateLayout()}function yZ(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=t.source!==e.layout.source;if(o==="size")Tn(c=>{const h=a?t.measuredBox[c]:t.layoutBox[c],d=At(h);h.min=r[c].min,h.max=h.min+d});else if(o==="x"||o==="y"){const c=o==="x"?"y":"x";Bf(a?t.measuredBox[c]:t.layoutBox[c],r[c])}else ok(o,t.layoutBox,r)&&Tn(c=>{const h=a?t.measuredBox[c]:t.layoutBox[c],d=At(r[c]);h.max=h.min+d,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[c].max=e.relativeTarget[c].min+d)});const s=Ti();Fo(s,r,t.layoutBox);const l=Ti();a?Fo(l,e.applyTransform(i,!0),t.measuredBox):Fo(l,r,t.layoutBox);const u=!Qx(s);let f=!1;if(!e.resumeFrom){const c=e.getClosestProjectingParent();if(c&&!c.resumeFrom){const{snapshot:h,layout:d}=c;if(h&&d){const p=e.options.layoutAnchor||void 0,m=at();ll(m,t.layoutBox,h.layoutBox,p);const g=at();ll(g,r,d.layoutBox,p),ek(m,g)||(f=!0),c.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=c)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function vZ(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 bZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function wZ(e){e.clearSnapshot()}function zy(e){e.clearMeasurements()}function xZ(e){e.isLayoutDirty=!0,e.updateLayout()}function Fy(e){e.isLayoutDirty=!1}function kZ(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function SZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jy(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function _Z(e){e.resolveTargetDelta()}function TZ(e){e.calcProjection()}function EZ(e){e.resetSkewAndRotation()}function CZ(e){e.removeLeadSnapshot()}function By(e,t,n){e.translate=Ve(t.translate,0,n),e.scale=Ve(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Vy(e,t,n,r){e.min=Ve(t.min,n.min,r),e.max=Ve(t.max,n.max,r)}function AZ(e,t,n,r){Vy(e.x,t.x,n.x,r),Vy(e.y,t.y,n.y,r)}function MZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const PZ={duration:.45,ease:[.4,0,.1,1]},Uy=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zy=Uy("applewebkit/")&&!Uy("chrome/")?Math.round:on;function qy(e){e.min=Zy(e.min),e.max=Zy(e.max)}function IZ(e){qy(e.x),qy(e.y)}function ok(e,t,n){return e==="position"||e==="preserve-aspect"&&!JU(Ry(t),Ry(n),.2)}function $Z(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const RZ=ik({attachResizeListener:(e,t)=>ca(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),lc={current:void 0},ak=ik({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!lc.current){const e=new RZ({});e.mount(window),e.setOptions({layoutScroll:!0}),lc.current=e}return lc.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),sk=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function OZ(e=!0){const t=x.useContext(ph);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=x.useId();x.useEffect(()=>{if(e)return i(o)},[e]);const a=x.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const lk=x.createContext({strict:!1}),Wy={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let Hy=!1;function DZ(){if(Hy)return;const e={};for(const t in Wy)e[t]={isEnabled:n=>Wy[t].some(r=>!!n[r])};Lx(e),Hy=!0}function uk(){return DZ(),_U()}function NZ(e){const t=uk();for(const n in e)t[n]={...t[n],...e[n]};Lx(t)}const LZ=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 ul(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||LZ.has(e)}let ck=e=>!ul(e);function zZ(e){typeof e=="function"&&(ck=t=>t.startsWith("on")?!ul(t):e(t))}try{zZ(require("@emotion/is-prop-valid").default)}catch{}function FZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||gt(e[i])||(ck(i)||n===!0&&ul(i)||!t&&!ul(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ou=x.createContext({});function jZ(e,t){if(iu(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ua(n)?n:void 0,animate:ua(r)?r:void 0}}return e.inherit!==!1?t:{}}function BZ(e){const{initial:t,animate:n}=jZ(e,x.useContext(ou));return x.useMemo(()=>({initial:t,animate:n}),[Gy(t),Gy(n)])}function Gy(e){return Array.isArray(e)?e.join(" "):e}const Fh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function fk(e,t,n){for(const r in t)!gt(t[r])&&!Zx(r,n)&&(e[r]=t[r])}function VZ({transformTemplate:e},t){return x.useMemo(()=>{const n=Fh();return Lh(n,t,e),Object.assign({},n.vars,n.style)},[t])}function UZ(e,t){const n=e.style||{},r={};return fk(r,n,e),Object.assign(r,VZ(e,t)),r}function ZZ(e,t){const n={},r=UZ(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}
325`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const dk=()=>({...Fh(),attrs:{}});function qZ(e,t,n,r){const i=x.useMemo(()=>{const o=dk();return qx(o,t,Hx(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};fk(o,e.style,e),i.style={...o,...i.style}}return i}const WZ=["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 jh(e){return typeof e!="string"||e.includes("-")?!1:!!(WZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function HZ(e,t,n,{latestValues:r},i,o=!1,a){const l=(a??jh(e)?qZ:ZZ)(t,r,i,e),u=FZ(t,typeof e=="string",o),f=e!==x.Fragment?{...u,...l,ref:n}:{},{children:c}=t,h=x.useMemo(()=>gt(c)?c.get():c,[c]);return x.createElement(e,{...f,children:h})}function GZ({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:YZ(n,r,i,e),renderState:t()}}function YZ(e,t,n,r){const i={},o=r(e,{});for(const h in o)i[h]=Ss(o[h]);let{initial:a,animate:s}=e;const l=iu(e),u=Dx(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const c=f?s:a;if(c&&typeof c!="boolean"&&!ru(c)){const h=Array.isArray(c)?c:[c];for(let d=0;d<h.length;d++){const p=Mh(e,h[d]);if(p){const{transitionEnd:m,transition:g,...y}=p;for(const b in y){let v=y[b];if(Array.isArray(v)){const S=f?v.length-1:0;v=v[S]}v!==null&&(i[b]=v)}for(const b in m)i[b]=m[b]}}}return i}const hk=e=>(t,n)=>{const r=x.useContext(ou),i=x.useContext(ph),o=()=>GZ(e,t,r,i);return n?o():WV(o)},KZ=hk({scrapeMotionValuesFromProps:zh,createRenderState:Fh}),XZ=hk({scrapeMotionValuesFromProps:Gx,createRenderState:dk}),JZ=Symbol.for("motionComponentSymbol");function QZ(e,t,n){const r=x.useRef(n);x.useInsertionEffect(()=>{r.current=n});const i=x.useRef(null);return x.useCallback(o=>{var s;o&&((s=e.onMount)==null||s.call(e,o));const a=r.current;if(typeof a=="function")if(o){const l=a(o);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):a(o);else a&&(a.current=o);t&&(o?t.mount(o):t.unmount())},[t])}const pk=x.createContext({});function yi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function eq(e,t,n,r,i,o){var v,S;const{visualElement:a}=x.useContext(ou),s=x.useContext(lk),l=x.useContext(ph),u=x.useContext(sk),f=u.reducedMotion,c=u.skipAnimations,h=x.useRef(null),d=x.useRef(!1);r=r||s.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:f,skipAnimations:c,isSVG:o}),d.current&&h.current&&(h.current.manuallyAnimateOnMount=!0));const p=h.current,m=x.useContext(pk);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&tq(h.current,n,i,m);const g=x.useRef(!1);x.useInsertionEffect(()=>{p&&g.current&&p.update(n,l)});const y=n[kx],b=x.useRef(!!y&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,y))&&((S=window.MotionHasOptimisedAnimation)==null?void 0:S.call(window,y)));return GV(()=>{d.current=!0,p&&(g.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),b.current&&p.animationState&&p.animationState.animateChanges())}),x.useEffect(()=>{p&&(!b.current&&p.animationState&&p.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,y)}),b.current=!1),p.enteringChildren=void 0)}),p}function tq(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:f,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:mk(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&yi(s),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u,layoutAnchor:f})}function mk(e){if(e)return e.options.allowProjection!==!1?e.projection:mk(e.parent)}function uc(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&NZ(r);const o=n?n==="svg":jh(e),a=o?XZ:KZ;function s(u,f){let c;const h={...x.useContext(sk),...u,layoutId:nq(u)},{isStatic:d}=h,p=BZ(u),m=a(u,d);if(!d&&typeof window<"u"){rq();const g=iq(h);c=g.MeasureLayout,p.visualElement=eq(e,m,h,i,g.ProjectionNode,o)}return Ei.jsxs(ou.Provider,{value:p,children:[c&&p.visualElement?Ei.jsx(c,{visualElement:p.visualElement,...h}):null,HZ(e,u,QZ(m,p.visualElement,f),m,d,t,o)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=x.forwardRef(s);return l[JZ]=e,l}function nq({layoutId:e}){const t=x.useContext(Ow).id;return t&&e!==void 0?t+"-"+e:e}function rq(e,t){x.useContext(lk).strict}function iq(e){const t=uk(),{drag:n,layout:r}=t;if(!n&&!r)return{};const i={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
vendor: 17,365 bytes, line 325
325function oq(e,t){if(typeof Proxy>"u")return uc;const n=new Map,r=(o,a)=>uc(o,a,e,t),i=(o,a)=>r(o,a);return new Proxy(i,{get:(o,a)=>a==="create"?r:(n.has(a)||n.set(a,uc(a,void 0,e,t)),n.get(a))})}const aq=(e,t)=>t.isSVG??jh(e)?new BU(t):new DU(t,{allowProjection:e!==x.Fragment});class sq extends Pr{constructor(t){super(t),t.animationState||(t.animationState=WU(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ru(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let lq=0;class uq extends Pr{constructor(){super(...arguments),this.id=lq++,this.isExitComplete=!1}update(){var o;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;if(t&&r===!1){if(this.isExitComplete){const{initial:a,custom:s}=this.node.getProps();if(typeof a=="string"){const l=Gr(this.node,a,s);if(l){const{transition:u,transitionEnd:f,...c}=l;for(const h in c)(o=this.node.getValue(h))==null||o.jump(c[h])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const cq={animation:{Feature:sq},exit:{Feature:uq}};function Ia(e){return{point:{x:e.pageX,y:e.pageY}}}const fq=e=>t=>Rh(t)&&e(t,Ia(t));function jo(e,t,n,r){return ca(e,t,fq(n),r)}const gk=({current:e})=>e?e.ownerDocument.defaultView:null,Yy=(e,t)=>Math.abs(e-t);function dq(e,t){const n=Yy(e.x,t.x),r=Yy(e.y,t.y);return Math.sqrt(n**2+r**2)}const Ky=new Set(["auto","scroll"]);class yk{constructor(t,n,{transformPagePoint:r,contextWindow:i=window,dragSnapToOrigin:o=!1,distanceThreshold:a=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=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=os(this.lastRawMoveEventInfo,this.transformPagePoint));const d=cc(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,m=dq(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!p&&!m)return;const{point:g}=d,{timestamp:y}=mt;this.history.push({...g,timestamp:y});const{onStart:b,onMove:v}=this.handlers;p||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,p)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=p,this.lastMoveEventInfo=os(p,this.transformPagePoint),Pe.update(this.updatePoint,!0)},this.handlePointerUp=(d,p)=>{this.end();const{onEnd:m,onSessionEnd:g,resumeAnimation:y}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=cc(d.type==="pointercancel"?this.lastMoveEventInfo:os(p,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,b),g&&g(d,b)},!Rh(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=i||window;const l=Ia(t),u=os(l,this.transformPagePoint),{point:f}=u,{timestamp:c}=mt;this.history=[{...f,timestamp:c}];const{onSessionStart:h}=n;h&&h(t,cc(u,this.history)),this.removeListeners=Aa(jo(this.contextWindow,"pointermove",this.handlePointerMove),jo(this.contextWindow,"pointerup",this.handlePointerUp),jo(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(Ky.has(r.overflowX)||Ky.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,i=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},o={x:i.x-n.x,y:i.y-n.y};o.x===0&&o.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=o.x,this.lastMoveEventInfo.point.y+=o.y):this.history.length>0&&(this.history[0].x-=o.x,this.history[0].y-=o.y),this.scrollPositions.set(t,i),Pe.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),kr(this.updatePoint)}}function os(e,t){return t?{point:t(e.point)}:e}function Xy(e,t){return{x:e.x-t.x,y:e.y-t.y}}function cc({point:e},t){return{point:e,delta:Xy(e,vk(t)),offset:Xy(e,hq(t)),velocity:pq(t,.1)}}function hq(e){return e[0]}function vk(e){return e[e.length-1]}function pq(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=vk(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>qt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>qt(t)*2&&(r=e[1]);const o=rn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function mq(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ve(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ve(n,e,r.max):Math.min(e,n)),e}function Jy(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function gq(e,{top:t,left:n,bottom:r,right:i}){return{x:Jy(e.x,n,i),y:Jy(e.y,t,r)}}function Qy(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 yq(e,t){return{x:Qy(e.x,t.x),y:Qy(e.y,t.y)}}function vq(e,t){let n=.5;const r=At(e),i=At(t);return i>r?n=sa(t.min,t.max-r,e.min):r>i&&(n=sa(e.min,e.max-i,t.min)),Ln(0,1,n)}function bq(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Vf=.35;function wq(e=Vf){return e===!1?e=0:e===!0&&(e=Vf),{x:ev(e,"left","right"),y:ev(e,"top","bottom")}}function ev(e,t,n){return{min:tv(e,t),max:tv(e,n)}}function tv(e,t){return typeof e=="number"?e:e[t]||0}const xq=new WeakMap;class kq{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=at(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const o=c=>{n&&this.snapToCursor(Ia(c).point),this.stopAnimation()},a=(c,h)=>{const{drag:d,dragPropagation:p,onDragStart:m}=this.getProps();if(d&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eU(d),!this.openDragLock))return;this.latestPointerEvent=c,this.latestPanInfo=h,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tn(y=>{let b=this.getAxisMotionValue(y).get()||0;if(On.test(b)){const{projection:v}=this.visualElement;if(v&&v.layout){const S=v.layout.layoutBox[y];S&&(b=At(S)*(parseFloat(b)/100))}}this.originPoint[y]=b}),m&&Pe.update(()=>m(c,h),!1,!0),Rf(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h;const{dragPropagation:d,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:y}=h;if(p&&this.currentDirection===null){this.currentDirection=_q(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",h.point,y),this.updateAxis("y",h.point,y),this.visualElement.render(),g&&Pe.update(()=>g(c,h),!1,!0)},l=(c,h)=>{this.latestPointerEvent=c,this.latestPanInfo=h,this.stop(c,h),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:c}=this.getProps();(c||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:f}=this.getProps();this.panSession=new yk(t,{onSessionStart:o,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,distanceThreshold:r,contextWindow:gk(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,i=n||this.latestPanInfo,o=this.isDragging;if(this.cancel(),!o||!i||!r)return;const{velocity:a}=i;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&Pe.postRender(()=>s(r,i))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!as(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=mq(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&yi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=gq(r.layoutBox,t):this.constraints=!1,this.elastic=wq(n),i!==this.constraints&&!yi(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Tn(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=bq(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!yi(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=MU(r,i.root,this.visualElement.getTransformPagePoint());let a=yq(i.layout.layoutBox,o);if(n){const s=n(EU(a));this.hasMutatedConstraints=!!s,s&&(a=Fx(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Tn(f=>{if(!as(f,n,this.currentDirection))return;let c=l&&l[f]||{};(a===!0||a===f)&&(c={min:0,max:0});const h=i?200:1e6,d=i?40:1e7,p={type:"inertia",velocity:r?t[f]:0,bounceStiffness:h,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...o,...c};return this.startAxisValueAnimation(f,p)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Rf(this.visualElement,t),r.start(Ah(t,r,0,n,this.visualElement,!1))}stopAnimation(){Tn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Tn(n=>{const{drag:r}=this.getProps();if(!as(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:s}=i.layout.layoutBox[n],l=o.get()||0;o.set(t[n]-Ve(a,s,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!yi(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Tn(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();i[a]=vq({min:l,max:l},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Tn(a=>{if(!as(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(Ve(l,u,i[a]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;xq.set(this.visualElement,this);const t=this.visualElement.current,n=jo(t,"pointerdown",u=>{const{drag:f,dragListener:c=!0}=this.getProps(),h=u.target,d=h!==t&&aU(h);f&&c&&!d&&this.start(u)});let r;const i=()=>{const{dragConstraints:u}=this.getProps();yi(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),r||(r=Sq(t,u.current,()=>this.scalePositionWithinConstraints())))},{projection:o}=this.visualElement,a=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Pe.read(i);const s=ca(window,"resize",()=>this.scalePositionWithinConstraints()),l=o.addEventListener("didUpdate",({delta:u,hasLayoutChanged:f})=>{this.isDragging&&f&&(Tn(c=>{const h=this.getAxisMotionValue(c);h&&(this.originPoint[c]+=u[c].translate,h.set(h.get()+u[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),l&&l(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Vf,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:s}}}function nv(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Sq(e,t,n){const r=fy(e,nv(n)),i=fy(t,nv(n));return()=>{r(),i()}}function as(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _q(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Tq extends Pr{constructor(t){super(t),this.removeGroupControls=on,this.removeListeners=on,this.controls=new kq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||on}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const fc=e=>(t,n)=>{e&&Pe.update(()=>e(t,n),!1,!0)};class Eq extends Pr{constructor(){super(...arguments),this.removePointerDownListener=on}onPointerDown(t){this.session=new yk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:gk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:fc(t),onStart:fc(n),onMove:fc(r),onEnd:(o,a)=>{delete this.session,i&&Pe.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=jo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let dc=!1;class Cq extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),dc&&o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),_s.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:a}=r;return a&&(a.isPresent=o,t.layoutDependency!==n&&a.setOptions({...a.options,layoutDependency:n}),dc=!0,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||Pe.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),$h.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;dc=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function bk(e){const[t,n]=OZ(),r=x.useContext(Ow);return Ei.jsx(Cq,{...e,layoutGroup:r,switchLayoutGroup:x.useContext(pk),isPresent:t,safeToRemove:n})}const Aq={pan:{Feature:Eq},drag:{Feature:Tq,ProjectionNode:ak,MeasureLayout:bk}};function rv(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Pe.postRender(()=>o(t,Ia(t)))}
325class Mq extends Pr{mount(){const{current:t}=this.node;t&&(this.unmount=nU(t,(n,r)=>(rv(this.node,r,"Start"),i=>rv(this.node,i,"End"))))}unmount(){}}class Pq extends Pr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Aa(ca(this.node.current,"focus",()=>this.onFocus()),ca(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iv(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Pe.postRender(()=>o(t,Ia(t)))}class Iq extends Pr{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=lU(t,(i,o)=>(iv(this.node,o,"Start"),(a,{success:s})=>iv(this.node,a,s?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Uf=new WeakMap,hc=new WeakMap,$q=e=>{const t=Uf.get(e.target);t&&t(e)},Rq=e=>{e.forEach($q)};function Oq({root:e,...t}){const n=e||document;hc.has(n)||hc.set(n,{});const r=hc.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Rq,{root:e,...t})),r[i]}function Dq(e,t,n){const r=Oq(t);return Uf.set(e,n),r.observe(e),()=>{Uf.delete(e),r.unobserve(e)}}const Nq={some:0,all:1};class Lq extends Pr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Nq[i]},s=u=>{const{isIntersecting:f}=u;if(this.isInView===f||(this.isInView=f,o&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:c,onViewportLeave:h}=this.node.getProps(),d=f?c:h;d&&d(u)};this.stopObserver=Dq(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(zq(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function zq({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Fq={inView:{Feature:Lq},tap:{Feature:Iq},focus:{Feature:Pq},hover:{Feature:Mq}},jq={layout:{ProjectionNode:ak,MeasureLayout:bk}},Bq={...cq,...Fq,...Aq,...jq},dae=oq(Bq,aq),au=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function so(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function Bh(e){return"nodeType"in e}function Pt(e){var t,n;return e?so(e)?e:Bh(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Vh(e){const{Document:t}=Pt(e);return e instanceof t}function $a(e){return so(e)?!1:e instanceof Pt(e).HTMLElement}function wk(e){return e instanceof Pt(e).SVGElement}function lo(e){return e?so(e)?e.document:Bh(e)?Vh(e)?e:$a(e)||wk(e)?e.ownerDocument:document:document:document}const Jn=au?x.useLayoutEffect:x.useEffect;function su(e){const t=x.useRef(e);return Jn(()=>{t.current=e}),x.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function Vq(){const e=x.useRef(null),t=x.useCallback((r,i)=>{e.current=setInterval(r,i)},[]),n=x.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function fa(e,t){t===void 0&&(t=[e]);const n=x.useRef(e);return Jn(()=>{n.current!==e&&(n.current=e)},t),n}function Ra(e,t){const n=x.useRef();return x.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function cl(e){const t=su(e),n=x.useRef(null),r=x.useCallback(i=>{i!==n.current&&(t==null||t(i,n.current)),n.current=i},[]);return[n,r]}function fl(e){const t=x.useRef();return x.useEffect(()=>{t.current=e},[e]),t.current}let pc={};function lu(e,t){return x.useMemo(()=>
325{if(t)return t;const n=pc[e]==null?0:pc[e]+1;return pc[e]=n,e+"-"+n},[e,t])}function xk(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((o,a)=>{const s=Object.entries(a);for(const[l,u]of s){const f=o[l];f!=null&&(o[l]=f+e*u)}return o},{...t})}}const Ri=xk(1),dl=xk(-1);function Uq(e){return"clientX"in e&&"clientY"in e}function Uh(e){if(!e)return!1;const{KeyboardEvent:t}=Pt(e.target);return t&&e instanceof t}function Zq(e){if(!e)return!1;const{TouchEvent:t}=Pt(e.target);return t&&e instanceof t}function hl(e){if(Zq(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Uq(e)?{x:e.clientX,y:e.clientY}:null}const da=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[da.Translate.toString(e),da.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),ov="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function qq(e){return e.matches(ov)?e:e.querySelector(ov)}const Wq={display:"none"};function Hq(e){let{id:t,value:n}=e;return L.createElement("div",{id:t,style:Wq},n)}function Gq(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const i={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return L.createElement("div",{id:t,style:i,role:"status","aria-live":r,"aria-atomic":!0},n)}function Yq(){const[e,t]=x.useState("");return{announce:x.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const kk=x.createContext(null);function Kq(e){const t=x.useContext(kk);x.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Xq(){const[e]=x.useState(()=>new Set),t=x.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[x.useCallback(r=>{let{type:i,event:o}=r;e.forEach(a=>{var s;return(s=a[i])==null?void 0:s.call(a,o)})},[e]),t]}const Jq={draggable:` 326 To pick up a draggable item, press the space bar. 327 While dragging, use the arrow keys to move the item. 328 Press space again to drop the item in its new position, or press escape to cancel. 329 `},Qq={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function e7(e){let{announcements:t=Qq,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Jq}=e;const{announce:o,announcement:a}=Yq(),s=lu("DndLiveRegion"),[l,u]=x.useState(!1);if(x.useEffect(()=>{u(!0)},[]),Kq(x.useMemo(()=>({onDragStart(c){let{active:h}=c;o(t.onDragStart({active:h}))},onDragMove(c){let{active:h,over:d}=c;t.onDragMove&&o(t.onDragMove({active:h,over:d}))},onDragOver(c){let{active:h,over:d}=c;o(t.onDragOver({active:h,over:d}))},onDragEnd(c){let{active:h,over:d}=c;o(t.onDragEnd({active:h,over:d}))},onDragCancel(c){let{active:h,over:d}=c;o(t.onDragCancel({active:h,over:d}))}}),[o,t])),!l)return null;const f=L.createElement(L.Fragment,null,L.createElement(Hq,{id:r,value:i.draggable}),L.createElement(Gq,{id:s,announcement:a}));return n?xi.createPortal(f,n):f}var st;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(st||(st={}));function pl(){}function hae(e,t){return x.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function pae(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const xn=Object.freeze({x:0,y:0});function t7(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function n7(e,t){const n=hl(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function r7(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function i7(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function av(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function o7(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}const mae=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=av(t),o=[];for(const a of r){const{id:s}=a,l=n.get(s);if(l){const u=av(l),f=i.reduce((h,d,p)=>h+t7(u[p],d),0),c=Number((f/4).toFixed(4));o.push({id:s,data:{droppableContainer:a,value:c}})}}return o.sort(r7)};function a7(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const l=t.width*t.height,u=e.width*e.height,f=a*s,c=f/(l+u-f);return Number(c.toFixed(4))}return 0}const s7=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const o of r){const{id:a}=o,s=n.get(a);if(s){const l=a7(s,t);l>0&&i.push({id:a,data:{droppableContainer:o,value:l}})}}return i.sort(i7)};function l7(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Sk(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:xn}function u7(e){return function(n){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((a,s)=>({...a,top:a.top+e*s.y,bottom:a.bottom+e*s.y,left:a.left+e*s.x,right:a.right+e*s.x}),{...n})}}const c7=u7(1);function _k(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function f7(e,t,n){const r=_k(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),u=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),f=i?e.width/i:e.width,c=o?e.height/o:e.he
329ight;return{width:f,height:c,top:u,right:l+f,bottom:u+c,left:l}}const d7={ignoreTransform:!1};function Oa(e,t){t===void 0&&(t=d7);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:u,transformOrigin:f}=Pt(e).getComputedStyle(e);u&&(n=f7(n,u,f))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function sv(e){return Oa(e,{ignoreTransform:!0})}function h7(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function p7(e,t){return t===void 0&&(t=Pt(e).getComputedStyle(e)),t.position==="fixed"}function m7(e,t){t===void 0&&(t=Pt(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=t[i];return typeof o=="string"?n.test(o):!1})}function Zh(e,t){const n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(Vh(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!$a(i)||wk(i)||n.includes(i))return n;const o=Pt(e).getComputedStyle(i);return i!==e&&m7(i,o)&&n.push(i),p7(i,o)?n:r(i.parentNode)}return e?r(e):n}function Tk(e){const[t]=Zh(e,1);return t??null}function mc(e){return!au||!e?null:so(e)?e:Bh(e)?Vh(e)||e===lo(e).scrollingElement?window:$a(e)?e:null:null}function Ek(e){return so(e)?e.scrollX:e.scrollLeft}function Ck(e){return so(e)?e.scrollY:e.scrollTop}function Zf(e){return{x:Ek(e),y:Ck(e)}}var dt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(dt||(dt={}));function Ak(e){return!au||!e?!1:e===document.scrollingElement}function Mk(e){const t={x:0,y:0},n=Ak(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},i=e.scrollTop<=t.y,o=e.scrollLeft<=t.x,a=e.scrollTop>=r.y,s=e.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:a,isRight:s,maxScroll:r,minScroll:t}}const g7={x:.2,y:.2};function y7(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;r===void 0&&(r=10),i===void 0&&(i=g7);const{isTop:u,isBottom:f,isLeft:c,isRight:h}=Mk(e),d={x:0,y:0},p={x:0,y:0},m={height:t.height*i.y,width:t.width*i.x};return!u&&o<=t.top+m.height?(d.y=dt.Backward,p.y=r*Math.abs((t.top+m.height-o)/m.height)):!f&&l>=t.bottom-m.height&&(d.y=dt.Forward,p.y=r*Math.abs((t.bottom-m.height-l)/m.height)),!h&&s>=t.right-m.width?(d.x=dt.Forward,p.x=r*Math.abs((t.right-m.width-s)/m.width)):!c&&a<=t.left+m.width&&(d.x=dt.Backward,p.x=r*Math.abs((t.left+m.width-a)/m.width)),{direction:d,speed:p}}function v7(e){if(e===document.scrollingElement){const{innerWidth:o,innerHeight:a}=window;return{top:0,left:0,right:o,bottom:a,width:o,height:a}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Pk(e){return e.reduce((t,n)=>Ri(t,Zf(n)),xn)}function b7(e){return e.reduce((t,n)=>t+Ek(n),0)}function w7(e){return e.reduce((t,n)=>t+Ck(n),0)}function Ik(e,t){if(t===void 0&&(t=Oa),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);Tk(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const x7=[["x",["left","right"],b7],["y",["top","bottom"],w7]];class qh{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Zh(n),i=Pk(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[o,a,s]of x7)for(const l of a)Object.defineProperty(this,l,{get:()=>{const u=s(r),f=i[o]-u;return this.rect[l]+f},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Bo{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var i;(i=this.target)==null||i.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function k7(e){const{EventTarget:t}=Pt(e);return e instanceof t?e:lo(e)}function gc(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var en;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(en||(en={}));function lv(e){e.preventDefault()}function S7(e){e.stopPropagation()}var Ae;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ae||(Ae={}));const $k={start:[Ae.Space,Ae.Enter],cancel:[Ae.Esc],end:[Ae.Space,Ae.Enter,Ae.Tab]},_7=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ae.Right:return{...n,x:n.x+25};case Ae.Left:return{...n,x:n.x-25};case Ae.Down:return{...n,y:n.y+25};case Ae.Up:return{...n,y:n.y-25}}};class Rk{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new Bo(lo(n)),this.windowListeners=new Bo(Pt(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(en.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&Ik(r),n(xn)}handleKeyDown(t){if(Uh(t)){const{active:n,context:r,options:i}=this.props,{keyboardCodes:o=$k,coordinateGetter:a=_7,scrollBehavior:s="smooth"}=i,{code:l}=t;if(o.end.includes(l)){this.handleEnd(t);return}if(o.cancel.includes(l)){this.handleCancel(t);return}const{collisionRect:u}=r.current,f=u?{x:u.left,y:u.top}:xn;this.referenceCoordinates||(this.referenceCoordinates=f);const c=a(t,{active:n,context:r.current,currentCoordinates:f});if(c){const h=dl(c,f),d={x:0,y:0},{scrollableAncestors:p}=r.current;for(const m of p){const g=t.code,{isTop:y,isRight:b,isLeft:v,isBottom:S,maxScroll:k,minScroll:w}=Mk(m),C=v7(m),A={x:Math.min(g===Ae.Right?C.right-C.width/2:C.right,Math.max(g===Ae.Right?C.left:C.left+C.width/2,c.x)),y:Math.min(g===Ae.Down?C.bottom-C.height/2:C.bottom,Math.max(g===Ae.Down?C.top:C.top+C.height/2,c.y))}
329,R=g===Ae.Right&&!b||g===Ae.Left&&!v,E=g===Ae.Down&&!S||g===Ae.Up&&!y;if(R&&A.x!==c.x){const M=m.scrollLeft+h.x,P=g===Ae.Right&&M<=k.x||g===Ae.Left&&M>=w.x;if(P&&!h.y){m.scrollTo({left:M,behavior:s});return}P?d.x=m.scrollLeft-M:d.x=g===Ae.Right?m.scrollLeft-k.x:m.scrollLeft-w.x,d.x&&m.scrollBy({left:-d.x,behavior:s});break}else if(E&&A.y!==c.y){const M=m.scrollTop+h.y,P=g===Ae.Down&&M<=k.y||g===Ae.Up&&M>=w.y;if(P&&!h.x){m.scrollTo({top:M,behavior:s});return}P?d.y=m.scrollTop-M:d.y=g===Ae.Down?m.scrollTop-k.y:m.scrollTop-w.y,d.y&&m.scrollBy({top:-d.y,behavior:s});break}}this.handleMove(t,Ri(dl(c,this.referenceCoordinates),d))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Rk.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=$k,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const s=o.activatorNode.current;return s&&e.target!==s?!1:(e.preventDefault(),i==null||i({event:e.nativeEvent}),!0)}return!1}}];function uv(e){return!!(e&&"distance"in e)}function cv(e){return!!(e&&"delay"in e)}class Wh{constructor(t,n,r){var i;r===void 0&&(r=k7(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:o}=t,{target:a}=o;this.props=t,this.events=n,this.document=lo(a),this.documentListeners=new Bo(this.document),this.listeners=new Bo(r),this.windowListeners=new Bo(Pt(a)),this.initialCoordinates=(i=hl(o))!=null?i:xn,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(en.Resize,this.handleCancel),this.windowListeners.add(en.DragStart,lv),this.windowListeners.add(en.VisibilityChange,this.handleCancel),this.windowListeners.add(en.ContextMenu,lv),this.documentListeners.add(en.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(cv(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(uv(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:i}=this.props;i(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(en.Click,S7,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(en.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:a,options:{activationConstraint:s}}=o;if(!i)return;const l=(n=hl(t))!=null?n:xn,u=dl(i,l);if(!r&&s){if(uv(s)){if(s.tolerance!=null&&gc(u,s.tolerance))return this.handleCancel();if(gc(u,s.distance))return this.handleStart()}if(cv(s)&&gc(u,s.tolerance))return this.handleCancel();this.handlePending(s,u);return}t.cancelable&&t.preventDefault(),a(l)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ae.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const T7={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Ok extends Wh{constructor(t){const{event:n}=t,r=lo(n.target);super(t,T7,r)}}Ok.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r==null||r({event:n}),!0)}}];const E7={move:{name:"mousemove"},end:{name:"mouseup"}};var qf;(function(e){e[e.RightClick=2]="RightClick"})(qf||(qf={}));class C7 extends Wh{constructor(t){super(t,E7,lo(t.event.target))}}C7.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===qf.RightClick?!1:(r==null||r({event:n}),!0)}}];const yc={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class A7 extends Wh{constructor(t){super(t,yc)}static setup(){return window.addEventListener(yc.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(yc.move.name,t)};function t(){}}}A7.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return i.length>1?!1:(r==null||r({event:n}),!0)}}];var Vo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Vo||(Vo={}));var ml;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
329sedTreeOrder"})(ml||(ml={}));function M7(e){let{acceleration:t,activator:n=Vo.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:a=5,order:s=ml.TreeOrder,pointerCoordinates:l,scrollableAncestors:u,scrollableAncestorRects:f,delta:c,threshold:h}=e;const d=I7({delta:c,disabled:!o}),[p,m]=Vq(),g=x.useRef({x:0,y:0}),y=x.useRef({x:0,y:0}),b=x.useMemo(()=>{switch(n){case Vo.Pointer:return l?{top:l.y,bottom:l.y,left:l.x,right:l.x}:null;case Vo.DraggableRect:return i}},[n,i,l]),v=x.useRef(null),S=x.useCallback(()=>{const w=v.current;if(!w)return;const C=g.current.x*y.current.x,A=g.current.y*y.current.y;w.scrollBy(C,A)},[]),k=x.useMemo(()=>s===ml.TreeOrder?[...u].reverse():u,[s,u]);x.useEffect(()=>{if(!o||!u.length||!b){m();return}for(const w of k){if((r==null?void 0:r(w))===!1)continue;const C=u.indexOf(w),A=f[C];if(!A)continue;const{direction:R,speed:E}=y7(w,A,b,t,h);for(const M of["x","y"])d[M][R[M]]||(E[M]=0,R[M]=0);if(E.x>0||E.y>0){m(),v.current=w,p(S,a),g.current=E,y.current=R;return}}g.current={x:0,y:0},y.current={x:0,y:0},m()},[t,S,r,m,o,a,JSON.stringify(b),JSON.stringify(d),p,u,k,f,JSON.stringify(h)])}const P7={x:{[dt.Backward]:!1,[dt.Forward]:!1},y:{[dt.Backward]:!1,[dt.Forward]:!1}};function I7(e){let{delta:t,disabled:n}=e;const r=fl(t);return Ra(i=>{if(n||!r||!i)return P7;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[dt.Backward]:i.x[dt.Backward]||o.x===-1,[dt.Forward]:i.x[dt.Forward]||o.x===1},y:{[dt.Backward]:i.y[dt.Backward]||o.y===-1,[dt.Forward]:i.y[dt.Forward]||o.y===1}}},[n,t,r])}function $7(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Ra(i=>{var o;return t==null?null:(o=r??i)!=null?o:null},[r,t])}function R7(e,t){return x.useMemo(()=>e.reduce((n,r)=>{const{sensor:i}=r,o=i.activators.map(a=>({eventName:a.eventName,handler:t(a.handler,r)}));return[...n,...o]},[]),[e,t])}var ha;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ha||(ha={}));var Wf;(function(e){e.Optimized="optimized"})(Wf||(Wf={}));const fv=new Map;function O7(e,t){let{dragging:n,dependencies:r,config:i}=t;const[o,a]=x.useState(null),{frequency:s,measure:l,strategy:u}=i,f=x.useRef(e),c=g(),h=fa(c),d=x.useCallback(function(y){y===void 0&&(y=[]),!h.current&&a(b=>b===null?y:b.concat(y.filter(v=>!b.includes(v))))},[h]),p=x.useRef(null),m=Ra(y=>{if(c&&!n)return fv;if(!y||y===fv||f.current!==e||o!=null){const b=new Map;for(let v of e){if(!v)continue;if(o&&o.length>0&&!o.includes(v.id)&&v.rect.current){b.set(v.id,v.rect.current);continue}const S=v.node.current,k=S?new qh(l(S),S):null;v.rect.current=k,k&&b.set(v.id,k)}return b}return y},[e,o,n,c,l]);return x.useEffect(()=>{f.current=e},[e]),x.useEffect(()=>{c||d()},[n,c]),x.useEffect(()=>{o&&o.length>0&&a(null)},[JSON.stringify(o)]),x.useEffect(()=>{c||typeof s!="number"||p.current!==null||(p.current=setTimeout(()=>{d(),p.current=null},s))},[s,c,d,...r]),{droppableRects:m,measureDroppableContainers:d,measuringScheduled:o!=null};function g(){switch(u){case ha.Always:return!1;case ha.BeforeDragging:return n;default:return!n}}}function Hh(e,t){return Ra(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function D7(e,t){return Hh(e,t)}function N7(e){let{callback:t,disabled:n}=e;const r=su(t),i=x.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,n]);return x.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function uu(e){let{callback:t,disabled:n}=e;const r=su(t),i=x.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[n]);return x.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function L7(e){return new qh(Oa(e),e)}function dv(e,t,n){t===void 0&&(t=L7);const[r,i]=x.useState(null);function o(){i(l=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=l??n)!=null?u:null}const f=t(e);return JSON.stringify(l)===JSON.stringify(f)?l:f})}const a=N7({callback(l){if(e)for(const u of l){const{type:f,target:c}=u;if(f==="childList"&&c instanceof HTMLElement&&c.contains(e)){o();break}}}}),s=uu({callback:o});return Jn(()=>{o(),e?(s==null||s.observe(e),a==null||a.observe(document.body,{childList:!0,subtree:!0})):(s==null||s.disconnect(),a==null||a.disconnect())},[e]),r}function z7(e){const t=Hh(e);return Sk(e,t)}const hv=[];function F7(e){const t=x.useRef(e),n=Ra(r=>e?r&&r!==hv&&e&&t.current&&e.parentNode===t.current.parentNode?r:Zh(e):hv,[e]);return x.useEffect(()=>{t.current=e},[e]),n}function j7(e){const[t,n]=x.useState(null),r=x.useRef(e),i=x.useCallback(o=>{const a=mc(o.target);a&&n(s=>s?(s.set(a,Zf(a)),new Map(s)):null)},[]);return x.useEffect(()=>{const o=r.current;if(e!==o){a(o);const s=e.map(l=>{const u=mc(l);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Zf(u)]):null}).filter(l=>l!=null);n(s.length?new Map(s):null),r.current=e}return()=>{a(e),a(o)};
329function a(s){s.forEach(l=>{const u=mc(l);u==null||u.removeEventListener("scroll",i)})}},[i,e]),x.useMemo(()=>e.length?t?Array.from(t.values()).reduce((o,a)=>Ri(o,a),xn):Pk(e):xn,[e,t])}function pv(e,t){t===void 0&&(t=[]);const n=x.useRef(null);return x.useEffect(()=>{n.current=null},t),x.useEffect(()=>{const r=e!==xn;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?dl(e,n.current):xn}function B7(e){x.useEffect(()=>{if(!au)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n==null||n()}},e.map(t=>{let{sensor:n}=t;return n}))}function V7(e,t){return x.useMemo(()=>e.reduce((n,r)=>{let{eventName:i,handler:o}=r;return n[i]=a=>{o(a,t)},n},{}),[e,t])}function Dk(e){return x.useMemo(()=>e?h7(e):null,[e])}const mv=[];function U7(e,t){t===void 0&&(t=Oa);const[n]=e,r=Dk(n?Pt(n):null),[i,o]=x.useState(mv);function a(){o(()=>e.length?e.map(l=>Ak(l)?r:new qh(t(l),l)):mv)}const s=uu({callback:a});return Jn(()=>{s==null||s.disconnect(),a(),e.forEach(l=>s==null?void 0:s.observe(l))},[e]),i}function Nk(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return $a(t)?t:e}function Z7(e){let{measure:t}=e;const[n,r]=x.useState(null),i=x.useCallback(u=>{for(const{target:f}of u)if($a(f)){r(c=>{const h=t(f);return c?{...c,width:h.width,height:h.height}:h});break}},[t]),o=uu({callback:i}),a=x.useCallback(u=>{const f=Nk(u);o==null||o.disconnect(),f&&(o==null||o.observe(f)),r(f?t(f):null)},[t,o]),[s,l]=cl(a);return x.useMemo(()=>({nodeRef:s,rect:n,setRef:l}),[n,s,l])}const q7=[{sensor:Ok,options:{}},{sensor:Rk,options:{}}],W7={current:{}},Ts={draggable:{measure:sv},droppable:{measure:sv,strategy:ha.WhileDragging,frequency:Wf.Optimized},dragOverlay:{measure:Oa}};class Uo extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const H7={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Uo,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:pl},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ts,measureDroppableContainers:pl,windowRect:null,measuringScheduled:!1},Lk={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:pl,draggableNodes:new Map,over:null,measureDroppableContainers:pl},Da=x.createContext(Lk),zk=x.createContext(H7);function G7(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Uo}}}function Y7(e,t){switch(t.type){case st.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case st.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case st.DragEnd:case st.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case st.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Uo(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case st.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new Uo(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case st.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new Uo(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function K7(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:i}=x.useContext(Da),o=fl(r),a=fl(n==null?void 0:n.id);return x.useEffect(()=>{if(!t&&!r&&o&&a!=null){if(!Uh(o)||document.activeElement===o.target)return;const s=i.get(a);if(!s)return;const{activatorNode:l,node:u}=s;if(!l.current&&!u.current)return;requestAnimationFrame(()=>{for(const f of[l.current,u.current]){if(!f)continue;const c=qq(f);if(c){c.focus();break}}})}},[r,t,i,a,o]),null}function Fk(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((i,o)=>o({transform:i,...r}),n):n}function X7(e){return x.useMemo(()=>({draggable:{...Ts.draggable,...e==null?void 0:e.draggable},droppable:{...Ts.droppable,...e==null?void 0:e.droppable},dragOverlay:{...Ts.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function J7(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e;const o=x.useRef(!1),{x:a,y:s}=typeof i=="boolean"?{x:i,y:i}:i;Jn(()=>
329{if(!a&&!s||!t){o.current=!1;return}if(o.current||!r)return;const u=t==null?void 0:t.node.current;if(!u||u.isConnected===!1)return;const f=n(u),c=Sk(f,r);if(a||(c.x=0),s||(c.y=0),o.current=!0,Math.abs(c.x)>0||Math.abs(c.y)>0){const h=Tk(u);h&&h.scrollBy({top:c.y,left:c.x})}},[t,a,s,r,n])}const cu=x.createContext({...xn,scaleX:1,scaleY:1});var dr;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(dr||(dr={}));const gae=x.memo(function(t){var n,r,i,o;let{id:a,accessibility:s,autoScroll:l=!0,children:u,sensors:f=q7,collisionDetection:c=s7,measuring:h,modifiers:d,...p}=t;const m=x.useReducer(Y7,void 0,G7),[g,y]=m,[b,v]=Xq(),[S,k]=x.useState(dr.Uninitialized),w=S===dr.Initialized,{draggable:{active:C,nodes:A,translate:R},droppable:{containers:E}}=g,M=C!=null?A.get(C):null,P=x.useRef({initial:null,translated:null}),V=x.useMemo(()=>{var tt;return C!=null?{id:C,data:(tt=M==null?void 0:M.data)!=null?tt:W7,rect:P}:null},[C,M]),j=x.useRef(null),[W,G]=x.useState(null),[Y,U]=x.useState(null),N=fa(p,Object.values(p)),T=lu("DndDescribedBy",a),he=x.useMemo(()=>E.getEnabled(),[E]),I=X7(h),{droppableRects:_,measureDroppableContainers:H,measuringScheduled:q}=O7(he,{dragging:w,dependencies:[R.x,R.y],config:I.droppable}),K=$7(A,C),te=x.useMemo(()=>Y?hl(Y):null,[Y]),xe=xu(),z=D7(K,I.draggable.measure);J7({activeNode:C!=null?A.get(C):null,config:xe.layoutShiftCompensation,initialRect:z,measure:I.draggable.measure});const J=dv(K,I.draggable.measure,z),se=dv(K?K.parentElement:null),D=x.useRef({activatorEvent:null,active:null,activeNode:K,collisionRect:null,collisions:null,droppableRects:_,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ye=E.getNodeFor((n=D.current.over)==null?void 0:n.id),pe=Z7({measure:I.dragOverlay.measure}),We=(r=pe.nodeRef.current)!=null?r:K,$e=w?(i=pe.rect)!=null?i:J:null,wt=!!(pe.nodeRef.current&&pe.rect),un=z7(wt?null:J),rr=Dk(We?Pt(We):null),It=F7(w?Ye??K:null),Gt=U7(It),Vn=Fk(d,{transform:{x:R.x-un.x,y:R.y-un.y,scaleX:1,scaleY:1},activatorEvent:Y,active:V,activeNodeRect:J,containerNodeRect:se,draggingNodeRect:$e,over:D.current.over,overlayNodeRect:pe.rect,scrollableAncestors:It,scrollableAncestorRects:Gt,windowRect:rr}),Yt=te?Ri(te,R):null,ai=j7(It),ho=pv(ai),$=pv(ai,[J]),F=Ri(Vn,ho),ne=$e?c7($e,Vn):null,le=V&&ne?c({active:V,collisionRect:ne,droppableRects:_,droppableContainers:he,pointerCoordinates:Yt}):null,ve=o7(le,"id"),[Ke,jt]=x.useState(null),xt=wt?Vn:Ri(Vn,$),$t=l7(xt,(o=Ke==null?void 0:Ke.rect)!=null?o:null,J),Kt=x.useRef(null),He=x.useCallback((tt,Xe)=>{let{sensor:kt,options:re}=Xe;if(j.current==null)return;const ce=A.get(j.current);if(!ce)return;const me=tt.nativeEvent,Je=new kt({active:j.current,activeNode:ce,event:me,options:re,context:D,onAbort(Re){if(!A.get(Re))return;const{onDragAbort:Qe}=N.current,ct={id:Re};Qe==null||Qe(ct),b({type:"onDragAbort",event:ct})},onPending(Re,yt,Qe,ct){if(!A.get(Re))return;const{onDragPending:mo}=N.current,ir={id:Re,constraint:yt,initialCoordinates:Qe,offset:ct};mo==null||mo(ir),b({type:"onDragPending",event:ir})},onStart(Re){const yt=j.current;if(yt==null)return;const Qe=A.get(yt);if(!Qe)return;const{onDragStart:ct}=N.current,po={activatorEvent:me,active:{id:yt,data:Qe.data,rect:P}};xi.unstable_batchedUpdates(()=>{ct==null||ct(po),k(dr.Initializing),y({type:st.DragStart,initialCoordinates:Re,active:yt}),b({type:"onDragStart",event:po}),G(Kt.current),U(me)})},onMove(Re){y({type:st.DragMove,coordinates:Re})},onEnd:ut(st.DragEnd),onCancel:ut(st.DragCancel)});Kt.current=Je;function ut(Re){return async function(){const{active:Qe,collisions:ct,over:po,scrollAdjustedTranslate:mo}=D.current;let ir=null;if(Qe&&mo){const{cancelDrop:go}=N.current;ir={activatorEvent:me,active:Qe,collisions:ct,delta:mo,over:po},Re===st.DragEnd&&typeof go=="function"&&await Promise.resolve(go(ir))&&(Re=st.DragCancel)}j.current=null,xi.unstable_batchedUpdates(()=>{y({type:Re}),k(dr.Uninitialized),jt(null),G(null),U(null),Kt.current=null;const go=Re===st.DragEnd?"onDragEnd":"onDragCancel";if(ir){const ku=N.current[go];ku==null||ku(ir),b({type:go,event:ir})}})}}},[A]),Sn=x.useCallback((tt,Xe)=>(kt,re)=>{const ce=kt.nativeEvent,me=A.get(re);if(j.current!==null||!me||ce.dndKit||ce.defaultPrevented)return;const Je={active:me};tt(kt,Xe.options,Je)===!0&&(ce.dndKit={capturedBy:Xe.sensor},j.current=re,He(kt,Xe))},[A,He]),Rt=R7(f,Sn);B7(f),Jn(()=>{J&&S===dr.Initializing&&k(dr.Initialized)},[J,S]),x.useEffect(()=>{const{onDragMove:tt}=N.current,{active:Xe,activatorEvent:kt,collisions:re,over:ce}=D.current;if(!Xe||!kt)return;const me={active:Xe,activatorEvent:kt,collisions:re,delta:{x:F.x,y:F.y},over:ce};xi.unstable_batchedUpdates(()=>{tt==null||tt(me),b({type:"onDragMove",event:me})})},[F.x,F.y]),x.useEffect(()=>{const{active:tt,activatorEvent:Xe,collisions:kt,droppableContainers:re,scrollAdjustedTranslate:ce}=D.current;if(!tt||j.current==null||!Xe||!ce)return;const{onDragOver:me}=N.current,Je=re.get(ve),ut=Je&&Je.rect.current?{id:Je.id,rect:Je.rect.current,data:Je.data,disabled:Je.disabled}:null,Re={active:tt,activatorEvent:Xe,collisions:kt,delta:{x:ce.x,y:ce.y},over:ut};xi.unstable_batchedUpdates(()=>{jt(ut),me==null||me(Re),b({type:"onDragOver",event:Re})})},[ve]),Jn(()=>{D.current={activatorEvent:Y,active:V,activeNode:K,collisionRect:ne,collisions:le,droppableRects:_,draggableNodes:A,draggingNode:We,draggingNodeRect:$e,droppableContainers:E,over:Ke,scrollableAncestors:It,scrollAdjustedTranslate:F},P.current={initial:$e,translated:ne}},[V,K,le,ne,A,We,$e,_,E,Ke,It,F]),M7({...xe,delta:R,draggingRect:ne,pointerCoordinates:Yt,scrollableAncestors:It,scrollableAncestorRects:Gt});const Ua=x.useMemo(()=>({active:V,activeNode:K,activeNodeRect:J,activatorEvent:Y,collisions:le,containerNodeRect:se,dragOverlay:pe,draggableNodes:A,droppableContainers:E,droppableRects:_,over:Ke,measureDroppableContainers:H,scrollableAncestors:It,scrollableAncestorRects:Gt,measuringConfiguration:I,measuringScheduled:q,windowRect:rr}),[V,K,J,Y,le,se,pe,A,E,_,Ke,H,It,Gt,I,q,rr]),Za=x.useMemo(()=>({activatorEvent:Y,activators:Rt,active:V,activeNodeRect:J,ariaDescribedById:{draggable:T},dispatch:y,draggableNodes:A,over:Ke,measureDroppableContainers:H}),[Y,Rt,V,J,y,T,A,Ke,H]);return L.createElement(kk.Provider,{value:v},L.createElement(Da.Provider,{value:Za},L.createElement(zk.Provider,{value:Ua},L.createElement(cu.Provider,{value:$t},u)),L.createElement(K7,{disabled:(s==null?void 0:s.restoreFocus)===!1})),L.createElement(e7,{...s,hiddenTextDescribedById:T}));function xu(){const tt=(W==null?void 0:W.autoScrollEnabled)===!1,Xe=typeof l=="object"?l.enabled===!1:l===!1,kt=w&&!tt&&!Xe;return typeof l=="object"?{...l,enabled:kt}:{enabled:kt}}}),Q7=x.createContext(null),gv="button",e8="Draggable";function yae(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e;const o=lu(e8),{activators:a,activatorEvent:s,active:l,activeNodeRect:u,ariaDescribedById:f,draggableNodes:c,over:h}=x.useContext(Da),{role:d=gv,roleDescription:p="draggable",tabIndex:m=0}=i??{},g=(l==null?void 0:l.id)===t,y=x.useContext(g?cu:Q7),[b,v]=cl(),[S,k]=cl(),w=V7(a,t),C=fa(n);Jn(()=>(c.set(t,{id:t,key:o,node:b,activatorNode:S,data:C}),()=>{const R=c.get(t);R&&R.key===o&&c.delete(t)}),[c,t]);const A=x.useMemo(()=>({role:d,tabIndex:m,"aria-disabled":r,"aria-pressed":g&&d===gv?!0:void 0,"aria-roledescription":p,"aria-describedby":f.draggable}),[r,d,m,g,p,f.draggable]);return{active:l,activatorEvent:s,activeNodeRect:u,attributes:A,isDragging:g,listeners:r?void 0:w,node:b,over:h,setNodeRef:v,setActivatorNodeRef:k,transform:y}}function t8(){return x.useContext(zk)}const n8="Droppable",r8={timeout:25};function vae(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e;const o=lu(n8),{active:a,dispatch:s,over:l,measureDroppableContainers:u}=x.useContext(Da),f=x.useRef({disabled:n}),c=x.useRef(!1),h=x.useRef(null),d=x.useRef(null),{disabled:p,updateMeasurementsFor:m,timeout:g}={...r8,...i},y=fa(m??r),b=x.useCallback(()=>
329{if(!c.current){c.current=!0;return}d.current!=null&&clearTimeout(d.current),d.current=setTimeout(()=>{u(Array.isArray(y.current)?y.current:[y.current]),d.current=null},g)},[g]),v=uu({callback:b,disabled:p||!a}),S=x.useCallback((A,R)=>{v&&(R&&(v.unobserve(R),c.current=!1),A&&v.observe(A))},[v]),[k,w]=cl(S),C=fa(t);return x.useEffect(()=>{!v||!k.current||(v.disconnect(),c.current=!1,v.observe(k.current))},[k,v]),x.useEffect(()=>(s({type:st.RegisterDroppable,element:{id:r,key:o,disabled:n,node:k,rect:h,data:C}}),()=>s({type:st.UnregisterDroppable,key:o,id:r})),[r]),x.useEffect(()=>{n!==f.current.disabled&&(s({type:st.SetDroppableDisabled,id:r,key:o,disabled:n}),f.current.disabled=n)},[r,o,n,s]),{active:a,rect:h,isOver:(l==null?void 0:l.id)===r,node:k,over:l,setNodeRef:w}}function i8(e){let{animation:t,children:n}=e;const[r,i]=x.useState(null),[o,a]=x.useState(null),s=fl(n);return!n&&!r&&s&&i(s),Jn(()=>{if(!o)return;const l=r==null?void 0:r.key,u=r==null?void 0:r.props.id;if(l==null||u==null){i(null);return}Promise.resolve(t(u,o)).then(()=>{i(null)})},[t,r,o]),L.createElement(L.Fragment,null,n,r?x.cloneElement(r,{ref:a}):null)}const o8={x:0,y:0,scaleX:1,scaleY:1};function a8(e){let{children:t}=e;return L.createElement(Da.Provider,{value:Lk},L.createElement(cu.Provider,{value:o8},t))}const s8={position:"fixed",touchAction:"none"},l8=e=>Uh(e)?"transform 250ms ease":void 0,u8=x.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:o,className:a,rect:s,style:l,transform:u,transition:f=l8}=e;if(!s)return null;const c=i?u:{...u,scaleX:1,scaleY:1},h={...s8,width:s.width,height:s.height,top:s.top,left:s.left,transform:da.Transform.toString(c),transformOrigin:i&&r?n7(r,s):void 0,transition:typeof f=="function"?f(r):f,...l};return L.createElement(n,{className:a,style:h,ref:t},o)}),c8=e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(o!=null&&o.active)for(const[s,l]of Object.entries(o.active))l!==void 0&&(i[s]=n.node.style.getPropertyValue(s),n.node.style.setProperty(s,l));if(o!=null&&o.dragOverlay)for(const[s,l]of Object.entries(o.dragOverlay))l!==void 0&&r.node.style.setProperty(s,l);return a!=null&&a.active&&n.node.classList.add(a.active),a!=null&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[l,u]of Object.entries(i))n.node.style.setProperty(l,u);a!=null&&a.active&&n.node.classList.remove(a.active)}},f8=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:da.Transform.toString(t)},{transform:da.Transform.toString(n)}]},d8={duration:250,easing:"ease",keyframes:f8,sideEffects:c8({styles:{active:{opacity:"0"}}})};function h8(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return su((o,a)=>{if(t===null)return;const s=n.get(o);if(!s)return;const l=s.node.current;if(!l)return;const u=Nk(a);if(!u)return;const{transform:f}=Pt(a).getComputedStyle(a),c=_k(f);if(!c)return;const h=typeof t=="function"?t:p8(t);return Ik(l,i.draggable.measure),h({active:{id:o,data:s.data,node:l,rect:i.draggable.measure(l)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:i,transform:c})})}function p8(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...d8,...e};return o=>{let{active:a,dragOverlay:s,transform:l,...u}=o;if(!t)return;const f={x:s.rect.left-a.rect.left,y:s.rect.top-a.rect.top},c={scaleX:l.scaleX!==1?a.rect.width*l.scaleX/s.rect.width:1,scaleY:l.scaleY!==1?a.rect.height*l.scaleY/s.rect.height:1},h={x:l.x-f.x,y:l.y-f.y,...c},d=i({...u,active:a,dragOverlay:s,transform:{initial:l,final:h}}),[p]=d,m=d[d.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;const g=r==null?void 0:r({active:a,dragOverlay:s,...u}),y=s.node.animate(d,{duration:t,easing:n,fill:"forwards"});return new Promise(b=>{y.onfinish=()=>{g==null||g(),b()}})}}let yv=0;function m8(e){return x.useMemo(()=>{if(e!=null)return yv++,yv},[e])}const bae=L.memo(e=>
vendor: 5,278 bytes, line 329
329{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:o,modifiers:a,wrapperElement:s="div",className:l,zIndex:u=999}=e;const{activatorEvent:f,active:c,activeNodeRect:h,containerNodeRect:d,draggableNodes:p,droppableContainers:m,dragOverlay:g,over:y,measuringConfiguration:b,scrollableAncestors:v,scrollableAncestorRects:S,windowRect:k}=t8(),w=x.useContext(cu),C=m8(c==null?void 0:c.id),A=Fk(a,{activatorEvent:f,active:c,activeNodeRect:h,containerNodeRect:d,draggingNodeRect:g.rect,over:y,overlayNodeRect:g.rect,scrollableAncestors:v,scrollableAncestorRects:S,transform:w,windowRect:k}),R=Hh(h),E=h8({config:r,draggableNodes:p,droppableContainers:m,measuringConfiguration:b}),M=R?g.setRef:void 0;return L.createElement(a8,null,L.createElement(i8,{animation:E},c&&C?L.createElement(u8,{key:C,id:c.id,ref:M,as:s,activatorEvent:f,adjustScale:t,className:l,transition:o,rect:R,style:{zIndex:u,...i},transform:A},n):null))});function g8(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const y8=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,v8=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,b8={};function vv(e,t){return(b8.jsx?v8:y8).test(e)}const w8=/[ \t\n\f\r]/g;function x8(e){return typeof e=="object"?e.type==="text"?bv(e.value):!1:bv(e)}function bv(e){return e.replace(w8,"")===""}class Na{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Na.prototype.normal={};Na.prototype.property={};Na.prototype.space=void 0;function jk(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Na(n,r,t)}function Hf(e){return e.toLowerCase()}class zt{constructor(t,n){this.attribute=n,this.property=t}}zt.prototype.attribute="";zt.prototype.booleanish=!1;zt.prototype.boolean=!1;zt.prototype.commaOrSpaceSeparated=!1;zt.prototype.commaSeparated=!1;zt.prototype.defined=!1;zt.prototype.mustUseProperty=!1;zt.prototype.number=!1;zt.prototype.overloadedBoolean=!1;zt.prototype.property="";zt.prototype.spaceSeparated=!1;zt.prototype.space=void 0;let k8=0;const de=ii(),nt=ii(),Gf=ii(),B=ii(),Oe=ii(),Oi=ii(),Bt=ii();function ii(){return 2**++k8}const Yf=Object.freeze(Object.defineProperty({__proto__:null,boolean:de,booleanish:nt,commaOrSpaceSeparated:Bt,commaSeparated:Oi,number:B,overloadedBoolean:Gf,spaceSeparated:Oe},Symbol.toStringTag,{value:"Module"})),vc=Object.keys(Yf);class Gh extends zt{constructor(t,n,r,i){let o=-1;if(super(t,n),wv(this,"space",i),typeof r=="number")for(;++o<vc.length;){const a=vc[o];wv(this,vc[o],(r&Yf[a])===Yf[a])}}}Gh.prototype.defined=!0;function wv(e,t,n){n&&(e[t]=n)}function uo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Gh(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Hf(r)]=r,n[Hf(o.attribute)]=r}return new Na(t,n,e.space)}const Bk=uo({properties:{ariaActiveDescendant:null,ariaAtomic:nt,ariaAutoComplete:null,ariaBusy:nt,ariaChecked:nt,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:Oe,ariaCurrent:null,ariaDescribedBy:Oe,ariaDetails:null,ariaDisabled:nt,ariaDropEffect:Oe,ariaErrorMessage:null,ariaExpanded:nt,ariaFlowTo:Oe,ariaGrabbed:nt,ariaHasPopup:null,ariaHidden:nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Oe,ariaLevel:B,ariaLive:null,ariaModal:nt,ariaMultiLine:nt,ariaMultiSelectable:nt,ariaOrientation:null,ariaOwns:Oe,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:nt,ariaReadOnly:nt,ariaRelevant:null,ariaRequired:nt,ariaRoleDescription:Oe,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:nt,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Vk(e,t){return t in e?e[t]:t}function Uk(e,t){return Vk(e,t.toLowerCase())}const S8=uo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oi,acceptCharset:Oe,accessKey:Oe,action:null,allow:null,allowFullScreen:de,allowPaymentRequest:de,allowUserMedia:de,alt:null,as:null,async:de,autoCapitalize:null,autoComplete:Oe,autoFocus:de,autoPlay:de,blocking:Oe,capture:null,charSet:null,checked:de,cite:null,className:Oe,cols:B,colSpan:null,content:null,contentEditable:nt,controls:de,controlsList:Oe,coords:B|Oi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:de,defer:de,dir:null,dirName:null,disabled:de,download:Gf,draggable:nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:de,formTarget:null,headers:Oe,height:B,hidden:Gf,high:B,href:null,hrefLang:null,htmlFor:Oe,httpEquiv:Oe,id:null,imageSizes:null,imageSrcSet:null,inert:de,inputMode:null,integrity:null,is:null,isMap:de,itemId:null,itemProp:Oe,itemRef:Oe,itemScope:de,itemType:Oe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:de,low:B,manifest:null,max:null,maxLength:B,media:null,method:null,min:null,minLength:B,multiple:de,muted:de,name:null,nonce:null,noModule:de,noValidate:de,onAbort:null,onAfterPrint:null,onAuxCl
329ick: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:de,optimum:B,pattern:null,ping:Oe,placeholder:null,playsInline:de,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:de,referrerPolicy:null,rel:Oe,required:de,reversed:de,rows:B,rowSpan:B,sandbox:Oe,scope:null,scoped:de,seamless:de,selected:de,shadowRootClonable:de,shadowRootDelegatesFocus:de,shadowRootMode:null,shape:null,size:B,sizes:null,slot:null,span:B,spellCheck:nt,src:null,
329srcDoc:null,srcLang:null,srcSet:null,start:B,step:null,style:null,tabIndex:B,target:null,title:null,translate:null,type:null,typeMustMatch:de,useMap:null,value:nt,width:B,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Oe,axis:null,background:null,bgColor:null,border:B,borderColor:null,bottomMargin:B,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:de,declare:de,event:null,face:null,frame:null,frameBorder:null,hSpace:B,leftMargin:B,link:null,longDesc:null,lowSrc:null,marginHeight:B,marginWidth:B,noResize:de,noHref:de,noShade:de,noWrap:de,object:null,profile:null,prompt:null,rev:null,rightMargin:B,rules:null,scheme:null,scrolling:nt,standby:null,summary:null,text:null,topMargin:B,valueType:null,version:null,vAlign:null,vLink:null,vSpace:B,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:de,disableRemotePlayback:de,prefix:null,property:null,results:B,security:null,unselectable:null},space:"html",transform:Uk}),_8=uo({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",colorRendering:"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",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
329-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:Bt,accentHeight:B,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:B,amplitude:B,arabicForm:null,ascent:B,attributeName:null,attributeType:null,azimuth:B,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:B,by:null,calcMode:null,capHeight:B,className:Oe,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:B,diffuseConstant:B,direction:null,display:null,dur:null,divisor:B,dominantBaseline:null,download:de,dx:null,dy:null,edgeMode:null,editable:null,elevation:B,enableBackground:null,end:null,event:null,exponent:B,externalResourcesRequired:null,fill:null,fillOpacity:B,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:Oi,g2:Oi,glyphName:Oi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:B,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:B,horizOriginX:B,horizOriginY:B,id:null,ideographic:B,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:B,k:B,k1:B,k2:B,k3:B,k4:B,kernelMatrix:Bt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:B,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:B,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
vendor: 5,275 bytes, lines 329-330
329Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:B,overlineThickness:B,paintOrder:null,panose1:null,path:null,pathLength:B,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Oe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:B,pointsAtY:B,pointsAtZ:B,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Bt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Bt,rev:Bt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Bt,requiredFeatures:Bt,requiredFonts:Bt,requiredFormats:Bt,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:B,specularExponent:B,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:B,strikethroughThickness:B,string:null,stroke:null,strokeDashArray:Bt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:B,strokeOpacity:B,strokeWidth:null,style:null,surfaceScale:B,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Bt,tabIndex:B,tableValues:null,target:null,targetX:B,targetY:B,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Bt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:B,underlineThickness:B,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:B,values:null,vAlphabetic:B,vMathematical:B,vectorEffect:null,vHanging:B,vIdeographic:B,version:null,vertAdvY:B,vertOriginX:B,vertOriginY:B,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:B,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Vk}),Zk=uo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),qk=uo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Uk}),Wk=uo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),T8={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"},E8=/[A-Z]/g,xv=/-[a-z]/g,C8=/^data[-\w.:]+$/i;function A8(e,t){const n=Hf(t);let r=t,i=zt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&C8.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(xv,P8);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!xv.test(o)){let a=o.replace(E8,M8);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=Gh}return new i(r,t)}function M8(e){return"-"+e.toLowerCase()}function P8(e){return e.charAt(1).toUpperCase()}const I8=jk([Bk,S8,Zk,qk,Wk],"html"),Yh=jk([Bk,_8,Zk,qk,Wk],"svg");function $8(e){return e.join(" ").trim()}var Kh={},kv=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,R8=/\n/g,O8=/^\s*/,D8=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,N8=/^:\s*/,L8=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,z8=/^[;\s]*/,F8=/^\s+|\s+$/g,j8=` 330`,Sv="/",_v="*",Fr="",B8="comment",V8="declaration";function U8(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(p){var m=p.match(R8);m&&(n+=m.length);var g=p.lastIndexOf(j8);r=~g?p.length-g:r+p.length}function o(){var p={line:n,column:r};return function(m){return m.position=new a(p),u(),m}}function a(p){this.start=p,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(p){var m=new Error(t.source+":"+n+":"+r+": "+p);if(m.reason=p,m.filename=t.source,m.line=n,m.column=r,m.source=e,!t.silent)throw m}function l(p){var m=p.exec(e);if(m){var g=m[0];return i(g),e=e.slice(g.length),m}}function u(){l(O8)}function f(p){var m;for(p=p||[];m=c();)m!==!1&&p.push(m);return p}function c(){var p=o();if(!(Sv!=e.charAt(0)||_v!=e.charAt(1))){for(var m=2;Fr!=e.charAt(m)&&(_v!=e.charAt(m)||Sv!=e.charAt(m+1));)++m;if(m+=2,Fr===e.charAt(m-1))return s("End of comment missing");var g=e.slice(2,m-2);return r+=2,i(g),e=e.slice(m),r+=2,p({type:B8,comment:g})}}function h(){var p=o(),m=l(D8);if(m){if(c(),!l(N8))return s("property missing ':'");var g=l(L8),y=p({type:V8,property:Tv(m[0].replace(kv,Fr)),value:g?Tv(g[0].replace(kv,Fr)):Fr});return l(z8),y}}function d(){var p=[];f(p);for(var m;m=h();)m!==!1&&(p.push(m),f(p));return p}return u(),d()}function Tv(e){return e?e.replace(F8,Fr):Fr}var Z8=U8,q8=pr&&pr.__importDefault||function(e){return e&&e.__esMo
vendor: 3,641 bytes, line 330
330dule?e:{default:e}};Object.defineProperty(Kh,"__esModule",{value:!0});Kh.default=H8;const W8=q8(Z8);function H8(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,W8.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:a,value:s}=o;i?t(a,s,o):s&&(n=n||{},n[a]=s)}),n}var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.camelCase=void 0;var G8=/^--[a-zA-Z0-9_-]+$/,Y8=/-([a-z])/g,K8=/^[^-]+$/,X8=/^-(webkit|moz|ms|o|khtml)-/,J8=/^-(ms)-/,Q8=function(e){return!e||K8.test(e)||G8.test(e)},eW=function(e,t){return t.toUpperCase()},Ev=function(e,t){return"".concat(t,"-")},tW=function(e,t){return t===void 0&&(t={}),Q8(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(J8,Ev):e=e.replace(X8,Ev),e.replace(Y8,eW))};fu.camelCase=tW;var nW=pr&&pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},rW=nW(Kh),iW=fu;function Kf(e,t){var n={};return!e||typeof e!="string"||(0,rW.default)(e,function(r,i){r&&i&&(n[(0,iW.camelCase)(r,t)]=i)}),n}Kf.default=Kf;var oW=Kf;const aW=Ee(oW),Hk=Gk("end"),Xh=Gk("start");function Gk(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function sW(e){const t=Xh(e),n=Hk(e);if(t&&n)return{start:t,end:n}}function Zo(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Cv(e.position):"start"in e||"end"in e?Cv(e):"line"in e||"column"in e?Xf(e):""}function Xf(e){return Av(e&&e.line)+":"+Av(e&&e.column)}function Cv(e){return Xf(e&&e.start)+"-"+Xf(e&&e.end)}function Av(e){return e&&typeof e=="number"?e:1}class bt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},a=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Zo(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}bt.prototype.file="";bt.prototype.name="";bt.prototype.reason="";bt.prototype.message="";bt.prototype.stack="";bt.prototype.column=void 0;bt.prototype.line=void 0;bt.prototype.ancestors=void 0;bt.prototype.cause=void 0;bt.prototype.fatal=void 0;bt.prototype.place=void 0;bt.prototype.ruleId=void 0;bt.prototype.source=void 0;const Jh={}.hasOwnProperty,lW=new Map,uW=/[A-Z]/g,cW=new Set(["table","tbody","thead","tfoot","tr"]),fW=new Set(["td","th"]),Yk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dW(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=wW(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");
vendor: 6,302 bytes, line 330
330if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=bW(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Yh:I8,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Kk(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Kk(e,t,n){if(t.type==="element")return hW(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return pW(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return gW(e,t,n);if(t.type==="mdxjsEsm")return mW(e,t);if(t.type==="root")return yW(e,t,n);if(t.type==="text")return vW(e,t)}function hW(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Yh,e.schema=i),e.ancestors.push(t);const o=Jk(e,t.tagName,!1),a=xW(e,t);let s=ep(e,t);return cW.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!x8(l):!0})),Xk(e,a,o,t),Qh(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function pW(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}pa(e,t.position)}function mW(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);pa(e,t.position)}function gW(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Yh,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Jk(e,t.name,!0),a=kW(e,t),s=ep(e,t);return Xk(e,a,o,t),Qh(a,s),e.ancestors.pop(),e.schema=r,e.create(t,o,a,n)}function yW(e,t,n){const r={};return Qh(r,ep(e,t)),e.create(t,e.Fragment,r,n)}function vW(e,t){return t.value}function Xk(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Qh(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function bW(e,t,n){return r;function r(i,o,a,s){const u=Array.isArray(a.children)?n:t;return s?u(o,a,s):u(o,a)}}function wW(e,t){return n;function n(r,i,o,a){const s=Array.isArray(o.children),l=Xh(r);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function xW(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Jh.call(t.properties,i)){const o=SW(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&fW.has(t.tagName)?r=s:n[a]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function kW(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else pa(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else pa(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function ep(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:lW;for(;++r<t.children.length;){const o=t.children[r];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=i.get(l)||0;a=l+"-"+u,i.set(l,u+1)}}const s=Kk(e,o,a);s!==void 0&&n.push(s)}return n}function SW(e,t,n){const r=A8(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?g8(n):$8(n)),r.property==="style"){let i=typeof n=="object"?n:_W(e,String(n));return e.stylePropertyNameCase==="css"&&(i=TW(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?T8[r.property]||r.property:r.attribute,n]}}function _W(e,t){try{return aW(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Yk+"#cannot-parse-style-attribute",i}}function Jk(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=vv(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=a}else r=vv(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Jh.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);pa(e)}function pa(e,t){const n=new bt("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=Yk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function TW(e){const t={};let n;for(n in e)Jh.call(e,n)&&(t[EW(n)]=e[n]);return t}function EW(e){let t=e.replace(uW,CW);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function CW(e){return"-"+e.toLowerCase()}const bc={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"]},AW={};function tp(e,t){const n=AW,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Qk(e,r,i)}function Qk(e,t,n){if(MW(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mv(e.children,t,n)}return Array.isArray(e)?Mv(e,t,n):""}function Mv(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qk(e[i],t,n);return r.join("")}function MW(e){return!!(e&&typeof e=="object")}const Pv=document.createElement("i");function np(e){const t="&"+e+";";Pv.innerHTML=t;const n=Pv.textContent;
vendor: 10,880 bytes, line 330
330return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Wt(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function tn(e,t){return e.length>0?(Wt(e,e.length,0,t),e):t}const Iv={}.hasOwnProperty;function eS(e){const t={};let n=-1;for(;++n<e.length;)PW(t,e[n]);return t}function PW(e,t){let n;for(n in t){const i=(Iv.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){Iv.call(i,a)||(i[a]=[]);const s=o[a];IW(i[a],Array.isArray(s)?s:s?[s]:[])}}}function IW(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Wt(e,0,0,r)}function tS(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function vn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Tt=Ir(/[A-Za-z]/),vt=Ir(/[\dA-Za-z]/),$W=Ir(/[#-'*+\--9=?A-Z^-~]/);function gl(e){return e!==null&&(e<32||e===127)}const Jf=Ir(/\d/),RW=Ir(/[\dA-Fa-f]/),OW=Ir(/[!-/:-@[-`{-~]/);function ie(e){return e!==null&&e<-2}function Ie(e){return e!==null&&(e<0||e===32)}function ye(e){return e===-2||e===-1||e===32}const du=Ir(new RegExp("\\p{P}|\\p{S}","u")),Jr=Ir(/\s/);function Ir(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function co(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&vt(e.charCodeAt(n+1))&&vt(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function be(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return ye(l)?(e.enter(n),s(l)):t(l)}function s(l){return ye(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const DW={tokenize:NW};function NW(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),be(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return ie(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const LW={tokenize:zW},$v={tokenize:FW};function zW(e){const t=this,n=[];let r=0,i,o,a;return s;function s(v){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,l,u)(v)}return u(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();const S=t.events.length;let k=S,w;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){w=t.events[k][1].end;break}y(r);let C=S;for(;C<t.events.length;)t.events[C][1].end={...w},C++;return Wt(t.events,k+1,0,t.events.slice(S)),t.events.length=C,u(v)}return s(v)}function u(v){if(r===n.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return p(v);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check($v,f,c)(v)}function f(v){return i&&b(),y(r),h(v)}function c(v){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,p(v)}function h(v){return t.containerState={},e.attempt($v,d,p)(v)}function d(v){return r++,n.push([t.currentConstruct,t.containerState]),h(v)}function p(v){if(v===null){i&&b(),y(0),e.consume(v);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),m(v)}function m(v){if(v===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(v);return}return ie(v)?(e.consume(v),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(v),m)}function g(v,S){const k=t.sliceStream(v);if(S&&k.push(null),v.previous=o,o&&(o.next=v),o=v,i.defineSkip(v.start),i.write(k),t.parser.lazy[v.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const C=t.events.length;let A=C,R,E;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){if(R){E=t.events[A][1].end;break}R=!0}for(y(r),w=C;w<t.events.length;)t.events[w][1].end={...E},w++;Wt(t.events,A+1,0,t.events.slice(C)),t.events.length=w}}function y(v){let S=n.length;for(;S-- >v;){const k=n[S];t.containerState=k[1],k[0].exit.call(t,e)}n.length=v}function b(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function FW(e,t,n){return be(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Vi(e){if(e===null||Ie(e)||Jr(e))return 1;if(du(e))return 2}function hu(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const Qf={name:"attention",resolveAll:jW,tokenize:BW};function jW(e,t){let n=-1,r,i,o,a,s,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[n][1].start};Rv(c,-l),Rv(h,l),a={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[r][1].end={...a.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=tn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=tn(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=tn(u,hu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=tn(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=tn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Wt(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function BW(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Vi(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),f=Vi(l),c=!f||f===2&&i||n.includes(l),h=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),t(l)}}function Rv(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const VW={name:"autolink",tokenize:UW};function UW(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return Tt(d)?(e.consume(d),a):d===64?n(d):u(d)}function a(d){return d===43||d===45||d===46||vt(d)?(r=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),r=0,l):(d===43||d===45||d===46||vt(d))&&r++<32?(e.consume(d),s):(r=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||gl(d)?n(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),f):$W(d)?(e.consume(d),u):n(d)}function f(d){return vt(d)?c(d):n(d)}function c(d){return d===46?(e.consume(d),r=0,f):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):h(d)}function h(d){if((d===45||vt(d))&&r++<63){const p=d===45?h:c;return e.consume(d),p}return n(d)}}const La={partial:!0,tokenize:ZW};function ZW(e,t,n){return r;function r(o){return ye(o)?be(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||ie(o)?t(o):n(o)}}const nS={continuation:{tokenize:WW},exit:HW,name:"blockQuote",tokenize:qW};function qW(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return ye(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function WW(e,t,n){const r=this;return i;function i(a){return ye(a)?be(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(nS,t,n)(a)}}function HW(e){e.exit("blockQuote")}const rS={name:"characterEscape",tokenize:GW};function GW(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return OW(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const iS={name:"characterReference",tokenize:YW};function YW(e,t,n){const r=this;let i=0,o,a;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=vt,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=RW,f):(e.enter("characterReferenceValue"),o=7,a=Jf,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return a===vt&&!np(r.sliceSerialize(h))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(c)&&i++<o?(e.consume(c),f):n(c)}}const Ov={partial:!0,tokenize:XW},Dv={concrete:!0,name:"codeFenced",tokenize:KW};function KW(e,t,n){const r=this,i={partial:!0,tokenize:k};let o=0,a=0,s;return l;function l(w){return u(w)}function u(w){const C=r.events[r.events.length-1];return o=C&&C[1].type==="linePrefix"?C[2].sliceSerialize(C[1],!0).length:0,s=w,e.enter("co
330deFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===s?(a++,e.consume(w),f):a<3?n(w):(e.exit("codeFencedFenceSequence"),ye(w)?be(e,c,"whitespace")(w):c(w))}function c(w){return w===null||ie(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Ov,m,S)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):ye(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),be(e,d,"whitespace")(w)):w===96&&w===s?n(w):(e.consume(w),h)}function d(w){return w===null||ie(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||ie(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===s?n(w):(e.consume(w),p)}function m(w){return e.attempt(i,S,g)(w)}function g(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&ye(w)?be(e,b,"linePrefix",o+1)(w):b(w)}function b(w){return w===null||ie(w)?e.check(Ov,m,S)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||ie(w)?(e.exit("codeFlowValue"),b(w)):(e.consume(w),v)}function S(w){return e.exit("codeFenced"),t(w)}function k(w,C,A){let R=0;return E;function E(W){return w.enter("lineEnding"),w.consume(W),w.exit("lineEnding"),M}function M(W){return w.enter("codeFencedFence"),ye(W)?be(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):P(W)}function P(W){return W===s?(w.enter("codeFencedFenceSequence"),V(W)):A(W)}function V(W){return W===s?(R++,w.consume(W),V):R>=a?(w.exit("codeFencedFenceSequence"),ye(W)?be(w,j,"whitespace")(W):j(W)):A(W)}function j(W){return W===null||ie(W)?(w.exit("codeFencedFence"),C(W)):A(W)}}}function XW(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const wc={name:"codeIndented",tokenize:QW},JW={partial:!0,tokenize:eH};function QW(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),be(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):ie(u)?e.attempt(JW,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||ie(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function eH(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):be(e,o,"linePrefix",5)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):ie(a)?i(a):n(a)}}const tH={name:"codeText",previous:rH,resolve:nH,tokenize:iH};function nH(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function rH(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function iH(e,t,n){let r=0,i,o;return a;function a(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):ie(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||ie(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(o.type="codeTextData",u(c))}}class oH{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Co(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Co(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Co(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Co(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Co(this.left,n.reverse())}}}function Co(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 oS(e){const t={};let n=-1,r,i,o,a,s,l,u;const f=new oH(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,aH(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return Wt(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function aH(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let a=n._tokenizer;a||(a=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],u={};let f,c,h=-1,d=n,p=0,m=0;const g=[m];for(;d;){for(;e.get(++i)[1]!==d;);
vendor: 19,336 bytes, line 330
330o.push(i),d._tokenizer||(f=r.sliceStream(d),d.next||f.push(null),c&&a.defineSkip(d.start),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),d._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),c=d,d=d.next}for(d=n;++h<s.length;)s[h][0]==="exit"&&s[h-1][0]==="enter"&&s[h][1].type===s[h-1][1].type&&s[h][1].start.line!==s[h][1].end.line&&(m=h+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(a.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),h=g.length;h--;){const y=s.slice(g[h],g[h+1]),b=o.pop();l.push([b,b+y.length-1]),e.splice(b,2,y)}for(l.reverse(),h=-1;++h<l.length;)u[p+l[h][0]]=p+l[h][1],p+=l[h][1]-l[h][0]-1;return u}const sH={resolve:uH,tokenize:cH},lH={partial:!0,tokenize:fH};function uH(e){return oS(e),e}function cH(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):ie(s)?e.check(lH,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function fH(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),be(e,o,"linePrefix")}function o(a){if(a===null||ie(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function aS(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),h):y===null||y===32||y===41||gl(y)?n(y):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),m(y))}function h(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(s),h(y)):y===null||y===60||ie(y)?n(y):(e.consume(y),y===92?p:d)}function p(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function m(y){return!f&&(y===null||y===41||Ie(y))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,m):y===41?(e.consume(y),f--,m):y===null||y===32||y===40||gl(y)?n(y):(e.consume(y),y===92?g:m)}function g(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function sS(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),f}function f(d){return s>999||d===null||d===91||d===93&&!l||d===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):ie(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===null||d===91||d===93||ie(d)||s++>999?(e.exit("chunkString"),f(d)):(e.consume(d),l||(l=!ye(d)),d===92?h:c)}function h(d){return d===91||d===92||d===93?(e.consume(d),s++,c):c(d)}}function lS(e,t,n,r,i,o){let a;return s;function s(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),a=h===40?41:h,l):n(h)}function l(h){return h===a?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===a?(e.exit(o),l(a)):h===null?n(h):ie(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),be(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===a||h===null||ie(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===a||h===92?(e.consume(h),f):f(h)}}function qo(e,t){let n;return r;function r(i){return ie(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):ye(i)?be(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const dH={name:"definition",tokenize:pH},hH={partial:!0,tokenize:mH};function pH(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),a(d)}function a(d){return sS.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):n(d)}function l(d){return Ie(d)?qo(e,u)(d):u(d)}function u(d){return aS(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function f(d){return e.attempt(hH,c,c)(d)}function c(d){return ye(d)?be(e,h,"whitespace")(d):h(d)}function h(d){return d===null||ie(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function mH(e,t,n){return r;function r(s){return Ie(s)?qo(e,i)(s):n(s)}function i(s){return lS(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return ye(s)?be(e,a,"whitespace")(s):a(s)}function a(s){return s===null||ie(s)?t(s):n(s)}}const gH={name:"hardBreakEscape",tokenize:yH};function yH(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return ie(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const vH={name:"headingAtx",resolve:bH,tokenize:wH};function bH(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Wt(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function wH(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||Ie(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ie(f)?(e.exit("atxHeading"),t(f)):ye(f)?be(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||Ie(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const xH=["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"],Nv=["pre","script","style","textarea"],kH={concrete:!0,name:"htmlFlow",resolveTo:TH,tokenize:EH},SH={partial:!0,tokenize:AH},_H={partial:!0,tokenize:CH};function TH(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(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}function EH(e,t,n){const r=this;let i,o,a,s,l;return u;function u(_){return f(_)}function f(_){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(_),c}function c(_){return _===33?(e.consume(_),h):_===47?(e.consume(_),o=!0,m):_===63?(e.consume(_),i=3,r.interrupt?t:T):Tt(_)?(e.consume(_),a=String.fromCharCode(_),g):n(_)}function h(_){return _===45?(e.consume(_),i=2,d):_===91?(e.consume(_),i=5,s=0,p):Tt(_)?(e.consume(_),i=4,r.interrupt?t:T):n(_)}function d(_){return _===45?(e.consume(_),r.interrupt?t:T):n(_)}function p(_){const H="CDATA[";return _===H.charCodeAt(s++)?(e.consume(_),s===H.length?r.interrupt?t:P:p):n(_)}function m(_){return Tt(_)?(e.consume(_),a=String.fromCharCode(_),g):n(_)}function g(_){if(_===null||_===47||_===62||Ie(_)){const H=_===47,q=a.toLowerCase();return!H&&!o&&Nv.includes(q)?(i=1,r.interrupt?t(_):P(_)):xH.includes(a.toLowerCase())?(i=6,H?(e.consume(_),y):r.interrupt?t(_):P(_)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(_):o?b(_):v(_))}return _===45||vt(_)?(e.consume(_),a+=String.fromCharCode(_),g):n(_)}function y(_){return _===62?(e.consume(_),r.interrupt?t:P):n(_)}function b(_){return ye(_)?(e.consume(_),b):E(_)}function v(_){return _===47?(e.consume(_),E):_===58||_===95||Tt(_)?(e.consume(_),S):ye(_)?(e.consume(_),v):E(_)}function S(_){return _===45||_===46||_===58||_===95||vt(_)?(e.consume(_),S):k(_)}function k(_){return _===61?(e.consume(_),w):ye(_)?(e.consume(_),k):v(_)}function w(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,C):ye(_)?(e.consume(_),w):A(_)}function C(_){return _===l?(e.consume(_),l=null,R):_===null||ie(_)?n(_):(e.consume(_),C)}function A(_){return _===null||_===34||_===39||_===47||_===60||_===61||_===62||_===96||Ie(_)?k(_):(e.consume(_),A)}function R(_){return _===47||_===62||ye(_)?v(_):n(_)}function E(_){return _===62?(e.consume(_),M):n(_)}function M(_){return _===null||ie(_)?P(_):ye(_)?(e.consume(_),M):n(_)}function P(_){return _===45&&i===2?(e.consume(_),G):_===60&&i===1?(e.consume(_),Y):_===62&&i===4?(e.consume(_),he):_===63&&i===3?(e.consume(_),T):_===93&&i===5?(e.consume(_),N):ie(_)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(SH,I,V)(_)):_===null||ie(_)?(e.exit("htmlFlowData"),V(_)):(e.consume(_),P)}function V(_){return e.check(_H,j,I)(_)}function j(_){return e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),W}function W(_){return _===null||ie(_)?V(_):(e.enter("htmlFlowData"),P(_))}function G(_){return _===45?(e.consume(_),T):P(_)}function Y(_){return _===47?(e.consume(_),a="",U):P(_)}function U(_){if(_===62){const H=a.toLowerCase();return Nv.includes(H)?(e.consume(_),he):P(_)}return Tt(_)&&a.length<8?(e.consume(_),a+=String.fromCharCode(_),U):P(_)}function N(_){return _===93?(e.consume(_),T):P(_)}function T(_){return _===62?(e.consume(_),he):_===45&&i===2?(e.consume(_),T):P(_)}function he(_){return _===null||ie(_)?(e.exit("htmlFlowData"),I(_)):(e.consume(_),he)}function I(_){return e.exit("htmlFlow"),t(_)}}function CH(e,t,n){const r=this;return i;function i(a){return ie(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function AH(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(La,t,n)}}const MH={name:"htmlText",tokenize:PH};function PH(e,t,n){const r=this;let i,o,a;return s;function s(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),l}function l(T){return T===33?(e.consume(T),u):T===47?(e.consume(T),k):T===63?(e.consume(T),v):Tt(T)?(e.consume(T),A):n(T)}function u(T){return T===45?(e.consume(T),f):T===91?(e.consume(T),o=0,p):Tt(T)?(e.consume(T),b):n(T)}function f(T){return T===45?(e.consume(T),d):n(T)}function c(T){return T===null?n(T):T===45?(e.consume(T),h):ie(T)?(a=c,Y(T)):(e.consume(T),c)}function h(T){return T===45?(e.consume(T),d):c(T)}function d(T){return T===62?G(T):T===45?h(T):c(T)}function p(T){const he="CDATA[";return T===he.charCodeAt(o++)?(e.consume(T),o===he.length?m:p):n(T)}function m(T){return T===null?n(T):T===93?(e.consume(T),g):ie(T)?(a=m,Y(T)):(e.consume(T),m)}function g(T){return T===93?(e.consume(T),y):m(T)}function y(T){return T===62?G(T):T===93?(e.consume(T),y):m(T)}function b(T){return T===null||T===62?G(T):ie(T)?(a=b,Y(T)):(e.consume(T),b)}function v(T){return T===null?n(T):T===63?(e.consume(T),S):ie(T)?(a=v,Y(T)):(e.consume(T),v)}function S(T){return T===62?G(T):v(T)}function k(T){return Tt(T)?(e.consume(T),w):n(T)}function w(T){return T===45||vt(T)?(e.consume(T),w):C(T)}function C(T){return ie(T)?(a=C,Y(T)):ye(T)?(e.consume(T),C):G(T)}function A(T){return T===45||vt(T)?(e.consume(T),A):T===47||T===62||Ie(T)?R(T):n(T)}function R(T){return T===47?(e.consume(T),G):T===58||T===95||Tt(T)?(e.consume(T),E):ie(T)?(a=R,Y(T)):ye(T)?(e.consume(T),R):G(T)}function E(T){return T===45||T===46||T===58||T===95||vt(T)?(e.consume(T),E):M(T)}function M(T){return T===61?(e.consume(T),P):ie(T)?(a=M,Y(T)):ye(T)?(e.consume(T),M):R(T)}function P(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),i=T,V):ie(T)?(a=P,Y(T)):ye(T)?(e.consume(T),P):(e.consume(T),j)}function V(T){return T===i?(e.consume(T),i=void 0,W):T===null?n(T):ie(T)?(a=V,Y(T)):(e.consume(T),V)}function j(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||Ie(T)?R(T):(e.consume(T),j)}function W(T){return T===47||T===62||Ie(T)?R(T):n(T)}function G(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function Y(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),U}function U(T){return ye(T)?be(e,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):N(T)}function N(T){return e.enter("htmlTextData"),a(T)}}const rp={name:"labelEnd",resolveAll:OH,resolveTo:DH,tokenize:NH},IH={tokenize:LH},$H={tokenize:zH},RH={tokenize:FH};function OH(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Wt(e,0,e.length,n),e}function DH(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=tn(s,e.slice(o+1,o+r+3)),s=tn(s,[["enter",f,t]]),s=tn(s,hu(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=tn(s,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),s=tn(s,e.slice(a+1)),s=tn(s,[["exit",l,t]]),Wt(e,o,e.length,s),e}function NH(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(h){return o?o._inactive?c(h):(a=r.parser.defined.includes(vn(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),l):n(h)}function l(h){return h===40?e.attempt(IH,f,a?f:c)(h):h===91?e.attempt($H,f,a?u:c)(h):a?f(h):c(h)}function u(h){return e.attempt(RH,f,c)(h)}function f(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function LH(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return Ie(c)?qo(e,o)(c):o(c)}function o(c){return c===41?f(c):aS(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function a(c){return Ie(c)?qo(e,l)(c):f(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?lS(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Ie(c)?qo(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function zH(e,t,n){const r=this;return i;function i(s){return sS.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(vn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function FH(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const jH={name:"labelStartImage",resolveAll:rp.resolveAll,tokenize:BH};function BH(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const VH={name:"labelStartLink",resolveAll:rp.resolveAll,tokenize:UH};function UH(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const xc={name:"lineEnding",tokenize:ZH};function ZH(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),be(e,t,"linePrefix")}}const Es={name:"thematicBreak",tokenize:qH};function qH(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ie(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),ye(u)?be(e,s,"whitespace")(u):s(u))}}const Ot={continuation:{tokenize:YH},exit:XH,name:"list",tokenize:GH},WH={partial:!0,tokenize:JH},HH={partial:!0,tokenize:KH};function GH(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(d){const p=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Jf(d)){if(r.containerState.type||(r.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(Es,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return n(d)}function l(d){return Jf(d)&&++a<10?(e.consume(d),l):(!r.interrupt||a<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(La,r.interrupt?n:f,e.attempt(WH,h,c))}function f(d){return r.containerState.initialBlankLine=!0,o++,h(d)}function c(d){return ye(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),h):n(d)}function h(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function YH(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(La,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,be(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!ye(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
vendor: 4,660 bytes, line 330
330=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(HH,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,be(e,e.attempt(Ot,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function KH(e,t,n){const r=this;return be(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function XH(e){e.exit(this.containerState.type)}function JH(e,t,n){const r=this;return be(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=r.events[r.events.length-1];return!ye(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Lv={name:"setextUnderline",resolveTo:QH,tokenize:eG};function QH(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=a,e.push(["exit",a,t]),e}function eG(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),ye(u)?be(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ie(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const tG={tokenize:nG};function nG(e){const t=this,n=e.attempt(La,r,e.attempt(this.parser.constructs.flowInitial,i,be(e,e.attempt(this.parser.constructs.flow,i,e.attempt(sH,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const rG={resolveAll:cS()},iG=uS("string"),oG=uS("text");function uS(e){return{resolveAll:cS(e==="text"?aG:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(f){return u(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const d=c[h];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function cS(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function aG(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:r.start._bufferIndex+a,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const sG={42:Ot,43:Ot,45:Ot,48:Ot,49:Ot,50:Ot,51:Ot,52:Ot,53:Ot,54:Ot,55:Ot,56:Ot,57:Ot,62:nS},lG={91:dH},uG={[-2]:wc,[-1]:wc,32:wc},cG={35:vH,42:Es,45:[Lv,Es],60:kH,61:Lv,95:Es,96:Dv,126:Dv},fG={38:iS,92:rS},dG={[-5]:xc,[-4]:xc,[-3]:xc,33:jH,38:iS,42:Qf,60:[VW,MH],91:VH,92:[gH,rS],93:rp,95:Qf,96:tH},hG={null:[Qf,rG]},pG={null:[42,95]},mG={null:[]},gG=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:pG,contentInitial:lG,disable:mG,document:sG,flow:cG,flowInitial:uG,insideSpan:hG,string:fG,text:dG},Symbol.toStringTag,{value:"Module"}));function yG(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
vendor: 14,575 bytes, lines 330-332
330olumn:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:C(k),check:C(w),consume:b,enter:v,exit:S,interrupt:C(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:h,sliceStream:d,write:c};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function c(M){return a=tn(a,M),g(),a[a.length-1]!==null?[]:(A(t,0),u.events=hu(o,u.events,u),u.events)}function h(M,P){return bG(d(M),P)}function d(M){return vG(a,M)}function p(){const{_bufferIndex:M,_index:P,line:V,column:j,offset:W}=r;return{_bufferIndex:M,_index:P,line:V,column:j,offset:W}}function m(M){i[M.line]=M.column,E()}function g(){let M;for(;r._index<a.length;){const P=a[r._index];if(typeof P=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(M){f=f(M)}function b(M){ie(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,E()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function v(M,P){const V=P||{};return V.type=M,V.start=p(),u.events.push(["enter",V,u]),s.push(V),V}function S(M){const P=s.pop();return P.end=p(),u.events.push(["exit",P,u]),P}function k(M,P){A(M,P.from)}function w(M,P){P.restore()}function C(M,P){return V;function V(j,W,G){let Y,U,N,T;return Array.isArray(j)?I(j):"tokenize"in j?I([j]):he(j);function he(K){return te;function te(xe){const z=xe!==null&&K[xe],J=xe!==null&&K.null,se=[...Array.isArray(z)?z:z?[z]:[],...Array.isArray(J)?J:J?[J]:[]];return I(se)(xe)}}function I(K){return Y=K,U=0,K.length===0?G:_(K[U])}function _(K){return te;function te(xe){return T=R(),N=K,K.partial||(u.currentConstruct=K),K.name&&u.parser.constructs.disable.null.includes(K.name)?q():K.tokenize.call(P?Object.assign(Object.create(u),P):u,l,H,q)(xe)}}function H(K){return M(N,T),W}function q(K){return T.restore(),++U<Y.length?_(Y[U]):G}}}function A(M,P){M.resolveAll&&!o.includes(M)&&o.push(M),M.resolve&&Wt(u.events,P,u.events.length-P,M.resolve(u.events.slice(P),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function R(){const M=p(),P=u.previous,V=u.currentConstruct,j=u.events.length,W=Array.from(s);return{from:j,restore:G};function G(){r=M,u.previous=P,u.currentConstruct=V,u.events.length=j,s=W,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vG(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function bG(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=` 331`;break}case-3:{a=`\r 332`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}function wG(e){const r={constructs:eS([gG,...(e||{}).extensions||[]]),content:i(DW),defined:[],document:i(LW),flow:i(tG),lazy:{},string:i(iG),text:i(oG)};return r;function i(o){return a;function a(s){return yG(r,o,s)}}}function xG(e){for(;!oS(e););return e}const zv=/[\0\t\n\r]/g;function kG(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,c,h,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(zv.lastIndex=c,u=zv.exec(o),h=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(h),!u){t=o.slice(c);break}if(d===10&&c===h&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<h&&(l.push(o.slice(c,h)),e+=h-c),d){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const SG=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function _G(e){return e.replace(SG,TG)}function TG(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return tS(n.slice(o?2:1),o?16:10)}return np(n)||e}const fS={}.hasOwnProperty;function EG(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),CG(n)(xG(wG(n).document().write(kG()(e,t,!0))))}function CG(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(rr),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(We),blockQuote:o(J),characterEscape:R,characterReference:R,codeFenced:o(se),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(se,a),codeText:o(D,a),codeTextData:R,data:R,codeFlowValue:R,definition:o(Ye),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(pe),hardBreakEscape:o($e),hardBreakTrailing:o($e),htmlFlow:o(wt,a),htmlFlowData:R,htmlText:o(wt,a),htmlTextData:R,image:o(un),label:a,link:o(rr),listItem:o(Gt),listItemValue:h,listOrdered:o(It,c),listUnordered:o(It),paragraph:o(Vn),reference:_,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(We),strong:o(Yt),thematicBreak:o(ho)},exit:{atxHeading:l(),atxHeadingSequence:k,autolink:l(),autolinkEmail:z,autolinkProtocol:xe,blockQuote:l(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:q,characterReferenceMarkerNumeric:q,characterReferenceValue:K,characterReference:te,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:E,codeIndented:l(y),codeText:l(W),codeTextData:E,data:E,definition:l(),definitionDestinationString:S,definitionLabelString:b,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(P),hardBreakTrailing:l(P),htmlFlow:l(V),htmlFlowData:E,htmlText:l(j),htmlTextData:E,image:l(Y),label:N,labelText:U,lineEnding:M,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:T,resourceTitleString:he,resource:I,setextHeading:l(A),setextHeadingLineSequence:C,setextHeadingText:w,strong:l(),thematicBreak:l()}};dS(t,(e||{}).mdastExtensions||[]);const n={};return r;function r($){let F={type:"root",children:[]};const ne={stack:[F],tokenStack:[],config:t,enter:s,exit:u,buffer:a,resume:f,data:n},le=[];let ve=-1;for(;++ve<$.length;)if($[ve][1].type==="listOrdered"||$[ve][1].type==="listUnordered")if($[ve][0]==="enter")le.push(ve);else{const Ke=le.pop();ve=i($,Ke,ve)}for(ve=-1;++ve<$.length;){const Ke=t[$[ve][0]];fS.call(Ke,$[ve][1].type)&&Ke[$[ve][1].type].call(Object.assign({sliceSerialize:$[ve][2].sliceSerialize},ne),$[ve][1])}if(ne.tokenStack.length>0){const Ke=ne.tokenStack[ne.tokenStack.length-1];(Ke[1]||Fv).call(ne,void 0,Ke[0])}for(F.position={start:sr($.length>0?$[0][1].start:{line:1,column:1,offset:0}),end:sr($.length>0?$[$.length-2][1].end:{line:1,column:1,offset:0})},ve=-1;++ve<t.transforms.length;)F=t.transforms[ve](F)||F;return F}function i($,F,ne){let le=F-1,ve=-1,Ke=!1,jt,xt,$t,Kt;for(;++le<=ne;){const He=$[le];switch(He[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{He[0]==="enter"?ve++:ve--,Kt=void 0;break}case"lineEndingBlank":{He[0]==="enter"&&(jt&&!Kt&&!ve&&!$t&&($t=le),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!ve&&He[0]==="enter"&&He[1].type==="listItemPrefix"||ve===-1&&He[0]==="exit"&&(He[1].type==="listUnordered"||He[1].type==="listOrdered")){if(jt){let Sn=le;for(xt=void 0;Sn--;){const Rt=$[Sn];if(Rt[1].type==="lineEnding"||Rt[1].type==="lineEndingBlank"){if(Rt[0]==="exit")continue;xt&&($[xt][1].type="lineEndingBlank",Ke=!0),Rt[1].type="lineEnding",xt=Sn}else if(!(Rt[1].type==="linePrefix"||Rt[1].type==="blockQuotePrefix"||Rt[1].type==="blockQuotePrefixWhitespace"||Rt[1].type==="blockQuoteMarker"||Rt[1].type==="listItemIndent"))break}$t&&(!xt||$t<xt)&&(jt._spread=!0),jt.end=Object.assign({},xt?$[xt][1].start:He[1].end),$.splice(xt||le,0,["exit",jt,He[2]]),le++,ne++}if(He[1].type==="listItemPrefix"){const Sn={type:"listItem",_spread:!1,start:Object.assign({},He[1].start),end:void 0};jt=Sn,$.splice(le,0,["enter",Sn,He[2]]),le++,ne++,$t=void 0,Kt=!0}}}return $[F][1]._spread=Ke,ne}function o($,F){return ne;function ne(le){s.call(this,$(le),le),F&&F.call(this,le)}}function a(){this.stack.push({type:"fragment",children:[]})}function s($,F,ne){this.stack[this.stack.length-1].children.push($),this.stack.push($),this.tokenStack.push([F,ne||void 0]),$.position={start:sr(F.start),end:void 0}}function l($){return F;function F(ne){$&&$.call(this,ne),u.call(this,ne)}}function u($,F){const ne=this.stack.pop(),le=this.tokenStack.pop();if(le)le[0].type!==$.type&&(F?F.call(this,$,le[0]):(le[1]||Fv).call(this,$,le[0]));else throw new Error("Cannot close `"+$.type+"` ("+Zo({start:$.start,end:$.end})+"): it’s not open");ne.position.end=sr($.end)}function f(){return tp(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h($){if(this.data.expectingFirstListItemValue){const F=this.stack[this.stack.length-2];F.start=Number.parseInt(this.sliceSerialize($),10),this.data.expectingFirstListItemValue=void 0}}function d(){const $=this.resume(),F=this.stack[this.stack.length-1];F.lang=$}function p(){const $=this.resume(),F=this.stack[this.stack.length-1];F.meta=$}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const $=this.resume(),F=this.stack[this.stack.length-1];F.value=$.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const $=this.resume(),F=this.stack[this.stack.length-1];F.value=$.replace(/(\r?\n|\r)$/g,"")}function b($){const F=this.resume(),ne=this.stack[this.stack.length-1];ne.label=F,ne.identifier=vn(this.sliceSerialize($)).toLowerCase()}function v(){const $=this.resume(),F=this.stack[this.stack.length-1];F.title=$}function S(){const $=this.resume(),F=this.stack[this.stack.length-1];F.url=$}function k($){const F=this.stack[this.stack.length-1];if(!F.depth){const ne=this.sliceSerialize($).length;F.depth=ne}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function C($){const F=this.stack[this.stack.length-1];F.depth=this.sliceSerialize($).codePointAt(0)===61?1:2}function A(){this.data.setextHeadingSlurpLineEnding=void 0}function R($){const ne=this.stack[this.stack.length-1].children;let le=ne[ne.length-1];(!le||le.type!=="text")&&(le=ai(),le.position={start:sr($.start),end:void 0},ne.push(le)),this.stack.push(le)}function E($){const F=this.stack.pop();F.value+=this.sliceSerialize($),F.position.end=sr($.end)}function M($){const F=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ne=F.children[F.children.length-1];ne.position.end=sr($.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(F.type)&&(R.call(this,$),E.call(this,$))}function P(){this.data.atHardBreak=!0}function V(){const $=this.resume(),F=this.stack[this.stack.length-1];F.value=$}function j(){const $=this.resume(),F=this.stack[this.stack.length-1];F.value=$}function W(){const $=this.resume(),F=this.stack[this.stack.length-1];F.value=$}function G(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=F,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function Y(){const $=this.stack[this.stack.length-1];if(this.data.inReference){const F=this.data.referenceType||"shortcut";$.type+="Reference",$.referenceType=F,delete $.url,delete $.title}else delete $.identifier,delete $.label;this.data.referenceType=void 0}function U($){const F=this.sliceSerialize($),ne=this.stack[this.stack.length-2];ne.label=_G(F),ne.identifier=vn(F).toLowerCase()}function N(){const $=this.stack[this.stack.length-1],F=this.resume(),ne=this.stack[this.stack.length-1];if(this.data.inReference=!0,ne.type==="link"){const le=$.children;ne.children=le}else ne.alt=F}function T(){const $=this.resume(),F=this.stack[this.stack.length-1];F.url=$}function he(){const $=this.resume(),F=this.stack[this.stack.length-1];F.title=$}function I(){this.data.inReference=void 0}function _(){this.data.referenceType="collapsed"}function H($){const F=this.resume(),ne=this.stack[this.stack.length-1];ne.label=F,ne.identifier=vn(this.sliceSerialize($)).toLowerCase(),this.data.referenceType="full"}function q($){this.data.characterReferenceType=$.type}function K($){const F=this.sliceSerialize($),ne=this.data.characterReferenceType;let le;ne?(le=tS(F,ne==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):le=np(F);const ve=this.stack[this.stack.length-1];ve.value+=le}function te($){const F=this.stack.pop();F.position.end=sr($.end)}function xe($){E.call(this,$);const F=this.stack[this.stack.length-1];F.url=this.sliceSerialize($)}function z($){E.call(this,$);const F=this.stack[this.stack.length-1];F.url="mailto:"+this.sliceSerialize($)}function J(){return{type:"blockquote",children:[]}}function se(){return{type:"code",lang:null,meta:null,value:""}}function D(){return{type:"inlineCode",value:""}}function Ye(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pe(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function wt(){return{type:"html",value:""}}function un(){return{type:"image",title:null,url:"",alt:null}}function rr(){return{type:"link",title:null,url:"",children:[]}}function It($){return{type:"list",ordered:$.type==="listOrdered",start:null,spread:$._spread,children:[]}}function Gt($){return{type:"listItem",spread:$._spread,checked:null,children:[]}}function Vn(){return{type:"paragraph",children:[]}}function Yt(){return{type:"strong",children:[]}}function ai(){return{type:"text",value:""}}function ho(){return{type:"thematicBreak"}}}function sr(e){return{line:e.line,column:e.column,offset:e.offset}}function dS(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?dS(e,r):AG(e,r)}}function AG(e,t){let n;for(n in t)if(fS.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Fv(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Zo({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Zo({start:t.start,end:t.end}
vendor: 9,730 bytes, lines 332-336
332)+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Zo({start:t.start,end:t.end})+") is still open")}function MG(e){const t=this;t.parser=n;function n(r){return EG(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function PG(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function IG(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 333`}]}function $G(e,t){const n=t.value?t.value+` 334`:"",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=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function RG(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function OG(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function DG(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=co(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let a,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function NG(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LG(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hS(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function zG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hS(e,t);const i={src:co(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function FG(e,t){const n={src:co(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function jG(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function BG(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hS(e,t);const i={href:co(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function VG(e,t){const n={href:co(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function UG(e,t,n){const r=e.all(t),i=n?ZG(n):pS(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:` 335`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:` 336`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function ZG(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=pS(n[r])}return t}function pS(e){const t=e.spread;return t??e.children.length>1}function qG(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function WG(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HG(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function GG(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function YG(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Xh(t.children[1]),l=Hk(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function KG(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const c=t.children[l],h={},d=a?a[l]:void 0;d&&(h.align=d);let p={type:"element",tagName:o,properties:h,children:[]};c&&(p.children=e.all(c),e.patch(c,p),p=e.applyData(c,p)),u.push(p)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function XG(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const jv=9,Bv=32;function JG(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Vv(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Vv(t.slice(i),i>0,!1)),o.join("")}function Vv(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===jv||o===Bv;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===jv||o===Bv;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function QG(e,t){const n={type:"text",value:JG(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function eY(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const tY={blockquote:PG,break:IG,code:$G,delete:RG,emphasis:OG,footnoteReference:DG,heading:NG,html:LG,imageReference:zG,image:FG,inlineCode:jG,linkReference:BG,link:VG,listItem:UG,list:qG,paragraph:WG,root:HG,strong:GG,table:YG,tableCell:XG,tableRow:KG,text:QG,thematicBreak:eY,toml:ss,yaml:ss,definition:ss,footnoteDefinition:ss};function ss(){}const mS=-1,pu=0,Wo=1,yl=2,ip=3,op=4,ap=5,sp=6,gS=7,yS=8,Uv=typeof self=="object"?self:globalThis,nY=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case pu:case mS:return n(a,i);case Wo:{const s=n([],i);for(const l of a)s.push(r(l));return s}case yl:{const s=n({},i);for(const[l,u]of a)s[r(l)]=r(u);return s}case ip:return n(new Date(a),i);case op:{const{source:s,flags:l}=a;return n(new RegExp(s,l),i)}case ap:{const s=n(new Map,i);for(const[l,u]of a)s.set(r(l),r(u));return s}case sp:{const s=n(new Set,i);for(const l of a)s.add(r(l));return s}case gS:{const{name:s,message:l}=a;return n(new Uv[s](l),i)}case yS:return n(BigInt(a),i);case"BigInt":return n(Object(BigInt(a)),i);case"ArrayBuffer":return n(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return n(new DataView(s),a)}}return n(new Uv[o](a),i)};return r},Zv=e=>nY(new Map,e)(0),di="",{toString:rY}={},{keys:iY}=Object,Ao=e=>{const t=typeof e;if(t!=="object"||!e)return[pu,t];const n=rY.call(e).slice(8,-1);switch(n){case"Array":return[Wo,di];case"Object":return[yl,di];case"Date":return[ip,di];case"RegExp":return[op,di];case"Map":return[ap,di];case"Set":return[sp,di];case"DataView":return[Wo,n]}return n.includes("Array")?[Wo,n]:n.includes("Error")?[gS,n]:[yl,n]},ls=([e,t])=>e===pu&&(t==="function"||t==="symbol"),oY=(e,t,n,r)=>{const i=(a,s)=>{const l=r.push(a)-1;return n.set(s,l),l},o=a=>{if(n.has(a))return n.get(a);let[s,l]=Ao(a);switch(s){case pu:{let f=a;switch(l){case"bigint":s=yS,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([mS],a)}return i([s,f],a)}case Wo:{if(l){let h=a;return l==="DataView"?h=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(h=new Uint8Array(a)),i([l,[...h]],a)}const f=[],c=i([s,f],a);for(const h of a)f.push(o(h));return c}case yl:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],c=i([s,f],a);
vendor: 23,593 bytes, lines 336-342
336for(const h of iY(a))(e||!ls(Ao(a[h])))&&f.push([o(h),o(a[h])]);return c}case ip:return i([s,a.toISOString()],a);case op:{const{source:f,flags:c}=a;return i([s,{source:f,flags:c}],a)}case ap:{const f=[],c=i([s,f],a);for(const[h,d]of a)(e||!(ls(Ao(h))||ls(Ao(d))))&&f.push([o(h),o(d)]);return c}case sp:{const f=[],c=i([s,f],a);for(const h of a)(e||!ls(Ao(h)))&&f.push(o(h));return c}}const{message:u}=a;return i([s,{name:l,message:u}],a)};return o},qv=(e,{json:t,lossy:n}={})=>{const r=[];return oY(!(t||n),!!t,new Map,r)(e),r},vl=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Zv(qv(e,t)):structuredClone(e):(e,t)=>Zv(qv(e,t));function aY(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function sY(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function lY(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||aY,r=e.options.footnoteBackLabel||sY,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=co(c.toLowerCase());let d=0;const p=[],m=e.footnoteCounts.get(c);for(;m!==void 0&&++d<=m;){p.length>0&&p.push({type:"text",value:" "});let b=typeof n=="string"?n:n(l,d);typeof b=="string"&&(b={type:"text",value:b}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,d),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const g=f[f.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const b=g.children[g.children.length-1];b&&b.type==="text"?b.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else f.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,y),s.push(y)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...vl(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 337`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` 338`}]}}const mu=function(e){if(e==null)return dY;if(typeof e=="function")return gu(e);if(typeof e=="object")return Array.isArray(e)?uY(e):cY(e);if(typeof e=="string")return fY(e);throw new Error("Expected function, string, or object as test")};function uY(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=mu(e[n]);return gu(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function cY(e){const t=e;return gu(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function fY(e){return gu(t);function t(n){return n&&n.type===e}}function gu(e){return t;function t(n,r,i){return!!(hY(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function dY(){return!0}function hY(e){return e!==null&&typeof e=="object"&&"type"in e}const vS=[],pY=!0,ed=!1,mY="skip";function bS(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=mu(i),a=r?-1:1;s(e,void 0,[])();function s(l,u,f){const c=l&&typeof l=="object"?l:{};if(typeof c.type=="string"){const d=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return h;function h(){let d=vS,p,m,g;if((!t||o(l,u,f[f.length-1]||void 0))&&(d=gY(n(l,f)),d[0]===ed))return d;if("children"in l&&l.children){const y=l;if(y.children&&d[0]!==mY)for(m=(r?y.children.length:-1)+a,g=f.concat(y);m>-1&&m<y.children.length;){const b=y.children[m];if(p=s(b,m,g)(),p[0]===ed)return p;m=typeof p[1]=="number"?p[1]:m+a}}return d}}}function gY(e){return Array.isArray(e)?e:typeof e=="number"?[pY,e]:e==null?vS:[e]}function lp(e,t,n,r){let i,o,a;typeof t=="function"&&typeof n!="function"?(o=void 0,a=t,i=n):(o=t,a=n,i=r),bS(e,o,s,i);function s(l,u){const f=u[u.length-1],c=f?f.children.indexOf(l):void 0;return a(l,c,f)}}const td={}.hasOwnProperty,yY={};function vY(e,t){const n=t||yY,r=new Map,i=new Map,o=new Map,a={...tY,...n.handlers},s={all:u,applyData:wY,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:n,patch:bY,wrap:kY};return lp(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),s;function l(f,c){const h=f.type,d=s.handlers[h];if(td.call(s.handlers,h)&&d)return d(s,f,c);if(s.options.passThrough&&s.options.passThrough.includes(h)){if("children"in f){const{children:m,...g}=f,y=vl(g);return y.children=s.all(f),y}return vl(f)}return(s.options.unknownHandler||xY)(s,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let d=-1;for(;++d<h.length;){const p=s.one(h[d],f);if(p){if(d&&h[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=Wv(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=Wv(m.value))}Array.isArray(p)?c.push(...p):c.push(p)}}}return c}}function bY(e,t){e.position&&(t.position=sW(e))}function wY(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const a="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:a}}n.type==="element"&&o&&Object.assign(n.properties,vl(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function xY(e,t){const n=t.data||{},r="value"in t&&!(td.call(n,"hProperties")||td.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)}function kY(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 339`});++r<e.length;)r&&n.push({type:"text",value:` 340`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 341`}),n}function Wv(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Hv(e,t){const n=vY(e,t),r=n.one(e,void 0),i=lY(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:` 342`},i),o}function SY(e,t){return e&&"run"in e?async function(n,r){const i=Hv(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Hv(n,{file:r,...e||t})}}function Gv(e){if(e)throw e}var Cs=Object.prototype.hasOwnProperty,wS=Object.prototype.toString,Yv=Object.defineProperty,Kv=Object.getOwnPropertyDescriptor,Xv=function(t){return typeof Array.isArray=="function"?Array.isArray(t):wS.call(t)==="[object Array]"},Jv=function(t){if(!t||wS.call(t)!=="[object Object]")return!1;var n=Cs.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Cs.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Cs.call(t,i)},Qv=function(t,n){Yv&&n.name==="__proto__"?Yv(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},e0=function(t,n){if(n==="__proto__")if(Cs.call(t,n)){if(Kv)return Kv(t,n).value}else return;return t[n]},_Y=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=e0(s,n),i=e0(t,n),s!==i&&(f&&i&&(Jv(i)||(o=Xv(i)))?(o?(o=!1,a=r&&Xv(r)?r:[]):a=r&&Jv(r)?r:{},Qv(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&Qv(s,{name:n,newValue:i}));return s};const kc=Ee(_Y);function nd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TY(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const f=e[++o];let c=-1;if(l){a(l);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?EY(f,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function EY(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const En={basename:CY,dirname:AY,extname:MY,join:PY,sep:"/"};function CY(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');za(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function AY(e){if(za(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MY(e){za(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function PY(...e){let t=-1,n;for(;++t<e.length;)za(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":IY(n)}function IY(e){za(e);const t=e.codePointAt(0)===47;let n=$Y(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function $Y(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function za(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const RY={cwd:OY};function OY(){return"/"}function rd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function DY(e){if(typeof e=="string")e=new URL(e);else if(!rd(e)){const t=new 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(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return NY(e)}function NY(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Sc=["history","path","basename","stem","extname","dirname"];class xS{constructor(t){let n;t?rd(t)?n={path:t}:typeof t=="string"||LY(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":RY.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Sc.length;){const o=Sc[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Sc.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?En.basename(this.path):void 0}set basename(t){Tc(t,"basename"),_c(t,"basename"),this.path=En.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?En.dirname(this.path):void 0}set dirname(t){t0(this.basename,"dirname"),this.path=En.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?En.extname(this.path):void 0}set extname(t){if(_c(t,"extname"),t0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=En.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){rd(t)&&(t=DY(t)),Tc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?En.basename(this.path,this.extname):void 0}set stem(t){Tc(t,"stem"),_c(t,"stem"),this.path=En.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new bt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function _c(e,t){if(e&&e.includes(En.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+En.sep+"`")}function Tc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function t0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function LY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zY=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},FY={}.hasOwnProperty;class up extends zY{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=TY()}copy(){const t=new up;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(kc(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ac("data",this.frozen),this.namespace[t]=n,this):FY.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ac("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=us(t),r=this.parser||this.Parser;return Ec("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ec("process",this.parser||this.Parser),Cc("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,a){const s=us(t),l=r.parse(s);r.run(l,s,function(f,c,h){if(f||!c||!h)return u(f);const d=c,p=r.stringify(d,h);VY(p)?h.value=p:h.result=p,u(f,h)});function u(f,c){f||!c?a(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Ec("processSync",this.parser||this.Parser),Cc("processSync",this.compiler||this.Compiler),this.process(t,i),r0("processSync","process",n),r;function i(o,a){n=!0,Gv(o),r=a}}run(t,n,r){n0(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(a,s){const l=us(n);i.run(t,l,u);function u(f,c,h){const d=c||t;f?s(f):a?a(d):r(void 0,d,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),r0("runSync","run",r),i;function o(a,s){Gv(a),i=s,r=!0}}stringify(t,n){this.freeze();const r=us(n),i=this.compiler||this.Compiler;return Cc("stringify",i),n0(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ac("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;l(f,c)}else a(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function a(u){if(!("plugins"in u)&&!("settings"in u))throw new 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");s(u.plugins),u.settings&&(i.settings=kc(!0,i.settings,u.settings))}function s(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[d,...p]=f;const m=r[h][1];nd(m)&&nd(d)&&(d=kc(!0,m,d)),r[h]=[u,d,...p]}}}}const jY=new up().freeze();function Ec(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ac(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function n0(e){if(!nd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function r0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function us(e){return BY(e)?e:new xS(e)}function BY(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function VY(e){return typeof e=="string"||UY(e)}function UY(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ZY="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",i0=[],o0={allowDangerousHtml:!0},qY=/^(https?|ircs?|mailto|xmpp)$/i,WY=[{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:"className",id:"remove-classname"},{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 wae(e){const t=HY(e),n=GY(e);return YY(t.runSync(t.parse(n),n),e)}function HY(e){const t=e.rehypePlugins||i0,n=e.remarkPlugins||i0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...o0}:o0;return jY().use(MG).use(n).use(SY,r).use(t)}function GY(e){const t=e.children||"",n=new xS;return typeof t=="string"&&(n.value=t),n}function YY(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||KY;for(const f of WY)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+ZY+f.id,void 0);return lp(e,u),dW(e,{Fragment:Ei.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Ei.jsx,jsxs:Ei.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return a?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let d;for(d in bc)if(Object.hasOwn(bc,d)&&Object.hasOwn(f.properties,d)){const p=f.properties[d],m=bc[d];(m===null||m.includes(f.tagName))&&(f.properties[d]=l(String(p||""),d,f))}}if(f.type==="element"){let d=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!d&&r&&typeof c=="number"&&(d=!r(f,c,h)),d&&h&&typeof c=="number")return s&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function KY(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||qY.test(e.slice(0,t))?e:""}function a0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function XY(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function JY(e,t,n){const i=mu((n||{}).ignore||[]),o=QY(t);let a=-1;for(;++a<o.length;)bS(e,"text",s);function s(u,f){let c=-1,h;for(;++c<f.length;){const d=f[c],p=h?h.children:void 0;if(i(d,p?p.indexOf(d):void 0,h))return;h=d}if(h)return l(u,f)}function l(u,f){const c=f[f.length-1],h=o[a][0],d=o[a][1];let p=0;const g=c.children.indexOf(u);let y=!1,b=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const S=v.index,k={index:v.index,input:v.input,stack:[...f,u]};let w=d(...v,k);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=S+1:(p!==S&&b.push({type:"text",value:u.value.slice(p,S)}),Array.isArray(w)?b.push(...w):w&&b.push(w),p=S+v[0].length,y=!0),!h.global)break;v=h.exec(u.value)}return y?(p<u.value.length&&b.push({type:"text",value:u.value.slice(p)}),c.children.splice(g,1,...b)):b=[u],g+b.length}}function QY(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([eK(i[0]),tK(i[1])])}return t}function eK(e){return typeof e=="string"?new RegExp(XY(e),"g"):e}function tK(e){return typeof e=="function"?e:function(){return e}}const Mc="phrasing",Pc=["autolink","link","image","label"];function nK(){return{transforms:[uK],enter:{literalAutolink:iK,literalAutolinkEmail:Ic,literalAutolinkHttp:Ic,literalAutolinkWww:Ic},exit:{literalAutolink:lK,literalAutolinkEmail:sK,literalAutolinkHttp:oK,literalAutolinkWww:aK}}}function rK(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Pc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Mc,notInConstruct:Pc},{character:":",before:"[ps]",after:"\\/",inConstruct:Mc,notInConstruct:Pc}]}}function iK(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ic(e){this.config.enter.autolinkProtocol.call(this,e)}function oK(e){this.config.exit.autolinkProtocol.call(this,e)}function aK(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sK(e){this.config.exit.autolinkEmail.call(this,e)}function lK(e){this.exit(e)}function uK(e){JY(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,cK],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S}
342)([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),fK]],{ignore:["link","linkReference"]})}function cK(e,t,n,r,i){let o="";if(!kS(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!dK(n)))return!1;const a=hK(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function fK(e,t,n,r){return!kS(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function dK(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hK(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=a0(e,"(");let o=a0(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function kS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Jr(n)||du(n))&&(!t||n!==47)}SS.peek=kK;function pK(){this.buffer()}function mK(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function gK(){this.buffer()}function yK(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vK(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function bK(e){this.exit(e)}function wK(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=vn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function xK(e){this.exit(e)}function kK(){return"["}function SS(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),a(),o+=i.move("]"),o}function SK(){return{enter:{gfmFootnoteCallString:pK,gfmFootnoteCall:mK,gfmFootnoteDefinitionLabelString:gK,gfmFootnoteDefinition:yK},exit:{gfmFootnoteCallString:vK,gfmFootnoteCall:bK,gfmFootnoteDefinitionLabelString:wK,gfmFootnoteDefinition:xK}}}function _K(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:SS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,a){const s=o.createTracker(a);let l=s.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return l+=s.move(o.safe(o.associationId(r),{before:l,after:"]"})),f(),l+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),l+=s.move((t?` 343`:" ")+o.indentLines(o.containerFlow(r,s.current()),t?_S:TK))),u(),l}}function TK(e,t,n){return t===0?e:_S(e,t,n)}function _S(e,t,n){return(n?"":" ")+e}const EK=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];TS.peek=IK;function CK(){return{canContainEols:["delete"],enter:{strikethrough:MK},exit:{strikethrough:PK}}}function AK(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:EK}],handlers:{delete:TS}}}function MK(e){this.enter({type:"delete",children:[]},e)}function PK(e){this.exit(e)}function TS(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function IK(){return"~"}function $K(e){return e.length}function RK(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$K,o=[],a=[],s=[],l=[];let u=0,f=-1;for(;++f<e.length;){const m=[],g=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const b=OK(e[f][y]);if(n.alignDelimiters!==!1){const v=i(b);g[y]=v,(l[y]===void 0||v>l[y])&&(l[y]=v)}m.push(b)}a[f]=m,s[f]=g}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=s0(r[c]);else{const m=s0(r);for(;++c<u;)o[c]=m}c=-1;const h=[],d=[];for(;++c<u;){const m=o[c];let g="",y="";m===99?(g=":",y=":"):m===108?g=":":m===114&&(y=":");let b=n.alignDelimiters===!1?1:Math.max(1,l[c]-g.length-y.length);const v=g+"-".repeat(b)+y;n.alignDelimiters!==!1&&(b=g.length+b+y.length,b>l[c]&&(l[c]=b),d[c]=b),h[c]=v}a.splice(1,0,h),s.splice(1,0,d),f=-1;const p=[];for(;++f<a.length;){const m=a[f],g=s[f];c=-1;const y=[];for(;++c<u;){const b=m[c]||"";
vendor: 14,550 bytes, lines 343-357
343let v="",S="";if(n.alignDelimiters!==!1){const k=l[c]-(g[c]||0),w=o[c];w===114?v=" ".repeat(k):w===99?k%2?(v=" ".repeat(k/2+.5),S=" ".repeat(k/2-.5)):(v=" ".repeat(k/2),S=v):S=" ".repeat(k)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(v),y.push(b),n.alignDelimiters!==!1&&y.push(S),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}p.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return p.join(` 344`)}function OK(e){return e==null?"":String(e)}function s0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function DK(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const a=n.indentLines(n.containerFlow(e,o.current()),NK);return i(),a}function NK(e,t,n){return">"+(n?"":" ")+e}function LK(e,t){return l0(e,t.inConstruct,!0)&&!l0(e,t.notInConstruct,!1)}function l0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function u0(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===` 345`&&LK(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\ 346`}function zK(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,a=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>a&&(a=o):o=1,i=r+t.length,r=n.indexOf(t,i);return a}function FK(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function jK(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function BK(e,t,n,r){const i=jK(n),o=e.value||"",a=i==="`"?"GraveAccent":"Tilde";if(FK(e,n)){const c=n.enter("codeIndented"),h=n.indentLines(o,VK);return c(),h}const s=n.createTracker(r),l=i.repeat(Math.max(zK(o,i)+1,3)),u=n.enter("codeFenced");let f=s.move(l);if(e.lang){const c=n.enter(`codeFencedLang${a}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${a}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:` 347`,encode:["`"],...s.current()})),c()}return f+=s.move(` 348`),o&&(f+=s.move(o+` 349`)),f+=s.move(l),u(),f}function VK(e,t,n){return(n?"":" ")+e}function cp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function UK(e,t,n,r){const i=cp(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` 350`,...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),a(),u}function ZK(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ma(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bl(e,t,n){const r=Vi(e),i=Vi(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ES.peek=qK;function ES(e,t,n,r){const i=ZK(n),o=n.enter("emphasis"),a=n.createTracker(r),s=a.move(i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=bl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=ma(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=bl(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+ma(c));const d=a.move(i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},s+l+d}function qK(e,t,n){return n.options.emphasis||"*"}function WK(e,t){let n=!1;return lp(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ed}),!!((!e.depth||e.depth<3)&&tp(e)&&(t.options.setext||n))}function HK(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(WK(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:` 351`,after:` 352`});return c(),f(),h+` 353`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(` 354`))+1))}const a="#".repeat(i),s=n.enter("headingAtx"),l=n.enter("phrasing");o.move(a+" ");let u=n.containerPhrasing(e,{before:"# ",after:` 355`,...o.current()});return/^[\t ]/.test(u)&&(u=ma(u.charCodeAt(0))+u.slice(1)),u=u?a+" "+u:a,n.options.closeAtx&&(u+=" "+a),l(),s(),u}CS.peek=GK;function CS(e){return e.value||""}function GK(){return"<"}AS.peek=YK;function AS(e,t,n,r){const i=cp(n),o=i==='"'?"Quote":"Apostrophe",a=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function YK(){return"!"}MS.peek=KK;function MS(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const u=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function KK(){return"!"}PS.peek=XK;function PS(e,t,n){let r=e.value||"",i="`",o=-1;for(;new 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;){const a=n.unsafe[o],s=n.compilePattern(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function XK(){return"`"}function IS(e,t){const n=tp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}$S.peek=JK;function $S(e,t,n,r){const i=cp(n),o=i==='"'?"Quote":"Apostrophe",a=n.createTracker(r);let s,l;if(IS(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let c=a.move("<");return c+=a.move(n.containerPhrasing(e,{before:c,after:">",...a.current()})),c+=a.move(">"),s(),n.stack=f,c}s=n.enter("link"),l=n.enter("label");let u=a.move("[");return u+=a.move(n.containerPhrasing(e,{before:u,after:"](",...a.current()})),u+=a.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(l=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),l(),e.title&&(l=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),l()),u+=a.move(")"),s(),u}function JK(e,t,n){return IS(e,n)?"<":"["}RS.peek=QK;function RS(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let a=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(u+"]["),a();const f=n.stack;n.stack=[],a=n.enter("reference");const c=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return a(),n.stack=f,o(),i==="full"||!u||u!==c?l+=s.move(c+"]"):i==="shortcut"?l=l.slice(0,-1):l+=s.move("]"),l}function QK(){return"["}function fp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eX(e){const t=fp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tX(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function OS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nX(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let a=e.ordered?tX(n):fp(n);const s=e.ordered?a==="."?")":".":eX(n);let l=t&&n.bulletLastUsed?a===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((a==="*"||a==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),OS(n)===a&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(a=s),n.bulletCurrent=a;const u=n.containerFlow(e,r);return n.bulletLastUsed=a,n.bulletCurrent=o,i(),u}function rX(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function iX(e,t,n,r){const i=rX(n);let o=n.bulletCurrent||fp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return l(),u;function f(c,h,d){return h?(d?"":" ".repeat(a))+c:(d?o:o+" ".repeat(a-o.length))+c}}function oX(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),a=n.containerPhrasing(e,r);return o(),i(),a}const aX=mu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function sX(e,t,n,r){return(e.children.some(function(a){return aX(a)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lX(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}DS.peek=uX;function DS(e,t,n,r){const i=lX(n),o=n.enter("strong"),a=n.createTracker(r),s=a.move(i+i);let l=a.move(n.containerPhrasing(e,{after:i,before:s,...a.current()}));const u=l.charCodeAt(0),f=bl(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(l=ma(u)+l.slice(1));const c=l.charCodeAt(l.length-1),h=bl(r.after.charCodeAt(0),c,i);h.inside&&(l=l.slice(0,-1)+ma(c));const d=a.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},s+l+d}function uX(e,t,n){return n.options.strong||"*"}function cX(e,t,n,r){return n.safe(e.value,r)}function fX(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function dX(e,t,n){const r=(OS(n)+(n.options.ruleSpaces?" ":"")).repeat(fX(n));return n.options.ruleSpaces?r.slice(0,-1):r}const NS={blockquote:DK,break:u0,code:BK,definition:UK,emphasis:ES,hardBreak:u0,heading:HK,html:CS,image:AS,imageReference:MS,inlineCode:PS,link:$S,linkReference:RS,list:nX,listItem:iX,paragraph:oX,root:sX,strong:DS,text:cX,thematicBreak:dX};function hX(){return{enter:{table:pX,tableData:c0,tableHeader:c0,tableRow:gX},exit:{codeText:yX,table:mX,tableData:$c,tableHeader:$c,tableRow:$c}}}function pX(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function mX(e){this.exit(e),this.data.inTable=void 0}function gX(e){this.enter({type:"tableRow",children:[]},e)}function $c(e){this.exit(e)}function c0(e){this.enter({type:"tableCell",children:[]},e)}function yX(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,vX));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function vX(e,t){return t==="|"?t:e}function bX(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` 356`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:a,tableCell:l,tableRow:s}};function a(d,p,m,g){return u(f(d,m,g),d.align)}function s(d,p,m,g){const y=c(d,m,g),b=u([y]);return b.slice(0,b.indexOf(` 357`))}function l(d,p,m,g){const y=m.enter("tableCell"),b=m.enter("phrasing"),v=m.containerPhrasing(d,{...g,before:o,after:o});return b(),y(),v}function u(d,p){return RK(d,{align:p,alignDelimiters:r,padding:n,stringLength:i})}function f(d,p,m){const g=d.children;let y=-1;const b=[],v=p.enter("table");for(;++y<g.length;)b[y]=c(g[y],p,m);return v(),b}function c(d,p,m){const g=d.children;let y=-1;const b=[],v=p.enter("tableRow");for(;++y<g.length;)b[y]=l(g[y],d,p,m);return v(),b}
vendor: 4,175 bytes, line 357
357function h(d,p,m){let g=NS.inlineCode(d,p,m);return m.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function wX(){return{exit:{taskListCheckValueChecked:f0,taskListCheckValueUnchecked:f0,paragraph:kX}}}function xX(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:SX}}}function f0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function kX(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function SX(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(a);let l=NS.listItem(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+a}}function _X(){return[nK(),SK(),CK(),hX(),wX()]}function TX(e){return{extensions:[rK(),_K(e),AK(),bX(e),xX()]}}const EX={tokenize:$X,partial:!0},LS={tokenize:RX,partial:!0},zS={tokenize:OX,partial:!0},FS={tokenize:DX,partial:!0},CX={tokenize:NX,partial:!0},jS={name:"wwwAutolink",tokenize:PX,previous:VS},BS={name:"protocolAutolink",tokenize:IX,previous:US},nr={name:"emailAutolink",tokenize:MX,previous:ZS},Bn={};function AX(){return{text:Bn}}let Rr=48;for(;Rr<123;)Bn[Rr]=nr,Rr++,Rr===58?Rr=65:Rr===91&&(Rr=97);Bn[43]=nr;Bn[45]=nr;Bn[46]=nr;Bn[95]=nr;Bn[72]=[nr,BS];Bn[104]=[nr,BS];Bn[87]=[nr,jS];Bn[119]=[nr,jS];function MX(e,t,n){const r=this;let i,o;return a;function a(c){return!id(c)||!ZS.call(r,r.previous)||dp(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(c))}function s(c){return id(c)?(e.consume(c),s):c===64?(e.consume(c),l):n(c)}function l(c){return c===46?e.check(CX,f,u)(c):c===45||c===95||vt(c)?(o=!0,e.consume(c),l):f(c)}function u(c){return e.consume(c),i=!0,l}function f(c){return o&&i&&Tt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function PX(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!VS.call(r,r.previous)||dp(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(EX,e.attempt(LS,e.attempt(zS,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function IX(e,t,n){const r=this;let i="",o=!1;return a;function a(c){return(c===72||c===104)&&US.call(r,r.previous)&&!dp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),s):n(c)}function s(c){if(Tt(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),s;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),l}return n(c)}function l(c){return c===47?(e.consume(c),o?u:(o=!0,l)):n(c)}function u(c){return c===null||gl(c)||Ie(c)||Jr(c)||du(c)?n(c):e.attempt(LS,e.attempt(zS,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function $X(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function RX(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(FS,l,s)(u):u===null||Ie(u)||Jr(u)||u!==45&&du(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function OX(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(FS,t,o)(a):a===null||Ie(a)||Jr(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function DX(e,t,n){return r;
vendor: 4,098 bytes, line 357
357function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Ie(s)||Jr(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Ie(s)||Jr(s)?t(s):r(s)}function o(s){return Tt(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):Tt(s)?(e.consume(s),a):n(s)}}function NX(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return vt(o)?n(o):t(o)}}function VS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ie(e)}function US(e){return!Tt(e)}function ZS(e){return!(e===47||id(e))}function id(e){return e===43||e===45||e===46||e===95||vt(e)}function dp(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const LX={tokenize:qX,partial:!0};function zX(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VX,continuation:{tokenize:UX},exit:ZX}},text:{91:{name:"gfmFootnoteCall",tokenize:BX},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:FX,resolveTo:jX}}}}function FX(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=vn(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function jX(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const 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++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[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",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function BX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),l}function l(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!a||c===null||c===91||Ie(c))return n(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(vn(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return Ie(c)||(a=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function VX(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(p)}function f(p){if(a>
vendor: 6,556 bytes, line 357
357999||p===93&&!s||p===null||p===91||Ie(p))return n(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return o=vn(r.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Ie(p)||(s=!0),a++,e.consume(p),p===92?c:f}function c(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}function h(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),i.includes(o)||i.push(o),be(e,d,"gfmFootnoteDefinitionWhitespace")):n(p)}function d(p){return t(p)}}function UX(e,t,n){return e.check(La,t,e.attempt(LX,t,n))}function ZX(e){e.exit("gfmFootnoteDefinition")}function qX(e,t,n){const r=this;return be(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function WX(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},c={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},h=[["enter",f,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",c,s]],d=s.parser.constructs.insideSpan.null;d&&Wt(h,h.length,0,hu(d,a.slice(u+1,l),s)),Wt(h,h.length,0,[["exit",c,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),Wt(a,u-1,l-u+3,h),l=u+h.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,f=this.events;let c=0;return h;function h(p){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(p):(a.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const m=Vi(u);if(p===126)return c>1?l(p):(a.consume(p),c++,d);if(c<2&&!n)return l(p);const g=a.exit("strikethroughSequenceTemporary"),y=Vi(p);return g._open=!y||y===2&&!!m,g._close=!m||m===2&&!!y,s(p)}}}class HX{constructor(){this.map=[]}add(t,n,r){GX(this,t,n,r)}consume(t){if(this.map.sort(function(o,a){return o[0]-a[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function GX(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){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])}}function YX(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function KX(){return{flow:{null:{name:"table",tokenize:XX,resolveAll:JX}}}}function XX(e,t,n){const r=this;let i=0,o=0,a;return s;function s(E){let M=r.events.length-1;for(;M>-1;){const j=r.events[M][1].type;if(j==="lineEnding"||j==="linePrefix")M--;else break}const P=M>-1?r.events[M][1].type:null,V=P==="tableHead"||P==="tableRow"?w:l;return V===w&&r.parser.lazy[r.now().line]?n(E):V(E)}function l(E){return e.enter("tableHead"),e.enter("tableRow"),u(E)}function u(E){return E===124||(a=!0,o+=1),f(E)}function f(E){return E===null?n(E):ie(E)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),d):n(E):ye(E)?be(e,f,"whitespace")(E):(o+=1,a&&(a=!1,i+=1),E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),c(E)))}function c(E){return E===null||E===124||Ie(E)?(e.exit("data"),f(E)):(e.consume(E),E===92?h:c)}function h(E){return E===92||E===124?(e.consume(E),c):c(E)}function d(E){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(E):(e.enter("tableDelimiterRow"),a=!1,ye(E)?be(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):p(E))}function p(E){return E===45||E===58?g(E):E===124?(a=!0,e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),m):k(E)}function m(E){return ye(E)?be(e,g,"whitespace")(E):g(E)}function g(E){return E===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),y):E===45?(o+=1,y(E)):E===null||ie(E)?S(E):k(E)}function y(E){return E===45?(e.enter("tableDelimiterFiller"),b(E)):k(E)}function b(E){return E===45?(e.consume(E),b):E===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(E),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(E))}function v(E){return ye(E)?be(e,S,"whitespace")(E):S(E)}function S(E){return E===124?p(E):E===null||ie(E)?!a||i!==o?k(E):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(E)):k(E)}function k(E){return n(E)}function w(E){return e.enter("tableRow"),C(E)}function C(E){return E===124?(e.enter("tableCellDivider"),e.consume(E),e.exit("tableCellDivider"),C):E===null||ie(E)?(e.exit("tableRow"),t(E)):ye(E)?be(e,C,"whitespace")(E):(e.enter("data"),A(E))}function A(E){return E===null||E===124||Ie(E)?(e.exit("data"),C(E)):(e.consume(E),E===92?R:A)}function R(E){return E===92||E===124?(e.consume(E),A):A(E)}}function JX(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,f,c;const h=new HX;for(;++n<e.length;){const d=e[n],p=d[1];d[0]==="enter"?p.type==="tableHead"?(s=!1,l!==0&&(d0(h,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},h.add(n,0,[["enter",f,t]])),i=p.type==="tableDelimiterRow"?2:f?3:1):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.t
vendor: 4,800 bytes, lines 357-359
357ype==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],c=cs(h,t,o,i,void 0,c),o=[0,0,0,0]),a[2]=n)):p.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],c=cs(h,t,o,i,void 0,c)),o=a,a=[o[1],n,0,0])):p.type==="tableHead"?(s=!0,l=n):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],c=cs(h,t,o,i,n,c)):a[1]!==0&&(c=cs(h,t,a,i,n,c)),i=0):i&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&d0(h,t,l,u,f),h.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=YX(t.events,n))}return e}function cs(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},vi(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=vi(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=vi(t.events,n[2]),f=vi(t.events,n[3]),c={type:s,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const h=t.events[n[2]],d=t.events[n[3]];if(h[1].end=Object.assign({},d[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const p=n[2]+1,m=n[3]-n[2]-1;e.add(p,m,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},vi(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function d0(e,t,n,r,i){const o=[],a=vi(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function vi(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const QX={name:"tasklistCheck",tokenize:tJ};function eJ(){return{text:{91:QX}}}function tJ(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Ie(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return ie(l)?t(l):ye(l)?e.check({tokenize:nJ},t,n)(l):n(l)}}function nJ(e,t,n){return be(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function rJ(e){return eS([AX(),zX(),WX(e),KX(),eJ()])}const iJ={};function xae(e){const t=this,n=e||iJ,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),a=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(rJ(n)),o.push(_X()),a.push(TX(n))}var qS="vercel.ai.error",oJ=Symbol.for(qS),h0,p0,zn=class WS extends(p0=Error,h0=oJ,p0){constructor({name:t,message:n,cause:r}){super(n),this[h0]=!0,this.name=t,this.cause=r}static isInstance(t){return WS.hasMarker(t,qS)}static hasMarker(t,n){const r=Symbol.for(n);return t!=null&&typeof t=="object"&&r in t&&typeof t[r]=="boolean"&&t[r]===!0}};function HS(e){return e==null?"unknown error":typeof e=="string"?e:e instanceof Error?e.message:JSON.stringify(e)}var GS="AI_InvalidArgumentError",YS=`vercel.ai.error.${GS}`,aJ=Symbol.for(YS),m0,g0,sJ=class extends(g0=zn,m0=aJ,g0){constructor({message:e,cause:t,argument:n}){super({name:GS,message:e,cause:t}),this[m0]=!0,this.argument=n}static isInstance(e){return zn.hasMarker(e,YS)}},KS="AI_JSONParseError",XS=`vercel.ai.error.${KS}`,lJ=Symbol.for(XS),y0,v0,b0=class extends(v0=zn,y0=lJ,v0){constructor({text:e,cause:t}){super({name:KS,message:`JSON parsing failed: Text: ${e}. 358Error message: ${HS(t)}`,cause:t}),this[y0]=!0,this.text=e}static isInstance(e){return zn.hasMarker(e,XS)}},JS="AI_TypeValidationError",QS=`vercel.ai.error.${JS}`,uJ=Symbol.for(QS),w0,x0,Ui=class od extends(x0=zn,w0=uJ,x0){constructor({value:t,cause:n,context:r}){let i="Type validation failed";if(r!=null&&r.field&&(i+=` for ${r.field}`),r!=null&&r.entityName||r!=null&&r.entityId){i+=" (";const o=[];r.entityName&&o.push(r.entityName),r.entityId&&o.push(`id: "${r.entityId}"`),i+=o.join(", "),i+=")"}super({name:JS,message:`${i}: Value: ${JSON.stringify(t)}. 359Error message: ${HS(n)}`,cause:n}),this[w0]=!0,this.value=t,this.context=r}static isInstance(t){return zn.hasMarker(t,QS)}static wrap({value:t,cause:n,context:r}){var i,o,a;return od.isInstance(n)&&n.value===t&&((i=n.context)==null?void 0:i.field)===(r==null?void 0:r.field)&&((o=n.context)==null?void 0:o.entityName)===(r==null?void 0:r.entityName)&&((a=n.context)==null?void 0:a.entityId)===(r==null?void 0:r.entityId)?n:new od({value:t,cause:n,context:r})}};function O(e,t,n){function r(s,l){var u;
vendor: 27,697 bytes, lines 359-384
359Object.defineProperty(s,"_zod",{value:s._zod??{},enumerable:!1}),(u=s._zod).traits??(u.traits=new Set),s._zod.traits.add(e),t(s,l);for(const f in a.prototype)f in s||Object.defineProperty(s,f,{value:a.prototype[f].bind(s)});s._zod.constr=a,s._zod.def=l}const i=(n==null?void 0:n.Parent)??Object;class o extends i{}Object.defineProperty(o,"name",{value:e});function a(s){var l;const u=n!=null&&n.Parent?new o:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const f of u._zod.deferred)f();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>{var l,u;return n!=null&&n.Parent&&s instanceof n.Parent?!0:(u=(l=s==null?void 0:s._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class ga extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const e_={};function Sr(e){return e_}function t_(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,i])=>t.indexOf(+r)===-1).map(([r,i])=>i)}function cJ(e,t){return typeof t=="bigint"?t.toString():t}function hp(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function pp(e){return e==null}function mp(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function fJ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,o=Number.parseInt(e.toFixed(i).replace(".","")),a=Number.parseInt(t.toFixed(i).replace(".",""));return o%a/10**i}function Se(e,t,n){Object.defineProperty(e,t,{get(){{const r=n();return e[t]=r,r}},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}function yu(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Mo(e){return JSON.stringify(e)}const n_=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function wl(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const dJ=hp(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function xl(e){if(wl(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(wl(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const hJ=new Set(["string","number","symbol"]);function Fa(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function oi(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function ee(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function pJ(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const mJ={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function gJ(e,t){const n={},r=e._zod.def;for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(n[i]=r.shape[i])}return oi(e,{...e._zod.def,shape:n,checks:[]})}function yJ(e,t){const n={...e._zod.def.shape},r=e._zod.def;for(const i in t){if(!(i in r.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete n[i]}return oi(e,{...e._zod.def,shape:n,checks:[]})}function vJ(e,t){if(!xl(t))throw new Error("Invalid input to extend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return yu(this,"shape",r),r},checks:[]};return oi(e,n)}function bJ(e,t){return oi(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...t._zod.def.shape};return yu(this,"shape",n),n},catchall:t._zod.def.catchall,checks:[]})}function wJ(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const o in n){if(!(o in r))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(i[o]=e?new e({type:"optional",innerType:r[o]}):r[o])}else for(const o in r)i[o]=e?new e({type:"optional",innerType:r[o]}):r[o];return oi(t,{...t._zod.def,shape:i,checks:[]})}function xJ(e,t,n){const r=t._zod.def.shape,i={...r};if(n)for(const o in n){if(!(o in i))throw new Error(`Unrecognized key: "${o}"`);n[o]&&(i[o]=new e({type:"nonoptional",innerType:r[o]}))}else for(const o in r)i[o]=new e({type:"nonoptional",innerType:r[o]});return oi(t,{...t._zod.def,shape:i,checks:[]})}function Ho(e,t=0){var n;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function Zr(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function fs(e){return typeof e=="string"?e:e==null?void 0:e.message}function _r(e,t,n){var i,o,a,s,l,u;const r={...e,path:e.path??[]};if(!e.message){const f=fs((a=(o=(i=e.inst)==null?void 0:i._zod.def)==null?void 0:o.error)==null?void 0:a.call(o,e))??fs((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??fs((l=n.customError)==null?void 0:l.call(n,e))??fs((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";r.message=f}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function gp(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ya(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const r_=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),Object.defineProperty(e,"message",{get(){return JSON.stringify(t,cJ,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},i_=O("$ZodError",r_),o_=O("$ZodError",r_,{Parent:Error});function kJ(e,t=n=>n.message){const n={},r=[];for(const i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function SJ(e,t){const n=t||function(o){return o.message},r={_errors:[]},i=o=>{for(const a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(s=>i({issues:s}));else if(a.code==="invalid_key")i({issues:a.issues});else if(a.code==="invalid_element")i({issues:a.issues});else if(a.path.length===0)r._errors.push(n(a));else{let s=r,l=0;for(;l<a.path.length;){const u=a.path[l];l===a.path.length-1?(s[u]=s[u]||{_errors:[]},s[u]._errors.push(n(a))):s[u]=s[u]||{_errors:[]},s=s[u],l++}}};return i(e),r}const _J=e=>(t,n,r,i)=>{const o=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new ga;if(a.issues.length){const s=new((i==null?void 0:i.Err)??e)(a.issues.map(l=>_r(l,o,Sr())));throw n_(s,i==null?void 0:i.callee),s}return a.value},TJ=e=>async(t,n,r,i)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new((i==null?void 0:i.Err)??e)(a.issues.map(l=>_r(l,o,Sr())));throw n_(s,i==null?void 0:i.callee),s}return a.value},a_=e=>(t,n,r)=>{const i=r?{...r,async:!1}:{async:!1},o=t._zod.run({value:n,issues:[]},i);if(o instanceof Promise)throw new ga;return o.issues.length?{success:!1,error:new(e??i_)(o.issues.map(a=>_r(a,i,Sr())))}:{success:!0,data:o.value}},EJ=a_(o_),s_=e=>async(t,n,r)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let o=t._zod.run({value:n,issues:[]},i);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>_r(a,i,Sr())))}:{success:!0,data:o.value}},CJ=s_(o_),AJ=/^[cC][^\s-]{8,}$/,MJ=/^[0-9a-z]+$/,PJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,IJ=/^[0-9a-vA-V]{20}$/,$J=/^[A-Za-z0-9]{27}$/,RJ=/^[a-zA-Z0-9_-]{21}$/,OJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,DJ=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,k0=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000)$/,NJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,LJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function zJ(){return new RegExp(LJ,"u")}const FJ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})$/,BJ=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,VJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,UJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,l_=/^[A-Za-z0-9_-]*$/,ZJ=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,qJ=/^\+(?:[0-9]){6,14}[0-9]$/,u_="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",WJ=new RegExp(`^${u_}$`);function c_(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function HJ(e){return new RegExp(`^${c_(e)}$`)}function GJ(e){const t=c_({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-]\\d{2}:\\d{2})");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${u_}T(?:${r})$`)}const YJ=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},KJ=/^\d+$/,XJ=/^-?\d+(?:\.\d+)?/i,JJ=/true|false/i,QJ=/null/i,eQ=/^[^A-Z]*$/,tQ=/^[^a-z]*$/,Ft=O("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),f_={number:"number",bigint:"bigint",object:"date"},d_=O("$ZodCheckLessThan",(e,t)=>{Ft.init(e,t);const n=f_[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.maximum:i.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<o&&(t.inclusive?i.maximum=t.value:i.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),h_=O("$ZodCheckGreaterThan",(e,t)=>{Ft.init(e,t);const n=f_[typeof t.value];e._zod.onattach.push(r=>{const i=r._zod.bag,o=(t.inclusive?i.minimum:i.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>o&&(t.inclusive?i.minimum=t.value:i.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),nQ=O("$ZodCheckMultipleOf",(e,t)=>{Ft.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):fJ(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),rQ=O("$ZodCheckNumberFormat",(e,t)=>{var a;Ft.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[i,o]=mJ[t.format];e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,l.minimum=i,l.maximum=o,n&&(l.pattern=KJ)}),e._zod.check=s=>{const l=s.value;if(n){if(!Number.isInteger(l)){s.issues.push({expected:r,format:t.format,code:"invalid_type",input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?s.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):s.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}l<i&&s.issues.push({origin:"number",input:l,code:"too_small",minimum:i,inclusive:!0,inst:e,continue:!t.abort}),l>o&&s.issues.push({origin:"number",input:l,code:"too_big",maximum:o,inst:e})}}),iQ=O("$ZodCheckMaxLength",(e,t)=>{var n;Ft.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pp(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<i&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const i=r.value;if(i.length<=t.maximum)return;const a=gp(i);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),oQ=O("$ZodCheckMinLength",(e,t)=>{var n;Ft.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pp(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const i=r.value;if(i.length>=t.minimum)return;const a=gp(i);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}}),aQ=O("$ZodCheckLengthEquals",(e,t)=>{var n;Ft.init(e,t),(n=e._zod.def).when??(n.when=r=>{const i=r.value;return!pp(i)&&i.length!==void 0}),e._zod.onattach.push(r=>{const i=r._zod.bag;i.minimum=t.length,i.maximum=t.length,i.length=t.length}),e._zod.check=r=>{const i=r.value,o=i.length;if(o===t.length)return;const a=gp(i),s=o>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),vu=O("$ZodCheckStringFormat",(e,t)=>{var n,r;Ft.init(e,t),e._zod.onattach.push(i=>{const o=i._zod.bag;o.format=t.format,t.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),sQ=O("$ZodCheckRegex",(e,t)=>{vu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),lQ=O("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=eQ),vu.init(e,t)}),uQ=O("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=tQ),vu.init(e,t)}),cQ=O("$ZodCheckIncludes",(e,t)=>{Ft.init(e,t);const n=Fa(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(r)}),e._zod.check=i=>{i.value.includes(t.includes,t.position)||i.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:i.value,inst:e,continue:!t.abort})}}),fQ=O("$ZodCheckStartsWith",(e,t)=>{Ft.init(e,t);const n=new RegExp(`^${Fa(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),dQ=O("$ZodCheckEndsWith",(e,t)=>{Ft.init(e,t);const n=new RegExp(`.*${Fa(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const i=r._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),hQ=O("$ZodCheckOverwrite",(e,t)=>{Ft.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class pQ{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(` 360`).filter(a=>a),i=Math.min(...r.map(a=>a.length-a.trimStart().length)),o=r.map(a=>a.slice(i)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,i=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new t(...n,i.join(` 361`))}}const mQ={major:4,minor:0,patch:0},Ne=O("$ZodType",(e,t)=>{var i;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=mQ;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const a of o._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(i=e._zod.deferred)==null||i.push(()=>{e._zod.run=e._zod.parse});else{const o=(a,s,l)=>{let u=Ho(a),f;for(const c of s){if(c._zod.def.when){if(!c._zod.def.when(a))continue}else if(u)continue;const h=a.issues.length,d=c._zod.check(a);if(d instanceof Promise&&(l==null?void 0:l.async)===!1)throw new ga;if(f||d instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await d,a.issues.length!==h&&(u||(u=Ho(a,h)))});else{if(a.issues.length===h)continue;u||(u=Ho(a,h))}}return f?f.then(()=>a):a};e._zod.run=(a,s)=>{const l=e._zod.parse(a,s);if(l instanceof Promise){if(s.async===!1)throw new ga;return l.then(u=>o(u,r,s))}return o(l,r,s)}}e["~standard"]={validate:o=>{var a;try{const s=EJ(e,o);return s.success?{value:s.data}:{issues:(a=s.error)==null?void 0:a.issues}}catch{return CJ(e,o).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),yp=O("$ZodString",(e,t)=>{var n;Ne.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??YJ(e._zod.bag),e._zod.parse=(r,i)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ze=O("$ZodStringFormat",(e,t)=>{vu.init(e,t),yp.init(e,t)}),gQ=O("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=DJ),Ze.init(e,t)}),yQ=O("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=k0(r))}else t.pattern??(t.pattern=k0());Ze.init(e,t)}),vQ=O("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=NJ),Ze.init(e,t)}),bQ=O("$ZodURL",(e,t)=>{Ze.init(e,t),e._zod.check=n=>{try{const r=n.value,i=new URL(r),o=i.href;t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:ZJ.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),!r.endsWith("/")&&o.endsWith("/")?n.value=o.slice(0,-1):n.value=o;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),wQ=O("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=zJ()),Ze.init(e,t)}),xQ=O("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=RJ),Ze.init(e,t)}),kQ=O("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=AJ),Ze.init(e,t)}),SQ=O("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=MJ),Ze.init(e,t)}),_Q=O("$ZodULID",(e,t)=>{t.pattern??(t.pattern=PJ),Ze.init(e,t)}),TQ=O("$ZodXID",(e,t)=>{t.pattern??(t.pattern=IJ),Ze.init(e,t)}),EQ=O("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=$J),Ze.init(e,t)}),CQ=O("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=GJ(t)),Ze.init(e,t)}),AQ=O("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=WJ),Ze.init(e,t)}),MQ=O("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=HJ(t)),Ze.init(e,t)}),PQ=O("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=OJ),Ze.init(e,t)}),IQ=O("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=FJ),Ze.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv4"})}),$Q=O("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=jJ),Ze.init(e,t),e._zod.onattach.push(n=>{const r=n._zod.bag;r.format="ipv6"}),e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),RQ=O("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=BJ),Ze.init(e,t)}),OQ=O("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=VJ),Ze.init(e,t),e._zod.check=n=>{const[r,i]=n.value.split("/");try{if(!i)throw new Error;const o=Number(i);if(`${o}`!==i)throw new Error;if(o<0||o>128)throw new Error;new URL(`http://[${r}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function p_(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const DQ=O("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=UJ),Ze.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{p_(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function NQ(e){if(!l_.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return p_(n)}const LQ=O("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=l_),Ze.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{NQ(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),zQ=O("$ZodE164",(e,t)=>{t.pattern??(t.pattern=qJ),Ze.init(e,t)});function FQ(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const i=JSON.parse(atob(r));return!("typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&(!("alg"in i)||i.alg!==t))}catch{return!1}}const jQ=O("$ZodJWT",(e,t)=>{Ze.init(e,t),e._zod.check=n=>{FQ(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),m_=O("$ZodNumber",(e,t)=>{Ne.init(e,t),e._zod.pattern=e._zod.bag.pattern??XJ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const i=n.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return n;const o=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...o?{received:o}:{}}),n}}),BQ=O("$ZodNumber",(e,t)=>{rQ.init(e,t),m_.init(e,t)}),VQ=O("$ZodBoolean",(e,t)=>{Ne.init(e,t),e._zod.pattern=JJ,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const i=n.value;return typeof i=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),n}}),UQ=O("$ZodNull",(e,t)=>{Ne.init(e,t),e._zod.pattern=QJ,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{const i=n.value;return i===null||n.issues.push({expected:"null",code:"invalid_type",input:i,inst:e}),n}}),ZQ=O("$ZodUnknown",(e,t)=>{Ne.init(e,t),e._zod.parse=n=>n}),qQ=O("$ZodNever",(e,t)=>{Ne.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function S0(e,t,n){e.issues.length&&t.issues.push(...Zr(n,e.issues)),t.value[n]=e.value}const WQ=O("$ZodArray",(e,t)=>{Ne.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!Array.isArray(i))return n.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),n;n.value=Array(i.length);const o=[];for(let a=0;a<i.length;a++){const s=i[a],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?o.push(l.then(u=>S0(u,n,a))):S0(l,n,a)}return o.length?Promise.all(o).then(()=>n):n}});function ds(e,t,n){e.issues.length&&t.issues.push(...Zr(n,e.issues)),t.value[n]=e.value}function _0(e,t,n,r){e.issues.length?r[n]===void 0?n in r?t.value[n]=void 0:t.value[n]=e.value:t.issues.push(...Zr(n,e.issues)):e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}const HQ=O("$ZodObject",(e,t)=>{Ne.init(e,t);const n=hp(()=>{const c=Object.keys(t.shape);for(const d of c)if(!(t.shape[d]instanceof Ne))throw new Error(`Invalid element at key "${d}": expected a Zod schema`);const h=pJ(t.shape);return{shape:t.shape,keys:c,keySet:new Set(c),numKeys:c.length,optionalKeys:new Set(h)}});Se(e._zod,"propValues",()=>{const c=t.shape,h={};for(const d in c){const p=c[d]._zod;if(p.values){h[d]??(h[d]=new Set);for(const m of p.values)h[d].add(m)}}return h});const r=c=>{const h=new pQ(["shape","payload","ctx"]),d=n.value,p=b=>{const v=Mo(b);return`shape[${v}]._zod.run({ value: input[${v}], issues: [] }, ctx)`};h.write("const input = payload.value;");const m=Object.create(null);let g=0;for(const b of d.keys)m[b]=`key_${g++}`;h.write("const newResult = {}");for(const b of d.keys)if(d.optionalKeys.has(b)){const v=m[b];h.write(`const ${v} = ${p(b)};`);const S=Mo(b);h.write(` 362 if (${v}.issues.length) { 363 if (input[${S}] === undefined) { 364 if (${S} in input) { 365 newResult[${S}] = undefined; 366 } 367 } else { 368 payload.issues = payload.issues.concat( 369 ${v}.issues.map((iss) => ({ 370 ...iss, 371 path: iss.path ? [${S}, ...iss.path] : [${S}], 372 })) 373 ); 374 } 375 } else if (${v}.value === undefined) { 376 if (${S} in input) newResult[${S}] = undefined; 377 } else { 378 newResult[${S}] = ${v}.value; 379 } 380 `)}else{const v=m[b];h.write(`const ${v} = ${p(b)};`),h.write(` 381 if (${v}.issues.length) payload.issues = payload.issues.concat(${v}.issues.map(iss => ({ 382 ...iss, 383 path: iss.path ? [${Mo(b)}, ...iss.path] : [${Mo(b)}] 384 })));`),h.write(`newResult[${Mo(b)}] = ${v}.value`)}h.write("payload.value = newResult;"),h.write("return payload;");const y=h.compile();return(b,v)=>y(c,b,v)};let i;const o=wl,a=!e_.jitless,l=a&&dJ.value,u=t.catchall;let f;e._zod.parse=(c,h)=>{f??(f=n.value);const d=c.value;if(!o(d))return c.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),c;const p=[];if(a&&l&&(h==null?void 0:h.async)===!1&&h.jitless!==!0)i||(i=r(t.shape)),c=i(c,h);else{c.value={};const v=f.shape;for(const S of f.keys){const k=v[S],w=k._zod.run({value:d[S],issues:[]},h),C=k._zod.optin==="optional"&&k._zod.optout==="optional";w instanceof Promise?p.push(w.then(A=>C?_0(A,c,S,d):ds(A,c,S))):C?_0(w,c,S,d):ds(w,c,S)}}if(!u)return p.length?Promise.all(p).then(()=>c):c;const m=[],g=f.keySet,y=u._zod,b=y.def.type;for(const v of Object.keys(d)){if(g.has(v))continue;if(b==="never"){m.push(v);continue}const S=y.run({value:d[v],issues:[]},h);S instanceof Promise?p.push(S.then(k=>ds(k,c,v))):ds(S,c,v)}return m.length&&c.issues.push({code:"unrecognized_keys",keys:m,input:d,inst:e}),p.length?Promise.all(p).then(()=>c):c}});function T0(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;return t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(o=>_r(o,r,Sr())))}),t}const g_=O("$ZodUnion",(e,t)=>{Ne.init(e,t),Se(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Se(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Se(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),Se(e._zod,"pattern",()=>{if(t.options.every(n=>
vendor: 4,792 bytes, line 384
384n._zod.pattern)){const n=t.options.map(r=>r._zod.pattern);return new RegExp(`^(${n.map(r=>mp(r.source)).join("|")})$`)}}),e._zod.parse=(n,r)=>{let i=!1;const o=[];for(const a of t.options){const s=a._zod.run({value:n.value,issues:[]},r);if(s instanceof Promise)o.push(s),i=!0;else{if(s.issues.length===0)return s;o.push(s)}}return i?Promise.all(o).then(a=>T0(a,n,e,r)):T0(o,n,e,r)}}),GQ=O("$ZodDiscriminatedUnion",(e,t)=>{g_.init(e,t);const n=e._zod.parse;Se(e._zod,"propValues",()=>{const i={};for(const o of t.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(o)}"`);for(const[s,l]of Object.entries(a)){i[s]||(i[s]=new Set);for(const u of l)i[s].add(u)}}return i});const r=hp(()=>{const i=t.options,o=new Map;for(const a of i){const s=a._zod.propValues[t.discriminator];if(!s||s.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(const l of s){if(o.has(l))throw new Error(`Duplicate discriminator value "${String(l)}"`);o.set(l,a)}}return o});e._zod.parse=(i,o)=>{const a=i.value;if(!wl(a))return i.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),i;const s=r.value.get(a==null?void 0:a[t.discriminator]);return s?s._zod.run(i,o):t.unionFallback?n(i,o):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",input:a,path:[t.discriminator],inst:e}),i)}}),YQ=O("$ZodIntersection",(e,t)=>{Ne.init(e,t),e._zod.parse=(n,r)=>{const i=n.value,o=t.left._zod.run({value:i,issues:[]},r),a=t.right._zod.run({value:i,issues:[]},r);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([l,u])=>E0(n,l,u)):E0(n,o,a)}});function ad(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xl(e)&&xl(t)){const n=Object.keys(t),r=Object.keys(e).filter(o=>n.indexOf(o)!==-1),i={...e,...t};for(const o of r){const a=ad(e[o],t[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};i[o]=a.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const i=e[r],o=t[r],a=ad(i,o);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function E0(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Ho(e))return e;const r=ad(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const KQ=O("$ZodRecord",(e,t)=>{Ne.init(e,t),e._zod.parse=(n,r)=>{const i=n.value;if(!xl(i))return n.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),n;const o=[];if(t.keyType._zod.values){const a=t.keyType._zod.values;n.value={};for(const l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){const u=t.valueType._zod.run({value:i[l],issues:[]},r);u instanceof Promise?o.push(u.then(f=>{f.issues.length&&n.issues.push(...Zr(l,f.issues)),n.value[l]=f.value})):(u.issues.length&&n.issues.push(...Zr(l,u.issues)),n.value[l]=u.value)}let s;for(const l in i)a.has(l)||(s=s??[],s.push(l));s&&s.length>0&&n.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:s})}else{n.value={};for(const a of Reflect.ownKeys(i)){if(a==="__proto__")continue;const s=t.keyType._zod.run({value:a,issues:[]},r);if(s instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(s.issues.length){n.issues.push({origin:"record",code:"invalid_key",issues:s.issues.map(u=>_r(u,r,Sr())),input:a,path:[a],inst:e}),n.value[s.value]=s.value;continue}const l=t.valueType._zod.run({value:i[a],issues:[]},r);l instanceof Promise?o.push(l.then(u=>{u.issues.length&&n.issues.push(...Zr(a,u.issues)),n.value[s.value]=u.value})):(l.issues.length&&n.issues.push(...Zr(a,l.issues)),n.value[s.value]=l.value)}}return o.length?Promise.all(o).then(()=>n):n}}),XQ=O("$ZodEnum",(e,t)=>{Ne.init(e,t);const n=t_(t.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(r=>hJ.has(typeof r)).map(r=>typeof r=="string"?Fa(r):r.toString()).join("|")})$`),e._zod.parse=(r,i)=>{const o=r.value;return e._zod.values.has(o)||r.issues.push({code:"invalid_value",values:n,input:o,inst:e}),r}}),JQ=O("$ZodLiteral",(e,t)=>{Ne.init(e,t),e._zod.values=new Set(t.values),e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Fa(n):n?n.toString():String(n)).join("|")})$`),e._zod.parse=(n,r)=>{const i=n.value;return e._zod.values.has(i)||n.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),n}}),QQ=O("$ZodTransform",(e,t)=>{Ne.init(e,t),e._zod.parse=(n,r)=>
vendor: 8,649 bytes, line 384
384{const i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(a=>(n.value=a,n));if(i instanceof Promise)throw new ga;return n.value=i,n}}),eee=O("$ZodOptional",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${mp(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>t.innerType._zod.optin==="optional"?t.innerType._zod.run(n,r):n.value===void 0?n:t.innerType._zod.run(n,r)}),tee=O("$ZodNullable",(e,t)=>{Ne.init(e,t),Se(e._zod,"optin",()=>t.innerType._zod.optin),Se(e._zod,"optout",()=>t.innerType._zod.optout),Se(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${mp(n.source)}|null)$`):void 0}),Se(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),nee=O("$ZodDefault",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(n.value===void 0)return n.value=t.defaultValue,n;const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>C0(o,t)):C0(i,t)}});function C0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const ree=O("$ZodPrefault",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),iee=O("$ZodNonOptional",(e,t)=>{Ne.init(e,t),Se(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>A0(o,e)):A0(i,e)}});function A0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const oee=O("$ZodCatch",(e,t)=>{Ne.init(e,t),e._zod.optin="optional",Se(e._zod,"optout",()=>t.innerType._zod.optout),Se(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(o=>(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(a=>_r(a,r,Sr()))},input:n.value}),n.issues=[]),n)):(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(o=>_r(o,r,Sr()))},input:n.value}),n.issues=[]),n)}}),aee=O("$ZodPipe",(e,t)=>{Ne.init(e,t),Se(e._zod,"values",()=>t.in._zod.values),Se(e._zod,"optin",()=>t.in._zod.optin),Se(e._zod,"optout",()=>t.out._zod.optout),e._zod.parse=(n,r)=>{const i=t.in._zod.run(n,r);return i instanceof Promise?i.then(o=>M0(o,t,r)):M0(i,t,r)}});function M0(e,t,n){return Ho(e)?e:t.out._zod.run({value:e.value,issues:e.issues},n)}const see=O("$ZodReadonly",(e,t)=>{Ne.init(e,t),Se(e._zod,"propValues",()=>t.innerType._zod.propValues),Se(e._zod,"values",()=>t.innerType._zod.values),Se(e._zod,"optin",()=>t.innerType._zod.optin),Se(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,r)=>{const i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(P0):P0(i)}});function P0(e){return e.value=Object.freeze(e.value),e}const lee=O("$ZodLazy",(e,t)=>{Ne.init(e,t),Se(e._zod,"innerType",()=>t.getter()),Se(e._zod,"pattern",()=>e._zod.innerType._zod.pattern),Se(e._zod,"propValues",()=>e._zod.innerType._zod.propValues),Se(e._zod,"optin",()=>e._zod.innerType._zod.optin),Se(e._zod,"optout",()=>e._zod.innerType._zod.optout),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),uee=O("$ZodCustom",(e,t)=>{Ft.init(e,t),Ne.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(o=>I0(o,n,r,e));I0(i,n,r,e)}});function I0(e,t,n,r){if(!e){const i={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(i.params=r._zod.def.params),t.issues.push(ya(i))}}class y_{constructor(){this._map=new Map,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new Map,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};return delete r.id,{...r,...this._map.get(t)}}return this._map.get(t)}has(t){return this._map.has(t)}}function cee(){return new y_}const $o=cee();function fee(e,t){return new e({type:"string",...ee(t)})}function dee(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...ee(t)})}function $0(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...ee(t)})}function hee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...ee(t)})}function pee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...ee(t)})}function mee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...ee(t)})}function gee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...ee(t)})}function yee(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}function vee(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...ee(t)})}function bee(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...ee(t)})}function wee(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...ee(t)})}function xee(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...ee(t)})}function kee(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...ee(t)})}function See(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...ee(t)})}function _ee(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...ee(t)})}function Tee(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...ee(t)})}function Eee(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...ee(t)})}function Cee(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...ee(t)})}function Aee(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...ee(t)})}function Mee(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...ee(t)})}function Pee(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...ee(t)})}function Iee(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...ee(t)})}function $ee(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...ee(t)})}function Ree(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...ee(t)})}function Oee(e,t){return new e({type:"string",format:"date",check:"string_format",...ee(t)})}function Dee(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...ee(t)})}function Nee(e,t){return new e({type:"string",format:"duration",check:"string_format",...ee(t)})}function Lee(e,t){return new e({type:"number",checks:[],...ee(t)})}function zee(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...ee(t)})}function Fee(e,t){return new e({type:"boolean",...ee(t)})}function jee(e,t){return new e({type:"null",...ee(t)})}function Bee(e){return new e({type:"unknown"})}function Vee(e,t){return new e({type:"never",...ee(t)})}function R0(e,t){return new d_({check:"less_than",...ee(t),value:e,inclusive:!1})}function Rc(e,t){return new d_({check:"less_than",...ee(t),value:e,inclusive:!0})}function O0(e,t){return new h_({check:"greater_than",...ee(t),value:e,inclusive:!1})}function Oc(e,t){return new h_({check:"greater_than",...ee(t),value:e,inclusive:!0})}function D0(e,t){return new nQ({check:"multiple_of",...ee(t),value:e})}function v_(e,t){return new iQ({check:"max_length",...ee(t),maximum:e})}function kl(e,t){return new oQ({check:"min_length",...ee(t),minimum:e})}function b_(e,t){return new aQ({check:"length_equals",...ee(t),length:e})}function Uee(e,t){return new sQ({check:"string_format",format:"regex",...ee(t),pattern:e})}function Zee(e){return new lQ({check:"string_format",format:"lowercase",...ee(e)})}
384function qee(e){return new uQ({check:"string_format",format:"uppercase",...ee(e)})}function Wee(e,t){return new cQ({check:"string_format",format:"includes",...ee(t),includes:e})}function Hee(e,t){return new fQ({check:"string_format",format:"starts_with",...ee(t),prefix:e})}function Gee(e,t){return new dQ({check:"string_format",format:"ends_with",...ee(t),suffix:e})}function ja(e){return new hQ({check:"overwrite",tx:e})}function Yee(e){return ja(t=>t.normalize(e))}function Kee(){return ja(e=>e.trim())}function Xee(){return ja(e=>e.toLowerCase())}function Jee(){return ja(e=>e.toUpperCase())}function Qee(e,t,n){return new e({type:"array",element:t,...ee(n)})}function ete(e,t,n){const r=ee(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function tte(e,t,n){return new e({type:"custom",check:"custom",fn:t,...ee(n)})}class N0{constructor(t){this.counter=0,this.metadataRegistry=(t==null?void 0:t.metadata)??$o,this.target=(t==null?void 0:t.target)??"draft-2020-12",this.unrepresentable=(t==null?void 0:t.unrepresentable)??"throw",this.override=(t==null?void 0:t.override)??(()=>{}),this.io=(t==null?void 0:t.io)??"output",this.seen=new Map}process(t,n={path:[],schemaPath:[]}){var c,h,d;var r;const i=t._zod.def,o={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},a=this.seen.get(t);if(a)return a.count++,n.schemaPath.includes(t)&&(a.cycle=n.path),a.schema;const s={schema:{},count:1,cycle:void 0,path:n.path};this.seen.set(t,s);const l=(h=(c=t._zod).toJSONSchema)==null?void 0:h.call(c);if(l)s.schema=l;else{const p={...n,schemaPath:[...n.schemaPath,t],path:n.path},m=t._zod.parent;if(m)s.ref=m,this.process(m,p),this.seen.get(m).isParent=!0;else{const g=s.schema;switch(i.type){case"string":{const y=g;y.type="string";const{minimum:b,maximum:v,format:S,patterns:k,contentEncoding:w}=t._zod.bag;if(typeof b=="number"&&(y.minLength=b),typeof v=="number"&&(y.maxLength=v),S&&(y.format=o[S]??S,y.format===""&&delete y.format),w&&(y.contentEncoding=w),k&&k.size>0){const C=[...k];C.length===1?y.pattern=C[0].source:C.length>1&&(s.schema.allOf=[...C.map(A=>({...this.target==="draft-7"?{type:"string"}:{},pattern:A.source}))])}break}case"number":{const y=g,{minimum:b,maximum:v,format:S,multipleOf:k,exclusiveMaximum:w,exclusiveMinimum:C}=t._zod.bag;typeof S=="string"&&S.includes("int")?y.type="integer":y.type="number",typeof C=="number"&&(y.exclusiveMinimum=C),typeof b=="number"&&(y.minimum=b,typeof C=="number"&&(C>=b?delete y.minimum:delete y.exclusiveMinimum)),typeof w=="number"&&(y.exclusiveMaximum=w),typeof v=="number"&&(y.maximum=v,typeof w=="number"&&(w<=v?delete y.maximum:delete y.exclusiveMaximum)),typeof k=="number"&&(y.multipleOf=k);break}case"boolean":{const y=g;y.type="boolean";break}case"bigint":{if(this.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema");break}case"symbol":{if(this.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema");break}case"null":{g.type="null";break}case"any":break;case"unknown":break;case"undefined":{if(this.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema");break}case"void":{if(this.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema");break}case"never":{g.not={};break}case"date":{if(this.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema");break}case"array":{const y=g,{minimum:b,maximum:v}=t._zod.bag;typeof b=="number"&&(y.minItems=b),typeof v=="number"&&(y.maxItems=v),y.type="array",y.items=this.process(i.element,{...p,path:[...p.path,"items"]});break}case"object":{const y=g;y.type="object",y.properties={};const b=i.shape;for(const k in b)y.properties[k]=this.process(b[k],{...p,path:[...p.path,"properties",k]});const v=new Set(Object.keys(b)),S=new Set([...v].filter(k=>{const w=i.shape[k]._zod;return this.io==="input"?w.optin===void 0:w.optout===void 0}));S.size>0&&(y.required=Array.from(S)),((d=i.catchall)==null?void 0:d._zod.def.type)==="never"?y.additionalProperties=!1:i.catchall?i.catchall&&(y.additionalProperties=this.process(i.catchall,{...p,path:[...p.path,"additionalProperties"]})):this.io==="output"&&(y.additionalProperties=!1);break}case"union":{const y=g;y.anyOf=i.options.map((b,v)=>this.process(b,{...p,path:[...p.path,"anyOf",v]}));break}case"intersection":{const y=g,b=this.process(i.left,{...p,path:[...p.path,"allOf",0]}),v=this.process(i.right,{...p,path:[...p.path,"allOf",1]}),S=w=>"allOf"in w&&Object.keys(w).length===1,k=[...S(b)?b.allOf:[b],...S(v)?v.allOf:[v]];y.allOf=k;break}case"tuple":{const y=g;y.type="array";const b=i.items.map((k,w)=>this.process(k,{...p,path:[...p.path,"prefixItems",w]}));
384if(this.target==="draft-2020-12"?y.prefixItems=b:y.items=b,i.rest){const k=this.process(i.rest,{...p,path:[...p.path,"items"]});this.target==="draft-2020-12"?y.items=k:y.additionalItems=k}i.rest&&(y.items=this.process(i.rest,{...p,path:[...p.path,"items"]}));const{minimum:v,maximum:S}=t._zod.bag;typeof v=="number"&&(y.minItems=v),typeof S=="number"&&(y.maxItems=S);break}case"record":{const y=g;y.type="object",y.propertyNames=this.process(i.keyType,{...p,path:[...p.path,"propertyNames"]}),y.additionalProperties=this.process(i.valueType,{...p,path:[...p.path,"additionalProperties"]});break}case"map":{if(this.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema");break}case"set":{if(this.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema");break}case"enum":{const y=g,b=t_(i.entries);b.every(v=>typeof v=="number")&&(y.type="number"),b.every(v=>typeof v=="string")&&(y.type="string"),y.enum=b;break}case"literal":{const y=g,b=[];for(const v of i.values)if(v===void 0){if(this.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof v=="bigint"){if(this.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");b.push(Number(v))}else b.push(v);if(b.length!==0)if(b.length===1){const v=b[0];y.type=v===null?"null":typeof v,y.const=v}else b.every(v=>typeof v=="number")&&(y.type="number"),b.every(v=>typeof v=="string")&&(y.type="string"),b.every(v=>typeof v=="boolean")&&(y.type="string"),b.every(v=>v===null)&&(y.type="null"),y.enum=b;break}case"file":{const y=g,b={type:"string",format:"binary",contentEncoding:"binary"},{minimum:v,maximum:S,mime:k}=t._zod.bag;v!==void 0&&(b.minLength=v),S!==void 0&&(b.maxLength=S),k?k.length===1?(b.contentMediaType=k[0],Object.assign(y,b)):y.anyOf=k.map(w=>({...b,contentMediaType:w})):Object.assign(y,b);break}case"transform":{if(this.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema");break}case"nullable":{const y=this.process(i.innerType,p);g.anyOf=[y,{type:"null"}];break}case"nonoptional":{this.process(i.innerType,p),s.ref=i.innerType;break}case"success":{const y=g;y.type="boolean";break}case"default":{this.process(i.innerType,p),s.ref=i.innerType,g.default=JSON.parse(JSON.stringify(i.defaultValue));break}case"prefault":{this.process(i.innerType,p),s.ref=i.innerType,this.io==="input"&&(g._prefault=JSON.parse(JSON.stringify(i.defaultValue)));break}case"catch":{this.process(i.innerType,p),s.ref=i.innerType;let y;try{y=i.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}g.default=y;break}case"nan":{if(this.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema");break}case"template_literal":{const y=g,b=t._zod.pattern;if(!b)throw new Error("Pattern not found in template literal");y.type="string",y.pattern=b.source;break}case"pipe":{const y=this.io==="input"?i.in._zod.def.type==="transform"?i.out:i.in:i.out;this.process(y,p),s.ref=y;break}case"readonly":{this.process(i.innerType,p),s.ref=i.innerType,g.readOnly=!0;break}case"promise":{this.process(i.innerType,p),s.ref=i.innerType;break}case"optional":{this.process(i.innerType,p),s.ref=i.innerType;break}case"lazy":{const y=t._zod.innerType;this.process(y,p),s.ref=y;break}case"custom":{if(this.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema");break}}}}const u=this.metadataRegistry.get(t);return u&&Object.assign(s.schema,u),this.io==="input"&&ot(t)&&(delete s.schema.examples,delete s.schema.default),this.io==="input"&&s.schema._prefault&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,this.seen.get(t).schema}emit(t,n){var f,c,h,d,p,m;const r={cycles:(n==null?void 0:n.cycles)??"ref",reused:(n==null?void 0:n.reused)??"inline",external:(n==null?void 0:n.external)??void 0},i=this.seen.get(t);if(!i)throw new Error("Unprocessed schema. This is a bug in Zod.");const o=g=>{var k;const y=this.target==="draft-2020-12"?"$defs":"definitions";if(r.external){const w=(k=r.external.registry.get(g[0]))==null?void 0:k.id,C=r.external.uri??(
384R=>R);if(w)return{ref:C(w)};const A=g[1].defId??g[1].schema.id??`schema${this.counter++}`;return g[1].defId=A,{defId:A,ref:`${C("__shared")}#/${y}/${A}`}}if(g[1]===i)return{ref:"#"};const v=`#/${y}/`,S=g[1].schema.id??`__schema${this.counter++}`;return{defId:S,ref:v+S}},a=g=>{if(g[1].schema.$ref)return;const y=g[1],{ref:b,defId:v}=o(g);y.def={...y.schema},v&&(y.defId=v);const S=y.schema;for(const k in S)delete S[k];S.$ref=b};if(r.cycles==="throw")for(const g of this.seen.entries()){const y=g[1];if(y.cycle)throw new Error(`Cycle detected: #/${(f=y.cycle)==null?void 0:f.join("/")}/<root> 385 386Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const g of this.seen.entries()){const y=g[1];if(t===g[0]){a(g);continue}if(r.external){const v=(c=r.external.registry.get(g[0]))==null?void 0:c.id;if(t!==g[0]&&v){a(g);continue}}if((h=this.metadataRegistry.get(g[0]))==null?void 0:h.id){a(g);continue}if(y.cycle){a(g);continue}if(y.count>1&&r.reused==="ref"){a(g);continue}}const s=(g,y)=>{const b=this.seen.get(g),v=b.def??b.schema,S={...v};if(b.ref===null)return;const k=b.ref;if(b.ref=null,k){s(k,y);const w=this.seen.get(k).schema;w.$ref&&y.target==="draft-7"?(v.allOf=v.allOf??[],v.allOf.push(w)):(Object.assign(v,w),Object.assign(v,S))}b.isParent||this.override({zodSchema:g,jsonSchema:v,path:b.path??[]})};for(const g of[...this.seen.entries()].reverse())s(g[0],{target:this.target});const l={};if(this.target==="draft-2020-12"?l.$schema="https://json-schema.org/draft/2020-12/schema":this.target==="draft-7"?l.$schema="http://json-schema.org/draft-07/schema#":console.warn(`Invalid target: ${this.target}`),(d=r.external)!=null&&d.uri){const g=(p=r.external.registry.get(t))==null?void 0:p.id;if(!g)throw new Error("Schema is missing an `id` property");l.$id=r.external.uri(g)}Object.assign(l,i.def);const u=((m=r.external)==null?void 0:m.defs)??{};for(const g of this.seen.entries()){const y=g[1];y.def&&y.defId&&(u[y.defId]=y.def)}r.external||Object.keys(u).length>0&&(this.target==="draft-2020-12"?l.$defs=u:l.definitions=u);try{return JSON.parse(JSON.stringify(l))}catch{throw new Error("Error converting schema to JSON.")}}}function nte(e,t){if(e instanceof y_){const r=new N0(t),i={};
386for(const s of e._idmap.entries()){const[l,u]=s;r.process(u)}const o={},a={registry:e,uri:t==null?void 0:t.uri,defs:i};for(const s of e._idmap.entries()){const[l,u]=s;o[l]=r.emit(u,{...t,external:a})}if(Object.keys(i).length>0){const s=r.target==="draft-2020-12"?"$defs":"definitions";o.__shared={[s]:i}}return{schemas:o}}const n=new N0(t);return n.process(e),n.emit(e,t)}function ot(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const i=e._zod.def;switch(i.type){case"string":case"number":case"bigint":case"boolean":case"date":case"symbol":case"undefined":case"null":case"any":case"unknown":case"never":case"void":case"literal":case"enum":case"nan":case"file":case"template_literal":return!1;case"array":return ot(i.element,n);case"object":{for(const o in i.shape)if(ot(i.shape[o],n))return!0;return!1}case"union":{for(const o of i.options)if(ot(o,n))return!0;return!1}case"intersection":return ot(i.left,n)||ot(i.right,n);case"tuple":{for(const o of i.items)if(ot(o,n))return!0;return!!(i.rest&&ot(i.rest,n))}case"record":return ot(i.keyType,n)||ot(i.valueType,n);case"map":return ot(i.keyType,n)||ot(i.valueType,n);case"set":return ot(i.valueType,n);case"promise":case"optional":case"nonoptional":case"nullable":case"readonly":return ot(i.innerType,n);case"lazy":return ot(i.getter(),n);case"default":return ot(i.innerType,n);case"prefault":return ot(i.innerType,n);case"custom":return!1;case"transform":return!0;case"pipe":return ot(i.in,n)||ot(i.out,n);case"success":return!1;case"catch":return!1}throw new Error(`Unknown schema type: ${i.type}`)}const rte=O("ZodISODateTime",(e,t)=>{CQ.init(e,t),Ge.init(e,t)});function ite(e){return Ree(rte,e)}const ote=O("ZodISODate",(e,t)=>{AQ.init(e,t),Ge.init(e,t)});function ate(e){return Oee(ote,e)}const ste=O("ZodISOTime",(e,t)=>{MQ.init(e,t),Ge.init(e,t)});function lte(e){return Dee(ste,e)}const ute=O("ZodISODuration",(e,t)=>{PQ.init(e,t),Ge.init(e,t)});function cte(e){return Nee(ute,e)}const fte=(e,t)=>{i_.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>SJ(e,n)},flatten:{value:n=>kJ(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},bu=O("ZodError",fte,{Parent:Error}),dte=_J(bu),hte=TJ(bu),pte=a_(bu),w_=s_(bu),qe=O("ZodType",(e,t)=>(Ne.init(e,t),e.def=t,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone({...t,checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]}),e.clone=(n,r)=>oi(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>dte(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>pte(e,n,r),e.parseAsync=async(n,r)=>hte(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>w_(e,n,r),e.spa=e.safeParseAsync,e.refine=(n,r)=>e.check(une(n,r)),e.superRefine=n=>e.check(cne(n)),e.overwrite=n=>e.check(ja(n)),e.optional=()=>F0(e),e.nullable=()=>j0(e),e.nullish=()=>F0(j0(e)),e.nonoptional=n=>ene(e,n),e.array=()=>fo(e),e.or=n=>Mt([e,n]),e.and=n=>Zte(e,n),e.transform=n=>B0(e,Gte(n)),e.default=n=>Xte(e,n),e.prefault=n=>Qte(e,n),e.catch=n=>nne(e,n),e.pipe=n=>B0(e,n),e.readonly=()=>one(e),e.describe=n=>{const r=e.clone();return $o.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=$o.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return $o.get(e);const r=e.clone();return $o.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),x_=O("_ZodString",(e,t)=>{yp.init(e,t),qe.init(e,t);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Uee(...r)),e.includes=(...r)=>e.check(Wee(...r)),e.startsWith=(...r)=>e.check(Hee(...r)),e.endsWith=(...r)=>e.check(Gee(...r)),e.min=(...r)=>e.check(kl(...r)),e.max=(...r)=>e.check(v_(...r)),e.length=(...r)=>e.check(b_(...r)),e.nonempty=(...r)=>e.check(kl(1,...r)),e.lowercase=r=>e.check(Zee(r)),e.uppercase=r=>e.check(qee(r)),e.trim=()=>e.check(Kee()),e.normalize=(...r)=>e.check(Yee(...r)),e.toLowerCase=()=>e.check(Xee()),e.toUpperCase=()=>e.check(Jee())}),mte=O("ZodString",(e,t)=>{yp.init(e,t),x_.init(e,t),e.email=n=>e.check(dee(gte,n)),e.url=n=>e.check(yee(yte,n)),e.jwt=n=>e.check($ee($te,n)),e.emoji=n=>e.check(vee(vte,n)),e.guid=n=>e.check($0(L0,n)),e.uuid=n=>e.check(hee(hs,n)),e.uuidv4=n=>e.check(pee(hs,n)),e.uuidv6=n=>e.check(mee(hs,n)),e.uuidv7=n=>e.check(gee(hs,n)),e.nanoid=n=>e.check(bee(bte,n)),e.guid=n=>e.check($0(L0,n)),e.cuid=n=>e.check(wee(wte,n)),e.cuid2=n=>
vendor: 4,832 bytes, line 386
386e.check(xee(xte,n)),e.ulid=n=>e.check(kee(kte,n)),e.base64=n=>e.check(Mee(Mte,n)),e.base64url=n=>e.check(Pee(Pte,n)),e.xid=n=>e.check(See(Ste,n)),e.ksuid=n=>e.check(_ee(_te,n)),e.ipv4=n=>e.check(Tee(Tte,n)),e.ipv6=n=>e.check(Eee(Ete,n)),e.cidrv4=n=>e.check(Cee(Cte,n)),e.cidrv6=n=>e.check(Aee(Ate,n)),e.e164=n=>e.check(Iee(Ite,n)),e.datetime=n=>e.check(ite(n)),e.date=n=>e.check(ate(n)),e.time=n=>e.check(lte(n)),e.duration=n=>e.check(cte(n))});function Z(e){return fee(mte,e)}const Ge=O("ZodStringFormat",(e,t)=>{Ze.init(e,t),x_.init(e,t)}),gte=O("ZodEmail",(e,t)=>{vQ.init(e,t),Ge.init(e,t)}),L0=O("ZodGUID",(e,t)=>{gQ.init(e,t),Ge.init(e,t)}),hs=O("ZodUUID",(e,t)=>{yQ.init(e,t),Ge.init(e,t)}),yte=O("ZodURL",(e,t)=>{bQ.init(e,t),Ge.init(e,t)}),vte=O("ZodEmoji",(e,t)=>{wQ.init(e,t),Ge.init(e,t)}),bte=O("ZodNanoID",(e,t)=>{xQ.init(e,t),Ge.init(e,t)}),wte=O("ZodCUID",(e,t)=>{kQ.init(e,t),Ge.init(e,t)}),xte=O("ZodCUID2",(e,t)=>{SQ.init(e,t),Ge.init(e,t)}),kte=O("ZodULID",(e,t)=>{_Q.init(e,t),Ge.init(e,t)}),Ste=O("ZodXID",(e,t)=>{TQ.init(e,t),Ge.init(e,t)}),_te=O("ZodKSUID",(e,t)=>{EQ.init(e,t),Ge.init(e,t)}),Tte=O("ZodIPv4",(e,t)=>{IQ.init(e,t),Ge.init(e,t)}),Ete=O("ZodIPv6",(e,t)=>{$Q.init(e,t),Ge.init(e,t)}),Cte=O("ZodCIDRv4",(e,t)=>{RQ.init(e,t),Ge.init(e,t)}),Ate=O("ZodCIDRv6",(e,t)=>{OQ.init(e,t),Ge.init(e,t)}),Mte=O("ZodBase64",(e,t)=>{DQ.init(e,t),Ge.init(e,t)}),Pte=O("ZodBase64URL",(e,t)=>{LQ.init(e,t),Ge.init(e,t)}),Ite=O("ZodE164",(e,t)=>{zQ.init(e,t),Ge.init(e,t)}),$te=O("ZodJWT",(e,t)=>{jQ.init(e,t),Ge.init(e,t)}),k_=O("ZodNumber",(e,t)=>{m_.init(e,t),qe.init(e,t),e.gt=(r,i)=>e.check(O0(r,i)),e.gte=(r,i)=>e.check(Oc(r,i)),e.min=(r,i)=>e.check(Oc(r,i)),e.lt=(r,i)=>e.check(R0(r,i)),e.lte=(r,i)=>e.check(Rc(r,i)),e.max=(r,i)=>e.check(Rc(r,i)),e.int=r=>e.check(z0(r)),e.safe=r=>e.check(z0(r)),e.positive=r=>e.check(O0(0,r)),e.nonnegative=r=>e.check(Oc(0,r)),e.negative=r=>e.check(R0(0,r)),e.nonpositive=r=>e.check(Rc(0,r)),e.multipleOf=(r,i)=>e.check(D0(r,i)),e.step=(r,i)=>e.check(D0(r,i)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function Rte(e){return Lee(k_,e)}const Ote=O("ZodNumberFormat",(e,t)=>{BQ.init(e,t),k_.init(e,t)});function z0(e){return zee(Ote,e)}const Dte=O("ZodBoolean",(e,t)=>{VQ.init(e,t),qe.init(e,t)});function _t(e){return Fee(Dte,e)}const Nte=O("ZodNull",(e,t)=>{UQ.init(e,t),qe.init(e,t)});function Lte(e){return jee(Nte,e)}const zte=O("ZodUnknown",(e,t)=>{ZQ.init(e,t),qe.init(e,t)});function Cn(){return Bee(zte)}const Fte=O("ZodNever",(e,t)=>{qQ.init(e,t),qe.init(e,t)});function S_(e){return Vee(Fte,e)}const jte=O("ZodArray",(e,t)=>{WQ.init(e,t),qe.init(e,t),e.element=t.element,e.min=(n,r)=>e.check(kl(n,r)),e.nonempty=n=>e.check(kl(1,n)),e.max=(n,r)=>e.check(v_(n,r)),e.length=(n,r)=>e.check(b_(n,r)),e.unwrap=()=>e.element});function fo(e,t){return Qee(jte,e,t)}const __=O("ZodObject",(e,t)=>{HQ.init(e,t),qe.init(e,t),Se(e,"shape",()=>t.shape),e.keyof=()=>E_(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Cn()}),e.loose=()=>e.clone({...e._zod.def,catchall:Cn()}),e.strict=()=>e.clone({...e._zod.def,catchall:S_()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>vJ(e,n),e.merge=n=>bJ(e,n),e.pick=n=>gJ(e,n),e.omit=n=>yJ(e,n),e.partial=(...n)=>wJ(C_,e,n[0]),e.required=(...n)=>xJ(A_,e,n[0])});function Ce(e,t){const n={type:"object",get shape(){return yu(this,"shape",{...e}),this.shape},...ee(t)};return new __(n)}function ze(e,t){return new __({type:"object",get shape(){return yu(this,"shape",{...e}),this.shape},catchall:S_(),...ee(t)})}const T_=O("ZodUnion",(e,t)=>{g_.init(e,t),qe.init(e,t),e.options=t.options});function Mt(e,t){return new T_({type:"union",options:e,...ee(t)})}const Bte=O("ZodDiscriminatedUnion",(e,t)=>{T_.init(e,t),GQ.init(e,t)});function Vte(e,t,n){return new Bte({type:"union",options:t,discriminator:e,...ee(n)})}const Ute=O("ZodIntersection",(e,t)=>{YQ.init(e,t),qe.init(e,t)});function Zte(e,t){return new Ute({type:"intersection",left:e,right:t})}const qte=O("ZodRecord",(e,t)=>{KQ.init(e,t),qe.init(e,t),e.keyType=t.keyType,e.valueType=t.valueType});function va(e,t,n){return new qte({type:"record",keyType:e,valueType:t,...ee(n)})}const sd=O("ZodEnum",(e,t)=>{XQ.init(e,t),qe.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,i)=>{const o={};for(const a of r)if(n.has(a))o[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);
vendor: 4,399 bytes, line 386
386return new sd({...t,checks:[],...ee(i),entries:o})},e.exclude=(r,i)=>{const o={...t.entries};for(const a of r)if(n.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new sd({...t,checks:[],...ee(i),entries:o})}});function E_(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new sd({type:"enum",entries:n,...ee(t)})}const Wte=O("ZodLiteral",(e,t)=>{JQ.init(e,t),qe.init(e,t),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function oe(e,t){return new Wte({type:"literal",values:Array.isArray(e)?e:[e],...ee(t)})}const Hte=O("ZodTransform",(e,t)=>{QQ.init(e,t),qe.init(e,t),e._zod.parse=(n,r)=>{n.addIssue=o=>{if(typeof o=="string")n.issues.push(ya(o,n.value,t));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),a.continue??(a.continue=!0),n.issues.push(ya(a))}};const i=t.transform(n.value,n);return i instanceof Promise?i.then(o=>(n.value=o,n)):(n.value=i,n)}});function Gte(e){return new Hte({type:"transform",transform:e})}const C_=O("ZodOptional",(e,t)=>{eee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function F0(e){return new C_({type:"optional",innerType:e})}const Yte=O("ZodNullable",(e,t)=>{tee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function j0(e){return new Yte({type:"nullable",innerType:e})}const Kte=O("ZodDefault",(e,t)=>{nee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Xte(e,t){return new Kte({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const Jte=O("ZodPrefault",(e,t)=>{ree.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Qte(e,t){return new Jte({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():t}})}const A_=O("ZodNonOptional",(e,t)=>{iee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType});function ene(e,t){return new A_({type:"nonoptional",innerType:e,...ee(t)})}const tne=O("ZodCatch",(e,t)=>{oee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function nne(e,t){return new tne({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const rne=O("ZodPipe",(e,t)=>{aee.init(e,t),qe.init(e,t),e.in=t.in,e.out=t.out});function B0(e,t){return new rne({type:"pipe",in:e,out:t})}const ine=O("ZodReadonly",(e,t)=>{see.init(e,t),qe.init(e,t)});function one(e){return new ine({type:"readonly",innerType:e})}const ane=O("ZodLazy",(e,t)=>{lee.init(e,t),qe.init(e,t),e.unwrap=()=>e._zod.def.getter()});function sne(e){return new ane({type:"lazy",getter:e})}const vp=O("ZodCustom",(e,t)=>{uee.init(e,t),qe.init(e,t)});function lne(e){const t=new Ft({check:"custom"});return t._zod.check=e,t}function M_(e,t){return ete(vp,e??(()=>!0),t)}function une(e,t={}){return tte(vp,e,t)}function cne(e){const t=lne(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(ya(r,n.value,t._zod.def));else{const i=r;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),i.input??(i.input=n.value),i.inst??(i.inst=t),i.continue??(i.continue=!t._zod.def.abort),n.issues.push(ya(i))}},e(n.value,n)));return t}function Sl(e,t={error:`Input not instance of ${e.name}`}){const n=new vp({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...ee(t)});return n._zod.bag.Class=e,n}var ue;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(ue||(ue={}));
386class V0 extends Error{constructor(t,n){super(t),this.name="ParseError",this.type=n.type,this.field=n.field,this.value=n.value,this.line=n.line}}function Dc(e){}function fne(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=Dc,onError:n=Dc,onRetry:r=Dc,onComment:i}=e;let o="",a=!0,s,l="",u="";function f(m){const g=a?m.replace(/^\xEF\xBB\xBF/,""):m,[y,b]=dne(`${o}${g}`);for(const v of y)c(v);o=b,a=!1}function c(m){if(m===""){d();return}if(m.startsWith(":")){i&&i(m.slice(m.startsWith(": ")?2:1));return}const g=m.indexOf(":");if(g!==-1){const y=m.slice(0,g),b=m[g+1]===" "?2:1,v=m.slice(g+b);h(y,v,m);return}h(m,"",m)}function h(m,g,y){switch(m){case"event":u=g;break;case"data":l=`${l}${g} 387`;break;case"id":s=g.includes("\0")?void 0:g;break;case"retry":/^\d+$/.test(g)?r(parseInt(g,10)):n(new V0(`Invalid \`retry\` value: "${g}"`,{type:"invalid-retry",value:g,line:y}));break;default:n(new V0(`Unknown field "${m.length>20?`${m.slice(0,20)}…`:m}"`,{type:"unknown-field",field:m,value:g,line:y}));break}}function d(){l.length>0&&t({id:s,event:u||void 0,data:l.endsWith(` 388`)?l.slice(0,-1):l}),s=void 0,l="",u=""}function p(m={}){o&&m.consume&&c(o),a=!0,s=void 0,l="",u="",o=""}return{feed:f,reset:p}}function dne(e){const t=[];let n="",r=0;for(;r<e.length;){const i=e.indexOf("\r",r),o=e.indexOf(` 389`,r);let a=-1;if(i!==-1&&o!==-1?a=Math.min(i,o):i!==-1?i===e.length-1?a=-1:a=i:o!==-1&&(a=o),a===-1){n=e.slice(r);break}else{const s=e.slice(r,a);t.push(s),r=a+1,e[r-1]==="\r"&&e[r]===` 390`&&r++}}return[t,n]}class hne extends TransformStream{constructor({onError:t,onRetry:n,onComment:r}={}){let i;super({start(o){i=fne({onEvent:a=>{o.enqueue(a)},onError(a){t==="terminate"?o.error(a):typeof t=="function"&&t(a)},onRetry:n,onComment:r})},transform(o){i.feed(o)}})}}var Ba=({prefix:e,size:t=16,alphabet:n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const i=()=>{const o=n.length,a=new Array(t);for(let s=0;s<t;s++)a[s]=n[Math.random()*o|0];return a.join("")};if(e==null)return i;if(n.includes(r))throw new sJ({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${n}".`});return()=>`${e}${r}${i()}`},pne=Ba();function hi(e){if(e==null)return{};const t={};if(e instanceof Headers)e.forEach((n,r)=>{t[r.toLowerCase()]=n});else{Array.isArray(e)||(e=Object.entries(e));for(const[n,r]of e)r!=null&&(t[n.toLowerCase()]=r)}return t}var mne=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,gne=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function U0(e){const t=JSON.parse(e);return t===null||typeof t!="object"||mne.test(e)===!1&&gne.test(e)===!1?t:yne(t)}function yne(e){let t=[e];for(;t.length;){const n=t;t=[];for(const r of n){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const i in r){const o=r[i];o&&typeof o=="object"&&t.push(o)}}}return e}function vne(e){const{stackTraceLimit:t}=Error;try{Error.stackTraceLimit=0}catch{return U0(e)}try{return U0(e)}finally{Error.stackTraceLimit=t}}function bp(e){if(e.type==="object"||Array.isArray(e.type)&&e.type.includes("object")){e.additionalProperties=!1;const{properties:n}=e;if(n!=null)for(const r of Object.keys(n))n[r]=Or(n[r])}e.items!=null&&(e.items=Array.isArray(e.items)?e.items.map(Or):Or(e.items)),e.anyOf!=null&&(e.anyOf=e.anyOf.map(Or)),e.allOf!=null&&(e.allOf=e.allOf.map(Or)),e.oneOf!=null&&(e.oneOf=e.oneOf.map(Or));const{definitions:t}=e;if(t!=null)for(const n of Object.keys(t))t[n]=Or(t[n]);return e}function Or(e){return typeof e=="boolean"?e:bp(e)}var bne=Symbol("Let zodToJsonSchema decide on which parser to use"),Z0={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},wne=e=>typeof e=="string"?{...Z0,name:e}:{...Z0,...e};function Ht(){return{}}function xne(e,t){var n,r,i;const o={type:"array"};return(n=e.type)!=null&&n._def&&((i=(r=e.type)==null?void 0:r._def)==null?void 0:i.typeName)!==ue.ZodAny&&(o.items=_e(e.type._def,{...t,currentPath:[...t.currentPath,"items"]})),e.minLength&&(o.minItems=e.minLength.value),e.maxLength&&(o.maxItems=e.maxLength.value),e.exactLength&&(o.minItems=e.exactLength.value,o.maxItems=e.exactLength.value),o}function kne(e){const t={type:"integer",format:"int64"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function Sne(){return{type:"boolean"}}function P_(e,t){return _e(e.type._def,t)}var _ne=(e,t)=>_e(e.innerType._def,t);function I_(e,t,n){const r=n??t.dateStrategy;if(Array.isArray(r))return{anyOf:r.map((i,o)=>I_(e,t,i))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Tne(e)}}var Tne=e=>{const t={type:"integer",format:"unix-time"};for(const n of e.checks)switch(n.kind){case"min":t.minimum=n.value;break;case"max":t.maximum=n.value;break}return t};function Ene(e,t){return{..._e(e.innerType._def,t),default:e.defaultValue()}}function Cne(e,t){return t.effectStrategy==="input"?_e(e.schema._def,t):Ht()}function Ane(e){return{type:"string",enum:Array.from(e.values)}}var Mne=e=>"type"in e&&e.type==="string"?!1:"allOf"in e;function Pne(e,t){const n=[_e(e.left._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),_e(e.right._def,{...t,currentPath:[...t.currentPath,"allOf","1"]})].filter(i=>!!i),r=[];
vendor: 25,288 bytes, lines 390-394
390return n.forEach(i=>{if(Mne(i))r.push(...i.allOf);else{let o=i;if("additionalProperties"in i&&i.additionalProperties===!1){const{additionalProperties:a,...s}=i;o=s}r.push(o)}}),r.length?{allOf:r}:void 0}function Ine(e){const t=typeof e.value;return t!=="bigint"&&t!=="number"&&t!=="boolean"&&t!=="string"?{type:Array.isArray(e.value)?"array":"object"}:{type:t==="bigint"?"integer":t,const:e.value}}var Nc=void 0,hn={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(Nc===void 0&&(Nc=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),Nc),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function $_(e,t){const n={type:"string"};if(e.checks)for(const r of e.checks)switch(r.kind){case"min":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value;break;case"max":n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"email":switch(t.emailStrategy){case"format:email":pn(n,"email",r.message,t);break;case"format:idn-email":pn(n,"idn-email",r.message,t);break;case"pattern:zod":St(n,hn.email,r.message,t);break}break;case"url":pn(n,"uri",r.message,t);break;case"uuid":pn(n,"uuid",r.message,t);break;case"regex":St(n,r.regex,r.message,t);break;case"cuid":St(n,hn.cuid,r.message,t);break;case"cuid2":St(n,hn.cuid2,r.message,t);break;case"startsWith":St(n,RegExp(`^${Lc(r.value,t)}`),r.message,t);break;case"endsWith":St(n,RegExp(`${Lc(r.value,t)}$`),r.message,t);break;case"datetime":pn(n,"date-time",r.message,t);break;case"date":pn(n,"date",r.message,t);break;case"time":pn(n,"time",r.message,t);break;case"duration":pn(n,"duration",r.message,t);break;case"length":n.minLength=typeof n.minLength=="number"?Math.max(n.minLength,r.value):r.value,n.maxLength=typeof n.maxLength=="number"?Math.min(n.maxLength,r.value):r.value;break;case"includes":{St(n,RegExp(Lc(r.value,t)),r.message,t);break}case"ip":{r.version!=="v6"&&pn(n,"ipv4",r.message,t),r.version!=="v4"&&pn(n,"ipv6",r.message,t);break}case"base64url":St(n,hn.base64url,r.message,t);break;case"jwt":St(n,hn.jwt,r.message,t);break;case"cidr":{r.version!=="v6"&&St(n,hn.ipv4Cidr,r.message,t),r.version!=="v4"&&St(n,hn.ipv6Cidr,r.message,t);break}case"emoji":St(n,hn.emoji(),r.message,t);break;case"ulid":{St(n,hn.ulid,r.message,t);break}case"base64":{switch(t.base64Strategy){case"format:binary":{pn(n,"binary",r.message,t);break}case"contentEncoding:base64":{n.contentEncoding="base64";break}case"pattern:zod":{St(n,hn.base64,r.message,t);break}}break}case"nanoid":St(n,hn.nanoid,r.message,t)}return n}function Lc(e,t){return t.patternStrategy==="escape"?Rne(e):e}var $ne=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function Rne(e){let t="";for(let n=0;n<e.length;n++)$ne.has(e[n])||(t+="\\"),t+=e[n];return t}function pn(e,t,n,r){var i;e.format||(i=e.anyOf)!=null&&i.some(o=>o.format)?(e.anyOf||(e.anyOf=[]),e.format&&(e.anyOf.push({format:e.format}),delete e.format),e.anyOf.push({format:t,...n&&r.errorMessages&&{errorMessage:{format:n}}})):e.format=t}function St(e,t,n,r){var i;e.pattern||(i=e.allOf)!=null&&i.some(o=>o.pattern)?(e.allOf||(e.allOf=[]),e.pattern&&(e.allOf.push({pattern:e.pattern}),delete e.pattern),e.allOf.push({pattern:q0(t,r),...n&&r.errorMessages&&{errorMessage:{pattern:n}}})):e.pattern=q0(t,r)}function q0(e,t){var n;if(!t.applyRegexFlags||!e.flags)return e.source;const r={i:e.flags.includes("i"),m:e.flags.includes("m"),s:e.flags.includes("s")},i=r.i?e.source.toLowerCase():e.source;let o="",a=!1,s=!1,l=!1;for(let u=0;u<i.length;u++){if(a){o+=i[u],a=!1;continue}if(r.i){if(s){if(i[u].match(/[a-z]/)){l?(o+=i[u],o+=`${i[u-2]}-${i[u]}`.toUpperCase(),l=!1):i[u+1]==="-"&&((n=i[u+2])!=null&&n.match(/[a-z]/))?(o+=i[u],l=!0):o+=`${i[u]}${i[u].toUpperCase()}`;continue}}else if(i[u].match(/[a-z]/)){o+=`[${i[u]}${i[u].toUpperCase()}]`;continue}}if(r.m){if(i[u]==="^"){o+=`(^|(?<=[\r 391]))`;continue}else if(i[u]==="$"){o+=`($|(?=[\r 392]))`;continue}}if(r.s&&i[u]==="."){o+=s?`${i[u]}\r 393`:`[${i[u]}\r 394]`;continue}o+=i[u],i[u]==="\\"?a=!0:s&&i[u]==="]"?s=!1:!s&&i[u]==="["&&(s=!0)}try{new RegExp(o)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`),e.source}return o}function R_(e,t){var n,r,i,o,a,s;const l={type:"object",additionalProperties:(n=_e(e.valueType._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]}))!=null?n:t.allowedAdditionalProperties};if(((r=e.keyType)==null?void 0:r._def.typeName)===ue.ZodString&&((i=e.keyType._def.checks)!=null&&i.length)){const{type:u,...f}=$_(e.keyType._def,t);return{...l,propertyNames:f}}else{if(((o=e.keyType)==null?void 0:o._def.typeName)===ue.ZodEnum)return{...l,propertyNames:{enum:e.keyType._def.values}};if(((a=e.keyType)==null?void 0:a._def.typeName)===ue.ZodBranded&&e.keyType._def.type._def.typeName===ue.ZodString&&((s=e.keyType._def.type._def.checks)!=null&&s.length)){const{type:u,...f}=P_(e.keyType._def,t);return{...l,propertyNames:f}}}return l}function One(e,t){if(t.mapStrategy==="record")return R_(e,t);const n=_e(e.keyType._def,{...t,currentPath:[...t.currentPath,"items","items","0"]})||Ht(),r=_e(e.valueType._def,{...t,currentPath:[...t.currentPath,"items","items","1"]})||Ht();return{type:"array",maxItems:125,items:{type:"array",items:[n,r],minItems:2,maxItems:2}}}function Dne(e){const t=e.values,r=Object.keys(e.values).filter(o=>typeof t[t[o]]!="number").map(o=>t[o]),i=Array.from(new Set(r.map(o=>typeof o)));return{type:i.length===1?i[0]==="string"?"string":"number":["string","number"],enum:r}}function Nne(){return{not:Ht()}}function Lne(){return{type:"null"}}var ld={ZodString:"string",ZodNumber:"number",ZodBigInt:"integer",ZodBoolean:"boolean",ZodNull:"null"};function zne(e,t){const n=e.options instanceof Map?Array.from(e.options.values()):e.options;if(n.every(r=>r._def.typeName in ld&&(!r._def.checks||!r._def.checks.length))){const r=n.reduce((i,o)=>{const a=ld[o._def.typeName];return a&&!i.includes(a)?[...i,a]:i},[]);return{type:r.length>1?r:r[0]}}else if(n.every(r=>r._def.typeName==="ZodLiteral"&&!r.description)){const r=n.reduce((i,o)=>{const a=typeof o._def.value;switch(a){case"string":case"number":case"boolean":return[...i,a];case"bigint":return[...i,"integer"];case"object":if(o._def.value===null)return[...i,"null"];case"symbol":case"undefined":case"function":default:return i}},[]);if(r.length===n.length){const i=r.filter((o,a,s)=>s.indexOf(o)===a);return{type:i.length>1?i:i[0],enum:n.reduce((o,a)=>o.includes(a._def.value)?o:[...o,a._def.value],[])}}}else if(n.every(r=>r._def.typeName==="ZodEnum"))return{type:"string",enum:n.reduce((r,i)=>[...r,...i._def.values.filter(o=>!r.includes(o))],[])};return Fne(e,t)}var Fne=(e,t)=>{const n=(e.options instanceof Map?Array.from(e.options.values()):e.options).map((r,i)=>_e(r._def,{...t,currentPath:[...t.currentPath,"anyOf",`${i}`]})).filter(r=>!!r&&(!t.strictUnions||typeof r=="object"&&Object.keys(r).length>0));return n.length?{anyOf:n}:void 0};function jne(e,t){if(["ZodString","ZodNumber","ZodBigInt","ZodBoolean","ZodNull"].includes(e.innerType._def.typeName)&&(!e.innerType._def.checks||!e.innerType._def.checks.length))return{type:[ld[e.innerType._def.typeName],"null"]};const n=_e(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","0"]});return n&&{anyOf:[n,{type:"null"}]}}function Bne(e){const t={type:"number"};if(!e.checks)return t;for(const n of e.checks)switch(n.kind){case"int":t.type="integer";break;case"min":n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value;break;case"max":n.inclusive?t.maximum=n.value:t.exclusiveMaximum=n.value;break;case"multipleOf":t.multipleOf=n.value;break}return t}function Vne(e,t){const n={type:"object",properties:{}},r=[],i=e.shape();for(const a in i){let s=i[a];if(s===void 0||s._def===void 0)continue;const l=Zne(s),u=_e(s._def,{...t,currentPath:[...t.currentPath,"properties",a],propertyPath:[...t.currentPath,"properties",a]});u!==void 0&&(n.properties[a]=u,l||r.push(a))}r.length&&(n.required=r);const o=Une(e,t);return o!==void 0&&(n.additionalProperties=o),n}function Une(e,t){if(e.catchall._def.typeName!=="ZodNever")return _e(e.catchall._def,{...t,currentPath:[...t.currentPath,"additionalProperties"]});switch(e.unknownKeys){case"passthrough":return t.allowedAdditionalProperties;case"strict":return t.rejectedAdditionalProperties;case"strip":return t.removeAdditionalStrategy==="strict"?t.allowedAdditionalProperties:t.rejectedAdditionalProperties}}function Zne(e){try{return e.isOptional()}catch{return!0}}var qne=(e,t)=>{var n;if(t.currentPath.toString()===((n=t.propertyPath)==null?void 0:n.toString()))return _e(e.innerType._def,t);const r=_e(e.innerType._def,{...t,currentPath:[...t.currentPath,"anyOf","1"]});return r?{anyOf:[{not:Ht()},r]}:Ht()},Wne=(e,t)=>{if(t.pipeStrategy==="input")return _e(e.in._def,t);if(t.pipeStrategy==="output")return _e(e.out._def,t);const n=_e(e.in._def,{...t,currentPath:[...t.currentPath,"allOf","0"]}),r=_e(e.out._def,{...t,currentPath:[...t.currentPath,"allOf",n?"1":"0"]});return{allOf:[n,r].filter(i=>i!==void 0)}};function Hne(e,t){return _e(e.type._def,t)}function Gne(e,t){const r={type:"array",uniqueItems:!0,items:_e(e.valueType._def,{...t,currentPath:[...t.currentPath,"items"]})};return e.minSize&&(r.minItems=e.minSize.value),e.maxSize&&(r.maxItems=e.maxSize.value),r}function Yne(e,t){return e.rest?{type:"array",minItems:e.items.length,items:e.items.map((n,r)=>_e(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[]),additionalItems:_e(e.rest._def,{...t,currentPath:[...t.currentPath,"additionalItems"]})}:{type:"array",minItems:e.items.length,maxItems:e.items.length,items:e.items.map((n,r)=>_e(n._def,{...t,currentPath:[...t.currentPath,"items",`${r}`]})).reduce((n,r)=>r===void 0?n:[...n,r],[])}}function Kne(){return{not:Ht()}}function Xne(){return Ht()}var Jne=(e,t)=>_e(e.innerType._def,t),Qne=(e,t,n)=>{switch(t){case ue.ZodString:return $_(e,n);case ue.ZodNumber:return Bne(e);case ue.ZodObject:return Vne(e,n);case ue.ZodBigInt:return kne(e);case ue.ZodBoolean:return Sne();case ue.ZodDate:return I_(e,n);case ue.ZodUndefined:return Kne();case ue.ZodNull:return Lne();case ue.ZodArray:return xne(e,n);case ue.ZodUnion:case ue.ZodDiscriminatedUnion:return zne(e,n);case ue.ZodIntersection:return Pne(e,n);case ue.ZodTuple:return Yne(e,n);case ue.ZodRecord:return R_(e,n);case ue.ZodLiteral:return Ine(e);case ue.ZodEnum:return Ane(e);case ue.ZodNativeEnum:return Dne(e);case ue.ZodNullable:return jne(e,n);case ue.ZodOptional:return qne(e,n);case ue.ZodMap:return One(e,n);case ue.ZodSet:return Gne(e,n);case ue.ZodLazy:return()=>e.getter()._def;case ue.ZodPromise:return Hne(e,n);case ue.ZodNaN:case ue.ZodNever:return Nne();case ue.ZodEffects:return Cne(e,n);case ue.ZodAny:return Ht();case ue.ZodUnknown:return Xne();case ue.ZodDefault:return Ene(e,n);case ue.ZodBranded:return P_(e,n);case ue.ZodReadonly:return Jne(e,n);case ue.ZodCatch:return _ne(e,n);case ue.ZodPipeline:return Wne(e,n);case ue.ZodFunction:case ue.ZodVoid:case ue.ZodSymbol:return;default:return(r=>{})()}},ere=(e,t)=>{let n=0;for(;n<e.length&&n<t.length&&e[n]===t[n];n++);return[(e.length-n).toString(),...t.slice(n)].join("/")};function _e(e,t,n=!1){var r;const i=t.seen.get(e);if(t.override){const l=(r=t.override)==null?void 0:r.call(t,e,t,i,n);if(l!==bne)return l}if(i&&!n){const l=tre(i,t);if(l!==void 0)return l}const o={def:e,path:t.currentPath,jsonSchema:void 0};t.seen.set(e,o);const a=Qne(e,e.typeName,t),s=typeof a=="function"?_e(a(),t):a;if(s&&nre(e,t,s),t.postProcess){const l=t.postProcess(s,e,t);return o.jsonSchema=s,l}return o.jsonSchema=s,s}var tre=(e,t)=>{switch(t.$refStrategy){case"root":return{$ref:e.path.join("/")};case"relative":return{$ref:ere(t.currentPath,e.path)};case"none":case"seen":return e.path.length<t.currentPath.length&&e.path.every((n,r)=>t.currentPath[r]===n)?(console.warn(`Recursive reference detected at ${t.currentPath.join("/")}! Defaulting to any`),Ht()):t.$refStrategy==="seen"?Ht():void 0}},nre=(e,t,n)=>(e.description&&(n.description=e.description),n),rre=e=>{const t=wne(e),n=t.name!==void 0?[...t.basePath,t.definitionPath,t.name]:t.basePath;return{...t,currentPath:n,propertyPath:void 0,seen:new Map(Object.entries(t.definitions).map(([r,i])=>[i._def,{def:i._def,path:[...t.basePath,t.definitionPath,r],jsonSchema:void 0}]))}},ire=(e,t)=>{var n;const r=rre(t);let i=typeof t=="object"&&t.definitions?Object.entries(t.definitions).reduce((u,[f,c])=>{var h;return{...u,[f]:(h=_e(c._def,{...r,currentPath:[...r.basePath,r.definitionPath,f]},!0))!=null?h:Ht()}},{}):void 0;const o=typeof t=="string"?t:(t==null?void 0:t.nameStrategy)==="title"||t==null?void 0:t.name,a=(n=_e(e._def,o===void 0?r:{...r,currentPath:[...r.basePath,r.definitionPath,o]},!1))!=null?n:Ht(),s=typeof t=="object"&&t.name!==void 0&&t.nameStrategy==="title"?t.name:void 0;s!==void 0&&(a.title=s);const l=o===void 0?i?{...a,[r.definitionPath]:i}:a:{$ref:[...r.$refStrategy==="relative"?[]:r.basePath,r.definitionPath,o].join("/"),[r.definitionPath]:{...i,[o]:a}};return l.$schema="http://json-schema.org/draft-07/schema#",l},ud=Symbol.for("vercel.ai.schema");function ore(e){let t;return()=>(t==null&&(t=e()),t)}function wu(e,{validate:t}={}){return{[ud]:!0,_type:void 0,get jsonSchema(){return typeof e=="function"&&(e=e()),e},validate:t}}function are(e){return typeof e=="object"&&e!==null&&ud in e&&e[ud]===!0&&"jsonSchema"in e&&"validate"in e}function wp(e){return e==null?wu({properties:{},additionalProperties:!1}):are(e)?e:"~standard"in e?e["~standard"].vendor==="zod"?O_(e):sre(e):e()}function sre(e){return wu(()=>bp(e["~standard"].jsonSchema.input({target:"draft-07"})),{validate:async t=>{const n=await e["~standard"].validate(t);return"value"in n?{success:!0,value:n.value}:{success:!1,error:new Ui({value:t,cause:n.issues})}}})}function lre(e,t){var n;const r=(n=void 0)!=null?n:!1;return wu(()=>ire(e,{$refStrategy:r?"root":"none"}),{validate:async i=>{const o=await e.safeParseAsync(i);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function ure(e,t){var n;const r=(n=void 0)!=null?n:!1;return wu(()=>bp(nte(e,{target:"draft-7",io:"input",reused:r?"ref":"inline"})),{validate:async i=>{const o=await w_(e,i);return o.success?{success:!0,value:o.data}:{success:!1,error:o.error}}})}function cre(e){return"_zod"in e}function O_(e,t){return cre(e)?ure(e):lre(e)}async function W0({value:e,schema:t,context:n}){const r=await ba({value:e,schema:t,context:n});if(!r.success)throw Ui.wrap({value:e,cause:r.error,context:n});return r.value}async function ba({value:e,schema:t,context:n}){const r=wp(t);try{if(r.validate==null)return{success:!0,value:e,rawValue:e};const i=await r.validate(e);return i.success?{success:!0,value:i.value,rawValue:e}:{success:!1,error:Ui.wrap({value:e,cause:i.error,context:n}),rawValue:e}}catch(i){return{success:!1,error:Ui.wrap({value:e,cause:i,context:n}),rawValue:e}}}async function Qr({text:e,schema:t}){try{const n=vne(e);return t==null?{success:!0,value:n,rawValue:n}:await ba({value:n,schema:t})}catch(n){return{success:!1,error:b0.isInstance(n)?n:new b0({text:e,cause:n}),rawValue:void 0}}}function fre({stream:e,schema:t}){return e.pipeThrough(new TextDecoderStream).pipeThrough(new hne).pipeThrough(new TransformStream({async transform({data:n},r){n!=="[DONE]"&&r.enqueue(await Qr({text:n,schema:t}))}}))}async function hr(e){return typeof e=="function"&&(e=e()),Promise.resolve(e)}var dre=Object.defineProperty,hre=(e,t)=>{for(var n in t)dre(e,n,{get:t[n],enumerable:!0})},D_="AI_NoObjectGeneratedError",N_=`vercel.ai.error.${D_}`,pre=Symbol.for(N_),L_,yr=class extends zn{constructor({message:e="No object generated.",cause:t,text:n,response:r,usage:i,finishReason:o}){super({name:D_,message:e,cause:t}),this[L_]=!0,this.text=n,this.response=r,this.usage=i,this.finishReason=o}static isInstance(e){return zn.hasMarker(e,N_)}};L_=pre;var z_="AI_UIMessageStreamError",F_=`vercel.ai.error.${z_}`,mre=Symbol.for(F_),j_,pi=class extends zn{constructor({chunkType:e,chunkId:t,message:n}){super({name:z_,message:n}),this[j_]=!0,this.chunkType=e,this.chunkId=t}static isInstance(e){return zn.hasMarker(e,F_)}};j_=mre;var B_=Mt([Z(),Sl(Uint8Array),Sl(ArrayBuffer),M_(e=>{var t,n;return(n=(t=globalThis.Buffer)==null?void 0:t.isBuffer(e))!=null?n:!1},{message:"Must be a Buffer"})]),wa=sne(()=>Mt([Lte(),Z(),Rte(),_t(),va(Z(),wa.optional()),fo(wa)])),ge=va(Z(),va(Z(),wa.optional())),V_=Ce({type:oe("text"),text:Z(),providerOptions:ge.optional()}),gre=Ce({type:oe("image"),image:Mt([B_,Sl(URL)]),mediaType:Z().optional(),providerOptions:ge.optional()}),U_=Ce({type:oe("file"),data:Mt([B_,Sl(URL)]),filename:Z().optional(),mediaType:Z(),providerOptions:ge.optional()}),yre=Ce({type:oe("reasoning"),text:Z(),providerOptions:ge.optional()}),vre=Ce({type:oe("tool-call"),toolCallId:Z(),toolName:Z(),input:Cn(),providerOptions:ge.optional(),providerExecuted:_t().optional()}),bre=Vte("type",[Ce({type:oe("text"),value:Z(),providerOptions:ge.optional()}),Ce({type:oe("json"),value:wa,providerOptions:ge.optional()}),Ce({type:oe("execution-denied"),reason:Z().optional(),providerOptions:ge.optional()}),Ce({type:oe("error-text"),value:Z(),providerOptions:ge.optional()}),Ce({type:oe("error-json"),value:wa,providerOptions:ge.optional()}),Ce({type:oe("content"),value:fo(Mt([Ce({type:oe("text"),text:Z(),providerOptions:ge.optional()}),Ce({type:oe("media"),data:Z(),mediaType:Z()}),Ce({type:oe("file-data"),data:Z(),mediaType:Z(),filename:Z().optional(),providerOptions:ge.optional()}),Ce({type:oe("file-url"),url:Z(),providerOptions:ge.optional()}),Ce({type:oe("file-id"),fileId:Mt([Z(),va(Z(),Z())]),providerOptions:ge.optional()}),Ce({type:oe("image-data"),data:Z(),mediaType:Z(),providerOptions:ge.optional()}),Ce({type:oe("image-url"),url:Z(),providerOptions:ge.optional()}),Ce({type:oe("image-file-id"),fileId:Mt([Z(),va(Z(),Z())]),providerOptions:ge.optional()}),Ce({type:oe("custom"),providerOptions:ge.optional()})]))})]),Z_=Ce({type:oe("tool-result"),toolCallId:Z(),toolName:Z(),output:bre,providerOptions:ge.optional()}),wre=Ce({type:oe("tool-approval-request"),approvalId:Z(),toolCallId:Z()}),xre=Ce({type:oe("tool-approval-response"),approvalId:Z(),approved:_t(),reason:Z().optional()}),kre=Ce({role:oe("system"),content:Z(),providerOptions:ge.optional()}),Sre=Ce({role:oe("user"),content:Mt([Z(),fo(Mt([V_,gre,U_]))]),providerOptions:ge.optional()}),_re=Ce({role:oe("assistant"),content:Mt([Z(),fo(Mt([V_,U_,yre,vre,Z_,wre]))]),providerOptions:ge.optional()}),Tre=Ce({role:oe("tool"),content:fo(Mt([Z_,xre])),providerOptions:ge.optional()});Mt([kre,Sre,_re,Tre]);function q_(e,t){if(e===void 0&&t===void 0)return;if(e===void 0)return t;if(t===void 0)return e;const n={...e};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){const i=t[r];if(i===void 0)continue;const o=r in e?e[r]:void 0,a=i!==null&&typeof i=="object"&&!Array.isArray(i)&&!(i instanceof Date)&&!(i instanceof RegExp),s=o!=null&&typeof o=="object"&&!Array.isArray(o)&&!(o instanceof Date)&&!(o instanceof RegExp);a&&s?n[r]=q_(o,i):n[r]=i}return n}var Ere={};hre(Ere,{array:()=>Pre,choice:()=>Ire,json:()=>$re,object:()=>Mre,text:()=>Are});function Cre(e){const t=["ROOT"];let n=-1,r=null;function i(l,u,f){switch(l){case'"':{n=u,t.pop(),t.push(f),t.push("INSIDE_STRING");break}case"f":case"t":case"n":{n=u,r=u,t.pop(),t.push(f),t.push("INSIDE_LITERAL");break}case"-":{t.pop(),t.push(f),t.push("INSIDE_NUMBER");break}case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=u,t.pop(),t.push(f),t.push("INSIDE_NUMBER");break}case"{":{n=u,t.pop(),t.push(f),t.push("INSIDE_OBJECT_START");break}case"[":{n=u,t.pop(),t.push(f),t.push("INSIDE_ARRAY_START");break}}}function o(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_OBJECT_AFTER_COMMA");break}case"}":{n=u,t.pop();break}}}function a(l,u){switch(l){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=u,t.pop();break}}}for(let l=0;l<e.length;l++){const u=e[l];switch(t[t.length-1]){case"ROOT":i(u,l,"FINISH");break;case"INSIDE_OBJECT_START":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}case"}":{n=l,t.pop();break}}break}case"INSIDE_OBJECT_AFTER_COMMA":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_KEY");break}}break}case"INSIDE_OBJECT_KEY":{switch(u){case'"':{t.pop(),t.push("INSIDE_OBJECT_AFTER_KEY");break}}break}case"INSIDE_OBJECT_AFTER_KEY":{switch(u){case":":{t.pop(),t.push("INSIDE_OBJECT_BEFORE_VALUE");break}}break}case"INSIDE_OBJECT_BEFORE_VALUE":{i(u,l,"INSIDE_OBJECT_AFTER_VALUE");break}case"INSIDE_OBJECT_AFTER_VALUE":{o(u,l);break}case"INSIDE_STRING":{switch(u){case'"':{t.pop(),n=l;break}case"\\":{t.push("INSIDE_STRING_ESCAPE");break}default:n=l}break}case"INSIDE_ARRAY_START":{switch(u){case"]":{n=l,t.pop();break}default:{n=l,i(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}}break}case"INSIDE_ARRAY_AFTER_VALUE":{switch(u){case",":{t.pop(),t.push("INSIDE_ARRAY_AFTER_COMMA");break}case"]":{n=l,t.pop();break}default:{n=l;break}}break}case"INSIDE_ARRAY_AFTER_COMMA":{i(u,l,"INSIDE_ARRAY_AFTER_VALUE");break}case"INSIDE_STRING_ESCAPE":{t.pop(),n=l;break}case"INSIDE_NUMBER":{switch(u){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":{n=l;break}case"e":case"E":case"-":case".":break;case",":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&a(u,l),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"}":{t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"&&o(u,l);break}case"]":{t.pop(),t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&a(u,l);break}default:{t.pop();break}}break}case"INSIDE_LITERAL":{const c=e.substring(r,l+1);!"false".startsWith(c)&&!"true".startsWith(c)&&!"null".startsWith(c)?(t.pop(),t[t.length-1]==="INSIDE_OBJECT_AFTER_VALUE"?o(u,l):t[t.length-1]==="INSIDE_ARRAY_AFTER_VALUE"&&a(u,l)):n=l;break}}}let s=e.slice(0,n+1);for(let l=t.length-1;l>=0;l--)switch(t[l]){case"INSIDE_STRING":{s+='"';break}case"INSIDE_OBJECT_KEY":case"INSIDE_OBJECT_AFTER_KEY":case"INSIDE_OBJECT_AFTER_COMMA":case"INSIDE_OBJECT_START":case"INSIDE_OBJECT_BEFORE_VALUE":case"INSIDE_OBJECT_AFTER_VALUE":{s+="}";break}case"INSIDE_ARRAY_START":case"INSIDE_ARRAY_AFTER_COMMA":case"INSIDE_ARRAY_AFTER_VALUE":{s+="]";break}case"INSIDE_LITERAL":{const f=e.substring(r,e.length);"true".startsWith(f)?s+="true".slice(f.length):"false".startsWith(f)?s+="false".slice(f.length):"null".startsWith(f)&&(s+="null".slice(f.length))}}return s}async function Va(e){if(e===void 0)return{value:void 0,state:"undefined-input"};let t=await Qr({text:e});return t.success?{value:t.value,state:"successful-parse"}:(t=await Qr({text:Cre(e)}),t.success?{value:t.value,state:"repaired-parse"}:{value:void 0,state:"failed-parse"})}var Are=()=>({name:"text",responseFormat:Promise.resolve({type:"text"}),async parseCompleteOutput({text:e}){return e},async parsePartialOutput({text:e}){return{partial:e}},createElementStreamTransform(){}}),Mre=({schema:e,name:t,description:n})=>{const r=wp(e);return{name:"object",responseFormat:hr(r.jsonSchema).then(i=>({type:"json",schema:i,...t!=null&&{name:t},...n!=null&&{description:n}})),async parseCompleteOutput({text:i},o){const a=await Qr({text:i});if(!a.success)throw new yr({message:"No object generated: could not parse the response.",cause:a.error,text:i,response:o.response,usage:o.usage,finishReason:o.finishReason});const s=await ba({value:a.value,schema:r});if(!s.success)throw new yr({message:"No object generated: response did not match sc
394hema.",cause:s.error,text:i,response:o.response,usage:o.usage,finishReason:o.finishReason});return s.value},async parsePartialOutput({text:i}){const o=await Va(i);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return{partial:o.value}}},createElementStreamTransform(){}}},Pre=({element:e,name:t,description:n})=>{const r=wp(e);return{name:"array",responseFormat:hr(r.jsonSchema).then(i=>{const{$schema:o,...a}=i;return{type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{elements:{type:"array",items:a}},required:["elements"],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}}),async parseCompleteOutput({text:i},o){const a=await Qr({text:i});if(!a.success)throw new yr({message:"No object generated: could not parse the response.",cause:a.error,text:i,response:o.response,usage:o.usage,finishReason:o.finishReason});const s=a.value;if(s==null||typeof s!="object"||!("elements"in s)||!Array.isArray(s.elements))throw new yr({message:"No object generated: response did not match schema.",cause:new Ui({value:s,cause:"response must be an object with an elements array"}),text:i,response:o.response,usage:o.usage,finishReason:o.finishReason});for(const l of s.elements){const u=await ba({value:l,schema:r});if(!u.success)throw new yr({message:"No object generated: response did not match schema.",cause:u.error,text:i,response:o.response,usage:o.usage,finishReason:o.finishReason})}return s.elements},async parsePartialOutput({text:i}){const o=await Va(i);switch(o.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{const a=o.value;if(a==null||typeof a!="object"||!("elements"in a)||!Array.isArray(a.elements))return;const s=o.state==="repaired-parse"&&a.elements.length>0?a.elements.slice(0,-1):a.elements,l=[];for(const u of s){const f=await ba({value:u,schema:r});f.success&&l.push(f.value)}return{partial:l}}}},createElementStreamTransform(){let i=0;return new TransformStream({transform({partialOutput:o},a){if(o!=null)for(;i<o.length;i++)a.enqueue(o[i])}})}}},Ire=({options:e,name:t,description:n})=>({name:"choice",responseFormat:Promise.resolve({type:"json",schema:{$schema:"http://json-schema.org/draft-07/schema#",type:"object",properties:{result:{type:"string",enum:e}},required:["result"],additionalProperties:!1},...t!=null&&{name:t},...n!=null&&{description:n}}),async parseCompleteOutput({text:r},i){const o=await Qr({text:r});if(!o.success)throw new yr({message:"No object generated: could not parse the response.",cause:o.error,text:r,response:i.response,usage:i.usage,finishReason:i.finishReason});const a=o.value;if(a==null||typeof a!="object"||!("result"in a)||typeof a.result!="string"||!e.includes(a.result))throw new yr({message:"No object generated: response did not match schema.",cause:new Ui({value:a,cause:"response must be an object that contains a choice value."}),text:r,response:i.response,usage:i.usage,finishReason:i.finishReason});return a.result},async parsePartialOutput({text:r}){const i=await Va(r);switch(i.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":{const o=i.value;if(o==null||typeof o!="object"||!("result"in o)||typeof o.result!="string")return;const a=e.filter(s=>s.startsWith(o.result));return i.state==="successful-parse"?a.includes(o.result)?{partial:o.result}:void 0:a.length===1?{partial:a[0]}:void 0}}},createElementStreamTransform(){}}),$re=({name:e,description:t}={})=>({name:"json",responseFormat:Promise.resolve({type:"json",...e!=null&&{name:e},...t!=null&&{description:t}}),async parseCompleteOutput({text:n},r){const i=await Qr({text:n});if(!i.success)throw new yr({message:"No object generated: could not parse the response.",cause:i.error,text:n,response:r.response,usage:r.usage,finishReason:r.finishReason});return i.value},async parsePartialOutput({text:n}){const r=await Va(n);switch(r.state){case"failed-parse":case"undefined-input":return;case"repaired-parse":case"successful-parse":return r.value===void 0?void 0:{partial:r.value}}},createElementStreamTransform(){}});Ba({prefix:"aitxt",size:24});(class extends TransformStream{constructor(){super({transform(e,t){t.enqueue(`data: ${JSON.stringify(e)} 395 396`)},flush(e){e.enqueue(`data: [DONE] 397 398`)}})}});var Rre=ore(()=>O_(Mt([ze({type:oe("text-start"),id:Z(),providerMetadata:ge.optional()}),ze({type:oe("text-delta"),id:Z(),delta:Z(),providerMetadata:ge.optional()}),ze({type:oe("text-end"),id:Z(),providerMetadata:ge.optional()}),ze({type:oe("error"),errorText:Z()}),ze({type:oe("tool-input-start"),toolCallId:Z(),toolName:Z(),providerExecuted:_t().optional(),providerMetadata:ge.optional(),dynamic:_t().optional(),title:Z().optional()}),ze({type:oe("tool-input-delta"),toolCallId:Z(),inputTextDelta:Z()}),ze({type:oe("tool-input-available"),toolCallId:Z(),toolName:Z(),input:Cn(),providerExecuted:_t().optional(),providerMetadata:ge.optional(),dynamic:_t().optional(),title:Z().optional()}),ze({type:oe("tool-input-error"),toolCallId:Z(),toolName:Z(),input:Cn(),providerExecuted:_t().optional(),providerMetadata:ge.optional(),dynamic:_t().optional(),errorText:Z(),title:Z().optional()}),ze({type:oe("tool-approval-request"),approvalId:Z(),toolCallId:Z()}),ze({type:oe("tool-output-available"),toolCallId:Z(),output:Cn(),providerExecuted:_t().optional(),providerMetadata:ge.optional(),dynamic:_t().optional(),preliminary:_t().optional()}),ze({type:oe("tool-output-error"),toolCallId:Z(),errorText:Z(),providerExecuted:_t().optional(),providerMetadata:ge.optional(),dynamic:_t().optional()}),ze({type:oe("tool-output-denied"),toolCallId:Z()}),ze({type:oe("reasoning-start"),id:Z(),providerMetadata:ge.optional()}),ze({type:oe("reasoning-delta"),id:Z(),delta:Z(),providerMetadata:ge.optional()}),ze({type:oe("reasoning-end"),id:Z(),providerMetadata:ge.optional()}),ze({type:oe("source-url"),sourceId:Z(),url:Z(),title:Z().optional(),providerMetadata:ge.optional()}),ze({type:oe("source-document"),sourceId:Z(),mediaType:Z(),title:Z(),filename:Z().optional(),providerMetadata:ge.optional()}),ze({type:oe("file"),url:Z(),mediaType:Z(),providerMetadata:ge.optional()}),ze({type:M_(e=>typeof e=="string"&&e.startsWith("data-"),{message:'Type must start with "data-"'}),id:Z().optional(),data:Cn(),transient:_t().optional()}),ze({type:oe("start-step")}),ze({type:oe("finish-step")}),ze({type:oe("start"),messageId:Z().optional(),messageMetadata:Cn().optional()}),ze({type:oe("finish"),finishReason:E_(["stop","length","content-filter","tool-calls","error","other"]).optional(),messageMetadata:Cn().optional()}),ze({type:oe("abort"),reason:Z().optional()}),ze({type:oe("message-metadata"),messageMetadata:Cn()})])));function Ore(e){return e.type.startsWith("data-")}function cd(e){return e.type.startsWith("tool-")}function Dre(e){return e.type==="dynamic-tool"}function _l(e){return cd(e)||Dre(e)}function H0(e){return e.type.split("-").slice(1).join("-")}function Nre({lastMessage:e,messageId:t}){return{message:(e==null?void 0:e.role)==="assistant"?e:{id:t,metadata:void 0,role:"assistant",parts:[]},activeTextParts:{},activeReasoningParts:{},partialToolCalls:{}}}
vendor: 24,671 bytes, line 398
398function Lre({stream:e,messageMetadataSchema:t,dataPartSchemas:n,runUpdateMessageJob:r,onError:i,onToolCall:o,onData:a}){return e.pipeThrough(new TransformStream({async transform(s,l){await r(async({state:u,write:f})=>{var c,h,d,p;function m(v){const k=u.message.parts.filter(_l).find(w=>w.toolCallId===v);if(k==null)throw new pi({chunkType:"tool-invocation",chunkId:v,message:`No tool invocation found for tool call ID "${v}".`});return k}function g(v){var S;const k=u.message.parts.find(A=>cd(A)&&A.toolCallId===v.toolCallId),w=v,C=k;if(k!=null){k.state=v.state,C.input=w.input,C.output=w.output,C.errorText=w.errorText,C.rawInput=w.rawInput,C.preliminary=w.preliminary,v.title!==void 0&&(C.title=v.title),C.providerExecuted=(S=w.providerExecuted)!=null?S:k.providerExecuted;const A=w.providerMetadata;if(A!=null)if(v.state==="output-available"||v.state==="output-error"){const R=k;R.resultProviderMetadata=A}else k.callProviderMetadata=A}else u.message.parts.push({type:`tool-${v.toolName}`,toolCallId:v.toolCallId,state:v.state,title:v.title,input:w.input,output:w.output,rawInput:w.rawInput,errorText:w.errorText,providerExecuted:w.providerExecuted,preliminary:w.preliminary,...w.providerMetadata!=null&&(v.state==="output-available"||v.state==="output-error")?{resultProviderMetadata:w.providerMetadata}:{},...w.providerMetadata!=null&&!(v.state==="output-available"||v.state==="output-error")?{callProviderMetadata:w.providerMetadata}:{}})}function y(v){var S,k;const w=u.message.parts.find(R=>R.type==="dynamic-tool"&&R.toolCallId===v.toolCallId),C=v,A=w;if(w!=null){w.state=v.state,A.toolName=v.toolName,A.input=C.input,A.output=C.output,A.errorText=C.errorText,A.rawInput=(S=C.rawInput)!=null?S:A.rawInput,A.preliminary=C.preliminary,v.title!==void 0&&(A.title=v.title),A.providerExecuted=(k=C.providerExecuted)!=null?k:w.providerExecuted;const R=C.providerMetadata;if(R!=null)if(v.state==="output-available"||v.state==="output-error"){const E=w;E.resultProviderMetadata=R}else w.callProviderMetadata=R}else u.message.parts.push({type:"dynamic-tool",toolName:v.toolName,toolCallId:v.toolCallId,state:v.state,input:C.input,output:C.output,errorText:C.errorText,preliminary:C.preliminary,providerExecuted:C.providerExecuted,title:v.title,...C.providerMetadata!=null&&(v.state==="output-available"||v.state==="output-error")?{resultProviderMetadata:C.providerMetadata}:{},...C.providerMetadata!=null&&!(v.state==="output-available"||v.state==="output-error")?{callProviderMetadata:C.providerMetadata}:{}})}async function b(v){if(v!=null){const S=u.message.metadata!=null?q_(u.message.metadata,v):v;t!=null&&await W0({value:S,schema:t,context:{field:"message.metadata",entityId:u.message.id}}),u.message.metadata=S}}switch(s.type){case"text-start":{const v={type:"text",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeTextParts[s.id]=v,u.message.parts.push(v),f();break}case"text-delta":{const v=u.activeTextParts[s.id];if(v==null)throw new pi({chunkType:"text-delta",chunkId:s.id,message:`Received text-delta for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-delta" chunks.`});v.text+=s.delta,v.providerMetadata=(c=s.providerMetadata)!=null?c:v.providerMetadata,f();break}case"text-end":{const v=u.activeTextParts[s.id];if(v==null)throw new pi({chunkType:"text-end",chunkId:s.id,message:`Received text-end for missing text part with ID "${s.id}". Ensure a "text-start" chunk is sent before any "text-end" chunks.`});v.state="done",v.providerMetadata=(h=s.providerMetadata)!=null?h:v.providerMetadata,delete u.activeTextParts[s.id],f();break}case"reasoning-start":{const v={type:"reasoning",text:"",providerMetadata:s.providerMetadata,state:"streaming"};u.activeReasoningParts[s.id]=v,u.message.parts.push(v),f();break}case"reasoning-delta":{const v=u.activeReasoningParts[s.id];if(v==null)throw new pi({chunkType:"reasoning-delta",chunkId:s.id,message:`Received reasoning-delta for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-delta" chunks.`});v.text+=s.delta,v.providerMetadata=(d=s.providerMetadata)!=null?d:v.providerMetadata,f();break}case"reasoning-end":{const v=u.activeReasoningParts[s.id];if(v==null)throw new pi({chunkType:"reasoning-end",chunkId:s.id,message:`Received reasoning-end for missing reasoning part with ID "${s.id}". Ensure a "reasoning-start" chunk is sent before any "reasoning-end" chunks.`});v.providerMetadata=(p=s.providerMetadata)!=null?p:v.providerMetadata,v.state="done",delete u.activeReasoningParts[s.id],f();break}case"file":{u.message.parts.push({type:"file",mediaType:s.mediaType,url:s.url,...s.providerMetadata!=null?{providerMetadata:s.providerMetadata}:{}}),f();break}case"source-url":{u.message.parts.push({type:"source-url",sourceId:s.sourceId,url:s.url,title:s.title,providerMetadata:s.providerMetadata}),f();break}case"source-document":{u.message.parts.push({type:"source-document",sourceId:s.sourceId,mediaType:s.mediaType,title:s.title,filename:s.filename,providerMetadata:s.providerMetadata}),f();break}case"tool-input-start":{const v=u.message.parts.filter(cd);u.partialToolCalls[s.toolCallId]={text:"",toolName:s.toolName,index:v.length,dynamic:s.dynamic,title:s.title},s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,providerMetadata:s.providerMetadata}):g({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-streaming",input:void 0,providerExecuted:s.providerExecuted,title:s.title,providerMetadata:s.providerMetadata}),f();break}case"tool-input-delta":{const v=u.partialToolCalls[s.toolCallId];if(v==null)throw new pi({chunkType:"tool-input-delta",chunkId:s.toolCallId,message:`Received tool-input-delta for missing tool call with ID "${s.toolCallId}". Ensure a "tool-input-start" chunk is sent before any "tool-input-delta" chunks.`});v.text+=s.inputTextDelta;const{value:S}=await Va(v.text);v.dynamic?y({toolCallId:s.toolCallId,toolName:v.toolName,state:"input-streaming",input:S,title:v.title}):g({toolCallId:s.toolCallId,toolName:v.toolName,state:"input-streaming",input:S,title:v.title}),f();break}case"tool-input-available":{s.dynamic?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title}):g({toolCallId:s.toolCallId,toolName:s.toolName,state:"input-available",input:s.input,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:s.title}),f(),o&&!s.providerExecuted&&await o({toolCall:s});break}case"tool-input-error":{const v=u.message.parts.filter(_l).find(k=>k.toolCallId===s.toolCallId);(v!=null?v.type==="dynamic-tool":!!s.dynamic)?y({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}):g({toolCallId:s.toolCallId,toolName:s.toolName,state:"output-error",input:void 0,rawInput:s.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata}),f();break}case"tool-approval-request":{const v=m(s.toolCallId);v.state="approval-requested",v.approval={id:s.approvalId},f();break}case"tool-output-denied":{const v=m(s.toolCallId);v.state="output-denied",f();break}case"tool-output-available":{const v=m(s.toolCallId);v.type==="dynamic-tool"?y({toolCallId:s.toolCallId,toolName:v.toolName,state:"output-available",input:v.input,output:s.output,preliminary:s.preliminary,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:v.title}):g({toolCallId:s.toolCallId,toolName:H0(v),state:"output-available",input:v.input,output:s.output,providerExecuted:s.providerExecuted,preliminary:s.preliminary,providerMetadata:s.providerMetadata,title:v.title}),f();break}case"tool-output-error":{const v=m(s.toolCallId);v.type==="dynamic-tool"?y({toolCallId:s.toolCallId,toolName:v.toolName,state:"output-error",input:v.input,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:v.title}):g({toolCallId:s.toolCallId,toolName:H0(v),state:"output-error",input:v.input,rawInput:v.rawInput,errorText:s.errorText,providerExecuted:s.providerExecuted,providerMetadata:s.providerMetadata,title:v.title}),f();break}case"start-step":{u.message.parts.push({type:"step-start"});break}case"finish-step":{u.activeTextParts={},u.activeReasoningParts={};break}case"start":{s.messageId!=null&&(u.message.id=s.messageId),await b(s.messageMetadata),(s.messageId!=null||s.messageMetadata!=null)&&f();break}case"finish":{s.finishReason!=null&&(u.finishReason=s.finishReason),await b(s.messageMetadata),s.messageMetadata!=null&&f();break}case"message-metadata":{await b(s.messageMetadata),s.messageMetadata!=null&&f();break}case"error":{i==null||i(new Error(s.errorText));break}default:if(Ore(s)){if((n==null?void 0:n[s.type])!=null){const k=u.message.parts.findIndex(C=>"id"in C&&"data"in C&&C.id===s.id&&C.type===s.type),w=k>=0?k:u.message.parts.length;await W0({value:s.data,schema:n[s.type],context:{field:`message.parts[${w}].data`,entityName:s.type,entityId:s.id}})}const v=s;if(v.transient){a==null||a(v);break}const S=v.id!=null?u.message.parts.find(k=>v.type===k.type&&v.id===k.id):void 0;S!=null?S.data=v.data:u.message.parts.push(v),a==null||a(v),f()}}l.enqueue(s)})}}))}async function zre({stream:e,onError:t}){const n=e.getReader();try{for(;;){const{done:r}=await n.read();if(r)break}}catch(r){t==null||t(r)}finally{n.releaseLock()}}Ba({prefix:"aitxt",size:24});Ba({prefix:"aiobj",size:24});var Fre=class{constructor(){this.queue=[],this.isProcessing=!1}async processQueue(){if(!this.isProcessing){for(this.isProcessing=!0;this.queue.length>0;)await this.queue[0](),this.queue.shift();this.isProcessing=!1}}async run(e){return new Promise((t,n)=>{this.queue.push(async()=>{try{await e(),t()}catch(r){n(r)}}),this.processQueue()})}};Ba({prefix:"aiobj",size:24});async function jre(e){if(e==null)return[];if(!globalThis.FileList||!(e instanceof globalThis.FileList))throw new Error("FileList is not supported in the current environment");return Promise.all(Array.from(e).map(async t=>{const{name:n,type:r}=t,i=await new Promise((o,a)=>{const s=new FileReader;s.onload=l=>{var u;o((u=l.target)==null?void 0:u.result)},s.onerror=l=>a(l),s.readAsDataURL(t)});return{type:"file",mediaType:r,filename:n,url:i}}))}var Bre=class{constructor({api:e="/api/chat",credentials:t,headers:n,body:r,fetch:i,prepareSendMessagesRequest:o,prepareReconnectToStreamRequest:a}){this.api=e,this.credentials=t,this.headers=n,this.body=r,this.fetch=i,this.prepareSendMessagesRequest=o,this.prepareReconnectToStreamRequest=a}async sendMessages({abortSignal:e,...t}){var n,r,i,o,a;const s=await hr(this.body),l=await hr(this.headers),u=await hr(this.credentials),f={...hi(l),...hi(t.headers)},c=await((n=this.prepareSendMessagesRequest)==null?void 0:n.call(this,{api:this.api,id:t.chatId,messages:t.messages,body:{...s,...t.body},headers:f,credentials:u,requestMetadata:t.metadata,trigger:t.trigger,messageId:t.messageId})),h=(r=c==null?void 0:c.api)!=null?r:this.api,d=(c==null?void 0:c.headers)!==void 0?hi(c.headers):f,p=(c==null?void 0:c.body)!==void 0?c.body:{...s,...t.body,id:t.chatId,messages:t.messages,trigger:t.trigger,messageId:t.messageId},m=(i=c==null?void 0:c.credentials)!=null?i:u,y=await((o=this.fetch)!=null?o:globalThis.fetch)(h,{method:"POST",headers:{"Content-Type":"application/json",...d},body:JSON.stringify(p),credentials:m,signal:e});if(!y.ok)throw new Error((a=await y.text())!=null?a:"Failed to fetch the chat response.");if(!y.body)throw new Error("The response body is empty.");return this.processResponseStream(y.body)}async reconnectToStream(e){var t,n,r,i,o;const a=await hr(this.body),s=await hr(this.headers),l=await hr(this.credentials),u={...hi(s),...hi(e.headers)},f=await((t=this.prepareReconnectToStreamRequest)==null?void 0:t.call(this,{api:this.api,id:e.chatId,body:{...a,...e.body},headers:u,credentials:l,requestMetadata:e.metadata})),c=(n=f==null?void 0:f.api)!=null?n:`${this.api}/${e.chatId}/stream`,h=(f==null?void 0:f.headers)!==void 0?hi(f.headers):u,d=(r=f==null?void 0:f.credentials)!=null?r:l,m=await((i=this.fetch)!=null?i:globalThis.fetch)(c,{method:"GET",headers:h,credentials:d});if(m.status===204)return null;if(!m.ok)throw new Error((o=await m.text())!=null?o:"Failed to fetch the chat response.");if(!m.body)throw new Error("The response body is empty.");return this.processResponseStream(m.body)}},Vre=class extends Bre{constructor(e={}){super(e)}processResponseStream(e){return fre({stream:e,schema:Rre}).pipeThrough(new TransformStream({async transform(t,n){if(!t.success)throw t.error;n.enqueue(t.value)}}))}},Ure=class{constructor({generateId:e=pne,id:t=e(),transport:n=new Vre,messageMetadataSchema:r,dataPartSchemas:i,state:o,onError:a,onToolCall:s,onFinish:l,onData:u,sendAutomaticallyWhen:f}){this.activeResponse=void 0,this.jobExecutor=new Fre,this.sendMessage=async(c,h)=>{var d,p,m,g;if(c==null){await this.makeRequest({trigger:"submit-message",messageId:(d=this.lastMessage)==null?void 0:d.id,...h});return}let y;if("text"in c||"files"in c?y={parts:[...Array.isArray(c.files)?c.files:await jre(c.files),..."text"in c&&c.text!=null?[{type:"text",text:c.text}]:[]]}:y=c,c.messageId!=null){const b=this.state.messages.findIndex(v=>v.id===c.messageId);if(b===-1)throw new Error(`message with id ${c.messageId} not found`);if(this.state.messages[b].role!=="user")throw new Error(`message with id ${c.messageId} is not a user message`);this.state.messages=this.state.messages.slice(0,b+1),this.state.replaceMessage(b,{...y,id:c.messageId,role:(p=y.role)!=null?p:"user",metadata:c.metadata})}else this.state.pushMessage({...y,id:(m=y.id)!=null?m:this.generateId(),role:(g=y.role)!=null?g:"user",metadata:c.metadata});await this.makeRequest({trigger:"submit-message",messageId:c.messageId,...h})},this.regenerate=async({messageId:c,...h}={})=>{const d=c==null?this.state.messages.length-1:this.state.messages.findIndex(p=>p.id===c);if(d===-1)throw new Error(`message ${c} not found`);this.state.messages=this.state.messages.slice(0,this.messages[d].role==="assistant"?d:d+1),await this.makeRequest({trigger:"regenerate-message",messageId:c,...h})},this.resumeStream=async(c={})=>{await this.makeRequest({trigger:"resume-stream",...c})},this.clearError=()=>{this.status==="error"&&(this.state.error=void 0,this.setStatus({status:"ready"}))},this.addToolApprovalResponse=async({id:c,approved:h,reason:d,options:p})=>this.jobExecutor.run(async()=>{const m=this.state.messages,g=m[m.length-1],y=b=>_l(b)&&b.state==="approval-requested"&&b.approval.id===c?{...b,state:"approval-responded",approval:{id:c,approved:h,reason:d}}:b;this.state.replaceMessage(m.length-1,{...g,parts:g.parts.map(y)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(y)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(b=>{var v;b&&this.makeRequest({trigger:"submit-message",messageId:(v=this.lastMessage)==null?void 0:v.id,...p})})}),this.addToolOutput=async({state:c="output-available",toolCallId:h,output:d,errorText:p,options:m})=>this.jobExecutor.run(async()=>{const g=this.state.messages,y=g[g.length-1],b=v=>_l(v)&&v.toolCallId===h?{...v,state:c,output:d,errorText:p}:v;this.state.replaceMessage(g.length-1,{...y,parts:y.parts.map(b)}),this.activeResponse&&(this.activeResponse.state.message.parts=this.activeResponse.state.message.parts.map(b)),this.status!=="streaming"&&this.status!=="submitted"&&this.sendAutomaticallyWhen&&this.shouldSendAutomatically().then(v=>{var S;v&&this.makeRequest({trigger:"submit-message",messageId:(S=this.lastMessage)==null?void 0:S.id,...m})})}),this.addToolResult=this.addToolOutput,this.stop=async()=>{var c;this.status!=="streaming"&&this.status!=="submitted"||(c=this.activeResponse)!=null&&c.abortController&&this.activeResponse.abortController.abort()},this.id=t,this.transport=n,this.generateId=e,this.messageMetadataSchema=r,this.dataPartSchemas=i,this.state=o,this.onError=a,this.onToolCall=s,this.onFinish=l,this.onData=u,this.sendAutomaticallyWhen=f}get status(){return this.state.status}setStatus({status:e,error:t}){this.status!==e&&(this.state.status=e,this.state.error=t)}get error(){return this.state.error}get messages(){return this.state.messages}get lastMessage(){return this.state.messages[this.state.messages.length-1]}set messages(e){this.state.messages=e}async shouldSendAutomatically(){if(!this.sendAutomaticallyWhen)return!1;const e=this.sendAutomaticallyWhen({messages:this.state.messages});return e&&typeof e=="object"&&"then"in e?await e:e}async makeRequest({trigger:e,metadata:t,headers:n,body:r,messageId:i}){var o,a,s;let l;if(e==="resume-stream")try{const d=await this.transport.reconnectToStream({chatId:this.id,metadata:t,headers:n,body:r});if(d==null)return;l=d}catch(d){this.onError&&d instanceof Error&&this.onError(d),this.setStatus({status:"error",error:d});return}this.setStatus({status:"submitted",error:void 0});const u=this.lastMessage;let f=!1,c=!1,h=!1;try{const d={state:Nre({lastMessage:this.state.snapshot(u),messageId:this.generateId()}),abortController:new AbortController};d.abortController.signal.addEventListener("abort",()=>{f=!0}),this.activeResponse=d;let p;e==="resume-stream"?p=l:p=await this.transport.sendMessages({chatId:this.id,messages:this.state.messages,abortSignal:d.abortController.signal,metadata:t,headers:n,body:r,trigger:e,messageId:i});const m=g=>this.jobExecutor.run(()=>g({state:d.state,write:()=>{var y;this.setStatus({status:"streaming"}),d.state.message.id===((y=this.lastMessage)==null?void 0:y.id)?this.state.replaceMessage(this.state.messages.length-1,d.state.message):this.state.pushMessage(d.state.message)}}));await zre({stream:Lre({stream:p,onToolCall:this.onToolCall,onData:this.onData,messageMetadataSchema:this.messageMetadataSchema,dataPartSchemas:this.dataPartSchemas,runUpdateMessageJob:m,onError:g=>{throw g}}),onError:g=>{throw g}}),this.setStatus({status:"ready"})}catch(d){if(f||d.name==="AbortError")return f=!0,this.setStatus({status:"ready"}),null;h=!0,d instanceof TypeError&&(d.message.toLowerCase().includes("fetch")||d.message.toLowerCase().includes("network"))&&(c=!0),this.onError&&d instanceof Error&&this.onError(d),this.setStatus({status:"error",error:d})}finally{try{(a=this.onFinish)==null||a.call(this,{message:this.activeResponse.state.message,messages:this.state.messages,isAbort:f,isDisconnect:c,isError:h,finishReason:(o=this.activeResponse)==null?void 0:o.state.finishReason})}catch(d){console.error(d)}this.activeResponse=void 0}!h&&await this.shouldSendAutomatically()&&await this.makeRequest({trigger:"submit-message",messageId:(s=this.lastMessage)==null?void 0:s.id,metadata:t,headers:n,body:r})}};function Zre(e,t){if(typeof e!="function")throw new TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let n,r=0;return function(...o){clearTimeout(n);const a=Date.now(),s=a-r,l=t-s;l<=0?(r=a,e.apply(this,o)):n=setTimeout(()=>{r=Date.now(),e.apply(this,o)},l)}}var qre=Zre;const Wre=Ee(qre);var W_=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Fe=(e,t,n)=>(W_(e,t,"read from private field"),n?n.call(e):t.get(e)),_n=(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)},cr=(e,t,n,r)=>(W_(e,t,"write to private field"),t.set(e,n),n);function Hre(e,t){return t!=null?Wre(e,t):e}var Qt,As,Ms,Ro,Oo,Do,bi,fd,dd,Gre=class{constructor(e=[]){_n(this,Qt,void 0),_n(this,As,"ready"),_n(this,Ms,void 0),_n(this,Ro,new Set),_n(this,Oo,new Set),_n(this,Do,new Set),this.pushMessage=t=>{cr(this,Qt,Fe(this,Qt).concat(t)),Fe(this,bi).call(this)},this.popMessage=()=>{cr(this,Qt,Fe(this,Qt).slice(0,-1)),Fe(this,bi).call(this)},this.replaceMessage=(t,n)=>{cr(this,Qt,[...Fe(this,Qt).slice(0,t),this.snapshot(n),...Fe(this,Qt).slice(t+1)]),Fe(this,bi).call(this)},this.snapshot=t=>structuredClone(t),this["~registerMessagesCallback"]=(t,n)=>{const r=n?Hre(t,n):t;return Fe(this,Ro).add(r),()=>{Fe(this,Ro).delete(r)}},this["~registerStatusCallback"]=t=>(Fe(this,Oo).add(t),()=>{Fe(this,Oo).delete(t)}),this["~registerErrorCallback"]=t=>(Fe(this,Do).add(t),()=>{Fe(this,Do).delete(t)}),_n(this,bi,()=>{Fe(this,Ro).forEach(t=>t())}),_n(this,fd,()=>{Fe(this,Oo).forEach(t=>t())}),_n(this,dd,()=>{Fe(this,Do).forEach(t=>t())}),cr(this,Qt,e)}get status(){return Fe(this,As)}set status(e){cr(this,As,e),Fe(this,fd).call(this)}get error(){return Fe(this,Ms)}set error(e){cr(this,Ms,e),Fe(this,dd).call(this)}get messages(){return Fe(this,Qt)}set messages(e){cr(this,Qt,[...e]),Fe(this,bi).call(this)}};Qt=new WeakMap;As=new WeakMap;Ms=new WeakMap;Ro=new WeakMap;Oo=new WeakMap;Do=new WeakMap;bi=new WeakMap;fd=new WeakMap;dd=new WeakMap;var wi,G0=class extends Ure{constructor({messages:e,...t}){const n=new Gre(e);super({...t,state:n}),_n(this,wi,void 0),this["~registerMessagesCallback"]=(r,i)=>Fe(this,wi)["~registerMessagesCallback"](r,i),this["~registerStatusCallback"]=r=>Fe(this,wi)["~registerStatusCallback"](r),this["~registerErrorCallback"]=r=>Fe(this,wi)["~registerErrorCallback"](r),cr(this,wi,n)}};wi=new WeakMap;function kae({experimental_throttle:e,resume:t=!1,...n}={}){const r=x.useRef("chat"in n?{}:{onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});"chat"in n||(r.current={onToolCall:n.onToolCall,onData:n.onData,onFinish:n.onFinish,onError:n.onError,sendAutomaticallyWhen:n.sendAutomaticallyWhen});const i={...n,onToolCall:h=>{var d,p;return(p=(d=r.current).onToolCall)==null?void 0:p.call(d,h)},onData:h=>{var d,p;return(p=(d=r.current).onData)==null?void 0:p.call(d,h)},onFinish:h=>{var d,p;return(p=(d=r.current).onFinish)==null?void 0:p.call(d,h)},onError:h=>{var d,p;return(p=(d=r.current).onError)==null?void 0:p.call(d,h)},sendAutomaticallyWhen:h=>{var d,p,m;return(m=(p=(d=r.current).sendAutomaticallyWhen)==null?void 0:p.call(d,h))!=null?m:!1}},o=x.useRef("chat"in n?n.chat:new G0(i));("chat"in n&&n.chat!==o.current||"id"in n&&o.current.id!==n.id)&&(o.current="chat"in n?n.chat:new G0(i));const s=x.useCallback(h=>o.current["~registerMessagesCallback"](h,e),[e,o.current.id]),l=x.useSyncExternalStore(s,()=>o.current.messages,()=>o.current.messages),u=x.useSyncExternalStore(o.current["~registerStatusCallback"],()=>o.current.status,()=>o.current.status),f=x.useSyncExternalStore(o.current["~registerErrorCallback"],()=>o.current.error,()=>o.current.error),c=x.useCallback(h=>{typeof h=="function"&&(h=h(o.current.messages)),o.current.messages=h},[o]);return x.useEffect(()=>{t&&o.current.resumeStream()},[t,o]),{id:o.current.id,messages:l,setMessages:c,sendMessage:o.current.sendMessage,regenerate:o.current.regenerate,clearError:o.current.clearError,stop:o.current.stop,error:f,resumeStream:o.current.resumeStream,status:u,addToolResult:o.current.addToolOutput,addToolOutput:o.current.addToolOutput,addToolApprovalResponse:o.current.addToolApprovalResponse}}export{rie as $,ki as A,Lie as B,uie as C,doe as D,qie as E,aie as F,pie as G,Eie as H,coe as I,Oie as J,bie as K,Cie as L,Aie as M,voe as N,woe as O,Rie as P,xoe as Q,xA as R,zie as S,Gie as T,Kie as U,goe as V,yoe as W,Jie as X,hoe as Y,poe as Z,uoe as _,tie as a,Mie as a$,boe as a0,$oe as a1,koe as a2,Ioe as a3,Poe as a4,Moe as a5,Aoe as a6,Coe as a7,Eoe as a8,g$ as a9,zoe as aA,Loe as aB,t1 as aC,Noe as aD,Toe as aE,_oe as aF,Roe as aG,Doe as aH,Ooe as aI,hh as aJ,iae as aK,oae as aL,aae as aM,uae as aN,lae as aO,moe as aP,sae as aQ,cae as aR,Hie as aS,$ie as aT,sie as aU,oie as aV,Tie as aW,dae as aX,hie as aY,Nie as aZ,Iie as a_,Hoe as aa,Goe as ab,Yoe as ac,tae as ad,nae as ae,Uoe as af,cm as ag,Woe as ah,qoe as ai,Qo as aj,Zoe as ak,Qoe as al,Joe as am,Xoe as an,eae as ao,Zd as ap,W1 as aq,l4 as ar,Koe as as,rae as at,Soe as au,m$ as av,Boe as aw,Voe as ax,joe as ay,Foe as az,fT as b,Vie as b0,Zie as b1,cie as b2,vie as b3,Bie as b4,Uie as b5,die as b6,lie as b7,Die as b8,Wie as b9,Yie as ba,Pie as bb,pae as bc,hae as bd,gae as be,mae as bf,bae as bg,Ok as bh,vae as bi,yae as bj,yie as bk,_ie as bl,xie as bm,kie as bn,Sie as bo,kae as bp,Vre as bq,wae as br,xae as bs,Xie as bt,Fie as bu,jie as bv,wie as bw,fie as bx,mie as by,gie as bz,Y0 as c,Xre as d,roe as e,ooe as f,Qre as g,aoe as h,Ai as i,ps as j,loe as k,soe as l,Jre as m,eoe as n,noe as o,Tl as p,ioe as q,eie as r,pT as s,foe as t,toe as u,yb as v,nie as w,Qie as x,JT as y,iie as z};
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.