PageSourceSearch

https://songstory.ai/assets/button-D6tkpB8P.js

js songstory.ai collected 2026-10-05 13:58:30 UTC 12,973 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`7849f93a90294e7c3b3e0026b32c93a5e3e3db22`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`9722605e-644c-45e1-b6f4-2161fca03c01`,e._sentryDebugIdIdentifier=`sentry-dbid-9722605e-644c-45e1-b6f4-2161fca03c01`)}catch{}})();import{CC as e,bC as t,yC as n}from"./messages-DFCK9Ewt.js";import{n as r,t as i}from"./utils-A9Izb6aj.js";var a=e(t());function o(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var s=o(`https://base-ui.com/production-error`,`Base UI`),c={};function l(e,t){let n=a.useRef(c);return n.current===c&&(n.current=e(t)),n}function u(e,t,n,r){let i=l(f).current;return p(i,e,t,n,r)&&h(i,[e,t,n,r]),i.callback}function d(e){let t=l(f).current;return m(t,e)&&h(t,e),t.callback}function f(){return{callback:null,cleanup:null,refs:[]}}function p(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function m(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function h(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var ee=19;function g(e){return ee>=e}function _(e){if(!a.isValidElement(e))return null;let t=e,n=t.props;return(g(19)?n?.ref:t.ref)??null}function v(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function te(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ne(e,t){return typeof e==`function`?e(t):e}function re(e,t){return typeof e==`function`?e(t):e}var y={};function b(e,t,n,r,i){let a={...C(e,y)};return t&&(a=x(a,t)),n&&(a=x(a,n)),r&&(a=x(a,r)),i&&(a=x(a,i)),a}function ie(e){if(e.length===0)return y;if(e.length===1)return C(e[0],y);let t={...C(e[0],y)};for(let n=1;n<e.length;n+=1)t=x(t,e[n]);return t}function x(e,t){return S(t)?t(e):ae(e,t)}function ae(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=v(e.style,r);break;case`className`:e[n]=T(e.className,r);break;default:oe(n,r)?e[n]=se(e[n],r):e[n]=r}}return e}function oe(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function S(e){return typeof e==`function`}function C(e,t){return S(e)?e(t):e??y}function se(e,t){return t?e?n=>{if(ce(n)){let r=n;w(r);let i=t(r);return r.baseUIHandlerPrevented||e?.(r),i}let r=t(n);return e?.(n),r}:t:e}function w(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function T(e,t){return t?e?t+` `+e:t:e}function ce(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function le(){}var ue=Object.freeze([]),E=Object.freeze({}),de={style:{transition:`none`}},fe=`data-base-ui-click-trigger`,pe={fallbackAxisSide:`none`},me={fallbackAxisSide:`end`},he={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0};function D(e,t,n={}){let r=t.render,i=ge(t,n);return n.enabled===!1?null:ve(e,r,i,n.state??E)}function ge(e,t={}){let{className:n,style:r,render:i}=e,{state:a=E,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,f=l?ne(n,a):void 0,p=l?re(r,a):void 0,m=l?te(a,c):E,h=l?v(m,Array.isArray(s)?ie(s):s)??E:E;return typeof document<`u`&&(l?Array.isArray(o)?h.ref=d([h.ref,_(i),...o]):h.ref=u(h.ref,_(i),o):u(null,null)),l?(f!==void 0&&(h.className=T(h.className,f)),p!==void 0&&(h.style=v(h.style,p)),h):E}var _e=Symbol.for(`react.lazy`);function ve(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=b(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===_e&&(i=a.Children.toArray(t)[0]),a.cloneElement(i,e)}if(e&&typeof e==`string`)return ye(e,n);throw Error(s(8))}function ye(e,t){return e===`button`?(0,a.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,a.createElement)(`img`,{alt:``,...t,key:t.key}):a.createElement(e,t)}var O=a[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],be=O&&O!==a.useLayoutEffect?O:e=>e();function k(e){let t=l(xe).current;return t.next=e,be(t.effect),t.trampoline}function xe(){let e={next:void 0,callback:Se,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Se(){}function A(){return typeof window<`u`}function j(e){return P(e)?(e.nodeName||``).toLowerCase():`#document`}function M(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function N(e){return((P(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function P(e){return A()?e instanceof Node||e instanceof M(e).Node:!1}function F(e){return A()?e instanceof Element||e instanceof M(e).Element:!1}function I(e){return A()?e instanceof HTMLElement||e instanceof M(e).HTMLElement:!1}function L(e){return!A()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof M(e).ShadowRoot}function R(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ce(e){return/^(table|td|th)$/.test(j(e))}function z(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var we=/transform|translate|scale|rotate|perspective|filter/,Te=/paint|layout|strict|content/,B=e=>!!e&&e!==`none`,V;function H(e){let t=F(e)?G(e):e;return B(t.transform)||B(t.translate)||B(t.scale)||B(t.rotate)||B(t.perspective)||!U()&&(B(t.backdropFilter)||B(t.filter))||we.test(t.willChange||``)||Te.test(t.contain||``)}function Ee(e){let t=K(e);for(;I(t)&&!W(t);){if(H(t))return t;if(z(t))return null;t=K(t)}return null}function U(){return V??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),V}function W(e){return/^(html|body|#document)$/.test(j(e))}function G(e){return M(e).getComputedStyle(e)}function De(e){return F(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function K(e){if(j(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||L(e)&&e.host||N(e);return L(t)?t.host:t}function q(e){let t=K(e);return W(t)?e.ownerDocument?e.ownerDocument.body:e.body:I(t)&&R(t)?t:q(t)}function J(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=q(e),i=r===e.ownerDocument?.body,a=M(r);if(i){let e=Y(a);
1return t.concat(a,a.visualViewport||[],R(r)?r:[],e&&n?J(e):[])}else return t.concat(r,J(r,[],n))}function Y(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Oe={...a},X=typeof document<`u`?a.useLayoutEffect:()=>{},ke=a.createContext(void 0);function Z(e=!1){let t=a.useContext(ke);if(t===void 0&&!e)throw Error(s(16));return t}function Ae(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:o}=e,s=r&&t!==!1,c=r&&t===!1;return{props:a.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!o&&n&&(e.tabIndex=t?i:-1)),(o&&(t||s)||!o&&n)&&(e[`aria-disabled`]=n),o&&(!t||c)&&(e.disabled=n),e},[r,n,t,s,c,o,i])}}function je(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:o}=e,s=a.useRef(null),c=Z(!0),l=o??c!==void 0,{props:u}=Ae({focusableWhenDisabled:n,disabled:t,composite:l,tabIndex:r,isNativeButton:i}),d=a.useCallback(()=>{let e=s.current;Q(e)&&l&&t&&u.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,u.disabled,l]);return X(d,[d]),{getButtonProps:a.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...c}=e;return b({type:i?`button`:void 0,onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(w(e),o?.(e),e.baseUIHandlerPrevented))return;let r=e.target===e.currentTarget,a=e.currentTarget,s=Q(a),c=!i&&Me(a),u=r&&(i?s:!c),d=e.key===`Enter`,f=e.key===` `,p=a.getAttribute(`role`),m=p?.startsWith(`menuitem`)||p===`option`||p===`gridcell`;if(r&&l&&f){if(e.defaultPrevented&&m)return;e.preventDefault(),c||i&&s?(a.click(),e.preventBaseUIHandler()):u&&(n?.(e),e.preventBaseUIHandler());return}u&&(!i&&(f||d)&&e.preventDefault(),!i&&d&&n?.(e))},onKeyUp(e){if(!t){if(w(e),a?.(e),e.target===e.currentTarget&&i&&l&&Q(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!l&&e.key===` `&&n?.(e)}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?void 0:{role:`button`},u,c)},[t,u,l,i]),buttonRef:k(e=>{s.current=e,d()})}}function Q(e){return I(e)&&e.tagName===`BUTTON`}function Me(e){return!!(e?.tagName===`A`&&e?.href)}var Ne=a.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,...s}=e,{getButtonProps:c,buttonRef:l}=je({disabled:i,focusableWhenDisabled:a,native:o});return D(`button`,e,{state:{disabled:i},ref:[t,l],props:[s,c]})}),Pe=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,Fe=r,Ie=(e,t)=>n=>{if(t?.variants==null)return Fe(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Pe(t)||Pe(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Fe(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},Le=n(),$=Ie(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow-sm shadow-primary/20 hover:bg-primary/90 hover:shadow-md hover:shadow-primary/15`,outline:`border-border bg-card shadow-xs hover:border-primary/30 hover:bg-accent/50 hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focu
1s-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-11 gap-2 rounded-full px-7 text-[0.9375rem] font-semibold has-data-[icon=inline-end]:pr-5 has-data-[icon=inline-start]:pl-5`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Re({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,Le.jsx)(Ne,{"data-slot":`button`,className:i($({variant:t,size:n,className:e})),...r})}export{de as A,l as B,L as C,k as D,U as E,E as F,le as I,b as L,me as M,he as N,D as O,ue as P,g as R,R as S,z as T,s as V,H as _,Z as a,W as b,G as c,Y as d,j as f,M as g,K as h,je as i,pe as j,fe as k,Ee as l,J as m,$ as n,X as o,De as p,Ie as r,Oe as s,Re as t,N as u,F as v,Ce as w,P as x,I as y,u as z};

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