1import{_ as de}from"#entry";import{N as pe,y as z,l as ge,_ as F,$ as Z,a2 as N,j as M,Z as me,i as fe,p as ee,a9 as U,A as ye,a4 as V,a5 as be}from"./D0rPpKiU.js";let G=!1;const K=[],ke=r=>new Promise((e,t)=>{if(typeof window>"u"||(window.storyblokRegisterEvent=o=>{window.location!==window.parent.location&&(G?o():K.push(o))},document.getElementById("storyblok-javascript-bridge")))return;const s=document.createElement("script");s.async=!0,s.src=r,s.id="storyblok-javascript-bridge",s.onerror=o=>t(o),s.onload=o=>{K.forEach(n=>n()),G=!0,e(o)},document.getElementsByTagName("head")[0].appendChild(s)});var ve=Object.defineProperty,$e=(r,e,t)=>e in r?ve(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,f=(r,e,t)=>$e(r,typeof e!="symbol"?e+"":e,t);class Te extends Error{constructor(e){super(e),this.name="AbortError"}}function we(r,e,t){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const s=[];let o=[],n=0,i=!1;const a=async()=>{n++;const h=s.shift();if(h)try{const p=await r(...h.args);h.resolve(p)}catch(p){h.reject(p)}const d=setTimeout(()=>{n--,s.length>0&&a(),o=o.filter(p=>p!==d)},t);o.includes(d)||o.push(d)},l=(...h)=>i?Promise.reject(new Error("Throttled function is already aborted and not accepting new promises")):new Promise((d,p)=>{s.push({resolve:d,reject:p,args:h}),n<e&&a()});return l.abort=()=>{i=!0,o.forEach(clearTimeout),o=[],s.forEach(h=>h.reject(()=>new Te("Throttle function aborted"))),s.length=0},l}class x{constructor(){f(this,"isCDNUrl",(e="")=>e.includes("/cdn/")),f(this,"getOptionsPage",(e,t=25,s=1)=>({...e,per_page:t,page:s})),f(this,"delay",e=>new Promise(t=>setTimeout(t,e))),f(this,"arrayFrom",(e=0,t)=>Array.from({length:e},t)),f(this,"range",(e=0,t=e)=>{const s=Math.abs(t-e)||0,o=e<t?1:-1;return this.arrayFrom(s,(n,i)=>i*o+e)}),f(this,"asyncMap",async(e,t)=>Promise.all(e.map(t))),f(this,"flatMap",(e=[],t)=>e.map(t).reduce((s,o)=>[...s,...o],[])),f(this,"escapeHTML",function(e){const t={"&":"&","<":"<",">":">",'"':""","'":"'"},s=/[&<>"']/g,o=new RegExp(s.source);return e&&o.test(e)?e.replace(s,n=>t[n]):e})}stringify(e,t,s){const o=[];for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const i=e[n];if(i==null)continue;const a=s?"":encodeURIComponent(n);let l;typeof i=="object"?l=this.stringify(i,t?t+encodeURIComponent(`[${a}]`):a,Array.isArray(i)):l=`${t?t+encodeURIComponent(`[${a}]`):a}=${encodeURIComponent(i)}`,o.push(l)}return o.join("&")}getRegionURL(e){const t="api.storyblok.com",s="api-us.storyblok.com",o="app.storyblokchina.cn",n="api-ap.storyblok.com",i="api-ca.storyblok.com";switch(e){case"us":return s;case"cn":return o;case"ap":return n;case"ca":return i;default:return t}}}const _e=function(r,e){const t={};for(const s in r){const o=r[s];e.includes(s)&&o!==null&&(t[s]=o)}return t},Re=r=>r==="email",Ee=()=>({singleTag:"hr"}),Se=()=>({tag:"blockquote"}),Ie=()=>({tag:"ul"}),Oe=r=>({tag:["pre",{tag:"code",attrs:r.attrs}]}),je=()=>({singleTag:"br"}),Ae=r=>({tag:`h${r.attrs.level}`}),Ce=r=>({singleTag:[{tag:"img",attrs:_e(r.attrs,["src","alt","title"])}]}),Le=()=>({tag:"li"}),xe=()=>({tag:"ol"}),Pe=()=>({tag:"p"}),Ne=r=>({tag:[{tag:"span",attrs:{"data-type":"emoji","data-name":r.attrs.name,emoji:r.attrs.emoji}}]}),He=()=>({tag:"b"}),Me=()=>({tag:"s"}),Ue=()=>({tag:"u"}),De=()=>({tag:"strong"}),Be=()=>({tag:"code"}),ze=()=>({tag:"i"}),Fe=r=>{if(!r.attrs)return{tag:""};const e=new x().escapeHTML,t={...r.attrs},{linktype:s="url"}=r.attrs;if(delete t.linktype,t.href&&(t.href=e(r.attrs.href||"")),Re(s)&&(t.href=`mailto:${t.href}`),t.anchor&&(t.href=`${t.href}#${t.anchor}`,delete t.anchor),t.custom){for(const o in t.custom)t[o]=t.custom[o];delete t.custom}return{tag:[{tag:"a",attrs:t}]}},qe=r=>({tag:[{tag:"span",attrs:r.attrs}]}),Ve=()=>({tag:"sub"}),Ge=()=>({tag:"sup"}),Ke=r=>({tag:[{tag:"span",attrs:r.attrs}]}),Je=r=>{var e;return(e=r.attrs)!=null&&e.color?{tag:[{tag:"span",attrs:{style:`background-color:${r.attrs.color};`}}]}:{tag:""}}
1,Ye=r=>{var e;return(e=r.attrs)!=null&&e.color?{tag:[{tag:"span",attrs:{style:`color:${r.attrs.color}`}}]}:{tag:""}},We={nodes:{horizontal_rule:Ee,blockquote:Se,bullet_list:Ie,code_block:Oe,hard_break:je,heading:Ae,image:Ce,list_item:Le,ordered_list:xe,paragraph:Pe,emoji:Ne},marks:{bold:He,strike:Me,underline:Ue,strong:De,code:Be,italic:ze,link:Fe,styled:qe,subscript:Ve,superscript:Ge,anchor:Ke,highlight:Je,textStyle:Ye}},Xe=function(r){const e={"&":"&","<":"<",">":">",'"':""","'":"'"},t=/[&<>"']/g,s=new RegExp(t.source);return r&&s.test(r)?r.replace(t,o=>e[o]):r};let J=!1;class D{constructor(e){f(this,"marks"),f(this,"nodes"),e||(e=We),this.marks=e.marks||[],this.nodes=e.nodes||[]}addNode(e,t){this.nodes[e]=t}addMark(e,t){this.marks[e]=t}render(e,t={optimizeImages:!1},s=!0){if(!J&&s&&(J=!0),e&&e.content&&Array.isArray(e.content)){let o="";return e.content.forEach(n=>{o+=this.renderNode(n)}),t.optimizeImages?this.optimizeImages(o,t.optimizeImages):o}return""}optimizeImages(e,t){let s=0,o=0,n="",i="";typeof t!="boolean"&&(typeof t.width=="number"&&t.width>0&&(n+=`width="${t.width}" `,s=t.width),typeof t.height=="number"&&t.height>0&&(n+=`height="${t.height}" `,o=t.height),(t.loading==="lazy"||t.loading==="eager")&&(n+=`loading="${t.loading}" `),typeof t.class=="string"&&t.class.length>0&&(n+=`class="${t.class}" `),t.filters&&(typeof t.filters.blur=="number"&&t.filters.blur>=0&&t.filters.blur<=100&&(i+=`:blur(${t.filters.blur})`),typeof t.filters.brightness=="number"&&t.filters.brightness>=-100&&t.filters.brightness<=100&&(i+=`:brightness(${t.filters.brightness})`),t.filters.fill&&(t.filters.fill.match(/[0-9A-F]{6}/gi)||t.filters.fill==="transparent")&&(i+=`:fill(${t.filters.fill})`),t.filters.format&&["webp","png","jpeg"].includes(t.filters.format)&&(i+=`:format(${t.filters.format})`),typeof t.filters.grayscale=="boolean"&&t.filters.grayscale&&(i+=":grayscale()"),typeof t.filters.quality=="number"&&t.filters.quality>=0&&t.filters.quality<=100&&(i+=`:quality(${t.filters.quality})`),t.filters.rotate&&[90,180,270].includes(t.filters.rotate)&&(i+=`:rotate(${t.filters.rotate})`),i.length>0&&(i=`/filters${i}`))),n.length>0&&(e=e.replace(/<img/g,`<img ${n.trim()}`));const a=s>0||o>0||i.length>0?`${s}x${o}${i}`:"";return e=e.replace(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g,`a.storyblok.com/f/$1/$2.$3/m/${a}`),typeof t!="boolean"&&(t.sizes||t.srcset)&&(e=e.replace(/<img.*?src=["|'](.*?)["|']/g,l=>{var h,d;const p=l.match(/a.storyblok.com\/f\/(\d+)\/([^.]+)\.(gif|jpg|jpeg|png|tif|bmp)/g);if(p&&p.length>0){const b={srcset:(h=t.srcset)==null?void 0:h.map(y=>{if(typeof y=="number")return`//${p}/m/${y}x0${i} ${y}w`;if(typeof y=="object"&&y.length===2){let S=0,j=0;return typeof y[0]=="number"&&(S=y[0]),typeof y[1]=="number"&&(j=y[1]),`//${p}/m/${S}x${j}${i} ${S}w`}return""}).join(", "),sizes:(d=t.sizes)==null?void 0:d.map(y=>y).join(", ")};let E="";return b.srcset&&(E+=`srcset="${b.srcset}" `),b.sizes&&(E+=`sizes="${b.sizes}" `),l.replace(/<img/g,`<img ${E.trim()}`)}return l})),e}renderNode(e){const t=[];e.marks&&e.marks.forEach(o=>{const n=this.getMatchingMark(o);n&&n.tag!==""&&t.push(this.renderOpeningTag(n.tag))});const s=this.getMatchingNode(e);return s&&s.tag&&t.push(this.renderOpeningTag(s.tag)),e.content?e.content.forEach(o=>{t.push(this.renderNode(o))}):e.text?t.push(Xe(e.text)):s&&s.singleTag?t.push(this.renderTag(s.singleTag," /")):s&&s.html?t.push(s.html):e.type==="emoji"&&t.push(this.renderEmoji(e)),s&&s.tag&&t.push(this.renderClosingTag(s.tag)),e.marks&&e.marks.slice(0).reverse().forEach(o=>{const n=this.getMatchingMark(o);n&&n.tag!==""&&t.push(this.renderClosingTag(n.tag))}),t.join("")}renderTag(e,t){return e.constructor===String?`<${e}${t}>`:e.map(s=>{if(s.constructor===String)return`<${s}${t}>`;{let o=`<${s.tag}`;if(s.attrs){for(const n in s.attrs)if(Object.prototype.hasOwnProperty.call(s.attrs,n)){const i=s.attrs[n];i!==null&&(o+=` ${n}="${i}"`)}}return`${o}${t}>`}}).join("")}renderOpeningTag(e){return this.renderTag(e,"")}renderClosingTag(e){return e.constructor===String?`</${e}>`:e.slice(0).reverse().map(t=>t.constructor===String?`</${t}>`:`</${t.tag}>`).join("")}getMatchingNode(e){const t=this.nodes[e.type];if(typeof t=="function")return t(e)}getMatchingMark(e){const t=this.marks[e.type];if(typeof t=="function")return t(e)}renderEmoji(e){if(e.attrs.emoji)return e.attrs.emoji;const t=[{tag:"img",attrs:{src:e.attrs.fallbackImage,draggable:"false",loading:"lazy",align:"absmiddle"}}];return this.renderTag(t," /")}}class Qe{constructor(e){f(this,"baseURL"),f(this,"timeout"),f(this,"headers"),f(this,"responseInterceptor"),f(this,"fetch"),f(this,"ejectInterceptor"),f(this,"url"),f(this,"parameters"),f(this,"fetchOptions"),this.baseURL=e.baseURL,this.headers=e.headers||new Headers,this.timeout=e!=null&&e.timeout?e.timeout*1e3:0,this.responseInterceptor=e.responseInterceptor,this.fetch=(...t)=>e.fetch?e.fetch(...t):fetch(...t),this.ejectInterceptor=!1,this.url="",this.parameters={},this.fetchOptions={}}get(e,t){return this.url=e,this.parameters=t,this._methodHandler("get")}post(e,t){return this.url=e,this.parameters=t,this._methodHandler("post")}put(e,t){return this.url=e,this.parameters=t,this._methodHandler("put")}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler("delete")}async _responseHandler(e){const t=[],s={data:{},headers:{},status:0,statusText:""};e.status!==204&&await e.json().then(o=>{s.data=o});for(const o of e.headers.entries())t[o[0]]=o[1];return s.headers={...t},s.status=e.status,s.statusText=e.statusText,s}async _methodHandler(e){let t=`${this.baseURL}
1${this.url}`,s=null;if(e==="get"){const l=new x;t=`${this.baseURL}${this.url}?${l.stringify(this.parameters)}`}else s=JSON.stringify(this.parameters);const o=new URL(t),n=new AbortController,{signal:i}=n;let a;this.timeout&&(a=setTimeout(()=>n.abort(),this.timeout));try{const l=await this.fetch(`${o}`,{method:e,headers:this.headers,body:s,signal:i,...this.fetchOptions});this.timeout&&clearTimeout(a);const h=await this._responseHandler(l);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(h)):this._statusHandler(h)}catch(l){return{message:l}}}setFetchOptions(e={}){Object.keys(e).length>0&&"method"in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_statusHandler(e){const t=/20[0-6]/g;return new Promise((s,o)=>{if(t.test(`${e.status}`))return s(e);const n={message:e.statusText,status:e.status,response:Array.isArray(e.data)?e.data[0]:e.data.error||e.data.slug};o(n)})}}const Y="SB-Agent",H={defaultAgentName:"SB-JS-CLIENT",defaultAgentVersion:"SB-Agent-Version",packageVersion:"6.0.0"};let C={};const I={};class Ze{constructor(e,t){f(this,"client"),f(this,"maxRetries"),f(this,"retriesDelay"),f(this,"throttle"),f(this,"accessToken"),f(this,"cache"),f(this,"helpers"),f(this,"resolveCounter"),f(this,"relations"),f(this,"links"),f(this,"richTextResolver"),f(this,"resolveNestedRelations"),f(this,"stringifiedStoriesCache");let s=e.endpoint||t;if(!s){const i=new x().getRegionURL,a=e.https===!1?"http":"https";e.oauthToken?s=`${a}://${i(e.region)}/v1`:s=`${a}://${i(e.region)}/v2`}const o=new Headers;o.set("Content-Type","application/json"),o.set("Accept","application/json"),e.headers&&(e.headers.constructor.name==="Headers"?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([i,a])=>{o.set(i,a)}),o.has(Y)||(o.set(Y,H.defaultAgentName),o.set(H.defaultAgentVersion,H.packageVersion));let n=5;e.oauthToken&&(o.set("Authorization",e.oauthToken),n=3),e.rateLimit&&(n=e.rateLimit),e.richTextSchema?this.richTextResolver=new D(e.richTextSchema):this.richTextResolver=new D,e.componentResolver&&this.setComponentResolver(e.componentResolver),this.maxRetries=e.maxRetries||10,this.retriesDelay=300,this.throttle=we(this.throttledRequest.bind(this),n,1e3),this.accessToken=e.accessToken||"",this.relations={},this.links={},this.cache=e.cache||{clear:"manual"},this.helpers=new x,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.client=new Qe({baseURL:s,timeout:e.timeout||0,headers:o,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}setComponentResolver(e){this.richTextResolver.addNode("blok",t=>{let s="";return t.attrs.body&&t.attrs.body.forEach(o=>{s+=e(o.component,o)}),{html:s}})}parseParams(e){return e.token||(e.token=this.getToken()),e.cv||(e.cv=I[e.token]),Array.isArray(e.resolve_relations)&&(e.resolve_relations=e.resolve_relations.join(",")),typeof e.resolve_relations<"u"&&(e.resolve_level=2),e}factoryParamOptions(e,t){return this.helpers.isCDNUrl(e)?this.parseParams(t):t}
1makeRequest(e,t,s,o,n){const i=this.factoryParamOptions(e,this.helpers.getOptionsPage(t,s,o));return this.cacheResponse(e,i,void 0,n)}get(e,t,s){t||(t={});const o=`/${e}`,n=this.factoryParamOptions(o,t);return this.cacheResponse(o,n,void 0,s)}async getAll(e,t,s,o){const n=t?.per_page||25,i=`/${e}`.replace(/\/$/,""),a=s??i.substring(i.lastIndexOf("/")+1),l=1,h=await this.makeRequest(i,t,n,l,o),d=h.total?Math.ceil(h.total/n):1,p=await this.helpers.asyncMap(this.helpers.range(l,d),b=>this.makeRequest(i,t,n,b+1,o));return this.helpers.flatMap([h,...p],b=>Object.values(b.data[a]))}post(e,t,s){const o=`/${e}`;return Promise.resolve(this.throttle("post",o,t,s))}put(e,t,s){const o=`/${e}`;return Promise.resolve(this.throttle("put",o,t,s))}delete(e,t,s){t||(t={});const o=`/${e}`;return Promise.resolve(this.throttle("delete",o,t,s))}getStories(e,t){return this._addResolveLevel(e),this.get("cdn/stories",e,t)}getStory(e,t,s){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,s)}getToken(){return this.accessToken}ejectInterceptor(){this.client.eject()}_addResolveLevel(e){typeof e.resolve_relations<"u"&&(e.resolve_level=2)}_cleanCopy(e){return JSON.parse(JSON.stringify(e))}_insertLinks(e,t,s){const o=e[t];o&&o.fieldtype==="multilink"&&o.linktype==="story"&&typeof o.id=="string"&&this.links[s][o.id]?o.story=this._cleanCopy(this.links[s][o.id]):o&&o.linktype==="story"&&typeof o.uuid=="string"&&this.links[s][o.uuid]&&(o.story=this._cleanCopy(this.links[s][o.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,s){const o=e[t];typeof o=="string"?e[t]=this.getStoryReference(s,o):Array.isArray(o)&&(e[t]=o.map(n=>this.getStoryReference(s,n)).filter(Boolean))}_insertRelations(e,t,s,o){if(Array.isArray(s)?s.find(i=>i.endsWith(`.${t}`)):s.endsWith(`.${t}`)){this._resolveField(e,t,o);return}const n=e.component?`${e.component}.${t}`:t;(Array.isArray(s)?s.includes(n):s===n)&&this._resolveField(e,t,o)}iterateTree(e,t,s){const o=(n,i="")=>{if(!(!n||n._stopResolving)){if(Array.isArray(n))n.forEach((a,l)=>o(a,`${i}[${l}]`));else if(typeof n=="object")for(const a in n){const l=i?`${i}.${a}`:a;(n.component&&n._uid||n.type==="link")&&(this._insertRelations(n,a,t,s),this._insertLinks(n,a,s)),o(n[a],l)}}};o(e.content)}async resolveLinks(e,t,s){let o=[];if(e.link_uuids){const n=e.link_uuids.length,i=[],a=50;for(let l=0;l<n;l+=a){const h=Math.min(n,l+a);i.push(e.link_uuids.slice(l,h))}for(let l=0;l<i.length;
1l++)(await this.getStories({per_page:a,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[l].join(",")})).data.stories.forEach(h=>{o.push(h)})}else o=e.links;o.forEach(n=>{this.links[s][n.uuid]={...n,_stopResolving:!0}})}async resolveRelations(e,t,s){let o=[];if(e.rel_uuids){const n=e.rel_uuids.length,i=[],a=50;for(let l=0;l<n;l+=a){const h=Math.min(n,l+a);i.push(e.rel_uuids.slice(l,h))}for(let l=0;l<i.length;l++)(await this.getStories({per_page:a,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[l].join(","),excluding_fields:t.excluding_fields})).data.stories.forEach(h=>{o.push(h)});o.length>0&&(e.rels=o,delete e.rel_uuids)}else o=e.rels;o&&o.length>0&&o.forEach(n=>{this.relations[s][n.uuid]={...n,_stopResolving:!0}})}async resolveStories(e,t,s){var o,n;let i=[];if(this.links[s]={},this.relations[s]={},typeof t.resolve_relations<"u"&&t.resolve_relations.length>0&&(typeof t.resolve_relations=="string"&&(i=t.resolve_relations.split(",")),await this.resolveRelations(e,t,s)),t.resolve_links&&["1","story","url","link"].includes(t.resolve_links)&&((o=e.links)!=null&&o.length||(n=e.link_uuids)!=null&&n.length)&&await this.resolveLinks(e,t,s),this.resolveNestedRelations)for(const a in this.relations[s])this.iterateTree(this.relations[s][a],i,s);e.story?this.iterateTree(e.story,i,s):e.stories.forEach(a=>{this.iterateTree(a,i,s)}),this.stringifiedStoriesCache={},delete this.links[s],delete this.relations[s]}async cacheResponse(e,t,s,o){const n=this.helpers.stringify({url:e,params:t}),i=this.cacheProvider();if(t.version==="published"&&e!=="/cdn/spaces/me"){const a=await i.get(n);if(a)return Promise.resolve(a)}return new Promise(async(a,l)=>{var h;try{const d=await this.throttle("get",e,t,o);if(d.status!==200)return l(d);let p={data:d.data,headers:d.headers};if((h=d.headers)!=null&&h["per-page"]&&(p=Object.assign({},p,{perPage:d.headers["per-page"]?Number.parseInt(d.headers["per-page"]):0,total:d.headers["per-page"]?Number.parseInt(d.headers.total):0})),p.data.story||p.data.stories){const E=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(p.data,t,`${E}`)}t.version==="published"&&e!=="/cdn/spaces/me"&&await i.set(n,p);const b=this.cache.clear==="onpreview"&&t.version==="draft"||this.cache.clear==="auto";return t.token&&p.data.cv&&(b&&I[t.token]&&I[t.token]!==p.data.cv&&await this.flushCache(),I[t.token]=p.data.cv),a(p)}catch(d){if(d.response&&d.status===429&&(s=typeof s>"u"?0:s+1,s<this.maxRetries))return this.retriesDelay/1e3,await this.helpers.delay(this.retriesDelay),this.cacheResponse(e,t,s).then(a).catch(l);l(d)}})}throttledRequest(e,t,s,o){return this.client.setFetchOptions(o),this.client[e](t,s)}cacheVersions(){return I}cacheVersion(){return I[this.accessToken]}setCacheVersion(e){this.accessToken&&(I[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(I[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case"memory":return{get(e){return Promise.resolve(C[e])},getAll(){return Promise.resolve(C)},set(e,t){return C[e]=t,Promise.resolve(void 0)},flush(){return C={},Promise.resolve(void 0)}};case"custom":if(this.cache.custom)return this.cache.custom;default:return{get(){return Promise.resolve()},getAll(){return Promise.resolve(void 0)},set(){return Promise.resolve(void 0)},flush(){return Promise.resolve(void 0)}}}}async flushCache(){return await this.cacheProvider().flush(),this.clearCacheVersion(),this}}const wt=(r={})=>{const{apiOptions:e}=r;if(!e||!e.accessToken){console.error("You need to provide an access token to interact with Storyblok API. Read https://www.storyblok.com/docs/api/content-delivery#topics/authentication");return}return{storyblokApi:new Ze(e)}},et=r=>{if(typeof r!="object"||typeof r._editable>"u")return{};try{const e=JSON.parse(r._editable.replace(/^<!--#storyblok#/,"").replace(/-->$/,""));return e?{"data-blok-c":JSON.stringify(e),"data-blok-uid":`${e.id}-${e.uid}`}:{}}catch{return{}}};function tt(r,e){if(!e)return{src:r,attrs:{}};let t=0,s=0;const o={},n=[];function i(l,h,d,p,b){typeof l!="number"||l<=h||l>=d?(p.charAt(0).toUpperCase()+p.slice(1),`${h}${d}`):b.push(`${p}(${l})`)}if(typeof e=="object"){if(typeof e.width=="number"&&e.width>0&&(o.width=e.width,t=e.width),e.height&&typeof e.height=="number"&&e.height>0&&(o.height=e.height,s=e.height),e.loading&&["lazy","eager"].includes(e.loading)&&(o.loading=e.loading),e.class&&(o.class=e.class),e.filters){const{filters:l}=e||{},{blur:h,brightness:d,fill:p,format:b,grayscale:E,quality:y,rotate:S}=l||{};h&&i(h,0,100,"blur",n),y&&i(y,0,100,"quality",n),d&&i(d,0,100,"brightness",n),p&&n.push(`fill(${p})`),E&&n.push("grayscale()"),S&&[0,90,180,270].includes(e.filters.rotate||0)&&n.push(`rotate(${S})`),b&&["webp","png","jpeg"].includes(b)&&n.push(`format(${b})`)}
1e.srcset&&(o.srcset=e.srcset.map(l=>{if(typeof l=="number")return`${r}/m/${l}x0/${n.length>0?`filters:${n.join(":")}`:""} ${l}w`;if(Array.isArray(l)&&l.length===2){const[h,d]=l;return`${r}/m/${h}x${d}/${n.length>0?`filters:${n.join(":")}`:""} ${h}w`}else return}).join(", ")),e.sizes&&(o.sizes=e.sizes.join(", "))}let a=`${r}/m/`;return t>0&&s>0&&(a=`${a}${t}x${s}/`),n.length>0&&(a=`${a}filters:${n.join(":")}`),{src:a,attrs:o}}var v=(r=>(r.DOCUMENT="doc",r.HEADING="heading",r.PARAGRAPH="paragraph",r.QUOTE="blockquote",r.OL_LIST="ordered_list",r.UL_LIST="bullet_list",r.LIST_ITEM="list_item",r.CODE_BLOCK="code_block",r.HR="horizontal_rule",r.BR="hard_break",r.IMAGE="image",r.EMOJI="emoji",r.COMPONENT="blok",r.TABLE="table",r.TABLE_ROW="tableRow",r.TABLE_CELL="tableCell",r.TABLE_HEADER="tableHeader",r))(v||{}),R=(r=>(r.BOLD="bold",r.STRONG="strong",r.STRIKE="strike",r.UNDERLINE="underline",r.ITALIC="italic",r.CODE="code",r.LINK="link",r.ANCHOR="anchor",r.STYLED="styled",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",r.TEXT_STYLE="textStyle",r.HIGHLIGHT="highlight",r))(R||{}),te=(r=>(r.TEXT="text",r))(te||{}),O=(r=>(r.URL="url",r.STORY="story",r.ASSET="asset",r.EMAIL="email",r))(O||{});const rt=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"],st=(r={})=>Object.keys(r).map(e=>`${e}="${r[e]}"`).join(" "),ot=(r={})=>Object.keys(r).map(e=>`${e}: ${r[e]}`).join("; ");function nt(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const L=r=>Object.fromEntries(Object.entries(r).filter(([e,t])=>t!==void 0));function W(r,e={},t){const s=st(e),o=s?`${r} ${s}`:r,n=Array.isArray(t)?t.join(""):t||"";if(r){if(rt.includes(r))return`<${o}>`}else return n;return`<${o}>${n}</${r}>`}function it(r={}){const e=new Map,{renderFn:t=W,textFn:s=nt,resolvers:o={},optimizeImages:n=!1,keyedResolvers:i=!1}=r,a=t!==W,l=()=>({render:(c,u={},g)=>{if(i&&c){const m=e.get(c)||0;e.set(c,m+1),u.key=`${c}-${m}`}return t(c,u,g)}}),h=c=>(u,g)=>{const m=u.attrs||{};return g.render(c,m,u.children||null)},d=(c,u)=>{const{src:g,alt:m,title:k,srcset:w,sizes:$}=c.attrs||{};let T=g,_={};if(n){const{src:he,attrs:ue}=tt(g,n);T=he,_=ue}const ce={src:T,alt:m,title:k,srcset:w,sizes:$,..._};return u.render("img",L(ce))},p=(c,u)=>{const{level:g,...m}=c.attrs||{};return u.render(`h${g}`,m,c.children)},b=(c,u)=>{var g,m,k,w;const $=u.render("img",{src:(g=c.attrs)==null?void 0:g.fallbackImage,alt:(m=c.attrs)==null?void 0:m.alt,style:"width: 1.25em; height: 1.25em; vertical-align: text-top",draggable:"false",loading:"lazy"});return u.render("span",{"data-type":"emoji","data-name":(k=c.attrs)==null?void 0:k.name,"data-emoji":(w=c.attrs)==null?void 0:w.emoji},$)},E=(c,u)=>u.render("pre",c.attrs||{},u.render("code",{},c.children||"")),y=(c,u=!1)=>({text:g,attrs:m},k)=>{const{class:w,id:$,...T}=m||{},_=u?{class:w,id:$,style:ot(T)||void 0}:m||{};return k.render(c,L(_),g)},S=c=>P(c),j=c=>{const{marks:u,...g}=c;if("text"in c){if(u)return u.reduce((k,w)=>S({...w,text:k}),S({...g,children:g.children}));const m=c.attrs||{};if(i){const k=e.get("txt")||0;e.set("txt",k+1),m.key=`txt-${k}`}return s(g.text,m)}return""},q=(c,u)=>{const{linktype:g,href:m,anchor:k,...w}=c.attrs||{};let $="";switch(g){case O.ASSET:case O.URL:$=m;break;case O.EMAIL:$=`mailto:${m}`;break;case O.STORY:$=m,k&&($=`${$}#${k}`);break;default:$=m;break}const T={...w};return $&&(T.href=$),u.render("a",T,c.text)},se=(c,u)=>{var g,m;return u.render("span",{blok:(g=c?.attrs)==null?void 0:g.body[0],id:(m=c.attrs)==null?void 0:m.id,style:"display: none"})},oe=(c,u)=>{const g={},m=u.render("tbody",{},c.children);return u.render("table",g,m)},ne=(c,u)=>{const g={};return u.render("tr",g,c.children)},ie=(c,u)=>{const{colspan:g,rowspan:m,colwidth:k,backgroundColor:w,...$}=c.attrs||{},T={...$};g>1&&(T.colspan=g),m>1&&(T.rowspan=m);const _=[];return k&&_.push(`width: ${k}px;`),w&&_.push(`background-color: ${w};`),_.length>0&&(T.style=_.join(" ")),u.render("td",L(T),c.children)},ae=(c,u)=>{const{colspan:g,rowspan:m,colwidth:k,backgroundColor:w,...$}=c.attrs||{},T={...$};g>1&&(T.colspan=g),m>
11&&(T.rowspan=m);const _=[];return k&&_.push(`width: ${k}px;`),w&&_.push(`background-color: ${w};`),_.length>0&&(T.style=_.join(" ")),u.render("th",L(T),c.children)},le=new Map([[v.DOCUMENT,h("")],[v.HEADING,p],[v.PARAGRAPH,h("p")],[v.UL_LIST,h("ul")],[v.OL_LIST,h("ol")],[v.LIST_ITEM,h("li")],[v.IMAGE,d],[v.EMOJI,b],[v.CODE_BLOCK,E],[v.HR,h("hr")],[v.BR,h("br")],[v.QUOTE,h("blockquote")],[v.COMPONENT,se],[te.TEXT,j],[R.LINK,q],[R.ANCHOR,q],[R.STYLED,y("span",!0)],[R.BOLD,y("strong")],[R.TEXT_STYLE,y("span",!0)],[R.ITALIC,y("em")],[R.UNDERLINE,y("u")],[R.STRIKE,y("s")],[R.CODE,y("code")],[R.SUPERSCRIPT,y("sup")],[R.SUBSCRIPT,y("sub")],[R.HIGHLIGHT,y("mark")],[v.TABLE,oe],[v.TABLE_ROW,ne],[v.TABLE_CELL,ie],[v.TABLE_HEADER,ae],...Object.entries(o).map(([c,u])=>[c,u])]);function A(c){const u=le.get(c.type);if(!u)return console.error("<Storyblok>",`No resolver found for node type ${c.type}`),"";const g=l();if(c.type==="text")return u(c,g);const m=c.content?c.content.map(P):void 0;return u({...c,children:m},g)}function P(c){return c.type==="doc"?a?c.content.map(A):c.content.map(A).join(""):Array.isArray(c)?c.map(A):A(c)}return{render:P}}let X,Q="https://app.storyblok.com/f/storyblok-v2-latest.js";const _t=(r,e,t={})=>{var s;const o=!(typeof window>"u")&&typeof window.storyblokRegisterEvent<"u",n=new URL((s=window.location)==null?void 0:s.href).searchParams.get("_storyblok"),i=n!==null&&+n===r;if(!(!o||!i)){if(!r)return;window.storyblokRegisterEvent(()=>{new window.StoryblokBridge(t).on(["input","published","change"],a=>{var l;a&&(a.action==="input"&&((l=a.story)==null?void 0:l.id)===r?e(a.story):(a.action==="change"||a.action==="published")&&a.storyId===r&&window.location.reload())})})}},at=(r,e)=>{r.addNode("blok",t=>{let s="";return t.attrs.body.forEach(o=>{s+=e(o.component,o)}),{html:s}})},lt=(r={})=>{var e,t;const{bridge:s,accessToken:o,use:n=[],apiOptions:i={},richText:a={},bridgeUrl:l}=r;i.accessToken=i.accessToken||o;const h={bridge:s,apiOptions:i};let d={};n.forEach(b=>{d={...d,...b(h)}}),l&&(Q=l);const p=!(typeof window>"u")&&((t=(e=window.location)==null?void 0:e.search)==null?void 0:t.includes("_storyblok_tk"));return s!==!1&&p&&ke(Q),X=new D(a.schema),a.resolver&&at(X,a.resolver),d},re=z({__name:"StoryblokComponent",props:{blok:{}},setup(r,{expose:e}){const t=r,s=M();e({value:s});const o=typeof N(t.blok.component)!="string",n=fe("VueSDKOptions"),i=M(t.blok.component);return!o&&n&&(n.enableFallbackComponent?(i.value=n.customFallbackComponent??"FallbackComponent",typeof N(i.value)=="string"&&console.error(`Is the Fallback component "${i.value}" registered properly?`)):console.error(`Component could not be found for blok "${t.blok.component}"! Is it defined in main.ts as "app.component("${t.blok.component}", ${t.blok.component});"?`)),(a,l)=>(F(),Z(N(i.value),me({ref_key:"blokRef",ref:s},{...a.$props,...a.$attrs}),null,16))}}),ct=r=>{var e,t;return ee(re,{blok:(e=r?.attrs)==null?void 0:e.body[0],id:(t=r.attrs)==null?void 0:t.id},r.children)};function ht(r){const e={renderFn:ee,textFn:U,keyedResolvers:!0,resolvers:{[v.COMPONENT]:ct,...r.resolvers}};return it(e)}const ut=z({__name:"StoryblokRichText",props:{doc:{},resolvers:{}},setup(r){const e=r,t=M(),s=()=>t.value;return ge([()=>e.doc,()=>e.resolvers],([o,n])=>{const{render:i}=ht({resolvers:n??{}});t.value=i(o)},{immediate:!0,deep:!0}),(o,n)=>(F(),Z(s))}}),dt={beforeMount(r,e){if(e.value){const t=et(e.value);Object.keys(t).length>0&&(r.setAttribute("data-blok-c",t["data-blok-c"]),r.setAttribute("data-blok-uid",t["data-blok-uid"]),r.classList.add("storyblok__outline"))}}},pt=r=>{console.error(`You can't use ${r} if you're not loading apiPlugin. Please provide it on StoryblokVue initialization. 2 `)};let B=null;const Rt=()=>(B||pt("useStoryblokApi"),B),Et={install(r,e={}){r.directive("editable",dt),r.component("StoryblokComponent",re),r.component("StoryblokRichText",ut),e.enableFallbackComponent&&!e.customFallbackComponent&&r.component("FallbackComponent",pe(()=>de(()=>Promise.resolve().then(()=>vt),void 0,import.meta.url)));const{storyblokApi:t}=lt(e);B=t||null,r.provide("VueSDKOptions",e)}};var gt=(r=>
2(r.BOLD="bold",r.STRONG="strong",r.STRIKE="strike",r.UNDERLINE="underline",r.ITALIC="italic",r.CODE="code",r.LINK="link",r.ANCHOR="anchor",r.STYLED="styled",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",r.TEXT_STYLE="textStyle",r.HIGHLIGHT="highlight",r))(gt||{});const mt={class:"fallback-component"},ft={class:"component"},yt=z({__name:"FallbackComponent",props:{blok:{}},setup(r){return(e,t)=>(F(),ye("div",mt,[V("p",null,[t[0]||(t[0]=U(" Component could not be found for blok ")),V("span",ft,be(e.blok.component),1),t[1]||(t[1]=U("! Is it configured correctly? "))])]))}}),bt=(r,e)=>{const t=r.__vccOpts||r;for(const[s,o]of e)t[s]=o;return t},kt=bt(yt,[["__scopeId","data-v-9abcd1f2"]]),vt=Object.freeze(Object.defineProperty({__proto__:null,default:kt},Symbol.toStringTag,{value:"Module"}));export{_t as a,Et as b,gt as c,wt as g,Rt as m,ut as u,v};
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.