PageSourceSearch

https://solarbrain.ai/_nuxt/B7WKBxut.js

js solarbrain.ai collected 2026-10-05 15:51:04 UTC 16,796 bytes, 1 lines download raw bytes

1import{o as e,p as t,s as n}from"./tdwVTCZ6.js";import{Bt as r,C as i,Ct as a,G as o,I as s,Jt as c,M as l,N as u,P as d,Pt as f,Q as p,V as m,Y as h,_t as g,j as _,jt as v,nt as y,rt as b,un as x,x as S}from"./DWS5kUQL.js";import"./rxhDcyfF.js";import{d as C,f as w,l as T,p as E,u as D}from"./DAw2eIR0.js";import{b as O,d as k,l as A,n as ee,p as j,s as M,v as N}from"./eY5IeRux.js";import{i as te,o as ne}from"./DeV6F51I.js";import{n as re,r as ie,t as P}from"./DSQ6xVKi.js";import{t as ae}from"./CJd5SWi8.js";import{n as oe,t as F}from"./bW6NxFOP.js";import{c as I,p as se}from"./D5fDR0RI.js";import{b as ce,y as le}from"./C3bjzUOu.js";import{n as L,t as ue}from"./DduzYdMq.js";import{t as de}from"./B0EtVAjB.js";var fe={scrollBehavior(t,n,r){let i=e(),a=E(),o=a.options?.scrollBehaviorType??`auto`;return t.path.replace(/\/$/,``)===n.path.replace(/\/$/,``)?n.hash&&!t.hash?r??{left:0,top:0}:t.hash?{el:t.hash,top:R(t.hash),behavior:o}:!1:(typeof t.meta.scrollToTop==`function`?t.meta.scrollToTop(t,n):t.meta.scrollToTop)===!1?!1:n===ne?z(t,n,r,o):new Promise(e=>{let s=()=>{requestAnimationFrame(()=>{if(a.currentRoute.value.fullPath!==t.fullPath){e(!1);return}e(z(t,n,r,o))})};i.hooks.hookOnce(`page:loading:end`,()=>{let e=i[`~transitionPromise`];e?e.then(s):s()})})}};function R(e){try{let t=document.querySelector(e);if(t)return(Number.parseFloat(getComputedStyle(t).scrollMarginTop)||0)+(Number.parseFloat(getComputedStyle(document.documentElement).scrollPaddingTop)||0)}catch{}return 0}function z(e,t,n,r){return n||(e.hash?{el:e.hash,top:R(e.hash),behavior:te(e,t)?r:`instant`}:{left:0,top:0})}var pe={hashMode:!1,scrollBehaviorType:`auto`,...fe};function me(e){if(e?.__asyncLoader&&!e.__asyncResolved)return e.__asyncLoader()}async function B(e,t=E()){let{path:n,matched:r}=t.resolve(e);if(!r.length||(t._routePreloaded||=new Set,t._routePreloaded.has(n)))return;let i=t._preloadPromises||=[];if(i.length>4)return Promise.all(i).then(()=>B(e,t));t._routePreloaded.add(n);for(let e of r){let t=e.components?.default;if(typeof t!=`function`)continue;let n=Promise.resolve(t()).catch(()=>{}).finally(()=>i.splice(i.indexOf(n),1));i.push(n)}await Promise.all(i)}s(),a();var he=(...e)=>e.find(e=>e!==void 0);function V(e){let t=e.replace(/[\u0000-\u001F\s]+/g,``);for(;t.toLowerCase().startsWith(`view-source:`);)t=t.slice(12);let n=t.indexOf(`:`);return n>0&&A(t.slice(0,n+1))?null:e}function ge(t){let i=t.componentName||`NuxtLink`;function a(e){return typeof e==`string`&&e.startsWith(`#`)}function s(e,n,r){let i=r??t.trailingSlash;if(!e||i!==`append`&&i!==`remove`)return e;if(typeof e==`string`)return U(e,i);let a=`path`in e&&e.path!==void 0?e.path:n(e).path;return{...e,name:void 0,path:U(a,i)}}function c(e){let i=E(),o=n(),c=S(()=>!!r(e.target)&&r(e.target)!==`_self`),l=S(()=>{let t=r(e.to)||r(e.href)||``;return typeof t==`string`&&M(t,{acceptRelative:!0})}),u=b(`RouterLink`),d=u&&typeof u!=`string`?u.useLink:void 0,f=S(()=>{if(r(e.external))return!0;let t=r(e.to)||r(e.href)||``;return typeof t==`object`?!1:t===``||l.value}),p=S(()=>{let t=r(e.to)||r(e.href)||``;return f.value?t:s(t,i.resolve,r(e.trailingSlash))}),m=f.value?void 0:d?.({...e,to:p,viewTransition:r(e.viewTransition)}),h=S(()=>{let n=r(e.trailingSlash)??t.trailingSlash;if(!p.value||l.value||a(p.value)){let e=p.value;return typeof e==`string`?V(e):e}if(f.value){let e=typeof p.value==`object`&&`path`in p.value?C(p.value):p.value,t=typeof e==`object`?i.resolve(e).href:e,r=typeof t==`string`?V(t):t;return r===null?null:U(r,n)}return typeof p.value==`object`?i.resolve(p.value)?.href??null:U(k(o.app.baseURL,p.value),n)});return{to:p,hasTarget:c,isAbsoluteUrl:l,isExternal:f,href:h,isActive:m?.isActive??S(()=>p.value===i.currentRoute.value.path),isExactActive:m?.isExactActive??S(()=>p.value===i.currentRoute.value.path),route:m?.route??S(()=>i.resolve(p.value)),async navigate(t){h.value!==null&&await D(h.value,{replace:r(e.replace),external:f.value||c.value})}}}return _({name:i,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1},trailingSlash:{type:String,default:void 0,required:!1}},useLink:c,setup(n,{slots:r}){let i=E(),{to:s,href:l,navigate:u,isExternal:p,hasTarget:m,isAbsoluteUrl:g}=c(n),_=f(!1),y=v(null),x=e=>{y.value=n.custom?e?.$el?.nextElementSibling:e?.$el};function S(e){return!!(!_.value&&(typeof n.prefetchOn==`string`?n.prefetchOn===e:n.prefetchOn?.[e]??t.prefetchOn?.[e])&&(n.prefetch??t.prefetch)!==!1&&n.noPrefetch!==!0&&n.target!==`_blank`&&!G())}async function w(t=e()){if(_.value||l.value===null)return;_.value=!0;let n=typeof s.value==`string`?s.value:p.value?C(s.value):i.resolve(s.value).fullPath,r=p.value?new URL(n,window.location.href).href:n;await Promise.all([t.hooks.callHook(`link:prefetch`,r)?.catch(()=>{}),!p.value&&!m.value&&B(s.value,i).catch(()=>{})])}if(!n.custom&&S(`visibility`)){let t=e(),n,r=null;h(()=>{let e=W();P(()=>{n=ie(()=>{y?.value?.tagName&&(r=e.observe(y.value,async()=>{r?.(),r=null,await w(t)}))})})}),o(()=>{n&&re(n),r?.(),r=null})}return()=>{let e=n.target||null,o=he(n.noRel?``:n.rel,t.externalRelAttribute,g.value||m.value?`noopener noreferrer`:``)||null,c=t=>({href:l.value,navigate:u,get route(){if(!l.value)return;let e=new URL(l.value,window.location.href);return{path:e.pathname,fullPath:e.pathname,get query(){return j(e.search)},hash:e.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:l.value}},rel:o,target:e,isExternal:p.value||m.value,isActive:!1,isExactActive:!1,...t,prefetch:w,prefetched:_.value,shouldPrefetch:S});if(!p.value&&!m.value&&!a(s.value)){let e={ref:x,to:s.value,activeClass:n.activeClass||t.activeClass,exactActiveClass:n.exactActiveClass||t.exactActiveClass,replace:n.replace,ariaCurrentValue:n.ariaCurrentValue,custom:n.custom};
1return n.custom||(S(`interaction`)&&(e.onPointerenter=w.bind(null,void 0),e.onFocus=w.bind(null,void 0)),_.value&&(e.class=n.prefetchedClass||t.prefetchedClass),e.rel=n.rel||void 0),d(b(`RouterLink`),e,n.custom&&r.default?{default:e=>r.default(c(e))}:r.default)}return n.custom?r.default?r.default(c()):null:d(`a`,{ref:y,href:l.value||null,rel:o,target:e,onClick:async e=>{if(!(p.value||m.value)){e.preventDefault();try{let e=T(l.value??``);return await(n.replace?i.replace(e):i.push(e))}finally{if(a(s.value)){let e=s.value.slice(1),t=e;try{t=decodeURIComponent(e)}catch{}document.getElementById(t)?.focus()}}}}},r.default?.())}}})}var H=ge(t);function U(e,t){if(t!==`append`&&t!==`remove`)return e;let n=t===`append`?N:O;return M(e)&&!e.startsWith(`http`)?e:n(e,!0)}function W(){let t=e();if(t._observer)return t._observer;let n=null,r=new Map;return t._observer={observe:(e,t)=>(n||=new IntersectionObserver(e=>{for(let t of e){let e=r.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),r.set(e,t),n.observe(e),()=>{r.delete(e),n?.unobserve(e),r.size===0&&(n?.disconnect(),n=null)})}}var _e=/2g/;function G(){let e=navigator.connection;return!!(e&&(e.saveData||_e.test(e.effectiveType)))}var K=`__proto__`;function ve(e,t){let n=[];return q(e,t,``,n),n}function q(e,t,n,r){if(e===t)return;let i=typeof e!=`object`||!e,a=typeof t!=`object`||!t;if(!i&&!a){let i=ye(e),a=ye(t);for(let[e,t]of i){let i=n?`${n}.${e}`:e;a.has(e)?q(t,a.get(e),i,r):r.push(new Y(i,`removed`,void 0,J(t,i)))}for(let[e,t]of a){if(i.has(e))continue;let a=n?`${n}.${e}`:e;r.push(new Y(a,`added`,J(t,a)))}return}if(be(e,i)||be(t,a))return;let o=xe(e,n,i),s=xe(t,n,a);o.hash!==s.hash&&r.push(new Y(n,`changed`,s,o))}function ye(e){let t=new Map;for(let n in e)n!==K&&t.set(n,e[n]);return t}function be(e,t){if(t)return!1;for(let t in e)if(t!==K)return!0;return!1}function xe(e,t,n){return n?new X(t,e,Se(e)):new X(t,e,`{}`,Object.create(null))}function J(e,t=``){if(typeof e!=`object`||!e)return new X(t,e,Se(e));let n=Object.create(null),r=[];for(let i in e){if(i===K)continue;let a=J(e[i],t?`${t}.${i}`:i);n[i]=a,r.push(a.hash)}return new X(t,e,`{${r.join(`:`)}}`,n)}function Se(e){switch(typeof e){case`string`:return`'${e}'`;case`number`:case`boolean`:return``+e;case`bigint`:return`${e}n`;default:return oe(e)}}var Y=class{key;type;newValue;oldValue;constructor(e,t,n,r){this.key=e,this.type=t,this.newValue=n,this.oldValue=r}toString(){return this.toJSON()}toJSON(){switch(this.type){case`added`:return`Added   \`${this.key}\``;case`removed`:return`Removed \`${this.key}\``;case`changed`:return`Changed \`${this.key}\` from \`${this.oldValue?.toString()||`-`}\` to \`${this.newValue?.toString()}\``}}},X=class{key;value;hash;props;constructor(e,t,n,r){this.key=e,this.value=t,this.hash=n,this.props=r}toString(){return this.props?`{${Object.keys(this.props).join(`,`)}}`:JSON.stringify(this.value)}toJSON(){let e=this.key||`.`;return this.props?`${e}({${Object.keys(this.props).join(`,`)}})`:`${e}(${this.value})`}},Ce=`active.activeClass.ariaCurrentValue.as.disabled.download.exact.exactActiveClass.exactHash.exactQuery.external.form.formaction.formenctype.formmethod.formnovalidate.formtarget.href.hreflang.inactiveClass.locale.media.noPrefetch.noRel.onClick.ping.prefetch.prefetchOn.prefetchedClass.referrerpolicy.rel.replace.target.title.to.trailingSlash.type.viewTransition`.split(`.`);function we(e){let t=Object.keys(e),n=t.filter(e=>e.startsWith(`aria-`)),r=t.filter(e=>e.startsWith(`data-`)),i=[...Ce,...n,...r];return ce(e,...i)}function Te(e,t){let n=ve(e,t).reduce((e,t)=>(t.type===`added`&&e.add(t.key),e),new Set),r=Object.fromEntries(Object.entries(e).filter(([e])=>!n.has(e))),i=Object.fromEntries(Object.entries(t).filter(([e])=>!n.has(e)));return F(r,i)}function Ee(e){if(typeof window<`u`)return typeof window.requestIdleCallback==`function`?window.requestIdleCallback(e):setTimeout(e,1)}function De(e){if(typeof window<`u`&&e!==void 0){if(typeof window.cancelIdleCallback==`function`){window.cancelIdleCallback(e);return}clearTimeout(e)}}var Z=null,Q=new Map;function Oe(e,t){return typeof IntersectionObserver>`u`?()=>{}:(Z||=new IntersectionObserver(e=>{for(let t of e){let e=Q.get(t.target);(t.isIntersecting||t.intersectionRatio>0)&&e&&e()}}),Q.set(e,t),Z.observe(e),()=>{Q.delete(e),Z?.unobserve(e),Q.size===0&&(Z?.disconnect(),Z=null)})}s(),a();var $={__name:`ULinkBase`,props:{as:{type:String,required:!1,default:`button`},type:{type:String,required:!1,default:`button`},disabled:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},href:{type:[String,null],required:!1},navigate:{type:Function,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},active:{type:Boolean,required:!1},isExternal:{type:Boolean,required:!1}},setup(e){let t=e;function n(e){if(t.disabled){e.stopPropagation(),e.preventDefault();return}if(t.onClick)for(let n of Array.isArray(t.onClick)?t.onClick:[t.onClick])n(e);t.href&&t.navigate&&!t.isExternal&&t.navigate(e)}return(t,a)=>(p(),i(r(ue),m(e.href?{as:`a`,href:e.disabled?void 0:e.href,"aria-disabled":e.disabled?`true`:void 0,role:e.disabled?`link`:void 0,tabindex:e.disabled?-1:void 0}:e.as===`button`?{as:e.as,type:e.type,disabled:e.disabled}:{as:e.as},{rel:e.rel,target:e.target,onClick:n}),{default:g(()=>[y(t.$slots,`default`)]),_:3},16,[`rel`,`target`]))}},ke={base:`outline-primary/25 focus-visible:outline-3 rounded-md`,variants:{active:{true:`text-primary`,false:`text-muted`},disabled:{true:`cursor-not-allowed opacity-75`}},compoundVariants:[{active:!1,disabled:!1,class:[`hover:text-default`,`transition-colors`]}]};a(),c(),s();var Ae=Object.assign({inheritAttrs:!1},{__name:`ULink`,props:{as:{type:null,required:!1,default:`button`},type:{type:null,required:!1,default:`button`},disabled:{type:Boolean,required:!1},active:{type:Boolean,required:!1,default:void 0},exact:{type:Boolean,required:!1},exactQuery:{type:[Boolean,String],required:!1},exactHash:{type:Boolean,required:!1},inactiveClass:{type:String,required:!1},custom:{type:Boolean,required:!1},raw:{type:Boolean,required:!1},locale:{type:[Boolean,String],required:!1,default:void 0},class:{type:null,required:!1},to:{type:null,required:!1},href:{type:null,required:!1},external:{type:Boolean,required:!1},target:{type:[String,Object,null],required:!1},rel:{type:[String,Object,null],required:!1},noRel:{type:Boolean,required:!1},prefetchedClass:{type:String,required:!1},prefetch:{type:Boolean,required:!1},prefetchOn:{type:[String,Object],required:!1},noPrefetch:{type:Boolean,required:!1},trailingSlash:{type:String,required:!1},activeClass:{type:String,required:!1},exactActiveClass:{type:String,required:!1},ariaCurrentValue:{type:String,required:!1,default:`page`},viewTransition:{type:Boolean,required:!1},replace:{type:Boolean,required:!1}},setup(t){let n=t,a=w(),s=ae(),c=e(),d=de(le(n,`as`,`type`,`disabled`,`active`,`exact`,`exactQuery`,`exactHash`,`activeClass`,`inactiveClass`,`to`,`href`,`raw`,`custom`,`locale`,`class`)),f=S(()=>se({extend:ke,...ee({variants:{active:{true:I(s.ui?.link?.variants?.active?.true,n.activeClass),false:I(s.ui?.link?.variants?.active?.false,n.inactiveClass)}}},s.ui?.link||{})})),_=S(()=>{let e=n.to??n.href;if(!e||typeof e!=`string`||n.external||M(e,{acceptRelative:!0})||n.locale===!1)return e;let t=c.$localePath;if(!t)return e;let r=c.$i18n?.localeCodes?.value;return r?.length&&RegExp(`^/(${r.join(`|`)})($|[/?#])`).test(e)?e:t(e,typeof n.locale==`string`?n.locale:void 0)||e}),v=S(()=>!_.value||n.external?!1:typeof _.value!=`string`||!(M(_.value,{acceptRelative:!0})||n.target&&n.target!==`_self`)),b=S(()=>n.noRel?null:n.rel===void 0?!v.value||n.target&&n.target!==`_self`?`noopener noreferrer`:null:n.rel||null);function C({route:e,isActive:t,isExactActive:r}={}){if(n.active!==void 0)return n.active;if(!_.value)return!1;if(n.exactQuery===`partial`){if(!Te(e.query,a.query))return!1}else if(n.exactQuery===!0&&!F(e.query,a.query))return!1;return n.exactHash&&e.hash!==a.hash?!1:!!(n.exact&&r||!n.exact&&t)}function T({route:e,isActive:t,isExactActive:r,prefetched:i}={}){let a=C({route:e,isActive:t,isExactActive:r}),o=i?n.prefetchedClass:void 0;return n.raw?[n.class,a?n.activeClass:n.inactiveClass,o]:f.value({class:o?[n.class,o]:n.class,active:a,disabled:n.disabled})}let E=l(),D;function O(){D?.prefetch?.(c)}function k({prefetch:e,shouldPrefetch:t},n){if(e&&t&&(D={prefetch:e,shouldPrefetch:t},t(`interaction`)))return m({onPointerenter:n.onPointerenter,onFocus:n.onFocus},{onPointerenter:O,onFocus:O})}let A,j=null,N=!1;return h(()=>
1{if(!D?.shouldPrefetch?.(`visibility`))return;let e=E?.proxy?.$el,t=e instanceof Element?e:e?.nextElementSibling;t&&P(()=>{N||(A=Ee(()=>{j=Oe(t,()=>{j?.(),j=null,O()})}))})}),o(()=>{N=!0,De(A),j?.(),j=null}),(e,a)=>{let o=H;return v.value?(p(),i(o,m({key:0},r(d),{to:_.value,custom:``}),{default:g(({href:a,navigate:o,route:s,isActive:c,isExactActive:l,...d})=>[t.custom?(p(),i(r(L),{key:0},{default:g(()=>[y(e.$slots,`default`,x(u({...e.$attrs,...t.exact&&l?{"aria-current":n.ariaCurrentValue}:{},...d.prefetched&&t.prefetchedClass?{class:t.prefetchedClass}:{},...k(d,e.$attrs),as:t.as,type:t.type,disabled:t.disabled,href:a,navigate:o,rel:b.value,target:d.target,isExternal:d.isExternal,active:C({route:s,isActive:c,isExactActive:l})})))]),_:2},1024)):(p(),i($,m({key:1},{...e.$attrs,...t.exact&&l?{"aria-current":n.ariaCurrentValue}:{},as:t.as,type:t.type,disabled:t.disabled,href:a,navigate:o,rel:b.value,target:d.target,isExternal:d.isExternal,...k(d,e.$attrs)},{class:T({route:s,isActive:c,isExactActive:l,prefetched:d.prefetched})}),{default:g(()=>[y(e.$slots,`default`,{active:C({route:s,isActive:c,isExactActive:l})})]),_:2},1040,[`class`]))]),_:3},16,[`to`])):t.custom?(p(),i(r(L),{key:1},{default:g(()=>[y(e.$slots,`default`,x(u({...e.$attrs,as:t.as,type:t.type,disabled:t.disabled,..._.value?{href:String(_.value),target:n.target,rel:b.value,isExternal:!0}:{},active:t.active??!1})))]),_:3})):(p(),i($,m({key:2},{...e.$attrs,as:t.as,type:t.type,disabled:t.disabled,..._.value?{href:String(_.value),target:n.target,rel:b.value,isExternal:!0}:{}},{class:T()}),{default:g(()=>[y(e.$slots,`default`,{active:t.active??!1})]),_:3},16,[`class`]))}}});export{G as a,B as c,H as i,pe as l,$ as n,W as o,we as r,me as s,Ae as t};

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.