"use strict";(globalThis.webpackChunk_flippingbook_publication=globalThis.webpackChunk_flippingbook_publication||[]).push([[22],{1996:(e,o,t)=>{t.d(o,{getVimeoVideoInfo:()=>a,resolveVimeoVideoId:()=>s});const i=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,n=new Map,c=new Map;function s(e){const o=e.match(i);return{videoId:o?.[1],hash:o?.[2]}}async function a(e,o,t){if(n.has(e))return n.get(e);if(c.has(e))return c.get(e);let i=`https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;t&&(i=i.concat(`?h=${t}`));const s=window.fetch(i,{mode:"cors",signal:o.signal}).then((e=>e.json())).then((o=>{const t=/vimeocdn.com\/video\/(.*)?_/,i=o?.thumbnail_url?.match(t)?.[1],c=i?`https://i.vimeocdn.com/video/${i}_1920x1080.webp`:"",s={title:o?.title??"",duration:o?.duration??0,poster:c,pro:"basic"!==o.account_type};return n.set(e,s),s})).finally((()=>c.delete(e)));return c.set(e,s),s}}}]);