1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./0XCV4L3d.js","./DkmqD0Ep.js","./entry.OyezlDav.css","./DggpVfx4.js","./BZXsIZ3P.js"])))=>i.map(i=>d[i]); 2var ys=Object.defineProperty;var Fr=t=>{throw TypeError(t)};var gs=(t,e,r)=>e in t?ys(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var E=(t,e,r)=>gs(t,typeof e!="symbol"?e+"":e,r),Ur=(t,e,r)=>e.has(t)||Fr("Cannot "+r);var l=(t,e,r)=>(Ur(t,e,"read from private field"),r?r.call(t):e.get(t)),k=(t,e,r)=>e.has(t)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),A=(t,e,r,n)=>(Ur(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{ah as vs,ai as br,aj as bs,V as Lr,W as ct,ak as ws,al as _s,am as Nr,M as Gt,X as wr,i as ne,d as Re,an as Is,k as Ge,E as Pn,_ as St,c as J,J as Ss,o as V,ao as Br,ap as xs,ag as Es,aq as Mt,ar as ve,as as be,at as we,au as Cs,av as qn,aw as ir,ax as $s,ay as Os,C as Mn,e as ke,F as ge,r as Qe,y as Dt,G as hr,f as Qt,A as As,L as sr,az as zr,n as ks,t as Dn,aA as js,aB as Ts,aC as Rs,m as Ps,aD as qs,v as or,aE as Vr,aF as jl,ac as Ms,aG as Ds,Q as L,aI as Fs,aJ as Us}from"./DkmqD0Ep.js";import{_ as Ls}from"./DggpVfx4.js";const Ns=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Bs=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],zs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",Me=[];class Vs{constructor(){E(this,"_data",new jt);E(this,"_hash",new jt([...Ns]));E(this,"_nDataBytes",0);E(this,"_minBufferSize",0)}finalize(e){e&&this._append(e);const r=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(r/4294967296),this._data.words[(n+64>>>9<<4)+15]=r,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,r){const n=this._hash.words;let i=n[0],s=n[1],o=n[2],a=n[3],u=n[4],c=n[5],d=n[6],f=n[7];for(let h=0;h<64;h++){if(h<16)Me[h]=e[r+h]|0;else{const w=Me[h-15],C=(w<<25|w>>>7)^(w<<14|w>>>18)^w>>>3,R=Me[h-2],W=(R<<15|R>>>17)^(R<<13|R>>>19)^R>>>10;Me[h]=C+Me[h-7]+W+Me[h-16]}const m=u&c^~u&d,y=i&s^i&o^s&o,p=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),I=(u<<26|u>>>6)^(u<<21|u>>>11)^(u<<7|u>>>25),S=f+I+m+Bs[h]+Me[h],x=p+y;f=d,d=c,c=u,u=a+S|0,a=o,o=s,s=i,i=S+x|0}n[0]=n[0]+i|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+u|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0}_append(e){typeof e=="string"&&(e=jt.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let r,n=this._data.sigBytes/64;e?n=Math.ceil(n):n=Math.max((n|0)-this._minBufferSize,0);const i=n*16,s=Math.min(i*4,this._data.sigBytes);if(i){for(let o=0;o<i;o+=16)this._doProcessBlock(this._data.words,o);r=this._data.words.splice(0,i),this._data.sigBytes-=s}return new jt(r,s)}}let jt=class Fn{constructor(e,r){E(this,"words");E(this,"sigBytes");e=this.words=e||[],this.sigBytes=r===void 0?e.length*4:r}static fromUtf8(e){const r=unescape(encodeURIComponent(e)),n=r.length,i=[];for(let s=0;s<n;s++)i[s>>>2]|=(r.charCodeAt(s)&255)<<24-s%4*8;return new Fn(i,n)}toBase64(){const e=[];for(let r=0;r<this.sigBytes;r+=3){const n=this.words[r>>>2]>>>24-r%4*8&255,i=this.words[r+1>>>2]>>>24-(r+1)%4*8&255,s=this.words[r+2>>>2]>>>24-(r+2)%4*8&255,o=n<<16|i<<8|s;for(let a=0;a<4&&r*8+a*6<this.sigBytes*8;a++)e.push(zs.charAt(o>>>6*(3-a)&63))}return e.join("")}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let r=0;r<e.sigBytes;r++){const n=e.words[r>>>2]>>>24-r%4*8&255;this.words[this.sigBytes+r>>>2]|=n<<24-(this.sigBytes+r)%4*8}else for(let r=0;r<e.sigBytes;r+=4)this.words[this.sigBytes+r>>>2]=e.words[r>>>2];this.sigBytes+=e.sigBytes}};function Ws(t){return new Vs().finalize(t).toBase64()}function Hs(t){return Ws(vs(t))}async function Gs(t,e){return await Qs(e).catch(n=>(console.error("Failed to get image meta for "+e,n+""),{width:0,height:0,ratio:0}))}async function Qs(t){if(typeof Image>"u")throw new TypeError("Image not supported");return new Promise((e,r)=>{const n=new Image;n.onload=()=>{const i={width:n.width,height:n.height,ratio:n.width/n.height};e(i)},n.onerror=i=>r(i),n.src=t})}function Wr(t){return e=>e?t[e]||e:t.missingValue}
2function Un({formatter:t,keyMap:e,joinWith:r="/",valueMap:n}={}){t||(t=(s,o)=>`${s}=${o}`),e&&typeof e!="function"&&(e=Wr(e));const i=n||{};return Object.keys(i).forEach(s=>{typeof i[s]!="function"&&(i[s]=Wr(i[s]))}),(s={})=>Object.entries(s).filter(([a,u])=>typeof u<"u").map(([a,u])=>{const c=i[a];return typeof c=="function"&&(u=c(s[a])),a=typeof e=="function"?e(a):a,t(a,u)}).join(r)}function ae(t=""){if(typeof t=="number")return t;if(typeof t=="string"&&t.replace("px","").match(/^\d+$/g))return Number.parseInt(t,10)}function Js(t=""){if(t===void 0||!t.length)return[];const e=new Set;for(const r of t.split(" ")){const n=Number.parseInt(r.replace("x",""));n&&e.add(n)}return Array.from(e)}function Ys(t){if(t.length===0)throw new Error("`densities` must not be empty, configure to `1` to render regular size only (DPR 1.0)")}function Xs(t){const e={};if(typeof t=="string")for(const r of t.split(/[\s,]+/).filter(n=>n)){const n=r.split(":");n.length!==2?e["1px"]=n[0].trim():e[n[0].trim()]=n[1].trim()}else Object.assign(e,t);return e}function Ks(t){const e={options:t},r=(i,s={})=>Ln(e,i,s),n=(i,s={},o={})=>r(i,{...o,modifiers:br(s,o.modifiers||{})}).url;for(const i in t.presets)n[i]=(s,o,a)=>n(s,o,{...t.presets[i],...a});return n.options=t,n.getImage=r,n.getMeta=(i,s)=>Zs(e,i,s),n.getSizes=(i,s)=>ro(e,i,s),e.$img=n,n}async function Zs(t,e,r){const n=Ln(t,e,{...r});return typeof n.getMeta=="function"?await n.getMeta():await Gs(t,n.url)}function Ln(t,e,r){var c,d;if(e&&typeof e!="string")throw new TypeError(`input must be a string (received ${typeof e}: ${JSON.stringify(e)})`);if(!e||e.startsWith("data:"))return{url:e};const{provider:n,defaults:i}=eo(t,r.provider||t.options.provider),s=to(t,r.preset);if(e=Lr(e)?e:bs(e),!n.supportsAlias){for(const f in t.options.alias)if(e.startsWith(f)){const h=t.options.alias[f];h&&(e=ct(h,e.slice(f.length)))}}if(n.validateDomains&&Lr(e)){const f=ws(e).host;if(!t.options.domains.find(h=>h===f))return{url:e}}const o=br(r,s,i);o.modifiers={...o.modifiers};const a=o.modifiers.format;(c=o.modifiers)!=null&&c.width&&(o.modifiers.width=ae(o.modifiers.width)),(d=o.modifiers)!=null&&d.height&&(o.modifiers.height=ae(o.modifiers.height));const u=n.getImage(e,o,t);return u.format=u.format||a||"",u}function eo(t,e){const r=t.options.providers[e];if(!r)throw new Error("Unknown provider: "+e);return r}function to(t,e){if(!e)return{};if(!t.options.presets[e])throw new Error("Unknown preset: "+e);return t.options.presets[e]}function ro(t,e,r){var y,p,I,S,x;const n=ae((y=r.modifiers)==null?void 0:y.width),i=ae((p=r.modifiers)==null?void 0:p.height),s=Xs(r.sizes),o=(I=r.densities)!=null&&I.trim()?Js(r.densities.trim()):t.options.densities;Ys(o);const a=n&&i?i/n:0,u=[],c=[];if(Object.keys(s).length>=1){for(const w in s){const C=Hr(w,String(s[w]),i,a,t);if(C!==void 0){u.push({size:C.size,screenMaxWidth:C.screenMaxWidth,media:`(max-width: ${C.screenMaxWidth}px)`});for(const R of o)c.push({width:C._cWidth*R,src:Gr(t,e,r,C,R)})}}no(u)}else for(const w of o){const C=Object.keys(s)[0];let R=C?Hr(C,String(s[C]),i,a,t):void 0;R===void 0&&(R={size:"",screenMaxWidth:0,_cWidth:(S=r.modifiers)==null?void 0:S.width,_cHeight:(x=r.modifiers)==null?void 0:x.height}),c.push({width:w,src:Gr(t,e,r,R,w)})}io(c);const d=c[c.length-1],f=u.length?u.map(w=>`${w.media?w.media+" ":""}${w.size}`).join(", "):void 0,h=f?"w":"x",m=c.map(w=>`${w.src} ${w.width}${h}`).join(", ");return{sizes:f,srcset:m,src:d==null?void 0:d.src}}function Hr(t,e,r,n,i){const s=i.options.screens&&i.options.screens[t]||Number.parseInt(t),o=e.endsWith("vw");if(!o&&/^\d+$/.test(e)&&(e=e+"px"),!o&&!e.endsWith("px"))return;let a=Number.parseInt(e);if(!s||!a)return;o&&(a=Math.round(a/100*s));const u=n?Math.round(a*n):r;return{size:e,screenMaxWidth:s,_cWidth:a,_cHeight:u}}function Gr(t,e,r,n,i){return t.$img(e,{...r.modifiers,width:n._cWidth?n._cWidth*i:void 0,height:n._cHeight?n._cHeight*i:void 0},r)}function no(t){var r;t.sort((n,i)=>n.screenMaxWidth-i.screenMaxWidth);let e=null;for(let n=t.length-1;n>=0;n--){const i=t[n];i.media===e&&t.splice(n,1),e=i.media}for(let n=0;n<t.length;n++)t[n].media=((r=t[n+1])==null?void 0:r.media)||""}function io(t){t.sort((r,n)=>r.width-n.width);let e=null;for(let r=t.length-1;r>=0;r--){const n=t[r];n.width===e&&t.splice(r,1),e=n.width}}const so="https://cdn.sanity.io/images",oo=Un({keyMap:{format:"fm",height:"h",quality:"q",width:"w",background:"bg",download:"dl",dpr:"dpr",sharpen:"sharp",orientation:"or","min-height":"min-h","max-height":"max-h","min-width":"min-w","max-width":"max-w",minHeight:"min-h",maxHeight:"max-h",minWidth:"min-w",maxWidth:"max-w",saturation:"sat"},valueMap:{format:{jpeg:"jpg"},fit:{cover:"crop",contain:"fill",fill:"scale",inside:"min",outside:"max"}},joinWith:"&",formatter:(t,e)=>String(e)==="true"?t:`${t}=${e}`}),ao=t=>{const e=t.match(/-(?<width>\d*)x(?<height>\d*)-(?<format>.*)$/);if(!e||!e.groups)return{width:void 0,height:void 0,format:void 0};const r=Number(e.groups.width),n=Number(e.groups.height);return{width:r,height:n,format:e.groups.format}},uo=(t,{modifiers:e={},projectId:r,dataset:n="production"}={})=>{const{height:i,width:s}=ao(t);if(e.crop&&typeof e.crop!="string"&&s&&i){const d=e.crop.left*s,f=e.crop.top*i,h=s-e.crop.right*s,m=i-e.crop.bottom*i;e.rect=[d,f,h-d,m-f].map(y=>y.toFixed(0)).join(","),delete e.crop}e.hotspot&&typeof e.hotspot!="string"&&(e["fp-x"]=e.hotspot.x,e["fp-y"]=e.hotspot.y,delete e.hotspot),(!e.format||e.format==="auto")&&(e.format==="auto"&&delete e.format,e.auto="format"),e.fit==="contain"&&!e.bg&&(e.bg="ffffff");const o=oo(e),a=t.split("-").slice(1),u=a.pop(),c=a.join("-")+"."+u+(o?"?"+o:"");return{url:ct(so,r,n,c)}},co=Object.freeze(Object.defineProperty({__proto__:null,getImage:uo},Symbol.toStringTag,{value:"Module"})),lo=Un({keyMap:{format:"f",fit:"fit",width:"w",height:"h",resize:"s",quality:"q",background:"b"},joinWith:"&",formatter:(t,e)=>Nr(t)+"_"+Nr(e)}),fo=(t,{modifiers:e={},baseURL:r}={},n)=>{e.width&&e.height&&(e.resize=`${e.width}x${e.height}`,delete e.width,delete e.height);const i=lo(e)||"_";return r||(r=ct(n.options.nuxt.baseURL,"/_ipx")),{url:ct(r,i,_s(t))}},ho=!0,po=!0,mo=Object.freeze(Object.defineProperty({__proto__:null,getImage:fo,supportsAlias:po,validateDomains:ho},Symbol.toStringTag,{value:"Module"}
2)),Nn={screens:{xs:320,sm:640,md:768,lg:1024,xl:1280,xxl:1536,"2xl":1536},presets:{},provider:"ipxStatic",domains:[],alias:{},densities:[1,2],format:["webp"],quality:65};Nn.providers={sanity:{provider:co,defaults:{projectId:"nema9bga"}},ipxStatic:{provider:mo,defaults:{}}};const Bn=()=>{const t=wr(),e=Gt();return e.$img||e._img||(e._img=Ks({...Nn,nuxt:{baseURL:t.app.baseURL},runtimeConfig:t}))};function yo(t){var e;(e=performance==null?void 0:performance.mark)==null||e.call(performance,"mark_feature_usage",{detail:{feature:t}})}const go={src:{type:String,required:!1},format:{type:String,required:!1},quality:{type:[Number,String],required:!1},background:{type:String,required:!1},fit:{type:String,required:!1},modifiers:{type:Object,required:!1},preset:{type:String,required:!1},provider:{type:String,required:!1},sizes:{type:[Object,String],required:!1},densities:{type:String,required:!1},preload:{type:[Boolean,Object],required:!1},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},alt:{type:String,required:!1},referrerpolicy:{type:String,required:!1},usemap:{type:String,required:!1},longdesc:{type:String,required:!1},ismap:{type:Boolean,required:!1},loading:{type:String,required:!1,validator:t=>["lazy","eager"].includes(t)},crossorigin:{type:[Boolean,String],required:!1,validator:t=>["anonymous","use-credentials","",!0,!1].includes(t)},decoding:{type:String,required:!1,validator:t=>["async","auto","sync"].includes(t)},nonce:{type:[String],required:!1}},vo=t=>{const e=ne(()=>({provider:t.provider,preset:t.preset})),r=ne(()=>({width:ae(t.width),height:ae(t.height),alt:t.alt,referrerpolicy:t.referrerpolicy,usemap:t.usemap,longdesc:t.longdesc,ismap:t.
2ismap,crossorigin:t.crossorigin===!0?"anonymous":t.crossorigin||void 0,loading:t.loading,decoding:t.decoding,nonce:t.nonce})),n=Bn(),i=ne(()=>({...t.modifiers,width:ae(t.width),height:ae(t.height),format:t.format,quality:t.quality||n.options.quality,background:t.background,fit:t.fit}));return{options:e,attrs:r,modifiers:i}},bo={...go,placeholder:{type:[Boolean,String,Number,Array],required:!1},placeholderClass:{type:String,required:!1},custom:{type:Boolean,required:!1}},wo=Re({__name:"NuxtImg",props:bo,emits:["load","error"],setup(t,{expose:e,emit:r}){e();const n=t,i=Is(),s=r,o=!1,a=Bn(),u=vo(n),c=Ge(!1),d=Ge(),f=ne(()=>a.getSizes(n.src,{...u.options.value,sizes:n.sizes,densities:n.densities,modifiers:{...u.modifiers.value,width:ae(n.width),height:ae(n.height)}})),h=ne(()=>{const w={...u.attrs.value,"data-nuxt-img":""};return(!n.placeholder||c.value)&&(w.sizes=f.value.sizes,w.srcset=f.value.srcset),w}),m=ne(()=>{let w=n.placeholder;if(w===""&&(w=!0),!w||c.value)return!1;if(typeof w=="string")return w;const C=Array.isArray(w)?w:typeof w=="number"?[w,w]:[10,10];return a(n.src,{...u.modifiers.value,width:C[0],height:C[1],quality:C[2]||50,blur:C[3]||3},u.options.value)}),y=ne(()=>n.sizes?f.value.src:a(n.src,u.modifiers.value,u.options.value)),p=ne(()=>m.value?m.value:y.value),I=Gt(),S=I.isHydrating;Pn(()=>{if(m.value||n.custom){const w=new Image;y.value&&(w.src=y.value),n.sizes&&(w.sizes=f.value.sizes||"",w.srcset=f.value.srcset),w.onload=C=>{c.value=!0,s("load",C)},w.onerror=C=>{s("error",C)},yo("nuxt-image");return}d.value&&(d.value.complete&&S&&(d.value.getAttribute("data-error")?s("error",new Event("error")):s("load",new Event("load"))),d.value.onload=w=>{s("load",w)},d.value.onerror=w=>{s("error",w)})});const x={props:n,attrs:i,emit:s,isServer:o,$img:a,_base:u,placeholderLoaded:c,imgEl:d,sizes:f,imgAttrs:h,placeholder:m,mainSrc:y,src:p,nuxtApp:I,initialLoad:S};return Object.defineProperty(x,"__isScriptSetup",{enumerable:!1,value:!0}),x}}),_o=["src"];function Io(t,e,r,n,i,s){return t.custom?Ss(t.$slots,"default",xs(Br({key:1},{...n.isServer?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...n.imgAttrs,...n.attrs},isLoaded:n.placeholderLoaded,src:n.src}))):(V(),J("img",Br({key:0,ref:"imgEl",class:n.placeholder&&!n.placeholderLoaded?t.placeholderClass:void 0},{...n.isServer?{onerror:"this.setAttribute('data-error', 1)"}:{},...n.imgAttrs,...n.attrs},{src:n.src}),null,16,_o))}const So=St(wo,[["render",Io],["__file","NuxtImg.vue"]]);var Pt={exports:{}},xo=Pt.exports,Qr;function Eo(){return Qr||(Qr=1,function(t,e){(function(r,n){t.exports=n()})(xo,function(){function r(){return r=Object.assign||function(g){for(var b=1;b<arguments.length;b++){var _=arguments[b];for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&(g[v]=_[v])}return g},r.apply(this,arguments)}function n(g,b){if(g){if(typeof g=="string")return i(g,b);var _=Object.prototype.toString.call(g).slice(8,-1);if(_==="Object"&&g.constructor&&(_=g.constructor.name),_==="Map"||_==="Set")return Array.from(g);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return i(g,b)}}function i(g,b){(b==null||b>g.length)&&(b=g.length);for(var _=0,v=new Array(b);_<b;_++)v[_]=g[_];return v}function s(g,b){var _=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(_)return(_=_.call(g)).next.bind(_);if(Array.isArray(g)||(_=n(g))||b){_&&(g=_);var v=0;return function(){return v>=g.length?{done:!0}:{done:!1,value:g[v++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 3In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function a(g){var b=g.split("-"),_=b[1],v=b[2],D=b[3];if(!_||!v||!D)throw new Error("Malformed asset _ref '"+g+`'. Expected an id like "`+o+'".');var $=v.split("x"),M=$[0],O=$[1],j=+M,q=+O,T=isFinite(j)&&isFinite(q);if(!T)throw new Error("Malformed asset _ref '"+g+`'. Expected an id like "`+o+'".');return{id:_,width:j,height:q,format:D}}var u=function(b){var _=b;return _?typeof _._ref=="string":!1},c=function(b){var _=b;return _?typeof _._id=="string":!1},d=function(b){var _=b;return _&&_.asset?typeof _.asset.url=="string":!1};function f(g){if(!g)return null;var b;if(typeof g=="string"&&h(g))b={asset:{_ref:m(g)}};else if(typeof g=="string")b={asset:{_ref:g}};else if(u(g))b={asset:g};else if(c(g))b={asset:{_ref:g._id||""}};else if(d(g))b={asset:{_ref:m(g.asset.url)}};else if(typeof g.asset=="object")b=r({},g);else return null;var _=g;return _.crop&&(b.crop=_.crop),_.hotspot&&(b.hotspot=_.hotspot),y(b)}function h(g){return/^https?:\/\//.test(""+g)}function m(g){var b=g.split("/").slice(-1);return("image-"+b[0]).replace(/\.([a-z]+)$/,"-$1")}function y(g){if(g.crop&&g.hotspot)return g;var b=r({},g);
3return b.crop||(b.crop={left:0,top:0,bottom:0,right:0}),b.hotspot||(b.hotspot={x:.5,y:.5,height:1,width:1}),b}var p=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"],["frame","frame"]];function I(g){var b=r({},g||{}),_=b.source;delete b.source;var v=f(_);if(!v)throw new Error("Unable to resolve image URL from source ("+JSON.stringify(_)+")");var D=v.asset._ref||v.asset._id||"",$=a(D),M=Math.round(v.crop.left*$.width),O=Math.round(v.crop.top*$.height),j={left:M,top:O,width:Math.round($.width-v.crop.right*$.width-M),height:Math.round($.height-v.crop.bottom*$.height-O)},q=v.hotspot.height*$.height/2,T=v.hotspot.width*$.width/2,K=v.hotspot.x*$.width,G=v.hotspot.y*$.height,Q={left:K-T,top:G-q,right:K+T,bottom:G+q};return b.rect||b.focalPoint||b.ignoreImageParams||b.crop||(b=r({},b,x({crop:j,hotspot:Q},b))),S(r({},b,{asset:$}))}function S(g){var b=(g.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),_=g.vanityName?"/"+g.vanityName:"",v=g.asset.id+"-"+g.asset.width+"x"+g.asset.height+"."+g.asset.format+_,D=b+"/images/"+g.projectId+"/"+g.dataset+"/"+v,$=[];if(g.rect){var M=g.rect,O=M.left,j=M.top,q=M.width,T=M.height,K=O!==0||j!==0||T!==g.asset.height||q!==g.asset.width;K&&$.push("rect="+O+","+j+","+q+","+T)}g.bg&&$.push("bg="+g.bg),g.focalPoint&&($.push("fp-x="+g.focalPoint.x),$.push("fp-y="+g.focalPoint.y));var G=[g.flipHorizontal&&"h",g.flipVertical&&"v"].filter(Boolean).join("");return G&&$.push("flip="+G),p.forEach(function(Q){var _e=Q[0],ie=Q[1];typeof g[_e]<"u"?$.push(ie+"="+encodeURIComponent(g[_e])):typeof g[ie]<"u"&&$.push(ie+"="+encodeURIComponent(g[ie]))}),$.length===0?D:D+"?"+$.join("&")}function x(g,b){var _,v=b.width,D=b.height;if(!(v&&D))return{width:v,height:D,rect:g.crop};var $=g.crop,M=g.hotspot,O=v/D,j=$.width/$.height;if(j>O){var q=Math.round($.height),T=Math.round(q*O),K=Math.max(0,Math.round($.top)),G=Math.round((M.right-M.left)/2+M.left),Q=Math.max(0,Math.round(G-T/2));Q<$.left?Q=$.left:Q+T>$.left+$.width&&(Q=$.left+$.width-T),_={left:Q,top:K,width:T,height:q}}else{var _e=$.width,ie=Math.round(_e/O),kt=Math.max(0,Math.round($.left)),nr=Math.round((M.bottom-M.top)/2+M.top),Ie=Math.max(0,Math.round(nr-ie/2));Ie<$.top?Ie=$.top:Ie+ie>$.top+$.height&&(Ie=$.top+$.height-ie),_={left:kt,top:Ie,width:_e,height:ie}}return{width:v,height:D,rect:_}}var w=["clip","crop","fill","fillmax","max","scale","min"],C=["top","bottom","left","right","center","focalpoint","entropy"],R=["format"];function W(g){return g&&"config"in g?typeof g.config=="function":!1}function nt(g){return g&&"clientConfig"in g?typeof g.clientConfig=="object":!1}function Pe(g){for(var b=p,_=s(b),v;!(v=_()).done;){var D=v.value,$=D[0],M=D[1];if(g===$||g===M)return $}return g}function qe(g){if(W(g)){var b=g.config(),_=b.apiHost,v=b.projectId,D=b.dataset,$=_||"https://api.sanity.io";return new it(null,{baseUrl:$.replace(/^https:\/\/api\./,"https://cdn."),projectId:v,dataset:D})}if(nt(g)){var M=g.clientConfig,O=M.apiHost,j=M.projectId,q=M.dataset,T=O||"https://api.sanity.io";return new it(null,{baseUrl:T.replace(/^https:\/\/api\./,"https://cdn."),projectId:j,dataset:q})}return new it(null,g||{})}var it=function(){function g(_,v){this.options=void 0,this.options=_?r({},_.options||{},v||{}):r({},v||{})}var b=g.prototype;return b.withOptions=function(v){var D=v.baseUrl||this.options.baseUrl,$={baseUrl:D};for(var M in v)if(v.hasOwnProperty(M)){var O=Pe(M);$[O]=v[M]}return new g(this,r({baseUrl:D},$))},b.image=function(v){return this.withOptions({source:v})},b.dataset=function(v){return this.withOptions({dataset:v})},b.projectId=function(v){return this.withOptions({projectId:v})},b.bg=function(v){return this.withOptions({bg:v})},b.dpr=function(v){return this.withOptions(v&&v!==1?{dpr:v}:{})},b.width=function(v){return this.withOptions({width:v})},b.height=function(v){return this.withOptions({height:v})},b.focalPoint=function(v,D){return this.withOptions({focalPoint:{x:v,y:D}})},b.maxWidth=function(v){return this.withOptions({maxWidth:v})},b.minWidth=function(v){return this.withOptions({minWidth:v})},b.maxHeight=function(v){return this.withOptions({maxHeight:v})},b.minHeight=function(v){return this.withOptions({minHeight:v})},b.size=function(v,D){return this.withOptions({width:v,height:D})},b.blur=function(v){return this.withOptions({blur:v})},b.sharpen=function(v){return this.withOptions({sharpen:v})},b.rect=function(v,D,$,M){return this.withOptions({rect:{left:v,top:D,width:$,height:M}})},b.format=function(v){return this.withOptions({format:v})},b.invert=function(v){return this.withOptions({invert:v})},b.orientation=function(v){return this.withOptions({orientation:v})},b.quality=function(v){return this.withOptions({quality:v})},b.forceDownload=function(v){return this.withOptions({download:v})},b.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},b.flipVertical=function(){return this.withOptions({flipVertical:!0})},b.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},b.fit=function(v){if(w.indexOf(v)===-1)throw new Error('Invalid fit mode "'+v+'"');return this.withOptions({fit:v})},b.crop=function(v){if(C.indexOf(v)===-1)throw new Error('Invalid crop mode "'+v+'"');return this.withOptions({crop:v})},b.saturation=function(v){return this.withOptions({saturation:v})},b.auto=function(v){if(R.indexOf(v)===-1)throw new Error('Invalid auto mode "'+v+'"');return this.withOptions({auto:v})},b.pad=function(v){return this.withOptions({pad:v})},b.vanityName=function(v){return this.withOptions({vanityName:v})},b.frame=function(v){if(v!==1)throw new Error('Invalid frame value "'+v+'"');return this.withOptions({frame:v})},b.url=function(){return I(this.options)},b.toString=function(){return this.url()},g}();return qe})}(Pt)),Pt.exports}var Co=Eo();const $o=Es(Co),zn=!(typeof navigator>"u")&&navigator.product==="ReactNative",Vn={timeout:zn?6e4:12e4},Oo=function(t){const e={...Vn,...typeof t=="string"?{url:t}:t};if(e.timeout=Wn(e.timeout),e.query){const{url:r,searchParams:n}=function(i){const s=i.indexOf("?");if(s===-1)return{url:i,searchParams:new URLSearchParams};const o=i.slice(0,s),a=i.slice(s+1);if(!zn)return{url:o,searchParams:new URLSearchParams(a)};if(typeof decodeURIComponent!="function")throw new Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");const u=new URLSearchParams;for(const c of a.split("&")){const[d,f]=c.split("=");d&&u.append(Jr(d),Jr(f||""))}return{url:o,searchParams:u}}(e.url);for(const[i,s]of Object.entries(e.query)){if(s!==void 0)if(Array.isArray(s))for(const a of s)n.append(i,a);else n.append(i,s);const o=n.toString();o&&(e.url=`${r}?${o}`)}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function Jr(t){return decodeURIComponent(t.replace(/\+/g," "))}function Wn(t){if(t===!1||t===0)return!1;if(t.connect||t.socket)return t;const e=Number(t);return isNaN(e)?Wn(Vn.timeout):{connect:e,socket:e}}const Ao=/^https?:\/\//i,ko=function(t){if(!Ao.test(t.url))throw new Error(`"${t.url}" is not a valid URL`)};function Hn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const jo=["request","response","progress","error","abort"],Yr=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];function Gn(t,e){const r=[],n=Yr.reduce((s,o)=>(s[o]=s[o]||[],s),{processOptions:[Oo],validateOptions:[ko]});function i(s){const o=jo.reduce((m,y)=>(m[y]=function(){const p=Object.create(null);let I=0;return{publish:function(S){for(const x in p)p[x](S)},subscribe:function(S){const x=I++;return p[x]=S,function(){delete p[x]}}}}(),m),{}),a=(m=>function(y,p,...I){const S=y==="onError";let x=p;for(let w=0;w<m[y].length&&(x=(0,m[y][w])(x,...I),!S||x);w++);return x})(n),u=a("processOptions",s);a("validateOptions",u);const c={options:u,channels:o,applyMiddleware:a};let d;const f=o.request.subscribe(m=>{d=e(m,(y,p)=>((I,S,x)=>{let w=I,C=S;if(!w)try{C=a("onResponse",S,x)}catch(R){C=null,w=R}w=w&&a("onError",w,x),w?o.error.publish(w):C&&o.response.publish(C)})(y,p,m))});o.abort.subscribe(()=>{f(),d&&d.abort()});const h=a("onReturn",o,c);return h===o&&o.request.publish(c),h}return i.use=function(s){if(!s)throw new Error("Tried to add middleware that resolved to fal
3sey value");if(typeof s=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(s.onReturn&&n.onReturn.length>0)throw new Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return Yr.forEach(o=>{s[o]&&n[o].push(s[o])}),r.push(s),i},i.clone=()=>Gn(r,e),t.forEach(i.use),i}var Xr,Kr,To=Hn(function(){if(Kr)return Xr;Kr=1;var t=function(r){return r.replace(/^\s+|\s+$/g,"")},e=function(r){return Object.prototype.toString.call(r)==="[object Array]"};return Xr=function(r){if(!r)return{};for(var n=Object.create(null),i=t(r).split(` 4`),s=0;s<i.length;s++){var o=i[s],a=o.indexOf(":"),u=t(o.slice(0,a)).toLowerCase(),c=t(o.slice(a+1));typeof n[u]>"u"?n[u]=c:e(n[u])?n[u].push(c):n[u]=[n[u],c]}return n}}()),lt,ft,Ye,dt,fe,ht,pt,Rn;let pr=(Rn=class{constructor(){E(this,"onabort");E(this,"onerror");E(this,"onreadystatechange");E(this,"ontimeout");E(this,"readyState",0);E(this,"response");E(this,"responseText","");E(this,"responseType","");E(this,"status");E(this,"statusText");E(this,"withCredentials");k(this,lt);k(this,ft);k(this,Ye);k(this,dt,{});k(this,fe);k(this,ht,{});k(this,pt)}open(e,r,n){var i;A(this,lt,e),A(this,ft,r),A(this,Ye,""),this.readyState=1,(i=this.onreadystatechange)==null||i.call(this),A(this,fe,void 0)}abort(){l(this,fe)&&l(this,fe).abort()}getAllResponseHeaders(){return l(this,Ye)}setRequestHeader(e,r){l(this,dt)[e]=r}setInit(e,r=!0){A(this,ht,e),A(this,pt,r)}send(e){const r=this.responseType!=="arraybuffer",n={...l(this,ht),method:l(this,lt),headers:l(this,dt),body:e};typeof AbortController=="function"&&l(this,pt)&&(A(this,fe,new AbortController),typeof EventTarget<"u"&&l(this,fe).signal instanceof EventTarget&&(n.signal=l(this,fe).signal)),typeof document<"u"&&(n.credentials=this.withCredentials?"include":"omit"),fetch(l(this,ft),n).then(i=>{var s;return i.headers.forEach((o,a)=>{A(this,Ye,l(this,Ye)+`${a}: ${o}\r 5`)}),this.status=i.status,this.statusText=i.statusText,this.readyState=3,(s=this.onreadystatechange)==null||s.call(this),r?i.text():i.arrayBuffer()}).then(i=>{var s;typeof i=="string"?this.responseText=i:this.response=i,this.readyState=4,(s=this.onreadystatechange)==null||s.call(this)}).catch(i=>{var s,o;i.name!=="AbortError"?(s=this.onerror)==null||s.call(this,i):(o=this.onabort)==null||o.call(this)})}},lt=new WeakMap,ft=new WeakMap,Ye=new WeakMap,dt=new WeakMap,fe=new WeakMap,ht=new WeakMap,pt=new WeakMap,Rn);const mr=typeof XMLHttpRequest=="function"?"xhr":"fetch",Ro=mr==="xhr"?XMLHttpRequest:pr,Po=(t,e)=>{const r=t.options,n=t.applyMiddleware("finalizeOptions",r),i={},s=t.applyMiddleware("interceptRequest",void 0,{adapter:mr,context:t});if(s){const p=setTimeout(e,0,null,s);return{abort:()=>clearTimeout(p)}}let o=new Ro;o instanceof pr&&typeof n.fetch=="object"&&o.setInit(n.fetch,n.useAbortSignal??!0);const a=n.headers,u=n.timeout;let c=!1,d=!1,f=!1;if(o.onerror=p=>{y(o instanceof pr?p instanceof Error?p:new Error(`Request error while attempting to reach is ${n.url}`,{cause:p}):new Error(`Request error while attempting to reach is ${n.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.ontimeout=p=>{y(new Error(`Request timeout while attempting to reach ${n.url}${p.lengthComputable?`(${p.loaded} of ${p.total} bytes transferred)`:""}`))},o.onabort=()=>{m(!0),c=!0},o.onreadystatechange=function(){u&&(m(),i.socket=setTimeout(()=>h("ESOCKETTIMEDOUT"),u.socket)),!c&&o&&o.readyState===4&&o.status!==0&&function(){if(!(c||d||f)){if(o.status===0)return void y(new Error("Unknown XHR error"));m(),d=!0,e(null,{body:o.response||(o.responseType===""||o.responseType==="text"?o.responseText:""),url:n.url,method:n.method,headers:To(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(n.method,n.url,!0),o.withCredentials=!!n.withCredentials,a&&o.setRequestHeader)for(const p in a)a.hasOwnProperty(p)&&o.setRequestHeader(p,a[p]);return n.rawBody&&(o.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:n,adapter:mr,request:o,context:t}),o.send(n.body||null),u&&(i.connect=setTimeout(()=>h("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,o&&o.abort()}};function h(p){f=!0,o.abort();const I=new Error(p==="ESOCKETTIMEDOUT"?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);I.code=p,t.channels.error.publish(I)}function m(p){(p||c||o&&o.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function y(p){if(d)return;m(!0),d=!0,o=null;const I=p||new Error(`Network error while attempting to reach ${n.url}`);I.isNetworkError=!0,I.request=n,e(I)}},qo=(t=[],e=Po)=>Gn(t,e);var Mo={},Zr,en,tn,rn,nn,ar={exports:{}};nn||(nn=1,function(t,e){e.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const i="color: "+this.color;n.splice(1,0,i,"color: inherit");let s=0,o=0;n[0].replace(/%[a-zA-Z%]/g,a=>{a!=="%%"&&(s++,a==="%c"&&(o=s))}),n.splice(o,0,i)},e.save=function(n){try{n?e.storage.setItem("debug",n):e.storage.removeItem("debug")}catch{}},e.load=function(){let n;try{n=e.storage.getItem("debug")||e.storage.getItem("DEBUG")}catch{}return!n&&typeof process<"u"&&"env"in process&&(n=Mo.DEBUG),n},e.useColors=function(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;
5if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let n;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(n=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(n[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},e.storage=function(){try{return localStorage}catch{}}(),e.destroy=(()=>{let n=!1;return()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.log=console.debug||console.log||(()=>{}),t.exports=(rn?tn:(rn=1,tn=function(n){function i(a){let u,c,d,f=null;function h(...m){if(!h.enabled)return;const y=h,p=Number(new Date),I=p-(u||p);y.diff=I,y.prev=u,y.curr=p,u=p,m[0]=i.coerce(m[0]),typeof m[0]!="string"&&m.unshift("%O");let S=0;m[0]=m[0].replace(/%([a-zA-Z%])/g,(x,w)=>{if(x==="%%")return"%";S++;const C=i.formatters[w];if(typeof C=="function"){const R=m[S];x=C.call(y,R),m.splice(S,1),S--}return x}),i.formatArgs.call(y,m),(y.log||i.log).apply(y,m)}return h.namespace=a,h.useColors=i.useColors(),h.color=i.selectColor(a),h.extend=s,h.destroy=i.destroy,Object.defineProperty(h,"enabled",{enumerable:!0,configurable:!1,get:()=>f!==null?f:(c!==i.namespaces&&(c=i.namespaces,d=i.enabled(a)),d),set:m=>{f=m}}),typeof i.init=="function"&&i.init(h),h}function s(a,u){const c=i(this.namespace+(typeof u>"u"?":":u)+a);return c.log=this.log,c}function o(a,u){let c=0,d=0,f=-1,h=0;for(;c<a.length;)if(d<u.length&&(u[d]===a[c]||u[d]==="*"))u[d]==="*"?(f=d,h=c,d++):(c++,d++);else{if(f===-1)return!1;d=f+1,h++,c=h}for(;d<u.length&&u[d]==="*";)d++;return d===u.length}return i.debug=i,i.default=i,i.coerce=function(a){return a instanceof Error?a.stack||a.message:a},i.disable=function(){const a=[...i.names,...i.skips.map(u=>"-"+u)].join(",");return i.enable(""),a},i.enable=function(a){i.save(a),i.namespaces=a,i.names=[],i.skips=[];const u=(typeof a=="string"?a:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const c of u)c[0]==="-"?i.skips.push(c.slice(1)):i.names.push(c)},i.enabled=function(a){for(const u of i.skips)if(o(a,u))return!1;for(const u of i.names)if(o(a,u))return!0;return!1},i.humanize=function(){if(en)return Zr;en=1;var a=1e3,u=60*a,c=60*u,d=24*c,f=7*d;function h(m,y,p,I){var S=y>=1.5*p;return Math.round(m/p)+" "+I+(S?"s":"")}return Zr=function(m,y){y=y||{};var p,I,S=typeof m;if(S==="string"&&m.length>0)return function(x){if(!((x=String(x)).length>100)){var w=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(x);if(w){var C=parseFloat(w[1]);switch((w[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*C;case"weeks":case"week":case"w":return C*f;case"days":case"day":case"d":return C*d;case"hours":case"hour":case"hrs":case"hr":case"h":return C*c;case"minutes":case"minute":case"mins":case"min":case"m":return C*u;case"seconds":case"second":case"secs":case"sec":case"s":return C*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return C;default:return}}}}(m);if(S==="number"&&isFinite(m))return y.long?(p=m,(I=Math.abs(p))>=d?h(p,I,d,"day"):I>=c?h(p,I,c,"hour"):I>=u?h(p,I,u,"minute"):I>=a?h(p,I,a,"second"):p+" ms"):function(x){var w=Math.abs(x);return w>=d?Math.round(x/d)+"d":w>=c?Math.round(x/c)+"h":w>=u?Math.round(x/u)+"m":w>=a?Math.round(x/a)+"s":x+"ms"}(m);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(m))}}(),i.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}
5,Object.keys(n).forEach(a=>{i[a]=n[a]}),i.names=[],i.skips=[],i.formatters={},i.selectColor=function(a){let u=0;for(let c=0;c<a.length;c++)u=(u<<5)-u+a.charCodeAt(c),u|=0;return i.colors[Math.abs(u)%i.colors.length]},i.enable(i.load()),i}))(e);const{formatters:r}=t.exports;r.j=function(n){try{return JSON.stringify(n)}catch(i){return"[UnexpectedJSONParseError]: "+i.message}}}(ar,ar.exports)),ar.exports;const Do=typeof Buffer>"u"?()=>!1:t=>Buffer.isBuffer(t);function sn(t){return Object.prototype.toString.call(t)==="[object Object]"}function Fo(t){if(sn(t)===!1)return!1;const e=t.constructor;if(e===void 0)return!0;const r=e.prototype;return!(sn(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)}const Uo=["boolean","string","number"];function Lo(){return{processOptions:t=>{const e=t.body;return!e||typeof e.pipe=="function"||Do(e)||Uo.indexOf(typeof e)===-1&&!Array.isArray(e)&&!Fo(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}}}function No(t){return{onResponse:r=>{const n=r.headers["content-type"]||"",i=t&&t.force||n.indexOf("application/json")!==-1;return r.body&&n&&i?Object.assign({},r,{body:e(r.body)}):r},processOptions:r=>Object.assign({},r,{headers:Object.assign({Accept:"application/json"},r.headers)})};function e(r){try{return JSON.parse(r)}catch(n){throw n.message=`Failed to parsed response body as JSON: ${n.message}`,n}}}let ot={};typeof globalThis<"u"?ot=globalThis:typeof window<"u"?ot=window:typeof global<"u"?ot=global:typeof self<"u"&&(ot=self);var Bo=ot;function zo(t={}){const e=t.implementation||Bo.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new e(i=>(r.error.subscribe(s=>i.error(s)),r.progress.subscribe(s=>i.next(Object.assign({type:"progress"},s))),r.response.subscribe(s=>{i.next(Object.assign({type:"response"},s)),i.complete()}),r.request.publish(n),()=>r.abort.publish()))}}function Vo(){return{onRequest:t=>{if(t.adapter!=="xhr")return;const e=t.request,r=t.context;function n(i){return s=>{const o=s.lengthComputable?s.loaded/s.total*100:-1;r.channels.progress.publish({stage:i,percent:o,total:s.total,loaded:s.loaded,lengthComputable:s.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}}}var Qn=(t,e,r)=>(r.method==="GET"||r.method==="HEAD")&&(t.isNetworkError||!1);function Wo(t){return 100*Math.pow(2,t)+100*Math.random()}const _r=(t={})=>(e=>{const r=e.maxRetries||5,n=e.retryDelay||Wo,i=e.shouldRetry;return{onError:(s,o)=>{const a=o.options,u=a.maxRetries||r,c=a.retryDelay||n,d=a.shouldRetry||i,f=a.attemptNumber||0;if((h=a.body)!==null&&typeof h=="object"&&typeof h.pipe=="function"||!d(s,f,a)||f>=u)return s;var h;const m=Object.assign({},o,{options:Object.assign({},a,{attemptNumber:f+1})});return setTimeout(()=>o.channels.request.publish(m),c(f)),null}}})({shouldRetry:Qn,...t});_r.shouldRetry=Qn;function N(t){return typeof t=="function"}function Ir(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var ur=Ir(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription: 6`+r.map(function(n,i){return i+1+") "+n.toString()}).join(` 7 `):"",this.name="UnsubscriptionError",this.errors=r}});function Ft(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var xt=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,n,i,s;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=Mt(o),u=a.next();!u.done;u=a.next()){var c=u.value;c.remove(this)}}catch(p){e={error:p}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(e)throw e.error}}else o.remove(this);var d=this.initialTeardown;if(N(d))try{d()}catch(p){s=p instanceof ur?p.errors:[p]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=Mt(f),m=h.next();!m.done;m=h.next()){var y=m.value;try{on(y)}
vendor: 4,856 bytes, line 7
7catch(p){s=s??[],p instanceof ur?s=ve(ve([],be(s)),be(p.errors)):s.push(p)}}}catch(p){n={error:p}}finally{try{m&&!m.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new ur(s)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)on(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&Ft(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Ft(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Jn=xt.EMPTY;function Yn(t){return t instanceof xt||t&&"closed"in t&&N(t.remove)&&N(t.add)&&N(t.unsubscribe)}function on(t){N(t)?t():t.unsubscribe()}var Ho={Promise:void 0},Go={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,ve([t,e],be(r)))},clearTimeout:function(t){return clearTimeout(t)},delegate:void 0};function Xn(t){Go.setTimeout(function(){throw t})}function an(){}function qt(t){t()}var Sr=function(t){we(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Yn(r)&&r.add(n)):n.destination=Yo,n}return e.create=function(r,n,i){return new Ze(r,n,i)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(xt),Qo=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){Tt(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Tt(n)}else Tt(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Tt(r)}},t}(),Ze=function(t){we(e,t);function e(r,n,i){var s=t.call(this)||this,o;return N(r)||!r?o={next:r??void 0,error:n??void 0,complete:i??void 0}:o=r,s.destination=new Qo(o),s}return e}(Sr);function Tt(t){Xn(t)}function Jo(t){throw t}var Yo={closed:!0,next:an,error:Jo,complete:an},xr=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Jt(t){return t}function Xo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Kn(t)}function Kn(t){return t.length===0?Jt:t.length===1?t[0]:function(r){return t.reduce(function(n,i){return i(n)},r)}}var z=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var i=this,s=Zo(e)?e:new Ze(e,r,n);return qt(function(){var o=i,a=o.operator,u=o.source;s.add(a?a.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=un(r),new r(function(i,s){var o=new Ze({next:function(a){try{e(a)}catch(u){s(u),o.unsubscribe()}},error:s,complete:i});n.subscribe(o)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[xr]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Kn(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=un(e),new e(function(n,i){var s;r.subscribe(function(o){return s=o},function(o){return i(o)},function(){return n(s)})})},t.create=function(e){return new t(e)},t}();function un(t){var e;return(e=t??Ho.Promise)!==null&&e!==void 0?e:Promise}function Ko(t){return t&&N(t.next)&&N(t.error)&&N(t.complete)}function Zo(t){return t&&t instanceof Sr||Ko(t)&&Yn(t)}function ea(t){return N(t==null?void 0:t.lift)}function ce(t){return function(e){if(ea(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Te(t,e,r,n,i){return new ta(t,e,r,n,i)}var ta=function(t){we(e,t);function e(r,n,i,s,o,a){var u=t.call(this,r)||this;return u.onFinalize=o,u.shouldUnsubscribe=a,u._next=n?function(c){try{n(c)}catch(d){r.error(d)}}
7:t.prototype._next,u._error=s?function(c){try{s(c)}catch(d){r.error(d)}finally{this.unsubscribe()}}:t.prototype._error,u._complete=i?function(){try{i()}catch(c){r.error(c)}finally{this.unsubscribe()}}:t.prototype._complete,u}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Sr),ra=Ir(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Er=function(t){we(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new cn(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new ra},e.prototype.next=function(r){var n=this;qt(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=Mt(n.currentObservers),a=o.next();!a.done;a=o.next()){var u=a.value;u.next(r)}}catch(c){i={error:c}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(i)throw i.error}}}})},e.prototype.error=function(r){var n=this;qt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},e.prototype.complete=function(){var r=this;qt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,o=i.isStopped,a=i.observers;return s||o?Jn:(this.currentObservers=null,a.push(r),new xt(function(){n.currentObservers=null,Ft(a,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,o=n.isStopped;i?r.error(s):o&&r.complete()},e.prototype.asObservable=function(){var r=new z;return r.source=this,r},e.create=function(r,n){return new cn(r,n)},e}(z),cn=function(t){we(e,t);function e(r,n){var i=t.call(this)||this;return i.destination=r,i.source=n,i}return e.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},e.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Jn},e}(Er),Cr={now:function(){return(Cr.delegate||Date).now()},delegate:void 0},na=function(t){we(e,t);function e(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=Cr);var s=t.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return e.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,o=n._infiniteTimeWindow,a=n._timestampProvider,u=n._windowTime;i||(s.push(r),!o&&s.push(a.now()+u)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,o=i._buffer,a=o.slice(),u=0;u<a.length&&!r.closed;u+=s?1:2)r.next(a[u]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,o=r._infiniteTimeWindow,a=(o?1:2)*n;if(n<1/0&&a<s.length&&s.splice(0,s.length-a),!o){for(var u=i.now(),c=0,d=1;d<s.length&&s[d]<=u;d+=2)c=d;c&&s.splice(0,c+1)}},e}(Er),ia=function(t){we(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(xt),ln={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setInterval.apply(void 0,ve([t,e],be(r)))},clearInterval:function(t){return clearInterval(t)},delegate:void 0},sa=function(t){we(e,t);function e(r,n){var i=t.call(this,r,n)||this;
vendor: 4,850 bytes, line 7
7return i.scheduler=r,i.work=n,i.pending=!1,i}return e.prototype.schedule=function(r,n){var i;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var s=this.id,o=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(o,s,n)),this.pending=!0,this.delay=n,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(o,this.id,n),this},e.prototype.requestAsyncId=function(r,n,i){return i===void 0&&(i=0),ln.setInterval(r.flush.bind(r,this),i)},e.prototype.recycleAsyncId=function(r,n,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return n;n!=null&&ln.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(r,n);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var i=!1,s;try{this.work(r)}catch(o){i=!0,s=o||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var r=this,n=r.id,i=r.scheduler,s=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Ft(s,this),n!=null&&(this.id=this.recycleAsyncId(i,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(ia),fn=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Cr.now,t}(),oa=function(t){we(e,t);function e(r,n){n===void 0&&(n=fn.now);var i=t.call(this,r,n)||this;return i.actions=[],i._active=!1,i}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var i;this._active=!0;do if(i=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,i){for(;r=n.shift();)r.unsubscribe();throw i}},e}(fn),aa=new oa(sa),ua=aa,Zn=new z(function(t){return t.complete()});function ca(t){return t&&N(t.schedule)}function $r(t){return t[t.length-1]}function la(t){return N($r(t))?t.pop():void 0}function Or(t){return ca($r(t))?t.pop():void 0}function fa(t,e){return typeof $r(t)=="number"?t.pop():e}var ei=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function ti(t){return N(t==null?void 0:t.then)}function ri(t){return N(t[xr])}function ni(t){return Symbol.asyncIterator&&N(t==null?void 0:t[Symbol.asyncIterator])}function ii(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function da(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var si=da();function oi(t){return N(t==null?void 0:t[si])}function ai(t){return Cs(this,arguments,function(){var r,n,i,s;return qn(this,function(o){switch(o.label){case 0:r=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,ir(r.read())];case 3:return n=o.sent(),i=n.value,s=n.done,s?[4,ir(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,ir(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function ui(t){return N(t==null?void 0:t.getReader)}function le(t){if(t instanceof z)return t;if(t!=null){if(ri(t))return ha(t);if(ei(t))return pa(t);if(ti(t))return ma(t);if(ni(t))return ci(t);if(oi(t))return ya(t);if(ui(t))return ga(t)}throw ii(t)}function ha(t){return new z(function(e){var r=t[xr]();if(N(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function pa(t){return new z(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function ma(t){return new z(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Xn)})}function ya(t){return new z(function(e){var r,n;try{for(var i=Mt(t),s=i.next();!s.done;s=i.next()){var o=s.value;if(e.next(o),e.closed)return}}catch(a){r={error:a}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}e.complete()})}function ci(t){return new z(function(e){va(t,e).catch(function(r){return e.error(r)})})}function ga(t){return ci(ai(t))}function va(t,e){var r,n,i,s;return $s(this,void 0,void 0,function(){var o,a;return qn(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=Os(t),u.label=1;case 1:return[4,r.next()];case 2:if(n=u.sent(),!!n.done)return[3,4];if(o=n.value,e.next(o),e.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=u.sent(),i={error:a},[3,11];case 6:return u.trys.push([6,,9,10]),n&&!n.done&&(s=r.return)?[4,s.call(r)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];
7case 10:return[7];case 11:return e.complete(),[2]}})})}function Ne(t,e,r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var s=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(s),!i)return s}function li(t,e){return e===void 0&&(e=0),ce(function(r,n){r.subscribe(Te(n,function(i){return Ne(n,t,function(){return n.next(i)},e)},function(){return Ne(n,t,function(){return n.complete()},e)},function(i){return Ne(n,t,function(){return n.error(i)},e)}))})}function fi(t,e){return e===void 0&&(e=0),ce(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function ba(t,e){return le(t).pipe(fi(e),li(e))}function wa(t,e){return le(t).pipe(fi(e),li(e))}function _a(t,e){return new z(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function Ia(t,e){return new z(function(r){var n;return Ne(r,e,function(){n=t[si](),Ne(r,e,function(){var i,s,o;try{i=n.next(),s=i.value,o=i.done}catch(a){r.error(a);return}o?r.complete():r.next(s)},0,!0)}),function(){return N(n==null?void 0:n.return)&&n.return()}})}function di(t,e){if(!t)throw new Error("Iterable cannot be null");return new z(function(r){Ne(r,e,function(){var n=t[Symbol.asyncIterator]();Ne(r,e,function(){n.next().then(function(i){i.done?r.complete():r.next(i.value)})},0,!0)})})}function Sa(t,e){return di(ai(t),e)}function xa(t,e){if(t!=null){if(ri(t))return ba(t,e);if(ei(t))return _a(t,e);if(ti(t))return wa(t,e);if(ni(t))return di(t,e);if(oi(t))return Ia(t,e);if(ui(t))return Sa(t,e)}throw ii(t)}function Et(t,e){return e?xa(t,e):le(t)}function Yt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Or(t);return Et(t,r)}function hi(t,e){var r=N(t)?t:function(){return t},n=function(i){return i.error(r())};return new z(n)}function Ea(t){return!!t&&(t instanceof z||N(t.lift)&&N(t.subscribe))}var pi=Ir(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function P(t,e){return new Promise(function(r,n){var i=!1,s;t.subscribe({next:function(o){s=o,i=!0},error:n,complete:function(){i?r(s):n(new pi)}})})}function dn(t,e){return new Promise(function(r,n){var i=new Ze({next:function(s){r(s),i.unsubscribe()},error:n,complete:function(){n(new pi)}});t.subscribe(i)})}function Ca(t){return t instanceof Date&&!isNaN(t)}function Y(t,e){return ce(function(r,n){var i=0;r.subscribe(Te(n,function(s){n.next(t.call(e,s,i++))}))})}var $a=Array.isArray;function Oa(t,e){return $a(e)?t.apply(void 0,ve([],be(e))):t(e)}function Aa(t){return Y(function(e){return Oa(t,e)})}function ka(t,e,r){return r===void 0&&(r=Jt),function(n){hn(e,function(){for(var i=t.length,s=new Array(i),o=i,a=i,u=function(d){hn(e,function(){var f=Et(t[d],e),h=!1;f.subscribe(Te(n,function(m){s[d]=m,h||(h=!0,a--),a||n.next(r(s.slice()))},function(){--o||n.complete()}))},n)},c=0;c<i;c++)u(c)})}}function hn(t,e,r){e()}function ja(t,e,r,n,i,s,o,a){var u=[],c=0,d=0,f=!1,h=function(){f&&!u.length&&!c&&e.complete()},m=function(p){return c<n?y(p):u.push(p)},y=function(p){c++;var I=!1;le(r(p,d++)).subscribe(Te(e,function(S){e.next(S)},function(){I=!0},void 0,function(){if(I)try{c--;for(var S=function(){var x=u.shift();o||y(x)};u.length&&c<n;)S();h()}catch(x){e.error(x)}}))};return t.subscribe(Te(e,m,function(){f=!0,h()})),function(){}}function Ct(t,e,r){return r===void 0&&(r=1/0),N(e)?Ct(function(n,i){return Y(function(s,o){return e(n,s,i,o)})(le(t(n,i)))},r):(typeof e=="number"&&(r=e),ce(function(n,i){return ja(n,i,t,r)}))}function mi(t){return t===void 0&&(t=1/0),Ct(Jt,t)}function Ta(){return mi(1)}function yi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Ta()(Et(t,Or(t)))}function gi(t){return new z(function(e){le(t()).subscribe(e)})}function Ra(t,e,r){return r===void 0&&(r=ua),new z(function(n){var i=Ca(t)?+t-r.now():t;i<0&&(i=0);var s=0;return r.schedule(function(){n.closed||(n.next(s++),n.complete())},i)})}function Pa(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=Or(t),n=fa(t,1/0),i=t;return i.length?i.length===1?le(i[0]):mi(n)(Et(i,r)):Zn}var qa=Array.isArray;function Ma(t){return t.length===1&&qa(t[0])?t[0]:t}function rt(t,e){return ce(function(r,n){var i=0;r.subscribe(Te(n,function(s){return t.call(e,s,i++)&&n.next(s)}))})}function Ar(t){return ce(function(e,r){var n=null,i=!1,s;n=e.subscribe(Te(r,void 0,void 0,function(o){s=le(t(o,Ar(t)(e))),n?(n.unsubscribe(),n=null,s.subscribe(r)):i=!0})),i&&(n.unsubscribe(),n=null,s.subscribe(r))})}function vi(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=la(t);return r?Xo(vi.apply(void 0,ve([],be(t))),Aa(r)):ce(function(n,i){ka(ve([n],be(Ma(t))))(i)})}function Da(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return vi.apply(void 0,ve([],be(t)))}function bi(t){return ce(function(e,r){try{e.subscribe(r)}finally{r.add(t)}})}function wi(t){t===void 0&&(t={});var e=t.connector,r=e===void 0?function(){return new Er}:e,n=t.resetOnError,i=n===void 0?!0:n,s=t.resetOnComplete,o=s===void 0?!0:s,a=t.resetOnRefCountZero,u=a===void 0?!0:a;return function(c){var d,f,h,m=0,y=!1,p=!1,I=function(){f==null||f.unsubscribe(),f=void 0},S=function(){I(),d=h=void 0,y=p=!1},x=function(){var w=d;S(),w==null||w.unsubscribe()};return ce(function(w,C){m++,!p&&!y&&I();var R=h=h??r();C.add(function(){m--,m===0&&!p&&!y&&(f=cr(x,u))}),R.subscribe(C),!d&&m>
70&&(d=new Ze({next:function(W){return R.next(W)},error:function(W){p=!0,I(),f=cr(S,i,W),R.error(W)},complete:function(){y=!0,I(),f=cr(S,o),R.complete()}}),le(w).subscribe(d))})(c)}}function cr(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(e===!0){t();return}if(e!==!1){var i=new Ze({next:function(){i.unsubscribe(),t()}});return le(e.apply(void 0,ve([],be(r)))).subscribe(i)}}function Fa(t,e,r){var n,i=!1;return n=t,wi({connector:function(){return new na(n,e,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:i})}function Ua(t,e,r){var n=N(t)||e||r?{next:t,error:e,complete:r}:t;return n?ce(function(i,s){var o;(o=n.subscribe)===null||o===void 0||o.call(n);var a=!0;i.subscribe(Te(s,function(u){var c;(c=n.next)===null||c===void 0||c.call(n,u),s.next(u)},function(){var u;a=!1,(u=n.complete)===null||u===void 0||u.call(n),s.complete()},function(u){var c;a=!1,(c=n.error)===null||c===void 0||c.call(n,u),s.error(u)},function(){var u,c;a&&((u=n.unsubscribe)===null||u===void 0||u.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)}))}):Jt}function _i(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}var Ii={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},kr={0:8203,1:8204,2:8205,3:65279},La=new Array(4).fill(String.fromCodePoint(kr[0])).join("");function Na(t){let e=JSON.stringify(t);return`${La}${Array.from(e).map(r=>{let n=r.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${e} on character ${r} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(i=>String.fromCodePoint(kr[i])).join("")}).join("")}`}function Ba(t){return!Number.isNaN(Number(t))||/[a-z]/i.test(t)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(t)?!1:!!Date.parse(t)}function za(t){try{new URL(t,t.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function ql(t,e,r="auto"){return r===!0||r==="auto"&&(Ba(t)||za(t))?t:`${t}${Na(e)}`}Object.fromEntries(Object.entries(kr).map(t=>t.reverse()));Object.fromEntries(Object.entries(Ii).map(t=>t.reverse()));var Va=`${Object.values(Ii).map(t=>`\\u{${t.toString(16)}}`).join("")}`,pn=new RegExp(`[${Va}]{4,}`,"gu");function Wa(t){var e;return{cleaned:t.replace(pn,""),encoded:((e=t.match(pn))==null?void 0:e[0])||""}}function Ha(t){return t&&JSON.parse(Wa(JSON.stringify(t)).cleaned)}function Ga(t){return Ha(t)}const Qa="drafts",Ja="versions",et=".",Ut=`${Qa}${et}`,Si=`${Ja}${et}`;function Xt(t){return t.startsWith(Ut)}function Kt(t){return t.startsWith(Si)}function Ya(t){if(Kt(t)){const e=er(t);return Ut+e}return Xt(t)?t:Ut+t}function Zt(t,e){if(e==="drafts"||e==="published")throw new Error('Version can not be "published" or "drafts"');return`${Si}${e}${et}${er(t)}`}function xi(t){if(!Kt(t))return;const[e,r,...n]=t.split(et);return r}function er(t){return Kt(t)?t.split(et).slice(2).join(et):Xt(t)?t.slice(Ut.length):t}let Xa=t=>crypto.getRandomValues(new Uint8Array(t)),Ka=(t,e,r)=>{let n=(2<<Math.log(t.length-1)/Math.LN2)-1,i=-~(1.6*n*e/t.length);return(s=e)=>{let o="";for(;;){let a=r(i),u=i|0;for(;u--;)if(o+=t[a[u]&n]||"",o.length===s)return o}}},Za=(t,e=21)=>Ka(t,e,Xa);const mn=/\r\n|[\n\r\u2028\u2029]/;function eu(t,e,r){const n=t.split(mn),i={start:yn(e.start,n),end:e.end?yn(e.end,n):void 0},{start:s,end:o,markerLines:a}=tu(i,n),u=`${o}`.length;return t.split(mn,o).slice(s,o).map((c,d)=>{const f=s+1+d,h=` ${` ${f}`.slice(-u)} |`,m=a[f],y=!a[f+1];if(!m)return` ${h}${c.length>0?` ${c}`:""}`;let p="";if(Array.isArray(m)){const I=c.slice(0,Math.max(m[0]-1,0)).replace(/[^\t]/g," "),S=m[1]||1;p=[` 8 `,h.replace(/\d/g," ")," ",I,"^".repeat(S)].join(""),y&&r&&(p+=" "+r)}return[">",h,c.length>0?` ${c}`:"",p].join("")}).join(` 9`)}function tu(t,e){const r={...t.start},n={...r,...t.end},i=2,s=3,o=r.line??-1,a=r.column??0,u=n.line,c=n.column;let d=Math.max(o-(i+1),0),f=Math.min(e.length,u+s);o===-1&&(d=0),u===-1&&(f=e.length);const h=u-o,m={};if(h)for(let y=0;y<=h;y++){const p=y+o;if(!a)m[p]=!0;else if(y===0){const I=e[p-1].length;m[p]=[a,I-a+1]}else if(y===h)m[p]=[0,c];else{const I=e[p-y].length;m[p]=[0,I]}}else a===c?a?m[o]=[a,0]:m[o]=!0:m[o]=[a,c-a];return{start:d,end:f,markerLines:m}}function yn(t,e){var n;let r=0;for(let i=0;i<e.length;i++){const s=e[i].length+1;if(r+s>t)return{line:i+1,column:t-r};r+=s}return{line:e.length,column:((n=e[e.length-1])==null?void 0:n.length)??0}}const lr=5;
9class ru extends Error{constructor(r,n){const i=Ei(r,n);super(i.message);E(this,"response");E(this,"statusCode",400);E(this,"responseBody");E(this,"details");Object.assign(this,i)}}class nu extends Error{constructor(r){const n=Ei(r);super(n.message);E(this,"response");E(this,"statusCode",500);E(this,"responseBody");E(this,"details");Object.assign(this,n)}}function Ei(t,e){var s,o;const r=t.body,n={response:t,statusCode:t.statusCode,responseBody:ou(r,t),message:"",details:void 0};if(!_i(r))return n.message=fr(t,r),n;const i=r.error;if(typeof i=="string"&&typeof r.message=="string")return n.message=`${i} - ${r.message}`,n;if(typeof i!="object"||i===null)return typeof i=="string"?n.message=i:typeof r.message=="string"?n.message=r.message:n.message=fr(t,r),n;if(iu(i)||su(i)){const a=i.items||[],u=a.slice(0,lr).map(d=>{var f;return(f=d.error)==null?void 0:f.description}).filter(Boolean);let c=u.length?`: 10- ${u.join(` 11- `)}`:"";return a.length>lr&&(c+=` 12...and ${a.length-lr} more`),n.message=`${i.description}${c}`,n.details=r.error,n}if(Ci(i)){const a=(o=(s=e==null?void 0:e.options)==null?void 0:s.query)==null?void 0:o.tag;return n.message=$i(i,a),n.details=r.error,n}return"description"in i&&typeof i.description=="string"?(n.message=i.description,n.details=i,n):(n.message=fr(t,r),n)}function iu(t){return"type"in t&&t.type==="mutationError"&&"description"in t&&typeof t.description=="string"}function su(t){return"type"in t&&t.type==="actionError"&&"description"in t&&typeof t.description=="string"}function Ci(t){return _i(t)&&t.type==="queryParseError"&&typeof t.query=="string"&&typeof t.start=="number"&&typeof t.end=="number"}function $i(t,e){const{query:r,start:n,end:i,description:s}=t;if(!r||typeof n>"u")return`GROQ query parse error: ${s}`;const o=e?` 13 14Tag: ${e}`:"";return`GROQ query parse error: 15${eu(r,{start:n,end:i},s)}${o}`}function fr(t,e){const r=typeof e=="string"?` (${au(e,100)})`:"",n=t.statusMessage?` ${t.statusMessage}`:"";return`${t.method}-request to ${t.url} resulted in HTTP ${t.statusCode}${n}${r}`}function ou(t,e){return(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(t,null,2):t}function au(t,e){return t.length>e?`${t.slice(0,e)}…`:t}class uu extends Error{constructor({projectId:r}){super("CorsOriginError");E(this,"projectId");E(this,"addOriginUrl");this.name="CorsOriginError",this.projectId=r;const n=new URL(`https://sanity.io/manage/project/${r}/api`);if(typeof location<"u"){const{origin:i}=location;n.searchParams.set("cors","add"),n.searchParams.set("origin",i),this.addOriginUrl=n,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${n}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${n}`}}const cu={onResponse:(t,e)=>{if(t.statusCode>=500)throw new nu(t);if(t.statusCode>=400)throw new ru(t,e);return t}};function lu(t={}){const e={},r=n=>t.ignoreWarnings===void 0?!1:(Array.isArray(t.ignoreWarnings)?t.ignoreWarnings:[t.ignoreWarnings]).some(i=>typeof i=="string"?n.includes(i):i instanceof RegExp?i.test(n):!1);return{onResponse:n=>{const i=n.headers["x-sanity-warning"],s=Array.isArray(i)?i:[i];for(const o of s)!o||e[o]||r(o)||(e[o]=!0,console.warn(o));return n}}}function gn(t,e={}){return qo([_r({shouldRetry:fu}),...t,lu(e),Lo(),No(),Vo(),cu,zo({implementation:z})])}function fu(t,e,r){if(r.maxRetries===0)return!1;const n=r.method==="GET"||r.method==="HEAD",i=(r.uri||r.url).startsWith("/data/query"),s=t.response&&(t.response.statusCode===429||t.response.statusCode===502||t.response.statusCode===503);return(n||i)&&s?!0:_r.shouldRetry(t,e,r)}const du="https://www.sanity.io/help/";function jr(t){return du+t}const vn=["image","file"],bn=["before","after","replace"],Oi=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},hu=t=>{if(!/^[-a-z0-9]+$/i.test(t))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},pu=t=>{if(vn.indexOf(t)===-1)throw new Error(`Invalid asset type: ${t}. Must be one of ${vn.join(", ")}`)},at=(t,e)=>{if(e===null||typeof e!="object"||Array.isArray(e))throw new Error(`${t}() takes an object of properties`)},Ai=(t,e)=>{if(typeof e!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw new Error(`${t}(): "${e}" is not a valid document ID`)},tt=(t,e)=>{if(!e._id)throw new Error(`${t}() requires that the document contains an ID ("_id" property)`);Ai(t,e._id)},mu=(t,e)=>{if(typeof e!="string")throw new Error(`\`${t}()\`: \`${e}\` is not a valid document type`)},ki=(t,e)=>{if(!e._type)throw new Error(`\`${t}()\` requires that the document contains a type (\`_type\` property)`);mu(t,e._type)},yu=(t,e)=>{if(e._id&&e._id!==t)throw new Error(`The provided document ID (\`${e._id}
15\`) does not match the generated version ID (\`${t}\`)`)},gu=(t,e,r)=>{const n="insert(at, selector, items)";if(bn.indexOf(t)===-1){const i=bn.map(s=>`"${s}"`).join(", ");throw new Error(`${n} takes an "at"-argument which is one of: ${i}`)}if(typeof e!="string")throw new Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw new Error(`${n} takes an "items"-argument which must be an array`)},ze=t=>{if(!t.dataset)throw new Error("`dataset` must be provided to perform queries");return t.dataset||""},ji=t=>{if(typeof t!="string"||!/^[a-z0-9._-]{1,75}$/i.test(t))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},Ti=t=>{if(!t["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{if(r.split(".").length!==2)throw new Error('Dataset resource ID must be in the format "project.dataset"');return}case"dashboard":case"media-library":case"canvas":return;default:throw new Error(`Unsupported resource type: ${e.toString()}`)}},ue=(t,e)=>{if(e["~experimental_resource"])throw new Error(`\`${t}\` does not support resource-based operations`)};function vu(t){let e=!1,r;return(...n)=>(e||(r=t(...n),e=!0),r)}const Ve=t=>vu((...e)=>console.warn(t.join(" "),...e)),bu=Ve(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),wu=Ve(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),_u=Ve(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),Iu=Ve(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),Su=Ve(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${jr("js-client-browser-token")} for more information and how to hide this warning.`]),xu=Ve(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),Eu=Ve(["Using the Sanity client without specifying an API version is deprecated.",`See ${jr("js-client-api-version")}`]),Cu="apicdn.sanity.io",ut={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},$u=["localhost","127.0.0.1","0.0.0.0"],Ou=t=>$u.indexOf(t)!==-1;function Au(t){if(t==="1"||t==="X")return;const e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}function Ri(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw new TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}const Pi=(t,e)=>{const r={...e,...t,stega:{...typeof e.stega=="boolean"?{enabled:e.stega}:e.stega||ut.stega,...typeof t.stega=="boolean"?{enabled:t.stega}:t.stega||{}}};r.apiVersion||Eu();const n={...ut,...r},i=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){const h=jr("js-client-promise-polyfill");throw new Error(`No native Promise-implementation found, polyfill needed - see ${h}`)}if(i&&!n.projectId)throw new Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&Ti(n),typeof n.perspective<"u"&&Ri(n.perspective),"encodeSourceMap"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
15if(typeof n.stega.enabled!="boolean")throw new Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&n.stega.studioUrl===void 0)throw new Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&typeof n.stega.studioUrl!="string"&&typeof n.stega.studioUrl!="function")throw new Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);const s=typeof window<"u"&&window.location&&window.location.hostname,o=s&&Ou(window.location.hostname),a=!!n.token;n.withCredentials&&a&&(xu(),n.withCredentials=!1),s&&o&&a&&n.ignoreBrowserTokenWarning!==!0?Su():typeof n.useCdn>"u"&&wu(),i&&hu(n.projectId),n.dataset&&Oi(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?ji(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===ut.apiHost,n.useCdn===!0&&n.withCredentials&&bu(),n.useCdn=n.useCdn!==!1&&!n.withCredentials,Au(n.apiVersion);const u=n.apiHost.split("://",2),c=u[0],d=u[1],f=n.isDefaultApi?Cu:d;return i?(n.url=`${c}://${n.projectId}.${d}/v${n.apiVersion}`,n.cdnUrl=`${c}://${n.projectId}.${f}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class qi extends Error{constructor(){super(...arguments);E(this,"name","ConnectionFailedError")}}class ku extends Error{constructor(r,n,i={}){super(r,i);E(this,"name","DisconnectError");E(this,"reason");this.reason=n}}class ju extends Error{constructor(r,n){super(r);E(this,"name","ChannelError");E(this,"data");this.data=n}}class Tu extends Error{constructor(r,n,i={}){super(r,i);E(this,"name","MessageError");E(this,"data");this.data=n}}
15class wn extends Error{constructor(){super(...arguments);E(this,"name","MessageParseError")}}const Ru=["channelError","disconnect"];function Mi(t,e){return gi(()=>{const r=t();return Ea(r)?r:Yt(r)}).pipe(Ct(r=>Pu(r,e)))}function Pu(t,e){return new z(r=>{const n=e.includes("open"),i=e.includes("reconnect");function s(c){if("data"in c){const[d,f]=_n(c);r.error(d?new wn("Unable to parse EventSource error message",{cause:f}):new Tu((f==null?void 0:f.data).message,f));return}t.readyState===t.CLOSED?r.error(new qi("EventSource connection failed")):i&&r.next({type:"reconnect"})}function o(){r.next({type:"open"})}function a(c){var h;const[d,f]=_n(c);if(d){r.error(new wn("Unable to parse EventSource message",{cause:d}));return}if(c.type==="channelError"){const m=new URL(t.url).searchParams.get("tag");r.error(new ju(qu(f==null?void 0:f.data,m),f.data));return}if(c.type==="disconnect"){r.error(new ku(`Server disconnected client: ${((h=f.data)==null?void 0:h.reason)||"unknown error"}`));return}r.next({type:c.type,id:c.lastEventId,...f.data?{data:f.data}:{}})}t.addEventListener("error",s),n&&t.addEventListener("open",o);const u=[...new Set([...Ru,...e])].filter(c=>c!=="error"&&c!=="open"&&c!=="reconnect");return u.forEach(c=>t.addEventListener(c,a)),()=>{t.removeEventListener("error",s),n&&t.removeEventListener("open",o),u.forEach(c=>t.removeEventListener(c,a)),t.close()}})}function _n(t){try{const e=typeof t.data=="string"&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...Mu(e)?{}:{data:e}}]}catch(e){return[e,null]}}function qu(t,e){const r=t.error;return r?Ci(r)?$i(r,e):r.description?r.description:typeof r=="string"?r:JSON.stringify(r,null,2):t.message||"Unknown listener error"}function Mu(t){for(const e in t)return!1;return!0}function Di(t){if(typeof t=="string")return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if(typeof t=="object"&&t!==null&&"query"in t&&typeof t.query=="string")return"params"in t&&typeof t.params=="object"&&t.params!==null?{query:t.query,params:t.params}:{query:t.query};const e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 16`);throw new Error(`Unknown selection - must be one of: 17 18${e}`)}class Fi{constructor(e,r={}){E(this,"selection");E(this,"operations");this.selection=e,this.operations=r}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return at("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,r,n){return gu(e,r,n),this._assign("insert",{[e]:r,items:n})}append(e,r){return this.insert("after",`${e}[-1]`,r)}prepend(e,r){return this.insert("before",`${e}[0]`,r)}splice(e,r,n,i){const s=typeof n>"u"||n===-1,o=r<0?r-1:r,a=s?-1:Math.max(0,r+n),u=o<0&&a>=0?"":a,c=`${e}[${o}:${u}]`;return this.insert("replace",c,i||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...Di(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,r,n=!0){return at(e,r),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},n&&this.operations[e]||{},r)}),this}_set(e,r){return this._assign(e,r,!1)}}var De;const Pr=class Pr extends Fi{constructor(r,n,i){super(r,n);k(this,De);A(this,De,i)}clone(){return new Pr(this.selection,{...this.operations},l(this,De))}commit(r){if(!l(this,De))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");const n=typeof this.selection=="string",i=Object.assign({returnFirst:n,returnDocuments:!0},r);return l(this,De).mutate({patch:this.serialize()},i)}};De=new WeakMap;let Be=Pr;var Fe;const qr=class qr extends Fi{constructor(r,n,i){super(r,n);k(this,Fe);A(this,Fe,i)}clone(){return new qr(this.selection,{...this.operations},l(this,Fe))}commit(r){if(!l(this,Fe))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");
18const n=typeof this.selection=="string",i=Object.assign({returnFirst:n,returnDocuments:!0},r);return l(this,Fe).mutate({patch:this.serialize()},i)}};Fe=new WeakMap;let je=qr;const Ui={returnDocuments:!1};class Li{constructor(e=[],r){E(this,"operations");E(this,"trxId");this.operations=e,this.trxId=r}create(e){return at("create",e),this._add({create:e})}createIfNotExists(e){const r="createIfNotExists";return at(r,e),tt(r,e),this._add({[r]:e})}createOrReplace(e){const r="createOrReplace";return at(r,e),tt(r,e),this._add({[r]:e})}delete(e){return Ai("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}var de;const Mr=class Mr extends Li{constructor(r,n,i){super(r,i);k(this,de);A(this,de,n)}clone(){return new Mr([...this.operations],l(this,de),this.trxId)}commit(r){if(!l(this,de))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return l(this,de).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Ui,r||{}))}patch(r,n){const i=typeof n=="function",s=typeof r!="string"&&r instanceof je,o=typeof r=="object"&&("query"in r||"id"in r);if(s)return this._add({patch:r.serialize()});if(i){const a=n(new je(r,{},l(this,de)));if(!(a instanceof je))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:a.serialize()})}if(o){const a=new je(r,n||{},l(this,de));return this._add({patch:a.serialize()})}return this._add({patch:{id:r,...n}})}};de=new WeakMap;let Lt=Mr;var Se;const Dr=class Dr extends Li{constructor(r,n,i){super(r,i);k(this,Se);A(this,Se,n)}clone(){return new Dr([...this.operations],l(this,Se),this.trxId)}commit(r){if(!l(this,Se))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return l(this,Se).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Ui,r||{}))}patch(r,n){const i=typeof n=="function";if(typeof r!="string"&&r instanceof Be)return this._add({patch:r.serialize()});if(i){const s=n(new Be(r,{},l(this,Se)));if(!(s instanceof Be))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:s.serialize()})}return this._add({patch:{id:r,...n}})}};Se=new WeakMap;let Nt=Dr;const Du="X-Sanity-Project-ID";function Fu(t,e={}){const r={};t.headers&&Object.assign(r,t.headers);const n=e.token||t.token;n&&(r.Authorization=`Bearer ${n}`),!e.useGlobalApi&&!t.useProjectHostname&&t.projectId&&(r[Du]=t.projectId);const i=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),s=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof s>"u"?5*60*1e3:s,proxy:e.proxy||t.proxy,json:!0,withCredentials:i,fetch:typeof e.fetch=="object"&&typeof t.fetch=="object"?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}const Ni=({query:t,params:e={},options:r={}})=>{const n=new URLSearchParams,{tag:i,includeMutations:s,returnQuery:o,...a}=r;i&&n.append("tag",i),n.append("query",t);for(const[u,c]of Object.entries(e))c!==void 0&&n.append(`$${u}`,JSON.stringify(c));for(const[u,c]of Object.entries(a))c&&n.append(u,`${c}`);return o===!1&&n.append("returnQuery","false"),s===!1&&n.append("includeMutations","false"),`?${n}`},Uu=(t,e)=>t===!1?void 0:typeof t>"u"?e:t,Lu=(t={})=>({dryRun:t.dryRun,returnIds:!0,returnDocuments:Uu(t.returnDocuments,!0),visibility:t.visibility||"sync",autoGenerateArrayKeys:t.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:t.skipCrossDatasetReferenceValidation}),Tr=t=>t.type==="response",Nu=t=>t.body,Bu=(t,e)=>t.reduce((r,n)=>(r[e(n)]=n,r),Object.create(null)),zu=11264;function Bi(t,e,r,n,i={},s={}){const o="stega"in s?{...r||{},...typeof s.stega=="boolean"?{enabled:s.stega}:s.stega||{}}:r,a=o.enabled?Ga(i):i,u=s.filterResponse===!1?y=>y:y=>y.result,{cache:c,next:d,...f}={useAbortSignal:typeof s.signal<"u",resultSourceMap:o.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:s.filterResponse===!1&&s.returnQuery!==!1}
18,h=typeof c<"u"||typeof d<"u"?{...f,fetch:{cache:c,next:d}}:f,m=We(t,e,"query",{query:n,params:a},h);return o.enabled?m.pipe(Da(Et(Mn(()=>import("./0XCV4L3d.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(function(y){return y.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:y})=>y))),Y(([y,p])=>{const I=p(y.result,y.resultSourceMap,o);return u({...y,result:I})})):m.pipe(Y(u))}function tr(t,e,r,n={}){const i=(()=>{if(!n.releaseId)return r;const o=xi(r);if(!o){if(Xt(r))throw new Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return Zt(r,n.releaseId)}if(o!==n.releaseId)throw new Error(`The document ID (\`${r}\`) is already a version of \`${o}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})(),s={uri:oe(t,"doc",i),json:!0,tag:n.tag,signal:n.signal};return Ot(t,e,s).pipe(rt(Tr),Y(o=>o.body.documents&&o.body.documents[0]))}function zi(t,e,r,n={}){const i={uri:oe(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return Ot(t,e,i).pipe(rt(Tr),Y(s=>{const o=Bu(s.body.documents||[],a=>a._id);return r.map(a=>o[a]||null)}))}function Vi(t,e,r,n={}){return We(t,e,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function Wi(t,e,r,n){return tt("createIfNotExists",r),rr(t,e,r,"createIfNotExists",n)}function Hi(t,e,r,n){return tt("createOrReplace",r),rr(t,e,r,"createOrReplace",n)}function Gi(t,e,r,n,i){return tt("createVersion",r),ki("createVersion",r),B(t,e,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function Qi(t,e,r,n){return We(t,e,"mutate",{mutations:[{delete:Di(r)}]},n)}function Ji(t,e,r,n=!1,i){return B(t,e,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function Yi(t,e,r,n){return tt("replaceVersion",r),ki("replaceVersion",r),B(t,e,{actionType:"sanity.action.document.version.replace",document:r},n)}function Xi(t,e,r,n,i){return B(t,e,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function Ki(t,e,r,n){let i;r instanceof je||r instanceof Be?i={patch:r.serialize()}:r instanceof Lt||r instanceof Nt?i=r.serialize():i=r;const s=Array.isArray(i)?i:[i],o=n&&n.transactionId||void 0;return We(t,e,"mutate",{mutations:s,transactionId:o},n)}function B(t,e,r,n){const i=Array.isArray(r)?r:[r],s=n&&n.transactionId||void 0,o=n&&n.skipCrossDatasetReferenceValidation||void 0,a=n&&n.dryRun||void 0;return We(t,e,"actions",{actions:i,transactionId:s,skipCrossDatasetReferenceValidation:o,dryRun:a},n)}function We(t,e,r,n,i={}){const s=r==="mutate",o=r==="actions",a=r==="query",u=s||o?"":Ni(n),c=!s&&!o&&u.length<zu,d=c?u:"",f=i.returnFirst,{timeout:h,token:m,tag:y,headers:p,returnQuery:I,lastLiveEventId:S,cacheMode:x}=i,w=oe(t,r,d),C={method:c?"GET":"POST",uri:w,json:!0,body:c?void 0:n,query:s&&Lu(i),timeout:h,headers:p,token:m,tag:y,returnQuery:I,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(S)?S[0]:S,cacheMode:x,canUseCdn:a,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return Ot(t,e,C).pipe(rt(Tr),Y(Nu),Y(R=>{if(!s)return R;const W=R.results||[];if(i.returnDocuments)return f?W[0]&&W[0].document:W.map(qe=>qe.document);const nt=f?"documentId":"documentIds",Pe=f?W[0]&&W[0].id:W.map(qe=>qe.id);return{transactionId:R.transactionId,results:W,[nt]:Pe}}))}function rr(t,e,r,n,i={}){const s={[n]:r},o=Object.assign({returnFirst:!0,returnDocuments:!0},i);return We(t,e,"mutate",{mutations:[s]},o)}const $t=t=>t.config().dataset!==void 0&&t.config().projectId!==void 0||t.config()["~experimental_resource"]!==void 0,Zi=(t,e)=>$t(t)&&e.startsWith(oe(t,"query")),Vu=(t,e)=>$t(t)&&e.startsWith(oe(t,"mutate")),Wu=(t,e)=>$t(t)&&e.startsWith(oe(t,"doc","")),Hu=(t,e)=>$t(t)&&e.startsWith(oe(t,"listen")),Gu=(t,e)=>$t(t)&&e.startsWith(oe(t,"history","")),Qu=(t,e)=>e.startsWith("/data/")||Zi(t,e)||Vu(t,e)||Wu(t,e)||Hu(t,e)||Gu(t,e);function Ot(t,e,r){const n=r.url||r.uri,i=t.config(),s=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&Qu(t,n):r.canUseCdn;let o=(r.useCdn??i.useCdn)&&s;const a=r.tag&&i.requestTagPrefix?[i.requestTagPrefix,r.tag].join("."):r.tag||i.requestTagPrefix;if(a&&r.tag!==null&&(r.query={tag:ji(a),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&Zi(t,n)){const d=r.resultSourceMap??i.resultSourceMap;d!==void 0&&d!==!1&&(r.query={resultSourceMap:d,...r.query});const f=r.perspective||i.perspective;typeof f<"u"&&(f==="previewDrafts"&&Iu(),Ri(f),r.query={perspective:Array.isArray(f)?f.join(","):f,...r.query},(Array.isArray(f)&&f.length>0||f==="previewDrafts"||f==="drafts")&&o&&(o=!1,_u())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),r.returnQuery===!1&&(r.query={returnQuery:"false",...r.query}),o&&r.cacheMode=="noStale"&&(r.query={cacheMode:"noStale",...r.query})}const u=Fu(i,Object.assign({},r,{url:Rr(t,n,o)})),c=new z(d=>e(u,i.requester).subscribe(d));return r.signal?c.pipe(Ju(r.signal)):c}function X(t,e,r){return Ot(t,e,r).pipe(rt(n=>n.type==="response"),Y(n=>n.body))}function oe(t,e,r){const n=t.config();if(n["~experimental_resource"]){Ti(n);const o=Ku(n),a=r!==void 0?`${e}/${r}`:e;return`${o}/${a}`.replace(/\/($|\?)/,"$1")}const i=ze(n),s=`/${e}/${i}`;return`/data${r!==void 0?`${s}/${r}`:s}`.replace(/\/($|\?)/,"$1")}function Rr(t,e,r=!1){const{url:n,cdnUrl:i}=t.config();return`${r?i:n}/${e.replace(/^\//,"")}`}function Ju(t){return e=>new z(r=>{const n=()=>r.error(Xu(t));if(t&&t.aborted){n();return}const i=e.subscribe(r);return t.addEventListener("abort",n),()=>{t.removeEventListener("abort",n),i.unsubscribe()}})}const Yu=!!globalThis.DOMException;function Xu(t){if(Yu)return new DOMException((t==null?void 0:t.reason)??"The operation was aborted.","AbortError");const e=new Error((t==null?void 0:t.reason)??"The operation was aborted.");return e.name="AbortError",e}const Ku=t=>
18{if(!t["~experimental_resource"])throw new Error("`resource` must be provided to perform resource queries");const{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{const n=r.split(".");if(n.length!==2)throw new Error('Dataset ID must be in the format "project.dataset"');return`/projects/${n[0]}/datasets/${n[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw new Error(`Unsupported resource type: ${e.toString()}`)}};function es(t,e,r){const n=ze(t.config());return X(t,e,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function Zu(t,e,r){const n=ze(t.config());return X(t,e,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}function ec(t,e,r){const n=ze(t.config());return X(t,e,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}function ts(t,e,r){const n=ze(t.config());return X(t,e,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function rs(t,e,r){const n=ze(t.config());return X(t,e,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}var Ue,Le;class tc{constructor(e,r){k(this,Ue);k(this,Le);A(this,Ue,e),A(this,Le,r)}generate(e){return es(l(this,Ue),l(this,Le),e)}transform(e){return ts(l(this,Ue),l(this,Le),e)}translate(e){return rs(l(this,Ue),l(this,Le),e)}}Ue=new WeakMap,Le=new WeakMap;var he,pe;class rc{constructor(e,r){k(this,he);k(this,pe);A(this,he,e),A(this,pe,r)}generate(e){return P(es(l(this,he),l(this,pe),e))}transform(e){return P(ts(l(this,he),l(this,pe),e))}translate(e){return P(rs(l(this,he),l(this,pe),e))}prompt(e){return P(ec(l(this,he),l(this,pe),e))}patch(e){return P(Zu(l(this,he),l(this,pe),e))}}he=new WeakMap,pe=new WeakMap;var mt,yt;class nc{constructor(e,r){k(this,mt);k(this,yt);A(this,mt,e),A(this,yt,r)}upload(e,r,n){return ns(l(this,mt),l(this,yt),e,r,n)}}mt=new WeakMap,yt=new WeakMap;var gt,vt;class ic{constructor(e,r){k(this,gt);k(this,vt);A(this,gt,e),A(this,vt,r)}upload(e,r,n){const i=ns(l(this,gt),l(this,vt),e,r,n);return P(i.pipe(rt(s=>s.type==="response"),Y(s=>s.body.document)))}}gt=new WeakMap,vt=new WeakMap;function ns(t,e,r,n,i={}){pu(r);let s=i.extract||void 0;s&&!s.length&&(s=["none"]);const o=t.config(),a=oc(i,n),{tag:u,label:c,title:d,description:f,creditLine:h,filename:m,source:y}=a,p={label:c,title:d,description:f,filename:m,meta:s,creditLine:h};return y&&(p.sourceId=y.id,p.sourceName=y.name,p.sourceUrl=y.url),Ot(t,e,{tag:u,method:"POST",timeout:a.timeout||0,uri:sc(o,r),headers:a.contentType?{"Content-Type":a.contentType}:{},query:p,body:n})}function sc(t,e){const r=e==="image"?"images":"files";if(t["~experimental_resource"]){const{type:i,id:s}=t["~experimental_resource"];switch(i){case"dataset":throw new Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${s}/assets/${r}`;case"media-library":return`/media-libraries/${s}/upload`;case"dashboard":return`/dashboards/${s}/assets/${r}`;default:throw new Error(`Unsupported resource type: ${i.toString()}`)}}const n=ze(t);return`assets/${r}/${n}`}function oc(t,e){return typeof File>"u"||!(e instanceof File)?t:Object.assign({filename:t.preserveFilename===!1?void 0:e.name,contentType:e.type},t)}var ac=(t,e)=>Object.keys(e).concat(Object.keys(t)).reduce((r,n)=>(r[n]=typeof t[n]>"u"?e[n]:t[n],r),{});const uc=(t,e)=>e.reduce((r,n)=>(typeof t[n]>"u"||(r[n]=t[n]),r),{}),is=gi(()=>Mn(()=>import("./BZXsIZ3P.js").then(t=>t.b),__vite__mapDeps([4,1,2]),import.meta.url)).pipe(Y(({default:t})=>t),Fa(1));function ss(){return function(t){return t.pipe(Ar((e,r)=>e instanceof qi?yi(Yt({type:"reconnect"}),Ra(1e3).pipe(Ct(()=>r))):hi(()=>e)))}}const cc=14800,lc=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],fc={includeResult:!0};function os(t,e,r={}){const{url:n,token:i,withCredentials:s,requestTagPrefix:o,headers:a}=this.config(),u=r.tag&&o?[o,r.tag].join("."):r.tag,c={...ac(r,fc),tag:u},d=uc(c,lc),f=Ni({query:t,params:e,options:{tag:u,...d}}),h=`${n}${oe(this,"listen",f)}`;if(h.length>cc)return hi(()=>new Error("Query too large for listener"));const m=c.events?c.events:["mutation"],y={};return s&&(y.withCredentials=!0),(i||a)&&(y.headers={},i&&(y.headers.Authorization=`Bearer ${i}`),a&&Object.assign(y.headers,a)),Mi(()=>(typeof EventSource>"u"||y.headers?is:Yt(EventSource)).pipe(Y(p=>new p(h,y))),m).pipe(ss(),rt(p=>m.includes(p.type)),Y(p=>({type:p.type,..."data"in p?p.data:{}})))}function dc(t,e){return hc(typeof t=="function"?{predicate:t,...e}:t)}function hc(t){return e=>{let r,n=!1;const{predicate:i,...s}=t,o=e.pipe(Ua(u=>{t.predicate(u)&&(n=!0,r=u)}),bi(()=>{n=!1,r=void 0}),wi(s)),a=new z(u=>{n&&u.next(r),u.complete()});return Pa(o,a)}}const In="2021-03-25";var xe;class as{constructor(e){k(this,xe);A(this,xe,e)}events({includeDrafts:e=!1,tag:r}={}){ue("live",l(this,xe).config());const{projectId:n,apiVersion:i,token:s,withCredentials:o,requestTagPrefix:a,headers:u}=l(this,xe).config(),c=i.replace(/^v/,"");if(c!=="X"&&c<In)throw new Error(`The live events API requires API version ${In} or later. The current API version is ${c}. Please update your API version to use this feature.`);if(e&&!s&&!o)throw new Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");const d=oe(l(this,xe),"live/events"),f=new URL(l(this,xe).getUrl(d,!1)),h=r&&a?[a,r].join("."):r;h&&f.searchParams.set("tag",h),e&&f.searchParams.set("includeDrafts","true");const m={};e&&o&&(m.withCredentials=!0),(e&&s||u)&&(m.headers={},e&&s&&(m.headers.Authorization=`Bearer ${s}`),u&&Object.assign(m.headers,u));const y=`${f.href}::${JSON.stringify(m)}`,p=dr.get(y);if(p)return p;const I=Mi(()=>(typeof EventSource>"u"||m.headers?is:Yt(EventSource)).pipe(Y(w=>new w(f.href,m))),["message","restart","welcome","reconnect","goaway"]).pipe(ss(),Y(w=>{if(w.type==="message"){const{data:C,...R}=w;return{...R,tags:C.tags}}return w})),S=pc(f,{method:"OPTIONS",mode:"cors",credentials:m.withCredentials?"include":"omit",headers:m.headers}).pipe(Ct(()=>Zn),Ar(()=>{throw new uu({projectId:n})})),x=yi(S,I).pipe(bi(()=>dr.delete(y)),dc({predicate:w=>w.type==="welcome"}));return dr.set(y,x),x}}xe=new WeakMap;function pc(t,e){return new z(r=>{const n=new AbortController,i=n.signal;return fetch(t,{...e,signal:n.signal}).then(s=>{r.next(s),r.complete()},s=>{i.aborted||r.error(s)}),()=>n.abort()})}const dr=new Map;var Ee,Ce;class mc{constructor(e,r){k(this,Ee);k(this,Ce);A(this,Ee,e),A(this,Ce,r)}create(e,r){return Je(l(this,Ee),l(this,Ce),"PUT",e,r)}edit(e,r){return Je(l(this,Ee),l(this,Ce),"PATCH",e,r)}delete(e){return Je(l(this,Ee),l(this,Ce),"DELETE",e)}list(){return X(l(this,Ee),l(this,Ce),{uri:"/datasets",tag:null})}}Ee=new WeakMap,Ce=new WeakMap;var se,$e;class yc{constructor(e,r){k(this,se);k(this,$e);A(this,se,e),A(this,$e,r)}create(e,r){return ue("dataset",l(this,se).config()),P(Je(l(this,se),l(this,$e),"PUT",e,r))}edit(e,r){return ue("dataset",l(this,se).config()),P(Je(l(this,se),l(this,$e),"PATCH",e,r))}delete(e){return ue("dataset",l(this,se).config()),P(Je(l(this,se),l(this,$e),"DELETE",e))}list(){return ue("dataset",l(this,se).config()),P(X(l(this,se),l(this,$e),{uri:"/datasets",tag:null}))}}se=new WeakMap,$e=new WeakMap;function Je(t,e,r,n,i){return ue("dataset",t.config()),Oi(n),X(t,e,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}var Oe,Xe;class gc{constructor(e,r){k(this,Oe);k(this,Xe);A(this,Oe,e),A(this,Xe,r)}list(e){ue("projects",l(this,Oe).config());const r=(e==null?void 0:e.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return X(l(this,Oe),l(this,Xe),{uri:r})}getById(e){return ue("projects",l(this,Oe).config()),X(l(this,Oe),l(this,Xe),{uri:`/projects/${e}`})}}Oe=new WeakMap,Xe=new WeakMap;var Ae,Ke;class vc{constructor(e,r){k(this,Ae);k(this,Ke);A(this,Ae,e),A(this,Ke,r)}list(e){ue("projects",l(this,Ae).config());const r=(e==null?void 0:e.includeMembers)===!1?"/projects?includeMembers=false":"/projects";return P(X(l(this,Ae),l(this,Ke),{uri:r}))}getById(e){return ue("projects",l(this,Ae).config()),P(X(l(this,Ae),l(this,Ke),{uri:`/projects/${e}`}))}}Ae=new WeakMap,Ke=new WeakMap;const Sn=Za("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),Bt=(t,e)=>e?Zt(t,e):Ya(t);function zt(t,{releaseId:e,publishedId:r,document:n}){if(r&&n._id){const i=Bt(r,e);return yu(i,n),i}if(n._id){const i=Xt(n._id),s=Kt(n._id);if(!i&&!s)throw new Error(`\`${t}()\` requires a document with an \`_id\` that is a version or draft ID`);if(e){if(i)throw new Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${e}\`) was also provided.`);const o=xi(n._id);if(o!==e)throw new Error(`\`${t}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${e}\`) does not match the document's version ID (\`${o}\`).`)}return n._id}if(r)return Bt(r,e);throw new Error(`\`${t}()\` requires either a publishedId or a document with an \`_id\``)}const bc=(t,e)=>{if(typeof t=="object"&&t!==null&&("releaseId"in t||"metadata"in t)){const{releaseId:r=Sn(),metadata:n={}}=t;return[r,n,e]}return[Sn(),{},t]},us=(t,e)=>{const[r,n,i]=bc(t,e),s={...n,releaseType:n.releaseType||"undecided"};return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:s},options:i}};var Z,ee;class wc{constructor(e,r){k(this,Z);k(this,ee);A(this,Z,e),A(this,ee,r)}get({releaseId:e},r){return tr(l(this,Z),l(this,ee),`_.releases.${e}`,r)}create(e,r){const{action:n,options:i}=us(e,r),{releaseId:s,metadata:o}=n;return B(l(this,Z),l(this,ee),n,i).pipe(Y(a=>({...a,releaseId:s,metadata:o})))}edit({releaseId:e,patch:r},n){const i={actionType:"sanity.action.release.edit",releaseId:e,patch:r};return B(l(this,Z),l(this,ee),i,n)}publish({releaseId:e},r){const n={actionType:"sanity.action.release.publish",releaseId:e};return B(l(this,Z),l(this,ee),n,r)}archive({releaseId:e},r){const n={actionType:"sanity.action.release.archive",releaseId:e};return B(l(this,Z),l(this,ee),n,r)}unarchive({releaseId:e},r){const n={actionType:"sanity.action.release.unarchive",releaseId:e};return B(l(this,Z),l(this,ee),n,r)}schedule({releaseId:e,publishAt:r},n){const i={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:r};return B(l(this,Z),l(this,ee),i,n)}unschedule({releaseId:e},r){const n={actionType:"sanity.action.release.unschedule",releaseId:e};return B(l(this,Z),l(this,ee),n,r)}delete({releaseId:e},r){const n={actionType:"sanity.action.release.delete",releaseId:e};return B(l(this,Z),l(this,ee),n,r)}fetchDocuments({releaseId:e},r){return Vi(l(this,Z),l(this,ee),e,r)}}Z=new WeakMap,ee=new WeakMap;var te,re;class _c{constructor(e,r){k(this,te);k(this,re);A(this,te,e),A(this,re,r)}get({releaseId:e},r){return P(tr(l(this,te),l(this,re),`_.releases.${e}`,r))}async create(e,r){const{action:n,options:i}=us(e,r),{releaseId:s,metadata:o}=n;return{...await P(B(l(this,te),l(this,re),n,i)),releaseId:s,metadata:o}}edit({releaseId:e,patch:r},n){const i={actionType:"sanity.action.release.edit",releaseId:e,patch:r};return P(B(l(this,te),l(this,re),i,n))}publish({releaseId:e},r){const n={actionType:"sanity.action.release.publish",releaseId:e};return P(B(l(this,te),l(this,re),n,r))}archive({releaseId:e},r){const n={actionType:"sanity.action.release.archive",releaseId:e};return P(B(l(this,te),l(this,re),n,r))}unarchive({releaseId:e},r){const n={actionType:"sanity.action.release.unarchive",releaseId:e};return P(B(l(this,te),l(this,re),n,r))}schedule({releaseId:e,publishAt:r},n){const i={actionType:"sanity.action.release.schedule",releaseId:e,publishAt:r};return P(B(l(this,te),l(this,re),i,n))}unschedule({releaseId:e},r){const n={actionType:"sanity.action.release.unschedule",releaseId:e};return P(B(l(this,te),l(this,re),n,r))}delete({releaseId:e},r){const n={actionType:"sanity.action.release.delete",releaseId:e};return P(B(l(this,te),l(this,re),n,r))}fetchDocuments({releaseId:e},r){return P(Vi(l(this,te),l(this,re),e,r))}}te=new WeakMap,re=new WeakMap;var bt,wt;class Ic{constructor(e,r){k(this,bt);k(this,wt);A(this,bt,e),A(this,wt,r)}getById(e){return X(l(this,bt),l(this,wt),{uri:`/users/${e}`})}}bt=new WeakMap,wt=new WeakMap;var _t,It;class Sc{constructor(e,r){k(this,_t);k(this,It);A(this,_t,e),A(this,It,r)}getById(e){return P(X(l(this,_t),l(this,It),{uri:`/users/${e}`}))}}_t=new WeakMap,It=new WeakMap;var me,U;const Wt=class Wt{constructor(e,r=ut){E(this,"assets");E(this,"datasets");E(this,"live");E(this,"projects");E(this,"users");E(this,"agent");E(this,"releases");k(this,me);k(this,U);E(this,"listen",os);this.config(r),A(this,U,e),this.assets=new nc(this,l(this,U)),this.datasets=new mc(this,l(this,U)),this.live=new as(this),this.projects=new gc(this,l(this,U)),this.users=new Ic(this,l(this,U)),this.agent={action:new tc(this,l(this,U))},this.releases=new wc(this,l(this,U))}clone(){return new Wt(l(this,U),this.config())}config(e){if(e===void 0)return{...l(this,me)};if(l(this,me)&&l(this,me).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return A(this,me,Pi(e,l(this,me)||{})),this}withConfig(e){const r=this.config();return new Wt(l(this,U),{...r,...e,stega:{...r.stega||{},...typeof(e==null?void 0:e.stega)=="boolean"?{enabled:e.stega}:(e==null?void 0:e.stega)||{}}})}fetch(e,r,n){return Bi(this,l(this,U),l(this,me).stega,e,r,n)}getDocument(e,r){return tr(this,l(this,U),e,r)}getDocuments(e,r){return zi(this,l(this,U),e,r)}create(e,r){return rr(this,l(this,U),e,"create",r)}createIfNotExists(e,r){return Wi(this,l(this,U),e,r)}createOrReplace(e,r){return Hi(this,l(this,U),e,r)}createVersion({document:e,publishedId:r,releaseId:n},i){const s=zt("createVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:s},a=r||er(e._id);return Gi(this,l(this,U),o,a,i)}delete(e,r){return Qi(this,l(this,U),e,r)}discardVersion({releaseId:e,publishedId:r}
18,n,i){const s=Bt(r,e);return Ji(this,l(this,U),s,n,i)}replaceVersion({document:e,publishedId:r,releaseId:n},i){const s=zt("replaceVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:s};return Yi(this,l(this,U),o,i)}unpublishVersion({releaseId:e,publishedId:r},n){const i=Zt(r,e);return Xi(this,l(this,U),i,r,n)}mutate(e,r){return Ki(this,l(this,U),e,r)}patch(e,r){return new Be(e,r,this)}transaction(e){return new Nt(e,this)}action(e,r){return B(this,l(this,U),e,r)}request(e){return X(this,l(this,U),e)}getUrl(e,r){return Rr(this,e,r)}getDataUrl(e,r){return oe(this,e,r)}};me=new WeakMap,U=new WeakMap;let yr=Wt;var ye,F;const Ht=class Ht{constructor(e,r=ut){E(this,"assets");E(this,"datasets");E(this,"live");E(this,"projects");E(this,"users");E(this,"agent");E(this,"releases");E(this,"observable");k(this,ye);k(this,F);E(this,"listen",os);this.config(r),A(this,F,e),this.assets=new ic(this,l(this,F)),this.datasets=new yc(this,l(this,F)),this.live=new as(this),this.projects=new vc(this,l(this,F)),this.users=new Sc(this,l(this,F)),this.agent={action:new rc(this,l(this,F))},this.releases=new _c(this,l(this,F)),this.observable=new yr(e,r)}clone(){return new Ht(l(this,F),this.config())}config(e){if(e===void 0)return{...l(this,ye)};if(l(this,ye)&&l(this,ye).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),A(this,ye,Pi(e,l(this,ye)||{})),this}withConfig(e){const r=this.config();return new Ht(l(this,F),{...r,...e,stega:{...r.stega||{},...typeof(e==null?void 0:e.stega)=="boolean"?{enabled:e.stega}:(e==null?void 0:e.stega)||{}}})}fetch(e,r,n){return P(Bi(this,l(this,F),l(this,ye).stega,e,r,n))}getDocument(e,r){return P(tr(this,l(this,F),e,r))}getDocuments(e,r){return P(zi(this,l(this,F),e,r))}create(e,r){return P(rr(this,l(this,F),e,"create",r))}createIfNotExists(e,r){return P(Wi(this,l(this,F),e,r))}createOrReplace(e,r){return P(Hi(this,l(this,F),e,r))}createVersion({document:e,publishedId:r,releaseId:n},i){const s=zt("createVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:s},a=r||er(e._id);return dn(Gi(this,l(this,F),o,a,i))}delete(e,r){return P(Qi(this,l(this,F),e,r))}discardVersion({releaseId:e,publishedId:r},n,i){const s=Bt(r,e);return P(Ji(this,l(this,F),s,n,i))}replaceVersion({document:e,publishedId:r,releaseId:n},i){const s=zt("replaceVersion",{document:e,publishedId:r,releaseId:n}),o={...e,_id:s};return dn(Yi(this,l(this,F),o,i))}unpublishVersion({releaseId:e,publishedId:r},n){const i=Zt(r,e);return P(Xi(this,l(this,F),i,r,n))}mutate(e,r){return P(Ki(this,l(this,F),e,r))}patch(e,r){return new je(e,r,this)}transaction(e){return new Lt(e,this)}action(e,r){return P(B(this,l(this,F),e,r))}request(e){return P(X(this,l(this,F),e))}dataRequest(e,r,n){return P(We(this,l(this,F),e,r,n))}getUrl(e,r){return Rr(this,e,r)}getDataUrl(e,r){return oe(this,e,r)}};ye=new WeakMap,F=new WeakMap;let gr=Ht;function xc(t,e){return{requester:gn(t),createClient:r=>{const n=gn(t,{ignoreWarnings:r.ignoreWarnings});return new e((i,s)=>(s||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,...i}),r)}}}var Ec=[];const Cc=xc(Ec,gr),xn=Cc.createClient,En=t=>{const e={...t};let r=xn(e);return{client:r,config:e,fetch:(...n)=>r.fetch(...n),setToken(n){e.token=n,r=xn(e)}}},$c=(t="default")=>{var s;const e=Gt();if((s=e._sanity)!=null&&s[t])return e._sanity[t];e._sanity=e._sanity||{};const r=wr(),{additionalClients:n={},...i}=r.public.sanity;return!i.disableSmartCdn&&e.$preview?i.useCdn=!1:!i.useCdn&&!i.token&&(i.useCdn=!0),t==="default"?(e._sanity.default=En(i),e._sanity.default):(e._sanity[t]=En(br(n[t],i)),e._sanity[t])},Oc=t=>{try{const e=$c(),r=$o({projectId:e.config.projectId||"nema9bga",dataset:e.config.dataset||"production"});return t?r.image(t):null}catch(e){return console.warn("Error creating image URL:",e),null}},Ac=Re({__name:"Table",props:["rows"],setup(t,{expose:e}){e();const r={};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),kc={class:"table"},jc={class:"table table-light"};function Tc(t,e,r,n,i,s){var o,a;return V(),J("div",kc,[ke("table",jc,[ke("thead",null,[ke("tr",null,[(V(!0),J(ge,null,Qe((o=r.rows)==null?void 0:o[0].cells,u=>(V(),J("th",{key:u._key},Dt(u),1))),128))])]),ke("tbody",null,[(V(!0),J(ge,null,Qe((a=r.rows)==null?void 0:a.slice(1),u=>(V(),J("tr",{key:u._key},[(V(!0),J(ge,null,Qe(u.cells,c=>(V(),J("td",{key:c._key},Dt(c),1))),128))]))),128))])])])}const Rc=St(Ac,[["render",Tc],["__scopeId","data-v-25a766ae"],["__file","Table.vue"]]),Pc=Re({__name:"DynamicTableRow",props:["row","cellCount"],setup(t,{expose:e}){e();const r={};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}});function qc(t,e,r,n,i,s){const o=Ol;return V(),J("tr",null,[(V(!0),J(ge,null,Qe(r.cellCount,a=>{var u,c,d,f,h;return V(),J("td",null,[(u=r.row.cells[a-1])!=null&&u.text?(V(),J(ge,{key:0},[As(Dt((c=r.row.cells[a-1])==null?void 0:c.text),1)],64)):hr("",!0),!((d=r.row.cells[a-1])!=null&&d.text)&&((f=r.row.cells[a-1])!=null&&f.content)?(V(),Qt(o,{key:1,blocks:(h=r.row.cells[a-1])==null?void 0:h.content},null,8,["blocks"])):hr("",!0)])}),256))])}const Mc=St(Pc,[["render",qc],["__file","DynamicTableRow.vue"]]),Dc=Re({__name:"DynamicTable",props:["rows"],setup(t,{expose:e}){e();const r={};return Object.defineProperty(r,"__isScriptSetup",{enumerable:!1,value:!0}),r}}),Fc={class:"table"},Uc={class:"table table-light"};function Lc(t,e,r,n,i,s){var a,u;const o=Mc;return V(),J("div",Fc,[ke("table",Uc,[ke("thead",null,[ke("tr",null,[(V(!0),J(ge,null,Qe((a=r.rows)==null?void 0:a[0].cells,c=>(V(),J("th",{key:c._key},Dt(c.text),1))),128))])]),ke("tbody",null,[(V(!0),J(ge,null,Qe((u=r.rows)==null?void 0:u.slice(1),c=>{var d,f;return V(),Qt(o,{row:c,"cell-count":(f=(d=r.rows)==null?void 0:d[0].cells)==null?void 0:f.length},null,8,["row","cell-count"])}),256))])])])}const Nc=St(Dc,[["render",Lc],["__scopeId","data-v-522221b4"],["__file","DynamicTable.vue"]]),He="_islandPromises",Cn=/data-island-uid="([^"]*)"/,Bc=/data-island-uid(="")?(?!="[^"])/g,zc=/data-island-slot="([^"]*)"/g,Vc=/ data-island-slot="([^"]*)"[^>]*>/g,Wc=/^<[^> ]*/;let Hc=1;const Gc=()=>(Hc++).toString();const Qc=Re({name:"NuxtIsland",inheritAttrs:!1,props:{name:{type:String,required:!0},lazy:Boolean,props:{type:Object,default:()=>{}},context:{type:Object,default:()=>({})},scopeId:{type:String,default:()=>{}},source:{type:String,default:()=>{}},dangerouslyLoadClientComponents:{type:Boolean,default:!1}},emits:["error"],async setup(t,{slots:e,expose:r,emit:n}){var b,_,v,D,$,M;let i=!1;const s=sr(0),o=sr(0),a=ne(()=>zr),u=Ge(null),c=wr(),d=Gt(),f=ne(()=>t.props?Object.fromEntries(Object.entries(t.props).filter(([O])=>!O.startsWith("data-v-"))):{}),h=ne(()=>Hs([t.name,f.value,t.context,t.source]).replace(/[-_]/g,"")),m=Dn(),y=void 0;let p;const I=globalThis.fetch,S=sr(!1);Pn(()=>{S.value=!0,s.value++}),ks(()=>{p&&p.dispose()});function x(O,j){const q={};j.props&&(q.props=j.props),j.slots&&(q.slots=j.slots),j.components&&(q.components=j.components),j.head&&(q.head=j.head),d.payload.data[O]={__nuxt_island:{key:O,params:{...t.context,props:t.props?JSON.stringify(t.props):void 0},result:q},...j}}const w={};if(m.vnode.el){const O=(b=js(d.payload.data[`${t.name}_${h.value}`]))==null?void 0:b.slots;O&&(w.slots=O)}const C=Ge("");
18if((_=m.vnode)!=null&&_.el){C.value=((v=Ts(m.vnode.el,!0))==null?void 0:v.join(""))||"";const O=`${t.name}_${h.value}`;(D=d.payload.data)[O]||(D[O]={}),d.payload.data[O].html=C.value.replaceAll(new RegExp(`data-island-uid="${(($=C.value.match(Cn))==null?void 0:$[1])||""}"`,"g"),'data-island-uid=""')}const R=Ge(((M=C.value.match(Cn))==null?void 0:M[1])||Gc()),W=new Set(Object.keys(e)),nt=ne(()=>new Set([...C.value.matchAll(zc)].map(O=>O[1]))),Pe=ne(()=>{let O=C.value;if(t.scopeId&&(O=O.replace(Wc,j=>j+" "+t.scopeId)),!a.value)for(const[j,q]of Object.entries(w.components||{}))O=O.replace(new RegExp(` data-island-uid="${R.value}" data-island-component="${j}"[^>]*>`),T=>T+q.html);return w.slots?O.replaceAll(Vc,(j,q)=>{var T,K;return W.has(q)?j:j+(((K=(T=w.slots)==null?void 0:T[q])==null?void 0:K.fallback)||"")}):O}),qe=Rs();async function it(O=!1){var K;const j=`${t.name}_${h.value}`;if(!O&&((K=d.payload.data[j])!=null&&K.html))return d.payload.data[j];const q=`/__nuxt_island/${j}.json`,T=await I(Ds(t.source?q:ct(c.app.baseURL??"",q),{...t.context,props:t.props?JSON.stringify(t.props):void 0}));try{const G=await T.json();return x(j,G),G}catch(G){throw T.status!==200?new Error(G.toString(),{cause:T}):G}}async function g(O=!1){var j,q;d[He]||(d[He]={}),(j=d[He])[q=R.value]||(j[q]=it(O).finally(()=>{delete d[He][R.value]}));try{const T=await d[He][R.value];C.value=T.html.replaceAll(Bc,`data-island-uid="${R.value}"`),o.value++,u.value=null,w.slots=T.slots||{},w.components=T.components||{},T!=null&&T.head&&(p?p.patch(T.head):p=qe.push(T.head)),Ms(()=>{i=!0,s.value++})}catch(T){u.value=T,n("error",T)}}return r({refresh:()=>g(!0)}),Ps(t,qs(()=>g(),100),{deep:!0}),!m.vnode.el&&t.lazy?g():(!m.vnode.el||!d.payload.serverRendered)&&await g(),(O,j)=>{var q;return!Pe.value||u.value?[((q=e.fallback)==null?void 0:q.call(e,{error:u.value}))??or("div")]:[Vr([o.value],()=>or(ge,{key:o.value},[L(Fs(Pe.value||"<div></div>",1))]),j,0),Vr([s.value],()=>{var G;const T=[],K=s.value===0||!!(s.value&&!(s.value%2));if(R.value&&Pe.value&&(t.lazy?i:S.value||(G=m.vnode)!=null&&G.el))for(const Q in e)nt.value.has(Q)&&T.push(or(Us,{to:`${K?"div":""}[data-island-uid="${R.value}"][data-island-slot="${Q}"]`},{default:()=>{var _e,ie,kt;return((kt=(ie=(_e=w.slots)==null?void 0:_e[Q])==null?void 0:ie.props)!=null&&kt.length?w.slots[Q].props:[{}]).map(nr=>{var Ie;return(Ie=e[Q])==null?void 0:Ie.call(e,nr)})}}));return L(ge,T)},j,1)]}}}),Jc=t=>Re({name:t,inheritAttrs:!1,props:{lazy:Boolean},emits:["error"],setup(e,{attrs:r,slots:n,expose:i,emit:s}){const o=Dn(),a=Ge(null);return i({refresh:()=>{var u;return(u=a.value)==null?void 0:u.refresh()}}),()=>L(Qc,{name:t,lazy:e.lazy,props:r,scopeId:o==null?void 0:o.vnode.scopeId,ref:a,onError:u=>{s("error",u)}},n)}});function $n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function On(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?$n(Object(r),!0).forEach(function(n){Yc(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):$n(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Yc(t,e,r){return(e=Xc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Xc(t){var e=Kc(t,"string");return typeof e=="symbol"?e:e+""}function Kc(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vt(t){return t._type==="span"&&"text"in t&&typeof t.text=="string"&&(typeof t.marks>"u"||Array.isArray(t.marks)&&t.marks.every(e=>typeof e=="string"))}function cs(t){return typeof t._type=="string"&&t._type[0]!=="@"&&(!("markDefs"in t)||!t.markDefs||Array.isArray(t.markDefs)&&t.markDefs.every(e=>typeof e._key=="string"))&&"children"in t&&Array.isArray(t.children)&&t.children.every(e=>typeof e=="object"&&"_type"in e)}function ls(t){return cs(t)&&"listItem"in t&&typeof t.listItem=="string"&&(typeof t.level>"u"||typeof t.level=="number")}function fs(t){return t._type==="@list"}function ds(t){return t._type==="@span"}function hs(t){return t._type==="@text"}const An=["strong","em","code","underline","strike-through"];function Zc(t,e,r){if(!Vt(t)||!t.marks)return[];if(!t.marks.length)return[];const n=t.marks.slice(),i={};
18return n.forEach(s=>{i[s]=1;for(let o=e+1;o<r.length;o++){const a=r[o];if(a&&Vt(a)&&Array.isArray(a.marks)&&a.marks.indexOf(s)!==-1)i[s]++;else break}}),n.sort((s,o)=>el(i,s,o))}function el(t,e,r){const n=t[e],i=t[r];if(n!==i)return i-n;const s=An.indexOf(e),o=An.indexOf(r);return s!==o?s-o:e.localeCompare(r)}function tl(t){var e,r;const{children:n}=t,i=(e=t.markDefs)!=null?e:[];if(!n||!n.length)return[];const s=n.map(Zc),o={_type:"@span",children:[],markType:"<unknown>"};let a=[o];for(let u=0;u<n.length;u++){const c=n[u];if(!c)continue;const d=s[u]||[];let f=1;if(a.length>1)for(f;f<a.length;f++){const m=((r=a[f])==null?void 0:r.markKey)||"",y=d.indexOf(m);if(y===-1)break;d.splice(y,1)}a=a.slice(0,f);let h=a[a.length-1];if(h){for(const m of d){const y=i==null?void 0:i.find(S=>S._key===m),p=y?y._type:m,I={_type:"@span",_key:c._key,children:[],markDef:y,markType:p,markKey:m};h.children.push(I),a.push(I),h=I}if(Vt(c)){const m=c.text.split(` 19`);for(let y=m.length;y-- >1;)m.splice(y,0,` 20`);h.children=h.children.concat(m.map(y=>({_type:"@text",text:y})))}else h.children=h.children.concat(c)}}return o.children}function rl(t,e){const r=[];let n;for(let i=0;i<t.length;i++){const s=t[i];if(s){if(!ls(s)){r.push(s),n=void 0;continue}if(!n){n=Rt(s,i,e),r.push(n);continue}if(nl(s,n)){n.children.push(s);continue}if((s.level||1)>n.level){const o=Rt(s,i,e);if(e==="html"){const a=n.children[n.children.length-1],u=On(On({},a),{},{children:[...a.children,o]});n.children[n.children.length-1]=u}else n.children.push(o);n=o;continue}if((s.level||1)<n.level){const o=r[r.length-1],a=o&&vr(o,s);if(a){n=a,n.children.push(s);continue}n=Rt(s,i,e),r.push(n);continue}if(s.listItem!==n.listItem){const o=r[r.length-1],a=o&&vr(o,{level:s.level||1});if(a&&a.listItem===s.listItem){n=a,n.children.push(s);continue}else{n=Rt(s,i,e),r.push(n);continue}}console.warn("Unknown state encountered for block",s),r.push(s)}}return r}function nl(t,e){return(t.level||1)===e.level&&t.listItem===e.listItem}function Rt(t,e,r){return{_type:"@list",_key:`${t._key||`${e}`}-parent`,mode:r,level:t.level||1,listItem:t.listItem,children:[t]}}function vr(t,e){const r=e.level||1,n=e.listItem||"normal",i=typeof e.listItem=="string";if(fs(t)&&(t.level||1)===r&&i&&(t.listItem||"normal")===n)return t;if(!("children"in t))return;const s=t.children[t.children.length-1];return s&&!Vt(s)?vr(s,e):void 0}function ps(t){let e="";return t.children.forEach(r=>{hs(r)?e+=r.text:ds(r)&&(e+=ps(r))}),e}const il="html";function sl(t,e){const{block:r,list:n,listItem:i,marks:s,types:o,...a}=e;return{...t,block:st(t,e,"block"),list:st(t,e,"list"),listItem:st(t,e,"listItem"),marks:st(t,e,"marks"),types:st(t,e,"types"),...a}}function st(t,e,r){const n=e[r],i=t[r];return typeof n=="function"||n&&typeof i=="function"?n:n?{...i,...n}:i}const H=t=>(e,{slots:r})=>{var n;return L(t,(n=r.default)==null?void 0:n.call(r))},ol=({value:t},{slots:e})=>{var r;return L("a",{href:t==null?void 0:t.href},(r=e.default)==null?void 0:r.call(e))},al={textDecoration:"underline"},ul={code:H("code"),em:H("em"),link:ol,"strike-through":H("del"),strong:H("strong"),underline:(t,{slots:e})=>{var r;return L("span",{style:al},(r=e.default)==null?void 0:r.call(e))}},cl={number:H("ol"),bullet:H("ul")},ll=H("li"),At=(t,e)=>`[@portabletext/vue] Unknown ${t}, specify a component for it in the \`components.${e}\` prop`,ms=t=>At(`block type "${t}"`,"types"),fl=t=>At(`mark type "${t}"`,"marks"),dl=t=>At(`block style "${t}"`,"block"),hl=t=>At(`list style "${t}"`,"list"),pl=t=>At(`list item style "${t}"`,"listItem");function ml(t){console.warn(t)}const kn={display:"none"},yl=({value:t,isInline:e})=>{const r=ms(t._type);return e?L("span",{style:kn},r):L("div",{style:kn},r)},gl=({markType:t},{slots:e})=>{var r;return L("span",{class:`unknown__pt__mark__${t}`},(r=e.default)==null?void 0:r.call(e))},vl=H("p"),bl=H("ul"),wl=H("li"),_l=()=>L("br"),Il={normal:H("p"),blockquote:H("blockquote"),h1:H("h1"),h2:H("h2"),h3:H("h3"),h4:H("h4"),h5:H("h5"),h6:H("h6")},jn={types:{},block:Il,marks:ul,list:cl,listItem:ll,hardBreak:_l,unknownType:yl,unknownMark:gl,unknownList:bl,unknownListItem:wl,unknownBlockStyle:vl},Sl=(t,e)=>{function r(f){const{node:h,index:m,isInline:y}=f,p=h._key||`node-${m}`;return fs(h)?s(h,m,p):ls(h)?i(h,m,p):ds(h)?o(h,m,p):n(h)?d(h,m,p,y):cs(h)?a(h,m,p,y):hs(h)?u(h,p):c(h,m,p,y)}
20function n(f){return f._type in t.types}function i(f,h,m){const y=Tn({node:f,index:h,isInline:!1,renderNode:r}),p=t.listItem,I=(typeof p=="function"?p:p[f.listItem])||t.unknownListItem;if(I===t.unknownListItem){const x=f.listItem||"bullet";e(pl(x),{type:x,nodeType:"listItemStyle"})}let S=y.children;if(f.style&&f.style!=="normal"){const{listItem:x,...w}=f;S=r({node:w,index:h,isInline:!1})}return L(I,{key:m,value:f,index:h,isInline:!1,renderNode:r},()=>S)}function s(f,h,m){const y=f.children.map((S,x)=>r({node:S._key?S:{...S,_key:`li-${h}-${x}`},index:x,isInline:!1})),p=t.list,I=(typeof p=="function"?p:p[f.listItem])||t.unknownList;if(I===t.unknownList){const S=f.listItem||"bullet";e(hl(S),{nodeType:"listStyle",type:S})}return L(I,{key:m,value:f,index:h,isInline:!1,renderNode:r},()=>y)}function o(f,h,m){const{markDef:y,markType:p,markKey:I}=f,S=t.marks[p]||t.unknownMark,x=f.children.map((w,C)=>r({node:w,index:C,isInline:!0}));return S===t.unknownMark&&e(fl(p),{nodeType:"mark",type:p}),L(S,{key:m,text:ps(f),value:y,markType:p,markKey:I,renderNode:r},()=>x)}function a(f,h,m,y){const{_key:p,children:I,...S}=Tn({node:f,index:h,isInline:y,renderNode:r}),x=S.node.style||"normal",w=(typeof t.block=="function"?t.block:t.block[x])||t.unknownBlockStyle;return w===t.unknownBlockStyle&&e(dl(x),{nodeType:"blockStyle",type:x}),L(w,{key:m,...S,value:S.node,renderNode:r},()=>I)}function u(f,h){if(f.text===` 21`){const m=t.hardBreak;return m?L(m,{key:h}):` 22`}return f.text}function c(f,h,m,y){const p={value:f,isInline:y,index:h,renderNode:r};e(ms(f._type),{nodeType:"block",type:f._type});const I=t.unknownType;return L(I,{key:m,...p})}function d(f,h,m,y){const p={value:f,isInline:y,index:h,renderNode:r},I=t.types[f._type];return I?L(I,{key:m,...p}):void 0}return r};function Tn(t){const{node:e,index:r,isInline:n,renderNode:i}=t,s=tl(e).map((o,a)=>i({node:o,isInline:!0,index:a,renderNode:i}));return{_key:e._key||`block-${r}`,children:s,index:r,isInline:n,node:e}}const xl=Re({__name:"vue-portable-text",props:{value:{},components:{},onMissingComponent:{type:[Function,Boolean],default:()=>ml},listNestingMode:{}},setup(t){function e(){}const r=t,n=()=>{const i=r.onMissingComponent||e,s=Array.isArray(r.value)?r.value:[r.value],o=rl(s,r.listNestingMode||il),a=r.components?sl(jn,r.components):jn,u=Sl(a,i);return o.map((c,d)=>u({node:c,index:d,isInline:!1,renderNode:u}))};return(i,s)=>(V(),Qt(n))}}),El=Jc("ButtonGroup"),Cl=Re({__name:"MySanityContent",props:{blocks:{type:Object}},setup(t,{expose:e}){e();const n={serializers:{types:{table:i=>L(Rc,i.value),dynamicTable:i=>L(Nc,i.value),image:i=>{var u,c,d,f,h;const s=Oc((c=(u=i==null?void 0:i.value)==null?void 0:u.asset)==null?void 0:c._ref);if(!s)return L("div",{class:"portable-text-media-error"},"Image not found");const a=`https://gtgarage.nl/cdn-cgi/image/format=auto,quality=65/${s.url()}`;return L(So,{src:a,alt:((d=i==null?void 0:i.value)==null?void 0:d.alt)||((h=(f=i==null?void 0:i.value)==null?void 0:f.asset)==null?void 0:h._ref)||"Image",class:"portable-text-media",loading:"lazy",format:"auto",quality:65})},buttonGroup:i=>L(El,i.value)},marks:{link:i=>{var s;return L(Ls,{to:(s=i==null?void 0:i.value)==null?void 0:s.href,title:i==null?void 0:i.text},()=>[i==null?void 0:i.text])},textColor:i=>L("span",{style:{color:i.value.value}},i==null?void 0:i.text)}},get PortableText(){return xl}};return Object.defineProperty(n,"__isScriptSetup",{enumerable:!1,value:!0}),n}});function $l(t,e,r,n,i,s){return r.blocks?(V(),Qt(n.PortableText,{key:0,value:r.blocks,components:n.serializers},null,8,["value"])):hr("",!0)}const Ol=St(Cl,[["render",$l],["__scopeId","data-v-a0c70649"],["__file","MySanityContent.vue"]]);export{ql as C,Ol as _,So as a,Hs as h,_i as i,Oc 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.