@tempots/beatui 0.61.4 → 0.61.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +1025 -1004
- package/dist/json-schema/index.cjs.js +2 -2
- package/dist/json-schema/index.es.js +2 -2
- package/dist/types/components/form/control/control.d.ts +3 -3
- package/dist/utils-Bzo19jHw.cjs +1 -0
- package/dist/{utils-DplD1EWi.js → utils-sMnCjVjS.js} +594 -582
- package/package.json +1 -1
- package/dist/utils-DKHQo6zE.cjs +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tempots/dom"),J=require("@tempots/ui"),h=require("./translations-hMQlZmD4.cjs"),Z=require("./colors-B9fcMxa_.cjs"),T=require("./index-CyyNsVT9.cjs"),L=require("./notice-D3As5ZhJ.cjs"),j=require("./modal-mwKwnIZS.cjs"),be=require("./theme-Dt6lCAvY.cjs"),S=require("./utils-DKHQo6zE.cjs"),fe=require("./timer-DK_yKNwE.cjs"),Bt=require("./link-portal-_tiDFZqh.cjs"),he=require("./toolbar-wEm8iNet.cjs");function Et(t,n=0,a=()=>!0){let r=null,l;const o=e.prop(t.value);return t.on(i=>{l=i,a(i)?r==null&&(r=setTimeout(()=>{r=null,o.set(l)},n)):o.set(i)}),t.onDispose(()=>{r!=null&&clearTimeout(r)}),o}const Fe=async(t,n="")=>{try{const r=await(await fetch(t)).blob(),l=URL.createObjectURL(r),o=document.createElement("a");o.href=l,o.download=n,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(l)}catch{window.open(t,"_blank")}},At=(t,n,a="application/octet-stream")=>{const r=new Blob([t],{type:a});Fe(URL.createObjectURL(r),n),URL.revokeObjectURL(URL.createObjectURL(r))},Nt=t=>{const n=new AbortController,a=e.prop({type:"progress",value:0});let r=!1;return(async()=>{try{const l=await fetch(t,{signal:n.signal});if(!l.ok)throw new Error(`HTTP error! status: ${l.status}`);const o=l.headers.get("content-length"),i=o?parseInt(o,10):void 0,u=(async()=>{if(i===void 0||isNaN(i))return a.set({type:"undetermined"}),await l.blob();{const m=new Uint8Array(i);if(l.body==null)throw new Error("Response body is null");const C=l.body.getReader();let g=0;for(;;){const{done:y,value:b}=await C.read();if(y)break;m.set(b,g),g+=b.length,a.set({type:"progress",value:Math.min(g/i,1)})}return new Blob([m],{type:l.headers.get("content-type")??void 0})}})(),c=t.split("/").pop()||"download",s=await u,p=new File([s],c,{type:s.type});r=!0,a.set({type:"done",file:p})}catch(l){a.set({type:"error",error:l})}finally{r=!0,a.dispose()}})(),{signal:a,cancel:()=>{r||n.abort()}}},Ft=t=>{Fe(URL.createObjectURL(t),t.name)},Je=(t,n)=>t<n?t:n,ve=(t,n)=>t>n?t:n,Mt=(t,{abortSignal:n}={})=>new Promise((a,r)=>{const l=setTimeout(a,t);n&&n.addEventListener("abort",()=>{clearTimeout(l),r(new DOMException("Aborted","AbortError"))})}),Oe=["xs","sm","md","lg","xl"];function Ut(t,n=1){const a=Oe.indexOf(t);if(a===-1)throw new Error(`Invalid size: ${t}`);const r=Math.min(Math.max(a+n,0),Oe.length-1);return Oe[r]}function at(t,n,a,r){const l=["bc-badge",`bc-badge--size-${t}`,`bc-control--rounded-${n}`];return a&&l.push("bc-badge--circle"),r&&l.push("bc-badge--full-width"),l.join(" ")}function rt(t,n){const a=new Map,r=(l,o,i,u)=>{a.set("--badge-bg-hover",l),a.set("--badge-text-hover",i),a.set("--badge-bg-hover-dark",o),a.set("--badge-text-hover-dark",u)};switch(t){case"filled":{const l=h.backgroundValue(n,"solid","light"),o=h.backgroundValue(n,"solid","dark"),i=h.hoverBackgroundValue(n,"soft","light"),u=h.hoverBackgroundValue(n,"soft","dark");a.set("--badge-bg",l.backgroundColor),a.set("--badge-text",l.textColor),a.set("--badge-bg-dark",o.backgroundColor),a.set("--badge-text-dark",o.textColor),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(i.backgroundColor,u.backgroundColor,i.textColor,u.textColor);break}case"light":{const l=h.backgroundValue(n,"light","light"),o=h.backgroundValue(n,"light","dark"),i=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg",l.backgroundColor),a.set("--badge-text",l.textColor),a.set("--badge-bg-dark",o.backgroundColor),a.set("--badge-text-dark",o.textColor),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(i.backgroundColor,u.backgroundColor,i.textColor,u.textColor);break}case"outline":{const l=h.textColorValue(n,"light"),o=h.textColorValue(n,"dark"),i=h.borderColorValue(n,"light"),u=h.borderColorValue(n,"dark"),c=h.hoverBackgroundValue(n,"light","light"),s=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","transparent"),a.set("--badge-text",l),a.set("--badge-bg-dark","transparent"),a.set("--badge-text-dark",o),a.set("--badge-border",i),a.set("--badge-border-dark",u),r(c.backgroundColor,s.backgroundColor,c.textColor,s.textColor);break}case"default":{const l=h.textColorValue(n,"light"),o=h.textColorValue(n,"dark"),i=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","var(--bg-background-light)"),a.set("--badge-text",l),a.set("--badge-bg-dark","var(--bg-background-dark)"),a.set("--badge-text-dark",o),a.set("--badge-border","var(--border-border-light)"),a.set("--badge-border-dark","var(--border-border-dark)"),r(i.backgroundColor,u.backgroundColor,i.textColor,u.textColor);break}case"text":{const l=h.textColorValue(n,"light"),o=h.textColorValue(n,"dark"),i=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","transparent"),a.set("--badge-text",l),a.set("--badge-bg-dark","transparent"),a.set("--badge-text-dark",o),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(i.backgroundColor,u.backgroundColor,i.textColor,u.textColor);break}}return Array.from(a.entries()).map(([l,o])=>`${l}: ${o}`).join("; ")}function Rt({variant:t="filled",size:n="md",color:a="base",roundedness:r="full",circle:l=!1,fullWidth:o=!1},...i){return e.html.span(e.attr.class(e.computedOf(n,r,l,o)((u,c,s,p)=>at(u??"md",c??"sm",s??!1,p??!1))),e.attr.style(e.computedOf(t,a)((u,c)=>rt(u??"filled",c??"base"))),e.html.span(e.attr.class("bc-badge__content"),...i))}function Wt({onChange:t,accept:n="*/*",onDragContent:a,content:r,onInvalidSelection:l,disabled:o=!1}){const i=e.prop(!1),u=e.prop([]);let c=null,s=0;const p=d=>d.dataTransfer?.types.includes("Files")??!1,m=(d,V)=>V==="*/*"?!0:V.split(",").map(P=>P.trim()).some(P=>{if(P==="*/*")return!0;if(P.endsWith("/*")){const I=P.slice(0,-2);return d.type.startsWith(I+"/")}return d.type===P||d.name.endsWith(P)}),C=d=>{e.Value.get(o)||p(d)&&(d.preventDefault(),d.stopPropagation(),s++,s===1&&(i.value=!0))},g=d=>{e.Value.get(o)||p(d)&&(d.preventDefault(),d.stopPropagation(),d.dataTransfer!=null&&(d.dataTransfer.dropEffect="copy"))},y=d=>{e.Value.get(o)||p(d)&&(d.preventDefault(),d.stopPropagation(),s--,s===0&&(i.value=!1))},b=d=>{if(e.Value.get(o)||!p(d))return;d.preventDefault(),d.stopPropagation(),s=0,i.value=!1;const V=Array.from(d.dataTransfer?.files??[]);if(V.length>0){const x=e.Value.get(n),P=V.filter(k=>m(k,x)),I=V.filter(k=>!P.includes(k));P.length>0&&(u.value=P,t(P,"dragdrop")),I.length>0&&l?.(V)}};typeof document<"u"&&(document.addEventListener("dragenter",C),document.addEventListener("dragover",g),document.addEventListener("dragleave",y),document.addEventListener("drop",b));const w=()=>{typeof document<"u"&&(document.removeEventListener("dragenter",C),document.removeEventListener("dragover",g),document.removeEventListener("dragleave",y),document.removeEventListener("drop",b)),s=0},v=()=>{c?.click()},f=d=>{const V=d.target,x=Array.from(V.files??[]);x.length>0&&(u.value=x,t(x,"click")),V.value=""};return e.Fragment(e.OnDispose(w),e.html.input(e.attr.type("file"),e.attr.name("bui-page-drop-zone"),e.attr.multiple(!0),e.attr.accept(n),e.style.position("absolute"),e.style.opacity("0"),e.style.pointerEvents("none"),e.style.width("0"),e.style.height("0"),e.on.change(f),e.WithElement(d=>(c=d,e.OnDispose(()=>{c!=null&&(c.value="")})))),a!=null?e.When(i,()=>a({files:u})):null,r!=null?r({isDragging:i,files:u,selectFiles:v}):null)}function Ht(t,n,a,r,l,o){const i=["bc-table"];return t!=="md"&&i.push(`bc-table--size-${t}`),n&&i.push("bc-table--hoverable"),a&&i.push("bc-table--sticky-header"),r&&i.push("bc-table--with-striped-rows"),l&&i.push("bc-table--with-column-borders"),o&&i.push("bc-table--with-row-borders"),i.join(" ")}function jt(t){if(t!=null)return t==="none"?"--table-border-radius: 0":`--table-border-radius: var(--radius-${t})`}function zt({size:t="md",hoverable:n=!1,stickyHeader:a=!1,fullWidth:r=!1,withStripedRows:l=!1,withTableBorder:o=!0,withColumnBorders:i=!1,withRowBorders:u=!0,borderRadius:c}={},...s){const p=e.computedOf(t,n,a,l,i,u)((g,y,b,w,v,f)=>Ht(g??"md",y??!1,b??!1,w??!1,v??!1,f??!0)),m=e.computedOf(a,r,o)((g,y,b)=>{const w=["bc-table-container"];return g&&w.push("bc-table-container--sticky"),y&&w.push("bc-table-container--full-width"),b&&w.push("bc-table-container--with-table-border"),w.join(" ")}),C=e.computedOf(c)(g=>jt(g));return e.html.div(e.attr.class(m),e.attr.style(C),e.html.table(e.attr.class(p),...s))}function Gt(t,n){const a=["bc-tag"];return t!=="md"&&a.push(`bc-tag--${t}`),n&&a.push("bc-tag--disabled"),a.join(" ")}function Yt(t){const n=h.backgroundValue(t,"light","light"),a=h.backgroundValue(t,"light","dark"),r=h.hoverBackgroundValue(t,"light","light"),l=h.hoverBackgroundValue(t,"light","dark");return[`--tag-bg: ${n.backgroundColor}`,`--tag-text: ${n.textColor}`,`--tag-bg-dark: ${a.backgroundColor}`,`--tag-text-dark: ${a.textColor}`,`--tag-bg-hover: ${r.backgroundColor}`,`--tag-text-hover: ${r.textColor}`,`--tag-bg-hover-dark: ${l.backgroundColor}`,`--tag-text-hover-dark: ${l.textColor}`].join("; ")}const Me=({value:t,color:n="base",onClose:a,size:r="md",class:l,disabled:o})=>e.html.span(e.attr.class(e.computedOf(r??"md",o??!1)((i,u)=>Gt(i,u))),e.attr.style(e.computedOf(n)(i=>Yt(i??"base"))),e.attr.class(l),e.html.span(t),a!=null?e.Use(h.BeatUII18n,i=>L.CloseButton({size:"xs",label:i.$.removeItem,color:"white",disabled:o,onClick:()=>a?.(e.Value.get(t))},e.attr.class("bc-tag__close"))):e.Empty);function lt({value:t,onChange:n,disabled:a}){return S.SegmentedInput({size:"sm",value:t,disabled:a,options:{system:e.html.span(e.attr.title("System"),h.Icon({icon:"line-md:laptop",color:"gray"})),light:e.html.span(e.attr.title("Light"),h.Icon({icon:"line-md:sunny-twotone-loop",color:"yellow"})),dark:e.html.span(e.attr.title("Dark"),h.Icon({icon:"line-md:sunny-outline-to-moon-alt-loop-transition",color:"blue"}))},onChange:n})}function qt(){return e.Use(be.Theme,({appearancePreference:t,setAppearancePreference:n})=>lt({value:t,onChange:n}))}function Zt({value:t,onChange:n,onInput:a}){let r=null;return e.html.div(e.attr.class("bc-color-input__swatch-container"),e.html.span(e.attr.class("bc-color-input__swatch"),e.on.click(()=>r?.showPicker()),e.input.color(e.WithElement(l=>(r=l,e.Empty)),e.attr.value(t),e.style.width("4px"),e.style.height("4px"),n!=null?e.on.change(e.emitValue(n)):e.Empty,a!=null?e.on.input(e.emitValue(a)):e.Empty),e.attr.style(e.Value.map(t,l=>`background-color: ${l}`))))}function Jt(t){const{value:n,onBlur:a,onChange:r,onInput:l}=t;return h.InputContainer({...t,input:e.input.text(h.CommonInputAttributes(t),e.attr.value(n),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(r)):e.Empty,l!=null?e.on.input(e.emitValue(l)):e.Empty)},e.attr.class("bc-color-input"),Zt({value:n,onChange:t.onChange,onInput:t.onInput}))}function Kt(t){const n={fade:!0,scale:!0};return t.startsWith("top")?(n.slide="down",n.transformOrigin="bottom"):t.startsWith("bottom")?(n.slide="up",n.transformOrigin="top"):t.startsWith("left")?(n.slide="right",n.transformOrigin="right"):t.startsWith("right")&&(n.slide="left",n.transformOrigin="left"),n}function ye(t){const{content:n,placement:a="top",showDelay:r=250,hideDelay:l=500,mainAxisOffset:o=8,crossAxisOffset:i=0,showOn:u="hover-focus",closable:c=!0,arrow:s,role:p,hasPopup:m="dialog"}=t;return J.PopOver((C,g)=>{const y=j.useAnimatedElementToggle({initialStatus:"closed"}),b=L.sessionId("flyout"),w=e.prop(!1);let v=null,f=null,d=!1;function V(){P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),f&&(f(),f=null),v&&(document.removeEventListener("keydown",v),v=null),w.set(!1),d=!1}function x(){e.Value.get(c)&&(v=E=>{E.key==="Escape"&&D()},document.addEventListener("keydown",v)),d=!0,w.set(!0),C({placement:a??"top",mainAxisOffset:o,crossAxisOffset:i,onClickOutside:()=>{e.Value.get(c)&&D()},arrow:s,content:e.WithElement(E=>{y.setElement(E),f=fe.g(()=>{y.open(),f=null});const $=F=>{e.Value.get(c)&&F.key==="Escape"&&(F.preventDefault(),F.stopPropagation(),D(),w.set(!1))};return document.addEventListener("keydown",$,!0),e.Fragment(e.OnDispose(()=>{V(),document.removeEventListener("keydown",$,!0)}),e.attr.class("bc-flyout-container"),e.attr.id(b),e.attr.tabindex(-1),e.html.div(e.attr.class("bc-flyout"),j.AnimatedToggleClass({animation:e.Value.map(a,Kt),status:y.status}),p?e.attr.role(p):e.attr.role("dialog"),n()))})})}let P=null;function I(){if(P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),y.isOpened.value||y.isOpening.value||y.isStartOpening.value)return;if(y.isClosing.value||y.isStartClosing.value){y.open();return}const E=e.Value.get(r);P=setTimeout(()=>{P=null,x()},E)}let k=null;function D(){if(P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),w.set(!1),f&&(f(),f=null,d)){g(),V();return}const E=e.Value.get(l);k=setTimeout(()=>{k=null,y.close(),y.listenOnClosed(()=>{g(),V()})},E)}return e.WithElement(E=>{const $=()=>{I(),w.set(!0)},F=()=>{D(),w.set(!1)},q=e.Fragment(e.aria.expanded(w),e.aria.controls(b),e.aria.haspopup(m));if(typeof u=="function")return e.Fragment(q,u($,F));const M=u;return e.Fragment(q,e.OneOfValue(M,{"hover-focus":()=>e.Fragment(e.on.mouseenter(()=>$()),e.on.mouseleave(()=>F()),e.on.focus(()=>$()),e.on.blur(()=>F())),hover:()=>e.Fragment(e.on.mouseenter(()=>$()),e.on.mouseleave(()=>F())),focus:()=>e.Fragment(e.on.focus(()=>$()),e.on.blur(()=>F())),click:()=>{function N(){document.removeEventListener("click",W)}function W(){N(),F()}return e.Fragment(e.OnDispose(N),e.on.click(()=>{$(),fe.g(()=>{document.addEventListener("click",W,{once:!0})})}))},never:()=>null}))})})}function Qt(t,n,a,r){const l=["bc-action-card"];return t&&l.push("bc-action-card--active"),n&&l.push("bc-action-card--disabled"),a!=="md"&&l.push(`bc-action-card--${a}`),r&&!n&&l.push("bc-action-card--clickable"),l.join(" ")}function Xt(t,n,a,r){const l=new Map;if(t!=null&&l.set("--action-card-bg",t),n!=null&&l.set("--action-card-border",n),a!=null&&l.set("--action-card-title-color",a),r!=null&&l.set("--action-card-description-color",r),l.size!==0)return Array.from(l.entries()).map(([o,i])=>`${o}: ${i}`).join("; ")}function en({icon:t,title:n,description:a,active:r=!1,disabled:l=!1,onClick:o,size:i="md",iconColor:u="primary",iconSize:c="md",backgroundColor:s,borderColor:p,titleColor:m,descriptionColor:C}){const g=o!=null;return e.html.div(e.attr.class(e.computedOf(r,l,i)((y,b,w)=>Qt(y??!1,b??!1,w??"md",g))),e.attr.style(e.computedOf(s,p,m,C)((y,b,w,v)=>Xt(y,b,w,v))),e.When(g,()=>e.Fragment(e.Unless(l,()=>e.Fragment(e.on.click(()=>o?.()),e.attr.tabindex(0))),e.attr.role("button"))),e.aria.disabled(l),e.html.div(e.attr.class("bc-action-card__icon"),h.Icon({icon:t,size:c,color:u})),e.html.div(e.attr.class("bc-action-card__content"),e.html.div(e.attr.class("bc-action-card__title"),n),e.html.div(e.attr.class("bc-action-card__description"),a)))}const tn=["!=","<=",">=","<",">","="];function nn(t){for(const n of tn)if(typeof t=="string"&&t.startsWith(n))return[n,t.slice(n.length)];return["=",t]}function ot(t,n,a){const[r,l]=nn(n),o=t.findIndex(c=>c[1]===l);if(o===-1)throw new Error(`Breakpoint ${String(l)} not found`);const i=t[o][0],u=o<t.length-1?t[o+1][0]:1/0;switch(r){case"=":return a>=i&&a<u;case"!=":return!(a>=i&&a<u);case"<=":return a<=i;case">=":return a>=i;case"<":return a<i;case">":return a>i;default:return!1}}function an(t,n){const a=t.findIndex(r=>r[0]>n)-1;return a>=0?t[a][1]:(t.length>0&&n>=t[0][0],t[0][1])}function Ue(t,{breakpoints:n,mode:a="viewport"}){const l=[...Object.entries(n).map(([i,u])=>[u,i])].sort((i,u)=>i[0]-u[0]),o=i=>{const u=i.map(({width:s})=>{const p=l.findIndex(m=>m[0]>s)-1;return p>=0?{width:s,breakpoint:l[p][1]}:l.length>0&&s>=l[0][0]?{width:s,breakpoint:l[0][1]}:{width:s,breakpoint:l[0][1]}});return t({value:u,breakpoints:n,asList:l,is:(s,p)=>ot(l,s,p)})};return a==="element"?J.ElementRect(o):J.WindowSize(o)}let Pe=NaN;function rn(t,n){return t?(isNaN(Pe)&&(Pe=parseFloat(getComputedStyle(document.documentElement).fontSize)),parseFloat(t)*Pe):n}function K(t,n,a){return rn(t.getPropertyValue(n),a)}function st(t){return e.WithElement(n=>{const a=getComputedStyle(n),r={zero:0,xs:K(a,"--breakpoint-xs",640),sm:K(a,"--breakpoint-sm",768),md:K(a,"--breakpoint-md",1024),lg:K(a,"--breakpoint-lg",1280),xl:K(a,"--breakpoint-xl",1536)};return Ue(t,{breakpoints:r})})}function ln(t){return e.WithElement(n=>{const a=getComputedStyle(n),r={zero:0,"3xs":K(a,"--container-3xs",256),"2xs":K(a,"--container-2xs",288),xs:K(a,"--container-xs",320),sm:K(a,"--container-sm",384),md:K(a,"--container-md",448),lg:K(a,"--container-lg",512),xl:K(a,"--container-xl",640),"2xl":K(a,"--container-2xl",768),"3xl":K(a,"--container-3xl",1024),"4xl":K(a,"--container-4xl",1280),"5xl":K(a,"--container-5xl",1536),"6xl":K(a,"--container-6xl",2048)};return Ue(t,{breakpoints:r,mode:"element"})})}function ee(t,n){return`bc-panel ${(Array.isArray(t)?t:[t]).map(r=>`bc-panel--side-${r}`).join(" ")} bc-panel--shadow-${n}`}function se(t){const n=e.Value.toSignal(t).map(r=>h.backgroundValue(r,"lighter","light")),a=e.Value.toSignal(t).map(r=>h.backgroundValue(r,"lighter","dark"));return e.Fragment(e.style.variable("--panel-bg",n.$.backgroundColor),e.style.variable("--panel-text",n.$.textColor),e.style.variable("--panel-bg-dark",a.$.backgroundColor),e.style.variable("--panel-text-dark",a.$.textColor))}const ne={banner:{zero:32,xs:32,sm:32,md:32,lg:32,xl:32},header:{zero:60,xs:60,sm:60,md:60,lg:60,xl:60},mainHeader:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},mainFooter:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},footer:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},menu:{zero:300,xs:300,sm:300,md:300,lg:300,xl:300},aside:{zero:280,xs:280,sm:280,md:280,lg:280,xl:280}};function Ke(t,n){if(typeof t=="number")return{zero:t,xs:t,sm:t,md:t,lg:t,xl:t};const a={zero:t.zero??n.zero,xs:t.xs??n.xs,sm:t.sm??n.sm,md:t.md??n.md,lg:t.lg??n.lg,xl:t.xl??n.xl};return a.xs<a.zero&&(a.xs=a.zero),a.sm<a.xs&&(a.sm=a.xs),a.md<a.sm&&(a.md=a.sm),a.lg<a.md&&(a.lg=a.md),a.xl<a.lg&&(a.xl=a.lg),a}function _e(t){t=t.filter(n=>n.some(a=>a!=null&&!a.startsWith("?")));for(let n=0;n<t[0].length;n++)t.every(a=>a[n]==null||a[n].startsWith("?"))&&(t=t.map(a=>a.filter((r,l)=>l!==n)),n--);return t=t.map(n=>n.map(a=>a?.startsWith("?")?a.slice(1):a)),t}function on({smallBreakpoint:t,mediumBreakpoint:n,vertical:a,horizontal:r,is:l}){function o(c){let s=[[null],[null],[null],[null],[null],[null]];const p=[];p.push("1fr");const m=[];return r.banner&&(m.push(r.banner[c]+"px"),s[0][1]="banner"),(r.header||a.menu||a.aside)&&(m.push((r.header?.[c]??ne.header[c])+"px"),s[1][1]="header"),r.mainHeader&&(m.push(r.mainHeader[c]+"px"),s[2][1]="mainHeader"),m.push("1fr"),s[3][1]="main",r.mainFooter&&(m.push(r.mainFooter[c]+"px"),s[4][1]="mainFooter"),r.footer&&(m.push(r.footer[c]+"px"),s[5][1]="footer"),s=_e(s),{columns:p.join(" "),rows:m.join(" "),areas:s.map(g=>`"${g.join(" ")}"`).join(`
|
|
2
|
-
`),displayMenu:!1,displayAside:!1,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}function
|
|
3
|
-
`),displayMenu:!0,displayAside:!1,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}function u(c){let
|
|
4
|
-
`),displayMenu:!0,displayAside:!0,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}return({width:c,breakpoint:s})=>l(`<=${t}`,c)?o(s):l(`<=${n}`,c)?i(s):u(s)}const sn=["menu","aside"],un=["banner","header","mainHeader","mainFooter","footer"];function cn(t,{displayMenu:n},a){return t?n?"block":a?"float":"none":"none"}function dn(t,{displayAside:n},a){return t?n?"block":a?"float":"none":"none"}function pn({smallBreakpoint:t="sm",mediumBreakpoint:n="md",...a}){const r=Object.fromEntries(sn.filter(o=>a[o]).map(o=>[o,Ke(a[o].width??{},ne[o])])),l=Object.fromEntries(un.filter(o=>a[o]).map(o=>[o,Ke(a[o].height??{},ne[o])]));return e.Use(h.BeatUII18n,o=>st(({value:i,is:u})=>{const c=on({smallBreakpoint:t,mediumBreakpoint:n,vertical:r,horizontal:l,is:u}),s=i.map(c),p=l.header!=null||r.menu!=null||r.aside!=null,m=e.computedOf(r.aside!=null,s)((f,{displayAside:d})=>f&&!d),C=e.computedOf(r.menu!=null,s)((f,{displayMenu:d})=>f&&!d),g=j.useAnimatedElementToggle(),y=j.useAnimatedElementToggle(),b=e.prop(0),w=e.computedOf(r.menu!=null,s,g.display)(cn),v=e.computedOf(r.aside!=null,s,y.display)(dn);return e.html.div(e.style.display("grid"),e.style.height("100%"),e.style.width("100%"),e.style.gridTemplateColumns(s.$.columns),e.style.gridTemplateRows(s.$.rows),e.style.gridTemplateAreas(s.$.areas),e.style.gridColumnGap("0"),e.style.gridRowGap("0"),a.banner?e.html.header(e.attr.class(ee("none",a.banner.shadow??"none")),se(a.banner.color??"white"),e.style.height("100%"),e.style.gridArea("banner"),a.banner.content):null,e.html.header(e.attr.class(ee("bottom",a.header?.shadow??"none")),se(a.header?.color??"white"),e.style.zIndex("20"),e.style.display(p?"block":"none"),e.style.gridArea("header"),J.ElementRect(f=>(f.$.bottom.feedProp(b),null)),e.html.div(e.style.display("flex"),e.style.height("100%"),e.html.div(e.style.display(C.map(f=>f?"flex":"none")),e.style.alignItems("center"),e.style.justifyContent("center"),e.style.height("100%"),e.style.width("60px"),h.Button({onClick:()=>g.toggle(),variant:"light",color:"base"},e.aria.label(o.$.toggleMenu),h.Icon({icon:g.display.map(f=>f?"line-md/menu-to-close-alt-transition":"line-md/close-to-menu-alt-transition")}))),e.html.div(e.style.height("100%"),e.style.flexGrow("1"),a.header?.content),e.html.div(e.style.alignItems("center"),e.style.justifyContent("center"),e.style.height("100%"),e.style.width("60px"),e.style.display(m.map(f=>f?"flex":"none")),h.Button({onClick:()=>y.toggle(),roundedness:"full",variant:"light",color:"base"},e.aria.label(o.$.toggleAside),h.Icon({icon:"line-md/chevron-left"},e.attr.style("transition: transform 0.2s ease-in-out"),e.attr.style(y.display.map(f=>`transform: rotate(${f?180:0}deg)`))))))),a.menu?e.html.nav(e.WithElement(f=>g.setElement(f)),e.style.zIndex("10"),e.aria.label(o.$.mainNavigation),e.attr.role("navigation"),e.style.overflow("hidden"),e.attr.class(w.map(f=>f==="float"?ee("right",a.menu?.shadow??"md"):ee("right",a.menu?.shadow??"none"))),se(a.menu?.color??"white"),e.style.height(w.map(f=>f==="float"?"auto":"100%")),e.style.overflow("hidden"),e.style.gridArea("menu"),e.style.display(e.computedOf(w,g.status)((f,d)=>f==="none"&&d==="closed"?"none":"block")),e.style.position(e.computedOf(w,g.status)((f,d)=>f==="float"||f==="none"&&d!=="closed"?"fixed":"initial")),e.style.top(b.map(f=>`${f}px`)),j.AnimatedToggleClass({animation:{slide:"right"},status:e.computedOf(w,g.status)((f,d)=>f==="block"?"opened":d)}),e.style.width(e.coalesce(a.menu?.width,s.$.menuWidth)),e.style.bottom("0"),a.menu?.content):null,a.mainHeader?e.html.header(e.style.height("100%"),e.style.gridArea("mainHeader"),e.attr.class(ee("none",a.mainHeader?.shadow??"none")),se(a.mainHeader?.color??"white"),a.mainHeader.content):null,e.html.main(e.style.height("100%"),e.style.overflow("hidden"),e.style.gridArea("main"),e.attr.class(ee("none",a.main?.shadow??"none")),se(a.main?.color??"white"),a.main.content),a.mainFooter?e.html.footer(e.style.height("100%"),e.style.gridArea("mainFooter"),e.attr.class(ee("none",a.mainFooter?.shadow??"none")),se(a.mainFooter?.color??"white"),a.mainFooter.content):null,a.aside?e.html.aside(e.WithElement(f=>{y.setElement(f)}),e.style.zIndex("10"),e.aria.label(o.$.sidebar),e.attr.role("complementary"),e.attr.class(v.map(f=>f==="float"?ee("left","md"):ee("left","none"))),se("white"),e.style.height("100%"),e.style.gridArea("aside"),e.style.display(e.computedOf(v,y.status)((f,d)=>f==="none"&&d==="closed"?"none":"block")),e.style.position(e.computedOf(v,y.status)((f,d)=>f==="float"||f==="none"&&d!=="closed"?"fixed":"initial")),e.style.top(b.map(f=>`${f}px`)),j.AnimatedToggleClass({animation:{slide:"left"},status:e.computedOf(v,y.status)((f,d)=>f==="block"?"opened":d)}),e.style.width(e.coalesce(a.aside?.width,s.$.asideWidth)),e.style.bottom(b.map(f=>`${f}px`)),a.aside.content):null,a.footer?e.html.footer(e.attr.class(ee("top","none")),se("white"),e.style.height("100%"),e.style.gridArea("footer"),a.footer.content):null)}))}function mn(...t){return e.html.div(e.attr.class("bc-center-h"),e.html.div(e.attr.class("bc-center__content"),...t))}function fn(t){const n=["bc-center"];return t!=="lg"&&n.push(`bc-center--gap-${t}`),n.join(" ")}function gn({gap:t="lg"}={},...n){return e.html.div(e.attr.class(e.computedOf(t)(a=>fn(a??"lg"))),...n)}function it({open:t},...n){return e.WithElement(a=>{const{status:r,setOpen:l,dispose:o}=j.useAnimatedElementToggle({initialStatus:e.Value.get(t)?"opened":"closed",element:a});return e.Value.on(t,l),J.ElementRect(i=>{const u=e.prop(null);return e.computedOf(r,i.$.height)((s,p)=>s==="opened"&&p>0?p:null).on(s=>{s!=null&&u.set(s)}),r.on(s=>{if(a&&s==="start-opening"){const p=a.style.height,m=a.style.transition;a.style.transition="none",a.style.height="auto",a.offsetHeight;const C=a.scrollHeight;C>0&&u.set(C),a.style.height=p,a.style.transition=m,a.offsetHeight}}),e.Fragment(e.OnDispose(o),e.attr.style(u.map(s=>`--collapse-height: ${s!=null?`${s}px`:"auto"}`)),e.attr.class(r.map(s=>`bc-collapse bc-collapse--${s}`)),...n)})})}function bn(t){return`${t}px`}function Qe(t){return e.Value.map(t,bn)}function hn({body:t,contentWidth:n,contentHeight:a,header:r,headerHeight:l=0,topStart:o,topEnd:i,footer:u,footerHeight:c=0,bottomStart:s,bottomEnd:p,sidebarStart:m,sidebarStartWidth:C=0,sidebarEnd:g,sidebarEndWidth:y=0,anchorMode:b="container-edge"}){const w=e.prop(0n),v=e.prop(0n),f=Qe(l),d=Qe(C),V=e.prop(16);return e.html.div(e.attr.class("bc-nine-slice-container"),J.ElementRect(x=>{const P=e.computedOf(x.$.width,C,y)((_,A,Y)=>_-A-Y),I=e.computedOf(x.$.height,l,c)((_,A,Y)=>_-A-Y),k=e.computedOf(n,P)((_,A)=>_>BigInt(A)),D=e.computedOf(a,I)((_,A)=>_>BigInt(A)),E=e.computedOf(P,D,V)((_,A,Y)=>A?_-Y:_),$=e.computedOf(I,k,V)((_,A,Y)=>A?_-Y:_),F=e.computedOf(n,E)((_,A)=>Number(_/BigInt(Math.max(1,A)))),q=e.computedOf(a,$)((_,A)=>Number(_/BigInt(Math.max(1,A)))),M=e.Value.map(b,_=>_==="body-end"||_==="body-end-bottom"),N=e.When(M,()=>e.style.left(e.computedOf(C,n,E,y)((_,A,Y,O)=>{const B=_+Number(A),U=_+Y,G=Math.min(B,U);return`${Math.max(_+O,G)}px`})),()=>e.style.right("0")),W=e.Value.map(b,_=>_==="body-bottom"||_==="body-end-bottom"),Q=e.When(W,()=>e.style.top(e.computedOf(l,a,$,c)((_,A,Y,O)=>{const B=_+Number(A),U=_+Y,G=Math.min(B,U);return`${Math.max(_+O,G)}px`})),()=>e.style.bottom("0")),ie=e.computedOf(D,V)((_,A)=>_?`${A}px`:"0"),z=e.computedOf(k,V)((_,A)=>_?`${A}px`:"0"),X=e.style.transform(e.computedOf(v,w,k,D)((_,A,Y,O)=>{const B=Y?`translateX(-${_}px)`:"",U=O?`translateY(-${A}px)`:"";return`${B} ${U}`.trim()||"none"})),re=e.style.transform(v.map(_=>`translateX(-${_}px)`)),le=e.style.transform(w.map(_=>`translateY(-${_}px)`)),pe=e.computedOf(a,$)((_,A)=>_-BigInt(Math.max(1,A))),me=e.computedOf(n,E)((_,A)=>_-BigInt(Math.max(1,A)));let R=null,ue=0,ce=0;const Ie=()=>{const _=pe.value,A=me.value,Y=D.value,O=k.value;if(Y&&ce!==0){const B=Je(ve(0n,_),ve(0n,w.value+BigInt(Math.round(ce))));w.set(B)}if(O&&ue!==0){const B=Je(ve(0n,A),ve(0n,v.value+BigInt(Math.round(ue))));v.set(B)}ue=0,ce=0,R=null};return k.on(_=>{_||v.set(0n)}),D.on(_=>{_||w.set(0n)}),e.Fragment(e.OnDispose(()=>{R&&clearTimeout(R)}),e.on.wheel(_=>{_.preventDefault();const{deltaX:A,deltaY:Y}=_;ue+=A,ce+=Y,R||(R=setTimeout(Ie,16))}),e.html.div(e.attr.class("bc-nine-slice-pane-container"),e.style.right(ie),e.style.bottom(z),o!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-top-start"),e.style.top("0"),e.style.left("0"),o):null,r!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-header"),e.style.top("0"),e.style.left(d),e.html.div(e.attr.class("bc-nine-slice-pane-content"),re,r)):null,i!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-top-end"),e.style.top("0"),N,i):null,m!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),e.style.left("0"),e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),le,m)):null,e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-body"),e.style.left(d),e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),X,t)),g!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),N,e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),le,g)):null,s!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),e.style.left("0"),Q,s):null,u!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-footer"),e.style.left(d),Q,e.html.div(e.attr.class("bc-nine-slice-pane-content"),re,u)):null,p!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),N,Q,p):null),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar"),e.style.overflowX("scroll"),e.style.left("0"),e.style.right(e.computedOf(D,V)((_,A)=>_?`${A}px`:"0")),e.style.bottom("0"),e.style.height(k.map(_=>_?"16px":"0")),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"),e.style.width(F.map(_=>`${100/Math.max(1,_)}%`)),e.style.height("100%"),e.style.backgroundColor("#ff000066")),e.on.scroll(_=>{const A=_.target,Y=A.scrollLeft,O=A.scrollWidth-A.clientWidth;if(O>0){const B=Y/O,U=me.value;v.set(BigInt(Math.round(Number(U)*B)))}})),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar"),e.style.overflowY("scroll"),e.style.top("0"),e.style.bottom(e.computedOf(k,V)((_,A)=>_?`${A}px`:"0")),e.style.right("0"),e.style.width(D.map(_=>_?"16px":"0")),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar-thumb"),e.style.width("100%"),e.style.height(e.computedOf(l,c,a,q)((_,A,Y,O)=>`${100/Math.max(1,O)}%`)),e.style.backgroundColor("#ff000066")),e.on.scroll(_=>{const A=_.target,Y=A.scrollTop,O=A.scrollHeight-A.clientHeight;if(O>0){const B=Y/O,U=pe.value;w.set(BigInt(Math.round(Number(U)*B)))}})))}))}function Be({header:t,footer:n,body:a,shadowOnScroll:r=!0},...l){const o=e.prop("none");function i(c){const s=c.scrollTop===0,p=c.scrollTop+c.clientHeight>=c.scrollHeight-1;s&&p?o.set("none"):s?o.set("bottom"):p?o.set("top"):o.set("both")}return e.html.div(e.attr.class("bc-scrollable-panel"),e.attr.class(e.computedOf(o,r)((c,s)=>{if(!s)return"";switch(c){case"both":return"bc-scrollable-panel--scrolled-up bc-scrollable-panel--scrolled-down";case"bottom":return"bc-scrollable-panel--scrolled-up";case"top":return"bc-scrollable-panel--scrolled-down";default:return""}})),t&&e.html.div(e.attr.class("bc-scrollable-panel__header"),t),e.html.div(e.attr.class("bc-scrollable-panel--header-shadow"),e.html.div()),e.html.div(e.attr.class("bc-scrollable-panel__body"),e.WithElement(c=>e.OnDispose(fe.g(()=>i(c)))),e.on.scroll(c=>{const s=c.target;i(s)}),a),e.html.div(e.attr.class("bc-scrollable-panel--footer-shadow"),e.html.div()),n&&e.html.div(e.attr.class("bc-scrollable-panel__footer"),n),...l)}function yn(t,n,a){const r=["bc-sink"];return t!=="default"&&r.push(`bc-sink--${t}`),n!=="md"&&r.push(`bc-sink--padding-${n}`),a!=="lg"&&r.push(`bc-sink--rounded-${a}`),r.join(" ")}function vn({variant:t="default",size:n="md",roundedness:a="lg"}={},...r){return e.html.div(e.attr.class(e.computedOf(t,n,a)((l,o,i)=>yn(l??"default",o??"md",i??"lg"))),...r)}const ae={value:(t,n,{disabled:a,before:r,after:l}={})=>({type:"value",value:t,label:n,disabled:a,before:r,after:l}),group:(t,n,{disabled:a,before:r,after:l}={})=>({type:"group",group:t,options:n,disabled:a,before:r,after:l}),break:{type:"break"},getValues:t=>t.flatMap(n=>n.type==="group"?ae.getValues(n.options):n.type==="break"?[]:[n.value]),contains:(t,n,a=(r,l)=>r===l)=>ae.getValues(t).some(r=>a(r,n))},Re=t=>{const{onChange:n,onBlur:a,role:r,display:l,optionsSource:o,allowSpaceToggle:i=!1,onBeforeOpen:u,onAfterOpen:c,buildListboxContent:s}=t,p=e.prop(!1),m=e.prop(-1),C=e.prop(null),g=L.sessionId("dropdown"),y=L.sessionId("listbox");let b,w;const v=d=>{n?.(d),p.set(!1),m.set(-1),C.set(null),b?.focus()},f=d=>{const V=ae.getValues(e.Value.get(o));switch(d.key){case"ArrowDown":{if(d.preventDefault(),!p.value)p.set(!0),V.length>0&&(m.set(0),C.set(V[0]));else{const x=Math.min(m.value+1,V.length-1);m.set(x),C.set(V[x]??null)}break}case"ArrowUp":{if(d.preventDefault(),p.value){const x=Math.max(m.value-1,0);m.set(x),C.set(V[x]??null)}break}case"Enter":{if(d.preventDefault(),p.value&&m.value>=0){const x=V[m.value];x!=null&&v(x)}else{u?.();const x=ae.getValues(e.Value.get(o));p.set(!0),x.length>0&&(m.set(0),C.set(x[0])),setTimeout(()=>c?.(),0)}break}case"Escape":{p.value&&(d.preventDefault(),p.set(!1),m.set(-1),C.set(null),b?.focus());break}case" ":{if(e.Value.get(i)){d.preventDefault();const x=ae.getValues(e.Value.get(o));p.set(!p.value),p.value&&x.length>0&&(m.set(0),C.set(x[0]))}break}}};return h.InputContainer({...t,input:S.Group(e.attr.class("bc-dropdown__trigger"),e.html.span(e.attr.class("bc-dropdown__display"),l),h.Icon({icon:"ph:caret-up-down-bold",color:"neutral"},e.attr.class("bc-dropdown__arrow")))},J.ElementRect(d=>e.Fragment(e.WithElement(V=>(b=V,V.addEventListener("keydown",f),e.OnDispose(()=>V.removeEventListener("keydown",f)))),h.CommonInputAttributes(t),e.attr.id(g),e.attr.tabindex(0),e.aria.controls(y),e.aria.expanded(p),e.attr.class("bc-dropdown"),e.attr.role(r),e.aria.activedescendant(e.computedOf(p,C)((V,x)=>V&&x!=null?`dropdown-option-${String(x)}`:"")),a!=null?e.on.blur(()=>{setTimeout(()=>{w?.contains(document.activeElement)||(p.set(!1),m.set(-1),a())},100)}):e.Empty,ye({content:()=>e.html.div(e.WithElement(V=>{w=V}),e.style.minWidth(d.$.width.map(V=>`${V-10}px`)),e.attr.class("bc-dropdown__listbox"),e.attr.role("listbox"),e.attr.id(y),e.aria.labelledby(g),s({dropdownId:g,listboxId:y,focusedValue:C,handleKeyDown:f,onSelect:v})),mainAxisOffset:0,placement:"bottom-start",hasPopup:"listbox",showOn:(V,x)=>{const P=x;x=()=>{p.set(!1),m.set(-1),C.set(null),P()};const I=()=>{if(p.value)x();else{u?.();const k=ae.getValues(e.Value.get(o));p.set(!0),k.length>0&&(m.set(0),C.set(k[0])),V(),setTimeout(()=>c?.(),0)}};return e.on.click(I)},showDelay:0,hideDelay:0,closable:!0}))))},ut=(t,n,a,r,l)=>e.Ensure(t,o=>e.OneOfType(o,{value:i=>{const u=e.computedOf(i,a)((s,p)=>n(s.value,p)),c=e.computedOf(i,l)((s,p)=>p!=null&&n(s.value,p));return e.html.div(e.attr.class("bc-dropdown__option"),e.attr.class(e.computedOf(u,c,i)((s,p,m)=>{const C=[];return s&&C.push("bc-dropdown__option--selected"),p&&C.push("bc-dropdown__option--focused"),m.disabled&&C.push("bc-dropdown__option--disabled"),C.join(" ")})),e.attr.role("option"),e.attr.id(i.map(s=>`dropdown-option-${String(s.value)}`)),e.aria.selected(u),S.Expando("value",i.$.value),e.When(i.map(s=>!s.disabled),()=>e.on.click(()=>r(i.value.value)),()=>e.Empty),e.html.div(e.attr.class("bc-dropdown__option-content"),i.value.before&&e.html.span(e.attr.class("bc-dropdown__option-before"),i.value.before),e.html.span(e.attr.class("bc-dropdown__option-label"),i.$.label),i.value.after&&e.html.span(e.attr.class("bc-dropdown__option-after"),i.value.after)))},group:i=>e.html.div(e.attr.class("bc-dropdown__group"),e.attr.role("group"),e.aria.label(i.$.group),e.html.div(e.attr.class("bc-dropdown__group-label"),i.$.group),e.ForEach(i.$.options,u=>ut(u,n,a,r,l))),break:()=>e.html.hr(e.attr.class("bc-dropdown__separator"))})),ct=t=>{const{value:n,options:a,unselectedLabel:r,equality:l=(s,p)=>s===p,placeholder:o,searchable:i=!1}=t,u=e.computedOf(n,a)((s,p)=>{if(s==null)return"";const m=C=>{for(const g of C){if(g.type==="value"&&l(g.value,s))return g.label;if(g.type==="group"){const y=m(g.options);if(y)return y}}};return m(p)||String(s)}),c=e.computedOf(i)(s=>!s);return Re({...t,role:"dropdown",display:e.When(u.map(s=>s.length>0),()=>u,()=>e.Use(h.BeatUII18n,s=>e.coalesce(o,r,s.$.selectOne))),optionsSource:a,allowSpaceToggle:c,buildListboxContent:({focusedValue:s,onSelect:p})=>e.ForEach(a,m=>ut(m,l,n,p,s))})},dt=t=>{const{controller:n,onChange:a,onBlur:r,...l}=t;return ct({...l,value:n.signal,onChange:L.makeOnChangeHandler(n,a),onBlur:L.makeOnBlurHandler(n,r)})},wn=t=>L.InputWrapper({...t,content:dt(t)}),pt=(t,n,a,r,l,o)=>e.Ensure(t,i=>e.OneOfType(i,{value:u=>{const c=e.computedOf(u,a)((p,m)=>n(p.value,m)),s=e.computedOf(u,l)((p,m)=>m!=null&&n(p.value,m));return e.html.div(e.attr.class("bc-dropdown__option"),e.attr.class(e.computedOf(c,s,u)((p,m,C)=>{const g=[];return p&&g.push("bc-dropdown__option--selected"),m&&g.push("bc-dropdown__option--focused"),C.disabled&&g.push("bc-dropdown__option--disabled"),g.join(" ")})),e.attr.role("option"),e.attr.id(u.map(p=>`dropdown-option-${String(p.value)}`)),e.aria.selected(c),e.When(u.map(p=>!p.disabled),()=>e.on.click(()=>r(u.value.value)),()=>e.Empty),e.html.div(e.attr.class("bc-dropdown__option-content"),u.value.before&&e.html.span(e.attr.class("bc-dropdown__option-before"),u.value.before),e.html.span(e.attr.class("bc-dropdown__option-label"),o(u.$.value)),u.value.after&&e.html.span(e.attr.class("bc-dropdown__option-after"),u.value.after)))},group:u=>e.html.div(e.attr.class("bc-dropdown__group"),e.attr.role("group"),e.aria.label(u.$.group),e.html.div(e.attr.class("bc-dropdown__group-label"),u.$.group),e.ForEach(u.$.options,c=>pt(c,n,a,r,l,o))),break:()=>e.html.hr(e.attr.class("bc-dropdown__separator"))})),mt=t=>{const{value:n,loadOptions:a,renderOption:r,renderValue:l,equality:o=(f,d)=>f===d,placeholder:i,searchPlaceholder:u,debounceMs:c=150}=t,s=e.prop(""),p=e.prop(!1),m=e.prop([]);let C;const g=e.Value.toSignal(n),y=()=>(l??r)(g);let b=null;const w=f=>{p.set(!0),Promise.resolve(a(f)).then(d=>{m.set(d??[])}).catch(()=>{m.set([])}).finally(()=>p.set(!1))},v=f=>{b!=null&&(clearTimeout(b),b=null),b=setTimeout(()=>{w(f)},Math.max(0,c))};return Re({...t,role:"combobox",display:e.When(e.computedOf(n)(f=>f!=null),y,()=>e.Use(h.BeatUII18n,f=>f.$.selectOne)),optionsSource:m,onBeforeOpen:()=>{const f=e.Value.get(s);v(f)},onAfterOpen:()=>{C?.focus()},buildListboxContent:({focusedValue:f,handleKeyDown:d,onSelect:V})=>e.Fragment(e.html.div(e.attr.class("bc-dropdown__search"),e.html.input(e.attr.type("text"),e.attr.class("bc-dropdown__search-input"),e.attr.placeholder(e.computedOf(u,i)((x,P)=>x??P??"Search")),e.attr.value(s),e.WithElement(x=>(C=x,e.Empty)),e.on.input(x=>{const P=x.target;s.set(P.value),v(P.value)}),e.on.keydown(d))),e.When(p,()=>e.html.div(e.attr.class("bc-dropdown__loading"),h.Icon({icon:"ph:spinner-bold",color:"neutral"})),()=>e.ForEach(m,x=>pt(x,o,g,V,f,r))))})},ft=t=>{const{controller:n,onChange:a,onBlur:r,...l}=t;return mt({...l,value:n.signal,onChange:L.makeOnChangeHandler(n,a),onBlur:L.makeOnBlurHandler(n,r)})},Cn=t=>L.InputWrapper({...t,content:ft(t)});function We(t){const{items:n,placement:a="bottom-start",showDelay:r=0,hideDelay:l=100,mainAxisOffset:o=4,crossAxisOffset:i=0,showOn:u="click",closable:c=!0,onClose:s,onAction:p,ariaLabel:m,ariaLabelledBy:C}=t,g=L.sessionId("menu"),y=e.prop(-1),b=e.prop([]);let w=null;return e.Fragment(ye({content:()=>e.WithElement(v=>{w=document.activeElement;const f=(I,k,D)=>{if(k.length===0)return-1;let E=I+D,$=0;for(;$<k.length;){E>=k.length&&(E=0),E<0&&(E=k.length-1);const F=k[E];if(F&&F.getAttribute("aria-disabled")!=="true")return E;E+=D,$++}return I},d=I=>{const k=b.value,D=y.value;switch(I.key){case"ArrowDown":I.preventDefault(),I.stopPropagation();const E=f(D,k,1);V(E,k);break;case"ArrowUp":I.preventDefault(),I.stopPropagation();const $=f(D,k,-1);V($,k);break;case"Enter":case" ":if(I.preventDefault(),I.stopPropagation(),D>=0&&k[D]){const F=k[D];if(F.getAttribute("aria-disabled")==="true")return;const q=F.getAttribute("data-key");q&&p&&p(q),F.click(),s?.()}break;case"Escape":s?.();break;case"Home":I.preventDefault(),I.stopPropagation(),k.length>0&&V(0,k);break;case"End":I.preventDefault(),I.stopPropagation(),k.length>0&&V(k.length-1,k);break;case"ArrowRight":if(I.preventDefault(),I.stopPropagation(),D>=0&&k[D]){const F=k[D];F.classList.contains("bc-menu-item--has-submenu")&&F.dispatchEvent(new Event("mouseenter"))}break;case"ArrowLeft":I.preventDefault(),I.stopPropagation(),s?.();break}},V=(I,k)=>{y.value>=0&&k[y.value]&&(k[y.value].classList.remove("bc-menu-item--focused"),k[y.value].removeAttribute("aria-selected")),I>=0&&k[I]&&(k[I].classList.add("bc-menu-item--focused"),k[I].setAttribute("aria-selected","true"),y.set(I),typeof k[I].scrollIntoView=="function"&&k[I].scrollIntoView({block:"nearest"}))},x=()=>{const I=Array.from(v.querySelectorAll('[role="menuitem"]'));if(b.set(I),I.length>0){const k=I.findIndex(D=>D.getAttribute("aria-disabled")!=="true");k>=0&&V(k,I)}},P=new MutationObserver(x);return P.observe(v,{childList:!0,subtree:!0}),setTimeout(()=>{x(),v.focus()},0),document.addEventListener("keydown",d,!0),e.Fragment(e.OnDispose(()=>{P.disconnect(),document.removeEventListener("keydown",d,!0),w&&w.focus()}),e.attr.class("bc-menu"),e.attr.id(g),e.attr.role("menu"),e.attr.tabindex(-1),e.aria.orientation("vertical"),m?e.aria.label(m):e.Fragment(),C?e.aria.labelledby(C):e.Fragment(),e.aria.activedescendant(y.map(I=>{const k=b.value;return I>=0&&k[I]?k[I].id||`${g}-item-${I}`:""})),e.on.click(I=>{const D=I.target.closest('[role="menuitem"]');if(D&&D.getAttribute("aria-disabled")!=="true"){const E=D.getAttribute("data-key");E&&p&&p(E)}}),e.html.div(e.attr.class("sr-only"),e.aria.live("polite"),e.aria.atomic(!0),y.map(I=>{const k=b.value;if(I>=0&&k[I]){const D=k[I].textContent||"";return k[I].getAttribute("aria-disabled")==="true"?`${D}, disabled`:`${D}, ${I+1} of ${k.length}`}return""})),...n())}),placement:a,showDelay:r,hideDelay:l,mainAxisOffset:o,crossAxisOffset:i,showOn:u,closable:c,role:"menu"}))}function Sn(t){const{key:n,content:a,startContent:r,endContent:l,disabled:o=!1,onClick:i,ariaLabel:u,submenu:c,submenuPlacement:s="right-start"}=t,p=n??L.sessionId("menu-item"),m=`menu-item-${p}`,C=c!=null;return e.html.div(e.attr.class(e.computedOf(o)(g=>`bc-menu-item ${g?"bc-menu-item--disabled":""} ${C?"bc-menu-item--has-submenu":""}`)),e.attr.id(m),e.attr.role("menuitem"),e.attr.tabindex(-1),e.dataAttr.key(p),e.aria.disabled(o),e.aria.selected(!1),C?e.aria.expanded(!1):e.Fragment(),u?e.aria.label(u):e.Fragment(),e.on.click(g=>{if(e.Value.get(o)){g.preventDefault(),g.stopPropagation();return}i?.()}),r&&e.html.span(e.attr.class("bc-menu-item__start"),r),e.html.span(e.attr.class("bc-menu-item__content"),a),l&&e.html.span(e.attr.class("bc-menu-item__end"),l),C&&c?ye({content:()=>e.Fragment(e.attr.class("bc-menu bc-submenu"),e.attr.role("menu"),...c()),placement:s,showOn:"hover",hasPopup:"menu",showDelay:100,hideDelay:300,mainAxisOffset:0,crossAxisOffset:0,role:"menu"}):e.Fragment())}function He(t={}){const{label:n}=t;return e.html.div(e.attr.class("bc-menu-separator"),e.attr.role("separator"),e.aria.orientation("horizontal"),n&&e.html.span(e.attr.class("bc-menu-separator__label"),n))}function gt(t,n,a){return t.some(l=>a(l,n))?t.filter(l=>!a(l,n)):[...t,n]}function bt(t,n,a){return t.filter(r=>!a(r,n))}function ht(t,n,a){return t.some(r=>a(r,n))}function yt(t,n,a){for(const r of t)if(r.type==="value"){if(a(r.value,n))return{label:r.label}}else if(r.type==="group"){const l=yt(r.options,n,a);if(l!=null)return l}}function Vn(t,n,a){return yt(t,n,a)?.label??String(n)}function vt(t,n,a){const r=n.trim().toLowerCase(),l=a??((i,u)=>u.label.toLowerCase().includes(i));if(r==="")return t;const o=[];for(const i of t)if(i.type==="value")l(r,{label:i.label})&&o.push(i);else if(i.type==="group"){const u=vt(i.options,r,l);u.length>0&&o.push({...i,options:u})}return o}function je(t){const{values:n,options:a,equality:r,disabled:l,onRemove:o}=t;return e.NotEmpty(n,()=>e.ForEach(n,i=>Me({value:e.computedOf(i,a)((u,c)=>Vn(c,u,r)),onClose:()=>o(i.value),disabled:l})),()=>e.html.span(e.attr.class("bc-input-container__placeholder"),t.placeholder))}function ze(t){const{value:n,options:a,equality:r=(s,p)=>s===p,placeholder:l}=t,o=s=>{const p=e.Value.get(n);t.onChange?.(bt(p,s,r))},i=s=>{const p=e.Value.get(n);t.onChange?.(gt(p,s,r))},u=s=>e.computedOf(n)(p=>ht(p,s,r)),c=We({items:()=>{const s=e.Value.get(a),p=[];for(const m of s)if(m.type==="value"){const C=u(m.value);p.push(e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(m.disabled===!0),e.aria.checked(C),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),m.label),e.on.click(()=>i(m.value))))}else m.type==="group"?p.push(e.html.div(e.attr.class("bc-menu-group"),e.html.div(e.attr.class("bc-menu-group__label"),m.group),...m.options.map(C=>{if(C.type==="value"){const g=u(C.value);return e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(C.disabled===!0),e.aria.checked(g),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),C.label),e.on.click(()=>i(C.value)))}return e.Fragment()}))):p.push(He());return p},placement:"bottom-start",showDelay:0,hideDelay:100,showOn:"click",closable:!0});return h.InputContainer({...t,before:t.before??h.InputIcon({icon:"tabler:tags",color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),c,je({values:n,placeholder:l,options:a,equality:r,disabled:t.disabled,onRemove:o})),after:h.InputIcon({icon:"line-md:plus",color:"neutral",size:"sm"})})}function kn(t){return L.BaseControl(ze,t)}function xn(t){return L.Control(ze,t)}function Ge(t){const{value:n,options:a,equality:r=(g,y)=>g===y,placeholder:l,searchPlaceholder:o,filter:i}=t,u=e.prop(""),c=g=>{const y=e.Value.get(n);t.onChange?.(bt(y,g,r))},s=g=>{const y=e.Value.get(n);t.onChange?.(gt(y,g,r))},p=g=>e.computedOf(n)(y=>ht(y,g,r)),m=e.computedOf(a,u)((g,y)=>vt(g,y,i)),C=We({items:()=>{const g=[],y=e.Value.get(m);if(y.length===0)return g.push(e.html.div(e.attr.class("bc-dropdown__empty"),e.Use(h.BeatUII18n,b=>b.$.noResults))),g;for(const b of y)if(b.type==="value"){const w=p(b.value);g.push(e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(b.disabled===!0),e.aria.checked(w),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),b.label),e.on.click(()=>s(b.value))))}else b.type==="group"?g.push(e.html.div(e.attr.class("bc-menu-group"),e.html.div(e.attr.class("bc-menu-group__label"),b.group),...b.options.map(w=>{if(w.type==="value"){const v=p(w.value);return e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(w.disabled===!0),e.aria.checked(v),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),w.label),e.on.click(()=>s(w.value)))}return e.Fragment()}))):g.push(He());return g},placement:"bottom-start",showDelay:0,hideDelay:100,showOn:(g,y)=>e.WithElement(b=>{const w=b.querySelector(".bc-dropdown__search-input");if(w){const v=()=>g();return w.addEventListener("focus",v),e.OnDispose(()=>{w.removeEventListener("focus",v)})}return e.Fragment()}),closable:!0});return h.InputContainer({...t,before:t.before??h.InputIcon({icon:"tabler:tags",color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),je({values:n,options:a,placeholder:l,equality:r,disabled:t.disabled,onRemove:c}),e.html.div(e.attr.class("bc-input-container__tags-selector"),e.html.input(e.attr.type("text"),e.attr.class("bc-dropdown__search-input"),e.attr.placeholder(e.computedOf(o,l)((g,y)=>g??y??"")),e.attr.value(u),e.on.input(g=>{const y=g.target;u.set(y.value)}),e.on.keydown(g=>{(g.key==="ArrowUp"||g.key==="ArrowDown"||g.key==="Enter"||g.key===" ")&&g.stopPropagation()})),C))})}function In(t){return L.BaseControl(Ge,t)}function Tn(t){return L.Control(Ge,t)}const On=t=>{const{value:n,onBlur:a,onChange:r}=t;return h.InputContainer({...t,input:e.input.date(h.CommonInputAttributes(t),e.attr.valueAsDate(n),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValueAsDate(r)):e.Empty)})},Pn=t=>{const n=t.getFullYear(),a=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),l=t.getHours().toString().padStart(2,"0"),o=t.getMinutes().toString().padStart(2,"0");return`${n}-${a}-${r}T${l}:${o}`},_n=t=>{const{value:n,onBlur:a,onChange:r}=t;return h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,Pn)),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(l=>r(new Date(l)))):e.Empty)})},Ln=t=>{const{value:n,onInput:a,onChange:r,...l}=t;return S.FilesInput({...l,maxFiles:1,value:e.Value.map(n,o=>o==null?[]:[o]),onChange:o=>{r?.(o[0])},onInput:o=>{a?.(o[0])}})},Dn=t=>J.Query({request:t.request,load:t.load,convertError:String,success:({value:n})=>{const a=n.map(r=>r.map(l=>typeof l=="object"&&"id"in l&&"label"in l?ae.value(l.id,l.label):l));return S.NativeSelect({...t,options:a,unselectedLabel:t.unselectedLabel,equality:t.equality})},pending:()=>e.Use(h.BeatUII18n,n=>e.html.span(h.Icon({icon:"line-md:loading-twotone-loop",title:n.$.loadingShort})))}),$n=t=>{const{value:n,onBlur:a,onChange:r,onInput:l,after:o,disabled:i,...u}=t,c=S.NullableResetAfter(n,i,r);return S.MaskInput({...u,value:e.Value.map(n,S.nullToEmpty),onChange:r!=null?s=>r(S.emptyToNull(s)):void 0,onInput:l!=null?s=>l(S.emptyToNull(s)):void 0,onBlur:a,after:o!=null?e.Fragment(c,o):c})},Xe=t=>{try{return BigInt(t)}catch{return null}},Bn=t=>{const{value:n,step:a,min:r,max:l,onChange:o,onInput:i,after:u}=t,c=g=>{const y=r!=null?e.Value.get(r):void 0,b=l!=null?e.Value.get(l):void 0;return y!=null&&g<y?y:b!=null&&g>b?b:g},s=a!=null?e.Use(h.BeatUII18n,g=>{const y=e.computedOf(n,r)((v,f)=>f==null?!0:(v??0n)>f),b=e.computedOf(n,l)((v,f)=>f==null?!0:(v??0n)<f),w=(v,f)=>{const d=e.Value.get(n)??0n,V=e.Value.get(a),x=f?.shiftKey?10n:1n,P=d+V*x*v,I=r!=null?e.Value.get(r):void 0,k=l!=null?e.Value.get(l):void 0;if(v<0n&&I!=null&&P<I||v>0n&&k!=null&&P>k)return;const D=c(P);D!==d&&o&&o(D)};return L.Stack(e.attr.class("bc-number-input-steppers"),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),e.attr.disabled(e.computedOf(b,t.disabled??!1)((v,f)=>!v||f)),e.on.click(v=>w(1n,v)),e.aria.label(g.$.incrementValue),h.Icon({icon:"line-md:plus",size:"xs"})),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),e.attr.disabled(e.computedOf(y,t.disabled??!1)((v,f)=>!v||f)),e.on.click(v=>w(-1n,v)),e.aria.label(g.$.decrementValue),h.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=u!=null&&s!=null?e.Fragment(s,u):u??s,m=o?g=>{const y=Xe(g);y!=null&&o(c(y))}:void 0,C=i?g=>{const y=Xe(g);y!=null&&i(c(y))}:void 0;return S.MaskInput({...t,value:e.Value.map(n,g=>g.toString()),onChange:m,onInput:C,after:p,mask:null,allowMode:"digits",class:"bc-number-input"})},et=t=>{if(t==null||t==="")return null;try{return BigInt(t)}catch{return null}},En=t=>{const{value:n,step:a,min:r,max:l,onChange:o,onInput:i,after:u}=t,c=y=>{const b=r!=null?e.Value.get(r):void 0,w=l!=null?e.Value.get(l):void 0;return b!=null&&y<b?b:w!=null&&y>w?w:y},s=a!=null?e.Use(h.BeatUII18n,y=>{const b=e.computedOf(n,r)((f,d)=>{const V=f??0n;return d==null?!0:V>d}),w=e.computedOf(n,l)((f,d)=>{const V=f??0n;return d==null?!0:V<d}),v=(f,d)=>{const V=e.Value.get(n)??0n,x=e.Value.get(a),P=d?.shiftKey?10n:1n,I=V+x*P*f,k=r!=null?e.Value.get(r):void 0,D=l!=null?e.Value.get(l):void 0;if(f<0n&&k!=null&&I<k||f>0n&&D!=null&&I>D)return;const E=c(I);E!==V&&o&&o(E)};return L.Stack(e.attr.class("bc-number-input-steppers"),e.attr.type("button"),e.html.button(e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),e.attr.disabled(e.computedOf(w,t.disabled??!1)((f,d)=>!f||d)),e.on.click(f=>v(1n,f)),e.aria.label(y.$.incrementValue),h.Icon({icon:"line-md:plus",size:"xs"})),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),e.attr.disabled(e.computedOf(b,t.disabled??!1)((f,d)=>!f||d)),e.on.click(f=>v(-1n,f)),e.aria.label(y.$.decrementValue),h.Icon({icon:"line-md:minus",size:"xs"})))}):null,p=S.NullableResetAfter(n,t.disabled,o),m=u!=null&&s!=null?e.Fragment(s,p,u):u!=null?e.Fragment(p,u):s!=null?e.Fragment(s,p):p,C=o?y=>{const b=et(y);o(b===null?null:c(b))}:void 0,g=i?y=>{const b=et(y);i(b===null?null:c(b))}:void 0;return S.MaskInput({...t,value:e.Value.map(n,y=>y==null?"":y.toString()),onChange:C,onInput:g,after:m,mask:null,allowMode:"digits",class:"bc-number-input"})},An=t=>{const{value:n,onChange:a,onBlur:r,before:l}=t,o=e.prop(""),i=c=>{a?.(e.Value.get(n).filter(s=>s!==c))},u=()=>{const c=o.value.trim(),s=e.Value.get(n);c===""||s.includes(c)||(o.set(""),a?.([...s,c]))};return h.InputContainer({...t,before:l??h.InputIcon({icon:"tabler:tag",size:t.size,color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),e.ForEach(n,c=>Me({value:c,onClose:()=>i(c.value),disabled:t.disabled})),e.input.text(h.CommonInputAttributes(t),e.attr.value(o),e.attr.class("bc-input bc-input-container__tags-input"),e.on.input(e.emitValue(o.set)),a!=null?e.on.change(u):e.Empty,r!=null?e.on.blur(r):e.Empty))})};function Ve(t){return n=>{const{value:a,onBlur:r,onChange:l}=n;return S.WithTemporal(o=>h.InputContainer({...n,input:e.input[t.inputType](h.CommonInputAttributes(n),e.attr.value(e.Value.map(a,t.valueToString)),e.attr.class("bc-input"),r!=null?e.on.blur(e.emitValue(r)):e.Empty,l!=null?e.on.change(e.emitValue(i=>l(t.parseValue(o,i)))):e.Empty)}))}}function ke(t){return n=>{const{value:a,onBlur:r,onChange:l,after:o,disabled:i}=n,u=S.NullableResetAfter(a,i,l);return S.WithTemporal(c=>h.InputContainer({...n,input:e.input[t.inputType](h.CommonInputAttributes(n),e.attr.value(e.Value.map(a,s=>s==null?"":t.valueToString(s))),e.attr.class("bc-input"),r!=null?e.on.blur(e.emitValue(r)):e.Empty,l!=null?e.on.change(e.emitValue(s=>l(s===""?null:t.parseValue(c,s)))):e.Empty),after:o!=null?e.Fragment(u,o):u}))}}const Nn=Ve({inputType:"date",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainDate.from(n)}),Fn=ke({inputType:"date",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainDate.from(n)}),Mn=Ve({inputType:"time",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainTime.from(n)}),Un=ke({inputType:"time",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainTime.from(n)}),Rn=Ve({inputType:"datetime-local",valueToString:t=>t.toJSON(),parseValue:(t,n)=>t.PlainDateTime.from(n)}),Wn=ke({inputType:"datetime-local",valueToString:t=>t.toJSON(),parseValue:(t,n)=>t.PlainDateTime.from(n)}),Hn=t=>{const n=new Date(t),a=n.getFullYear().toString().padStart(4,"0"),r=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),i=n.getMinutes().toString().padStart(2,"0");return`${a}-${r}-${l}T${o}:${i}`},jn=t=>{const{value:n,onBlur:a,onChange:r}=t;return S.WithTemporal(l=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,o=>Hn(Number(o.epochMilliseconds)))),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(o=>r(l.Instant.from(new Date(o).toISOString())))):e.Empty)}))},zn=t=>{const n=new Date(t),a=n.getFullYear().toString().padStart(4,"0"),r=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0"),o=n.getHours().toString().padStart(2,"0"),i=n.getMinutes().toString().padStart(2,"0");return`${a}-${r}-${l}T${o}:${i}`},Gn=t=>{const{value:n,onBlur:a,onChange:r,after:l,disabled:o}=t,i=S.NullableResetAfter(n,o,r);return S.WithTemporal(u=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,c=>c==null?null:zn(Number(c.epochMilliseconds)))),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(c=>r(c===""?null:u.Instant.from(new Date(c).toISOString())))):e.Empty),after:l!=null?e.Fragment(i,l):i}))},Yn=t=>{const{value:n,onBlur:a,onChange:r}=t;return S.WithTemporal(l=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,o=>o.toJSON())),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(o=>{const i=l.PlainDateTime.from(o),u=e.Value.get(t.placeholder)??Intl.DateTimeFormat().resolvedOptions().timeZone;return r(l.ZonedDateTime.from({...i,timeZone:u}))})):e.Empty)}))},qn=t=>{const{value:n,onBlur:a,onChange:r,after:l,disabled:o}=t,i=S.NullableResetAfter(n,o,r);return S.WithTemporal(u=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,c=>c?.toJSON())),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(c=>{if(c==="")return r(null);const s=u.PlainDateTime.from(c),p=e.Value.get(t.placeholder)??Intl.DateTimeFormat().resolvedOptions().timeZone;return r(u.ZonedDateTime.from({...s,timeZone:p}))})):e.Empty),after:l!=null?e.Fragment(i,l):i}))},Zn=Ve({inputType:"month",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainYearMonth.from(n)}),Jn=ke({inputType:"month",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainYearMonth.from(n)}),Kn=t=>{const{value:n,onChange:a}=t;return S.WithTemporal(r=>S.MaskInput({...t,value:e.Value.map(n,l=>l.toString()),onChange:a!=null?l=>a(r.PlainMonthDay.from(`--${l}`)):void 0,onInput:void 0,mask:"99-99",placeholder:"MM-DD"}))},Qn=t=>{const{value:n,onChange:a,after:r,disabled:l}=t,o=S.NullableResetAfter(n,l,a);return S.WithTemporal(i=>S.MaskInput({...t,value:e.Value.map(n,u=>u?.toString()??""),onChange:a!=null?u=>a(u===""?null:i.PlainMonthDay.from(`--${u}`)):void 0,onInput:void 0,mask:"99-99",placeholder:"MM-DD",after:r!=null?e.Fragment(o,r):o}))},Xn=t=>{const{value:n,onChange:a}=t;return S.WithTemporal(r=>S.MaskInput({...t,value:e.Value.map(n,l=>l.toString()),onChange:a?l=>a(r.Duration.from(l)):void 0,onInput:void 0,...S.durationMaskConfig(r.Duration.from),placeholder:"P0DT0H0M0S"}))};function ea(t,n,a){return e.Ensure(t.signal,()=>{const r=t.transform(l=>l,l=>l);return n(r)},a)}const ta={filling:{type:"filling"},submitting:{type:"submitting"},error:t=>({type:"error",error:t}),success:{type:"success"}};class wt extends L.Controller{constructor(n,a,r,l,o){super(n,a,r,l,o)}isValidColor=this.signal.map(S.isValidColor);isValidHex=this.signal.map(S.isValidHexColor);normalizedHex=this.signal.map(n=>S.normalizeHexColor(n)??n);setColor=n=>{if(S.isValidHexColor(n)){const a=S.normalizeHexColor(n);if(a){this.change(a);return}}this.change(n)};setHex=n=>{const a=S.normalizeHexColor(n);a&&this.change(a)};setRgb=(n,a,r)=>{const l=i=>{const u=Math.round(Math.max(0,Math.min(255,i))).toString(16);return u.length===1?"0"+u:u},o=`#${l(n)}${l(a)}${l(r)}`;this.change(o)};getRgb=()=>{const n=this.signal.value,a=S.normalizeHexColor(n);if(!a)return null;const r=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null};withFormat=n=>{const a=l=>{switch(n){case"hex":return S.normalizeHexColor(l)??l;case"rgb":const o=this.getRgb();return o?`rgb(${o.r}, ${o.g}, ${o.b})`:l;case"hsl":return l;default:return l}},r=l=>S.normalizeHexColor(l)??l;return this.transform(a,r,[`format-${n}`])}}function na(t){return new wt(t.path,t.change,t.signal,t.status,{disabled:t.disabled})}function aa(t){return{id:t.name,disabled:t.disabled,value:t.normalizedHex,hasError:t.errorVisible,onChange:t.setColor,onInput:t.setColor}}function ra({locales:t,onChange:n,updateLocale:a=!0}){return e.Use(h.BeatUII18n,r=>e.Use(h.Locale,({locale:l,setLocale:o})=>L.InputWrapper({layout:"horizontal",content:S.Group(e.attr.class("bc-group--align-center bc-group--gap-2"),h.Icon({icon:"ic:twotone-language",size:"lg",color:"neutral",title:r.$.locale}),S.NativeSelect({options:e.Value.map(t,i=>i.map(u=>{let c=u.name;return u.nativeName!=null&&u.nativeName!==u.name&&(c+=` (${u.nativeName})`),ae.value(u.code,c)})),value:l,onChange:i=>{a&&o(i),n?.(i)}}))})))}const la=()=>e.Use(h.Locale,({direction:t})=>e.Portal("body",e.attr.class(t.map(n=>`b-${n}`))));function Ct(t,n,a,r,l){const o=["bc-notification"];return t&&o.push("bc-notification--bordered"),n&&o.push("bc-notification--has-icon"),a&&o.push("bc-notification--closable"),r&&o.push("bc-notification--loading"),l&&l.length>0&&o.push(l),o.join(" ")}function St(t,n){return[`--notification-accent-color: ${Z.getColorVar(t,500)}`,`--notification-radius: ${T.getRadiusVar(n)}`].join("; ")}function Vt({loading:t=!1,withCloseButton:n=!1,withBorder:a=!1,color:r="primary",radius:l="md",title:o,icon:i,onClose:u,class:c}={},...s){const p=e.Value.map(i,m=>m!=null);return e.html.section(e.attr.class(e.computedOf(a,p,n,t,c)((m,C,g,y,b)=>[Ct(m,C,g,y,b)].join(" "))),e.attr.style(e.computedOf(r,l)((m,C)=>St(m,C))),e.aria.live("polite"),e.aria.busy(t),e.When(t,()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__loader"),h.Icon({icon:"line-md:loading-twotone-loop",size:"lg",color:r,accessibility:"decorative"})),()=>e.When(p,()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__icon"),h.Icon({icon:i,size:"lg",color:r})),()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__accent"),e.aria.hidden(!0)))),e.html.div(e.attr.class("bc-notification__body"),o!=null?e.html.div(e.attr.class("bc-notification__title"),o):null,e.html.div(e.attr.class("bc-notification__content"),...s)),e.When(n,()=>e.html.div(e.attr.class("bc-notification__meta"),L.CloseButton({size:"sm",color:r,onClick:u}))))}class oa{handles=[];attach(n){return this.detach(n),this.handles.push(n),()=>this.detach(n)}detach(n){const a=this.handles.lastIndexOf(n);a>=0&&this.handles.splice(a,1)}get current(){const n=this.handles[this.handles.length-1];if(!n)throw new Error("NotificationService: no provider attached. Ensure BeatUI includes notifications or attach the provider manually.");return n}show(n,...a){return this.current.show(n,...a)}clear(){this.current.clear()}}const kt=new oa,Ye={mark:e.makeProviderMark("NotificationProvider"),create:({position:t="bottom-end"}={})=>{const n=e.prop(0),a=[];function r(c){return a.push(c),()=>{const s=a.lastIndexOf(c);s>=0&&a.splice(s,1)}}const l=[],o=({dismissAfter:c,onClose:s,animation:p={fade:!0},...m},...C)=>{n.update(b=>b+1);const g=c!=null?typeof c=="number"?Mt(c*1e3):c:void 0,y={animation:p,class:e.Value.toSignal(m.class),loading:e.Value.toSignal(m.loading??!1),withCloseButton:e.Value.toSignal(m.withCloseButton==null&&c==null?!0:m.withCloseButton??!0),withBorder:e.Value.toSignal(m.withBorder??!1),color:e.Value.toSignal(m.color??"primary"),radius:e.Value.toSignal(m.radius??"md"),title:m.title??e.Empty,icon:e.Value.toSignal(m.icon),children:C,listenRequestClose:b=>(l.push(b),s?.(),()=>{}),delayedClose:g};a.forEach(b=>b(y))},i=()=>{l.forEach(c=>c()),l.length=0},u=kt.attach({show:o,clear:i});return{value:{activeNotifications:n,show:o,clear:i,position:t,listenOnShow:r},dispose:()=>{u(),i()}}}};function xt(){return e.Use(Ye,({listenOnShow:t,position:n})=>e.html.div(e.attr.class("bc-notification-viewport"),e.attr.class(`bc-notification-viewport--${n}`),e.WithBrowserCtx(a=>e.OnDispose(t(r=>{const l=[],o=e.html.div(j.AnimatedToggle({animation:r.animation,initialStatus:"start-opening"},({close:i,listenOnClosed:u})=>(r.delayedClose?.finally(i),u(()=>{l.forEach(c=>c())}),Vt({class:r.class,loading:r.loading,withCloseButton:r.withCloseButton,withBorder:r.withBorder,color:r.color,radius:r.radius,title:r.title,icon:r.icon,onClose:i},...r.children))));l.push(e.renderWithContext(o,a))})))))}function sa({includeAuthI18n:t=!1,enableAppearance:n=!0,defaultAppearance:a="system",appearancePreferenceKey:r="bui-appearance",includeNotifications:l=!0,notificationPosition:o="bottom-end"},...i){return e.WithProvider(({set:u,use:c})=>{u(J.Location,{}),u(h.Locale,{}),u(h.BeatUII18n,{}),u(be.Theme,{defaultAppearance:n?a:"light",appearancePreferenceKey:r}),l&&u(Ye,{position:o}),J.NavigationService.attach(c(J.Location));const s=e.Fragment(n?be.ThemeAppearance():e.Empty,la(),l?xt():e.Empty,...i);return t?e.Task(()=>Promise.resolve().then(()=>require("./translations-C7HVMcOQ.cjs")),({AuthI18n:p})=>e.Provide(p,{},()=>s)):s})}function ia({content:t,toolbar:n=!0,page:a,zoom:r,view:l,pagemode:o,scrollbar:i=!0,navpanes:u=!0,search:c,nameddest:s,viewrect:p,highlight:m,allowfullscreen:C=!1}){const g=e.Value.toSignal(t).mapAsync(async b=>{if(b instanceof Blob){const w=await b.arrayBuffer(),v=new Blob([w],{type:"application/pdf"});return URL.createObjectURL(v)}else{if(b instanceof ArrayBuffer)return URL.createObjectURL(new Blob([b],{type:"application/pdf"}));if(b instanceof Uint8Array)return URL.createObjectURL(new Blob([new Uint8Array(b)],{type:"application/pdf"}));if(typeof b=="string"){const v=await(await fetch(b)).arrayBuffer(),f=new Blob([v],{type:"application/pdf"});return URL.createObjectURL(f)}}},null),y=e.computedOf(g,n,a,r,l,o,i,u,c,s,p,m)((b,w,v,f,d,V,x,P,I,k,D,E)=>{if(b==null)return null;const $=[];w===!1&&$.push("toolbar=0"),v!=null&&v>0&&$.push(`page=${v}`),f!=null&&f>0&&$.push(`zoom=${f}`),d!=null&&$.push(`view=${d}`),V!=null&&$.push(`pagemode=${V}`),x===!1&&$.push("scrollbar=0"),P===!1&&$.push("navpanes=0"),I!=null&&$.push(`search=${encodeURIComponent(I)}`),k!=null&&$.push(`nameddest=${encodeURIComponent(k)}`),D!=null&&$.push(`viewrect=${encodeURIComponent(D)}`),E!=null&&$.push(`highlight=${encodeURIComponent(E)}`);const F=$.join("&");return F?`${b}#${F}`:b});return g.on((b,w)=>{w!=null&&URL.revokeObjectURL(w)}),e.html.div(e.OnDispose(()=>{const b=g.value;b!=null&&URL.revokeObjectURL(b)}),e.attr.class("h-full w-full"),e.html.iframe(e.attr.class("h-full w-full"),e.attr.allowfullscreen(C),e.attr.title("PDF Preview"),e.attr.loading("lazy"),e.WithElement(b=>{const w=b;let v=!0;return y.on(f=>{f!=null&&(v?(w.src=f,v=!1):(w.src="about:blank",setTimeout(()=>{w.src=f},50)))}),e.Empty})))}function ua({content:t,page:n,zoom:a,pagemode:r,nameddest:l,search:o,textLayerMode:i,sidebarViewOnLoad:u,scrollModeOnLoad:c,spreadModeOnLoad:s,enableScripting:p,enablePrinting:m,viewerUrl:C=null,allowfullscreen:g=!0,class:y=null}){const b=e.Value.toSignal(t).mapAsync(async v=>{if(v instanceof Blob)return URL.createObjectURL(v);if(v instanceof ArrayBuffer)return URL.createObjectURL(new Blob([v],{type:"application/pdf"}));if(v instanceof Uint8Array)return URL.createObjectURL(new Blob([new Uint8Array(v)],{type:"application/pdf"}));if(typeof v=="string")return v},null),w=e.computedOf(b,C,n,a,r,l,o,i,u,c,s,p,m)((v,f,d,V,x,P,I,k,D,E,$,F,q)=>{if(v==null)return null;const M=f??"https://mozilla.github.io/pdf.js/web/viewer.html",N=new URLSearchParams;N.set("file",encodeURIComponent(v));const W=[];d!=null&&d>0&&W.push(`page=${d}`),V!=null&&(typeof V=="string"?W.push(`zoom=${V}`):W.push(`zoom=${V}`)),x!=null&&W.push(`pagemode=${x}`),P!=null&&W.push(`nameddest=${encodeURIComponent(P)}`),I!=null&&W.push(`search=${encodeURIComponent(I)}`),k!=null&&W.push(`textLayer=${k}`),D!=null&&W.push(`sidebar=${D}`),E!=null&&W.push(`scrollMode=${E}`),$!=null&&W.push(`spreadMode=${$}`),F!=null&&W.push(`enableScripting=${F?"1":"0"}`),q!=null&&W.push(`enablePrinting=${q?"1":"0"}`);const Q=W.length>0?`#${W.join("&")}`:"";return`${M}?${N.toString()}${Q}`});return b.on((v,f)=>{f!=null&&f.startsWith("blob:")&&URL.revokeObjectURL(f)}),e.html.div(e.OnDispose(()=>{const v=b.value;v!=null&&v.startsWith("blob:")&&URL.revokeObjectURL(v)}),e.attr.class("bc-pdfjs-preview h-full w-full"),e.attr.class(y),e.html.iframe(e.attr.class("h-full w-full"),e.attr.allowfullscreen(g),e.attr.title("PDF Preview"),e.attr.loading("lazy"),e.attr.src(w)))}const ca=({id:t,css:n})=>e.Portal("head",e.html.style(e.attr.id(t),e.attr.innerHTML(n)));function te(t,n){return n==null?null:e.html.meta(e.attr.name(t),e.attr.content(e.Value.map(n,a=>String(a))))}function H(t,n){return n==null?null:e.html.meta(e.attr.property(t),e.attr.content(e.Value.map(n,a=>String(a))))}function Se(t,n){return n==null?null:e.ForEach(n,a=>H(t,a))}function da(t,n){return n==null?null:e.When(e.Value.map(n,a=>Array.isArray(a)),()=>Se(t,n),()=>H(t,n))}const pa=t=>{const n=[];if(n.push(H("og:title",t.title)),n.push(H("og:type",t.type)),n.push(H("og:url",t.url)),n.push(H("og:image",t.image)),n.push(H("og:description",t.description)),n.push(H("og:site_name",t.siteName)),n.push(H("og:locale",t.locale)),t.localeAlternate!=null){const a=Se("og:locale:alternate",t.localeAlternate);a!=null&&n.push(a)}if(n.push(H("og:image:alt",t.imageAlt)),n.push(H("og:image:width",t.imageWidth)),n.push(H("og:image:height",t.imageHeight)),n.push(H("og:image:type",t.imageType)),t.images!=null){const a=Se("og:image",t.images);a!=null&&n.push(a)}if(n.push(H("og:video",t.video)),n.push(H("og:video:type",t.videoType)),n.push(H("og:video:width",t.videoWidth)),n.push(H("og:video:height",t.videoHeight)),n.push(H("og:video:secure_url",t.videoSecureUrl)),n.push(H("og:audio",t.audio)),n.push(H("og:audio:type",t.audioType)),n.push(H("og:audio:secure_url",t.audioSecureUrl)),n.push(H("article:published_time",t.publishedTime)),n.push(H("article:modified_time",t.modifiedTime)),n.push(H("article:expiration_time",t.expirationTime)),n.push(da("article:author",t.author)),n.push(H("article:section",t.section)),t.tags!=null){const a=Se("article:tag",t.tags);a!=null&&n.push(a)}return n.push(H("profile:first_name",t.firstName)),n.push(H("profile:last_name",t.lastName)),n.push(H("profile:username",t.username)),n.push(H("profile:gender",t.gender)),n.push(te("twitter:card",t.twitterCard)),n.push(te("twitter:site",t.twitterSite)),n.push(te("twitter:creator",t.twitterCreator)),n.push(te("twitter:title",e.coalesce(t.twitterTitle,t.title))),n.push(te("twitter:description",e.coalesce(t.twitterDescription,t.description))),n.push(te("twitter:image",e.coalesce(t.twitterImage,t.image))),n.push(te("twitter:image:alt",e.coalesce(t.twitterImageAlt,t.imageAlt))),t.canonical!=null&&e.Value.get(t.canonical)!=null&&n.push(e.html.link(e.attr.rel("canonical"),e.attr.href(t.canonical))),n.push(te("robots",t.robots)),n.push(te("keywords",t.keywords)),n.push(te("author",t.metaAuthor)),e.Portal("head",n.filter(a=>a!=null).flat())},qe=({viewTransition:t,state:n,scroll:a,replace:r})=>{const l={};return n!==void 0&&(l.state=n),a!==void 0&&(l.scroll=a),r!==void 0&&(l.replace=r),t!==void 0&&(l.viewTransition=t),l};function Ee(t,n){const a=["bc-link"];if(n)a.push("bc-link--disabled");else switch(t){case"plain":a.push("bc-link--plain");break;case"hover":a.push("bc-link--hover");break;case"default":default:a.push("bc-link--default");break}return a.join(" ")}function Ae(t){const n=h.textColorValue(t,"light"),a=h.textColorValue(t,"dark");return[`--link-color: ${n}`,`--link-color-dark: ${a}`,`--link-hover-color: ${n}`,`--link-hover-color-dark: ${a}`].join("; ")}function It({href:t,variant:n="default",color:a="primary",colorDisabled:r="base",disabled:l=!1,viewTransition:o=!0,state:i,scroll:u,replace:c,target:s,rel:p},...m){return e.When(l,()=>e.html.span(e.attr.class(e.computedOf(n,l)((C,g)=>Ee(C,g))),e.attr.style(e.computedOf(r)(C=>Ae(C??"base"))),...m),()=>J.Anchor({href:t,...qe({viewTransition:o,state:i,scroll:u,replace:c})},e.attr.class(e.computedOf(n,l)((C,g)=>Ee(C,g))),e.attr.style(e.computedOf(a)(C=>Ae(C??"primary"))),s?e.attr.target(s):null,p?e.attr.rel(p):null,...m))}const ma=t=>t?t.startsWith("#")?t:`#${t}`:"",fa=t=>{if(!t)return new URLSearchParams;if(typeof t=="string"){const n=t.startsWith("?")?t.slice(1):t;return new URLSearchParams(n)}return t instanceof URLSearchParams?new URLSearchParams(t):new URLSearchParams(t)};function Tt(t,n,a){const r=fa(t.search),l=r.toString(),o=l?`?${l}`:"",i=ma(t.hash);switch(a){case"exact":return t.pathname+o+i===n;case"prefix":return t.pathname.startsWith(n)||(t.pathname+o).startsWith(n);case"params":try{const u=typeof document<"u"&&document.baseURI?document.baseURI:"http://localhost/",c=new URL(n,u);if(t.pathname!==c.pathname)return!1;const s=Array.from(new URLSearchParams(c.search).entries()).sort(),p=Array.from(r.entries()).sort();return s.length!==p.length?!1:s.every(([m,C],g)=>{const[y,b]=p[g];return m===y&&C===b})}catch{return t.pathname===n}default:return!1}}function xe(t,n){return n==="exact"?e.computedOf(t)(a=>a):e.computedOf(t)(a=>r=>Tt(r,a,n))}function ga({href:t,matchMode:n="exact",disableWhenActive:a=!0,...r},...l){return e.Use(J.Location,o=>{const i=o.matchSignal(xe(t,n)),u=e.computedOf(i,a)((c,s)=>s??!0?c:!1);return It({...r,href:t,disabled:u},...l)})}function ba({href:t,viewTransition:n=!0,state:a,scroll:r,replace:l,target:o,rel:i,matchMode:u,disableWhenActive:c,variant:s="filled",size:p="md",color:m="base",roundedness:C="sm",disabled:g=!1},...y){return u!==void 0||c!==void 0?e.Use(J.Location,b=>{const w=u!==void 0?b.matchSignal(xe(t,u)):e.computedOf(b.location)(()=>!1),v=e.computedOf(w,c)((d,V)=>!(V??!0)||!u?!1:d),f=e.computedOf(g,v)((d,V)=>d||V);return tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:o,rel:i,variant:s,size:p,color:m,roundedness:C,disabled:f},...y)}):tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:o,rel:i,variant:s,size:p,color:m,roundedness:C,disabled:g},...y)}function tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:o,rel:i,variant:u="default",size:c="md",color:s="base",roundedness:p="sm",disabled:m=!1,fullWidth:C=!1,loading:g=!1},...y){return e.When(m??!1,()=>e.html.span(e.attr.class(e.computedOf(c,p,g,C)(h.generateButtonClasses)),e.attr.style(e.computedOf(u,s,m)((b,w,v)=>h.generateButtonStyles(b??"filled",w??"base",v))),...y),()=>J.Anchor({href:t,...qe({viewTransition:n,state:a,scroll:r,replace:l})},e.attr.class(e.computedOf(c,p,g,C)(h.generateButtonClasses)),e.attr.style(e.computedOf(u,s,m)((b,w,v)=>h.generateButtonStyles(b??"filled",w??"base",v))),o?e.attr.target(o):null,i?e.attr.rel(i):null,...y))}const Ot={mark:e.makeProviderMark("SidebarContext"),create:t=>({value:{backgroundMode:"light"},dispose:()=>{}})};function ha({backgroundMode:t="light"},...n){return e.Provide(Ot,e.Value.map(t,a=>({backgroundMode:a})),()=>e.html.div(e.attr.class("bc-sidebar"),e.attr.class(e.Value.map(t,a=>a==="dark"?"bc-sidebar--dark-bg":"")),...n))}function Ne({rail:t,header:n},...a){return L.Stack(n!=null?e.html.div(e.attr.class("bc-sidebar-group__header"),n):null,e.html.div(e.attr.class(e.Value.map(t??!1,r=>r?"bc-sidebar-group--rail":"")),e.attr.class("bc-sidebar-group"),...a))}function Pt(t,...n){const a=qe({viewTransition:t.viewTransition??!0,state:t.state,scroll:t.scroll,replace:t.replace});return J.Anchor({href:t.href,...a},...n)}function _t(...t){return e.html.span(...t)}function Lt(t,...n){return e.html.button(e.attr.type("button"),e.on.click(t.onClick),t.ariaExpanded!=null?e.aria.expanded(e.Value.map(t.ariaExpanded,a=>a)):null,t.ariaControls!=null?e.aria.controls(t.ariaControls):null,t.ariaLabel!=null?e.aria.label(t.ariaLabel):null,...n)}function Dt(t){const n=[e.attr.class("bc-sidebar-link")];return t.icon!=null&&n.push(e.html.span(e.attr.class("bc-sidebar-link--icon"),h.Icon({icon:t.icon}))),n.push(e.html.span(e.attr.class("bc-sidebar-link__content"),t.content)),t.right!=null&&n.push(e.html.span(e.attr.class("bc-sidebar-link__right"),t.right)),t.action!=null&&n.push(e.html.button(e.attr.type("button"),e.attr.class("bc-sidebar-link--action"),e.on.click((a,r)=>{t.action?.onClick?.(r)}),h.Icon({icon:t.action?.icon}))),"onClick"in t?Lt(t,...n):e.Use(J.Location,a=>{const r=a.matchSignal(xe(t.href,"exact"),{includeSearch:!1,includeHash:!1});return e.When(r,()=>_t(...n),()=>Pt(t,...n))})}function ya({rail:t=!0,icon:n,header:a,startOpen:r=!0},...l){const o=e.Value.deriveProp(r),i=L.sessionId("sidebar-group"),u=`${i}-content`;return Ne({},e.attr.class("bc-sidebar-group-collapsible"),e.attr.class(o.map(c=>c?"bc-sidebar-group-collapsible--open":"bc-sidebar-group-collapsible--closed")),e.attr.role("group"),e.attr.id(i),Dt({icon:n,onClick:()=>o.update(c=>!c),ariaExpanded:o,ariaControls:u,right:e.html.span(e.attr.class("bc-sidebar-group-collapsible-indicator"),h.Icon({icon:"lucide:chevron-down",color:"base"})),content:a}),Ne({rail:t},e.attr.id(u),it({open:o},...l)))}function va(){return e.html.hr(e.attr.class("bc-sidebar-separator"))}function wa(t,n,a,r){const l=["bc-tabs",`bc-tabs--${t}`,`bc-tabs--${n}`];return a&&l.push("bc-tabs--disabled"),r!=null&&r!=="default"&&l.push(`bc-tabs--variant-${r}`),l.join(" ")}function Ca(t,n){if(t!=="filled")return"";const a=new Map,r=h.backgroundValue(n,"solid","light"),l=h.backgroundValue(n,"solid","dark");a.set("--tabs-filled-inactive-bg",r.backgroundColor),a.set("--tabs-filled-inactive-text","var(--color-white)");const o=h.hoverBackgroundValue(n,"solid","light");a.set("--tabs-filled-inactive-bg-hover",o.backgroundColor);const i=h.hoverBackgroundValue(n,"solid","dark");a.set("--tabs-filled-inactive-bg-dark-hover",i.backgroundColor),a.set("--tabs-filled-inactive-bg-dark",l.backgroundColor),a.set("--tabs-filled-inactive-text-dark",l.textColor),a.set("--tabs-filled-active-bg","var(--color-white)"),a.set("--tabs-filled-active-text","var(--color-base-800)"),a.set("--tabs-filled-active-bg-dark","var(--color-base-900)");const u=n==="white"||n==="black"||n==="transparent"?"var(--color-white)":Z.getColorVar(n,400);return a.set("--tabs-filled-active-text-dark",u),Array.from(a.entries()).map(([c,s])=>`${c}: ${s}`).join("; ")}function Sa(t,n,a){const r=["bc-tab",`bc-tab--${t}`];return n&&r.push("bc-tab--active"),a&&r.push("bc-tab--disabled"),r.join(" ")}function we(t,n,a){const r=n.length;let l=t+a;l>=r?l=0:l<0&&(l=r-1);let o=0;for(;o<r;){const i=n[l];if(!e.Value.get(i.disabled??!1))return l;l+=a,l>=r?l=0:l<0&&(l=r-1),o++}return t}function Va(t){const{items:n,value:a,onChange:r,size:l="md",variant:o="default",color:i="primary",disabled:u=!1,orientation:c="horizontal",showContent:s=!0,ariaLabel:p}=t,m=L.sessionId("tablist"),C=e.prop(-1),g=e.computedOf(a)(b=>n.find(w=>w.key===b)),y=b=>{if(e.Value.get(u))return;const v=C.value,f=e.Value.get(c)==="horizontal";let d=v;switch(b.key){case(f?"ArrowRight":"ArrowDown"):b.preventDefault(),d=we(v,n,1);break;case(f?"ArrowLeft":"ArrowUp"):b.preventDefault(),d=we(v,n,-1);break;case"Home":b.preventDefault(),d=we(-1,n,1);break;case"End":b.preventDefault(),d=we(n.length,n,-1);break;case"Enter":case" ":if(b.preventDefault(),v>=0&&v<n.length){const V=n[v];e.Value.get(V.disabled??!1)||r?.(V.key)}break}d!==v&&d>=0&&d<n.length&&(C.set(d),setTimeout(()=>{const V=document.querySelector(`[data-tab-index="${d}"]`);V&&V.focus()},0))};return e.html.div(e.attr.class(e.computedOf(l,c,u,o)((b,w,v,f)=>wa(b??"md",w??"horizontal",v??!1,f??"default"))),e.attr.style(e.computedOf(o,i)((b,w)=>Ca(b??"default",w??"primary"))),e.html.div(e.attr.class("bc-tabs__list"),e.attr.role("tablist"),e.attr.id(m),e.aria.orientation(c??"horizontal"),p?e.aria.label(p):e.Fragment(),e.on.keydown(y),...n.map((b,w)=>{const v=e.computedOf(a)(x=>x===b.key),f=e.computedOf(u,b.disabled)((x,P)=>x||P),d=`${m}-tab-${b.key}`,V=`${m}-panel-${b.key}`;return e.html.button(e.attr.type("button"),e.attr.class(e.computedOf(l,v,f)((x,P,I)=>Sa(x??"md",P??!1,I??!1))),e.attr.id(d),e.attr.role("tab"),e.attr.tabindex(e.computedOf(v,C)((x,P)=>x||P===w?0:-1)),e.aria.selected(v),e.aria.controls(V),e.aria.disabled(f),e.attr.disabled(f),e.dataAttr["tab-index"](String(w)),b.ariaLabel?e.aria.label(b.ariaLabel):e.Fragment(),e.on.click(x=>{x.preventDefault(),e.Value.get(b.disabled??!1)||e.Value.get(u)||(r?.(b.key),C.set(w))}),e.on.focus(()=>{C.set(w)}),b.label)})),e.When(s??!0,()=>e.Ensure(g,b=>{const w=b.$.key,v=w.map(d=>`${m}-tab-${d}`),f=w.map(d=>`${m}-panel-${d}`);return e.html.div(e.attr.class("bc-tabs__panels"),e.html.div(e.attr.class("bc-tabs__panel"),e.attr.id(f),e.attr.role("tabpanel"),e.attr.tabindex(0),e.aria.labelledby(v),e.MapSignal(b,d=>d.content())))})))}function ka(t){return j.Overlay((n,a)=>{let r=a;const l=()=>r();return t(u=>{const{size:c="md",side:s="right",dismissable:p=!0,showCloseButton:m=!0,onClose:C,overlayEffect:g="opaque",container:y="body",header:b,body:w,footer:v}=u;r=a;const f=e.prop("capturing");e.Value.on(p,x=>{f.set(x?"capturing":"non-capturing")});const d=e.computedOf(b!=null,m)((x,P)=>x||P),V=e.WithElement(x=>{const P=j.useAnimatedElementToggle({initialStatus:"closed",element:x});P.listenOnClosed(()=>{a()}),r=()=>{P.close()},fe.g(()=>P.open());const k=L.sessionId("drawer"),D=b!=null?`${k}-header`:void 0,E=`${k}-body`;return e.html.div(e.attr.class(e.computedOf(c,s,P.status)(($,F,q)=>`bc-drawer bc-drawer--size-${$} bc-drawer--container-${y} bc-drawer--side-${F} bc-drawer--status-${q}`)),e.attr.role("dialog"),e.aria.modal(!0),...D?[e.aria.labelledby(D)]:[],e.aria.describedby(E),e.attr.tabindex(-1),e.attr.id(k),e.dataAttr.focusTrap("true"),j.FocusTrap({active:!0,escapeDeactivates:!1,initialFocus:()=>document.querySelector(`#${k} [aria-label="Close drawer"]`)||null}),e.on.mousedown($=>$.stopPropagation()),e.MapSignal(d,$=>Be($?{header:e.html.div(e.attr.class("bc-drawer__header"),e.html.div(e.attr.id(D),b),e.When(m,()=>e.Use(h.BeatUII18n,F=>L.CloseButton({size:"sm",onClick:l,label:F.$.closeDrawer})))),body:e.html.div(e.attr.class("bc-drawer__body"),e.attr.id(E),w),footer:v&&e.html.div(e.attr.class("bc-drawer__footer"),v)}:{body:e.html.div(e.attr.class("bc-drawer__body"),e.attr.id(E),w),footer:v&&e.html.div(e.attr.class("bc-drawer__footer"),v)})))});n({mode:f,effect:g??"opaque",container:y,content:V,onClickOutside:()=>{C?.(),l()},onEscape:()=>{C?.(),l()}})},()=>{l()})})}function xa(t){const n={up:"M0 16 L8 10 L16 16 Z",down:"M0 0 L8 6 L16 0 Z",left:"M16 0 L10 8 L16 16 Z",right:"M0 0 L6 8 L0 16 Z"};return e.svg.svg(e.svgAttr.viewBox("0 0 16 16"),e.svg.path(e.svgAttr.d(t.map(a=>n[a]))))}function Ia(t){const{content:n,placement:a="top",showDelay:r=250,hideDelay:l=500,mainAxisOffset:o=8,crossAxisOffset:i=0,showOn:u="hover-focus"}=t,c=L.sessionId("tooltip");return e.Fragment(e.aria.describedby(c),ye({content:()=>e.Fragment(e.attr.class("bc-tooltip"),e.attr.role("tooltip"),e.attr.id(c),n),placement:a,showDelay:r,hideDelay:l,mainAxisOffset:o,crossAxisOffset:i,showOn:u,closable:!0,role:"tooltip",arrow:s=>{const p=s.map(({placement:m})=>m.includes("top")?"down":m.includes("bottom")?"up":m.includes("left")?"right":m.includes("right")?"left":"up");return e.Fragment(e.attr.class("bc-tooltip__arrow"),e.attr.class(p.map(m=>`bc-tooltip__arrow-${m}`)),e.style.transform(s.map(({x:m,y:C})=>m==null&&C==null?"":m!=null?`translate(${m}px, 0)`:`translate(0, ${C}px)`)),xa(p))}}))}function Ta(t,n,a,r,l,o){const i=h.backgroundValue(t,"solid","light"),u=h.backgroundValue(t,"solid","dark");return[`--ribbon-bg: ${i.backgroundColor}`,`--ribbon-text: ${i.textColor}`,`--ribbon-bg-dark: ${u.backgroundColor}`,`--ribbon-text-dark: ${u.textColor}`,`--ribbon-inset: ${Le(n)}`,`--ribbon-offset: ${Le(a)}`,`--ribbon-width: ${Le(r)}`,`--ribbon-angle: ${l}deg`,`--ribbon-corner: ${o}`].join("; ")}function Le(t){return t==null?null:typeof t=="number"?`${t}px`:t}function Oa({color:t="primary",class:n,inset:a=0,offset:r=40,width:l=100,angle:o=45,corner:i="top-end"},...u){return e.html.div(e.attr.class("bc-ribbon"),e.attr.style(e.computedOf(t,a,r,l,o,i)(Ta)),e.attr.class(n),...u)}function Pa(t,n){const{dismissable:a=!0,showCloseButton:r=!0,overlayEffect:l="opaque",container:o="body",padding:i=32}=t;return j.Overlay((u,c)=>{let s=()=>{};return n(C=>{s=c;const g=e.prop(typeof a!="boolean"||a?"capturing":"non-capturing");let y=typeof a=="boolean"?a:!0;e.Value.on(a,w=>{y=w,g.set(w?"capturing":"non-capturing")});const b=e.html.div(e.attr.class("bc-lightbox"),e.When(r,()=>e.Use(h.BeatUII18n,w=>e.html.div(e.attr.class("bc-lightbox__close"),L.CloseButton({size:"md",label:w.$.closeModal,onClick:()=>{s(),c()}}))),()=>null),e.html.div(e.attr.class("bc-lightbox__viewport"),e.attr.style(e.computedOf(i)(w=>`padding:${typeof w=="number"?w+"px":w}`)),e.html.div(e.attr.class("bc-lightbox__content"),C)));u({mode:g,effect:l??"opaque",container:o,content:b,onClickOutside:()=>{y&&(s(),c())},onEscape:()=>{y&&(s(),c())}})},()=>{s(),c()})})}function _a(t,n){const a=["bc-announcement-bar"];return t&&a.push("bc-announcement-bar--dismissible"),n&&n.length>0&&a.push(n),a.join(" ")}function La(t){return`--announcement-bar-bg-color: ${Z.getColorVar(t,600)}`}function Da({color:t="primary",icon:n,closable:a=!1,onDismiss:r,class:l},...o){const i=e.prop(!0);return e.When(i,()=>{const u=e.Value.map(a,c=>!!c||r!=null);return e.html.div(e.attr.class(e.computedOf(u,l)((c,s)=>_a(c,s))),e.attr.style(e.Value.map(t,c=>La(c))),e.html.div(e.attr.class("bc-announcement-bar__content"),e.When(e.Value.map(n,c=>c!=null),()=>e.html.div(e.attr.class("bc-announcement-bar__icon"),h.Icon({icon:n,size:"sm",accessibility:"decorative"}))),e.html.div(e.attr.class("bc-announcement-bar__text"),...o),e.When(u,()=>e.html.div(e.attr.class("bc-announcement-bar__close"),L.CloseButton({size:"xs",color:"white",onClick:()=>{i.set(!1),r?.()}})))))})}function $a(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\//i.test(t)}let Ce=null;function Ba(){return typeof window<"u"&&window.YT?.Player?Promise.resolve(window.YT):Ce||(Ce=new Promise(t=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{n?.(),t(window.YT)};const a=document.createElement("script");a.src="https://www.youtube.com/iframe_api",a.async=!0,document.head.appendChild(a)}),Ce)}function Ea(t){const{url:n,playing:a=!1,loop:r=!1,controls:l=!1,volume:o=1,muted:i=!1,playbackRate:u=1,pip:c=!1,playsinline:s=!0,width:p,height:m,progressInterval:C=1e3,seekTo:g,config:y,onReady:b,onStart:w,onPlay:v,onPause:f,onBuffer:d,onBufferEnd:V,onEnded:x,onError:P,onDuration:I,onSeek:k,onProgress:D,onPlaybackRateChange:E,onPlaybackQualityChange:$}=t;function F(O){return/\.m3u8(\?|$)/i.test(O)}function q(O){try{const B=O.canPlayType("application/vnd.apple.mpegurl");return B==="probably"||B==="maybe"}catch{return!1}}const M=e.prop("file");let N=null,W=null,Q=null;function ie(){try{Q?.destroy()}catch{}Q=null}const z=[];z.push(e.Value.on(n,O=>{typeof O=="string"&&O.length>0&&$a(O)?M.value="youtube":(M.value="file",N&&X())}));async function X(){const O=N;if(!O)return;const B=e.Value.get(n);if(typeof B!="string"||B.length===0)return;ie();const U=y?.file?.forceHLS??!1;if(F(B)||U){if(q(O)){O.setAttribute("src",B);try{O.load()}catch{}return}if(typeof window>"u")return;try{const G=await Promise.resolve().then(()=>require("./hls.light.min-D3hUMpII.cjs")).then(oe=>oe.hls_light_min),ge=G;let de=ge.default??ge.Hls??G;for(let oe=0;oe<3&&(typeof de=="object"&&de!=null&&"default"in de);oe++)de=de.default;if(typeof de=="function"){const oe=de;if(typeof oe.isSupported=="function"&&oe.isSupported()){O.removeAttribute("src");try{O.load()}catch{}const Te=new oe(y?.hls);Q=Te,Te.attachMedia(O),Te.loadSource(B)}else{O.setAttribute("src",B);try{O.load()}catch{}}}else{O.setAttribute("src",B);try{O.load()}catch{}}}catch(G){P?.(G),O.setAttribute("src",B);try{O.load()}catch{}}return}O.setAttribute("src",B);try{O.load()}catch{}}function re(){W?.();const O=e.Value.get(C)??1e3;W=fe.x(()=>{const B=N;if(!B)return;const U=B.duration||0,G=B.currentTime||0,ge=B.buffered?.length?B.buffered.end(B.buffered.length-1):0;D?.({played:U>0?G/U:0,playedSeconds:G,loaded:U>0?Math.min(ge,U)/U:0,loadedSeconds:Math.min(ge,U)})},O)}function le(O){if(O!=null)return typeof O=="number"?`${O}px`:O}const pe=e.html.video(e.WithElement(O=>{N=O,b?.();try{N.playbackRate=e.Value.get(u)??1}catch{}N.muted=!!(e.Value.get(i)??!1),N.loop=!!(e.Value.get(r)??!1),N.controls=!!(e.Value.get(l)??!1),N.playsInline!=null&&(!!(e.Value.get(s)??!0)?N.setAttribute("playsinline",""):N.removeAttribute("playsinline")),e.Value.get(a)&&(N.play?.().catch(()=>{}),w?.());try{const B=!!(e.Value.get(c)??!1),U=document,G=N;B?typeof G.requestPictureInPicture=="function"&&U.pictureInPictureElement!==N&&G.requestPictureInPicture().catch(()=>{}):U.pictureInPictureElement===N&&typeof U.exitPictureInPicture=="function"&&U.exitPictureInPicture().catch(()=>{})}catch{}re(),X()}),e.style.width(e.Value.map(p,le)),e.style.height(e.Value.map(m,le)),e.on.play(()=>v?.()),e.on.playing(()=>{w?.(),V?.()}),e.on.pause(()=>f?.()),e.on.waiting(()=>d?.()),e.on.canplay(()=>{const O=N?.duration;O!=null&&Number.isFinite(O)&&I?.(O)}),e.on.ended(()=>x?.()),e.on.error(O=>{Q||P?.(O)}));let me=null,R=null,ue=null;function ce(){const O=e.Value.get(n);!me||typeof O!="string"||Ba().then(B=>{const U=$t(O);if(U){if(R){R.loadVideoById({videoId:U});return}R=new B.Player(me,{videoId:U,playerVars:Aa(t),events:{onReady:()=>{b?.(),_(),e.Value.get(a)&&w?.(),Ie()},onStateChange:G=>{switch(G.data){case B.PlayerState.PLAYING:v?.(),V?.();break;case B.PlayerState.PAUSED:f?.();break;case B.PlayerState.BUFFERING:d?.();break;case B.PlayerState.ENDED:x?.();break}},onError:G=>P?.(G),onPlaybackRateChange:G=>E?.(G.data),onPlaybackQualityChange:G=>$?.(G.data)}})}})}function Ie(){ue?.();const O=e.Value.get(C)??1e3;ue=fe.x(()=>{if(!R)return;const B=R.getDuration?.()??0,U=R.getCurrentTime?.()??0,G=R.getVideoLoadedFraction?.()??0;D?.({played:B>0?U/B:0,playedSeconds:U,loaded:G,loadedSeconds:G*B})},O)}function _(){if(!R)return;try{const U=e.Value.get(u)??1;R.setPlaybackRate?.(U)}catch{}try{const U=Math.round(Math.min(Math.max(e.Value.get(o)??1,0),1)*100);R.setVolume?.(U)}catch{}try{e.Value.get(i)??!1?R.mute?.():R.unMute?.()}catch{}e.Value.get(a)??!1?R.playVideo?.():R.pauseVideo?.();const B=e.Value.get(g);typeof B=="number"&&Number.isFinite(B)&&(R.seekTo?.(B,!0),k?.(B))}const A=e.html.div(e.WithElement(O=>{me=O,ce(),b?.()}));z.push(e.Value.on(n,()=>{M.value==="youtube"&&ce()})),z.push(e.Value.on(a,()=>{M.value==="file"&&N?e.Value.get(a)?N.play?.().catch(()=>{}):N.pause?.():M.value==="youtube"&&R&&(e.Value.get(a)?R.playVideo?.():R.pauseVideo?.())})),z.push(e.Value.on(o,()=>{if(M.value==="file"&&N)N.volume=Math.min(Math.max(e.Value.get(o)??1,0),1);else if(M.value==="youtube"&&R){const O=Math.round(Math.min(Math.max(e.Value.get(o)??1,0),1)*100);R.setVolume?.(O)}})),z.push(e.Value.on(i,()=>{M.value==="file"&&N?N.muted=!!e.Value.get(i):M.value==="youtube"&&R&&(e.Value.get(i)?R.mute?.():R.unMute?.())})),z.push(e.Value.on(u,()=>{if(M.value==="file"&&N)try{N.playbackRate=e.Value.get(u)??1}catch{}else M.value==="youtube"&&R&&R.setPlaybackRate?.(e.Value.get(u)??1)})),z.push(e.Value.on(c,async()=>{if(!(M.value!=="file"||!N))try{const O=!!(e.Value.get(c)??!1),B=document,U=N;O?typeof U.requestPictureInPicture=="function"&&B.pictureInPictureElement!==N&&await U.requestPictureInPicture()?.catch(()=>{}):B.pictureInPictureElement===N&&typeof B.exitPictureInPicture=="function"&&await B.exitPictureInPicture()?.catch(()=>{})}catch{}})),z.push(e.Value.on(g??null,()=>{const O=e.Value.get(g);if(O!=null)if(M.value==="file"&&N)try{N.currentTime=O,k?.(O)}catch{}else M.value==="youtube"&&R&&(R.seekTo?.(O,!0),k?.(O))}));const Y=e.html.div(e.attr.class("bc-base-video"),e.style.width(e.Value.map(p,le)),e.style.height(e.Value.map(m,le)),e.When(e.Value.map(M,O=>O==="youtube"),()=>A,()=>pe));return e.Fragment(e.OnDispose(...z),Y)}function $t(t){const n=/[?&]v=([^&#]+)/.exec(t);if(n)return n[1];const a=/youtu\.be\/([^?&#]+)/.exec(t);if(a)return a[1];const r=/youtube\.com\/embed\/([^?&#]+)/.exec(t);return r?r[1]:null}function Aa(t){const n={autoplay:e.Value.get(t.playing)??!1?1:0,controls:e.Value.get(t.controls)??!1?1:0,rel:0,playsinline:e.Value.get(t.playsinline)??!0?1:0,modestbranding:1},a=e.Value.get(t.loop)??!1,r=e.Value.get(t.url),l=typeof r=="string"?$t(r):null;return a&&l&&(n.loop=1,n.playlist=l),n}const Ze="https://cdn.jsdelivr.net/npm/pdfjs-dist@5.4.394/",Na=t=>{if(!t||typeof t!="object")return!1;const n=t;return!!(n.getDocument&&typeof n.getDocument=="function")};function Fa(){if(typeof window>"u")return;const n=window.pdfjsLib;n?.GlobalWorkerOptions?.workerSrc||n?.GlobalWorkerOptions&&(n.GlobalWorkerOptions.workerSrc=`${Ze}build/pdf.worker.min.mjs`)}const Ma=t=>new Promise((n,a)=>{const r=document.createElement("script");r.type="module",r.src=t,r.onload=()=>n(),r.onerror=()=>a(new Error(`Failed to load script: ${t}`)),document.head.appendChild(r)}),Ua=async()=>{const t=window;if(t.pdfjsLib&&Na(t.pdfjsLib))return t.pdfjsLib;if(await Ma(`${Ze}build/pdf.min.mjs`),await new Promise(n=>setTimeout(n,100)),!t.pdfjsLib)throw new Error("PDF.js failed to initialize after loading");return t.pdfjsLib};let De=null,nt=!1;async function Ra(){if(De)return De;!nt&&typeof window<"u"&&(Fa(),nt=!0);const t=await Ua();return De=t,t.GlobalWorkerOptions&&(t.GlobalWorkerOptions.workerSrc=`${Ze}build/pdf.worker.min.mjs`),t}function Wa(t,n){if(t.byteLength!==n.byteLength)return!1;const a=t.byteLength,r=new DataView(t.buffer,t.byteOffset,a),l=new DataView(n.buffer,n.byteOffset,a),o=a>>>2,i=a&3;for(let u=0;u<o;u++)if(r.getUint32(u*4)!==l.getUint32(u*4))return!1;for(let u=a-i;u<a;u++)if(t[u]!==n[u])return!1;return!0}function Ha(t,n){if(t.byteLength!==n.byteLength)return!1;const a=t.byteLength,r=a>>>2,l=new Uint32Array(t,0,r),o=new Uint32Array(n,0,r);for(let s=0;s<r;s++)if(l[s]!==o[s])return!1;const i=a&3,u=new Uint8Array(t,r*4,i),c=new Uint8Array(n,r*4,i);for(let s=0;s<i;s++)if(u[s]!==c[s])return!1;return!0}function ja(t,n){try{return typeof t=="string"&&typeof n=="string"?t===n:t instanceof Uint8Array&&n instanceof Uint8Array?Wa(t,n):t instanceof ArrayBuffer&&n instanceof ArrayBuffer?Ha(t,n):!1}catch{return!1}}function $e(t){return typeof t=="string"?t:t instanceof Uint8Array?t.slice():t instanceof ArrayBuffer?t.slice(0):t}function za({source:t,page:n=1,fit:a="width",scale:r=1,rotation:l=0,quality:o=2,renderTextLayer:i=!0,renderAnnotationLayer:u=!1,onPageChange:c,onLoadComplete:s},...p){const m=Ra();let C=$e(e.Value.get(t)),g=null,y=e.Value.get(n);return e.Use(h.BeatUII18n,b=>e.Fragment(e.OnDispose(()=>{g!=null&&(g.destroy(),g=null)}),J.ElementRect(w=>{const v=e.delaySignal(w.map(f=>f==null?null:{width:f.width,height:f.height},(f,d)=>f!=null&&d!=null&&f.width===d.width&&f.height===d.height),100);return e.Ensure(v,f=>J.Query({request:e.computedOf(t,n,a,r,l,o,i,u,f)((d,V,x,P,I,k,D,E,$)=>({source:d,page:V,fit:x,scale:P,rotation:I,quality:k,renderTextLayer:D,renderAnnotationLayer:E,containerWidth:$.width,containerHeight:$.height})),load:async({request:d})=>{const V=await m,x=d.source,P=$e(x),I=$e(x);(g==null||!ja(C,P))&&(g!=null&&(g.destroy(),g=null),C=P,g=await V.getDocument(I).promise,s?.({numPages:g.numPages}));const k=d.page<1||d.page>g.numPages?1:d.page;c!=null&&k!==y&&(y=k,c(k));const D=await g.getPage(k);let E;if(d.fit==="none")E=d.scale;else{const M=D.getViewport({scale:1,rotation:d.rotation}),N=M.width/M.height,W=d.containerWidth/d.containerHeight;switch(d.fit){case"width":E=d.containerWidth/M.width;break;case"height":E=d.containerHeight/M.height;break;case"contain":E=Math.min(d.containerWidth/M.width,d.containerHeight/M.height);break;case"cover":N>W?E=d.containerHeight/M.height:E=d.containerWidth/M.width;break}}const $=D.getViewport({scale:E,rotation:d.rotation}),F=D.getViewport({scale:E*d.quality,rotation:d.rotation});let q=null;return{pdfWidth:$.width,pdfHeight:$.height,canvasWidth:Math.floor($.width),canvasHeight:Math.floor($.height),highResWidth:Math.floor(F.width),highResHeight:Math.floor(F.height),render:async(M,N,W)=>{if(q)try{q.cancel(),await q.promise.catch(()=>{})}catch{}M.width=F.width,M.height=F.height,M.style.width=`${$.width}px`,M.style.height=`${$.height}px`;const Q=M.getContext("2d");if(!Q)throw new Error("Failed to get canvas context");const ie=D.render({canvasContext:Q,canvas:M,viewport:F});q=ie;try{await ie.promise}catch(z){if((z instanceof Error?z.name:z?.name)!=="RenderingCancelledException")throw z;return}finally{q===ie&&(q=null)}if(d.renderTextLayer&&N!=null){N.innerHTML="";try{const z=await D.getTextContent(),X=V.TextLayer;X!=null&&await new X({textContentSource:z,container:N,viewport:$}).render()}catch(z){console.warn("Failed to render text layer:",z)}}if(d.renderAnnotationLayer&&W!=null){W.innerHTML="",W.style.width=`${$.width}px`,W.style.height=`${$.height}px`;try{const z=await D.getAnnotations(),X=V.AnnotationLayer;if(X!=null&&z.length>0){const re={getDestinationHash:()=>"",getAnchorUrl:pe=>pe,executeNamedAction:()=>{},executeSetOCGState:()=>{},cachePageRef:()=>{}};await new X({div:W,page:D,viewport:$,linkService:re,annotationStorage:null}).render({viewport:$,div:W,annotations:z,page:D,linkService:re,renderForms:!0})}}catch(z){console.warn("Failed to render annotation layer:",z)}}}}},convertError:d=>d instanceof Error?d.message:JSON.stringify(d),pending:()=>e.html.div(e.attr.class("bc-pdf-page-viewer__loading"),h.Icon({icon:"line-md:loading-twotone-loop",size:"lg"}),e.html.span(e.attr.class("bc-pdf-page-viewer__loading-text"),b.map(d=>d.pdfPageViewer.loading))),failure:({error:d})=>e.html.div(e.attr.class("bc-pdf-page-viewer__error"),h.Icon({icon:"line-md:alert-circle",size:"lg",color:"danger"}),e.html.span(e.attr.class("bc-pdf-page-viewer__error-text"),d)),success:({value:d})=>e.html.div(e.attr.class(e.Value.map(a,V=>V==="none"?"bc-pdf-page-viewer":`bc-pdf-page-viewer bc-pdf-page-viewer--fit-${V}`)),e.html.div(e.attr.class("bc-pdf-page-viewer__content"),e.When(e.Value.map(a,V=>V==="none"),()=>e.attr.style(d.$.canvasWidth.map(V=>`width: ${V}px; height: ${d.value.canvasHeight}px;`)),()=>e.Fragment()),e.html.canvas(e.attr.class("bc-pdf-page-viewer__canvas"),e.attr.width(d.$.canvasWidth.map(String)),e.attr.height(d.$.canvasHeight.map(String)),...p),e.html.div(e.attr.class("bc-pdf-page-viewer__text-layer")),e.html.div(e.attr.class("bc-pdf-page-viewer__annotation-layer"))),e.WithElement(V=>{const x=V.querySelector(".bc-pdf-page-viewer__canvas"),P=V.querySelector(".bc-pdf-page-viewer__text-layer"),I=V.querySelector(".bc-pdf-page-viewer__annotation-layer");return e.Value.on(d,async k=>{await k.render(x,P,I)}),e.Empty}))}))})))}Object.defineProperty(exports,"Use",{enumerable:!0,get:()=>e.Use});exports.BeatUII18n=h.BeatUII18n;exports.Button=h.Button;exports.CommonInputAttributes=h.CommonInputAttributes;exports.Icon=h.Icon;exports.InputContainer=h.InputContainer;exports.InputIcon=h.InputIcon;exports.LOGICAL_PROPERTY_MAP=h.LOGICAL_PROPERTY_MAP;exports.Locale=h.Locale;exports.TextInput=h.TextInput;exports.defaultLocale=h.defaultLocale;exports.defaultMessages=h.defaultMessages;exports.formatFileSize=h.formatFileSize;exports.generateButtonClasses=h.generateButtonClasses;exports.generateButtonStyles=h.generateButtonStyles;exports.generateInputContainerInputClasses=h.generateInputContainerInputClasses;exports.getDirectionClassName=h.getDirectionClassName;exports.getDirectionFromLocale=h.getDirectionFromLocale;exports.getIconLocally=h.getIconLocally;exports.getOppositeDirection=h.getOppositeDirection;exports.getPhysicalProperty=h.getPhysicalProperty;exports.isIndexedDBAvailable=h.isIndexedDBAvailable;exports.isRTLLocale=h.isRTLLocale;exports.makeI18nProvider=h.makeI18nProvider;exports.makeMessages=h.makeMessages;exports.resolveDirection=h.resolveDirection;exports.storeIconLocally=h.storeIconLocally;exports.backgroundConfig=Z.backgroundConfig;exports.bgColors=Z.bgColors;exports.borderColors=Z.borderColors;exports.colorShades=Z.colorShades;exports.colors=Z.colors;exports.generateColorVariables=Z.generateColorVariables;exports.generateCoreColorVariables=Z.generateCoreColorVariables;exports.generateSemanticColorVariables=Z.generateSemanticColorVariables;exports.getColorVar=Z.getColorVar;exports.getColorVarName=Z.getColorVarName;exports.interactiveColors=Z.interactiveColors;exports.normalizeColorName=Z.normalizeColorName;exports.resolveSemanticColorMap=Z.resolveSemanticColorMap;exports.semanticColorNames=Z.semanticColorNames;exports.semanticColors=Z.semanticColors;exports.textColors=Z.textColors;exports.themeColorNames=Z.themeColorNames;exports.baseSpacing=T.baseSpacing;exports.beatuiPreset=T.beatuiPreset;exports.breakpoints=T.breakpoints;exports.changeFontSize=T.changeFontSize;exports.createBeatuiPreset=T.createBeatuiPreset;exports.fontFamily=T.fontFamily;exports.fontSize=T.fontSize;exports.fontWeight=T.fontWeight;exports.generateAllTokenVariables=T.generateAllTokenVariables;exports.generateBreakpointVariables=T.generateBreakpointVariables;exports.generateCoreTokenVariables=T.generateCoreTokenVariables;exports.generateFontFamilyOverrideVariables=T.generateFontFamilyOverrideVariables;exports.generateMotionVariables=T.generateMotionVariables;exports.generateRadiusVariables=T.generateRadiusVariables;exports.generateSemanticFontVariables=T.generateSemanticFontVariables;exports.generateSemanticMotionVariables=T.generateSemanticMotionVariables;exports.generateSemanticRadiusVariables=T.generateSemanticRadiusVariables;exports.generateSemanticShadowVariables=T.generateSemanticShadowVariables;exports.generateSemanticSpacingVariables=T.generateSemanticSpacingVariables;exports.generateSemanticTextShadowVariables=T.generateSemanticTextShadowVariables;exports.generateSemanticTokenVariables=T.generateSemanticTokenVariables;exports.generateShadowVariables=T.generateShadowVariables;exports.generateSpacingVariables=T.generateSpacingVariables;exports.generateTextShadowVariables=T.generateTextShadowVariables;exports.generateTypographyVariables=T.generateTypographyVariables;exports.generateZIndexVariables=T.generateZIndexVariables;exports.getBreakpointMediaQuery=T.getBreakpointMediaQuery;exports.getBreakpointVar=T.getBreakpointVar;exports.getBreakpointVarName=T.getBreakpointVarName;exports.getFontFamilyVar=T.getFontFamilyVar;exports.getFontFamilyVarName=T.getFontFamilyVarName;exports.getFontSizeVar=T.getFontSizeVar;exports.getFontSizeVarName=T.getFontSizeVarName;exports.getFontWeightVar=T.getFontWeightVar;exports.getFontWeightVarName=T.getFontWeightVarName;exports.getLetterSpacingVar=T.getLetterSpacingVar;exports.getLetterSpacingVarName=T.getLetterSpacingVarName;exports.getLineHeightVar=T.getLineHeightVar;exports.getLineHeightVarName=T.getLineHeightVarName;exports.getMotionDurationVar=T.getMotionDurationVar;exports.getMotionDurationVarName=T.getMotionDurationVarName;exports.getMotionEasingVar=T.getMotionEasingVar;exports.getMotionEasingVarName=T.getMotionEasingVarName;exports.getRadiusMediaQuery=T.getRadiusMediaQuery;exports.getRadiusVar=T.getRadiusVar;exports.getRadiusVarName=T.getRadiusVarName;exports.getSemanticFontVar=T.getSemanticFontVar;exports.getSemanticFontVarName=T.getSemanticFontVarName;exports.getSemanticMotionVarName=T.getSemanticMotionVarName;exports.getSemanticRadiusVarName=T.getSemanticRadiusVarName;exports.getSemanticShadowVarName=T.getSemanticShadowVarName;exports.getSemanticSpacingVarName=T.getSemanticSpacingVarName;exports.getSemanticTextShadowVarName=T.getSemanticTextShadowVarName;exports.getShadowVar=T.getShadowVar;exports.getShadowVarName=T.getShadowVarName;exports.getSpacingVar=T.getSpacingVar;exports.getSpacingVarName=T.getSpacingVarName;exports.getTextShadowVar=T.getTextShadowVar;exports.getTextShadowVarName=T.getTextShadowVarName;exports.getTokenValue=T.getTokenValue;exports.getZIndexVar=T.getZIndexVar;exports.getZIndexVarName=T.getZIndexVarName;exports.letterSpacing=T.letterSpacing;exports.lineHeight=T.lineHeight;exports.motionDurations=T.motionDurations;exports.motionEasings=T.motionEasings;exports.radius=T.radius;exports.semanticFontNames=T.semanticFontNames;exports.semanticMotionNames=T.semanticMotionNames;exports.semanticRadiusNames=T.semanticRadiusNames;exports.semanticShadowNames=T.semanticShadowNames;exports.semanticSpacingNames=T.semanticSpacingNames;exports.semanticTextShadowNames=T.semanticTextShadowNames;exports.shadows=T.shadows;exports.spacing=T.spacing;exports.textShadows=T.textShadows;exports.zIndex=T.zIndex;exports.ArrayController=L.ArrayController;exports.BaseControl=L.BaseControl;exports.BaseMappedControl=L.BaseMappedControl;exports.CheckboxInput=L.CheckboxInput;exports.CloseButton=L.CloseButton;exports.Control=L.Control;exports.Controller=L.Controller;exports.DangerLabel=L.DangerLabel;exports.EmailInput=L.EmailInput;exports.EmphasisLabel=L.EmphasisLabel;exports.InputWrapper=L.InputWrapper;exports.Label=L.Label;exports.MappedControl=L.MappedControl;exports.MutedLabel=L.MutedLabel;exports.Notice=L.Notice;exports.ObjectController=L.ObjectController;exports.PasswordInput=L.PasswordInput;exports.RequiredSymbol=L.RequiredSymbol;exports.Stack=L.Stack;exports.connectCommonAttributes=L.connectCommonAttributes;exports.connectNumberInput=L.connectNumberInput;exports.connectStringInput=L.connectStringInput;exports.convertStandardSchemaIssues=L.convertStandardSchemaIssues;exports.convertStandardSchemaPathToPath=L.convertStandardSchemaPathToPath;exports.makeMapValidation=L.makeMapValidation;exports.makeOnBlurHandler=L.makeOnBlurHandler;exports.makeOnChangeHandler=L.makeOnChangeHandler;exports.parsePath=L.parsePath;exports.pathToString=L.pathToString;exports.sessionId=L.sessionId;exports.standardSchemaResultToValidation=L.standardSchemaResultToValidation;exports.taskToValidation=L.taskToValidation;exports.useController=L.useController;exports.useForm=L.useForm;exports.wrapSegment=L.wrapSegment;exports.AnimatedToggle=j.AnimatedToggle;exports.AnimatedToggleClass=j.AnimatedToggleClass;exports.BooleanValidator=j.BooleanValidator;exports.ConfirmModal=j.ConfirmModal;exports.FocusTrap=j.FocusTrap;exports.Modal=j.Modal;exports.ObjectValidator=j.ObjectValidator;exports.Overlay=j.Overlay;exports.StringValidator=j.StringValidator;exports.boolean=j.boolean;exports.createStandardSchema=j.createStandardSchema;exports.object=j.object;exports.string=j.string;exports.useAnimatedElementToggle=j.useAnimatedElementToggle;exports.useAnimatedToggle=j.useAnimatedToggle;exports.useFocusTrap=j.useFocusTrap;exports.useTimedToggle=j.useTimedToggle;exports.Theme=be.Theme;exports.ThemeAppearance=be.ThemeAppearance;exports.Base64Input=S.Base64Input;exports.Base64sInput=S.Base64sInput;exports.BaseListControl=S.BaseListControl;exports.BaseNativeSelectControl=S.BaseNativeSelectControl;exports.Card=S.Card;exports.ColorSwatchInput=S.ColorSwatchInput;exports.EditableText=S.EditableText;exports.Expando=S.Expando;exports.FilesInput=S.FilesInput;exports.Group=S.Group;exports.ListControl=S.ListControl;exports.ListInput=S.ListInput;exports.MaskInput=S.MaskInput;exports.NativeSelect=S.NativeSelect;exports.NativeSelectControl=S.NativeSelectControl;exports.NullableDateInput=S.NullableDateInput;exports.NullableDateTimeInput=S.NullableDateTimeInput;exports.NullableDurationInput=S.NullableDurationInput;exports.NullableEmailInput=S.NullableEmailInput;exports.NullableNumberInput=S.NullableNumberInput;exports.NullablePasswordInput=S.NullablePasswordInput;exports.NullableRatingInput=S.NullableRatingInput;exports.NullableSliderInput=S.NullableSliderInput;exports.NullableTextArea=S.NullableTextArea;exports.NullableTextInput=S.NullableTextInput;exports.NullableUUIDInput=S.NullableUUIDInput;exports.NullableUrlInput=S.NullableUrlInput;exports.NumberInput=S.NumberInput;exports.RatingInput=S.RatingInput;exports.SegmentedInput=S.SegmentedInput;exports.SliderInput=S.SliderInput;exports.Switch=S.Switch;exports.TextArea=S.TextArea;exports.UUIDInput=S.UUIDInput;exports.UnionController=S.UnionController;exports.UnstyledDropZone=S.UnstyledDropZone;exports.UrlInput=S.UrlInput;exports.WithTemporal=S.WithTemporal;exports.emitExpando=S.emitExpando;exports.emitOptionExpando=S.emitOptionExpando;exports.emptyToNull=S.emptyToNull;exports.ensureTemporal=S.ensureTemporal;exports.fileToBase64=S.fileToBase64;exports.formatColor=S.formatColor;exports.getContrastRatio=S.getContrastRatio;exports.hexToRgb=S.hexToRgb;exports.hslToRgb=S.hslToRgb;exports.hwbToRgb=S.hwbToRgb;exports.isValidColor=S.isValidColor;exports.isValidHexColor=S.isValidHexColor;exports.isValidHslColor=S.isValidHslColor;exports.isValidRgbColor=S.isValidRgbColor;exports.isValidRgbaColor=S.isValidRgbaColor;exports.linearToSrgb=S.linearToSrgb;exports.mulberry32=S.mulberry32;exports.normalizeHexColor=S.normalizeHexColor;exports.nullToEmpty=S.nullToEmpty;exports.oklchToRgb=S.oklchToRgb;exports.parseAnyColor=S.parseAnyColor;exports.resolveEffectiveFormat=S.resolveEffectiveFormat;exports.rgbToHex=S.rgbToHex;exports.rgbToHsl=S.rgbToHsl;exports.rgbToHwb=S.rgbToHwb;exports.rgbToOklch=S.rgbToOklch;exports.srgbToLinear=S.srgbToLinear;exports.toRgbaString=S.toRgbaString;exports.transformEmptyStringToUndefined=S.transformEmptyStringToUndefined;exports.transformNullToUndefined=S.transformNullToUndefined;exports.transformUndefinedToNull=S.transformUndefinedToNull;exports.LinkPortal=Bt.LinkPortal;exports.Toolbar=he.Toolbar;exports.ToolbarButton=he.ToolbarButton;exports.ToolbarDivider=he.ToolbarDivider;exports.ToolbarGroup=he.ToolbarGroup;exports.ToolbarSpacer=he.ToolbarSpacer;exports.ActionCard=en;exports.AnnouncementBar=Da;exports.AppShell=pn;exports.AppearanceSelector=lt;exports.Badge=Rt;exports.BaseComboboxControl=ft;exports.BaseComboboxTagsControl=In;exports.BaseDropdownControl=dt;exports.BaseSelectTagsControl=kn;exports.BaseVideoPlayer=Ea;exports.BeatUI=sa;exports.BigintInput=Bn;exports.ButtonLink=ba;exports.Center=gn;exports.CenterH=mn;exports.Chips=je;exports.Collapse=it;exports.CollapsibleSidebarGroup=ya;exports.ColorController=wt;exports.ColorInput=Jt;exports.ComboboxControl=Cn;exports.ComboboxInput=mt;exports.ComboboxTagsControl=Tn;exports.ComboboxTagsInput=Ge;exports.DateInput=On;exports.DateTimeInput=_n;exports.Drawer=ka;exports.DropdownBase=Re;exports.DropdownControl=wn;exports.DropdownInput=ct;exports.DurationInput=Xn;exports.EnsureControl=ea;exports.FileInput=Ln;exports.Flyout=ye;exports.FormStatus=ta;exports.InstantInput=jn;exports.LazyNativeSelect=Dn;exports.Lightbox=Pa;exports.Link=It;exports.LocaleSelector=ra;exports.Menu=We;exports.MenuItem=Sn;exports.MenuSeparator=He;exports.NativePdfPreview=ia;exports.NavigationLink=ga;exports.NineSliceScrollView=hn;exports.Notification=Vt;exports.NotificationProvider=Ye;exports.NotificationService=kt;exports.NotificationViewport=xt;exports.NullableBigintInput=En;exports.NullableInstantInput=Gn;exports.NullableMaskInput=$n;exports.NullablePlainDateInput=Fn;exports.NullablePlainDateTimeInput=Wn;exports.NullablePlainMonthDayInput=Qn;exports.NullablePlainTimeInput=Un;exports.NullablePlainYearMonthInput=Jn;exports.NullableZonedDateTimeInput=qn;exports.OpenGraph=pa;exports.Option=ae;exports.PDFJSPreview=ua;exports.PageDropZone=Wt;exports.PdfPageViewer=za;exports.PlainDateInput=Nn;exports.PlainDateTimeInput=Rn;exports.PlainMonthDayInput=Kn;exports.PlainTimeInput=Mn;exports.PlainYearMonthInput=Zn;exports.Ribbon=Oa;exports.ScrollablePanel=Be;exports.SelectTagsControl=xn;exports.SelectTagsInput=ze;exports.Sidebar=ha;exports.SidebarActiveLink=_t;exports.SidebarClickLink=Lt;exports.SidebarContext=Ot;exports.SidebarGroup=Ne;exports.SidebarLink=Dt;exports.SidebarSeparator=va;exports.SidebarUrlLink=Pt;exports.Sink=vn;exports.StandaloneAppearanceSelector=qt;exports.StylePortal=ca;exports.Table=zt;exports.Tabs=Va;exports.Tag=Me;exports.TagsInput=An;exports.Tooltip=Ia;exports.WithBeatUIBreakpoint=st;exports.WithBeatUIElementBreakpoint=ln;exports.WithBreakpoint=Ue;exports.ZonedDateTimeInput=Yn;exports.colorInputOptionsFromController=aa;exports.compareBreakpoint=ot;exports.createColorController=na;exports.createLocationMatcher=xe;exports.delaySignal=Et;exports.downloadContent=At;exports.downloadFile=Ft;exports.downloadUrl=Fe;exports.downloadUrlAndMonitor=Nt;exports.findBreakpoint=an;exports.generateBadgeClasses=at;exports.generateBadgeStyles=rt;exports.generateLinkClasses=Ee;exports.generateLinkStyles=Ae;exports.generateNotificationClasses=Ct;exports.generateNotificationStyles=St;exports.increaseSize=Ut;exports.isUrlMatch=Tt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@tempots/dom"),J=require("@tempots/ui"),h=require("./translations-hMQlZmD4.cjs"),q=require("./colors-B9fcMxa_.cjs"),T=require("./index-CyyNsVT9.cjs"),_=require("./notice-D3As5ZhJ.cjs"),j=require("./modal-mwKwnIZS.cjs"),be=require("./theme-Dt6lCAvY.cjs"),S=require("./utils-Bzo19jHw.cjs"),fe=require("./timer-DK_yKNwE.cjs"),Et=require("./link-portal-_tiDFZqh.cjs"),he=require("./toolbar-wEm8iNet.cjs");function Bt(t,n=0,a=()=>!0){let r=null,l;const i=e.prop(t.value);return t.on(s=>{l=s,a(s)?r==null&&(r=setTimeout(()=>{r=null,i.set(l)},n)):i.set(s)}),t.onDispose(()=>{r!=null&&clearTimeout(r)}),i}const Fe=async(t,n="")=>{try{const r=await(await fetch(t)).blob(),l=URL.createObjectURL(r),i=document.createElement("a");i.href=l,i.download=n,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(l)}catch{window.open(t,"_blank")}},At=(t,n,a="application/octet-stream")=>{const r=new Blob([t],{type:a});Fe(URL.createObjectURL(r),n),URL.revokeObjectURL(URL.createObjectURL(r))},Nt=t=>{const n=new AbortController,a=e.prop({type:"progress",value:0});let r=!1;return(async()=>{try{const l=await fetch(t,{signal:n.signal});if(!l.ok)throw new Error(`HTTP error! status: ${l.status}`);const i=l.headers.get("content-length"),s=i?parseInt(i,10):void 0,u=(async()=>{if(s===void 0||isNaN(s))return a.set({type:"undetermined"}),await l.blob();{const m=new Uint8Array(s);if(l.body==null)throw new Error("Response body is null");const C=l.body.getReader();let g=0;for(;;){const{done:y,value:b}=await C.read();if(y)break;m.set(b,g),g+=b.length,a.set({type:"progress",value:Math.min(g/s,1)})}return new Blob([m],{type:l.headers.get("content-type")??void 0})}})(),c=t.split("/").pop()||"download",o=await u,d=new File([o],c,{type:o.type});r=!0,a.set({type:"done",file:d})}catch(l){a.set({type:"error",error:l})}finally{r=!0,a.dispose()}})(),{signal:a,cancel:()=>{r||n.abort()}}},Ft=t=>{Fe(URL.createObjectURL(t),t.name)},Je=(t,n)=>t<n?t:n,ve=(t,n)=>t>n?t:n,Mt=(t,{abortSignal:n}={})=>new Promise((a,r)=>{const l=setTimeout(a,t);n&&n.addEventListener("abort",()=>{clearTimeout(l),r(new DOMException("Aborted","AbortError"))})}),Oe=["xs","sm","md","lg","xl"];function Ut(t,n=1){const a=Oe.indexOf(t);if(a===-1)throw new Error(`Invalid size: ${t}`);const r=Math.min(Math.max(a+n,0),Oe.length-1);return Oe[r]}function at(t,n,a,r){const l=["bc-badge",`bc-badge--size-${t}`,`bc-control--rounded-${n}`];return a&&l.push("bc-badge--circle"),r&&l.push("bc-badge--full-width"),l.join(" ")}function rt(t,n){const a=new Map,r=(l,i,s,u)=>{a.set("--badge-bg-hover",l),a.set("--badge-text-hover",s),a.set("--badge-bg-hover-dark",i),a.set("--badge-text-hover-dark",u)};switch(t){case"filled":{const l=h.backgroundValue(n,"solid","light"),i=h.backgroundValue(n,"solid","dark"),s=h.hoverBackgroundValue(n,"soft","light"),u=h.hoverBackgroundValue(n,"soft","dark");a.set("--badge-bg",l.backgroundColor),a.set("--badge-text",l.textColor),a.set("--badge-bg-dark",i.backgroundColor),a.set("--badge-text-dark",i.textColor),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}case"light":{const l=h.backgroundValue(n,"light","light"),i=h.backgroundValue(n,"light","dark"),s=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg",l.backgroundColor),a.set("--badge-text",l.textColor),a.set("--badge-bg-dark",i.backgroundColor),a.set("--badge-text-dark",i.textColor),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}case"outline":{const l=h.textColorValue(n,"light"),i=h.textColorValue(n,"dark"),s=h.borderColorValue(n,"light"),u=h.borderColorValue(n,"dark"),c=h.hoverBackgroundValue(n,"light","light"),o=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","transparent"),a.set("--badge-text",l),a.set("--badge-bg-dark","transparent"),a.set("--badge-text-dark",i),a.set("--badge-border",s),a.set("--badge-border-dark",u),r(c.backgroundColor,o.backgroundColor,c.textColor,o.textColor);break}case"default":{const l=h.textColorValue(n,"light"),i=h.textColorValue(n,"dark"),s=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","var(--bg-background-light)"),a.set("--badge-text",l),a.set("--badge-bg-dark","var(--bg-background-dark)"),a.set("--badge-text-dark",i),a.set("--badge-border","var(--border-border-light)"),a.set("--badge-border-dark","var(--border-border-dark)"),r(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}case"text":{const l=h.textColorValue(n,"light"),i=h.textColorValue(n,"dark"),s=h.hoverBackgroundValue(n,"light","light"),u=h.hoverBackgroundValue(n,"light","dark");a.set("--badge-bg","transparent"),a.set("--badge-text",l),a.set("--badge-bg-dark","transparent"),a.set("--badge-text-dark",i),a.set("--badge-border","transparent"),a.set("--badge-border-dark","transparent"),r(s.backgroundColor,u.backgroundColor,s.textColor,u.textColor);break}}return Array.from(a.entries()).map(([l,i])=>`${l}: ${i}`).join("; ")}function Rt({variant:t="filled",size:n="md",color:a="base",roundedness:r="full",circle:l=!1,fullWidth:i=!1},...s){return e.html.span(e.attr.class(e.computedOf(n,r,l,i)((u,c,o,d)=>at(u??"md",c??"sm",o??!1,d??!1))),e.attr.style(e.computedOf(t,a)((u,c)=>rt(u??"filled",c??"base"))),e.html.span(e.attr.class("bc-badge__content"),...s))}function Wt({onChange:t,accept:n="*/*",onDragContent:a,content:r,onInvalidSelection:l,disabled:i=!1}){const s=e.prop(!1),u=e.prop([]);let c=null,o=0;const d=p=>p.dataTransfer?.types.includes("Files")??!1,m=(p,V)=>V==="*/*"?!0:V.split(",").map(P=>P.trim()).some(P=>{if(P==="*/*")return!0;if(P.endsWith("/*")){const x=P.slice(0,-2);return p.type.startsWith(x+"/")}return p.type===P||p.name.endsWith(P)}),C=p=>{e.Value.get(i)||d(p)&&(p.preventDefault(),p.stopPropagation(),o++,o===1&&(s.value=!0))},g=p=>{e.Value.get(i)||d(p)&&(p.preventDefault(),p.stopPropagation(),p.dataTransfer!=null&&(p.dataTransfer.dropEffect="copy"))},y=p=>{e.Value.get(i)||d(p)&&(p.preventDefault(),p.stopPropagation(),o--,o===0&&(s.value=!1))},b=p=>{if(e.Value.get(i)||!d(p))return;p.preventDefault(),p.stopPropagation(),o=0,s.value=!1;const V=Array.from(p.dataTransfer?.files??[]);if(V.length>0){const I=e.Value.get(n),P=V.filter(k=>m(k,I)),x=V.filter(k=>!P.includes(k));P.length>0&&(u.value=P,t(P,"dragdrop")),x.length>0&&l?.(V)}};typeof document<"u"&&(document.addEventListener("dragenter",C),document.addEventListener("dragover",g),document.addEventListener("dragleave",y),document.addEventListener("drop",b));const w=()=>{typeof document<"u"&&(document.removeEventListener("dragenter",C),document.removeEventListener("dragover",g),document.removeEventListener("dragleave",y),document.removeEventListener("drop",b)),o=0},v=()=>{c?.click()},f=p=>{const V=p.target,I=Array.from(V.files??[]);I.length>0&&(u.value=I,t(I,"click")),V.value=""};return e.Fragment(e.OnDispose(w),e.html.input(e.attr.type("file"),e.attr.name("bui-page-drop-zone"),e.attr.multiple(!0),e.attr.accept(n),e.style.position("absolute"),e.style.opacity("0"),e.style.pointerEvents("none"),e.style.width("0"),e.style.height("0"),e.on.change(f),e.WithElement(p=>(c=p,e.OnDispose(()=>{c!=null&&(c.value="")})))),a!=null?e.When(s,()=>a({files:u})):null,r!=null?r({isDragging:s,files:u,selectFiles:v}):null)}function Ht(t,n,a,r,l,i){const s=["bc-table"];return t!=="md"&&s.push(`bc-table--size-${t}`),n&&s.push("bc-table--hoverable"),a&&s.push("bc-table--sticky-header"),r&&s.push("bc-table--with-striped-rows"),l&&s.push("bc-table--with-column-borders"),i&&s.push("bc-table--with-row-borders"),s.join(" ")}function jt(t){if(t!=null)return t==="none"?"--table-border-radius: 0":`--table-border-radius: var(--radius-${t})`}function zt({size:t="md",hoverable:n=!1,stickyHeader:a=!1,fullWidth:r=!1,withStripedRows:l=!1,withTableBorder:i=!0,withColumnBorders:s=!1,withRowBorders:u=!0,borderRadius:c}={},...o){const d=e.computedOf(t,n,a,l,s,u)((g,y,b,w,v,f)=>Ht(g??"md",y??!1,b??!1,w??!1,v??!1,f??!0)),m=e.computedOf(a,r,i)((g,y,b)=>{const w=["bc-table-container"];return g&&w.push("bc-table-container--sticky"),y&&w.push("bc-table-container--full-width"),b&&w.push("bc-table-container--with-table-border"),w.join(" ")}),C=e.computedOf(c)(g=>jt(g));return e.html.div(e.attr.class(m),e.attr.style(C),e.html.table(e.attr.class(d),...o))}function Gt(t,n){const a=["bc-tag"];return t!=="md"&&a.push(`bc-tag--${t}`),n&&a.push("bc-tag--disabled"),a.join(" ")}function Zt(t){const n=h.backgroundValue(t,"light","light"),a=h.backgroundValue(t,"light","dark"),r=h.hoverBackgroundValue(t,"light","light"),l=h.hoverBackgroundValue(t,"light","dark");return[`--tag-bg: ${n.backgroundColor}`,`--tag-text: ${n.textColor}`,`--tag-bg-dark: ${a.backgroundColor}`,`--tag-text-dark: ${a.textColor}`,`--tag-bg-hover: ${r.backgroundColor}`,`--tag-text-hover: ${r.textColor}`,`--tag-bg-hover-dark: ${l.backgroundColor}`,`--tag-text-hover-dark: ${l.textColor}`].join("; ")}const Me=({value:t,color:n="base",onClose:a,size:r="md",class:l,disabled:i})=>e.html.span(e.attr.class(e.computedOf(r??"md",i??!1)((s,u)=>Gt(s,u))),e.attr.style(e.computedOf(n)(s=>Zt(s??"base"))),e.attr.class(l),e.html.span(t),a!=null?e.Use(h.BeatUII18n,s=>_.CloseButton({size:"xs",label:s.$.removeItem,color:"white",disabled:i,onClick:()=>a?.(e.Value.get(t))},e.attr.class("bc-tag__close"))):e.Empty);function lt({value:t,onChange:n,disabled:a}){return S.SegmentedInput({size:"sm",value:t,disabled:a,options:{system:e.html.span(e.attr.title("System"),h.Icon({icon:"line-md:laptop",color:"gray"})),light:e.html.span(e.attr.title("Light"),h.Icon({icon:"line-md:sunny-twotone-loop",color:"yellow"})),dark:e.html.span(e.attr.title("Dark"),h.Icon({icon:"line-md:sunny-outline-to-moon-alt-loop-transition",color:"blue"}))},onChange:n})}function Yt(){return e.Use(be.Theme,({appearancePreference:t,setAppearancePreference:n})=>lt({value:t,onChange:n}))}function qt({value:t,onChange:n,onInput:a}){let r=null;return e.html.div(e.attr.class("bc-color-input__swatch-container"),e.html.span(e.attr.class("bc-color-input__swatch"),e.on.click(()=>r?.showPicker()),e.input.color(e.WithElement(l=>(r=l,e.Empty)),e.attr.value(t),e.style.width("4px"),e.style.height("4px"),n!=null?e.on.change(e.emitValue(n)):e.Empty,a!=null?e.on.input(e.emitValue(a)):e.Empty),e.attr.style(e.Value.map(t,l=>`background-color: ${l}`))))}function Jt(t){const{value:n,onBlur:a,onChange:r,onInput:l}=t;return h.InputContainer({...t,input:e.input.text(h.CommonInputAttributes(t),e.attr.value(n),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(r)):e.Empty,l!=null?e.on.input(e.emitValue(l)):e.Empty)},e.attr.class("bc-color-input"),qt({value:n,onChange:t.onChange,onInput:t.onInput}))}function Kt(t){const n={fade:!0,scale:!0};return t.startsWith("top")?(n.slide="down",n.transformOrigin="bottom"):t.startsWith("bottom")?(n.slide="up",n.transformOrigin="top"):t.startsWith("left")?(n.slide="right",n.transformOrigin="right"):t.startsWith("right")&&(n.slide="left",n.transformOrigin="left"),n}function ye(t){const{content:n,placement:a="top",showDelay:r=250,hideDelay:l=500,mainAxisOffset:i=8,crossAxisOffset:s=0,showOn:u="hover-focus",closable:c=!0,arrow:o,role:d,hasPopup:m="dialog"}=t;return J.PopOver((C,g)=>{const y=j.useAnimatedElementToggle({initialStatus:"closed"}),b=_.sessionId("flyout"),w=e.prop(!1);let v=null,f=null,p=!1;function V(){P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),f&&(f(),f=null),v&&(document.removeEventListener("keydown",v),v=null),w.set(!1),p=!1}function I(){e.Value.get(c)&&(v=B=>{B.key==="Escape"&&L()},document.addEventListener("keydown",v)),p=!0,w.set(!0),C({placement:a??"top",mainAxisOffset:i,crossAxisOffset:s,onClickOutside:()=>{e.Value.get(c)&&L()},arrow:o,content:e.WithElement(B=>{y.setElement(B),f=fe.g(()=>{y.open(),f=null});const $=F=>{e.Value.get(c)&&F.key==="Escape"&&(F.preventDefault(),F.stopPropagation(),L(),w.set(!1))};return document.addEventListener("keydown",$,!0),e.Fragment(e.OnDispose(()=>{V(),document.removeEventListener("keydown",$,!0)}),e.attr.class("bc-flyout-container"),e.attr.id(b),e.attr.tabindex(-1),e.html.div(e.attr.class("bc-flyout"),j.AnimatedToggleClass({animation:e.Value.map(a,Kt),status:y.status}),d?e.attr.role(d):e.attr.role("dialog"),n()))})})}let P=null;function x(){if(P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),y.isOpened.value||y.isOpening.value||y.isStartOpening.value)return;if(y.isClosing.value||y.isStartClosing.value){y.open();return}const B=e.Value.get(r);P=setTimeout(()=>{P=null,I()},B)}let k=null;function L(){if(P!=null&&(clearTimeout(P),P=null),k!=null&&(clearTimeout(k),k=null),w.set(!1),f&&(f(),f=null,p)){g(),V();return}const B=e.Value.get(l);k=setTimeout(()=>{k=null,y.close(),y.listenOnClosed(()=>{g(),V()})},B)}return e.WithElement(B=>{const $=()=>{x(),w.set(!0)},F=()=>{L(),w.set(!1)},Y=e.Fragment(e.aria.expanded(w),e.aria.controls(b),e.aria.haspopup(m));if(typeof u=="function")return e.Fragment(Y,u($,F));const M=u;return e.Fragment(Y,e.OneOfValue(M,{"hover-focus":()=>e.Fragment(e.on.mouseenter(()=>$()),e.on.mouseleave(()=>F()),e.on.focus(()=>$()),e.on.blur(()=>F())),hover:()=>e.Fragment(e.on.mouseenter(()=>$()),e.on.mouseleave(()=>F())),focus:()=>e.Fragment(e.on.focus(()=>$()),e.on.blur(()=>F())),click:()=>{function N(){document.removeEventListener("click",W)}function W(){N(),F()}return e.Fragment(e.OnDispose(N),e.on.click(()=>{$(),fe.g(()=>{document.addEventListener("click",W,{once:!0})})}))},never:()=>null}))})})}function Qt(t,n,a,r){const l=["bc-action-card"];return t&&l.push("bc-action-card--active"),n&&l.push("bc-action-card--disabled"),a!=="md"&&l.push(`bc-action-card--${a}`),r&&!n&&l.push("bc-action-card--clickable"),l.join(" ")}function Xt(t,n,a,r){const l=new Map;if(t!=null&&l.set("--action-card-bg",t),n!=null&&l.set("--action-card-border",n),a!=null&&l.set("--action-card-title-color",a),r!=null&&l.set("--action-card-description-color",r),l.size!==0)return Array.from(l.entries()).map(([i,s])=>`${i}: ${s}`).join("; ")}function en({icon:t,title:n,description:a,active:r=!1,disabled:l=!1,onClick:i,size:s="md",iconColor:u="primary",iconSize:c="md",backgroundColor:o,borderColor:d,titleColor:m,descriptionColor:C}){const g=i!=null;return e.html.div(e.attr.class(e.computedOf(r,l,s)((y,b,w)=>Qt(y??!1,b??!1,w??"md",g))),e.attr.style(e.computedOf(o,d,m,C)((y,b,w,v)=>Xt(y,b,w,v))),e.When(g,()=>e.Fragment(e.Unless(l,()=>e.Fragment(e.on.click(()=>i?.()),e.attr.tabindex(0))),e.attr.role("button"))),e.aria.disabled(l),e.html.div(e.attr.class("bc-action-card__icon"),h.Icon({icon:t,size:c,color:u})),e.html.div(e.attr.class("bc-action-card__content"),e.html.div(e.attr.class("bc-action-card__title"),n),e.html.div(e.attr.class("bc-action-card__description"),a)))}const tn=["!=","<=",">=","<",">","="];function nn(t){for(const n of tn)if(typeof t=="string"&&t.startsWith(n))return[n,t.slice(n.length)];return["=",t]}function ot(t,n,a){const[r,l]=nn(n),i=t.findIndex(c=>c[1]===l);if(i===-1)throw new Error(`Breakpoint ${String(l)} not found`);const s=t[i][0],u=i<t.length-1?t[i+1][0]:1/0;switch(r){case"=":return a>=s&&a<u;case"!=":return!(a>=s&&a<u);case"<=":return a<=s;case">=":return a>=s;case"<":return a<s;case">":return a>s;default:return!1}}function an(t,n){const a=t.findIndex(r=>r[0]>n)-1;return a>=0?t[a][1]:(t.length>0&&n>=t[0][0],t[0][1])}function Ue(t,{breakpoints:n,mode:a="viewport"}){const l=[...Object.entries(n).map(([s,u])=>[u,s])].sort((s,u)=>s[0]-u[0]),i=s=>{const u=s.map(({width:o})=>{const d=l.findIndex(m=>m[0]>o)-1;return d>=0?{width:o,breakpoint:l[d][1]}:l.length>0&&o>=l[0][0]?{width:o,breakpoint:l[0][1]}:{width:o,breakpoint:l[0][1]}});return t({value:u,breakpoints:n,asList:l,is:(o,d)=>ot(l,o,d)})};return a==="element"?J.ElementRect(i):J.WindowSize(i)}let Pe=NaN;function rn(t,n){return t?(isNaN(Pe)&&(Pe=parseFloat(getComputedStyle(document.documentElement).fontSize)),parseFloat(t)*Pe):n}function K(t,n,a){return rn(t.getPropertyValue(n),a)}function it(t){return e.WithElement(n=>{const a=getComputedStyle(n),r={zero:0,xs:K(a,"--breakpoint-xs",640),sm:K(a,"--breakpoint-sm",768),md:K(a,"--breakpoint-md",1024),lg:K(a,"--breakpoint-lg",1280),xl:K(a,"--breakpoint-xl",1536)};return Ue(t,{breakpoints:r})})}function ln(t){return e.WithElement(n=>{const a=getComputedStyle(n),r={zero:0,"3xs":K(a,"--container-3xs",256),"2xs":K(a,"--container-2xs",288),xs:K(a,"--container-xs",320),sm:K(a,"--container-sm",384),md:K(a,"--container-md",448),lg:K(a,"--container-lg",512),xl:K(a,"--container-xl",640),"2xl":K(a,"--container-2xl",768),"3xl":K(a,"--container-3xl",1024),"4xl":K(a,"--container-4xl",1280),"5xl":K(a,"--container-5xl",1536),"6xl":K(a,"--container-6xl",2048)};return Ue(t,{breakpoints:r,mode:"element"})})}function ee(t,n){return`bc-panel ${(Array.isArray(t)?t:[t]).map(r=>`bc-panel--side-${r}`).join(" ")} bc-panel--shadow-${n}`}function ie(t){const n=e.Value.toSignal(t).map(r=>h.backgroundValue(r,"lighter","light")),a=e.Value.toSignal(t).map(r=>h.backgroundValue(r,"lighter","dark"));return e.Fragment(e.style.variable("--panel-bg",n.$.backgroundColor),e.style.variable("--panel-text",n.$.textColor),e.style.variable("--panel-bg-dark",a.$.backgroundColor),e.style.variable("--panel-text-dark",a.$.textColor))}const ne={banner:{zero:32,xs:32,sm:32,md:32,lg:32,xl:32},header:{zero:60,xs:60,sm:60,md:60,lg:60,xl:60},mainHeader:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},mainFooter:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},footer:{zero:48,xs:48,sm:48,md:48,lg:48,xl:48},menu:{zero:300,xs:300,sm:300,md:300,lg:300,xl:300},aside:{zero:280,xs:280,sm:280,md:280,lg:280,xl:280}};function Ke(t,n){if(typeof t=="number")return{zero:t,xs:t,sm:t,md:t,lg:t,xl:t};const a={zero:t.zero??n.zero,xs:t.xs??n.xs,sm:t.sm??n.sm,md:t.md??n.md,lg:t.lg??n.lg,xl:t.xl??n.xl};return a.xs<a.zero&&(a.xs=a.zero),a.sm<a.xs&&(a.sm=a.xs),a.md<a.sm&&(a.md=a.sm),a.lg<a.md&&(a.lg=a.md),a.xl<a.lg&&(a.xl=a.lg),a}function De(t){t=t.filter(n=>n.some(a=>a!=null&&!a.startsWith("?")));for(let n=0;n<t[0].length;n++)t.every(a=>a[n]==null||a[n].startsWith("?"))&&(t=t.map(a=>a.filter((r,l)=>l!==n)),n--);return t=t.map(n=>n.map(a=>a?.startsWith("?")?a.slice(1):a)),t}function on({smallBreakpoint:t,mediumBreakpoint:n,vertical:a,horizontal:r,is:l}){function i(c){let o=[[null],[null],[null],[null],[null],[null]];const d=[];d.push("1fr");const m=[];return r.banner&&(m.push(r.banner[c]+"px"),o[0][1]="banner"),(r.header||a.menu||a.aside)&&(m.push((r.header?.[c]??ne.header[c])+"px"),o[1][1]="header"),r.mainHeader&&(m.push(r.mainHeader[c]+"px"),o[2][1]="mainHeader"),m.push("1fr"),o[3][1]="main",r.mainFooter&&(m.push(r.mainFooter[c]+"px"),o[4][1]="mainFooter"),r.footer&&(m.push(r.footer[c]+"px"),o[5][1]="footer"),o=De(o),{columns:d.join(" "),rows:m.join(" "),areas:o.map(g=>`"${g.join(" ")}"`).join(`
|
|
2
|
+
`),displayMenu:!1,displayAside:!1,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}function s(c){let o=[[null,null],[null,null],[null,null],[null,null],[null,null],[null,null]];const d=[];a.menu&&(d.push(a.menu[c]+"px"),o[2][0]="?menu",o[3][0]="menu",o[4][0]="?menu"),d.push("1fr");const m=[];return r.banner&&(m.push(r.banner[c]+"px"),o[0][0]="?banner",o[0][1]="banner"),(r.header||a.aside)&&(m.push((r.header?.[c]??ne.header[c])+"px"),o[1][0]="?header",o[1][1]="header"),r.mainHeader&&(m.push(r.mainHeader[c]+"px"),o[2][1]="mainHeader"),m.push("1fr"),o[3][1]="main",r.mainFooter&&(m.push(r.mainFooter[c]+"px"),o[4][1]="mainFooter"),r.footer&&(m.push(r.footer[c]+"px"),o[5][0]="?footer",o[5][1]="footer"),o=De(o),{columns:d.join(" "),rows:m.join(" "),areas:o.map(g=>`"${g.join(" ")}"`).join(`
|
|
3
|
+
`),displayMenu:!0,displayAside:!1,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}function u(c){let o=[[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null],[null,null,null]];const d=[];a.menu&&(d.push(a.menu[c]+"px"),o[2][0]="?menu",o[3][0]="menu",o[4][0]="?menu"),d.push("1fr"),a.aside&&(d.push(a.aside[c]+"px"),o[2][2]="?aside",o[3][2]="aside",o[4][2]="?aside");const m=[];return r.banner&&(m.push(r.banner[c]+"px"),o[0][0]="?banner",o[0][1]="banner",o[0][2]="?banner"),r.header&&(m.push(r.header[c]+"px"),o[1][0]="?header",o[1][1]="header",o[1][2]="?header"),r.mainHeader&&(m.push(r.mainHeader[c]+"px"),o[2][1]="mainHeader"),m.push("1fr"),o[3][1]="main",r.mainFooter&&(m.push(r.mainFooter[c]+"px"),o[4][1]="mainFooter"),r.footer&&(m.push(r.footer[c]+"px"),o[5][0]="?footer",o[5][1]="footer",o[5][2]="?footer"),o=De(o),{columns:d.join(" "),rows:m.join(" "),areas:o.map(g=>`"${g.join(" ")}"`).join(`
|
|
4
|
+
`),displayMenu:!0,displayAside:!0,menuWidth:ne.menu[c]+"px",asideWidth:ne.aside[c]+"px"}}return({width:c,breakpoint:o})=>l(`<=${t}`,c)?i(o):l(`<=${n}`,c)?s(o):u(o)}const sn=["menu","aside"],un=["banner","header","mainHeader","mainFooter","footer"];function cn(t,{displayMenu:n},a){return t?n?"block":a?"float":"none":"none"}function dn(t,{displayAside:n},a){return t?n?"block":a?"float":"none":"none"}function pn({smallBreakpoint:t="sm",mediumBreakpoint:n="md",...a}){const r=Object.fromEntries(sn.filter(i=>a[i]).map(i=>[i,Ke(a[i].width??{},ne[i])])),l=Object.fromEntries(un.filter(i=>a[i]).map(i=>[i,Ke(a[i].height??{},ne[i])]));return e.Use(h.BeatUII18n,i=>it(({value:s,is:u})=>{const c=on({smallBreakpoint:t,mediumBreakpoint:n,vertical:r,horizontal:l,is:u}),o=s.map(c),d=l.header!=null||r.menu!=null||r.aside!=null,m=e.computedOf(r.aside!=null,o)((f,{displayAside:p})=>f&&!p),C=e.computedOf(r.menu!=null,o)((f,{displayMenu:p})=>f&&!p),g=j.useAnimatedElementToggle(),y=j.useAnimatedElementToggle(),b=e.prop(0),w=e.computedOf(r.menu!=null,o,g.display)(cn),v=e.computedOf(r.aside!=null,o,y.display)(dn);return e.html.div(e.style.display("grid"),e.style.height("100%"),e.style.width("100%"),e.style.gridTemplateColumns(o.$.columns),e.style.gridTemplateRows(o.$.rows),e.style.gridTemplateAreas(o.$.areas),e.style.gridColumnGap("0"),e.style.gridRowGap("0"),a.banner?e.html.header(e.attr.class(ee("none",a.banner.shadow??"none")),ie(a.banner.color??"white"),e.style.height("100%"),e.style.gridArea("banner"),a.banner.content):null,e.html.header(e.attr.class(ee("bottom",a.header?.shadow??"none")),ie(a.header?.color??"white"),e.style.zIndex("20"),e.style.display(d?"block":"none"),e.style.gridArea("header"),J.ElementRect(f=>(f.$.bottom.feedProp(b),null)),e.html.div(e.style.display("flex"),e.style.height("100%"),e.html.div(e.style.display(C.map(f=>f?"flex":"none")),e.style.alignItems("center"),e.style.justifyContent("center"),e.style.height("100%"),e.style.width("60px"),h.Button({onClick:()=>g.toggle(),variant:"light",color:"base"},e.aria.label(i.$.toggleMenu),h.Icon({icon:g.display.map(f=>f?"line-md/menu-to-close-alt-transition":"line-md/close-to-menu-alt-transition")}))),e.html.div(e.style.height("100%"),e.style.flexGrow("1"),a.header?.content),e.html.div(e.style.alignItems("center"),e.style.justifyContent("center"),e.style.height("100%"),e.style.width("60px"),e.style.display(m.map(f=>f?"flex":"none")),h.Button({onClick:()=>y.toggle(),roundedness:"full",variant:"light",color:"base"},e.aria.label(i.$.toggleAside),h.Icon({icon:"line-md/chevron-left"},e.attr.style("transition: transform 0.2s ease-in-out"),e.attr.style(y.display.map(f=>`transform: rotate(${f?180:0}deg)`))))))),a.menu?e.html.nav(e.WithElement(f=>g.setElement(f)),e.style.zIndex("10"),e.aria.label(i.$.mainNavigation),e.attr.role("navigation"),e.style.overflow("hidden"),e.attr.class(w.map(f=>f==="float"?ee("right",a.menu?.shadow??"md"):ee("right",a.menu?.shadow??"none"))),ie(a.menu?.color??"white"),e.style.height(w.map(f=>f==="float"?"auto":"100%")),e.style.overflow("hidden"),e.style.gridArea("menu"),e.style.display(e.computedOf(w,g.status)((f,p)=>f==="none"&&p==="closed"?"none":"block")),e.style.position(e.computedOf(w,g.status)((f,p)=>f==="float"||f==="none"&&p!=="closed"?"fixed":"initial")),e.style.top(b.map(f=>`${f}px`)),j.AnimatedToggleClass({animation:{slide:"right"},status:e.computedOf(w,g.status)((f,p)=>f==="block"?"opened":p)}),e.style.width(e.coalesce(a.menu?.width,o.$.menuWidth)),e.style.bottom("0"),a.menu?.content):null,a.mainHeader?e.html.header(e.style.height("100%"),e.style.gridArea("mainHeader"),e.attr.class(ee("none",a.mainHeader?.shadow??"none")),ie(a.mainHeader?.color??"white"),a.mainHeader.content):null,e.html.main(e.style.height("100%"),e.style.overflow("hidden"),e.style.gridArea("main"),e.attr.class(ee("none",a.main?.shadow??"none")),ie(a.main?.color??"white"),a.main.content),a.mainFooter?e.html.footer(e.style.height("100%"),e.style.gridArea("mainFooter"),e.attr.class(ee("none",a.mainFooter?.shadow??"none")),ie(a.mainFooter?.color??"white"),a.mainFooter.content):null,a.aside?e.html.aside(e.WithElement(f=>{y.setElement(f)}),e.style.zIndex("10"),e.aria.label(i.$.sidebar),e.attr.role("complementary"),e.attr.class(v.map(f=>f==="float"?ee("left","md"):ee("left","none"))),ie("white"),e.style.height("100%"),e.style.gridArea("aside"),e.style.display(e.computedOf(v,y.status)((f,p)=>f==="none"&&p==="closed"?"none":"block")),e.style.position(e.computedOf(v,y.status)((f,p)=>f==="float"||f==="none"&&p!=="closed"?"fixed":"initial")),e.style.top(b.map(f=>`${f}px`)),j.AnimatedToggleClass({animation:{slide:"left"},status:e.computedOf(v,y.status)((f,p)=>f==="block"?"opened":p)}),e.style.width(e.coalesce(a.aside?.width,o.$.asideWidth)),e.style.bottom(b.map(f=>`${f}px`)),a.aside.content):null,a.footer?e.html.footer(e.attr.class(ee("top","none")),ie("white"),e.style.height("100%"),e.style.gridArea("footer"),a.footer.content):null)}))}function mn(...t){return e.html.div(e.attr.class("bc-center-h"),e.html.div(e.attr.class("bc-center__content"),...t))}function fn(t){const n=["bc-center"];return t!=="lg"&&n.push(`bc-center--gap-${t}`),n.join(" ")}function gn({gap:t="lg"}={},...n){return e.html.div(e.attr.class(e.computedOf(t)(a=>fn(a??"lg"))),...n)}function st({open:t},...n){return e.WithElement(a=>{const{status:r,setOpen:l,dispose:i}=j.useAnimatedElementToggle({initialStatus:e.Value.get(t)?"opened":"closed",element:a});return e.Value.on(t,l),J.ElementRect(s=>{const u=e.prop(null);return e.computedOf(r,s.$.height)((o,d)=>o==="opened"&&d>0?d:null).on(o=>{o!=null&&u.set(o)}),r.on(o=>{if(a&&o==="start-opening"){const d=a.style.height,m=a.style.transition;a.style.transition="none",a.style.height="auto",a.offsetHeight;const C=a.scrollHeight;C>0&&u.set(C),a.style.height=d,a.style.transition=m,a.offsetHeight}}),e.Fragment(e.OnDispose(i),e.attr.style(u.map(o=>`--collapse-height: ${o!=null?`${o}px`:"auto"}`)),e.attr.class(r.map(o=>`bc-collapse bc-collapse--${o}`)),...n)})})}function bn(t){return`${t}px`}function Qe(t){return e.Value.map(t,bn)}function hn({body:t,contentWidth:n,contentHeight:a,header:r,headerHeight:l=0,topStart:i,topEnd:s,footer:u,footerHeight:c=0,bottomStart:o,bottomEnd:d,sidebarStart:m,sidebarStartWidth:C=0,sidebarEnd:g,sidebarEndWidth:y=0,anchorMode:b="container-edge"}){const w=e.prop(0n),v=e.prop(0n),f=Qe(l),p=Qe(C),V=e.prop(16);return e.html.div(e.attr.class("bc-nine-slice-container"),J.ElementRect(I=>{const P=e.computedOf(I.$.width,C,y)((D,A,Z)=>D-A-Z),x=e.computedOf(I.$.height,l,c)((D,A,Z)=>D-A-Z),k=e.computedOf(n,P)((D,A)=>D>BigInt(A)),L=e.computedOf(a,x)((D,A)=>D>BigInt(A)),B=e.computedOf(P,L,V)((D,A,Z)=>A?D-Z:D),$=e.computedOf(x,k,V)((D,A,Z)=>A?D-Z:D),F=e.computedOf(n,B)((D,A)=>Number(D/BigInt(Math.max(1,A)))),Y=e.computedOf(a,$)((D,A)=>Number(D/BigInt(Math.max(1,A)))),M=e.Value.map(b,D=>D==="body-end"||D==="body-end-bottom"),N=e.When(M,()=>e.style.left(e.computedOf(C,n,B,y)((D,A,Z,O)=>{const E=D+Number(A),U=D+Z,G=Math.min(E,U);return`${Math.max(D+O,G)}px`})),()=>e.style.right("0")),W=e.Value.map(b,D=>D==="body-bottom"||D==="body-end-bottom"),Q=e.When(W,()=>e.style.top(e.computedOf(l,a,$,c)((D,A,Z,O)=>{const E=D+Number(A),U=D+Z,G=Math.min(E,U);return`${Math.max(D+O,G)}px`})),()=>e.style.bottom("0")),se=e.computedOf(L,V)((D,A)=>D?`${A}px`:"0"),z=e.computedOf(k,V)((D,A)=>D?`${A}px`:"0"),X=e.style.transform(e.computedOf(v,w,k,L)((D,A,Z,O)=>{const E=Z?`translateX(-${D}px)`:"",U=O?`translateY(-${A}px)`:"";return`${E} ${U}`.trim()||"none"})),re=e.style.transform(v.map(D=>`translateX(-${D}px)`)),le=e.style.transform(w.map(D=>`translateY(-${D}px)`)),pe=e.computedOf(a,$)((D,A)=>D-BigInt(Math.max(1,A))),me=e.computedOf(n,B)((D,A)=>D-BigInt(Math.max(1,A)));let R=null,ue=0,ce=0;const xe=()=>{const D=pe.value,A=me.value,Z=L.value,O=k.value;if(Z&&ce!==0){const E=Je(ve(0n,D),ve(0n,w.value+BigInt(Math.round(ce))));w.set(E)}if(O&&ue!==0){const E=Je(ve(0n,A),ve(0n,v.value+BigInt(Math.round(ue))));v.set(E)}ue=0,ce=0,R=null};return k.on(D=>{D||v.set(0n)}),L.on(D=>{D||w.set(0n)}),e.Fragment(e.OnDispose(()=>{R&&clearTimeout(R)}),e.on.wheel(D=>{D.preventDefault();const{deltaX:A,deltaY:Z}=D;ue+=A,ce+=Z,R||(R=setTimeout(xe,16))}),e.html.div(e.attr.class("bc-nine-slice-pane-container"),e.style.right(se),e.style.bottom(z),i!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-top-start"),e.style.top("0"),e.style.left("0"),i):null,r!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-header"),e.style.top("0"),e.style.left(p),e.html.div(e.attr.class("bc-nine-slice-pane-content"),re,r)):null,s!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-top-end"),e.style.top("0"),N,s):null,m!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-sidebar-start"),e.style.left("0"),e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),le,m)):null,e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-body"),e.style.left(p),e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),X,t)),g!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-sidebar-end"),N,e.style.top(f),e.html.div(e.attr.class("bc-nine-slice-pane-content"),le,g)):null,o!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-bottom-start"),e.style.left("0"),Q,o):null,u!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-footer"),e.style.left(p),Q,e.html.div(e.attr.class("bc-nine-slice-pane-content"),re,u)):null,d!=null?e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-bottom-end"),N,Q,d):null),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar"),e.style.overflowX("scroll"),e.style.left("0"),e.style.right(e.computedOf(L,V)((D,A)=>D?`${A}px`:"0")),e.style.bottom("0"),e.style.height(k.map(D=>D?"16px":"0")),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-horizontal-scrollbar-thumb"),e.style.width(F.map(D=>`${100/Math.max(1,D)}%`)),e.style.height("100%"),e.style.backgroundColor("#ff000066")),e.on.scroll(D=>{const A=D.target,Z=A.scrollLeft,O=A.scrollWidth-A.clientWidth;if(O>0){const E=Z/O,U=me.value;v.set(BigInt(Math.round(Number(U)*E)))}})),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar"),e.style.overflowY("scroll"),e.style.top("0"),e.style.bottom(e.computedOf(k,V)((D,A)=>D?`${A}px`:"0")),e.style.right("0"),e.style.width(L.map(D=>D?"16px":"0")),e.html.div(e.attr.class("bc-nine-slice-pane bc-nine-slice-vertical-scrollbar-thumb"),e.style.width("100%"),e.style.height(e.computedOf(l,c,a,Y)((D,A,Z,O)=>`${100/Math.max(1,O)}%`)),e.style.backgroundColor("#ff000066")),e.on.scroll(D=>{const A=D.target,Z=A.scrollTop,O=A.scrollHeight-A.clientHeight;if(O>0){const E=Z/O,U=pe.value;w.set(BigInt(Math.round(Number(U)*E)))}})))}))}function Ee({header:t,footer:n,body:a,shadowOnScroll:r=!0},...l){const i=e.prop("none");function s(c){const o=c.scrollTop===0,d=c.scrollTop+c.clientHeight>=c.scrollHeight-1;o&&d?i.set("none"):o?i.set("bottom"):d?i.set("top"):i.set("both")}return e.html.div(e.attr.class("bc-scrollable-panel"),e.attr.class(e.computedOf(i,r)((c,o)=>{if(!o)return"";switch(c){case"both":return"bc-scrollable-panel--scrolled-up bc-scrollable-panel--scrolled-down";case"bottom":return"bc-scrollable-panel--scrolled-up";case"top":return"bc-scrollable-panel--scrolled-down";default:return""}})),t&&e.html.div(e.attr.class("bc-scrollable-panel__header"),t),e.html.div(e.attr.class("bc-scrollable-panel--header-shadow"),e.html.div()),e.html.div(e.attr.class("bc-scrollable-panel__body"),e.WithElement(c=>e.OnDispose(fe.g(()=>s(c)))),e.on.scroll(c=>{const o=c.target;s(o)}),a),e.html.div(e.attr.class("bc-scrollable-panel--footer-shadow"),e.html.div()),n&&e.html.div(e.attr.class("bc-scrollable-panel__footer"),n),...l)}function yn(t,n,a){const r=["bc-sink"];return t!=="default"&&r.push(`bc-sink--${t}`),n!=="md"&&r.push(`bc-sink--padding-${n}`),a!=="lg"&&r.push(`bc-sink--rounded-${a}`),r.join(" ")}function vn({variant:t="default",size:n="md",roundedness:a="lg"}={},...r){return e.html.div(e.attr.class(e.computedOf(t,n,a)((l,i,s)=>yn(l??"default",i??"md",s??"lg"))),...r)}const ae={value:(t,n,{disabled:a,before:r,after:l}={})=>({type:"value",value:t,label:n,disabled:a,before:r,after:l}),group:(t,n,{disabled:a,before:r,after:l}={})=>({type:"group",group:t,options:n,disabled:a,before:r,after:l}),break:{type:"break"},getValues:t=>t.flatMap(n=>n.type==="group"?ae.getValues(n.options):n.type==="break"?[]:[n.value]),contains:(t,n,a=(r,l)=>r===l)=>ae.getValues(t).some(r=>a(r,n))},Re=t=>{const{onChange:n,onBlur:a,role:r,display:l,optionsSource:i,allowSpaceToggle:s=!1,onBeforeOpen:u,onAfterOpen:c,buildListboxContent:o}=t,d=e.prop(!1),m=e.prop(-1),C=e.prop(null),g=_.sessionId("dropdown"),y=_.sessionId("listbox");let b,w;const v=p=>{n?.(p),d.set(!1),m.set(-1),C.set(null),b?.focus()},f=p=>{const V=ae.getValues(e.Value.get(i));switch(p.key){case"ArrowDown":{if(p.preventDefault(),!d.value)d.set(!0),V.length>0&&(m.set(0),C.set(V[0]));else{const I=Math.min(m.value+1,V.length-1);m.set(I),C.set(V[I]??null)}break}case"ArrowUp":{if(p.preventDefault(),d.value){const I=Math.max(m.value-1,0);m.set(I),C.set(V[I]??null)}break}case"Enter":{if(p.preventDefault(),d.value&&m.value>=0){const I=V[m.value];I!=null&&v(I)}else{u?.();const I=ae.getValues(e.Value.get(i));d.set(!0),I.length>0&&(m.set(0),C.set(I[0])),setTimeout(()=>c?.(),0)}break}case"Escape":{d.value&&(p.preventDefault(),d.set(!1),m.set(-1),C.set(null),b?.focus());break}case" ":{if(e.Value.get(s)){p.preventDefault();const I=ae.getValues(e.Value.get(i));d.set(!d.value),d.value&&I.length>0&&(m.set(0),C.set(I[0]))}break}}};return h.InputContainer({...t,input:S.Group(e.attr.class("bc-dropdown__trigger"),e.html.span(e.attr.class("bc-dropdown__display"),l),h.Icon({icon:"ph:caret-up-down-bold",color:"neutral"},e.attr.class("bc-dropdown__arrow")))},J.ElementRect(p=>e.Fragment(e.WithElement(V=>(b=V,V.addEventListener("keydown",f),e.OnDispose(()=>V.removeEventListener("keydown",f)))),h.CommonInputAttributes(t),e.attr.id(g),e.attr.tabindex(0),e.aria.controls(y),e.aria.expanded(d),e.attr.class("bc-dropdown"),e.attr.role(r),e.aria.activedescendant(e.computedOf(d,C)((V,I)=>V&&I!=null?`dropdown-option-${String(I)}`:"")),a!=null?e.on.blur(()=>{setTimeout(()=>{w?.contains(document.activeElement)||(d.set(!1),m.set(-1),a())},100)}):e.Empty,ye({content:()=>e.html.div(e.WithElement(V=>{w=V}),e.style.minWidth(p.$.width.map(V=>`${V-10}px`)),e.attr.class("bc-dropdown__listbox"),e.attr.role("listbox"),e.attr.id(y),e.aria.labelledby(g),o({dropdownId:g,listboxId:y,focusedValue:C,handleKeyDown:f,onSelect:v})),mainAxisOffset:0,placement:"bottom-start",hasPopup:"listbox",showOn:(V,I)=>{const P=I;I=()=>{d.set(!1),m.set(-1),C.set(null),P()};const x=()=>{if(d.value)I();else{u?.();const k=ae.getValues(e.Value.get(i));d.set(!0),k.length>0&&(m.set(0),C.set(k[0])),V(),setTimeout(()=>c?.(),0)}};return e.on.click(x)},showDelay:0,hideDelay:0,closable:!0}))))},ut=(t,n,a,r,l)=>e.Ensure(t,i=>e.OneOfType(i,{value:s=>{const u=e.computedOf(s,a)((o,d)=>n(o.value,d)),c=e.computedOf(s,l)((o,d)=>d!=null&&n(o.value,d));return e.html.div(e.attr.class("bc-dropdown__option"),e.attr.class(e.computedOf(u,c,s)((o,d,m)=>{const C=[];return o&&C.push("bc-dropdown__option--selected"),d&&C.push("bc-dropdown__option--focused"),m.disabled&&C.push("bc-dropdown__option--disabled"),C.join(" ")})),e.attr.role("option"),e.attr.id(s.map(o=>`dropdown-option-${String(o.value)}`)),e.aria.selected(u),S.Expando("value",s.$.value),e.When(s.map(o=>!o.disabled),()=>e.on.click(()=>r(s.value.value)),()=>e.Empty),e.html.div(e.attr.class("bc-dropdown__option-content"),s.value.before&&e.html.span(e.attr.class("bc-dropdown__option-before"),s.value.before),e.html.span(e.attr.class("bc-dropdown__option-label"),s.$.label),s.value.after&&e.html.span(e.attr.class("bc-dropdown__option-after"),s.value.after)))},group:s=>e.html.div(e.attr.class("bc-dropdown__group"),e.attr.role("group"),e.aria.label(s.$.group),e.html.div(e.attr.class("bc-dropdown__group-label"),s.$.group),e.ForEach(s.$.options,u=>ut(u,n,a,r,l))),break:()=>e.html.hr(e.attr.class("bc-dropdown__separator"))})),ct=t=>{const{value:n,options:a,unselectedLabel:r,equality:l=(o,d)=>o===d,placeholder:i,searchable:s=!1}=t,u=e.computedOf(n,a)((o,d)=>{if(o==null)return"";const m=C=>{for(const g of C){if(g.type==="value"&&l(g.value,o))return g.label;if(g.type==="group"){const y=m(g.options);if(y)return y}}};return m(d)||String(o)}),c=e.computedOf(s)(o=>!o);return Re({...t,role:"dropdown",display:e.When(u.map(o=>o.length>0),()=>u,()=>e.Use(h.BeatUII18n,o=>e.coalesce(i,r,o.$.selectOne))),optionsSource:a,allowSpaceToggle:c,buildListboxContent:({focusedValue:o,onSelect:d})=>e.ForEach(a,m=>ut(m,l,n,d,o))})},dt=t=>{const{controller:n,onChange:a,onBlur:r,...l}=t;return ct({...l,value:n.signal,onChange:_.makeOnChangeHandler(n,a),onBlur:_.makeOnBlurHandler(n,r)})},wn=t=>_.InputWrapper({...t,content:dt(t)}),pt=(t,n,a,r,l,i)=>e.Ensure(t,s=>e.OneOfType(s,{value:u=>{const c=e.computedOf(u,a)((d,m)=>n(d.value,m)),o=e.computedOf(u,l)((d,m)=>m!=null&&n(d.value,m));return e.html.div(e.attr.class("bc-dropdown__option"),e.attr.class(e.computedOf(c,o,u)((d,m,C)=>{const g=[];return d&&g.push("bc-dropdown__option--selected"),m&&g.push("bc-dropdown__option--focused"),C.disabled&&g.push("bc-dropdown__option--disabled"),g.join(" ")})),e.attr.role("option"),e.attr.id(u.map(d=>`dropdown-option-${String(d.value)}`)),e.aria.selected(c),e.When(u.map(d=>!d.disabled),()=>e.on.click(()=>r(u.value.value)),()=>e.Empty),e.html.div(e.attr.class("bc-dropdown__option-content"),u.value.before&&e.html.span(e.attr.class("bc-dropdown__option-before"),u.value.before),e.html.span(e.attr.class("bc-dropdown__option-label"),i(u.$.value)),u.value.after&&e.html.span(e.attr.class("bc-dropdown__option-after"),u.value.after)))},group:u=>e.html.div(e.attr.class("bc-dropdown__group"),e.attr.role("group"),e.aria.label(u.$.group),e.html.div(e.attr.class("bc-dropdown__group-label"),u.$.group),e.ForEach(u.$.options,c=>pt(c,n,a,r,l,i))),break:()=>e.html.hr(e.attr.class("bc-dropdown__separator"))})),mt=t=>{const{value:n,loadOptions:a,renderOption:r,renderValue:l,equality:i=(f,p)=>f===p,placeholder:s,searchPlaceholder:u,debounceMs:c=150}=t,o=e.prop(""),d=e.prop(!1),m=e.prop([]);let C;const g=e.Value.toSignal(n),y=()=>(l??r)(g);let b=null;const w=f=>{d.set(!0),Promise.resolve(a(f)).then(p=>{m.set(p??[])}).catch(()=>{m.set([])}).finally(()=>d.set(!1))},v=f=>{b!=null&&(clearTimeout(b),b=null),b=setTimeout(()=>{w(f)},Math.max(0,c))};return Re({...t,role:"combobox",display:e.When(e.computedOf(n)(f=>f!=null),y,()=>e.Use(h.BeatUII18n,f=>f.$.selectOne)),optionsSource:m,onBeforeOpen:()=>{const f=e.Value.get(o);v(f)},onAfterOpen:()=>{C?.focus()},buildListboxContent:({focusedValue:f,handleKeyDown:p,onSelect:V})=>e.Fragment(e.html.div(e.attr.class("bc-dropdown__search"),e.html.input(e.attr.type("text"),e.attr.class("bc-dropdown__search-input"),e.attr.placeholder(e.computedOf(u,s)((I,P)=>I??P??"Search")),e.attr.value(o),e.WithElement(I=>(C=I,e.Empty)),e.on.input(I=>{const P=I.target;o.set(P.value),v(P.value)}),e.on.keydown(p))),e.When(d,()=>e.html.div(e.attr.class("bc-dropdown__loading"),h.Icon({icon:"ph:spinner-bold",color:"neutral"})),()=>e.ForEach(m,I=>pt(I,i,g,V,f,r))))})},ft=t=>{const{controller:n,onChange:a,onBlur:r,...l}=t;return mt({...l,value:n.signal,onChange:_.makeOnChangeHandler(n,a),onBlur:_.makeOnBlurHandler(n,r)})},Cn=t=>_.InputWrapper({...t,content:ft(t)});function We(t){const{items:n,placement:a="bottom-start",showDelay:r=0,hideDelay:l=100,mainAxisOffset:i=4,crossAxisOffset:s=0,showOn:u="click",closable:c=!0,onClose:o,onAction:d,ariaLabel:m,ariaLabelledBy:C}=t,g=_.sessionId("menu"),y=e.prop(-1),b=e.prop([]);let w=null;return e.Fragment(ye({content:()=>e.WithElement(v=>{w=document.activeElement;const f=(x,k,L)=>{if(k.length===0)return-1;let B=x+L,$=0;for(;$<k.length;){B>=k.length&&(B=0),B<0&&(B=k.length-1);const F=k[B];if(F&&F.getAttribute("aria-disabled")!=="true")return B;B+=L,$++}return x},p=x=>{const k=b.value,L=y.value;switch(x.key){case"ArrowDown":x.preventDefault(),x.stopPropagation();const B=f(L,k,1);V(B,k);break;case"ArrowUp":x.preventDefault(),x.stopPropagation();const $=f(L,k,-1);V($,k);break;case"Enter":case" ":if(x.preventDefault(),x.stopPropagation(),L>=0&&k[L]){const F=k[L];if(F.getAttribute("aria-disabled")==="true")return;const Y=F.getAttribute("data-key");Y&&d&&d(Y),F.click(),o?.()}break;case"Escape":o?.();break;case"Home":x.preventDefault(),x.stopPropagation(),k.length>0&&V(0,k);break;case"End":x.preventDefault(),x.stopPropagation(),k.length>0&&V(k.length-1,k);break;case"ArrowRight":if(x.preventDefault(),x.stopPropagation(),L>=0&&k[L]){const F=k[L];F.classList.contains("bc-menu-item--has-submenu")&&F.dispatchEvent(new Event("mouseenter"))}break;case"ArrowLeft":x.preventDefault(),x.stopPropagation(),o?.();break}},V=(x,k)=>{y.value>=0&&k[y.value]&&(k[y.value].classList.remove("bc-menu-item--focused"),k[y.value].removeAttribute("aria-selected")),x>=0&&k[x]&&(k[x].classList.add("bc-menu-item--focused"),k[x].setAttribute("aria-selected","true"),y.set(x),typeof k[x].scrollIntoView=="function"&&k[x].scrollIntoView({block:"nearest"}))},I=()=>{const x=Array.from(v.querySelectorAll('[role="menuitem"]'));if(b.set(x),x.length>0){const k=x.findIndex(L=>L.getAttribute("aria-disabled")!=="true");k>=0&&V(k,x)}},P=new MutationObserver(I);return P.observe(v,{childList:!0,subtree:!0}),setTimeout(()=>{I(),v.focus()},0),document.addEventListener("keydown",p,!0),e.Fragment(e.OnDispose(()=>{P.disconnect(),document.removeEventListener("keydown",p,!0),w&&w.focus()}),e.attr.class("bc-menu"),e.attr.id(g),e.attr.role("menu"),e.attr.tabindex(-1),e.aria.orientation("vertical"),m?e.aria.label(m):e.Fragment(),C?e.aria.labelledby(C):e.Fragment(),e.aria.activedescendant(y.map(x=>{const k=b.value;return x>=0&&k[x]?k[x].id||`${g}-item-${x}`:""})),e.on.click(x=>{const L=x.target.closest('[role="menuitem"]');if(L&&L.getAttribute("aria-disabled")!=="true"){const B=L.getAttribute("data-key");B&&d&&d(B)}}),e.html.div(e.attr.class("sr-only"),e.aria.live("polite"),e.aria.atomic(!0),y.map(x=>{const k=b.value;if(x>=0&&k[x]){const L=k[x].textContent||"";return k[x].getAttribute("aria-disabled")==="true"?`${L}, disabled`:`${L}, ${x+1} of ${k.length}`}return""})),...n())}),placement:a,showDelay:r,hideDelay:l,mainAxisOffset:i,crossAxisOffset:s,showOn:u,closable:c,role:"menu"}))}function Sn(t){const{key:n,content:a,startContent:r,endContent:l,disabled:i=!1,onClick:s,ariaLabel:u,submenu:c,submenuPlacement:o="right-start"}=t,d=n??_.sessionId("menu-item"),m=`menu-item-${d}`,C=c!=null;return e.html.div(e.attr.class(e.computedOf(i)(g=>`bc-menu-item ${g?"bc-menu-item--disabled":""} ${C?"bc-menu-item--has-submenu":""}`)),e.attr.id(m),e.attr.role("menuitem"),e.attr.tabindex(-1),e.dataAttr.key(d),e.aria.disabled(i),e.aria.selected(!1),C?e.aria.expanded(!1):e.Fragment(),u?e.aria.label(u):e.Fragment(),e.on.click(g=>{if(e.Value.get(i)){g.preventDefault(),g.stopPropagation();return}s?.()}),r&&e.html.span(e.attr.class("bc-menu-item__start"),r),e.html.span(e.attr.class("bc-menu-item__content"),a),l&&e.html.span(e.attr.class("bc-menu-item__end"),l),C&&c?ye({content:()=>e.Fragment(e.attr.class("bc-menu bc-submenu"),e.attr.role("menu"),...c()),placement:o,showOn:"hover",hasPopup:"menu",showDelay:100,hideDelay:300,mainAxisOffset:0,crossAxisOffset:0,role:"menu"}):e.Fragment())}function He(t={}){const{label:n}=t;return e.html.div(e.attr.class("bc-menu-separator"),e.attr.role("separator"),e.aria.orientation("horizontal"),n&&e.html.span(e.attr.class("bc-menu-separator__label"),n))}function gt(t,n,a){return t.some(l=>a(l,n))?t.filter(l=>!a(l,n)):[...t,n]}function bt(t,n,a){return t.filter(r=>!a(r,n))}function ht(t,n,a){return t.some(r=>a(r,n))}function yt(t,n,a){for(const r of t)if(r.type==="value"){if(a(r.value,n))return{label:r.label}}else if(r.type==="group"){const l=yt(r.options,n,a);if(l!=null)return l}}function Vn(t,n,a){return yt(t,n,a)?.label??String(n)}function vt(t,n,a){const r=n.trim().toLowerCase(),l=a??((s,u)=>u.label.toLowerCase().includes(s));if(r==="")return t;const i=[];for(const s of t)if(s.type==="value")l(r,{label:s.label})&&i.push(s);else if(s.type==="group"){const u=vt(s.options,r,l);u.length>0&&i.push({...s,options:u})}return i}function je(t){const{values:n,options:a,equality:r,disabled:l,onRemove:i}=t;return e.NotEmpty(n,()=>e.ForEach(n,s=>Me({value:e.computedOf(s,a)((u,c)=>Vn(c,u,r)),onClose:()=>i(s.value),disabled:l})),()=>e.html.span(e.attr.class("bc-input-container__placeholder"),t.placeholder))}function ze(t){const{value:n,options:a,equality:r=(o,d)=>o===d,placeholder:l}=t,i=o=>{const d=e.Value.get(n);t.onChange?.(bt(d,o,r))},s=o=>{const d=e.Value.get(n);t.onChange?.(gt(d,o,r))},u=o=>e.computedOf(n)(d=>ht(d,o,r)),c=We({items:()=>{const o=e.Value.get(a),d=[];for(const m of o)if(m.type==="value"){const C=u(m.value);d.push(e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(m.disabled===!0),e.aria.checked(C),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),m.label),e.on.click(()=>s(m.value))))}else m.type==="group"?d.push(e.html.div(e.attr.class("bc-menu-group"),e.html.div(e.attr.class("bc-menu-group__label"),m.group),...m.options.map(C=>{if(C.type==="value"){const g=u(C.value);return e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(C.disabled===!0),e.aria.checked(g),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),C.label),e.on.click(()=>s(C.value)))}return e.Fragment()}))):d.push(He());return d},placement:"bottom-start",showDelay:0,hideDelay:100,showOn:"click",closable:!0});return h.InputContainer({...t,before:t.before??h.InputIcon({icon:"tabler:tags",color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),c,je({values:n,placeholder:l,options:a,equality:r,disabled:t.disabled,onRemove:i})),after:h.InputIcon({icon:"line-md:plus",color:"neutral",size:"sm"})})}function kn(t){return _.BaseControl(ze,t)}function In(t){return _.Control(ze,t)}function Ge(t){const{value:n,options:a,equality:r=(g,y)=>g===y,placeholder:l,searchPlaceholder:i,filter:s}=t,u=e.prop(""),c=g=>{const y=e.Value.get(n);t.onChange?.(bt(y,g,r))},o=g=>{const y=e.Value.get(n);t.onChange?.(gt(y,g,r))},d=g=>e.computedOf(n)(y=>ht(y,g,r)),m=e.computedOf(a,u)((g,y)=>vt(g,y,s)),C=We({items:()=>{const g=[],y=e.Value.get(m);if(y.length===0)return g.push(e.html.div(e.attr.class("bc-dropdown__empty"),e.Use(h.BeatUII18n,b=>b.$.noResults))),g;for(const b of y)if(b.type==="value"){const w=d(b.value);g.push(e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(b.disabled===!0),e.aria.checked(w),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),b.label),e.on.click(()=>o(b.value))))}else b.type==="group"?g.push(e.html.div(e.attr.class("bc-menu-group"),e.html.div(e.attr.class("bc-menu-group__label"),b.group),...b.options.map(w=>{if(w.type==="value"){const v=d(w.value);return e.html.div(e.attr.role("menuitem"),e.attr.tabindex(-1),e.aria.disabled(w.disabled===!0),e.aria.checked(v),e.attr.class("bc-menu-item"),e.html.span(e.attr.class("bc-menu-item__content"),w.label),e.on.click(()=>o(w.value)))}return e.Fragment()}))):g.push(He());return g},placement:"bottom-start",showDelay:0,hideDelay:100,showOn:(g,y)=>e.WithElement(b=>{const w=b.querySelector(".bc-dropdown__search-input");if(w){const v=()=>g();return w.addEventListener("focus",v),e.OnDispose(()=>{w.removeEventListener("focus",v)})}return e.Fragment()}),closable:!0});return h.InputContainer({...t,before:t.before??h.InputIcon({icon:"tabler:tags",color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),je({values:n,options:a,placeholder:l,equality:r,disabled:t.disabled,onRemove:c}),e.html.div(e.attr.class("bc-input-container__tags-selector"),e.html.input(e.attr.type("text"),e.attr.class("bc-dropdown__search-input"),e.attr.placeholder(e.computedOf(i,l)((g,y)=>g??y??"")),e.attr.value(u),e.on.input(g=>{const y=g.target;u.set(y.value)}),e.on.keydown(g=>{(g.key==="ArrowUp"||g.key==="ArrowDown"||g.key==="Enter"||g.key===" ")&&g.stopPropagation()})),C))})}function xn(t){return _.BaseControl(Ge,t)}function Tn(t){return _.Control(Ge,t)}const On=t=>{const{value:n,onBlur:a,onChange:r}=t;return h.InputContainer({...t,input:e.input.date(h.CommonInputAttributes(t),e.attr.valueAsDate(n),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValueAsDate(r)):e.Empty)})},Pn=t=>{const n=t.getFullYear(),a=(t.getMonth()+1).toString().padStart(2,"0"),r=t.getDate().toString().padStart(2,"0"),l=t.getHours().toString().padStart(2,"0"),i=t.getMinutes().toString().padStart(2,"0");return`${n}-${a}-${r}T${l}:${i}`},Dn=t=>{const{value:n,onBlur:a,onChange:r}=t;return h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,Pn)),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(l=>r(new Date(l)))):e.Empty)})},_n=t=>{const{value:n,onInput:a,onChange:r,...l}=t;return S.FilesInput({...l,maxFiles:1,value:e.Value.map(n,i=>i==null?[]:[i]),onChange:i=>{r?.(i[0])},onInput:i=>{a?.(i[0])}})},Ln=t=>J.Query({request:t.request,load:t.load,convertError:String,success:({value:n})=>{const a=n.map(r=>r.map(l=>typeof l=="object"&&"id"in l&&"label"in l?ae.value(l.id,l.label):l));return S.NativeSelect({...t,options:a,unselectedLabel:t.unselectedLabel,equality:t.equality})},pending:()=>e.Use(h.BeatUII18n,n=>e.html.span(h.Icon({icon:"line-md:loading-twotone-loop",title:n.$.loadingShort})))}),$n=t=>{const{value:n,onBlur:a,onChange:r,onInput:l,after:i,disabled:s,...u}=t,c=S.NullableResetAfter(n,s,r??l);return S.MaskInput({...u,value:e.Value.map(n,S.nullToEmpty),onChange:r!=null?o=>r(S.emptyToNull(o)):void 0,onInput:l!=null?o=>l(S.emptyToNull(o)):void 0,onBlur:a,after:i!=null?e.Fragment(c,i):c})},Xe=t=>{try{return BigInt(t)}catch{return null}},En=t=>{const{value:n,step:a,min:r,max:l,onChange:i,onInput:s,after:u}=t,c=g=>{const y=r!=null?e.Value.get(r):void 0,b=l!=null?e.Value.get(l):void 0;return y!=null&&g<y?y:b!=null&&g>b?b:g},o=a!=null?e.Use(h.BeatUII18n,g=>{const y=e.computedOf(n,r)((v,f)=>f==null?!0:(v??0n)>f),b=e.computedOf(n,l)((v,f)=>f==null?!0:(v??0n)<f),w=(v,f)=>{const p=e.Value.get(n)??0n,V=e.Value.get(a),I=f?.shiftKey?10n:1n,P=p+V*I*v,x=r!=null?e.Value.get(r):void 0,k=l!=null?e.Value.get(l):void 0;if(v<0n&&x!=null&&P<x||v>0n&&k!=null&&P>k)return;const L=c(P);L!==p&&i&&i(L)};return _.Stack(e.attr.class("bc-number-input-steppers"),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),e.attr.disabled(e.computedOf(b,t.disabled??!1)((v,f)=>!v||f)),e.on.click(v=>w(1n,v)),e.aria.label(g.$.incrementValue),h.Icon({icon:"line-md:plus",size:"xs"})),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),e.attr.disabled(e.computedOf(y,t.disabled??!1)((v,f)=>!v||f)),e.on.click(v=>w(-1n,v)),e.aria.label(g.$.decrementValue),h.Icon({icon:"line-md:minus",size:"xs"})))}):null,d=u!=null&&o!=null?e.Fragment(o,u):u??o,m=i?g=>{const y=Xe(g);y!=null&&i(c(y))}:void 0,C=s?g=>{const y=Xe(g);y!=null&&s(c(y))}:void 0;return S.MaskInput({...t,value:e.Value.map(n,g=>g.toString()),onChange:m,onInput:C,after:d,mask:null,allowMode:"digits",class:"bc-number-input"})},et=t=>{if(t==null||t==="")return null;try{return BigInt(t)}catch{return null}},Bn=t=>{const{value:n,step:a,min:r,max:l,onChange:i,onInput:s,after:u}=t,c=y=>{const b=r!=null?e.Value.get(r):void 0,w=l!=null?e.Value.get(l):void 0;return b!=null&&y<b?b:w!=null&&y>w?w:y},o=a!=null?e.Use(h.BeatUII18n,y=>{const b=e.computedOf(n,r)((f,p)=>{const V=f??0n;return p==null?!0:V>p}),w=e.computedOf(n,l)((f,p)=>{const V=f??0n;return p==null?!0:V<p}),v=(f,p)=>{const V=e.Value.get(n)??0n,I=e.Value.get(a),P=p?.shiftKey?10n:1n,x=V+I*P*f,k=r!=null?e.Value.get(r):void 0,L=l!=null?e.Value.get(l):void 0;if(f<0n&&k!=null&&x<k||f>0n&&L!=null&&x>L)return;const B=c(x);B!==V&&i&&i(B)};return _.Stack(e.attr.class("bc-number-input-steppers"),e.attr.type("button"),e.html.button(e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--increment"),e.attr.disabled(e.computedOf(w,t.disabled??!1)((f,p)=>!f||p)),e.on.click(f=>v(1n,f)),e.aria.label(y.$.incrementValue),h.Icon({icon:"line-md:plus",size:"xs"})),e.html.button(e.attr.type("button"),e.attr.class("bc-button bc-number-input-steppers-button bc-number-input-steppers-button--decrement"),e.attr.disabled(e.computedOf(b,t.disabled??!1)((f,p)=>!f||p)),e.on.click(f=>v(-1n,f)),e.aria.label(y.$.decrementValue),h.Icon({icon:"line-md:minus",size:"xs"})))}):null,d=S.NullableResetAfter(n,t.disabled,i??s),m=u!=null&&o!=null?e.Fragment(o,d,u):u!=null?e.Fragment(d,u):o!=null?e.Fragment(o,d):d,C=i?y=>{const b=et(y);i(b===null?null:c(b))}:void 0,g=s?y=>{const b=et(y);s(b===null?null:c(b))}:void 0;return S.MaskInput({...t,value:e.Value.map(n,y=>y==null?"":y.toString()),onChange:C,onInput:g,after:m,mask:null,allowMode:"digits",class:"bc-number-input"})},An=t=>{const{value:n,onChange:a,onBlur:r,before:l}=t,i=e.prop(""),s=c=>{a?.(e.Value.get(n).filter(o=>o!==c))},u=()=>{const c=i.value.trim(),o=e.Value.get(n);c===""||o.includes(c)||(i.set(""),a?.([...o,c]))};return h.InputContainer({...t,before:l??h.InputIcon({icon:"tabler:tag",size:t.size,color:"neutral"}),input:e.Fragment(e.attr.class("bc-input-container__tags"),e.ForEach(n,c=>Me({value:c,onClose:()=>s(c.value),disabled:t.disabled})),e.input.text(h.CommonInputAttributes(t),e.attr.value(i),e.attr.class("bc-input bc-input-container__tags-input"),e.on.input(e.emitValue(i.set)),a!=null?e.on.change(u):e.Empty,r!=null?e.on.blur(r):e.Empty))})};function Ve(t){return n=>{const{value:a,onBlur:r,onChange:l}=n;return S.WithTemporal(i=>h.InputContainer({...n,input:e.input[t.inputType](h.CommonInputAttributes(n),e.attr.value(e.Value.map(a,t.valueToString)),e.attr.class("bc-input"),r!=null?e.on.blur(e.emitValue(r)):e.Empty,l!=null?e.on.change(e.emitValue(s=>l(t.parseValue(i,s)))):e.Empty)}))}}function ke(t){return n=>{const{value:a,onBlur:r,onChange:l,onInput:i,after:s,disabled:u}=n,c=S.NullableResetAfter(a,u,l??i);return S.WithTemporal(o=>h.InputContainer({...n,input:e.input[t.inputType](h.CommonInputAttributes(n),e.attr.value(e.Value.map(a,d=>d==null?"":t.valueToString(d))),e.attr.class("bc-input"),r!=null?e.on.blur(e.emitValue(r)):e.Empty,l!=null?e.on.change(e.emitValue(d=>l(d===""?null:t.parseValue(o,d)))):e.Empty,i!=null?e.on.input(e.emitValue(d=>i(d===""?null:t.parseValue(o,d)))):e.Empty),after:s!=null?e.Fragment(c,s):c}))}}const Nn=Ve({inputType:"date",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainDate.from(n)}),Fn=ke({inputType:"date",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainDate.from(n)}),Mn=Ve({inputType:"time",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainTime.from(n)}),Un=ke({inputType:"time",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainTime.from(n)}),Rn=Ve({inputType:"datetime-local",valueToString:t=>t.toJSON(),parseValue:(t,n)=>t.PlainDateTime.from(n)}),Wn=ke({inputType:"datetime-local",valueToString:t=>t.toJSON(),parseValue:(t,n)=>t.PlainDateTime.from(n)}),Hn=t=>{const n=new Date(t),a=n.getFullYear().toString().padStart(4,"0"),r=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0"),i=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0");return`${a}-${r}-${l}T${i}:${s}`},jn=t=>{const{value:n,onBlur:a,onChange:r}=t;return S.WithTemporal(l=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,i=>Hn(Number(i.epochMilliseconds)))),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(i=>r(l.Instant.from(new Date(i).toISOString())))):e.Empty)}))},zn=t=>{const n=new Date(t),a=n.getFullYear().toString().padStart(4,"0"),r=(n.getMonth()+1).toString().padStart(2,"0"),l=n.getDate().toString().padStart(2,"0"),i=n.getHours().toString().padStart(2,"0"),s=n.getMinutes().toString().padStart(2,"0");return`${a}-${r}-${l}T${i}:${s}`},Gn=t=>{const{value:n,onBlur:a,onChange:r,onInput:l,after:i,disabled:s}=t,u=S.NullableResetAfter(n,s,r??l);return S.WithTemporal(c=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,o=>o==null?null:zn(Number(o.epochMilliseconds)))),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(o=>r(o===""?null:c.Instant.from(new Date(o).toISOString())))):e.Empty,l!=null?e.on.input(e.emitValue(o=>l(o===""?null:c.Instant.from(new Date(o).toISOString())))):e.Empty),after:i!=null?e.Fragment(u,i):u}))},Zn=t=>{const{value:n,onBlur:a,onChange:r}=t;return S.WithTemporal(l=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,i=>i.toJSON())),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(i=>{const s=l.PlainDateTime.from(i),u=e.Value.get(t.placeholder)??Intl.DateTimeFormat().resolvedOptions().timeZone;return r(l.ZonedDateTime.from({...s,timeZone:u}))})):e.Empty)}))},Yn=t=>{const{value:n,onBlur:a,onChange:r,onInput:l,after:i,disabled:s}=t,u=S.NullableResetAfter(n,s,r??l);return S.WithTemporal(c=>h.InputContainer({...t,input:e.input["datetime-local"](h.CommonInputAttributes(t),e.attr.value(e.Value.map(n,o=>o?.toJSON())),e.attr.class("bc-input"),a!=null?e.on.blur(e.emitValue(a)):e.Empty,r!=null?e.on.change(e.emitValue(o=>{if(o==="")return r(null);const d=c.PlainDateTime.from(o),m=e.Value.get(t.placeholder)??Intl.DateTimeFormat().resolvedOptions().timeZone;return r(c.ZonedDateTime.from({...d,timeZone:m}))})):e.Empty,l!=null?e.on.input(e.emitValue(o=>{if(o==="")return l(null);const d=c.PlainDateTime.from(o),m=e.Value.get(t.placeholder)??Intl.DateTimeFormat().resolvedOptions().timeZone;return l(c.ZonedDateTime.from({...d,timeZone:m}))})):e.Empty),after:i!=null?e.Fragment(u,i):u}))},qn=Ve({inputType:"month",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainYearMonth.from(n)}),Jn=ke({inputType:"month",valueToString:t=>t.toString(),parseValue:(t,n)=>t.PlainYearMonth.from(n)}),Kn=t=>{const{value:n,onChange:a}=t;return S.WithTemporal(r=>S.MaskInput({...t,value:e.Value.map(n,l=>l.toString()),onChange:a!=null?l=>a(r.PlainMonthDay.from(`--${l}`)):void 0,onInput:void 0,mask:"99-99",placeholder:"MM-DD"}))},Qn=t=>{const{value:n,onChange:a,onInput:r,after:l,disabled:i}=t,s=S.NullableResetAfter(n,i,a??r);return S.WithTemporal(u=>S.MaskInput({...t,value:e.Value.map(n,c=>c?.toString()??""),onChange:a!=null?c=>a(c===""?null:u.PlainMonthDay.from(`--${c}`)):void 0,onInput:r!=null?c=>r(c===""?null:u.PlainMonthDay.from(`--${c}`)):void 0,mask:"99-99",placeholder:"MM-DD",after:l!=null?e.Fragment(s,l):s}))},Xn=t=>{const{value:n,onChange:a}=t;return S.WithTemporal(r=>S.MaskInput({...t,value:e.Value.map(n,l=>l.toString()),onChange:a?l=>a(r.Duration.from(l)):void 0,onInput:void 0,...S.durationMaskConfig(r.Duration.from),placeholder:"P0DT0H0M0S"}))};function ea(t,n,a){return e.Ensure(t.signal,()=>{const r=t.transform(l=>l,l=>l);return n(r)},a)}const ta={filling:{type:"filling"},submitting:{type:"submitting"},error:t=>({type:"error",error:t}),success:{type:"success"}};class wt extends _.Controller{constructor(n,a,r,l,i){super(n,a,r,l,i)}isValidColor=this.signal.map(S.isValidColor);isValidHex=this.signal.map(S.isValidHexColor);normalizedHex=this.signal.map(n=>S.normalizeHexColor(n)??n);setColor=n=>{if(S.isValidHexColor(n)){const a=S.normalizeHexColor(n);if(a){this.change(a);return}}this.change(n)};setHex=n=>{const a=S.normalizeHexColor(n);a&&this.change(a)};setRgb=(n,a,r)=>{const l=s=>{const u=Math.round(Math.max(0,Math.min(255,s))).toString(16);return u.length===1?"0"+u:u},i=`#${l(n)}${l(a)}${l(r)}`;this.change(i)};getRgb=()=>{const n=this.signal.value,a=S.normalizeHexColor(n);if(!a)return null;const r=/^#([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null};withFormat=n=>{const a=l=>{switch(n){case"hex":return S.normalizeHexColor(l)??l;case"rgb":const i=this.getRgb();return i?`rgb(${i.r}, ${i.g}, ${i.b})`:l;case"hsl":return l;default:return l}},r=l=>S.normalizeHexColor(l)??l;return this.transform(a,r,[`format-${n}`])}}function na(t){return new wt(t.path,t.change,t.signal,t.status,{disabled:t.disabled})}function aa(t){return{id:t.name,disabled:t.disabled,value:t.normalizedHex,hasError:t.errorVisible,onChange:t.setColor,onInput:t.setColor}}function ra({locales:t,onChange:n,updateLocale:a=!0}){return e.Use(h.BeatUII18n,r=>e.Use(h.Locale,({locale:l,setLocale:i})=>_.InputWrapper({layout:"horizontal",content:S.Group(e.attr.class("bc-group--align-center bc-group--gap-2"),h.Icon({icon:"ic:twotone-language",size:"lg",color:"neutral",title:r.$.locale}),S.NativeSelect({options:e.Value.map(t,s=>s.map(u=>{let c=u.name;return u.nativeName!=null&&u.nativeName!==u.name&&(c+=` (${u.nativeName})`),ae.value(u.code,c)})),value:l,onChange:s=>{a&&i(s),n?.(s)}}))})))}const la=()=>e.Use(h.Locale,({direction:t})=>e.Portal("body",e.attr.class(t.map(n=>`b-${n}`))));function Ct(t,n,a,r,l){const i=["bc-notification"];return t&&i.push("bc-notification--bordered"),n&&i.push("bc-notification--has-icon"),a&&i.push("bc-notification--closable"),r&&i.push("bc-notification--loading"),l&&l.length>0&&i.push(l),i.join(" ")}function St(t,n){return[`--notification-accent-color: ${q.getColorVar(t,500)}`,`--notification-radius: ${T.getRadiusVar(n)}`].join("; ")}function Vt({loading:t=!1,withCloseButton:n=!1,withBorder:a=!1,color:r="primary",radius:l="md",title:i,icon:s,onClose:u,class:c}={},...o){const d=e.Value.map(s,m=>m!=null);return e.html.section(e.attr.class(e.computedOf(a,d,n,t,c)((m,C,g,y,b)=>[Ct(m,C,g,y,b)].join(" "))),e.attr.style(e.computedOf(r,l)((m,C)=>St(m,C))),e.aria.live("polite"),e.aria.busy(t),e.When(t,()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__loader"),h.Icon({icon:"line-md:loading-twotone-loop",size:"lg",color:r,accessibility:"decorative"})),()=>e.When(d,()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__icon"),h.Icon({icon:s,size:"lg",color:r})),()=>e.html.div(e.attr.class("bc-notification__visual bc-notification__accent"),e.aria.hidden(!0)))),e.html.div(e.attr.class("bc-notification__body"),i!=null?e.html.div(e.attr.class("bc-notification__title"),i):null,e.html.div(e.attr.class("bc-notification__content"),...o)),e.When(n,()=>e.html.div(e.attr.class("bc-notification__meta"),_.CloseButton({size:"sm",color:r,onClick:u}))))}class oa{handles=[];attach(n){return this.detach(n),this.handles.push(n),()=>this.detach(n)}detach(n){const a=this.handles.lastIndexOf(n);a>=0&&this.handles.splice(a,1)}get current(){const n=this.handles[this.handles.length-1];if(!n)throw new Error("NotificationService: no provider attached. Ensure BeatUI includes notifications or attach the provider manually.");return n}show(n,...a){return this.current.show(n,...a)}clear(){this.current.clear()}}const kt=new oa,Ze={mark:e.makeProviderMark("NotificationProvider"),create:({position:t="bottom-end"}={})=>{const n=e.prop(0),a=[];function r(c){return a.push(c),()=>{const o=a.lastIndexOf(c);o>=0&&a.splice(o,1)}}const l=[],i=({dismissAfter:c,onClose:o,animation:d={fade:!0},...m},...C)=>{n.update(b=>b+1);const g=c!=null?typeof c=="number"?Mt(c*1e3):c:void 0,y={animation:d,class:e.Value.toSignal(m.class),loading:e.Value.toSignal(m.loading??!1),withCloseButton:e.Value.toSignal(m.withCloseButton==null&&c==null?!0:m.withCloseButton??!0),withBorder:e.Value.toSignal(m.withBorder??!1),color:e.Value.toSignal(m.color??"primary"),radius:e.Value.toSignal(m.radius??"md"),title:m.title??e.Empty,icon:e.Value.toSignal(m.icon),children:C,listenRequestClose:b=>(l.push(b),o?.(),()=>{}),delayedClose:g};a.forEach(b=>b(y))},s=()=>{l.forEach(c=>c()),l.length=0},u=kt.attach({show:i,clear:s});return{value:{activeNotifications:n,show:i,clear:s,position:t,listenOnShow:r},dispose:()=>{u(),s()}}}};function It(){return e.Use(Ze,({listenOnShow:t,position:n})=>e.html.div(e.attr.class("bc-notification-viewport"),e.attr.class(`bc-notification-viewport--${n}`),e.WithBrowserCtx(a=>e.OnDispose(t(r=>{const l=[],i=e.html.div(j.AnimatedToggle({animation:r.animation,initialStatus:"start-opening"},({close:s,listenOnClosed:u})=>(r.delayedClose?.finally(s),u(()=>{l.forEach(c=>c())}),Vt({class:r.class,loading:r.loading,withCloseButton:r.withCloseButton,withBorder:r.withBorder,color:r.color,radius:r.radius,title:r.title,icon:r.icon,onClose:s},...r.children))));l.push(e.renderWithContext(i,a))})))))}function ia({includeAuthI18n:t=!1,enableAppearance:n=!0,defaultAppearance:a="system",appearancePreferenceKey:r="bui-appearance",includeNotifications:l=!0,notificationPosition:i="bottom-end"},...s){return e.WithProvider(({set:u,use:c})=>{u(J.Location,{}),u(h.Locale,{}),u(h.BeatUII18n,{}),u(be.Theme,{defaultAppearance:n?a:"light",appearancePreferenceKey:r}),l&&u(Ze,{position:i}),J.NavigationService.attach(c(J.Location));const o=e.Fragment(n?be.ThemeAppearance():e.Empty,la(),l?It():e.Empty,...s);return t?e.Task(()=>Promise.resolve().then(()=>require("./translations-C7HVMcOQ.cjs")),({AuthI18n:d})=>e.Provide(d,{},()=>o)):o})}function sa({content:t,toolbar:n=!0,page:a,zoom:r,view:l,pagemode:i,scrollbar:s=!0,navpanes:u=!0,search:c,nameddest:o,viewrect:d,highlight:m,allowfullscreen:C=!1}){const g=e.Value.toSignal(t).mapAsync(async b=>{if(b instanceof Blob){const w=await b.arrayBuffer(),v=new Blob([w],{type:"application/pdf"});return URL.createObjectURL(v)}else{if(b instanceof ArrayBuffer)return URL.createObjectURL(new Blob([b],{type:"application/pdf"}));if(b instanceof Uint8Array)return URL.createObjectURL(new Blob([new Uint8Array(b)],{type:"application/pdf"}));if(typeof b=="string"){const v=await(await fetch(b)).arrayBuffer(),f=new Blob([v],{type:"application/pdf"});return URL.createObjectURL(f)}}},null),y=e.computedOf(g,n,a,r,l,i,s,u,c,o,d,m)((b,w,v,f,p,V,I,P,x,k,L,B)=>{if(b==null)return null;const $=[];w===!1&&$.push("toolbar=0"),v!=null&&v>0&&$.push(`page=${v}`),f!=null&&f>0&&$.push(`zoom=${f}`),p!=null&&$.push(`view=${p}`),V!=null&&$.push(`pagemode=${V}`),I===!1&&$.push("scrollbar=0"),P===!1&&$.push("navpanes=0"),x!=null&&$.push(`search=${encodeURIComponent(x)}`),k!=null&&$.push(`nameddest=${encodeURIComponent(k)}`),L!=null&&$.push(`viewrect=${encodeURIComponent(L)}`),B!=null&&$.push(`highlight=${encodeURIComponent(B)}`);const F=$.join("&");return F?`${b}#${F}`:b});return g.on((b,w)=>{w!=null&&URL.revokeObjectURL(w)}),e.html.div(e.OnDispose(()=>{const b=g.value;b!=null&&URL.revokeObjectURL(b)}),e.attr.class("h-full w-full"),e.html.iframe(e.attr.class("h-full w-full"),e.attr.allowfullscreen(C),e.attr.title("PDF Preview"),e.attr.loading("lazy"),e.WithElement(b=>{const w=b;let v=!0;return y.on(f=>{f!=null&&(v?(w.src=f,v=!1):(w.src="about:blank",setTimeout(()=>{w.src=f},50)))}),e.Empty})))}function ua({content:t,page:n,zoom:a,pagemode:r,nameddest:l,search:i,textLayerMode:s,sidebarViewOnLoad:u,scrollModeOnLoad:c,spreadModeOnLoad:o,enableScripting:d,enablePrinting:m,viewerUrl:C=null,allowfullscreen:g=!0,class:y=null}){const b=e.Value.toSignal(t).mapAsync(async v=>{if(v instanceof Blob)return URL.createObjectURL(v);if(v instanceof ArrayBuffer)return URL.createObjectURL(new Blob([v],{type:"application/pdf"}));if(v instanceof Uint8Array)return URL.createObjectURL(new Blob([new Uint8Array(v)],{type:"application/pdf"}));if(typeof v=="string")return v},null),w=e.computedOf(b,C,n,a,r,l,i,s,u,c,o,d,m)((v,f,p,V,I,P,x,k,L,B,$,F,Y)=>{if(v==null)return null;const M=f??"https://mozilla.github.io/pdf.js/web/viewer.html",N=new URLSearchParams;N.set("file",encodeURIComponent(v));const W=[];p!=null&&p>0&&W.push(`page=${p}`),V!=null&&(typeof V=="string"?W.push(`zoom=${V}`):W.push(`zoom=${V}`)),I!=null&&W.push(`pagemode=${I}`),P!=null&&W.push(`nameddest=${encodeURIComponent(P)}`),x!=null&&W.push(`search=${encodeURIComponent(x)}`),k!=null&&W.push(`textLayer=${k}`),L!=null&&W.push(`sidebar=${L}`),B!=null&&W.push(`scrollMode=${B}`),$!=null&&W.push(`spreadMode=${$}`),F!=null&&W.push(`enableScripting=${F?"1":"0"}`),Y!=null&&W.push(`enablePrinting=${Y?"1":"0"}`);const Q=W.length>0?`#${W.join("&")}`:"";return`${M}?${N.toString()}${Q}`});return b.on((v,f)=>{f!=null&&f.startsWith("blob:")&&URL.revokeObjectURL(f)}),e.html.div(e.OnDispose(()=>{const v=b.value;v!=null&&v.startsWith("blob:")&&URL.revokeObjectURL(v)}),e.attr.class("bc-pdfjs-preview h-full w-full"),e.attr.class(y),e.html.iframe(e.attr.class("h-full w-full"),e.attr.allowfullscreen(g),e.attr.title("PDF Preview"),e.attr.loading("lazy"),e.attr.src(w)))}const ca=({id:t,css:n})=>e.Portal("head",e.html.style(e.attr.id(t),e.attr.innerHTML(n)));function te(t,n){return n==null?null:e.html.meta(e.attr.name(t),e.attr.content(e.Value.map(n,a=>String(a))))}function H(t,n){return n==null?null:e.html.meta(e.attr.property(t),e.attr.content(e.Value.map(n,a=>String(a))))}function Se(t,n){return n==null?null:e.ForEach(n,a=>H(t,a))}function da(t,n){return n==null?null:e.When(e.Value.map(n,a=>Array.isArray(a)),()=>Se(t,n),()=>H(t,n))}const pa=t=>{const n=[];if(n.push(H("og:title",t.title)),n.push(H("og:type",t.type)),n.push(H("og:url",t.url)),n.push(H("og:image",t.image)),n.push(H("og:description",t.description)),n.push(H("og:site_name",t.siteName)),n.push(H("og:locale",t.locale)),t.localeAlternate!=null){const a=Se("og:locale:alternate",t.localeAlternate);a!=null&&n.push(a)}if(n.push(H("og:image:alt",t.imageAlt)),n.push(H("og:image:width",t.imageWidth)),n.push(H("og:image:height",t.imageHeight)),n.push(H("og:image:type",t.imageType)),t.images!=null){const a=Se("og:image",t.images);a!=null&&n.push(a)}if(n.push(H("og:video",t.video)),n.push(H("og:video:type",t.videoType)),n.push(H("og:video:width",t.videoWidth)),n.push(H("og:video:height",t.videoHeight)),n.push(H("og:video:secure_url",t.videoSecureUrl)),n.push(H("og:audio",t.audio)),n.push(H("og:audio:type",t.audioType)),n.push(H("og:audio:secure_url",t.audioSecureUrl)),n.push(H("article:published_time",t.publishedTime)),n.push(H("article:modified_time",t.modifiedTime)),n.push(H("article:expiration_time",t.expirationTime)),n.push(da("article:author",t.author)),n.push(H("article:section",t.section)),t.tags!=null){const a=Se("article:tag",t.tags);a!=null&&n.push(a)}return n.push(H("profile:first_name",t.firstName)),n.push(H("profile:last_name",t.lastName)),n.push(H("profile:username",t.username)),n.push(H("profile:gender",t.gender)),n.push(te("twitter:card",t.twitterCard)),n.push(te("twitter:site",t.twitterSite)),n.push(te("twitter:creator",t.twitterCreator)),n.push(te("twitter:title",e.coalesce(t.twitterTitle,t.title))),n.push(te("twitter:description",e.coalesce(t.twitterDescription,t.description))),n.push(te("twitter:image",e.coalesce(t.twitterImage,t.image))),n.push(te("twitter:image:alt",e.coalesce(t.twitterImageAlt,t.imageAlt))),t.canonical!=null&&e.Value.get(t.canonical)!=null&&n.push(e.html.link(e.attr.rel("canonical"),e.attr.href(t.canonical))),n.push(te("robots",t.robots)),n.push(te("keywords",t.keywords)),n.push(te("author",t.metaAuthor)),e.Portal("head",n.filter(a=>a!=null).flat())},Ye=({viewTransition:t,state:n,scroll:a,replace:r})=>{const l={};return n!==void 0&&(l.state=n),a!==void 0&&(l.scroll=a),r!==void 0&&(l.replace=r),t!==void 0&&(l.viewTransition=t),l};function Be(t,n){const a=["bc-link"];if(n)a.push("bc-link--disabled");else switch(t){case"plain":a.push("bc-link--plain");break;case"hover":a.push("bc-link--hover");break;case"default":default:a.push("bc-link--default");break}return a.join(" ")}function Ae(t){const n=h.textColorValue(t,"light"),a=h.textColorValue(t,"dark");return[`--link-color: ${n}`,`--link-color-dark: ${a}`,`--link-hover-color: ${n}`,`--link-hover-color-dark: ${a}`].join("; ")}function xt({href:t,variant:n="default",color:a="primary",colorDisabled:r="base",disabled:l=!1,viewTransition:i=!0,state:s,scroll:u,replace:c,target:o,rel:d},...m){return e.When(l,()=>e.html.span(e.attr.class(e.computedOf(n,l)((C,g)=>Be(C,g))),e.attr.style(e.computedOf(r)(C=>Ae(C??"base"))),...m),()=>J.Anchor({href:t,...Ye({viewTransition:i,state:s,scroll:u,replace:c})},e.attr.class(e.computedOf(n,l)((C,g)=>Be(C,g))),e.attr.style(e.computedOf(a)(C=>Ae(C??"primary"))),o?e.attr.target(o):null,d?e.attr.rel(d):null,...m))}const ma=t=>t?t.startsWith("#")?t:`#${t}`:"",fa=t=>{if(!t)return new URLSearchParams;if(typeof t=="string"){const n=t.startsWith("?")?t.slice(1):t;return new URLSearchParams(n)}return t instanceof URLSearchParams?new URLSearchParams(t):new URLSearchParams(t)};function Tt(t,n,a){const r=fa(t.search),l=r.toString(),i=l?`?${l}`:"",s=ma(t.hash);switch(a){case"exact":return t.pathname+i+s===n;case"prefix":return t.pathname.startsWith(n)||(t.pathname+i).startsWith(n);case"params":try{const u=typeof document<"u"&&document.baseURI?document.baseURI:"http://localhost/",c=new URL(n,u);if(t.pathname!==c.pathname)return!1;const o=Array.from(new URLSearchParams(c.search).entries()).sort(),d=Array.from(r.entries()).sort();return o.length!==d.length?!1:o.every(([m,C],g)=>{const[y,b]=d[g];return m===y&&C===b})}catch{return t.pathname===n}default:return!1}}function Ie(t,n){return n==="exact"?e.computedOf(t)(a=>a):e.computedOf(t)(a=>r=>Tt(r,a,n))}function ga({href:t,matchMode:n="exact",disableWhenActive:a=!0,...r},...l){return e.Use(J.Location,i=>{const s=i.matchSignal(Ie(t,n)),u=e.computedOf(s,a)((c,o)=>o??!0?c:!1);return xt({...r,href:t,disabled:u},...l)})}function ba({href:t,viewTransition:n=!0,state:a,scroll:r,replace:l,target:i,rel:s,matchMode:u,disableWhenActive:c,variant:o="filled",size:d="md",color:m="base",roundedness:C="sm",disabled:g=!1},...y){return u!==void 0||c!==void 0?e.Use(J.Location,b=>{const w=u!==void 0?b.matchSignal(Ie(t,u)):e.computedOf(b.location)(()=>!1),v=e.computedOf(w,c)((p,V)=>!(V??!0)||!u?!1:p),f=e.computedOf(g,v)((p,V)=>p||V);return tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:i,rel:s,variant:o,size:d,color:m,roundedness:C,disabled:f},...y)}):tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:i,rel:s,variant:o,size:d,color:m,roundedness:C,disabled:g},...y)}function tt({href:t,viewTransition:n,state:a,scroll:r,replace:l,target:i,rel:s,variant:u="default",size:c="md",color:o="base",roundedness:d="sm",disabled:m=!1,fullWidth:C=!1,loading:g=!1},...y){return e.When(m??!1,()=>e.html.span(e.attr.class(e.computedOf(c,d,g,C)(h.generateButtonClasses)),e.attr.style(e.computedOf(u,o,m)((b,w,v)=>h.generateButtonStyles(b??"filled",w??"base",v))),...y),()=>J.Anchor({href:t,...Ye({viewTransition:n,state:a,scroll:r,replace:l})},e.attr.class(e.computedOf(c,d,g,C)(h.generateButtonClasses)),e.attr.style(e.computedOf(u,o,m)((b,w,v)=>h.generateButtonStyles(b??"filled",w??"base",v))),i?e.attr.target(i):null,s?e.attr.rel(s):null,...y))}const Ot={mark:e.makeProviderMark("SidebarContext"),create:t=>({value:{backgroundMode:"light"},dispose:()=>{}})};function ha({backgroundMode:t="light"},...n){return e.Provide(Ot,e.Value.map(t,a=>({backgroundMode:a})),()=>e.html.div(e.attr.class("bc-sidebar"),e.attr.class(e.Value.map(t,a=>a==="dark"?"bc-sidebar--dark-bg":"")),...n))}function Ne({rail:t,header:n},...a){return _.Stack(n!=null?e.html.div(e.attr.class("bc-sidebar-group__header"),n):null,e.html.div(e.attr.class(e.Value.map(t??!1,r=>r?"bc-sidebar-group--rail":"")),e.attr.class("bc-sidebar-group"),...a))}function Pt(t,...n){const a=Ye({viewTransition:t.viewTransition??!0,state:t.state,scroll:t.scroll,replace:t.replace});return J.Anchor({href:t.href,...a},...n)}function Dt(...t){return e.html.span(...t)}function _t(t,...n){return e.html.button(e.attr.type("button"),e.on.click(t.onClick),t.ariaExpanded!=null?e.aria.expanded(e.Value.map(t.ariaExpanded,a=>a)):null,t.ariaControls!=null?e.aria.controls(t.ariaControls):null,t.ariaLabel!=null?e.aria.label(t.ariaLabel):null,...n)}function Lt(t){const n=[e.attr.class("bc-sidebar-link")];return t.icon!=null&&n.push(e.html.span(e.attr.class("bc-sidebar-link--icon"),h.Icon({icon:t.icon}))),n.push(e.html.span(e.attr.class("bc-sidebar-link__content"),t.content)),t.right!=null&&n.push(e.html.span(e.attr.class("bc-sidebar-link__right"),t.right)),t.action!=null&&n.push(e.html.button(e.attr.type("button"),e.attr.class("bc-sidebar-link--action"),e.on.click((a,r)=>{t.action?.onClick?.(r)}),h.Icon({icon:t.action?.icon}))),"onClick"in t?_t(t,...n):e.Use(J.Location,a=>{const r=a.matchSignal(Ie(t.href,"exact"),{includeSearch:!1,includeHash:!1});return e.When(r,()=>Dt(...n),()=>Pt(t,...n))})}function ya({rail:t=!0,icon:n,header:a,startOpen:r=!0},...l){const i=e.Value.deriveProp(r),s=_.sessionId("sidebar-group"),u=`${s}-content`;return Ne({},e.attr.class("bc-sidebar-group-collapsible"),e.attr.class(i.map(c=>c?"bc-sidebar-group-collapsible--open":"bc-sidebar-group-collapsible--closed")),e.attr.role("group"),e.attr.id(s),Lt({icon:n,onClick:()=>i.update(c=>!c),ariaExpanded:i,ariaControls:u,right:e.html.span(e.attr.class("bc-sidebar-group-collapsible-indicator"),h.Icon({icon:"lucide:chevron-down",color:"base"})),content:a}),Ne({rail:t},e.attr.id(u),st({open:i},...l)))}function va(){return e.html.hr(e.attr.class("bc-sidebar-separator"))}function wa(t,n,a,r){const l=["bc-tabs",`bc-tabs--${t}`,`bc-tabs--${n}`];return a&&l.push("bc-tabs--disabled"),r!=null&&r!=="default"&&l.push(`bc-tabs--variant-${r}`),l.join(" ")}function Ca(t,n){if(t!=="filled")return"";const a=new Map,r=h.backgroundValue(n,"solid","light"),l=h.backgroundValue(n,"solid","dark");a.set("--tabs-filled-inactive-bg",r.backgroundColor),a.set("--tabs-filled-inactive-text","var(--color-white)");const i=h.hoverBackgroundValue(n,"solid","light");a.set("--tabs-filled-inactive-bg-hover",i.backgroundColor);const s=h.hoverBackgroundValue(n,"solid","dark");a.set("--tabs-filled-inactive-bg-dark-hover",s.backgroundColor),a.set("--tabs-filled-inactive-bg-dark",l.backgroundColor),a.set("--tabs-filled-inactive-text-dark",l.textColor),a.set("--tabs-filled-active-bg","var(--color-white)"),a.set("--tabs-filled-active-text","var(--color-base-800)"),a.set("--tabs-filled-active-bg-dark","var(--color-base-900)");const u=n==="white"||n==="black"||n==="transparent"?"var(--color-white)":q.getColorVar(n,400);return a.set("--tabs-filled-active-text-dark",u),Array.from(a.entries()).map(([c,o])=>`${c}: ${o}`).join("; ")}function Sa(t,n,a){const r=["bc-tab",`bc-tab--${t}`];return n&&r.push("bc-tab--active"),a&&r.push("bc-tab--disabled"),r.join(" ")}function we(t,n,a){const r=n.length;let l=t+a;l>=r?l=0:l<0&&(l=r-1);let i=0;for(;i<r;){const s=n[l];if(!e.Value.get(s.disabled??!1))return l;l+=a,l>=r?l=0:l<0&&(l=r-1),i++}return t}function Va(t){const{items:n,value:a,onChange:r,size:l="md",variant:i="default",color:s="primary",disabled:u=!1,orientation:c="horizontal",showContent:o=!0,ariaLabel:d}=t,m=_.sessionId("tablist"),C=e.prop(-1),g=e.computedOf(a)(b=>n.find(w=>w.key===b)),y=b=>{if(e.Value.get(u))return;const v=C.value,f=e.Value.get(c)==="horizontal";let p=v;switch(b.key){case(f?"ArrowRight":"ArrowDown"):b.preventDefault(),p=we(v,n,1);break;case(f?"ArrowLeft":"ArrowUp"):b.preventDefault(),p=we(v,n,-1);break;case"Home":b.preventDefault(),p=we(-1,n,1);break;case"End":b.preventDefault(),p=we(n.length,n,-1);break;case"Enter":case" ":if(b.preventDefault(),v>=0&&v<n.length){const V=n[v];e.Value.get(V.disabled??!1)||r?.(V.key)}break}p!==v&&p>=0&&p<n.length&&(C.set(p),setTimeout(()=>{const V=document.querySelector(`[data-tab-index="${p}"]`);V&&V.focus()},0))};return e.html.div(e.attr.class(e.computedOf(l,c,u,i)((b,w,v,f)=>wa(b??"md",w??"horizontal",v??!1,f??"default"))),e.attr.style(e.computedOf(i,s)((b,w)=>Ca(b??"default",w??"primary"))),e.html.div(e.attr.class("bc-tabs__list"),e.attr.role("tablist"),e.attr.id(m),e.aria.orientation(c??"horizontal"),d?e.aria.label(d):e.Fragment(),e.on.keydown(y),...n.map((b,w)=>{const v=e.computedOf(a)(I=>I===b.key),f=e.computedOf(u,b.disabled)((I,P)=>I||P),p=`${m}-tab-${b.key}`,V=`${m}-panel-${b.key}`;return e.html.button(e.attr.type("button"),e.attr.class(e.computedOf(l,v,f)((I,P,x)=>Sa(I??"md",P??!1,x??!1))),e.attr.id(p),e.attr.role("tab"),e.attr.tabindex(e.computedOf(v,C)((I,P)=>I||P===w?0:-1)),e.aria.selected(v),e.aria.controls(V),e.aria.disabled(f),e.attr.disabled(f),e.dataAttr["tab-index"](String(w)),b.ariaLabel?e.aria.label(b.ariaLabel):e.Fragment(),e.on.click(I=>{I.preventDefault(),e.Value.get(b.disabled??!1)||e.Value.get(u)||(r?.(b.key),C.set(w))}),e.on.focus(()=>{C.set(w)}),b.label)})),e.When(o??!0,()=>e.Ensure(g,b=>{const w=b.$.key,v=w.map(p=>`${m}-tab-${p}`),f=w.map(p=>`${m}-panel-${p}`);return e.html.div(e.attr.class("bc-tabs__panels"),e.html.div(e.attr.class("bc-tabs__panel"),e.attr.id(f),e.attr.role("tabpanel"),e.attr.tabindex(0),e.aria.labelledby(v),e.MapSignal(b,p=>p.content())))})))}function ka(t){return j.Overlay((n,a)=>{let r=a;const l=()=>r();return t(u=>{const{size:c="md",side:o="right",dismissable:d=!0,showCloseButton:m=!0,onClose:C,overlayEffect:g="opaque",container:y="body",header:b,body:w,footer:v}=u;r=a;const f=e.prop("capturing");e.Value.on(d,I=>{f.set(I?"capturing":"non-capturing")});const p=e.computedOf(b!=null,m)((I,P)=>I||P),V=e.WithElement(I=>{const P=j.useAnimatedElementToggle({initialStatus:"closed",element:I});P.listenOnClosed(()=>{a()}),r=()=>{P.close()},fe.g(()=>P.open());const k=_.sessionId("drawer"),L=b!=null?`${k}-header`:void 0,B=`${k}-body`;return e.html.div(e.attr.class(e.computedOf(c,o,P.status)(($,F,Y)=>`bc-drawer bc-drawer--size-${$} bc-drawer--container-${y} bc-drawer--side-${F} bc-drawer--status-${Y}`)),e.attr.role("dialog"),e.aria.modal(!0),...L?[e.aria.labelledby(L)]:[],e.aria.describedby(B),e.attr.tabindex(-1),e.attr.id(k),e.dataAttr.focusTrap("true"),j.FocusTrap({active:!0,escapeDeactivates:!1,initialFocus:()=>document.querySelector(`#${k} [aria-label="Close drawer"]`)||null}),e.on.mousedown($=>$.stopPropagation()),e.MapSignal(p,$=>Ee($?{header:e.html.div(e.attr.class("bc-drawer__header"),e.html.div(e.attr.id(L),b),e.When(m,()=>e.Use(h.BeatUII18n,F=>_.CloseButton({size:"sm",onClick:l,label:F.$.closeDrawer})))),body:e.html.div(e.attr.class("bc-drawer__body"),e.attr.id(B),w),footer:v&&e.html.div(e.attr.class("bc-drawer__footer"),v)}:{body:e.html.div(e.attr.class("bc-drawer__body"),e.attr.id(B),w),footer:v&&e.html.div(e.attr.class("bc-drawer__footer"),v)})))});n({mode:f,effect:g??"opaque",container:y,content:V,onClickOutside:()=>{C?.(),l()},onEscape:()=>{C?.(),l()}})},()=>{l()})})}function Ia(t){const n={up:"M0 16 L8 10 L16 16 Z",down:"M0 0 L8 6 L16 0 Z",left:"M16 0 L10 8 L16 16 Z",right:"M0 0 L6 8 L0 16 Z"};return e.svg.svg(e.svgAttr.viewBox("0 0 16 16"),e.svg.path(e.svgAttr.d(t.map(a=>n[a]))))}function xa(t){const{content:n,placement:a="top",showDelay:r=250,hideDelay:l=500,mainAxisOffset:i=8,crossAxisOffset:s=0,showOn:u="hover-focus"}=t,c=_.sessionId("tooltip");return e.Fragment(e.aria.describedby(c),ye({content:()=>e.Fragment(e.attr.class("bc-tooltip"),e.attr.role("tooltip"),e.attr.id(c),n),placement:a,showDelay:r,hideDelay:l,mainAxisOffset:i,crossAxisOffset:s,showOn:u,closable:!0,role:"tooltip",arrow:o=>{const d=o.map(({placement:m})=>m.includes("top")?"down":m.includes("bottom")?"up":m.includes("left")?"right":m.includes("right")?"left":"up");return e.Fragment(e.attr.class("bc-tooltip__arrow"),e.attr.class(d.map(m=>`bc-tooltip__arrow-${m}`)),e.style.transform(o.map(({x:m,y:C})=>m==null&&C==null?"":m!=null?`translate(${m}px, 0)`:`translate(0, ${C}px)`)),Ia(d))}}))}function Ta(t,n,a,r,l,i){const s=h.backgroundValue(t,"solid","light"),u=h.backgroundValue(t,"solid","dark");return[`--ribbon-bg: ${s.backgroundColor}`,`--ribbon-text: ${s.textColor}`,`--ribbon-bg-dark: ${u.backgroundColor}`,`--ribbon-text-dark: ${u.textColor}`,`--ribbon-inset: ${_e(n)}`,`--ribbon-offset: ${_e(a)}`,`--ribbon-width: ${_e(r)}`,`--ribbon-angle: ${l}deg`,`--ribbon-corner: ${i}`].join("; ")}function _e(t){return t==null?null:typeof t=="number"?`${t}px`:t}function Oa({color:t="primary",class:n,inset:a=0,offset:r=40,width:l=100,angle:i=45,corner:s="top-end"},...u){return e.html.div(e.attr.class("bc-ribbon"),e.attr.style(e.computedOf(t,a,r,l,i,s)(Ta)),e.attr.class(n),...u)}function Pa(t,n){const{dismissable:a=!0,showCloseButton:r=!0,overlayEffect:l="opaque",container:i="body",padding:s=32}=t;return j.Overlay((u,c)=>{let o=()=>{};return n(C=>{o=c;const g=e.prop(typeof a!="boolean"||a?"capturing":"non-capturing");let y=typeof a=="boolean"?a:!0;e.Value.on(a,w=>{y=w,g.set(w?"capturing":"non-capturing")});const b=e.html.div(e.attr.class("bc-lightbox"),e.When(r,()=>e.Use(h.BeatUII18n,w=>e.html.div(e.attr.class("bc-lightbox__close"),_.CloseButton({size:"md",label:w.$.closeModal,onClick:()=>{o(),c()}}))),()=>null),e.html.div(e.attr.class("bc-lightbox__viewport"),e.attr.style(e.computedOf(s)(w=>`padding:${typeof w=="number"?w+"px":w}`)),e.html.div(e.attr.class("bc-lightbox__content"),C)));u({mode:g,effect:l??"opaque",container:i,content:b,onClickOutside:()=>{y&&(o(),c())},onEscape:()=>{y&&(o(),c())}})},()=>{o(),c()})})}function Da(t,n){const a=["bc-announcement-bar"];return t&&a.push("bc-announcement-bar--dismissible"),n&&n.length>0&&a.push(n),a.join(" ")}function _a(t){return`--announcement-bar-bg-color: ${q.getColorVar(t,600)}`}function La({color:t="primary",icon:n,closable:a=!1,onDismiss:r,class:l},...i){const s=e.prop(!0);return e.When(s,()=>{const u=e.Value.map(a,c=>!!c||r!=null);return e.html.div(e.attr.class(e.computedOf(u,l)((c,o)=>Da(c,o))),e.attr.style(e.Value.map(t,c=>_a(c))),e.html.div(e.attr.class("bc-announcement-bar__content"),e.When(e.Value.map(n,c=>c!=null),()=>e.html.div(e.attr.class("bc-announcement-bar__icon"),h.Icon({icon:n,size:"sm",accessibility:"decorative"}))),e.html.div(e.attr.class("bc-announcement-bar__text"),...i),e.When(u,()=>e.html.div(e.attr.class("bc-announcement-bar__close"),_.CloseButton({size:"xs",color:"white",onClick:()=>{s.set(!1),r?.()}})))))})}function $a(t){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\//i.test(t)}let Ce=null;function Ea(){return typeof window<"u"&&window.YT?.Player?Promise.resolve(window.YT):Ce||(Ce=new Promise(t=>{const n=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{n?.(),t(window.YT)};const a=document.createElement("script");a.src="https://www.youtube.com/iframe_api",a.async=!0,document.head.appendChild(a)}),Ce)}function Ba(t){const{url:n,playing:a=!1,loop:r=!1,controls:l=!1,volume:i=1,muted:s=!1,playbackRate:u=1,pip:c=!1,playsinline:o=!0,width:d,height:m,progressInterval:C=1e3,seekTo:g,config:y,onReady:b,onStart:w,onPlay:v,onPause:f,onBuffer:p,onBufferEnd:V,onEnded:I,onError:P,onDuration:x,onSeek:k,onProgress:L,onPlaybackRateChange:B,onPlaybackQualityChange:$}=t;function F(O){return/\.m3u8(\?|$)/i.test(O)}function Y(O){try{const E=O.canPlayType("application/vnd.apple.mpegurl");return E==="probably"||E==="maybe"}catch{return!1}}const M=e.prop("file");let N=null,W=null,Q=null;function se(){try{Q?.destroy()}catch{}Q=null}const z=[];z.push(e.Value.on(n,O=>{typeof O=="string"&&O.length>0&&$a(O)?M.value="youtube":(M.value="file",N&&X())}));async function X(){const O=N;if(!O)return;const E=e.Value.get(n);if(typeof E!="string"||E.length===0)return;se();const U=y?.file?.forceHLS??!1;if(F(E)||U){if(Y(O)){O.setAttribute("src",E);try{O.load()}catch{}return}if(typeof window>"u")return;try{const G=await Promise.resolve().then(()=>require("./hls.light.min-D3hUMpII.cjs")).then(oe=>oe.hls_light_min),ge=G;let de=ge.default??ge.Hls??G;for(let oe=0;oe<3&&(typeof de=="object"&&de!=null&&"default"in de);oe++)de=de.default;if(typeof de=="function"){const oe=de;if(typeof oe.isSupported=="function"&&oe.isSupported()){O.removeAttribute("src");try{O.load()}catch{}const Te=new oe(y?.hls);Q=Te,Te.attachMedia(O),Te.loadSource(E)}else{O.setAttribute("src",E);try{O.load()}catch{}}}else{O.setAttribute("src",E);try{O.load()}catch{}}}catch(G){P?.(G),O.setAttribute("src",E);try{O.load()}catch{}}return}O.setAttribute("src",E);try{O.load()}catch{}}function re(){W?.();const O=e.Value.get(C)??1e3;W=fe.x(()=>{const E=N;if(!E)return;const U=E.duration||0,G=E.currentTime||0,ge=E.buffered?.length?E.buffered.end(E.buffered.length-1):0;L?.({played:U>0?G/U:0,playedSeconds:G,loaded:U>0?Math.min(ge,U)/U:0,loadedSeconds:Math.min(ge,U)})},O)}function le(O){if(O!=null)return typeof O=="number"?`${O}px`:O}const pe=e.html.video(e.WithElement(O=>{N=O,b?.();try{N.playbackRate=e.Value.get(u)??1}catch{}N.muted=!!(e.Value.get(s)??!1),N.loop=!!(e.Value.get(r)??!1),N.controls=!!(e.Value.get(l)??!1),N.playsInline!=null&&(!!(e.Value.get(o)??!0)?N.setAttribute("playsinline",""):N.removeAttribute("playsinline")),e.Value.get(a)&&(N.play?.().catch(()=>{}),w?.());try{const E=!!(e.Value.get(c)??!1),U=document,G=N;E?typeof G.requestPictureInPicture=="function"&&U.pictureInPictureElement!==N&&G.requestPictureInPicture().catch(()=>{}):U.pictureInPictureElement===N&&typeof U.exitPictureInPicture=="function"&&U.exitPictureInPicture().catch(()=>{})}catch{}re(),X()}),e.style.width(e.Value.map(d,le)),e.style.height(e.Value.map(m,le)),e.on.play(()=>v?.()),e.on.playing(()=>{w?.(),V?.()}),e.on.pause(()=>f?.()),e.on.waiting(()=>p?.()),e.on.canplay(()=>{const O=N?.duration;O!=null&&Number.isFinite(O)&&x?.(O)}),e.on.ended(()=>I?.()),e.on.error(O=>{Q||P?.(O)}));let me=null,R=null,ue=null;function ce(){const O=e.Value.get(n);!me||typeof O!="string"||Ea().then(E=>{const U=$t(O);if(U){if(R){R.loadVideoById({videoId:U});return}R=new E.Player(me,{videoId:U,playerVars:Aa(t),events:{onReady:()=>{b?.(),D(),e.Value.get(a)&&w?.(),xe()},onStateChange:G=>{switch(G.data){case E.PlayerState.PLAYING:v?.(),V?.();break;case E.PlayerState.PAUSED:f?.();break;case E.PlayerState.BUFFERING:p?.();break;case E.PlayerState.ENDED:I?.();break}},onError:G=>P?.(G),onPlaybackRateChange:G=>B?.(G.data),onPlaybackQualityChange:G=>$?.(G.data)}})}})}function xe(){ue?.();const O=e.Value.get(C)??1e3;ue=fe.x(()=>{if(!R)return;const E=R.getDuration?.()??0,U=R.getCurrentTime?.()??0,G=R.getVideoLoadedFraction?.()??0;L?.({played:E>0?U/E:0,playedSeconds:U,loaded:G,loadedSeconds:G*E})},O)}function D(){if(!R)return;try{const U=e.Value.get(u)??1;R.setPlaybackRate?.(U)}catch{}try{const U=Math.round(Math.min(Math.max(e.Value.get(i)??1,0),1)*100);R.setVolume?.(U)}catch{}try{e.Value.get(s)??!1?R.mute?.():R.unMute?.()}catch{}e.Value.get(a)??!1?R.playVideo?.():R.pauseVideo?.();const E=e.Value.get(g);typeof E=="number"&&Number.isFinite(E)&&(R.seekTo?.(E,!0),k?.(E))}const A=e.html.div(e.WithElement(O=>{me=O,ce(),b?.()}));z.push(e.Value.on(n,()=>{M.value==="youtube"&&ce()})),z.push(e.Value.on(a,()=>{M.value==="file"&&N?e.Value.get(a)?N.play?.().catch(()=>{}):N.pause?.():M.value==="youtube"&&R&&(e.Value.get(a)?R.playVideo?.():R.pauseVideo?.())})),z.push(e.Value.on(i,()=>{if(M.value==="file"&&N)N.volume=Math.min(Math.max(e.Value.get(i)??1,0),1);else if(M.value==="youtube"&&R){const O=Math.round(Math.min(Math.max(e.Value.get(i)??1,0),1)*100);R.setVolume?.(O)}})),z.push(e.Value.on(s,()=>{M.value==="file"&&N?N.muted=!!e.Value.get(s):M.value==="youtube"&&R&&(e.Value.get(s)?R.mute?.():R.unMute?.())})),z.push(e.Value.on(u,()=>{if(M.value==="file"&&N)try{N.playbackRate=e.Value.get(u)??1}catch{}else M.value==="youtube"&&R&&R.setPlaybackRate?.(e.Value.get(u)??1)})),z.push(e.Value.on(c,async()=>{if(!(M.value!=="file"||!N))try{const O=!!(e.Value.get(c)??!1),E=document,U=N;O?typeof U.requestPictureInPicture=="function"&&E.pictureInPictureElement!==N&&await U.requestPictureInPicture()?.catch(()=>{}):E.pictureInPictureElement===N&&typeof E.exitPictureInPicture=="function"&&await E.exitPictureInPicture()?.catch(()=>{})}catch{}})),z.push(e.Value.on(g??null,()=>{const O=e.Value.get(g);if(O!=null)if(M.value==="file"&&N)try{N.currentTime=O,k?.(O)}catch{}else M.value==="youtube"&&R&&(R.seekTo?.(O,!0),k?.(O))}));const Z=e.html.div(e.attr.class("bc-base-video"),e.style.width(e.Value.map(d,le)),e.style.height(e.Value.map(m,le)),e.When(e.Value.map(M,O=>O==="youtube"),()=>A,()=>pe));return e.Fragment(e.OnDispose(...z),Z)}function $t(t){const n=/[?&]v=([^&#]+)/.exec(t);if(n)return n[1];const a=/youtu\.be\/([^?&#]+)/.exec(t);if(a)return a[1];const r=/youtube\.com\/embed\/([^?&#]+)/.exec(t);return r?r[1]:null}function Aa(t){const n={autoplay:e.Value.get(t.playing)??!1?1:0,controls:e.Value.get(t.controls)??!1?1:0,rel:0,playsinline:e.Value.get(t.playsinline)??!0?1:0,modestbranding:1},a=e.Value.get(t.loop)??!1,r=e.Value.get(t.url),l=typeof r=="string"?$t(r):null;return a&&l&&(n.loop=1,n.playlist=l),n}const qe="https://cdn.jsdelivr.net/npm/pdfjs-dist@5.4.394/",Na=t=>{if(!t||typeof t!="object")return!1;const n=t;return!!(n.getDocument&&typeof n.getDocument=="function")};function Fa(){if(typeof window>"u")return;const n=window.pdfjsLib;n?.GlobalWorkerOptions?.workerSrc||n?.GlobalWorkerOptions&&(n.GlobalWorkerOptions.workerSrc=`${qe}build/pdf.worker.min.mjs`)}const Ma=t=>new Promise((n,a)=>{const r=document.createElement("script");r.type="module",r.src=t,r.onload=()=>n(),r.onerror=()=>a(new Error(`Failed to load script: ${t}`)),document.head.appendChild(r)}),Ua=async()=>{const t=window;if(t.pdfjsLib&&Na(t.pdfjsLib))return t.pdfjsLib;if(await Ma(`${qe}build/pdf.min.mjs`),await new Promise(n=>setTimeout(n,100)),!t.pdfjsLib)throw new Error("PDF.js failed to initialize after loading");return t.pdfjsLib};let Le=null,nt=!1;async function Ra(){if(Le)return Le;!nt&&typeof window<"u"&&(Fa(),nt=!0);const t=await Ua();return Le=t,t.GlobalWorkerOptions&&(t.GlobalWorkerOptions.workerSrc=`${qe}build/pdf.worker.min.mjs`),t}function Wa(t,n){if(t.byteLength!==n.byteLength)return!1;const a=t.byteLength,r=new DataView(t.buffer,t.byteOffset,a),l=new DataView(n.buffer,n.byteOffset,a),i=a>>>2,s=a&3;for(let u=0;u<i;u++)if(r.getUint32(u*4)!==l.getUint32(u*4))return!1;for(let u=a-s;u<a;u++)if(t[u]!==n[u])return!1;return!0}function Ha(t,n){if(t.byteLength!==n.byteLength)return!1;const a=t.byteLength,r=a>>>2,l=new Uint32Array(t,0,r),i=new Uint32Array(n,0,r);for(let o=0;o<r;o++)if(l[o]!==i[o])return!1;const s=a&3,u=new Uint8Array(t,r*4,s),c=new Uint8Array(n,r*4,s);for(let o=0;o<s;o++)if(u[o]!==c[o])return!1;return!0}function ja(t,n){try{return typeof t=="string"&&typeof n=="string"?t===n:t instanceof Uint8Array&&n instanceof Uint8Array?Wa(t,n):t instanceof ArrayBuffer&&n instanceof ArrayBuffer?Ha(t,n):!1}catch{return!1}}function $e(t){return typeof t=="string"?t:t instanceof Uint8Array?t.slice():t instanceof ArrayBuffer?t.slice(0):t}function za({source:t,page:n=1,fit:a="width",scale:r=1,rotation:l=0,quality:i=2,renderTextLayer:s=!0,renderAnnotationLayer:u=!1,onPageChange:c,onLoadComplete:o},...d){const m=Ra();let C=$e(e.Value.get(t)),g=null,y=e.Value.get(n);return e.Use(h.BeatUII18n,b=>e.Fragment(e.OnDispose(()=>{g!=null&&(g.destroy(),g=null)}),J.ElementRect(w=>{const v=e.delaySignal(w.map(f=>f==null?null:{width:f.width,height:f.height},(f,p)=>f!=null&&p!=null&&f.width===p.width&&f.height===p.height),100);return e.Ensure(v,f=>J.Query({request:e.computedOf(t,n,a,r,l,i,s,u,f)((p,V,I,P,x,k,L,B,$)=>({source:p,page:V,fit:I,scale:P,rotation:x,quality:k,renderTextLayer:L,renderAnnotationLayer:B,containerWidth:$.width,containerHeight:$.height})),load:async({request:p})=>{const V=await m,I=p.source,P=$e(I),x=$e(I);(g==null||!ja(C,P))&&(g!=null&&(g.destroy(),g=null),C=P,g=await V.getDocument(x).promise,o?.({numPages:g.numPages}));const k=p.page<1||p.page>g.numPages?1:p.page;c!=null&&k!==y&&(y=k,c(k));const L=await g.getPage(k);let B;if(p.fit==="none")B=p.scale;else{const M=L.getViewport({scale:1,rotation:p.rotation}),N=M.width/M.height,W=p.containerWidth/p.containerHeight;switch(p.fit){case"width":B=p.containerWidth/M.width;break;case"height":B=p.containerHeight/M.height;break;case"contain":B=Math.min(p.containerWidth/M.width,p.containerHeight/M.height);break;case"cover":N>W?B=p.containerHeight/M.height:B=p.containerWidth/M.width;break}}const $=L.getViewport({scale:B,rotation:p.rotation}),F=L.getViewport({scale:B*p.quality,rotation:p.rotation});let Y=null;return{pdfWidth:$.width,pdfHeight:$.height,canvasWidth:Math.floor($.width),canvasHeight:Math.floor($.height),highResWidth:Math.floor(F.width),highResHeight:Math.floor(F.height),render:async(M,N,W)=>{if(Y)try{Y.cancel(),await Y.promise.catch(()=>{})}catch{}M.width=F.width,M.height=F.height,M.style.width=`${$.width}px`,M.style.height=`${$.height}px`;const Q=M.getContext("2d");if(!Q)throw new Error("Failed to get canvas context");const se=L.render({canvasContext:Q,canvas:M,viewport:F});Y=se;try{await se.promise}catch(z){if((z instanceof Error?z.name:z?.name)!=="RenderingCancelledException")throw z;return}finally{Y===se&&(Y=null)}if(p.renderTextLayer&&N!=null){N.innerHTML="";try{const z=await L.getTextContent(),X=V.TextLayer;X!=null&&await new X({textContentSource:z,container:N,viewport:$}).render()}catch(z){console.warn("Failed to render text layer:",z)}}if(p.renderAnnotationLayer&&W!=null){W.innerHTML="",W.style.width=`${$.width}px`,W.style.height=`${$.height}px`;try{const z=await L.getAnnotations(),X=V.AnnotationLayer;if(X!=null&&z.length>0){const re={getDestinationHash:()=>"",getAnchorUrl:pe=>pe,executeNamedAction:()=>{},executeSetOCGState:()=>{},cachePageRef:()=>{}};await new X({div:W,page:L,viewport:$,linkService:re,annotationStorage:null}).render({viewport:$,div:W,annotations:z,page:L,linkService:re,renderForms:!0})}}catch(z){console.warn("Failed to render annotation layer:",z)}}}}},convertError:p=>p instanceof Error?p.message:JSON.stringify(p),pending:()=>e.html.div(e.attr.class("bc-pdf-page-viewer__loading"),h.Icon({icon:"line-md:loading-twotone-loop",size:"lg"}),e.html.span(e.attr.class("bc-pdf-page-viewer__loading-text"),b.map(p=>p.pdfPageViewer.loading))),failure:({error:p})=>e.html.div(e.attr.class("bc-pdf-page-viewer__error"),h.Icon({icon:"line-md:alert-circle",size:"lg",color:"danger"}),e.html.span(e.attr.class("bc-pdf-page-viewer__error-text"),p)),success:({value:p})=>e.html.div(e.attr.class(e.Value.map(a,V=>V==="none"?"bc-pdf-page-viewer":`bc-pdf-page-viewer bc-pdf-page-viewer--fit-${V}`)),e.html.div(e.attr.class("bc-pdf-page-viewer__content"),e.When(e.Value.map(a,V=>V==="none"),()=>e.attr.style(p.$.canvasWidth.map(V=>`width: ${V}px; height: ${p.value.canvasHeight}px;`)),()=>e.Fragment()),e.html.canvas(e.attr.class("bc-pdf-page-viewer__canvas"),e.attr.width(p.$.canvasWidth.map(String)),e.attr.height(p.$.canvasHeight.map(String)),...d),e.html.div(e.attr.class("bc-pdf-page-viewer__text-layer")),e.html.div(e.attr.class("bc-pdf-page-viewer__annotation-layer"))),e.WithElement(V=>{const I=V.querySelector(".bc-pdf-page-viewer__canvas"),P=V.querySelector(".bc-pdf-page-viewer__text-layer"),x=V.querySelector(".bc-pdf-page-viewer__annotation-layer");return e.Value.on(p,async k=>{await k.render(I,P,x)}),e.Empty}))}))})))}Object.defineProperty(exports,"Use",{enumerable:!0,get:()=>e.Use});exports.BeatUII18n=h.BeatUII18n;exports.Button=h.Button;exports.CommonInputAttributes=h.CommonInputAttributes;exports.Icon=h.Icon;exports.InputContainer=h.InputContainer;exports.InputIcon=h.InputIcon;exports.LOGICAL_PROPERTY_MAP=h.LOGICAL_PROPERTY_MAP;exports.Locale=h.Locale;exports.TextInput=h.TextInput;exports.defaultLocale=h.defaultLocale;exports.defaultMessages=h.defaultMessages;exports.formatFileSize=h.formatFileSize;exports.generateButtonClasses=h.generateButtonClasses;exports.generateButtonStyles=h.generateButtonStyles;exports.generateInputContainerInputClasses=h.generateInputContainerInputClasses;exports.getDirectionClassName=h.getDirectionClassName;exports.getDirectionFromLocale=h.getDirectionFromLocale;exports.getIconLocally=h.getIconLocally;exports.getOppositeDirection=h.getOppositeDirection;exports.getPhysicalProperty=h.getPhysicalProperty;exports.isIndexedDBAvailable=h.isIndexedDBAvailable;exports.isRTLLocale=h.isRTLLocale;exports.makeI18nProvider=h.makeI18nProvider;exports.makeMessages=h.makeMessages;exports.resolveDirection=h.resolveDirection;exports.storeIconLocally=h.storeIconLocally;exports.backgroundConfig=q.backgroundConfig;exports.bgColors=q.bgColors;exports.borderColors=q.borderColors;exports.colorShades=q.colorShades;exports.colors=q.colors;exports.generateColorVariables=q.generateColorVariables;exports.generateCoreColorVariables=q.generateCoreColorVariables;exports.generateSemanticColorVariables=q.generateSemanticColorVariables;exports.getColorVar=q.getColorVar;exports.getColorVarName=q.getColorVarName;exports.interactiveColors=q.interactiveColors;exports.normalizeColorName=q.normalizeColorName;exports.resolveSemanticColorMap=q.resolveSemanticColorMap;exports.semanticColorNames=q.semanticColorNames;exports.semanticColors=q.semanticColors;exports.textColors=q.textColors;exports.themeColorNames=q.themeColorNames;exports.baseSpacing=T.baseSpacing;exports.beatuiPreset=T.beatuiPreset;exports.breakpoints=T.breakpoints;exports.changeFontSize=T.changeFontSize;exports.createBeatuiPreset=T.createBeatuiPreset;exports.fontFamily=T.fontFamily;exports.fontSize=T.fontSize;exports.fontWeight=T.fontWeight;exports.generateAllTokenVariables=T.generateAllTokenVariables;exports.generateBreakpointVariables=T.generateBreakpointVariables;exports.generateCoreTokenVariables=T.generateCoreTokenVariables;exports.generateFontFamilyOverrideVariables=T.generateFontFamilyOverrideVariables;exports.generateMotionVariables=T.generateMotionVariables;exports.generateRadiusVariables=T.generateRadiusVariables;exports.generateSemanticFontVariables=T.generateSemanticFontVariables;exports.generateSemanticMotionVariables=T.generateSemanticMotionVariables;exports.generateSemanticRadiusVariables=T.generateSemanticRadiusVariables;exports.generateSemanticShadowVariables=T.generateSemanticShadowVariables;exports.generateSemanticSpacingVariables=T.generateSemanticSpacingVariables;exports.generateSemanticTextShadowVariables=T.generateSemanticTextShadowVariables;exports.generateSemanticTokenVariables=T.generateSemanticTokenVariables;exports.generateShadowVariables=T.generateShadowVariables;exports.generateSpacingVariables=T.generateSpacingVariables;exports.generateTextShadowVariables=T.generateTextShadowVariables;exports.generateTypographyVariables=T.generateTypographyVariables;exports.generateZIndexVariables=T.generateZIndexVariables;exports.getBreakpointMediaQuery=T.getBreakpointMediaQuery;exports.getBreakpointVar=T.getBreakpointVar;exports.getBreakpointVarName=T.getBreakpointVarName;exports.getFontFamilyVar=T.getFontFamilyVar;exports.getFontFamilyVarName=T.getFontFamilyVarName;exports.getFontSizeVar=T.getFontSizeVar;exports.getFontSizeVarName=T.getFontSizeVarName;exports.getFontWeightVar=T.getFontWeightVar;exports.getFontWeightVarName=T.getFontWeightVarName;exports.getLetterSpacingVar=T.getLetterSpacingVar;exports.getLetterSpacingVarName=T.getLetterSpacingVarName;exports.getLineHeightVar=T.getLineHeightVar;exports.getLineHeightVarName=T.getLineHeightVarName;exports.getMotionDurationVar=T.getMotionDurationVar;exports.getMotionDurationVarName=T.getMotionDurationVarName;exports.getMotionEasingVar=T.getMotionEasingVar;exports.getMotionEasingVarName=T.getMotionEasingVarName;exports.getRadiusMediaQuery=T.getRadiusMediaQuery;exports.getRadiusVar=T.getRadiusVar;exports.getRadiusVarName=T.getRadiusVarName;exports.getSemanticFontVar=T.getSemanticFontVar;exports.getSemanticFontVarName=T.getSemanticFontVarName;exports.getSemanticMotionVarName=T.getSemanticMotionVarName;exports.getSemanticRadiusVarName=T.getSemanticRadiusVarName;exports.getSemanticShadowVarName=T.getSemanticShadowVarName;exports.getSemanticSpacingVarName=T.getSemanticSpacingVarName;exports.getSemanticTextShadowVarName=T.getSemanticTextShadowVarName;exports.getShadowVar=T.getShadowVar;exports.getShadowVarName=T.getShadowVarName;exports.getSpacingVar=T.getSpacingVar;exports.getSpacingVarName=T.getSpacingVarName;exports.getTextShadowVar=T.getTextShadowVar;exports.getTextShadowVarName=T.getTextShadowVarName;exports.getTokenValue=T.getTokenValue;exports.getZIndexVar=T.getZIndexVar;exports.getZIndexVarName=T.getZIndexVarName;exports.letterSpacing=T.letterSpacing;exports.lineHeight=T.lineHeight;exports.motionDurations=T.motionDurations;exports.motionEasings=T.motionEasings;exports.radius=T.radius;exports.semanticFontNames=T.semanticFontNames;exports.semanticMotionNames=T.semanticMotionNames;exports.semanticRadiusNames=T.semanticRadiusNames;exports.semanticShadowNames=T.semanticShadowNames;exports.semanticSpacingNames=T.semanticSpacingNames;exports.semanticTextShadowNames=T.semanticTextShadowNames;exports.shadows=T.shadows;exports.spacing=T.spacing;exports.textShadows=T.textShadows;exports.zIndex=T.zIndex;exports.ArrayController=_.ArrayController;exports.BaseControl=_.BaseControl;exports.BaseMappedControl=_.BaseMappedControl;exports.CheckboxInput=_.CheckboxInput;exports.CloseButton=_.CloseButton;exports.Control=_.Control;exports.Controller=_.Controller;exports.DangerLabel=_.DangerLabel;exports.EmailInput=_.EmailInput;exports.EmphasisLabel=_.EmphasisLabel;exports.InputWrapper=_.InputWrapper;exports.Label=_.Label;exports.MappedControl=_.MappedControl;exports.MutedLabel=_.MutedLabel;exports.Notice=_.Notice;exports.ObjectController=_.ObjectController;exports.PasswordInput=_.PasswordInput;exports.RequiredSymbol=_.RequiredSymbol;exports.Stack=_.Stack;exports.connectCommonAttributes=_.connectCommonAttributes;exports.connectNumberInput=_.connectNumberInput;exports.connectStringInput=_.connectStringInput;exports.convertStandardSchemaIssues=_.convertStandardSchemaIssues;exports.convertStandardSchemaPathToPath=_.convertStandardSchemaPathToPath;exports.makeMapValidation=_.makeMapValidation;exports.makeOnBlurHandler=_.makeOnBlurHandler;exports.makeOnChangeHandler=_.makeOnChangeHandler;exports.parsePath=_.parsePath;exports.pathToString=_.pathToString;exports.sessionId=_.sessionId;exports.standardSchemaResultToValidation=_.standardSchemaResultToValidation;exports.taskToValidation=_.taskToValidation;exports.useController=_.useController;exports.useForm=_.useForm;exports.wrapSegment=_.wrapSegment;exports.AnimatedToggle=j.AnimatedToggle;exports.AnimatedToggleClass=j.AnimatedToggleClass;exports.BooleanValidator=j.BooleanValidator;exports.ConfirmModal=j.ConfirmModal;exports.FocusTrap=j.FocusTrap;exports.Modal=j.Modal;exports.ObjectValidator=j.ObjectValidator;exports.Overlay=j.Overlay;exports.StringValidator=j.StringValidator;exports.boolean=j.boolean;exports.createStandardSchema=j.createStandardSchema;exports.object=j.object;exports.string=j.string;exports.useAnimatedElementToggle=j.useAnimatedElementToggle;exports.useAnimatedToggle=j.useAnimatedToggle;exports.useFocusTrap=j.useFocusTrap;exports.useTimedToggle=j.useTimedToggle;exports.Theme=be.Theme;exports.ThemeAppearance=be.ThemeAppearance;exports.Base64Input=S.Base64Input;exports.Base64sInput=S.Base64sInput;exports.BaseListControl=S.BaseListControl;exports.BaseNativeSelectControl=S.BaseNativeSelectControl;exports.Card=S.Card;exports.ColorSwatchInput=S.ColorSwatchInput;exports.EditableText=S.EditableText;exports.Expando=S.Expando;exports.FilesInput=S.FilesInput;exports.Group=S.Group;exports.ListControl=S.ListControl;exports.ListInput=S.ListInput;exports.MaskInput=S.MaskInput;exports.NativeSelect=S.NativeSelect;exports.NativeSelectControl=S.NativeSelectControl;exports.NullableDateInput=S.NullableDateInput;exports.NullableDateTimeInput=S.NullableDateTimeInput;exports.NullableDurationInput=S.NullableDurationInput;exports.NullableEmailInput=S.NullableEmailInput;exports.NullableNumberInput=S.NullableNumberInput;exports.NullablePasswordInput=S.NullablePasswordInput;exports.NullableRatingInput=S.NullableRatingInput;exports.NullableSliderInput=S.NullableSliderInput;exports.NullableTextArea=S.NullableTextArea;exports.NullableTextInput=S.NullableTextInput;exports.NullableUUIDInput=S.NullableUUIDInput;exports.NullableUrlInput=S.NullableUrlInput;exports.NumberInput=S.NumberInput;exports.RatingInput=S.RatingInput;exports.SegmentedInput=S.SegmentedInput;exports.SliderInput=S.SliderInput;exports.Switch=S.Switch;exports.TextArea=S.TextArea;exports.UUIDInput=S.UUIDInput;exports.UnionController=S.UnionController;exports.UnstyledDropZone=S.UnstyledDropZone;exports.UrlInput=S.UrlInput;exports.WithTemporal=S.WithTemporal;exports.emitExpando=S.emitExpando;exports.emitOptionExpando=S.emitOptionExpando;exports.emptyToNull=S.emptyToNull;exports.ensureTemporal=S.ensureTemporal;exports.fileToBase64=S.fileToBase64;exports.formatColor=S.formatColor;exports.getContrastRatio=S.getContrastRatio;exports.hexToRgb=S.hexToRgb;exports.hslToRgb=S.hslToRgb;exports.hwbToRgb=S.hwbToRgb;exports.isValidColor=S.isValidColor;exports.isValidHexColor=S.isValidHexColor;exports.isValidHslColor=S.isValidHslColor;exports.isValidRgbColor=S.isValidRgbColor;exports.isValidRgbaColor=S.isValidRgbaColor;exports.linearToSrgb=S.linearToSrgb;exports.mulberry32=S.mulberry32;exports.normalizeHexColor=S.normalizeHexColor;exports.nullToEmpty=S.nullToEmpty;exports.oklchToRgb=S.oklchToRgb;exports.parseAnyColor=S.parseAnyColor;exports.resolveEffectiveFormat=S.resolveEffectiveFormat;exports.rgbToHex=S.rgbToHex;exports.rgbToHsl=S.rgbToHsl;exports.rgbToHwb=S.rgbToHwb;exports.rgbToOklch=S.rgbToOklch;exports.srgbToLinear=S.srgbToLinear;exports.toRgbaString=S.toRgbaString;exports.transformEmptyStringToUndefined=S.transformEmptyStringToUndefined;exports.transformNullToUndefined=S.transformNullToUndefined;exports.transformUndefinedToNull=S.transformUndefinedToNull;exports.LinkPortal=Et.LinkPortal;exports.Toolbar=he.Toolbar;exports.ToolbarButton=he.ToolbarButton;exports.ToolbarDivider=he.ToolbarDivider;exports.ToolbarGroup=he.ToolbarGroup;exports.ToolbarSpacer=he.ToolbarSpacer;exports.ActionCard=en;exports.AnnouncementBar=La;exports.AppShell=pn;exports.AppearanceSelector=lt;exports.Badge=Rt;exports.BaseComboboxControl=ft;exports.BaseComboboxTagsControl=xn;exports.BaseDropdownControl=dt;exports.BaseSelectTagsControl=kn;exports.BaseVideoPlayer=Ba;exports.BeatUI=ia;exports.BigintInput=En;exports.ButtonLink=ba;exports.Center=gn;exports.CenterH=mn;exports.Chips=je;exports.Collapse=st;exports.CollapsibleSidebarGroup=ya;exports.ColorController=wt;exports.ColorInput=Jt;exports.ComboboxControl=Cn;exports.ComboboxInput=mt;exports.ComboboxTagsControl=Tn;exports.ComboboxTagsInput=Ge;exports.DateInput=On;exports.DateTimeInput=Dn;exports.Drawer=ka;exports.DropdownBase=Re;exports.DropdownControl=wn;exports.DropdownInput=ct;exports.DurationInput=Xn;exports.EnsureControl=ea;exports.FileInput=_n;exports.Flyout=ye;exports.FormStatus=ta;exports.InstantInput=jn;exports.LazyNativeSelect=Ln;exports.Lightbox=Pa;exports.Link=xt;exports.LocaleSelector=ra;exports.Menu=We;exports.MenuItem=Sn;exports.MenuSeparator=He;exports.NativePdfPreview=sa;exports.NavigationLink=ga;exports.NineSliceScrollView=hn;exports.Notification=Vt;exports.NotificationProvider=Ze;exports.NotificationService=kt;exports.NotificationViewport=It;exports.NullableBigintInput=Bn;exports.NullableInstantInput=Gn;exports.NullableMaskInput=$n;exports.NullablePlainDateInput=Fn;exports.NullablePlainDateTimeInput=Wn;exports.NullablePlainMonthDayInput=Qn;exports.NullablePlainTimeInput=Un;exports.NullablePlainYearMonthInput=Jn;exports.NullableZonedDateTimeInput=Yn;exports.OpenGraph=pa;exports.Option=ae;exports.PDFJSPreview=ua;exports.PageDropZone=Wt;exports.PdfPageViewer=za;exports.PlainDateInput=Nn;exports.PlainDateTimeInput=Rn;exports.PlainMonthDayInput=Kn;exports.PlainTimeInput=Mn;exports.PlainYearMonthInput=qn;exports.Ribbon=Oa;exports.ScrollablePanel=Ee;exports.SelectTagsControl=In;exports.SelectTagsInput=ze;exports.Sidebar=ha;exports.SidebarActiveLink=Dt;exports.SidebarClickLink=_t;exports.SidebarContext=Ot;exports.SidebarGroup=Ne;exports.SidebarLink=Lt;exports.SidebarSeparator=va;exports.SidebarUrlLink=Pt;exports.Sink=vn;exports.StandaloneAppearanceSelector=Yt;exports.StylePortal=ca;exports.Table=zt;exports.Tabs=Va;exports.Tag=Me;exports.TagsInput=An;exports.Tooltip=xa;exports.WithBeatUIBreakpoint=it;exports.WithBeatUIElementBreakpoint=ln;exports.WithBreakpoint=Ue;exports.ZonedDateTimeInput=Zn;exports.colorInputOptionsFromController=aa;exports.compareBreakpoint=ot;exports.createColorController=na;exports.createLocationMatcher=Ie;exports.delaySignal=Bt;exports.downloadContent=At;exports.downloadFile=Ft;exports.downloadUrl=Fe;exports.downloadUrlAndMonitor=Nt;exports.findBreakpoint=an;exports.generateBadgeClasses=at;exports.generateBadgeStyles=rt;exports.generateLinkClasses=Be;exports.generateLinkStyles=Ae;exports.generateNotificationClasses=Ct;exports.generateNotificationStyles=St;exports.increaseSize=Ut;exports.isUrlMatch=Tt;
|