UNPKG

brave-search-mcp

Version:

MCP Server that uses Brave Search API to search for images, general web search, video, news and points of interest.

9 lines 96.6 kB
<!doctype html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="color-scheme" content="light dark" /> <title>Brave Image Search</title> <script type="module" crossorigin>!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))n(e);new MutationObserver(e=>{for(const t of e)if("childList"===t.type)for(const e of t.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&n(e)}).observe(document,{childList:!0,subtree:!0})}function n(e){if(e.ep)return;e.ep=!0;const n=function(e){const n={};return e.integrity&&(n.integrity=e.integrity),e.referrerPolicy&&(n.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?n.credentials="include":"anonymous"===e.crossOrigin?n.credentials="omit":n.credentials="same-origin",n}(e);fetch(e.href,n)}}();var e,n,t,o,r,i,_,l,a,u,s,c={},d=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function h(e,n){for(var t in n)e[t]=n[t];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(n,t,o){var r,i,_,l={};for(_ in t)"key"==_?r=t[_]:"ref"==_?i=t[_]:l[_]=t[_];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof n&&null!=n.defaultProps)for(_ in n.defaultProps)void 0===l[_]&&(l[_]=n.defaultProps[_]);return y(n,l,r,i,null)}function y(e,o,r,i,_){var l={type:e,props:o,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==_?++t:_,__i:-1,__u:0};return null==_&&null!=n.vnode&&n.vnode(l),l}function g(e){return e.children}function b(e,n){this.props=e,this.context=n}function k(e,n){if(null==n)return e.__?k(e.__,e.__i+1):null;for(var t;n<e.__k.length;n++)if(null!=(t=e.__k[n])&&null!=t.__e)return t.__e;return"function"==typeof e.type?k(e):null}function w(e){if(e.__P&&e.__d){var t=e.__v,o=t.__e,r=[],i=[],_=h({},t);_.__v=t.__v+1,n.vnode&&n.vnode(_),T(e.__P,_,t,e.__n,e.__P.namespaceURI,32&t.__u?[o]:null,r,null==o?k(t):o,!!(32&t.__u),i),_.__v=t.__v,_.__.__k[_.__i]=_,U(r,_,i),t.__e=t.__=null,_.__e!=o&&x(_)}}function x(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(n){if(null!=n&&null!=n.__e)return e.__e=e.__c.base=n.__e}),x(e)}function N(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!C.__r++||r!=n.debounceRendering)&&((r=n.debounceRendering)||i)(C)}function C(){for(var e,n=1;o.length;)o.length>n&&o.sort(_),e=o.shift(),n=o.length,w(e);C.__r=0}function L(e,n,t,o,r,i,_,l,a,u,s){var f,h,v,m,b,w,x,N=o&&o.__k||d,C=n.length;for(a=function(e,n,t,o,r){var i,_,l,a,u,s=t.length,c=s,d=0;for(e.__k=new Array(r),i=0;i<r;i++)null!=(_=n[i])&&"boolean"!=typeof _&&"function"!=typeof _?("string"==typeof _||"number"==typeof _||"bigint"==typeof _||_.constructor==String?_=e.__k[i]=y(null,_,null,null,null):p(_)?_=e.__k[i]=y(g,{children:_},null,null,null):void 0===_.constructor&&_.__b>0?_=e.__k[i]=y(_.type,_.props,_.key,_.ref?_.ref:null,_.__v):e.__k[i]=_,a=i+d,_.__=e,_.__b=e.__b+1,l=null,-1!=(u=_.__i=M(_,t,a,c))&&(c--,(l=t[u])&&(l.__u|=2)),null==l||null==l.__v?(-1==u&&(r>s?d--:r<s&&d++),"function"!=typeof _.type&&(_.__u|=4)):u!=a&&(u==a-1?d--:u==a+1?d++:(u>a?d--:d++,_.__u|=4))):e.__k[i]=null;if(c)for(i=0;i<s;i++)null!=(l=t[i])&&!(2&l.__u)&&(l.__e==o&&(o=k(l)),O(l,l));return o}(t,n,N,a,C),f=0;f<C;f++)null!=(v=t.__k[f])&&(h=-1!=v.__i&&N[v.__i]||c,v.__i=f,w=T(e,v,h,r,i,_,l,a,u,s),m=v.__e,v.ref&&h.ref!=v.ref&&(h.ref&&q(h.ref,null,v),s.push(v.ref,v.__c||m,v)),null==b&&null!=m&&(b=m),(x=!!(4&v.__u))||h.__k===v.__k?a=P(v,a,e,x):"function"==typeof v.type&&void 0!==w?a=w:m&&(a=m.nextSibling),v.__u&=-7);return t.__e=b,a}function P(e,n,t,o){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,n=P(r[i],n,t,o));return n}e.__e!=n&&(o&&(n&&e.type&&!n.parentNode&&(n=k(e)),t.insertBefore(e.__e,n||null)),n=e.__e);do{n=n&&n.nextSibling}while(null!=n&&8==n.nodeType);return n}function S(e,n){return n=n||[],null==e||"boolean"==typeof e||(p(e)?e.some(function(e){S(e,n)}):n.push(e)),n}function M(e,n,t,o){var r,i,_,l=e.key,a=e.type,u=n[t],s=null!=u&&!(2&u.__u);if(null===u&&null==l||s&&l==u.key&&a==u.type)return t;if(o>(s?1:0))for(r=t-1,i=t+1;r>=0||i<n.length;)if(null!=(u=n[_=r>=0?r--:i++])&&!(2&u.__u)&&l==u.key&&a==u.type)return _;return-1}function E(e,n,t){"-"==n[0]?e.setProperty(n,null==t?"":t):e[n]=null==t?"":"number"!=typeof t||f.test(n)?t:t+"px"}function H(e,n,t,o,r){var i,_;e:if("style"==n)if("string"==typeof t)e.style.cssText=t;else{if("string"==typeof o&&(e.style.cssText=o=""),o)for(n in o)t&&n in t||E(e.style,n,"");if(t)for(n in t)o&&t[n]==o[n]||E(e.style,n,t[n])}else if("o"==n[0]&&"n"==n[1])i=n!=(n=n.replace(l,"$1")),_=n.toLowerCase(),n=_ in e||"onFocusOut"==n||"onFocusIn"==n?_.slice(2):n.slice(2),e.l||(e.l={}),e.l[n+i]=t,t?o?t.u=o.u:(t.u=a,e.addEventListener(n,i?s:u,i)):e.removeEventListener(n,i?s:u,i);else{if("http://www.w3.org/2000/svg"==r)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=n&&"height"!=n&&"href"!=n&&"list"!=n&&"form"!=n&&"tabIndex"!=n&&"download"!=n&&"rowSpan"!=n&&"colSpan"!=n&&"role"!=n&&"popover"!=n&&n in e)try{e[n]=null==t?"":t;break e}catch(c){}"function"==typeof t||(null==t||!1===t&&"-"!=n[4]?e.removeAttribute(n):e.setAttribute(n,"popover"==n&&1==t?"":t))}}function D(e){return function(t){if(this.l){var o=this.l[t.type+e];if(null==t.t)t.t=a++;else if(t.t<o.u)return;return o(n.event?n.event(t):t)}}}function T(t,o,r,i,_,l,a,u,s,f){var m,y,w,x,N,C,P,S,M,E,D,T,U,q,O,I=o.type;if(void 0!==o.constructor)return null;128&r.__u&&(s=!!(32&r.__u),l=[u=o.__e=r.__e]),(m=n.__b)&&m(o);e:if("function"==typeof I)try{if(S=o.props,M="prototype"in I&&I.prototype.render,E=(m=I.contextType)&&i[m.__c],D=m?E?E.props.value:m.__:i,r.__c?P=(y=o.__c=r.__c).__=y.__E:(M?o.__c=y=new I(S,D):(o.__c=y=new b(S,D),y.constructor=I,y.render=W),E&&E.sub(y),y.state||(y.state={}),y.__n=i,w=y.__d=!0,y.__h=[],y._sb=[]),M&&null==y.__s&&(y.__s=y.state),M&&null!=I.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=h({},y.__s)),h(y.__s,I.getDerivedStateFromProps(S,y.__s))),x=y.props,N=y.state,y.__v=o,w)M&&null==I.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),M&&null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(M&&null==I.getDerivedStateFromProps&&S!==x&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(S,D),o.__v==r.__v||!y.__e&&null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(S,y.__s,D)){o.__v!=r.__v&&(y.props=S,y.state=y.__s,y.__d=!1),o.__e=r.__e,o.__k=r.__k,o.__k.some(function(e){e&&(e.__=o)}),d.push.apply(y.__h,y._sb),y._sb=[],y.__h.length&&a.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(S,y.__s,D),M&&null!=y.componentDidUpdate&&y.__h.push(function(){y.componentDidUpdate(x,N,C)})}if(y.context=D,y.props=S,y.__P=t,y.__e=!1,T=n.__r,U=0,M)y.state=y.__s,y.__d=!1,T&&T(o),m=y.render(y.props,y.state,y.context),d.push.apply(y.__h,y._sb),y._sb=[];else do{y.__d=!1,T&&T(o),m=y.render(y.props,y.state,y.context),y.state=y.__s}while(y.__d&&++U<25);y.state=y.__s,null!=y.getChildContext&&(i=h(h({},i),y.getChildContext())),M&&!w&&null!=y.getSnapshotBeforeUpdate&&(C=y.getSnapshotBeforeUpdate(x,N)),q=null!=m&&m.type===g&&null==m.key?R(m.props.children):m,u=L(t,p(q)?q:[q],o,r,i,_,l,a,u,s,f),y.base=o.__e,o.__u&=-161,y.__h.length&&a.push(y),P&&(y.__E=y.__=null)}catch(B){if(o.__v=null,s||null!=l)if(B.then){for(o.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;l[l.indexOf(u)]=null,o.__e=u}else{for(O=l.length;O--;)v(l[O]);A(o)}else o.__e=r.__e,o.__k=r.__k,B.then||A(o);n.__e(B,o,r)}else null==l&&o.__v==r.__v?(o.__k=r.__k,o.__e=r.__e):u=o.__e=function(t,o,r,i,_,l,a,u,s){var d,f,h,m,y,g,b,w=r.props||c,x=o.props,N=o.type;if("svg"==N?_="http://www.w3.org/2000/svg":"math"==N?_="http://www.w3.org/1998/Math/MathML":_||(_="http://www.w3.org/1999/xhtml"),null!=l)for(d=0;d<l.length;d++)if((y=l[d])&&"setAttribute"in y==!!N&&(N?y.localName==N:3==y.nodeType)){t=y,l[d]=null;break}if(null==t){if(null==N)return document.createTextNode(x);t=document.createElementNS(_,N,x.is&&x),u&&(n.__m&&n.__m(o,l),u=!1),l=null}if(null==N)w===x||u&&t.data==x||(t.data=x);else{if(l=l&&e.call(t.childNodes),!u&&null!=l)for(w={},d=0;d<t.attributes.length;d++)w[(y=t.attributes[d]).name]=y.value;for(d in w)y=w[d],"dangerouslySetInnerHTML"==d?h=y:"children"==d||d in x||"value"==d&&"defaultValue"in x||"checked"==d&&"defaultChecked"in x||H(t,d,null,y,_);for(d in x)y=x[d],"children"==d?m=y:"dangerouslySetInnerHTML"==d?f=y:"value"==d?g=y:"checked"==d?b=y:u&&"function"!=typeof y||w[d]===y||H(t,d,y,w[d],_);if(f)u||h&&(f.__html==h.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),o.__k=[];else if(h&&(t.innerHTML=""),L("template"==o.type?t.content:t,p(m)?m:[m],o,r,i,"foreignObject"==N?"http://www.w3.org/1999/xhtml":_,l,a,l?l[0]:r.__k&&k(r,0),u,s),null!=l)for(d=l.length;d--;)v(l[d]);u||(d="value","progress"==N&&null==g?t.removeAttribute("value"):null!=g&&(g!==t[d]||"progress"==N&&!g||"option"==N&&g!=w[d])&&H(t,d,g,w[d],_),d="checked",null!=b&&b!=t[d]&&H(t,d,b,w[d],_))}return t}(r.__e,o,r,i,_,l,a,s,f);return(m=n.diffed)&&m(o),128&o.__u?void 0:u}function A(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(A))}function U(e,t,o){for(var r=0;r<o.length;r++)q(o[r],o[++r],o[++r]);n.__c&&n.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(o){n.__e(o,t.__v)}})}function R(e){return"object"!=typeof e||null==e||e.__b>0?e:p(e)?e.map(R):h({},e)}function q(e,t,o){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){n.__e(i,o)}}function O(e,t,o){var r,i;if(n.unmount&&n.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||q(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(_){n.__e(_,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&O(r[i],t,o||"function"!=typeof e.type);o||v(e.__e),e.__c=e.__=e.__e=void 0}function W(e,n,t){return this.constructor(e,t)}function I(t,o,r){var i,_,l;o==document&&(o=document.documentElement),n.__&&n.__(t,o),i=o.__k,_=[],l=[],T(o,t=o.__k=m(g,null,[t]),i||c,c,o.namespaceURI,i?null:o.firstChild?e.call(o.childNodes):null,_,i?i.__e:o.firstChild,!1,l),U(_,t,l)}e=d.slice,n={__e:function(e,n,t,o){for(var r,i,_;n=n.__;)if((r=n.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(e)),_=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,o||{}),_=r.__d),_)return r.__E=r}catch(l){e=l}throw e}},t=0,b.prototype.setState=function(e,n){var t;t=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(h({},t),this.props)),e&&h(t,e),null!=e&&this.__v&&(n&&this._sb.push(n),N(this))},b.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),N(this))},b.prototype.render=g,o=[],i="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_=function(e,n){return e.__v.__b-n.__v.__b},C.__r=0,l=/(PointerCapture)$|Capture$/i,a=0,u=D(!1),s=D(!0);var B=0;function $(e,t,o,r,i,_){t||(t={});var l,a,u=t;if("ref"in u)for(a in u={},t)"ref"==a?l=t[a]:u[a]=t[a];var s={type:e,props:u,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--B,__i:-1,__u:0,__source:i,__self:_};if("function"==typeof e&&(l=e.defaultProps))for(a in l)void 0===u[a]&&(u[a]=l[a]);return n.vnode&&n.vnode(s),s}var F,j,z,V,Z=0,Q=[],K=n,G=K.__b,J=K.__r,X=K.diffed,Y=K.__c,ee=K.unmount,ne=K.__;function te(e,n){K.__h&&K.__h(j,e,Z||n),Z=0;var t=j.__H||(j.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function oe(e){return Z=1,function(e,n){var t=te(F++,2);if(t.t=e,!t.__c&&(t.__=[fe(void 0,n),function(e){var n=t.__N?t.__N[0]:t.__[0],o=t.t(n,e);n!==o&&(t.__N=[o,t.__[1]],t.__c.setState({}))}],t.__c=j,!j.__f)){var o=function(e,n,o){if(!t.__c.__H)return!0;var i=t.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!r||r.call(this,e,n,o);var _=t.__c.props!==e;return i.some(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(_=!0)}}),r&&r.call(this,e,n,o)||_};j.__f=!0;var r=j.shouldComponentUpdate,i=j.componentWillUpdate;j.componentWillUpdate=function(e,n,t){if(this.__e){var _=r;r=void 0,o(e,n,t),r=_}i&&i.call(this,e,n,t)},j.shouldComponentUpdate=o}return t.__N||t.__}(fe,e)}function re(e,n){var t=te(F++,3);!K.__s&&de(t.__H,n)&&(t.__=e,t.u=n,j.__H.__h.push(t))}function ie(e,n){var t=te(F++,7);return de(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function _e(e,n){return Z=8,ie(function(){return e},n)}function le(){for(var e;e=Q.shift();){var n=e.__H;if(e.__P&&n)try{n.__h.some(se),n.__h.some(ce),n.__h=[]}catch(t){n.__h=[],K.__e(t,e.__v)}}}K.__b=function(e){j=null,G&&G(e)},K.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),ne&&ne(e,n)},K.__r=function(e){J&&J(e),F=0;var n=(j=e.__c).__H;n&&(z===j?(n.__h=[],j.__h=[],n.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(n.__h.some(se),n.__h.some(ce),n.__h=[],F=0)),z=j},K.diffed=function(e){X&&X(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==Q.push(n)&&V===K.requestAnimationFrame||((V=K.requestAnimationFrame)||ue)(le)),n.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),z=j=null},K.__c=function(e,n){n.some(function(e){try{e.__h.some(se),e.__h=e.__h.filter(function(e){return!e.__||ce(e)})}catch(t){n.some(function(e){e.__h&&(e.__h=[])}),n=[],K.__e(t,e.__v)}}),Y&&Y(e,n)},K.unmount=function(e){ee&&ee(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.some(function(e){try{se(e)}catch(t){n=t}}),t.__H=void 0,n&&K.__e(n,t.__v))};var ae="function"==typeof requestAnimationFrame;function ue(e){var n,t=function(){clearTimeout(o),ae&&cancelAnimationFrame(n),setTimeout(e)},o=setTimeout(t,35);ae&&(n=requestAnimationFrame(t))}function se(e){var n=j,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),j=n}function ce(e){var n=j;e.__c=e.__(),j=n}function de(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function fe(e,n){return"function"==typeof n?n(e):n}function pe(e,n){for(var t in e)if("__source"!==t&&!(t in n))return!0;for(var o in n)if("__source"!==o&&e[o]!==n[o])return!0;return!1}function he(e){try{return!((n=e.__)===(t=e.u())&&(0!==n||1/n==1/t)||n!=n&&t!=t)}catch(o){return!0}var n,t}function ve(e,n){this.props=e,this.context=n}(ve.prototype=new b).isPureReactComponent=!0,ve.prototype.shouldComponentUpdate=function(e,n){return pe(this.props,e)||pe(this.state,n)};var me=n.__b;n.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),me&&me(e)};var ye=n.__e;n.__e=function(e,n,t,o){if(e.then)for(var r,i=n;i=i.__;)if((r=i.__c)&&r.__c)return null==n.__e&&(n.__e=t.__e,n.__k=t.__k),r.__c(e,n);ye(e,n,t,o)};var ge=n.unmount;function be(e,n,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=function(e,n){for(var t in n)e[t]=n[t];return e}({},e)).__c&&(e.__c.__P===t&&(e.__c.__P=n),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return be(e,n,t)})),e}function ke(e,n,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return ke(e,n,t)}),e.__c&&e.__c.__P===n&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function we(){this.__u=0,this.o=null,this.__b=null}function xe(e){if(!e.__)return null;var n=e.__.__c;return n&&n.__a&&n.__a(e)}function Ne(){this.i=null,this.l=null}n.unmount=function(e){var n=e.__c;n&&(n.__z=!0),n&&n.__R&&n.__R(),n&&32&e.__u&&(e.type=null),ge&&ge(e)},(we.prototype=new b).__c=function(e,n){var t=n.__c,o=this;null==o.o&&(o.o=[]),o.o.push(t);var r=xe(o.__v),i=!1,_=function(){i||o.__z||(i=!0,t.__R=null,r?r(a):a())};t.__R=_;var l=t.__P;t.__P=null;var a=function(){if(! --o.__u){if(o.state.__a){var e=o.state.__a;o.__v.__k[0]=ke(e,e.__c.__P,e.__c.__O)}var n;for(o.setState({__a:o.__b=null});n=o.o.pop();)n.__P=l,n.forceUpdate()}};o.__u++||32&n.__u||o.setState({__a:o.__b=o.__v.__k[0]}),e.then(_,_)},we.prototype.componentWillUnmount=function(){this.o=[]},we.prototype.render=function(e,n){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=be(this.__b,t,o.__O=o.__P)}this.__b=null}var r=n.__a&&m(g,null,e.fallback);return r&&(r.__u&=-33),[m(g,null,n.__a?null:e.children),r]};var Ce=function(e,n,t){if(++t[1]===t[0]&&e.l.delete(n),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};(Ne.prototype=new b).__a=function(e){var n=this,t=xe(n.__v),o=n.l.get(e);return o[0]++,function(r){var i=function(){n.props.revealOrder?(o.push(r),Ce(n,e,o)):r()};t?t(i):i()}},Ne.prototype.render=function(e){this.i=null,this.l=new Map;var n=S(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&n.reverse();for(var t=n.length;t--;)this.l.set(n[t],this.i=[1,0,this.i]);return e.children},Ne.prototype.componentDidUpdate=Ne.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(n,t){Ce(e,t,n)})};var Le="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Pe=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Se=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Me=/[A-Z0-9]/g,Ee="undefined"!=typeof document,He=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};b.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(b.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(n){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:n})}})});var De=n.event;function Te(){}function Ae(){return this.cancelBubble}function Ue(){return this.defaultPrevented}n.event=function(e){return De&&(e=De(e)),e.persist=Te,e.isPropagationStopped=Ae,e.isDefaultPrevented=Ue,e.nativeEvent=e};var Re={enumerable:!1,configurable:!0,get:function(){return this.class}},qe=n.vnode;n.vnode=function(e){"string"==typeof e.type&&function(e){var n=e.props,t=e.type,o={},r=-1===t.indexOf("-");for(var i in n){var _=n[i];if(!("value"===i&&"defaultValue"in n&&null==_||Ee&&"children"===i&&"noscript"===t||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===_?_="":"translate"===l&&"no"===_?_=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==t&&"textarea"!==t||He(n.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":Se.test(i)&&(i=l):l=i="oninput":r&&Pe.test(i)?i=i.replace(Me,"-$&").toLowerCase():null===_&&(_=void 0),"oninput"===l&&o[i=l]&&(i="oninputCapture"),o[i]=_}}"select"==t&&o.multiple&&Array.isArray(o.value)&&(o.value=S(n.children).forEach(function(e){e.props.selected=-1!=o.value.indexOf(e.props.value)})),"select"==t&&null!=o.defaultValue&&(o.value=S(n.children).forEach(function(e){e.props.selected=o.multiple?-1!=o.defaultValue.indexOf(e.props.value):o.defaultValue==e.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",Re)):n.className&&(o.class=o.className=n.className),e.props=o}(e),e.$$typeof=Le,qe&&qe(e)};var Oe=n.__r;n.__r=function(e){Oe&&Oe(e),e.__c};var We=n.diffed;n.diffed=function(e){We&&We(e);var n=e.props,t=e.__e;null!=t&&"textarea"===e.type&&"value"in n&&n.value!==t.value&&(t.value=null==n.value?"":n.value)};var Ie=g;function Be(e){const n=document.documentElement;n.setAttribute("data-theme",e),n.style.colorScheme=e}const $e="openai:set_globals";function Fe(e){const n=_e(n=>{if("undefined"==typeof window)return()=>{};const t=t=>{const o=t;o.detail?.globals&&e in o.detail.globals&&n()};return window.addEventListener($e,t,{passive:!0}),()=>{window.removeEventListener($e,t)}},[e]),t=_e(()=>{if("undefined"!=typeof window)return window.openai?.[e]},[e]);return _e(()=>{},[]),o=n,i=(r=t)(),_=oe({t:{__:i,u:r}}),l=_[0].t,a=_[1],function(e,n){var t=te(F++,4);!K.__s&&de(t.__H,n)&&(t.__=e,t.u=n,j.__h.push(t))}(function(){l.__=i,l.u=r,he(l)&&a({t:l})},[o,i,r]),re(function(){return he(l)&&a({t:l}),o(function(){he(l)&&a({t:l})})},[o]),i;var o,r,i,_,l,a}const je="(prefers-color-scheme: dark)";function ze(){const e=Fe("theme");var n;re(()=>{if(n)return void Be(n);const e=()=>{Be(window.matchMedia?.(je).matches?"dark":"light")};e();const t=window.matchMedia?.(je);if(!t)return;const o=()=>e();return t.addEventListener?(t.addEventListener("change",o),()=>{t.removeEventListener("change",o)}):(t.addListener?.(o),()=>{t.removeListener?.(o)})},[n="light"===e||"dark"===e?e:void 0])}const Ve=e=>$("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:$("path",{d:"M5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L8.41421 11H18C18.5523 11 19 11.4477 19 12C19 12.5523 18.5523 13 18 13H8.41421L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071Z",fill:"currentColor"})}),Ze=e=>$("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:$("path",{d:"M18.7071 12.7071C19.0976 12.3166 19.0976 11.6834 18.7071 11.2929L13.7071 6.29289C13.3166 5.90237 12.6834 5.90237 12.2929 6.29289C11.9024 6.68342 11.9024 7.31658 12.2929 7.70711L15.5858 11H6C5.44771 11 5 11.4477 5 12C5 12.5523 5.44771 13 6 13H15.5858L12.2929 16.2929C11.9024 16.6834 11.9024 17.3166 12.2929 17.7071C12.6834 18.0976 13.3166 18.0976 13.7071 17.7071L18.7071 12.7071Z",fill:"currentColor"})}),Qe=e=>$("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:$("path",{d:"M13 4a1 1 0 1 1 2 0v3.586l4.293-4.293a1 1 0 1 1 1.414 1.414L16.414 9H20a1 1 0 1 1 0 2h-6a1 1 0 0 1-1-1V4ZM3 14a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-3.586l-4.293 4.293a1 1 0 0 1-1.414-1.414L7.586 15H4a1 1 0 0 1-1-1Z"})}),Ke=e=>$("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",...e,children:$("path",{d:"M13 4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0V6.414l-3.793 3.793a1 1 0 0 1-1.414-1.414L17.586 5H14a1 1 0 0 1-1-1Zm-9 9a1 1 0 0 1 1 1v3.586l3.793-3.793a1 1 0 0 1 1.414 1.414L6.414 19H10a1 1 0 1 1 0 2H4a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1Z"})});function Ge({onRequestFullscreen:e,displayMode:n}){const t="fullscreen"===n;return $("button",{className:"fullscreen-btn",onClick:e,title:t?"Exit fullscreen":"Enter fullscreen","aria-label":t?"Exit fullscreen":"Enter fullscreen",children:$(t?Qe:Ke,{width:16,height:16})})}function Je({direction:e,className:n,disabled:t,...o}){const r="previous"===e,i=r?"Previous":"Next";return $("button",{type:"button",className:`inline-flex h-8 min-w-[88px] items-center justify-center gap-1.5 rounded-full border border-[var(--color-border-secondary-outline)] bg-transparent px-3 text-[13px] font-medium text-[var(--color-text-secondary-outline)] transition-colors duration-150 ease-out ${t?"cursor-not-allowed border-[var(--color-border-disabled)] text-[var(--color-text-disabled)]":"hover:bg-[var(--color-background-secondary-outline-hover)] hover:text-[var(--color-text-secondary-outline-hover)] active:bg-[var(--color-background-secondary-outline-active)]"}${n?` ${n}`:""}`,disabled:t,...o,children:[r&&$(Ve,{width:14,height:14}),i,!r&&$(Ze,{width:14,height:14})]})}function Xe({size:e,strokeWidth:n}){return $("span",{className:"inline-block animate-spin rounded-full border-solid border-[var(--grid-line-strong)] border-t-[var(--accent)]",style:{width:e,height:e,borderWidth:n},"aria-hidden":"true"})}function Ye({variant:e,brandSub:n,query:t,countLabel:o,isInitialLoading:r,loadingQuery:i,error:_,infoBanner:l,hasData:a,isEmpty:u,emptyTitle:s,emptyDescription:c,noResultsTitle:d="No results",noResultsDescription:f="Try a different query.",children:p,pagination:h,context:v,hostContext:m,displayMode:y,requestDisplayMode:g}){const b=m?.safeAreaInsets,k={paddingTop:b?.top,paddingRight:b?.right,paddingBottom:b?.bottom,paddingLeft:b?.left,marginBottom:b?.bottom},w=h?` · Page ${h.pageNumber}`:"",x=v&&v.count>0?` · ${v.count} in context`:"",N=Boolean(h?.isLoading&&a&&!u),C=Boolean(v?.addAllDisabled||N),L=C?"cursor-not-allowed border-[var(--color-border-disabled)] bg-[var(--color-background-disabled)] text-[var(--color-text-disabled)]":"hover:bg-[var(--color-background-secondary-soft-alpha-hover)] active:bg-[var(--color-background-secondary-soft-alpha-active)]";return $("main",{className:`app ${e}-app`,style:k,"data-display-mode":y,children:[$("header",{className:"header",children:[$("div",{className:"brand",children:[$("span",{className:"brand-mark",children:"Brave"}),$("span",{className:"brand-sub",children:n})]}),$("div",{className:"header-right",children:[$("div",{className:"meta",children:[$("div",{className:"term",children:a?t:r&&i?i:`Run brave_${e}_search to see results`}),$("div",{className:"count",children:[a?o:r?"Searching...":"Awaiting tool output",a&&h&&w,x]})]}),$("div",{className:"header-actions",children:[v&&$("button",{type:"button",className:`inline-flex h-8 items-center justify-center rounded-full border border-transparent bg-[var(--color-background-secondary-soft-alpha)] px-3 text-[13px] font-medium text-[var(--color-text-secondary-soft)] transition-colors duration-150 ease-out ${L}`,onClick:v.onAddAll,disabled:C,children:"Add All"}),g&&$(Ge,{onRequestFullscreen:()=>{g&&g("fullscreen"===y?"inline":"fullscreen")},displayMode:y})]})]})]}),_&&$("div",{className:"error-banner",children:[$("strong",{children:"Error:"})," ",_]}),l&&$("div",{className:"info-banner",children:l}),r&&!a&&$("section",{className:"loading-state",children:[$(Xe,{size:32,strokeWidth:3}),$("p",{children:["Searching for"," ",$("strong",{children:i||"..."})]})]}),!a&&!r&&$("section",{className:"empty-state",children:[$("h2",{children:s}),$("p",{children:c})]}),a&&u&&!_&&$("section",{className:"empty-state",children:[$("h2",{children:d}),$("p",{children:f})]}),a&&!u&&$("section",{className:"results-region"+(N?" results-region--loading":""),"aria-busy":N,children:[$("div",{className:"results-content"+(N?" results-content--locked":""),inert:N,children:p}),N?$("div",{className:"results-loading-overlay",role:"status","aria-label":"Loading page results",children:$("div",{className:"results-loading-content",children:[$(Xe,{size:28,strokeWidth:3}),$("span",{children:"Loading results..."})]})}):null]}),h&&a&&!u&&$("footer",{className:"app-footer",style:void 0,children:$("nav",{className:"pagination","aria-label":"Pagination",children:[$(Je,{direction:"previous",onClick:h.onPrevious,disabled:!h.hasPrevious||h.isLoading,"aria-label":"Previous page"}),$("span",{className:"pagination-info",children:h.isLoading?"Loading...":`Page ${h.pageNumber}`}),$(Je,{direction:"next",onClick:h.onNext,disabled:!h.hasNext||h.isLoading,"aria-label":"Next page"})]})})]})}function en({toolResult:e,hostContext:n,openLink:t,sendLog:o,displayMode:r,requestDisplayMode:i,isInitialLoading:_,loadingQuery:l}){const a=e?.structuredContent,u=a?.items??[],s=a?.error,c=Boolean(a);return $(Ye,{variant:"image",brandSub:"Image Search",query:a?.searchTerm,countLabel:`${a?.count??0} results`,error:s,isInitialLoading:_,loadingQuery:l,hasData:c,isEmpty:0===u.length,emptyTitle:"Image Search",emptyDescription:"Ask to search for images on any topic.",noResultsTitle:"No results",noResultsDescription:"Try a broader query or adjust the count.",hostContext:n,displayMode:r,requestDisplayMode:i,children:$("section",{className:"image-grid",children:u.map(e=>$("button",{className:"image-thumbnail",onClick:()=>(async e=>{try{const{isError:n}=await t({url:e.pageUrl});n&&await o({level:"warning",data:`Open link rejected: ${e.pageUrl}`})}catch(n){await o({level:"error",data:`Open link failed: ${n instanceof Error?n.message:String(n)}`})}})(e),type:"button",children:[$("img",{src:e.imageUrl,alt:e.title,loading:"lazy"}),$("div",{className:"image-overlay",children:[$("div",{className:"image-overlay-title",children:e.title}),$("div",{className:"image-overlay-source",children:e.source})]})]},e.imageUrl))})})}function nn(){ze();const e=Fe("toolOutput"),n=Fe("toolInput"),{displayMode:t,hostContext:o,openLink:r,requestDisplayMode:i,noopLog:_}=function({toolInputQuery:e=null,initialData:n=null}={}){const t=Fe("displayMode"),o=Fe("safeArea"),[r,i]=oe(null),[_,l]=oe(!1),a=ie(()=>{const e=o?.insets;return e?{safeAreaInsets:{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}:null},[o]),u=e??n?.query??null,s=r&&u&&r.query===u?r:n;re(()=>{if(r&&u&&r.query!==u){const e=setTimeout(()=>{i(null),l(!1)},0);return()=>clearTimeout(e)}},[u,r]);const c=_e(async({url:e})=>{try{return window.openai?.openExternal&&await window.openai.openExternal({href:e}),{isError:!1}}catch{return{isError:!0}}},[]),d=_e(async e=>{if(window.openai?.requestDisplayMode)return await window.openai.requestDisplayMode({mode:e}),e},[]),f=_e(async()=>{},[]),p=_e(async(e,n)=>window.openai?.callTool?window.openai.callTool(e,n):null,[]),h=_e(e=>{window.openai?.setWidgetState?.(e)},[]);return{displayMode:t,hostContext:a,openLink:c,requestDisplayMode:d,noopLog:f,canCallTool:Boolean(window.openai?.callTool),canSetWidgetState:Boolean(window.openai?.setWidgetState),canRequestDisplayMode:Boolean(window.openai?.requestDisplayMode),callTool:p,setWidgetState:h,currentData:s,hostQuery:u,isLoading:_,setIsLoading:l,setPagedOutput:i}}(),l=Boolean(e),a=null!==n&&!l,u=n?.searchTerm;return $(en,{toolInputs:null,toolInputsPartial:null,toolResult:e?{structuredContent:e}:null,hostContext:o,openLink:r,sendLog:_,displayMode:t??"inline",requestDisplayMode:i,isInitialLoading:a,loadingQuery:u})}var tn;(tn=document.getElementById("root"),{render:function(e){var n,t;n=e,null==(t=tn).__k&&(t.textContent=""),I(n,t),n&&n.__c},unmount:function(){var e;(e=tn).__k&&I(null,e)}}).render($(Ie,{children:$(nn,{})}));</script> <style rel="stylesheet" crossorigin>@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-font-weight:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--font-mono:ui-monospace,"SFMono-Regular","SF Mono","Menlo","Monaco","Consolas","Liberation Mono","DejaVu Sans Mono","Courier New",monospace;--spacing:.25rem;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:1024px;--breakpoint-xl:1280px;--breakpoint-2xl:1536px;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--breakpoint-xs:380px;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-2xs:.125rem;--radius-xs:.25rem;--radius-sm: calc(.5rem - 4px) ;--radius-md: calc(.5rem - 2px) ;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.25rem;--radius-4xl:1.5rem;--radius-full:9999px}:root,:where([data-theme]){--gray-500:#5d5d5d;--alpha-0:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-0:color-mix(in oklab,var(--alpha-base)0%,transparent)}}:root,:where([data-theme]){--alpha-02:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-02:color-mix(in oklab,var(--alpha-base)2%,transparent)}}:root,:where([data-theme]){--alpha-04:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-04:color-mix(in oklab,var(--alpha-base)4%,transparent)}}:root,:where([data-theme]){--alpha-05:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-05:color-mix(in oklab,var(--alpha-base)5%,transparent)}}:root,:where([data-theme]){--alpha-06:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-06:color-mix(in oklab,var(--alpha-base)6%,transparent)}}:root,:where([data-theme]){--alpha-08:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-08:color-mix(in oklab,var(--alpha-base)8%,transparent)}}:root,:where([data-theme]){--alpha-10:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-10:color-mix(in oklab,var(--alpha-base)10%,transparent)}}:root,:where([data-theme]){--alpha-12:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-12:color-mix(in oklab,var(--alpha-base)12%,transparent)}}:root,:where([data-theme]){--alpha-15:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-15:color-mix(in oklab,var(--alpha-base)15%,transparent)}}:root,:where([data-theme]){--alpha-16:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-16:color-mix(in oklab,var(--alpha-base)16%,transparent)}}:root,:where([data-theme]){--alpha-20:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-20:color-mix(in oklab,var(--alpha-base)20%,transparent)}}:root,:where([data-theme]){--alpha-25:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-25:color-mix(in oklab,var(--alpha-base)25%,transparent)}}:root,:where([data-theme]){--alpha-30:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-30:color-mix(in oklab,var(--alpha-base)30%,transparent)}}:root,:where([data-theme]){--alpha-35:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-35:color-mix(in oklab,var(--alpha-base)35%,transparent)}}:root,:where([data-theme]){--alpha-40:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-40:color-mix(in oklab,var(--alpha-base)40%,transparent)}}:root,:where([data-theme]){--alpha-50:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-50:color-mix(in oklab,var(--alpha-base)50%,transparent)}}:root,:where([data-theme]){--alpha-60:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-60:color-mix(in oklab,var(--alpha-base)60%,transparent)}}:root,:where([data-theme]){--alpha-70:var(--alpha-base)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--alpha-70:color-mix(in oklab,var(--alpha-base)70%,transparent)}}:root,:where([data-theme]){--white:#fff;--black:#000;--green-25:#edfaf2;--green-50:#d9f4e4;--green-75:#b8ebcc;--green-100:#8cdfad;--green-200:#66d492;--green-300:#40c977;--green-400:#04b84c;--green-500:#00a240;--green-600:#008635;--green-700:#00692a;--green-800:#004f1f;--green-900:#003716;--green-950:#011c0b;--green-1000:#001207;--green-a25:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a25:color-mix(in oklab,var(--green-400)8%,transparent)}}:root,:where([data-theme]){--green-a50:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a50:color-mix(in oklab,var(--green-400)15%,transparent)}}:root,:where([data-theme]){--green-a75:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a75:color-mix(in oklab,var(--green-400)29%,transparent)}}:root,:where([data-theme]){--green-a100:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a100:color-mix(in oklab,var(--green-400)45%,transparent)}}:root,:where([data-theme]){--green-a200:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a200:color-mix(in oklab,var(--green-400)60%,transparent)}}:root,:where([data-theme]){--green-a300:var(--green-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--green-a300:color-mix(in oklab,var(--green-400)75%,transparent)}}:root,:where([data-theme]){--red-25:#fff0f0;--red-50:#ffd9d9;--red-75:#ffc6c5;--red-100:#ffa4a2;--red-200:#ff8583;--red-300:#ff6764;--red-400:#fa423e;--red-500:#e02e2a;--red-600:#ba2623;--red-700:#911e1b;--red-800:#6e1615;--red-900:#4d100e;--red-950:#280b0a;--red-1000:#1f0909;--red-a25:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a25:color-mix(in oklab,var(--red-400)8%,transparent)}}:root,:where([data-theme]){--red-a50:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a50:color-mix(in oklab,var(--red-400)16%,transparent)}}:root,:where([data-theme]){--red-a75:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a75:color-mix(in oklab,var(--red-400)30%,transparent)}}:root,:where([data-theme]){--red-a100:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a100:color-mix(in oklab,var(--red-400)48%,transparent)}}:root,:where([data-theme]){--red-a200:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a200:color-mix(in oklab,var(--red-400)64%,transparent)}}:root,:where([data-theme]){--red-a300:var(--red-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--red-a300:color-mix(in oklab,var(--red-400)79%,transparent)}}:root,:where([data-theme]){--pink-25:#fff4f9;--pink-50:#ffe8f3;--pink-75:#ffd4e8;--pink-100:#ffbada;--pink-200:#ffa3ce;--pink-300:#ff8cc1;--pink-400:#ff66ad;--pink-500:#e04c91;--pink-600:#ba437a;--pink-700:#963c67;--pink-800:#6e2c4a;--pink-900:#4d1f34;--pink-950:#29101c;--pink-1000:#1a0a11;--pink-a25:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a25:color-mix(in oklab,var(--pink-400)8%,transparent)}}:root,:where([data-theme]){--pink-a50:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a50:color-mix(in oklab,var(--pink-400)16%,transparent)}}:root,:where([data-theme]){--pink-a75:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a75:color-mix(in oklab,var(--pink-400)28%,transparent)}}:root,:where([data-theme]){--pink-a100:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a100:color-mix(in oklab,var(--pink-400)45%,transparent)}}:root,:where([data-theme]){--pink-a200:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a200:color-mix(in oklab,var(--pink-400)60%,transparent)}}:root,:where([data-theme]){--pink-a300:var(--pink-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--pink-a300:color-mix(in oklab,var(--pink-400)76%,transparent)}}:root,:where([data-theme]){--orange-25:#fff5f0;--orange-50:#ffe7d9;--orange-75:#ffcfb4;--orange-100:#ffb790;--orange-200:#ff9e6c;--orange-300:#ff8549;--orange-400:#fb6a22;--orange-500:#e25507;--orange-600:#b9480d;--orange-700:#923b0f;--orange-800:#6d2e0f;--orange-900:#4a2206;--orange-950:#281105;--orange-1000:#211107;--orange-a25:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a25:color-mix(in oklab,var(--orange-400)7%,transparent)}}:root,:where([data-theme]){--orange-a50:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a50:color-mix(in oklab,var(--orange-400)16%,transparent)}}:root,:where([data-theme]){--orange-a75:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a75:color-mix(in oklab,var(--orange-400)33%,transparent)}}:root,:where([data-theme]){--orange-a100:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a100:color-mix(in oklab,var(--orange-400)48%,transparent)}}:root,:where([data-theme]){--orange-a200:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a200:color-mix(in oklab,var(--orange-400)65%,transparent)}}:root,:where([data-theme]){--orange-a300:var(--orange-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--orange-a300:color-mix(in oklab,var(--orange-400)81%,transparent)}}:root,:where([data-theme]){--yellow-25:#fffbed;--yellow-50:#fff6d9;--yellow-75:#ffeeb8;--yellow-100:#ffe48c;--yellow-200:#ffdb66;--yellow-300:#ffd240;--yellow-400:#ffc300;--yellow-500:#e0ac00;--yellow-600:#ba8e00;--yellow-700:#916f00;--yellow-800:#6e5400;--yellow-900:#4d3b00;--yellow-950:#261d00;--yellow-1000:#1a1400;--yellow-a25:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a25:color-mix(in oklab,var(--yellow-400)8%,transparent)}}:root,:where([data-theme]){--yellow-a50:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a50:color-mix(in oklab,var(--yellow-400)15%,transparent)}}:root,:where([data-theme]){--yellow-a75:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a75:color-mix(in oklab,var(--yellow-400)27%,transparent)}}:root,:where([data-theme]){--yellow-a100:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a100:color-mix(in oklab,var(--yellow-400)45%,transparent)}}:root,:where([data-theme]){--yellow-a200:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a200:color-mix(in oklab,var(--yellow-400)59%,transparent)}}:root,:where([data-theme]){--yellow-a300:var(--yellow-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--yellow-a300:color-mix(in oklab,var(--yellow-400)74%,transparent)}}:root,:where([data-theme]){--purple-25:#f9f5fe;--purple-50:#efe5fe;--purple-75:#e0cefd;--purple-100:#ceb0fb;--purple-200:#be95fa;--purple-300:#ad7bf9;--purple-400:#924ff7;--purple-500:#8046d9;--purple-600:#6b3ab4;--purple-700:#532d8d;--purple-800:#3f226a;--purple-900:#2c184a;--purple-950:#160c25;--purple-1000:#100a19;--purple-a25:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a25:color-mix(in oklab,var(--purple-400)6%,transparent)}}:root,:where([data-theme]){--purple-a50:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a50:color-mix(in oklab,var(--purple-400)15%,transparent)}}:root,:where([data-theme]){--purple-a75:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a75:color-mix(in oklab,var(--purple-400)28%,transparent)}}:root,:where([data-theme]){--purple-a100:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a100:color-mix(in oklab,var(--purple-400)45%,transparent)}}:root,:where([data-theme]){--purple-a200:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a200:color-mix(in oklab,var(--purple-400)60%,transparent)}}:root,:where([data-theme]){--purple-a300:var(--purple-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--purple-a300:color-mix(in oklab,var(--purple-400)75%,transparent)}}:root,:where([data-theme]){--blue-25:#f5faff;--blue-50:#e5f3ff;--blue-75:#cce6ff;--blue-100:#99ceff;--blue-200:#66b5ff;--blue-300:#339cff;--blue-400:#0285ff;--blue-500:#0169cc;--blue-600:#004f99;--blue-700:#003f7a;--blue-800:#013566;--blue-900:#00284d;--blue-950:#000e1a;--blue-1000:#000d19;--blue-a25:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a25:color-mix(in oklab,var(--blue-400)4%,transparent)}}:root,:where([data-theme]){--blue-a50:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a50:color-mix(in oklab,var(--blue-400)13%,transparent)}}:root,:where([data-theme]){--blue-a75:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a75:color-mix(in oklab,var(--blue-400)25%,transparent)}}:root,:where([data-theme]){--blue-a100:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a100:color-mix(in oklab,var(--blue-400)40%,transparent)}}:root,:where([data-theme]){--blue-a200:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a200:color-mix(in oklab,var(--blue-400)60%,transparent)}}:root,:where([data-theme]){--blue-a300:var(--blue-400)}@supports (color:color-mix(in lab,red,red)){:root,:where([data-theme]){--blue-a300:color-mix(in oklab,var(--blue-400)80%,transparent)}}:root,:where([data-theme]){--hairline:1px}:where(:root),:where([data-theme=light]){--gray-0:#fff;--gray-25:#fcfcfc;--gray-50:#f9f9f9;--gray-75:#f3f3f3;--gray-100:#ededed;--gray-150:#dfdfdf;--gray-200:#cdcdcd;--gray-250:#b9b9b9;--gray-300:#afafaf;--gray-350:#9f9f9f;--gray-400:#8f8f8f;--gray-450:#767676;--gray-550:#4f4f4f;--gray-600:#414141;--gray-650:#393939;--gray-700:#303030;--gray-750:#282828;--gray-800:#212121;--gray-850:#1c1c1c;--gray-900:#181818;--gray-925:#161616;--gray-950:#131313;--gray-975:#101010;--gray-1000:#0d0d0d;--alpha-base:#0d0d0d}:where([data-theme=dark]){--gray-0:#0d0d0d;--gray-25:#101010;--gray-50:#131313;--gray-75:#161616;--gray-100:#181818;--gray-150:#1c1c1c;--gray-200:#212121;--gray-250:#282828;--gray-300:#303030;--gray-350:#393939;--gray-400:#414141;--gray-450:#4f4f4f;--gray-550:#767676;--gray-600:#8f8f8f;--gray-650:#9f9f9f;--gray-700:#afafaf;--gray-750:#b9b9b9;--gray-800:#cdcdcd;--gray-850:#dcdcdc;--gray-900:#ededed;--gray-925:#f3f3f3;--gray-950:#f3f3f3;--gray-975:#f9f9f9;--gray-1000:#fff;--alpha-base:#fff}@media(min-resolution:150dpi),(min-resolution:1.5x){:root,:where([data-theme]){--hairline:.5px}}:root,:where([data-theme]){--shadow-color:0 0 0;--elevation-100-geo:0 1px 2px -1px;--elevation-200-geo:0 2px 4px -1px;--elevation-300-geo:0 4px 8px -2px;--elevation-400-geo:0 8px 16px -4px}:where(:root),:where([data-theme=light]){--shadow-alpha-100:.08;--shadow-alpha-200:.08;--shadow-alpha-300:.1;--shadow-alpha-400:.12;--shadow-hairline-width:1px;--shadow-hairline-color:#00000014}@media(min-resolution:150dpi),(min-resolution:1.5x){:where(:root),:where([data-theme=light]){--shadow-hairline-width:.5px;--shadow-hairline-color:#0000001a}}:where([data-theme=dark]){--shadow-alpha-100:.2;--shadow-alpha-200:.2;--shadow-alpha-300:.36;--shadow-alpha-400:.3;--shadow-hairline-width:1px;--shadow-hairline-color:#ffffff1a}@media(min-resolution:150dpi),(min-resolution:1.5x){:where([data-theme=dark]){--shadow-hairline-width:.5px;--shadow-hairline-color:#ffffff1f}}:where([data-theme=dark]) [data-surface=elevated]{--shadow-hairline:0 0 #0000}:root,:where([data-theme]){--color-text:var(--gray-1000);--color-text-inverse:var(--gray-0);--color-text-primary:var(--color-text);--color-text-primary-soft:var(--color-text);--color-background-primary-soft-alt:var(--alpha-02);--color-border-primary-soft-alt:var(--alpha-06);--color-text-primary-soft-alt:var(--color-text);--color-text-primary-surface:var(--color-text);--color-text-primary-solid:var(--color-text-inverse);--color-text-primary-outline:var(--color-text);--color-text-primary-outline-hover:var(--color-text);--color-text-primary-ghost:var(--color-text);--color-text-primary-ghost-hover:var(--color-text);--color-ring-primary:var(--color-ring);--color-ring-primary-soft:var(--color-ring-primary);--color-ring-primary-solid:var(--color-ring-primary);--color-ring-primary-outline:var(--color-ring-primary);--color-ring-primary-ghost:var(--color-ring-primary);--color-text-secondary-soft:var(--color-text);--color-background-secondary-soft-alt:var(--alpha-02);--color-border-secondary-soft-alt:var(--alpha-06);--color-text-secondary-soft-alt:var(--color-text);--color-text-secondary-solid:var(--white);--color-text-secondary-outline:var(--color-text-secondary);--color-text-secondary-outline-hover:var(--color-text);--color-text-secondary-ghost:var(--color-text-secondary);--color-text-secondary-ghost-hover:var(--color-text);--color-ring-secondary:var(--color-ring);--color-ring-secondary-soft:var(--color-ring-secondary);--color-ring-secondary-solid:var(--color-ring-secondary);--color-ring-secondary-outline:var(--color-ring-secondary);--color-ring-secondary-ghost:var(--color-ring-secondary);--color-background-info-soft:var(--blue-50);--color-background-info-soft-hover:var(--blue-75);--color-background-info-soft-active:var(--blue-75);--color-background-info-soft-alpha:var(--blue-a50);--color-background-info-soft-alpha-hover:var(--blue-a75);--color-background-info-soft-alpha-active:var(--blue-a75);--color-background-info-solid:var(--blue-400);--color-background-info-solid-hover:var(--blue-500);--color-background-info-solid-active:var(--blue-500);--color-text-info-solid:var(--white);--color-background-info-outline-hover:var(--blue-a25);--color-background-info-outline-active:var(--blue-a25);--color-border-info-outline:var(--blue-500);--color-border-info-outline-hover:var(--blue-500);--color-text-info-outline:var(--blue-500);--color-text-info-outline-hover:var(--blue-500);--color-background-info-ghost-hover:var(--blue-a50);--color-background-info-ghost-active:var(--blue-a50);--color-ring-info:var(--color-ring);--color-ring-info-soft:var(--color-ring-info);--color-ring-in