1import{c as t}from"./pinia.js";import{n as e,i as n,v as o,u as s,r,x as i,w as a,y as l,z as p,A as c,B as d}from"./vue.js";const f=new Set(["title","titleTemplate","script","style","noscript"]),u=new Set(["base","meta","link","style","script","noscript"]),g=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),h=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),y=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),m="undefined"!=typeof window;function v(t){let e=9;for(let n=0;n<t.length;)e=Math.imul(e^t.charCodeAt(n++),9**9);return(65536+(e^e>>>9)).toString(16).substring(1,8).toLowerCase()}function b(t){if(t._h)return t._h;if(t._d)return v(t._d);let e=`${t.tag}:${t.textContent||t.innerHTML||""}:`;for(const n in t.props)e+=`${n}:${String(t.props[n])},`;return v(e)}function _(t,e,n,o){const s=o||w("object"!=typeof e||"function"==typeof e||e instanceof Promise?{["script"===t||"noscript"===t||"style"===t?"innerHTML":"textContent"]:e}:{...e},"templateParams"===t||"titleTemplate"===t);if(s instanceof Promise)return s.then(o=>_(t,e,n,o));const r={tag:t,props:s};for(const i of y){const t=void 0!==r.props[i]?r.props[i]:n[i];void 0!==t&&(("innerHTML"!==i&&"textContent"!==i&&"children"!==i||f.has(r.tag))&&(r["children"===i?"innerHTML":i]=t),delete r.props[i])}return r.props.body&&(r.tagPosition="bodyClose",delete r.props.body),"script"===r.tag&&"object"==typeof r.innerHTML&&(r.innerHTML=JSON.stringify(r.innerHTML),r.props.type=r.props.type||"application/json"),Array.isArray(r.props.content)?r.props.content.map(t=>({...r,props:{...r.props,content:t}})):r}function k(t,e){var n;const o="class"===t?" ":";";return e&&"object"==typeof e&&!Array.isArray(e)&&(e=Object.entries(e).filter(([,t])=>t).map(([e,n])=>"style"===t?`${e}:${n}`:e)),null==(n=String(Array.isArray(e)?e.join(o):e))?void 0:n.split(o).filter(t=>Boolean(t.trim())).join(o)}function T(t,e,n,o){for(let s=o;s<n.length;s+=1){const o=n[s];if("class"!==o&&"style"!==o){if(t[o]instanceof Promise)return t[o].then(r=>(t[o]=r,T(t,e,n,s)));if(!e&&!y.has(o)){const e=String(t[o]),n=o.startsWith("data-");"true"===e||""===e?t[o]=!n||"true":t[o]||(n&&"false"===e?t[o]="false":delete t[o])}}else t[o]=k(o,t[o])}}function w(t,e=!1){const n=T(t,e,Object.keys(t),0);return n instanceof Promise?n.then(()=>t):t}function H(t,e,n){for(let o=n;o<e.length;o+=1){const n=e[o];if(n instanceof Promise)return n.then(n=>(e[o]=n,H(t,e,o)));Array.isArray(n)?t.push(...n):t.push(n)}}function $(t){const e=[],n=t.resolvedInput;for(const i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;const o=n[i];if(void 0!==o&&g.has(i))if(Array.isArray(o))for(const n of o)e.push(_(i,n,t));else e.push(_(i,o,t))}if(0===e.length)return[];const o=[];return s=H(o,e,0),r=()=>o.map((e,n)=>(e._e=t._i,t.mode&&(e._m=t.mode),e._p=(t._i<<10)+n,e)),s instanceof Promise?s.then(r):r(s);var s,r}const P=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),x={base:-10,title:10},C={critical:-80,high:-10,low:20};function A(t){const e=t.tagPriority;if("number"==typeof e)return e;let n=100;return"meta"===t.tag?"content-security-policy"===t.props["http-equiv"]?n=-30:t.props.charset?n=-20:"viewport"===t.props.name&&(n=-15):"link"===t.tag&&"preconnect"===t.props.rel?n=20:t.tag in x&&(n=x[t.tag]),e&&e in C?n+C[e]:n}const M=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],O=["name","property","http-equiv"];function L(t){const{props:e,tag:n}=t;if(h.has(n))return n;if("link"===n&&"canonical"===e.rel)return"canonical";if(e.charset)return"charset";if(e.id)return`${n}:id:${e.id}`;for(const o of O)if(void 0!==e[o])return`${n}:${o}:${e[o]}`;return!1}const j="%separator";const S=new RegExp(`${j}(?:\\s*${j})*`,"g");function E(t,e,n,o=!1){if("string"!=typeof t||!t.includes("%"))return t;let s=t;try{s=decodeURI(t)}catch{}const r=s.match(/%\w+(?:\.\w+)?/g);if(!r)return t;const i=t.includes(j);return t=t.replace(/%\w+(?:\.\w+)?/g,t=>{if(t===j||!r.includes(t))return t;const n=function(t,e,n=!1){var o;let s;if("s"===e||"pageTitle"===e)s=t.pageTitle;else if(e.includes(".")){const n=e.indexOf(".");
1s=null==(o=t[e.substring(0,n)])?void 0:o[e.substring(n+1)]}else s=t[e];if(void 0!==s)return n?(s||"").replace(/"/g,'\\"'):s||""}(e,t.slice(1),o);return void 0!==n?n:t}).trim(),i&&(t.endsWith(j)&&(t=t.slice(0,-10)),t.startsWith(j)&&(t=t.slice(10)),t=t.replace(S,n).trim()),t}function R(t,e){return null==t?e||null:"function"==typeof t?t(e):t}function D(t,e={}){const n=e.delayFn||(t=>setTimeout(t,10));return t._domDebouncedUpdatePromise=t._domDebouncedUpdatePromise||new Promise(o=>n(()=>async function(t,e={}){const n=e.document||t.resolvedOptions.document;if(!n||!t.dirty)return;const o={shouldRender:!0,tags:[]};return await t.hooks.callHook("dom:beforeRender",o),o.shouldRender?(t._domUpdatePromise||(t._domUpdatePromise=new Promise(async e=>{var o;const s=(await t.resolveTags()).map(t=>({tag:t,id:u.has(t.tag)?b(t):t.tag,shouldRender:!0}));let r=t._dom;if(!r){r={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const t=new Set;for(const e of["body","head"]){const s=null==(o=n[e])?void 0:o.children;for(const e of s){const n=e.tagName.toLowerCase();if(!u.has(n))continue;const o={tag:n,props:await w(e.getAttributeNames().reduce((t,n)=>({...t,[n]:e.getAttribute(n)}),{})),innerHTML:e.innerHTML},s=L(o);let i=s,a=1;for(;i&&t.has(i);)i=`${s}:${a++}`;i&&(o._d=i,t.add(i)),r.elMap[e.getAttribute("data-hid")||b(o)]=e}}}function i(t,e,n){const o=`${t}:${e}`;r.sideEffects[o]=n,delete r.pendingSideEffects[o]}function a({id:t,$el:e,tag:o}){const s=o.tag.endsWith("Attrs");if(r.elMap[t]=e,s||(o.textContent&&o.textContent!==e.textContent&&(e.textContent=o.textContent),o.innerHTML&&o.innerHTML!==e.innerHTML&&(e.innerHTML=o.innerHTML),i(t,"el",()=>{var e;null==(e=r.elMap[t])||e.remove(),delete r.elMap[t]})),o._eventHandlers)for(const r in o._eventHandlers)Object.prototype.hasOwnProperty.call(o._eventHandlers,r)&&""!==e.getAttribute(`data-${r}`)&&(("bodyAttrs"===o.tag?n.defaultView:e).addEventListener(r.substring(2),o._eventHandlers[r].bind(e)),e.setAttribute(`data-${r}`,""));for(const n in o.props){if(!Object.prototype.hasOwnProperty.call(o.props,n))continue;const r=o.props[n],a=`attr:${n}`;if("class"===n){if(!r)continue;for(const n of r.split(" "))s&&i(t,`${a}:${n}`,()=>e.classList.remove(n)),!e.classList.contains(n)&&e.classList.add(n)}else if("style"===n){if(!r)continue;for(const n of r.split(";")){const o=n.indexOf(":"),s=n.substring(0,o).trim(),r=n.substring(o+1).trim();i(t,`${a}:${s}`,()=>{e.style.removeProperty(s)}),e.style.setProperty(s,r)}}else e.getAttribute(n)!==r&&e.setAttribute(n,!0===r?"":String(r)),s&&i(t,a,()=>e.removeAttribute(n))}}r.pendingSideEffects={...r.sideEffects},r.sideEffects={};const l=[],p={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const t of s){const{tag:e,shouldRender:o,id:s}=t;o&&("title"!==e.tag?(t.$el=t.$el||r.elMap[s],t.$el?a(t):u.has(e.tag)&&l.push(t)):n.title=e.textContent)}for(const t of l){const e=t.tag.tagPosition||"head";t.$el=n.createElement(t.tag.tag),a(t),p[e]=p[e]||n.createDocumentFragment(),p[e].appendChild(t.$el)}for(const c of s)await t.hooks.callHook("dom:renderTag",c,n,i);p.head&&n.head.appendChild(p.head),p.bodyOpen&&n.body.insertBefore(p.bodyOpen,n.body.firstChild),p.bodyClose&&n.body.appendChild(p.bodyClose);for(const t in r.pendingSideEffects)r.pendingSideEffects[t]();t._dom=r,await t.hooks.callHook("dom:rendered",{renders:s}),e()}).finally(()=>{t._domUpdatePromise=void 0,t.dirty=!1})),t._domUpdatePromise):void 0}(t,e).then(()=>{delete t._domDebouncedUpdatePromise,o()})))}function W(t){return e=>{var n,o;const s=(null==(o=null==(n=e.resolvedOptions.document)?void 0:n.head.querySelector('script[id="unhead:payload"]'))?void 0:o.innerHTML)||!1;return s&&e.push(JSON.parse(s)),{mode:"client",hooks:{"entries:updated":e=>{D(e,t)}}}}}const U=new Set(["templateParams","htmlAttrs","bodyAttrs"]),I={hooks:{"tag:normalise":({tag:t})=>{t.props.hid&&(t.key=t.props.hid,delete t.props.hid),t.props.vmid&&(t.key=t.props.vmid,delete t.props.vmid),t.props.key&&(t.key=t.props.key,delete t.props.key);const e=L(t);!e||e.startsWith("meta:og:")||e.startsWith("meta:twitter:")||delete t.key;const n=e||!!t.key&&`${t.tag}:${t.key}`;n&&(t._d=n)},"tags:resolve":t=>{const e=Object.create(null);for(const o of t.tags){const t=(o.key?`${o.tag}:${o.key}`:o._d)||b(o),n=e[t];if(n){let s=null==o?void 0:o.tagDuplicateStrategy;if(!s&&U.has(o.tag)&&(s="merge"),"merge"===s){const s=n.props;s.style&&o.props.style&&(";"!==s.style[s.style.length-1]&&(s.style+=";"),o.props.style=`${s.style} ${o.props.style}`),s.class&&o.props.class?o.props.class=`${s.class} ${o.props.class}`:s.class&&(o.props.class=s.class),e[t].props={...s,...o.props};continue}if(o._e===n._e){n._duped=n._duped||[],o._d=`${n._d}:${n._duped.length+1}`,n._duped.push(o);continue}if(A(o)>A(n))continue}o.innerHTML||o.textContent||0!==Object.keys(o.props).length||!u.has(o.tag)?e[t]=o:delete e[t]}const n=[];for(const o in e){const t=e[o],s=t._duped;n.push(t),s&&(delete t._duped,n.push(...s))}t.tags=n,t.tags=t.tags.filter(t=>!("meta"===t.tag&&(t.props.name||t.props.property)&&!t.props.content))}}},N=new Set(["script","link","bodyAttrs"]),F=t=>({hooks:{"tags:resolve":e=>{for(const n of e.tags){if(!N.has(n.tag))continue;const e=n.props;for(const o in e){if("o"!==o[0]||"n"!==o[1])continue;if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];"function"==typeof s&&(t.ssr&&P.has(o)?e[o]=`this.dataset.${o}fired = true`:delete e[o],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[o]=s)}t.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||v(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:e})=>{var n,o;const s=null==t?void 0:t.dataset;if(s)for(const r in s){if(!r.endsWith("fired"))continue;const s=r.slice(0,-5);P.has(s)&&(null==(o=null==(n=e._eventHandlers)?void 0:n[s])||o.call(t,new Event(s.substring(2))))}}}}),q=new Set(["link","style","script","noscript"]),B={hooks:{"tag:normalise":({tag:t})=>{t.key&&q.has(t.tag)&&(t.props["data-hid"]=t._h=v(t.key))}}},J={mode:"server",hooks:{"tags:beforeResolve":t=>{const e={};let n=!1;for(const o of t.tags)"server"!==o._m||"titleTemplate"!==o.tag&&"templateParams"!==o.tag&&"title"!==o.tag||(e[o.tag]="title"===o.tag||"titleTemplate"===o.tag?o.textContent:o.props,n=!0);n&&t.tags.push({tag:"script",innerHTML:JSON.stringify(e),props:{id:"unhead:payload",type:"application/json"}})}}},z={hooks:{"tags:resolve":t=>{var e;
1for(const n of t.tags)if("string"==typeof n.tagPriority)for(const{prefix:o,offset:s}of M){if(!n.tagPriority.startsWith(o))continue;const r=n.tagPriority.substring(o.length),i=null==(e=t.tags.find(t=>t._d===r))?void 0:e._p;if(void 0!==i){n._p=i+s;break}}t.tags.sort((t,e)=>{const n=A(t),o=A(e);return n<o?-1:n>o?1:t._p-e._p})}}},V={meta:"content",link:"href",htmlAttrs:"lang"},G=["innerHTML","textContent"],K=t=>({hooks:{"tags:resolve":e=>{var n;const{tags:o}=e;let s;for(let t=0;t<o.length;t+=1){"templateParams"===o[t].tag&&(s=e.tags.splice(t,1)[0].props,t-=1)}const r=s||{},i=r.separator||"|";delete r.separator,r.pageTitle=E(r.pageTitle||(null==(n=o.find(t=>"title"===t.tag))?void 0:n.textContent)||"",r,i);for(const t of o){if(!1===t.processTemplateParams)continue;const e=V[t.tag];if(e&&"string"==typeof t.props[e])t.props[e]=E(t.props[e],r,i);else if(t.processTemplateParams||"titleTemplate"===t.tag||"title"===t.tag)for(const n of G)"string"==typeof t[n]&&(t[n]=E(t[n],r,i,"script"===t.tag&&t.props.type.endsWith("json")))}t._templateParams=r,t._separator=i},"tags:afterResolve":({tags:e})=>{let n;for(let t=0;t<e.length;t+=1){const o=e[t];"title"===o.tag&&!1!==o.processTemplateParams&&(n=o)}(null==n?void 0:n.textContent)&&(n.textContent=E(n.textContent,t._templateParams,t._separator))}}}),Q={hooks:{"tags:resolve":t=>{const{tags:e}=t;let n,o;for(let s=0;s<e.length;s+=1){const t=e[s];"title"===t.tag?n=t:"titleTemplate"===t.tag&&(o=t)}if(o&&n){const e=R(o.textContent,n.textContent);null!==e?n.textContent=e||n.textContent:t.tags.splice(t.tags.indexOf(n),1)}else if(o){const t=R(o.textContent);null!==t&&(o.textContent=t,o.tag="title",o=void 0)}o&&t.tags.splice(t.tags.indexOf(o),1)}}},X={hooks:{"tags:afterResolve":t=>{for(const e of t.tags)"string"==typeof e.innerHTML&&(!e.innerHTML||"application/ld+json"!==e.props.type&&"application/json"!==e.props.type?e.innerHTML=e.innerHTML.replace(new RegExp(`</${e.tag}`,"g"),`<\\/${e.tag}`):e.innerHTML=e.innerHTML.replace(/</g,"\\u003C"))}}};let Y;function Z(e={}){const n=function(e={}){const n=t();n.addHooks(e.hooks||{}),e.document=e.document||(m?document:void 0);const o=!e.document,s=()=>{l.dirty=!0,n.callHook("entries:updated",l)};let r=0,i=[];const a=[],l={plugins:a,dirty:!1,resolvedOptions:e,hooks:n,headEntries:()=>i,use(t){const e="function"==typeof t?t(l):t;e.key&&a.some(t=>t.key===e.key)||(a.push(e),tt(e.mode,o)&&n.addHooks(e.hooks||{}))},push(t,e){null==e||delete e.head;const n={_i:r++,input:t,...e};return tt(n.mode,o)&&(i.push(n),s()),{dispose(){i=i.filter(t=>t._i!==n._i),s()},patch(t){for(const e of i)e._i===n._i&&(e.input=n.input=t);s()}}},async resolveTags(){const t={tags:[],entries:[...i]};await n.callHook("entries:resolve",t);for(const e of t.entries){const o=e.resolvedInput||e.input;if(e.resolvedInput=await(e.transform?e.transform(o):o),e.resolvedInput)for(const s of await $(e)){const o={tag:s,entry:e,resolvedOptions:l.resolvedOptions};await n.callHook("tag:normalise",o),t.tags.push(o.tag)}}return await n.callHook("tags:beforeResolve",t),await n.callHook("tags:resolve",t),await n.callHook("tags:afterResolve",t),t.tags},ssr:o};return[I,J,F,B,z,K,Q,X,...(null==e?void 0:e.plugins)||[]].forEach(t=>l.use(t)),l.hooks.callHook("init",l),l}(e);return n.use(W()),Y=n}function tt(t,e){return!t||"server"===t&&e||"client"===t&&!e}const et="3"===o[0];function nt(t){if(t instanceof Promise||t instanceof Date||t instanceof RegExp)return t;const e="function"==typeof(n=t)?n():s(n);var n;if(!t||!e)return e;if(Array.isArray(e))return e.map(t=>nt(t));if("object"==typeof e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&("titleTemplate"===n||"o"===n[0]&&"n"===n[1]?t[n]=s(e[n]):t[n]=nt(e[n]));return t}return e}const ot={hooks:{"entries:resolve":t=>{for(const e of t.entries)e.resolvedInput=nt(e.input)}}},st="usehead";function rt(t={}){t.domDelayFn=t.domDelayFn||(t=>e(()=>setTimeout(()=>t(),0)));const n=Z(t);return n.use(ot),n.install=function(t){return{install(e){et&&(e.config.globalProperties.$unhead=t,e.config.globalProperties.$head=t,e.provide(st,t))}}.install}(n),n}const it="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},at="__unhead_injection_handler__";
1function lt(){if(at in it)return it[at]();return n(st)||Y}function pt(t,e={}){const n=e.head||lt();if(n)return n.ssr?n.push(t,e):function(t,e,n={}){const o=r(!1),s=r({});i(()=>{s.value=o.value?{}:nt(e)});const f=t.push(s.value,n);a(s,t=>{f.patch(t)});d()&&(l(()=>{f.dispose()}),p(()=>{o.value=!0}),c(()=>{o.value=!1}));return f}(n,t,e)}function ct(t,e){const n=function(t){const e=t;return e.headTags=t.resolveTags,e.addEntry=t.push,e.addHeadObjs=t.push,e.addReactiveEntry=(t,e)=>{const n=pt(t,e);return void 0!==n?n.dispose:()=>{}},e.removeHeadObjs=()=>{},e.updateDOM=()=>{t.hooks.callHook("entries:updated",t)},e.unhead=t,e}(rt({}));return n}export{ct as c,pt as u};
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.