1import{En as e,H as t,J as n,L as r,Ut as i,an as a,it as o,nt as s,ot as c,un as l,vn as u}from"./runtime-core.esm-bundler-Car86Ubo.js";var d=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]);function f(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function p(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=p(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=f(n),a=i?void 0:p(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var m=Object.prototype.hasOwnProperty;function h(e,t){return m.call(e,t)}var g=[`twitter`,`fediverse`],_=[`og`,`book`,`article`,`profile`,`fb`,`payment`],v=[`ogImage`,`ogVideo`,`ogAudio`,`twitterImage`],y=[`contentType`,`defaultStyle`,`xUaCompatible`],b={articleExpirationTime:`article:expiration_time`,articleModifiedTime:`article:modified_time`,articlePublishedTime:`article:published_time`,bookReleaseDate:`book:release_date`,fbAppId:`fb:app_id`,ogAudioSecureUrl:`og:audio:secure_url`,ogAudioUrl:`og:audio`,ogImageSecureUrl:`og:image:secure_url`,ogImageUrl:`og:image`,ogSiteName:`og:site_name`,ogVideoSecureUrl:`og:video:secure_url`,ogVideoUrl:`og:video`,paymentExpiresAt:`payment:expires_at`,paymentSuccessUrl:`payment:success_url`,profileFirstName:`profile:first_name`,profileLastName:`profile:last_name`,profileUsername:`profile:username`,msapplicationConfig:`msapplication-Config`,msapplicationTileColor:`msapplication-TileColor`,msapplicationTileImage:`msapplication-TileImage`},x=/([A-Z])/g,S=/^(?:og|twitter)/,C={appleItunesApp:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>`${w(e)}=${t}`}},refresh:{metaKey:`http-equiv`,unpack:{entrySeparator:`;`,resolve:({key:e,value:t})=>e===`seconds`?`${t}`:void 0}},robots:{unpack:{entrySeparator:`, `,resolve:({key:e,value:t})=>typeof t==`boolean`?w(e):`${w(e)}:${t}`}},contentSecurityPolicy:{metaKey:`http-equiv`,unpack:{entrySeparator:`; `,resolve:({key:e,value:t})=>`${w(e)} ${t}`}},charset:{}};function w(e){let t=e.replace(x,`-$1`).toLowerCase(),n=t.indexOf(`-`);return n===-1?t:g.includes(t.slice(0,n))||_.includes(t.slice(0,n))?e.replace(x,`:$1`).toLowerCase():t}function T(e){return Object.fromEntries(Object.entries(e).filter(([e,t])=>String(t)!==`false`&&e))}function E(e){return Array.isArray(e)?e.map(E):!e||typeof e!=`object`?e:Object.fromEntries(Object.entries(e).map(([e,t])=>[w(e),E(t)]))}function D(e,t={}){let{entrySeparator:n=``,keyValueSeparator:r=``,wrapValue:i,resolve:a}=t;return Object.entries(e).map(([e,n])=>{if(a){let t=a({key:e,value:n});if(t!==void 0)return t}let o=typeof n==`object`?D(n,t):typeof n==`number`?n.toString():typeof n==`string`&&i?`${i}${n.replace(new RegExp(i,`g`),`\\${i}`)}${i}`:n;return`${e}${r}${o}`}).join(n)}function O(e,t){let n=T(t),r=w(e),i=k(r);return d.has(r)?M(Object.fromEntries(Object.entries(n).map(([t,n])=>[`${e}${t===`url`?``:`${t[0].toUpperCase()}${t.slice(1)}`}`,n]))||{}).sort((e,t)=>(e[i]?.length||0)-(t[i]?.length||0)):[{[i]:r,...n}]}function k(e){if(C[e]?.metaKey===`http-equiv`||y.includes(e))return`http-equiv`;let t=w(e),n=t.indexOf(`:`);return n===-1?`name`:_.includes(t.slice(0,n))?`property`:`name`}function A(e){return b[e]||w(e)}function j(e,t){return t===`refresh`?`${e.seconds};url=${e.url}`:D(E(e),{keyValueSeparator:`=`,entrySeparator:`, `,resolve:({value:e,key:t})=>e===null?``:typeof e==`boolean`?t:void 0,...C[t]?.unpack})}function M(e){let t=[],n={};for(let[r,i]of Object.entries(e)){if(Array.isArray(i)){if(r===`themeColor`){i.forEach(e=>{typeof e==`object`&&e&&t.push({name:`theme-color`,...e})});continue}for(let e of i)if(typeof e==`object`&&e){let n=[],i=[];for(let[t,a]of Object.entries(e)){let e=M({[`${r}${t===`url`?``:`:${t}`}`]:a});(t===`url`?n:i).push(...e)}t.push(...n,...i)}else t.push(...typeof e==`string`?M({[r]:e}):O(r,e));continue}if(typeof i==`object`&&i){if(v.includes(r)){let e=r.startsWith(`twitter`)?`twitter`:`og`,n=r.replace(S,``).toLowerCase(),a=e===`twitter`?`name`:`property`;i.url&&t.push({[a]:`${e}:${n}`,content:i.url}),i.secureUrl&&t.push({[a]:`${e}:${n}:secure_url`,content:i.secureUrl});for(let[r,o]of Object.entries(i))r!==`url`&&r!==`secureUrl`&&t.push({[a]:`${e}:${n}:${r}`,content:o})}else d.has(w(r))?t.push(...O(r,i)):n[r]=T(i)}else n[r]=i}let r=Object.entries(n).map(([e,t])=>
1{if(e===`charset`)return{charset:t===null?`_null`:t};let n=k(e),r=A(e),i=t===null?`_null`:typeof t==`object`?j(t,e):typeof t==`number`?t.toString():t;return n===`http-equiv`?{"http-equiv":r,content:i}:{[n]:r,content:i}});return[...t,...r].map(e=>`content`in e&&e.content===`_null`?{...e,content:null}:e)}function N(e,t){return t&&typeof e==`function`&&(e.key=t),e}var P=N({key:`flatMeta`,hooks:{"entries:normalize":e=>{let t=!1,n=[],r=[];for(let i of e.tags){if(i.tag!==`_flatMeta`){n.push(i);continue}t=!0;for(let e of M(i.props))r.push({...i,tag:`meta`,props:e})}if(t){for(let e of r)n.push(e);e.tags=n}}}}),F=`usehead`;function I(){if(t()){let e=n(F);if(e)return e}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}var L=Object.assign((t,n)=>l(n)?e(n):n,{_static:!0});function R(e,t={}){let n=t.head||I();return n.ssr?n.push(e||{},t):z(n,e,t)}function z(e,t,n={}){let l=a();if(l&&!l.active)return{patch(){},dispose(){},_i:-1};let d=u(!1);if(n.onRendered&&l){let e=n.onRendered;n={...n,onRendered:t=>l.run(()=>e(t))}}let f;return i(()=>{let r=d.value?{}:p(t,L);f?f.patch(r):f=e.push(r,n)}),r()&&(o(()=>{f.dispose()}),c(()=>{d.value=!0}),s(()=>{d.value=!1})),f}function B(e){if(e._flatMeta)return e;let t={};for(let n in e)h(e,n)&&n!==`title`&&n!==`titleTemplate`&&(t[n]=e[n]);return{title:e.title,titleTemplate:e.titleTemplate,_flatMeta:t}}function V(e={},t={}){(t.head||I()).use(P);let n=R(B(e),t),r=n.patch;return n.__patched||=(n.patch=e=>r(B(e)),!0),n}export{h as a,N as i,V as n,I as r,R 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.