PageSourceSearch

https://abonnement.teveblad.be/_nuxt/cOc_jJ6M.js

js teveblad.be collected 2026-10-08 12:30:59 UTC 29,776 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./B5047FZN.js","./Ib1jYPSS.js"])))=>i.map(i=>d[i]);
2import{B as e,E as t,J as n,Lt as r,O as i,On as a,bt as o,er as s,et as c,k as l,mt as u,qt as d,v as f,vn as ee,w as te,wt as p,xt as ne,z as re}from"./Ib1jYPSS.js";import{t as m}from"./HclGiUj8.js";var h=Object.defineProperty,g=(e,t,n)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_=(e,t,n)=>g(e,typeof t==`symbol`?t:t+``,n),v=(e=``)=>e.includes(`/cdn/`),ie=(e,t=25,n=1)=>({...e,per_page:t,page:n}),ae=e=>new Promise(t=>setTimeout(t,e)),oe=(e=0,t)=>Array.from({length:e},t),se=(e=0,t=e)=>{let n=Math.abs(t-e)||0,r=e<t?1:-1;return oe(n,(t,n)=>n*r+e)},ce=async(e,t)=>Promise.all(e.map(t)),le=(e=[],t)=>e.map(t).reduce((e,t)=>[...e,...t],[]),y=e=>{if(/%[0-9A-F]{2}/i.test(e))try{return decodeURIComponent(e)}catch{return e}return e},b=(e,t,n)=>{let r=[];for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=e[i];if(a==null)continue;let o=n?``:encodeURIComponent(i),s;s=typeof a==`object`?b(a,t?t+encodeURIComponent(`[${o}]`):o,Array.isArray(a)):`${t?t+encodeURIComponent(`[${o}]`):o}=${encodeURIComponent(a)}`,r.push(s)}return r.join(`&`)},x=e=>{let t={eu:`api.storyblok.com`,us:`api-us.storyblok.com`,cn:`app.storyblokchina.cn`,ap:`api-ap.storyblok.com`,ca:`api-ca.storyblok.com`};return t[e]??t.eu},ue=class{constructor(e){_(this,`baseURL`),_(this,`timeout`),_(this,`headers`),_(this,`responseInterceptor`),_(this,`fetch`),_(this,`ejectInterceptor`),_(this,`url`),_(this,`parameters`),_(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`)}patch(e,t){return this.url=e,this.parameters=t,this._methodHandler(`patch`)}delete(e,t){return this.url=e,this.parameters=t??{},this._methodHandler(`delete`)}async _responseHandler(e){let t=[],n={data:{},headers:{},status:0,statusText:``};e.status!==204&&await e.json().then(e=>{n.data=e});for(let n of e.headers.entries())t[n[0]]=n[1];return n.headers={...t},n.status=e.status,n.statusText=e.statusText,n}async _methodHandler(e){let t=`${this.baseURL}${this.url}`,n=null;e===`get`?t=`${this.baseURL}${this.url}?${b(this.parameters)}`:n=JSON.stringify(this.parameters);let r=new URL(t),i=new AbortController,{signal:a}=i,o=null;this.timeout&&(o=setTimeout(()=>i.abort(),this.timeout));try{let t=await this.fetch(`${r}`,{method:e,headers:this.headers,body:n,signal:a,...this.fetchOptions});this.timeout&&o&&clearTimeout(o);let i=await this._responseHandler(t);return this.responseInterceptor&&!this.ejectInterceptor?this._statusHandler(this.responseInterceptor(i)):this._statusHandler(i)}catch(e){return e.name===`AbortError`?{message:`Request timeout: The request was aborted due to timeout`}:{message:e.message||e.toString()||`An unknown error occurred`}}}setFetchOptions(e={}){Object.keys(e).length>0&&`method`in e&&delete e.method,this.fetchOptions={...e}}eject(){this.ejectInterceptor=!0}_normalizeErrorMessage(e){if(Array.isArray(e))return e[0]||`Unknown error`;if(e&&typeof e==`object`){if(e.error)return e.error;for(let t in e){if(Array.isArray(e[t]))return`${t}: ${e[t][0]}`;if(typeof e[t]==`string`)return`${t}: ${e[t]}`}if(e.slug)return e.slug}return`Unknown error`}_statusHandler(e){let t=/20[0-6]/g;return new Promise((n,r)=>{if(t.test(`${e.status}`))return n(e);r({message:this._normalizeErrorMessage(e.data),status:e.status,response:e})})}},de={PUBLISHED:`published`},fe=25,S={SMALL:25,MEDIUM:50,LARGE:75},C={SINGLE_OR_SMALL:50,MEDIUM:15,LARGE:10,VERY_LARGE:6},w=1e3,T=3;function pe(e,t){let n=e.includes(`/cdn/stories/`),r=e.split(`/`).length>3&&!e.endsWith(`/cdn/stories`),i=`find_by`in t;return n&&r||i}function me(e){return e<=S.SMALL?C.SINGLE_OR_SMALL:e<=S.MEDIUM?C.MEDIUM:e<=S.LARGE?C.LARGE:C.VERY_LARGE}function E(e,t,n={},r){return n.userRateLimit===void 0?n.serverHeadersRateLimit===void 0?r===void 0?!e||!t||pe(e,t)?C.SINGLE_OR_SMALL:me(t.per_page||fe):r:Math.min(n.serverHeadersRateLimit,w):Math.min(n.userRateLimit,w)}function he(e){if(!e)return null;let t=e[`x-ratelimit`]||e[`X-RateLimit`],n=e[`x-ratelimit-policy`]||e[`X-RateLimit-Policy`];if(!t&&!n)return null;let r={};if(t){let e=t.match(/r=(\d+)/);e&&(r.remaining=Number.parseInt(e[1],10))}if(n){let e=n.match(/q=(\d+)/);e&&(r.max=Number.parseInt(e[1],10))}return Object.keys(r).length>0?r:null}
2function ge(e,t=!1){return{userRateLimit:e,serverHeadersRateLimit:void 0,isManagementApi:t}}var _e=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function ve(e,t,n){if(!Number.isFinite(t))throw TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(n))throw TypeError("Expected `interval` to be a finite number");let r=[],i=[],a=0,o=!1,s=async()=>{a++;let t=r.shift();if(t)try{let n=await e(...t.args);t.resolve(n)}catch(e){t.reject(e)}let o=setTimeout(()=>{a--,r.length>0&&s(),i=i.filter(e=>e!==o)},n);i.includes(o)||i.push(o)},c=(...e)=>o?Promise.reject(Error(`Throttled function is already aborted and not accepting new promises`)):new Promise((n,i)=>{r.push({resolve:n,reject:i,args:e}),a<t&&s()});return c.abort=()=>{o=!0,i.forEach(clearTimeout),i=[],r.forEach(e=>e.reject(()=>new _e(`Throttle function aborted`))),r.length=0},c}var ye=class{constructor(e,t=1e3){_(this,`queues`),_(this,`interval`),_(this,`throttledRequestFn`),this.queues=new Map,this.interval=t,this.throttledRequestFn=e}getQueue(e){let t=this.queues.get(e);return t||(t=ve(this.throttledRequestFn,e,this.interval),this.queues.set(e,t)),t}execute(e,...t){return this.getQueue(e)(...t)}
2abortAll(){this.queues.forEach(e=>{var t;(t=e.abort)==null||t.call(e)}),this.queues.clear()}getQueueCount(){return this.queues.size}},D={},O={},be=class{constructor(e,t){_(this,`client`),_(this,`maxRetries`),_(this,`retriesDelay`),_(this,`throttleManager`),_(this,`accessToken`),_(this,`cache`),_(this,`resolveCounter`),_(this,`relations`),_(this,`links`),_(this,`version`),_(this,`rateLimitConfig`),_(this,`cvMode`),_(this,`richTextResolver`),_(this,`resolveNestedRelations`),_(this,`stringifiedStoriesCache`),_(this,`inlineAssets`);let n=e.endpoint||t;if(!n){let t=e.https===!1?`http`:`https`;n=e.oauthToken?`${t}://${x(e.region)}/v1`:`${t}://${x(e.region)}/v2`}let r=new Headers;!e.oauthToken&&typeof window<`u`||r.set(`Content-Type`,`application/json`),r.set(`Accept`,`application/json`),e.headers&&(e.headers.constructor.name===`Headers`?e.headers.entries().toArray():Object.entries(e.headers)).forEach(([e,t])=>{r.set(e,t)}),e.oauthToken&&r.set(`Authorization`,e.oauthToken),this.rateLimitConfig=ge(e.rateLimit,!!e.oauthToken),this.maxRetries=e.maxRetries||10,this.retriesDelay=e.retriesDelay??300,this.throttleManager=new ye(this.throttledRequest.bind(this),1e3),this.accessToken=e.accessToken||``,this.relations={},this.links={},this.cache=e.cache||{clear:`manual`},this.cvMode=e.cache?.cv??`auto`,this.resolveCounter=0,this.resolveNestedRelations=e.resolveNestedRelations||!0,this.stringifiedStoriesCache={},this.version=e.version||de.PUBLISHED,this.inlineAssets=e.inlineAssets||!1,this.client=new ue({baseURL:n,timeout:e.timeout||0,headers:r,responseInterceptor:e.responseInterceptor,fetch:e.fetch})}parseParams(e){return e.token||=this.getToken(),!e.cv&&this.cvMode===`auto`&&(e.cv=O[e.token]),Array.isArray(e.resolve_relations)?e.resolve_relations=e.resolve_relations.map(y).join(`,`):typeof e.resolve_relations==`string`&&(e.resolve_relations=y(e.resolve_relations)),typeof e.resolve_relations<`u`&&(e.resolve_level=2),e}factoryParamOptions(e,t){return v(e)?this.parseParams(t):t}
2makeRequest(e,t,n,r,i){let a=this.factoryParamOptions(e,ie(t,n,r));return this.cacheResponse(e,a,void 0,i)}get(e,t={},n){t||={};let r=`/${e}`;v(r)&&(t.version=t.version||this.version);let i=this.factoryParamOptions(r,t);return this.cacheResponse(r,i,void 0,n)}async getAll(e,t={},n,r){let i=t?.per_page||25,a=`/${e}`.replace(/\/$/,``),o=n??a.substring(a.lastIndexOf(`/`)+1);t.version=t.version||this.version;let s=await this.makeRequest(a,t,i,1,r);return le([s,...await ce(se(1,s.total?Math.ceil(s.total/(s.perPage||i)):1),e=>this.makeRequest(a,t,i,e+1,r))],e=>Object.values(e.data[o]))}post(e,t={},n){let r=`/${e}`,i=E(void 0,void 0,this.rateLimitConfig,T);return this.throttleManager.execute(i,`post`,r,t,n)}put(e,t={},n){let r=`/${e}`,i=E(void 0,void 0,this.rateLimitConfig,T);return this.throttleManager.execute(i,`put`,r,t,n)}patch(e,t={},n){let r=`/${e}`,i=E(void 0,void 0,this.rateLimitConfig,T);return this.throttleManager.execute(i,`patch`,r,t,n)}delete(e,t={},n){t||={};let r=`/${e}`,i=E(void 0,void 0,this.rateLimitConfig,T);return this.throttleManager.execute(i,`delete`,r,t,n)}getStories(e={},t){return this._addResolveLevel(e),this.get(`cdn/stories`,e,t)}getStory(e,t={},n){return this._addResolveLevel(t),this.get(`cdn/stories/${e}`,t,n)}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,n){let r=e[t];r&&r.fieldtype===`multilink`&&r.linktype===`story`&&typeof r.id==`string`&&this.links[n][r.id]?r.story=this._cleanCopy(this.links[n][r.id]):r&&r.linktype===`story`&&typeof r.uuid==`string`&&this.links[n][r.uuid]&&(r.story=this._cleanCopy(this.links[n][r.uuid]))}getStoryReference(e,t){return this.relations[e][t]?JSON.parse(this.stringifiedStoriesCache[t]||JSON.stringify(this.relations[e][t])):t}_resolveField(e,t,n){let r=e[t];typeof r==`string`?e[t]=this.getStoryReference(n,r):Array.isArray(r)&&(e[t]=r.map(e=>this.getStoryReference(n,e)).filter(Boolean))}_insertRelations(e,t,n,r){if(Array.isArray(n)?n.find(e=>e.endsWith(`.${t}`)):n.endsWith(`.${t}`)){this._resolveField(e,t,r);return}let i=e.component?`${e.component}.${t}`:t;(Array.isArray(n)?n.includes(i):n===i)&&this._resolveField(e,t,r)}iterateTree(e,t,n){let r=(e,i=``)=>{if(!(!e||e._stopResolving)){if(Array.isArray(e))e.forEach((e,t)=>r(e,`${i}[${t}]`));else if(typeof e==`object`)for(let a in e){let o=i?`${i}.${a}`:a;(e.component&&e._uid||e.type===`link`)&&(this._insertRelations(e,a,t,n),this._insertLinks(e,a,n)),r(e[a],o)}}};r(e.content)}async resolveLinks(e,t,n){let r=[];if(e.link_uuids){let n=e.link_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.link_uuids.slice(t,r))}for(let e=0;e<i.length;
2e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(`,`)})).data.stories.forEach(e=>{r.push(e)})}else r=e.links;r.forEach(e=>{this.links[n][e.uuid]={...e,_stopResolving:!0}})}async resolveRelations(e,t,n){let r=[];if(e.rel_uuids){let n=e.rel_uuids.length,i=[];for(let t=0;t<n;t+=50){let r=Math.min(n,t+50);i.push(e.rel_uuids.slice(t,r))}for(let e=0;e<i.length;e++)(await this.getStories({per_page:50,language:t.language,version:t.version,starts_with:t.starts_with,by_uuids:i[e].join(`,`),excluding_fields:t.excluding_fields})).data.stories.forEach(e=>{r.push(e)});r.length>0&&(e.rels=r,delete e.rel_uuids)}else r=e.rels;r&&r.length>0&&r.forEach(e=>{this.relations[n][e.uuid]={...e,_stopResolving:!0}})}async resolveStories(e,t,n){var r,i;let a=[];if(this.links[n]={},this.relations[n]={},typeof t.resolve_relations<`u`&&t.resolve_relations.length>0&&(typeof t.resolve_relations==`string`&&(a=t.resolve_relations.split(`,`)),await this.resolveRelations(e,t,n)),t.resolve_links&&[`1`,`story`,`url`,`link`].includes(t.resolve_links)&&((r=e.links)!=null&&r.length||(i=e.link_uuids)!=null&&i.length)&&await this.resolveLinks(e,t,n),this.resolveNestedRelations)for(let e in this.relations[n])this.iterateTree(this.relations[n][e],a,n);e.story?this.iterateTree(e.story,a,n):e.stories.forEach(e=>{this.iterateTree(e,a,n)}),this.stringifiedStoriesCache={},delete this.links[n],delete this.relations[n]}async cacheResponse(e,t,n,r){let i=b({url:e,params:t}),a=this.cacheProvider();if(t.version===`published`&&e!==`/cdn/spaces/me`){let e=await a.get(i);if(e)return Promise.resolve(e)}let o=!v(e)&&this.rateLimitConfig.isManagementApi?T:void 0,s=E(e,t,this.rateLimitConfig,o);return new Promise(async(o,c)=>{var l;try{let n=await this.throttleManager.execute(s,`get`,e,t,r);if(n.status!==200)return c(n);let u={data:n.data,headers:n.headers},d=he(n.headers);if(d?.max!==void 0&&(this.rateLimitConfig.serverHeadersRateLimit=d.max),(l=n.headers)!=null&&l[`per-page`]&&(u=Object.assign({},u,{perPage:n.headers[`per-page`]?Number.parseInt(n.headers[`per-page`]):0,total:n.headers[`per-page`]?Number.parseInt(n.headers.total):0})),u.data.story||u.data.stories){let e=this.resolveCounter=++this.resolveCounter%1e3;await this.resolveStories(u.data,t,`${e}`),u=await this.processInlineAssets(u)}t.version===`published`&&e!==`/cdn/spaces/me`&&await a.set(i,u);let f=this.cache.clear===`onpreview`&&t.version===`draft`||this.cache.clear===`auto`;return t.token&&u.data.cv&&(f&&O[t.token]&&O[t.token]!==u.data.cv&&await this.flushCache(),O[t.token]=u.data.cv),o(u)}catch(r){if(r.response&&r.status===429&&(n=typeof n>`u`?0:n+1,n<this.maxRetries))return console.log(`Hit rate limit. Retrying in ${this.retriesDelay/1e3} seconds.`),await ae(this.retriesDelay),this.cacheResponse(e,t,n).then(o).catch(c);c(r)}})}throttledRequest(e,t,n,r){return this.client.setFetchOptions(r),this.client[e](t,n)}cacheVersions(){return O}cacheVersion(){return O[this.accessToken]}setCacheVersion(e){this.accessToken&&(O[this.accessToken]=e)}clearCacheVersion(){this.accessToken&&(O[this.accessToken]=0)}cacheProvider(){switch(this.cache.type){case`memory`:return{get(e){return Promise.resolve(D[e])},getAll(){return Promise.resolve(D)},set(e,t){return D[e]=t,Promise.resolve(void 0)},flush(){return D={},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}async processInlineAssets(e){if(!this.inlineAssets)return e;let t=n=>{if(!n||typeof n!=`object`)return n;if(Array.isArray(n))return n.map(e=>t(e));let r={...n};r.fieldtype===`asset`&&Array.isArray(e.data.assets)&&(r={...e.data.assets.find(e=>e.id===r.id),...r});for(let e in r)typeof r[e]==`object`&&(r[e]=t(r[e]));return r};return e.data.story&&(e.data.story.content=t(e.data.story.content)),e.data.stories&&(e.data.stories=e.data.stories.map(e=>(e.content=t(e.content),e))),e}};function k(e,t){if(!t)return{src:e,attrs:{}};let n=0,r=0,i={},a=[];function o(e,t,n,r,i){typeof e!=`number`||e<=t||e>=n?console.warn(`[StoryblokRichText] - ${r.charAt(0).toUpperCase()+r.slice(1)} value must be a number between ${t} and ${n} (inclusive)`):i.push(`${r}(${e})`)}if(typeof t==`object`){if(t.width!==void 0&&(typeof t.width==`number`&&t.width>=0?(i.width=t.width,n=t.width):console.warn(`[StoryblokRichText] - Width value must be a number greater than or equal to 0`)),t.height!==void 0&&(typeof t.height==`number`&&t.height>=0?(i.height=t.height,r=t.height):console.warn(`[StoryblokRichText] - He
2ight value must be a number greater than or equal to 0`)),t.height===0&&t.width===0&&(delete i.width,delete i.height,console.warn(`[StoryblokRichText] - Width and height values cannot both be 0`)),t.loading&&[`lazy`,`eager`].includes(t.loading)&&(i.loading=t.loading),t.class&&(i.class=t.class),t.filters){let{filters:e}=t||{},{blur:n,brightness:r,fill:i,format:s,grayscale:c,quality:l,rotate:u}=e||{};n&&o(n,0,100,`blur`,a),l&&o(l,0,100,`quality`,a),r&&o(r,0,100,`brightness`,a),i&&a.push(`fill(${i})`),c&&a.push(`grayscale()`),u&&[0,90,180,270].includes(t.filters.rotate||0)&&a.push(`rotate(${u})`),s&&[`webp`,`png`,`jpeg`].includes(s)&&a.push(`format(${s})`)}t.srcset&&(i.srcset=t.srcset.map(t=>{if(typeof t==`number`)return`${e}/m/${t}x0/${a.length>0?`filters:${a.join(`:`)}`:``} ${t}w`;if(Array.isArray(t)&&t.length===2){let[n,r]=t;return`${e}/m/${n}x${r}/${a.length>0?`filters:${a.join(`:`)}`:``} ${n}w`}console.warn(`[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers`)}).join(`, `)),t.sizes&&(i.sizes=t.sizes.join(`, `))}let s=`${e}/m/`;return(n>0||r>0)&&(s=`${s}${n}x${r}/`),a.length>0&&(s=`${s}filters:${a.join(`:`)}`),{src:s,attrs:i}}function A(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t||typeof e!=`object`||Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e))return e.length===t.length&&e.every((e,n)=>A(e,t[n]));let n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>Object.prototype.hasOwnProperty.call(t,n)&&A(e[n],t[n]))}var xe=[`area`,`base`,`br`,`col`,`embed`,`hr`,`img`,`input`,`link`,`meta`,`param`,`source`,`track`,`wbr`];function Se(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#039;`)}function Ce(){let e=new Map;return t=>{let n=(e.get(t)||0)+1;return e.set(t,n),`${t}-${n}`}}var j={paragraph:{tag:`p`,content:!0},doc:null,text:null,emoji:{tag:`img`,attrs:{style:`width: 1.25em; height: 1.25em; vertical-align: text-top;`,draggable:`false`,loading:`lazy`}},blockquote:{tag:`blockquote`,content:!0},heading:{resolve:e=>`h${typeof e?.level==`number`?Math.min(6,Math.max(1,e.level)):1}`},bullet_list:{tag:`ul`,content:!0},ordered_list:{tag:`ol`,attrs:{order:1},content:!0},list_item:{tag:`li`,content:!0},code_block:{tag:`pre`,children:[{tag:`code`,content:!0}]},hard_break:{tag:`br`},horizontal_rule:{tag:`hr`},image:{tag:`img`},table:{tag:`table`,content:!0},tableRow:{tag:`tr`,content:!0},tableCell:{tag:`td`,attrs:{colspan:1,rowspan:1},content:!0},tableHeader:{tag:`th`,attrs:{colspan:1,rowspan:1},content:!0},blok:null},we={link:{tag:`a`,attrs:{rel:`noopener noreferrer nofollow`,linktype:`url`,custom:{}},content:!0},bold:{tag:`strong`,content:!0},italic:{tag:`em`,content:!0},strike:{tag:`s`,content:!0},underline:{tag:`u`,content:!0},code:{tag:`code`,content:!0},superscript:{tag:`sup`,content:!0},subscript:{tag:`sub`,content:!0},highlight:{tag:`mark`,content:!0},textStyle:{tag:`span`,content:!0},anchor:{tag:`span`,content:!0},styled:{tag:`span`,content:!0}};function Te(e){return Object.entries(e).filter(([,e])=>M(e)).map(([e,t])=>`${Oe(e)}: ${t};`).join(` `)}function Ee(e){return e.split(`;`).map(e=>e.trim()).filter(Boolean).reduce((e,t)=>{let n=t.indexOf(`:`);if(n===-1)return e;let r=t.slice(0,n).trim(),i=t.slice(n+1).trim();return!r||!i||(e[De(r)]=i),e},{})}function De(e){return e.replace(/-([a-z])/g,(e,t)=>t.toUpperCase())}function Oe(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function M(e){return e!=null&&e!==``}var ke={highlight:{color:`backgroundColor`},textStyle:{color:`color`},paragraph:{textAlign:`textAlign`},heading:{textAlign:`textAlign`},tableCell:{backgroundColor:`backgroundColor`,colwidth:`width`},tableHeader:{colwidth:`width`}},Ae={fallbackImage:`src`,body:`data-body`,colspan:`colSpan`,rowspan:`rowSpan`,name:`data-name`,emoji:`data-emoji`,order:`start`},je=new Set([`level`,`linktype`,`uuid`,`anchor`,`meta_data`,`copyright`,`source`]),Me=new Set([`colspan`,`rowspan`,`order`]);function Ne(e){let{linktype:t,href:n,anchor:r}=e;if(t===`story`)return`${typeof n==`string`?n:``}${typeof r==`string`&&r?`#${r}`:``}`;if(t===`email`&&typeof n==`string`)return`mailto:${n.replace(/^mailto:/,``)}`}function Pe(e){let t={},n={};if(!(e in j))return{staticAttrs:n,staticStyle:t};let r=j[e];if(!r||!(`attrs`in r))return{staticAttrs:n,staticStyle:t};let i=r.attrs||{},a=`style`in i&&typeof i.style==`string`?i.style:``,{style:o,...s}=i;return n=s,a&&Object.assign(t,Ee(a)),{staticAttrs:n,staticStyle:t}}function Fe(e){return Array.isArray(e)?e[0]==null?void 0:`${e[0]}px`:typeof e==`number`||typeof e==`string`?e:String(e)}function Ie(e,t,n,r,i,a,o){if(!M(t)||je.has(e)||Me.has(e)&&t===1)return;if(e in r){let n=r[e],i=Fe(t);i!==void 0&&M(i)&&(a[n]=i);return}let s=i[e]??e;if(s===`custom`&&n===`link`&&typeof t==`object`&&t){for(let[e,n]of Object.entries(t))o[e]=String(n);return}if(typeof t==`object`&&t){o[s]=JSON.stringify(t);return}o[s]=t}function N(e,t={},n={}){let{staticAttrs:r,staticStyle:i}=Pe(e),a={...i},o={},s=ke[e]||{},c={...Ae,...n},l={...r,...t};for(let[t,n]of Object.entries(l))Ie(t,n,e,s,c,a,o);if(e===`link`){let e=Ne(t);e!==void 0&&(o.href=e)}return{...o,...Object.keys(a).length>0&&{style:a}}}var Le=e=>String(e).replace(/[&"'<>]/g,e=>{switch(e){case`&`:return`&amp;`;case`"`:return`&quot;`;case`'`:return`&#39;`;case`<`:return`&lt;`;case`>`:return`&gt;`;default:return e}});function P(e){if(e.type!==`text`||!e.marks)return null;for(let t of e.marks)if(t.type===`link`)return t;return null}function F(e,t){return!e||!t?!1:A(e.attrs??{},t.attrs??{})}function Re(e){return e.type!==`text`||!e.marks?[]:e.marks.filter(e=>e.type!==`link`)}function ze(e){let t=[],n=0,r=e.length;for(;n<r;){let i=e[n],a=P(i);if(a){let o=[i],s=n+1;for(;s<r&&F(a,P(e[s]));)o.push(e[s]),s++;t.push({nodes:o,linkMark:a,_key:`group-link-${n}`}),n=s}else t.push({nodes:[i],linkMark:null,_key:`group-node-${n}`}),n++}return t}function I(e){let t=e.content;if(!(t!=null&&t.length))return!1;for(let e of t)if(e.type!==`tableHeader`)return!1;return!0}function Be(e){if(!(e!=null&&e.length))return{headerRows:[],bodyRows:[]};let t=0;for(;t<e.length&&I(e[t]);)t++;return{headerRows:e.slice(0,t),bodyRows:e.slice(t)}}function L(e,t=!1){if(!e)return[];if(Array.isArray(e))return e;let n=e.type===`doc`?e.content||[]:[e];return t?R(n,Ce()):n}function R(e,t){return e.map(e=>({...e,_key:t(e.type),marks:e.marks?.map(e=>({...e,_key:t(e.type)})),...e.content?{content:R(e.content,t)}:{}}))}function z(e){let t=e.type,n=j[t]??we[t];return n?`resolve`in n&&typeof n.resolve==`function`?n.resolve(e.attrs):`tag`in n&&typeof n.tag==`string`?n.tag:null:null}function B(e){return xe.includes(e)}function V(e){let t=j[e.type];return t&&`children`in t?t.children:null}function Ve(e){let t=``;for(let n in e){let r=e[n];r!=null&&(t+=` ${n}="${Le(r)}"`)}return t}function He(e,t){let n=L(e);return n!=null&&n.length?U(n,t):``}function H(e,t){if(e.type===`text`)return W(e,e.marks,t);let n=e.content?U(e.content,t):``,r=t?.renderers?.[e.type];if(r)return r({...e,children:n,context:t});if(e.type===`blok`)return console.warn(`"blok" nodes require a custom renderer in renderRichText.`),``;let i=z(e);if(!i)return n;if(e.type===`image`&&t!=null&&t.optimizeImage)return Ue(e,t);let a=K(e.type,e.attrs);if(B(i))return`<${i}${a}>`;if(e.type===`table`)return`<${i}${a}>${Ke(e.content,t)}</${i}>`;let o=V(e);return o?`<${i}>${G(e.type,o,e.attrs,n)}</${i}>`:`<${i}${a}>${n}</${i}>`}function Ue(e,t){let n=e.attrs,r=n?.src,i=n;
2if(r){let{src:e,attrs:a}=k(r,t.optimizeImage);i={...n,src:e,...a}}let a=K(`image`,i);return a?`<img${a}>`:`<img>`}function U(e,t){let n=``,r=0,i=e.length;for(;r<i;){let a=e[r],o=P(a);if(o){let a=r+1;for(;a<i&&F(o,P(e[a]));)a++;n+=Ge(e,r,a,o,t),r=a}else n+=H(a,t),r++}return n}function W(e,t,n){let r=Se(e.text);if(!(t!=null&&t.length))return r;for(let e of t)r=We(r,e,n);return r}function We(e,t,n){let r=n?.renderers?.[t.type];if(r)return r({...t,children:e});let i=z(t);return i?`<${i}${K(t.type,t.attrs)}>${e}</${i}>`:e}function Ge(e,t,n,r,i){let a=``;for(let r=t;r<n;r++){let t=e[r],n=t.marks?.filter(e=>e.type!==`link`);a+=W(t,n,i)}let o=i?.renderers?.[r.type];if(o)return o({...r,children:a});let s=z(r);return s?`<${s}${K(r.type,r.attrs)}>${a}</${s}>`:a}function Ke(e,t){if(!(e!=null&&e.length))return``;let n=0;for(;n<e.length&&I(e[n]);)n++;let r=``;if(n>0){r+=`<thead>`;for(let i=0;i<n;i++)r+=H(e[i],t);r+=`</thead>`}if(n<e.length){r+=`<tbody>`;for(let i=n;i<e.length;i++)r+=H(e[i],t);r+=`</tbody>`}return r}function G(e,t,n,r){let i=``;for(let a of t){let{tag:t,children:o,attrs:s}=a,c=K(e,{...s,...n});if(B(t))i+=`<${t}${c}>`;else{let a=o?G(e,o,n,r):r;i+=`<${t}${c}>${a}</${t}>`}}return i}function K(e,t){let n=N(e,t,{colspan:`colspan`,rowspan:`rowspan`}),r=n.style,i={...n};return r&&(i.style=Te(r)),Ve(i)}var q=!1,J=[],qe=e=>new Promise((t,n)=>{if(typeof window>`u`){n(Error(`Cannot load Storyblok bridge: window is undefined (server-side environment)`));return}if(window.storyblokRegisterEvent=e=>{if(!window.location.search.includes(`_storyblok`)){console.warn(`You are not in Draft Mode or in the Visual Editor.`);return}q?e():J.push(e)},document.getElementById(`storyblok-javascript-bridge`)){t(void 0);return}let r=document.createElement(`script`);r.async=!0,r.src=e,r.id=`storyblok-javascript-bridge`,r.onerror=e=>n(e),r.onload=e=>{J.forEach(e=>e()),q=!0,t(e)},document.getElementsByTagName(`head`)[0].appendChild(r)}),Je=(e={})=>{let{apiOptions:t}=e;if(!t||!t.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 be(t)}},Ye=e=>{if(typeof e!=`object`||typeof e._editable>`u`)return{};try{let t=JSON.parse(e._editable.replace(/^<!--#storyblok#/,``).replace(/-->$/,``));return t?{"data-blok-c":JSON.stringify(t),"data-blok-uid":`${t.id}-${t.uid}`}:{}}catch{return{}}},Y=`https://app.storyblok.com/f/storyblok-v2-latest.js`,Xe=(e={})=>{let{bridge:t,accessToken:n,use:r=[],apiOptions:i={},bridgeUrl:a}=e;i.accessToken=i.accessToken||n;let o={bridge:t,apiOptions:i},s={};r.forEach(e=>{s={...s,...e(o)}}),a&&(Y=a);let c=!(typeof window>`u`)&&(window.location?.search)?.includes(`_storyblok_tk`);return t!==!1&&c&&qe(Y),s},X=l({__name:`StoryblokComponent`,props:{blok:{}},setup(e,{expose:t}){let i=e,l=r(),m=ee();t({value:m});let h=typeof p(i.blok.component)!=`string`,g=n(`VueSDKOptions`),_=ee(i.blok.component?.replace(/_/g,`-`));return!h&&g&&(g.enableFallbackComponent?(_.value=g.customFallbackComponent??`FallbackComponent`,typeof p(_.value)==`string`&&console.error(`Is the Fallback component "${_.value}" registered properly?`)):console.error(`Component could not be found for blok "${i.blok.component}"! Is it defined in main.ts as "app.component("${i.blok.component}", ${i.blok.component});"?`)),(e,t)=>(u(),f(p(_.value),c({ref_key:`blokRef`,ref:m},{...e.$props,...e.$attrs}),te({_:2},[o(Object.keys(a(l)),t=>({name:t,fn:d(n=>[ne(e.$slots,t,s(re(n)))])}))]),1040))}}),Ze=l({name:`StoryblokBlokRenderer`,props:{type:{type:String,required:!0},attrs:{type:Object,required:!1},content:{type:Array,required:!1},marks:{type:Array,required:!1},_key:{type:String,required:!1},context:{type:Object,required:!1}},setup(t){return()=>Array.isArray(t.attrs?.body)?t.attrs.body.map((t,n)=>e(X,{blok:t,key:t._uid||n})):null}});function Z(e,t){return t?.[e]}function Qe(e){return function(t){if(!t)return null;let n=L(t,!0);return n.length?Q(n,e):null}}function Q(e,t){return ze(e).map((e,n)=>e.linkMark?$e(e.nodes,e.linkMark,t,e._key||n):$(e.nodes[0],t,e._key||n))}function $e(n,r,i,a){let o=n.map((e,t)=>it(e,Re(e),i)),s=Z(r.type,i.components);if(s)return e(s,{key:a,...r},{default:()=>o});let c=z(r);return c?e(c,{key:a,...N(r.type,r.attrs)},o):o.length>0?o[0]:t(``)}function $(n,r,i){if(n.type===`text`)return rt(n,r);
2let a=Z(n.type,r.components);if(a)return e(a,{key:i,...n,context:r},n.content?{default:()=>Q(n.content,r)}:void 0);let o=z(n);if(!o){let a=n.content?Q(n.content,r):[];return a.length===0?t(``):a.length===1?a[0]:e(`div`,{key:i},a)}if(n.type===`image`&&r.optimizeImage)return et(n,r,i);let s=N(n.type,n.attrs);if(B(o))return e(o,{key:i,...s});if(n.type===`table`)return tt(n,r,i,o,s);let c=V(n);if(c){let t=n.content?Q(n.content,r):[],a=nt(n.type,c,n.attrs,t);return e(o,{key:i},a)}let l=n.content?Q(n.content,r):[];return e(o,{key:i,...s},l)}function et(n,r,i){let a=n.attrs,o=a?.src;if(!o)return t(``);let{src:s,attrs:c}=k(o,r.optimizeImage),l=N(`image`,{...a,src:s,...c});return e(`img`,{key:i,...l})}function tt(t,n,r,i,a){let{headerRows:o,bodyRows:s}=Be(t.content),c=[];return o.length>0&&c.push(e(`thead`,{key:`thead`},o.map((e,t)=>$(e,n,t)))),s.length>0&&c.push(e(`tbody`,{key:`tbody`},s.map((e,t)=>$(e,n,t)))),e(i,{key:r,...a},c)}function nt(t,n,r,i){return n.map((n,a)=>{let{tag:o,children:s,attrs:c}=n,l=N(t,{...c,...r});if(B(o))return e(o,{key:a,...l});let u=s?nt(t,s,r,i):i;return e(o,{key:a,...l},u)})}function rt(e,t,n){return it(e,e.marks,t)}function it(e,n,r,i){let a=e.text;if(n!=null&&n.length)for(let e of n)a=at(a,e,r);return typeof a==`string`?t(a):a}function at(n,r,i){let a=Z(r.type,i.components);if(a){let i=typeof n==`string`?t(n):n;return e(a,{...r},{default:()=>[i]})}let o=z(r);return o?e(o,N(r.type,r.attrs),typeof n==`string`?n:[n]):typeof n==`string`?t(n):n}var ot=l({name:`StoryblokRichText`,props:{document:{type:Object,required:!1},optimizeImage:{type:[Boolean,Object],required:!1},components:{type:Object,required:!1}},setup(e){let t=Qe({optimizeImage:e.optimizeImage,components:{blok:Ze,...e.components}});return()=>t(e.document)}}),st={beforeMount(e,t){if(t.value){let n=Ye(t.value);Object.keys(n).length>0&&(e.setAttribute(`data-blok-c`,n[`data-blok-c`]),e.setAttribute(`data-blok-uid`,n[`data-blok-uid`]),e.classList.add(`storyblok__outline`))}}},ct={install(e,t={}){e.directive(`editable`,st),e.component(`StoryblokComponent`,X),e.component(`StoryblokRichText`,ot),t.enableFallbackComponent&&!t.customFallbackComponent&&e.component(`FallbackComponent`,i(()=>m(()=>import(`./B5047FZN.js`),__vite__mapDeps([0,1]),import.meta.url)));let{storyblokApi:n}=Xe(t);e.provide(`VueSDKOptions`,t)}};export{He as n,ct as r,Je as t};
3//# sourceMappingURL=cOc_jJ6M.js.map

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.