import{a as On,b as Tn}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-IYNW5SVS.js";import{g as En,i as Sn,t as An}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-GGLN43CD.js";import{a as Ac}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-3J4WCF6S.js";import{a as xn}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-PWZZZ4OU.js";import{b as g,d as W}from"https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/chunk-M7YV7QAJ.js";var vr=g((jy,Rn)=>{function Oc(e,t){for(var r=-1,n=t.length,i=e.length;++r{var Tc=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;Pn.exports=Tc});var K=g(($y,In)=>{var Rc=br(),Pc=typeof self=="object"&&self&&self.Object===Object&&self,Ic=Rc||Pc||Function("return this")();In.exports=Ic});var Ue=g((Uy,qn)=>{var qc=K(),Mc=qc.Symbol;qn.exports=Mc});var kn=g((Ny,Fn)=>{var Mn=Ue(),Dn=Object.prototype,Dc=Dn.hasOwnProperty,Fc=Dn.toString,Ne=Mn?Mn.toStringTag:void 0;function kc(e){var t=Dc.call(e,Ne),r=e[Ne];try{e[Ne]=void 0;var n=!0}catch{}var i=Fc.call(e);return n&&(t?e[Ne]=r:delete e[Ne]),i}Fn.exports=kc});var Ln=g((Wy,jn)=>{var jc=Object.prototype,Lc=jc.toString;function $c(e){return Lc.call(e)}jn.exports=$c});var ye=g((zy,Nn)=>{var $n=Ue(),Uc=kn(),Nc=Ln(),Wc="[object Null]",zc="[object Undefined]",Un=$n?$n.toStringTag:void 0;function Gc(e){return e==null?e===void 0?zc:Wc:Un&&Un in Object(e)?Uc(e):Nc(e)}Nn.exports=Gc});var ve=g((Gy,Wn)=>{function Hc(e){return e!=null&&typeof e=="object"}Wn.exports=Hc});var Gn=g((Hy,zn)=>{var Bc=ye(),Vc=ve(),Kc="[object Arguments]";function Jc(e){return Vc(e)&&Bc(e)==Kc}zn.exports=Jc});var wr=g((By,Vn)=>{var Hn=Gn(),Yc=ve(),Bn=Object.prototype,Qc=Bn.hasOwnProperty,Xc=Bn.propertyIsEnumerable,Zc=Hn(function(){return arguments}())?Hn:function(e){return Yc(e)&&Qc.call(e,"callee")&&!Xc.call(e,"callee")};Vn.exports=Zc});var We=g((Vy,Kn)=>{var el=Array.isArray;Kn.exports=el});var Xn=g((Ky,Qn)=>{var Jn=Ue(),tl=wr(),rl=We(),Yn=Jn?Jn.isConcatSpreadable:void 0;function nl(e){return rl(e)||tl(e)||!!(Yn&&e&&e[Yn])}Qn.exports=nl});var ti=g((Jy,ei)=>{var il=vr(),sl=Xn();function Zn(e,t,r,n,i){var s=-1,o=e.length;for(r||(r=sl),i||(i=[]);++s0&&r(a)?t>1?Zn(a,t-1,r,n,i):il(i,a):n||(i[i.length]=a)}return i}ei.exports=Zn});var ni=g((Yy,ri)=>{var ol=ti();function al(e){var t=e==null?0:e.length;return t?ol(e,1):[]}ri.exports=al});var si=g((Qy,ii)=>{function ul(e){for(var t=-1,r=e==null?0:e.length,n=0,i=[];++t{function cl(){this.__data__=[],this.size=0}oi.exports=cl});var _r=g((Zy,ui)=>{function ll(e,t){return e===t||e!==e&&t!==t}ui.exports=ll});var ze=g((ev,ci)=>{var fl=_r();function hl(e,t){for(var r=e.length;r--;)if(fl(e[r][0],t))return r;return-1}ci.exports=hl});var fi=g((tv,li)=>{var pl=ze(),dl=Array.prototype,gl=dl.splice;function ml(e){var t=this.__data__,r=pl(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():gl.call(t,r,1),--this.size,!0}li.exports=ml});var pi=g((rv,hi)=>{var yl=ze();function vl(e){var t=this.__data__,r=yl(t,e);return r<0?void 0:t[r][1]}hi.exports=vl});var gi=g((nv,di)=>{var bl=ze();function wl(e){return bl(this.__data__,e)>-1}di.exports=wl});var yi=g((iv,mi)=>{var _l=ze();function Cl(e,t){var r=this.__data__,n=_l(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}mi.exports=Cl});var Ge=g((sv,vi)=>{var xl=ai(),El=fi(),Sl=pi(),Al=gi(),Ol=yi();function be(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var Tl=Ge();function Rl(){this.__data__=new Tl,this.size=0}bi.exports=Rl});var Ci=g((av,_i)=>{function Pl(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}_i.exports=Pl});var Ei=g((uv,xi)=>{function Il(e){return this.__data__.get(e)}xi.exports=Il});var Ai=g((cv,Si)=>{function ql(e){return this.__data__.has(e)}Si.exports=ql});var Cr=g((lv,Oi)=>{function Ml(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Oi.exports=Ml});var xr=g((fv,Ti)=>{var Dl=ye(),Fl=Cr(),kl="[object AsyncFunction]",jl="[object Function]",Ll="[object GeneratorFunction]",$l="[object Proxy]";function Ul(e){if(!Fl(e))return!1;var t=Dl(e);return t==jl||t==Ll||t==kl||t==$l}Ti.exports=Ul});var Pi=g((hv,Ri)=>{var Nl=K(),Wl=Nl["__core-js_shared__"];Ri.exports=Wl});var Mi=g((pv,qi)=>{var Er=Pi(),Ii=function(){var e=/[^.]+$/.exec(Er&&Er.keys&&Er.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function zl(e){return!!Ii&&Ii in e}qi.exports=zl});var Sr=g((dv,Di)=>{var Gl=Function.prototype,Hl=Gl.toString;function Bl(e){if(e!=null){try{return Hl.call(e)}catch{}try{return e+""}catch{}}return""}Di.exports=Bl});var ki=g((gv,Fi)=>{var Vl=xr(),Kl=Mi(),Jl=Cr(),Yl=Sr(),Ql=/[\\^$.*+?()[\]{}|]/g,Xl=/^\[object .+?Constructor\]$/,Zl=Function.prototype,ef=Object.prototype,tf=Zl.toString,rf=ef.hasOwnProperty,nf=RegExp("^"+tf.call(rf).replace(Ql,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sf(e){if(!Jl(e)||Kl(e))return!1;var t=Vl(e)?nf:Xl;return t.test(Yl(e))}Fi.exports=sf});var Li=g((mv,ji)=>{function of(e,t){return e?.[t]}ji.exports=of});var ee=g((yv,$i)=>{var af=ki(),uf=Li();function cf(e,t){var r=uf(e,t);return af(r)?r:void 0}$i.exports=cf});var dt=g((vv,Ui)=>{var lf=ee(),ff=K(),hf=lf(ff,"Map");Ui.exports=hf});var He=g((bv,Ni)=>{var pf=ee(),df=pf(Object,"create");Ni.exports=df});var Gi=g((wv,zi)=>{var Wi=He();function gf(){this.__data__=Wi?Wi(null):{},this.size=0}zi.exports=gf});var Bi=g((_v,Hi)=>{function mf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}Hi.exports=mf});var Ki=g((Cv,Vi)=>{var yf=He(),vf="__lodash_hash_undefined__",bf=Object.prototype,wf=bf.hasOwnProperty;function _f(e){var t=this.__data__;if(yf){var r=t[e];return r===vf?void 0:r}return wf.call(t,e)?t[e]:void 0}Vi.exports=_f});var Yi=g((xv,Ji)=>{var Cf=He(),xf=Object.prototype,Ef=xf.hasOwnProperty;function Sf(e){var t=this.__data__;return Cf?t[e]!==void 0:Ef.call(t,e)}Ji.exports=Sf});var Xi=g((Ev,Qi)=>{var Af=He(),Of="__lodash_hash_undefined__";function Tf(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Af&&t===void 0?Of:t,this}Qi.exports=Tf});var es=g((Sv,Zi)=>{var Rf=Gi(),Pf=Bi(),If=Ki(),qf=Yi(),Mf=Xi();function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var ts=es(),Df=Ge(),Ff=dt();function kf(){this.size=0,this.__data__={hash:new ts,map:new(Ff||Df),string:new ts}}rs.exports=kf});var ss=g((Ov,is)=>{function jf(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}is.exports=jf});var Be=g((Tv,os)=>{var Lf=ss();function $f(e,t){var r=e.__data__;return Lf(t)?r[typeof t=="string"?"string":"hash"]:r.map}os.exports=$f});var us=g((Rv,as)=>{var Uf=Be();function Nf(e){var t=Uf(this,e).delete(e);return this.size-=t?1:0,t}as.exports=Nf});var ls=g((Pv,cs)=>{var Wf=Be();function zf(e){return Wf(this,e).get(e)}cs.exports=zf});var hs=g((Iv,fs)=>{var Gf=Be();function Hf(e){return Gf(this,e).has(e)}fs.exports=Hf});var ds=g((qv,ps)=>{var Bf=Be();function Vf(e,t){var r=Bf(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}ps.exports=Vf});var Ar=g((Mv,gs)=>{var Kf=ns(),Jf=us(),Yf=ls(),Qf=hs(),Xf=ds();function _e(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var Zf=Ge(),eh=dt(),th=Ar(),rh=200;function nh(e,t){var r=this.__data__;if(r instanceof Zf){var n=r.__data__;if(!eh||n.length{var ih=Ge(),sh=wi(),oh=Ci(),ah=Ei(),uh=Ai(),ch=ys();function Ce(e){var t=this.__data__=new ih(e);this.size=t.size}Ce.prototype.clear=sh;Ce.prototype.delete=oh;Ce.prototype.get=ah;Ce.prototype.has=uh;Ce.prototype.set=ch;vs.exports=Ce});var _s=g((kv,ws)=>{var lh="__lodash_hash_undefined__";function fh(e){return this.__data__.set(e,lh),this}ws.exports=fh});var xs=g((jv,Cs)=>{function hh(e){return this.__data__.has(e)}Cs.exports=hh});var Ss=g((Lv,Es)=>{var ph=Ar(),dh=_s(),gh=xs();function gt(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ph;++t{function mh(e,t){for(var r=-1,n=e==null?0:e.length;++r{function yh(e,t){return e.has(t)}Ts.exports=yh});var Or=g((Nv,Ps)=>{var vh=Ss(),bh=Os(),wh=Rs(),_h=1,Ch=2;function xh(e,t,r,n,i,s){var o=r&_h,a=e.length,u=t.length;if(a!=u&&!(o&&u>a))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var f=-1,p=!0,h=r&Ch?new vh:void 0;for(s.set(e,t),s.set(t,e);++f{var Eh=K(),Sh=Eh.Uint8Array;Is.exports=Sh});var Ds=g((zv,Ms)=>{function Ah(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}Ms.exports=Ah});var ks=g((Gv,Fs)=>{function Oh(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}Fs.exports=Oh});var Ns=g((Hv,Us)=>{var js=Ue(),Ls=qs(),Th=_r(),Rh=Or(),Ph=Ds(),Ih=ks(),qh=1,Mh=2,Dh="[object Boolean]",Fh="[object Date]",kh="[object Error]",jh="[object Map]",Lh="[object Number]",$h="[object RegExp]",Uh="[object Set]",Nh="[object String]",Wh="[object Symbol]",zh="[object ArrayBuffer]",Gh="[object DataView]",$s=js?js.prototype:void 0,Tr=$s?$s.valueOf:void 0;function Hh(e,t,r,n,i,s,o){switch(r){case Gh:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case zh:return!(e.byteLength!=t.byteLength||!s(new Ls(e),new Ls(t)));case Dh:case Fh:case Lh:return Th(+e,+t);case kh:return e.name==t.name&&e.message==t.message;case $h:case Nh:return e==t+"";case jh:var a=Ph;case Uh:var u=n&qh;if(a||(a=Ih),e.size!=t.size&&!u)return!1;var c=o.get(e);if(c)return c==t;n|=Mh,o.set(e,t);var l=Rh(a(e),a(t),n,i,s,o);return o.delete(e),l;case Wh:if(Tr)return Tr.call(e)==Tr.call(t)}return!1}Us.exports=Hh});var zs=g((Bv,Ws)=>{var Bh=vr(),Vh=We();function Kh(e,t,r){var n=t(e);return Vh(e)?n:Bh(n,r(e))}Ws.exports=Kh});var Hs=g((Vv,Gs)=>{function Jh(e,t){for(var r=-1,n=e==null?0:e.length,i=0,s=[];++r{function Yh(){return[]}Bs.exports=Yh});var Ys=g((Jv,Js)=>{var Qh=Hs(),Xh=Vs(),Zh=Object.prototype,ep=Zh.propertyIsEnumerable,Ks=Object.getOwnPropertySymbols,tp=Ks?function(e){return e==null?[]:(e=Object(e),Qh(Ks(e),function(t){return ep.call(e,t)}))}:Xh;Js.exports=tp});var Xs=g((Yv,Qs)=>{function rp(e,t){for(var r=-1,n=Array(e);++r{function np(){return!1}Zs.exports=np});var Rr=g((Ve,xe)=>{var ip=K(),sp=eo(),no=typeof Ve=="object"&&Ve&&!Ve.nodeType&&Ve,to=no&&typeof xe=="object"&&xe&&!xe.nodeType&&xe,op=to&&to.exports===no,ro=op?ip.Buffer:void 0,ap=ro?ro.isBuffer:void 0,up=ap||sp;xe.exports=up});var so=g((Xv,io)=>{var cp=9007199254740991,lp=/^(?:0|[1-9]\d*)$/;function fp(e,t){var r=typeof e;return t=t??cp,!!t&&(r=="number"||r!="symbol"&&lp.test(e))&&e>-1&&e%1==0&&e{var hp=9007199254740991;function pp(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=hp}oo.exports=pp});var uo=g((eb,ao)=>{var dp=ye(),gp=Pr(),mp=ve(),yp="[object Arguments]",vp="[object Array]",bp="[object Boolean]",wp="[object Date]",_p="[object Error]",Cp="[object Function]",xp="[object Map]",Ep="[object Number]",Sp="[object Object]",Ap="[object RegExp]",Op="[object Set]",Tp="[object String]",Rp="[object WeakMap]",Pp="[object ArrayBuffer]",Ip="[object DataView]",qp="[object Float32Array]",Mp="[object Float64Array]",Dp="[object Int8Array]",Fp="[object Int16Array]",kp="[object Int32Array]",jp="[object Uint8Array]",Lp="[object Uint8ClampedArray]",$p="[object Uint16Array]",Up="[object Uint32Array]",P={};P[qp]=P[Mp]=P[Dp]=P[Fp]=P[kp]=P[jp]=P[Lp]=P[$p]=P[Up]=!0;P[yp]=P[vp]=P[Pp]=P[bp]=P[Ip]=P[wp]=P[_p]=P[Cp]=P[xp]=P[Ep]=P[Sp]=P[Ap]=P[Op]=P[Tp]=P[Rp]=!1;function Np(e){return mp(e)&&gp(e.length)&&!!P[dp(e)]}ao.exports=Np});var lo=g((tb,co)=>{function Wp(e){return function(t){return e(t)}}co.exports=Wp});var ho=g((Ke,Ee)=>{var zp=br(),fo=typeof Ke=="object"&&Ke&&!Ke.nodeType&&Ke,Je=fo&&typeof Ee=="object"&&Ee&&!Ee.nodeType&&Ee,Gp=Je&&Je.exports===fo,Ir=Gp&&zp.process,Hp=function(){try{var e=Je&&Je.require&&Je.require("util").types;return e||Ir&&Ir.binding&&Ir.binding("util")}catch{}}();Ee.exports=Hp});var qr=g((rb,mo)=>{var Bp=uo(),Vp=lo(),po=ho(),go=po&&po.isTypedArray,Kp=go?Vp(go):Bp;mo.exports=Kp});var vo=g((nb,yo)=>{var Jp=Xs(),Yp=wr(),Qp=We(),Xp=Rr(),Zp=so(),ed=qr(),td=Object.prototype,rd=td.hasOwnProperty;function nd(e,t){var r=Qp(e),n=!r&&Yp(e),i=!r&&!n&&Xp(e),s=!r&&!n&&!i&&ed(e),o=r||n||i||s,a=o?Jp(e.length,String):[],u=a.length;for(var c in e)(t||rd.call(e,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Zp(c,u)))&&a.push(c);return a}yo.exports=nd});var wo=g((ib,bo)=>{var id=Object.prototype;function sd(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||id;return e===r}bo.exports=sd});var Co=g((sb,_o)=>{function od(e,t){return function(r){return e(t(r))}}_o.exports=od});var Eo=g((ob,xo)=>{var ad=Co(),ud=ad(Object.keys,Object);xo.exports=ud});var Ao=g((ab,So)=>{var cd=wo(),ld=Eo(),fd=Object.prototype,hd=fd.hasOwnProperty;function pd(e){if(!cd(e))return ld(e);var t=[];for(var r in Object(e))hd.call(e,r)&&r!="constructor"&&t.push(r);return t}So.exports=pd});var To=g((ub,Oo)=>{var dd=xr(),gd=Pr();function md(e){return e!=null&&gd(e.length)&&!dd(e)}Oo.exports=md});var Po=g((cb,Ro)=>{var yd=vo(),vd=Ao(),bd=To();function wd(e){return bd(e)?yd(e):vd(e)}Ro.exports=wd});var qo=g((lb,Io)=>{var _d=zs(),Cd=Ys(),xd=Po();function Ed(e){return _d(e,xd,Cd)}Io.exports=Ed});var Fo=g((fb,Do)=>{var Mo=qo(),Sd=1,Ad=Object.prototype,Od=Ad.hasOwnProperty;function Td(e,t,r,n,i,s){var o=r&Sd,a=Mo(e),u=a.length,c=Mo(t),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var p=a[f];if(!(o?p in t:Od.call(t,p)))return!1}var h=s.get(e),y=s.get(t);if(h&&y)return h==t&&y==e;var d=!0;s.set(e,t),s.set(t,e);for(var v=o;++f{var Rd=ee(),Pd=K(),Id=Rd(Pd,"DataView");ko.exports=Id});var $o=g((pb,Lo)=>{var qd=ee(),Md=K(),Dd=qd(Md,"Promise");Lo.exports=Dd});var No=g((db,Uo)=>{var Fd=ee(),kd=K(),jd=Fd(kd,"Set");Uo.exports=jd});var zo=g((gb,Wo)=>{var Ld=ee(),$d=K(),Ud=Ld($d,"WeakMap");Wo.exports=Ud});var Qo=g((mb,Yo)=>{var Mr=jo(),Dr=dt(),Fr=$o(),kr=No(),jr=zo(),Jo=ye(),Se=Sr(),Go="[object Map]",Nd="[object Object]",Ho="[object Promise]",Bo="[object Set]",Vo="[object WeakMap]",Ko="[object DataView]",Wd=Se(Mr),zd=Se(Dr),Gd=Se(Fr),Hd=Se(kr),Bd=Se(jr),te=Jo;(Mr&&te(new Mr(new ArrayBuffer(1)))!=Ko||Dr&&te(new Dr)!=Go||Fr&&te(Fr.resolve())!=Ho||kr&&te(new kr)!=Bo||jr&&te(new jr)!=Vo)&&(te=function(e){var t=Jo(e),r=t==Nd?e.constructor:void 0,n=r?Se(r):"";if(n)switch(n){case Wd:return Ko;case zd:return Go;case Gd:return Ho;case Hd:return Bo;case Bd:return Vo}return t});Yo.exports=te});var sa=g((yb,ia)=>{var Lr=bs(),Vd=Or(),Kd=Ns(),Jd=Fo(),Xo=Qo(),Zo=We(),ea=Rr(),Yd=qr(),Qd=1,ta="[object Arguments]",ra="[object Array]",mt="[object Object]",Xd=Object.prototype,na=Xd.hasOwnProperty;function Zd(e,t,r,n,i,s){var o=Zo(e),a=Zo(t),u=o?ra:Xo(e),c=a?ra:Xo(t);u=u==ta?mt:u,c=c==ta?mt:c;var l=u==mt,f=c==mt,p=u==c;if(p&&ea(e)){if(!ea(t))return!1;o=!0,l=!1}if(p&&!l)return s||(s=new Lr),o||Yd(e)?Vd(e,t,r,n,i,s):Kd(e,t,u,r,n,i,s);if(!(r&Qd)){var h=l&&na.call(e,"__wrapped__"),y=f&&na.call(t,"__wrapped__");if(h||y){var d=h?e.value():e,v=y?t.value():t;return s||(s=new Lr),i(d,v,r,n,s)}}return p?(s||(s=new Lr),Jd(e,t,r,n,i,s)):!1}ia.exports=Zd});var ca=g((vb,ua)=>{var eg=sa(),oa=ve();function aa(e,t,r,n,i){return e===t?!0:e==null||t==null||!oa(e)&&!oa(t)?e!==e&&t!==t:eg(e,t,r,n,aa,i)}ua.exports=aa});var fa=g((bb,la)=>{var tg=ca();function rg(e,t){return tg(e,t)}la.exports=rg});var pa=g((wb,ha)=>{var ng=ye(),ig=ve(),sg="[object Symbol]";function og(e){return typeof e=="symbol"||ig(e)&&ng(e)==sg}ha.exports=og});var $r=g((_b,da)=>{var ag=pa();function ug(e,t,r){for(var n=-1,i=e.length;++n{function cg(e,t){return e{function lg(e){return e}ya.exports=lg});var ba=g((Eb,va)=>{var fg=$r(),hg=ma(),pg=Ur();function dg(e){return e&&e.length?fg(e,pg,hg):void 0}va.exports=dg});var _a=g((Sb,wa)=>{function gg(e,t){return e>t}wa.exports=gg});var xa=g((Ab,Ca)=>{var mg=$r(),yg=_a(),vg=Ur();function bg(e){return e&&e.length?mg(e,vg,yg):void 0}Ca.exports=bg});var Ea=g((Ob,Ae)=>{var m=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},T=-1,R=1,E=0;m.Diff=function(e,t){return[e,t]};m.prototype.diff_main=function(e,t,r,n){typeof n>"u"&&(this.Diff_Timeout<=0?n=Number.MAX_VALUE:n=new Date().getTime()+this.Diff_Timeout*1e3);var i=n;if(e==null||t==null)throw new Error("Null input. (diff_main)");if(e==t)return e?[new m.Diff(E,e)]:[];typeof r>"u"&&(r=!0);var s=r,o=this.diff_commonPrefix(e,t),a=e.substring(0,o);e=e.substring(o),t=t.substring(o),o=this.diff_commonSuffix(e,t);var u=e.substring(e.length-o);e=e.substring(0,e.length-o),t=t.substring(0,t.length-o);var c=this.diff_compute_(e,t,s,i);return a&&c.unshift(new m.Diff(E,a)),u&&c.push(new m.Diff(E,u)),this.diff_cleanupMerge(c),c};m.prototype.diff_compute_=function(e,t,r,n){var i;if(!e)return[new m.Diff(R,t)];if(!t)return[new m.Diff(T,e)];var s=e.length>t.length?e:t,o=e.length>t.length?t:e,a=s.indexOf(o);if(a!=-1)return i=[new m.Diff(R,s.substring(0,a)),new m.Diff(E,o),new m.Diff(R,s.substring(a+o.length))],e.length>t.length&&(i[0][0]=i[2][0]=T),i;if(o.length==1)return[new m.Diff(T,e),new m.Diff(R,t)];var u=this.diff_halfMatch_(e,t);if(u){var c=u[0],l=u[1],f=u[2],p=u[3],h=u[4],y=this.diff_main(c,f,r,n),d=this.diff_main(l,p,r,n);return y.concat([new m.Diff(E,h)],d)}return r&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,n):this.diff_bisect_(e,t,n)};m.prototype.diff_lineMode_=function(e,t,r){var n=this.diff_linesToChars_(e,t);e=n.chars1,t=n.chars2;var i=n.lineArray,s=this.diff_main(e,t,!1,r);this.diff_charsToLines_(s,i),this.diff_cleanupSemantic(s),s.push(new m.Diff(E,""));for(var o=0,a=0,u=0,c="",l="";o=1&&u>=1){s.splice(o-a-u,a+u),o=o-a-u;for(var f=this.diff_main(c,l,!1,r),p=f.length-1;p>=0;p--)s.splice(o,0,f[p]);o=o+f.length}u=0,a=0,c="",l="";break}o++}return s.pop(),s};m.prototype.diff_bisect_=function(e,t,r){for(var n=e.length,i=t.length,s=Math.ceil((n+i)/2),o=s,a=2*s,u=new Array(a),c=new Array(a),l=0;lr);b++){for(var w=-b+h;w<=b-y;w+=2){var x=o+w,_;w==-b||w!=b&&u[x-1]n)y+=2;else if(C>i)h+=2;else if(p){var A=o+f-w;if(A>=0&&A=O)return this.diff_bisectSplit_(e,t,_,C,r)}}}for(var I=-b+d;I<=b-v;I+=2){var A=o+I,O;I==-b||I!=b&&c[A-1]n)v+=2;else if(k>i)d+=2;else if(!p){var x=o+f-I;if(x>=0&&x=O)return this.diff_bisectSplit_(e,t,_,C,r)}}}}return[new m.Diff(T,e),new m.Diff(R,t)]};m.prototype.diff_bisectSplit_=function(e,t,r,n,i){var s=e.substring(0,r),o=t.substring(0,n),a=e.substring(r),u=t.substring(n),c=this.diff_main(s,o,!1,i),l=this.diff_main(a,u,!1,i);return c.concat(l)};m.prototype.diff_linesToChars_=function(e,t){var r=[],n={};r[0]="";function i(u){for(var c="",l=0,f=-1,p=r.length;fn?e=e.substring(r-n):rt.length?e:t,n=e.length>t.length?t:e;if(r.length<4||n.length*2=y.length?[_,C,A,O,x]:null}var o=s(r,n,Math.ceil(r.length/4)),a=s(r,n,Math.ceil(r.length/2)),u;if(!o&&!a)return null;a?o?u=o[4].length>a[4].length?o:a:u=a:u=o;var c,l,f,p;e.length>t.length?(c=u[0],l=u[1],f=u[2],p=u[3]):(f=u[0],p=u[1],c=u[2],l=u[3]);var h=u[4];return[c,l,f,p,h]};m.prototype.diff_cleanupSemantic=function(e){for(var t=!1,r=[],n=0,i=null,s=0,o=0,a=0,u=0,c=0;s0?r[n-1]:-1,o=0,a=0,u=0,c=0,i=null,t=!0)),s++;for(t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s=h?(p>=l.length/2||p>=f.length/2)&&(e.splice(s,0,new m.Diff(E,f.substring(0,p))),e[s-1][1]=l.substring(0,l.length-p),e[s+1][1]=f.substring(p),s++):(h>=l.length/2||h>=f.length/2)&&(e.splice(s,0,new m.Diff(E,l.substring(0,h))),e[s-1][0]=R,e[s-1][1]=f.substring(0,f.length-h),e[s+1][0]=T,e[s+1][1]=l.substring(h),s++),s++}s++}};m.prototype.diff_cleanupSemanticLossless=function(e){function t(h,y){if(!h||!y)return 6;var d=h.charAt(h.length-1),v=y.charAt(0),b=d.match(m.nonAlphaNumericRegex_),w=v.match(m.nonAlphaNumericRegex_),x=b&&d.match(m.whitespaceRegex_),_=w&&v.match(m.whitespaceRegex_),C=x&&d.match(m.linebreakRegex_),A=_&&v.match(m.linebreakRegex_),O=C&&h.match(m.blanklineEndRegex_),I=A&&y.match(m.blanklineStartRegex_);return O||I?5:C||A?4:b&&!x&&_?3:x||_?2:b||w?1:0}for(var r=1;r=f&&(f=p,u=n,c=i,l=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,l?e[r+1][1]=l:(e.splice(r+1,1),r--))}r++}};m.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;m.whitespaceRegex_=/\s/;m.linebreakRegex_=/[\r\n]/;m.blanklineEndRegex_=/\n\r?\n$/;m.blanklineStartRegex_=/^\r?\n\r?\n/;m.prototype.diff_cleanupEfficiency=function(e){for(var t=!1,r=[],n=0,i=null,s=0,o=!1,a=!1,u=!1,c=!1;s0?r[n-1]:-1,u=c=!1),t=!0)),s++;t&&this.diff_cleanupMerge(e)};m.prototype.diff_cleanupMerge=function(e){e.push(new m.Diff(E,""));for(var t=0,r=0,n=0,i="",s="",o;t1?(r!==0&&n!==0&&(o=this.diff_commonPrefix(s,i),o!==0&&(t-r-n>0&&e[t-r-n-1][0]==E?e[t-r-n-1][1]+=s.substring(0,o):(e.splice(0,0,new m.Diff(E,s.substring(0,o))),t++),s=s.substring(o),i=i.substring(o)),o=this.diff_commonSuffix(s,i),o!==0&&(e[t][1]=s.substring(s.length-o)+e[t][1],s=s.substring(0,s.length-o),i=i.substring(0,i.length-o))),t-=r+n,e.splice(t,r+n),i.length&&(e.splice(t,0,new m.Diff(T,i)),t++),s.length&&(e.splice(t,0,new m.Diff(R,s)),t++),t++):t!==0&&e[t-1][0]==E?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,i="",s="";break}e[e.length-1][1]===""&&e.pop();var a=!1;for(t=1;tt));o++)i=r,s=n;return e.length!=o&&e[o][0]===T?s:s+(t-i)};m.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,n=//g,s=/\n/g,o=0;o");switch(a){case R:t[o]=''+c+"";break;case T:t[o]=''+c+"";break;case E:t[o]=""+c+"";break}}return t.join("")};m.prototype.diff_text1=function(e){for(var t=[],r=0;rthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(t),i=this;function s(_,C){var A=_/t.length,O=Math.abs(r-C);return i.Match_Distance?A+O/i.Match_Distance:O?1:A}var o=this.Match_Threshold,a=e.indexOf(t,r);a!=-1&&(o=Math.min(s(0,a),o),a=e.lastIndexOf(t,r+t.length),a!=-1&&(o=Math.min(s(0,a),o)));var u=1<=y;b--){var w=n[e.charAt(b-1)];if(h===0?v[b]=(v[b+1]<<1|1)&w:v[b]=(v[b+1]<<1|1)&w|((p[b+1]|p[b])<<1|1)|p[b+1],v[b]&u){var x=s(h,b-1);if(x<=o)if(o=x,a=b-1,a>r)y=Math.max(1,2*r-a);else break}}if(s(h+1,r)>o)break;p=v}return a};m.prototype.match_alphabet_=function(e){for(var t={},r=0;r"u")n=e,i=this.diff_main(n,t,!0),i.length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&typeof e=="object"&&typeof t>"u"&&typeof r>"u")i=e,n=this.diff_text1(i);else if(typeof e=="string"&&t&&typeof t=="object"&&typeof r>"u")n=e,i=t;else if(typeof e=="string"&&typeof t=="string"&&r&&typeof r=="object")n=e,i=r;else throw new Error("Unknown call format to patch_make.");if(i.length===0)return[];for(var s=[],o=new m.patch_obj,a=0,u=0,c=0,l=n,f=n,p=0;p=2*this.Patch_Margin&&a&&(this.patch_addContext_(o,l),s.push(o),o=new m.patch_obj,a=0,l=f,u=c);break}h!==R&&(u+=y.length),h!==T&&(c+=y.length)}return a&&(this.patch_addContext_(o,l),s.push(o)),s};m.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(u=this.match_main(t,a.substring(0,this.Match_MaxBits),o),u!=-1&&(c=this.match_main(t,a.substring(a.length-this.Match_MaxBits),o+a.length-this.Match_MaxBits),(c==-1||u>=c)&&(u=-1))):u=this.match_main(t,a,o),u==-1)i[s]=!1,n-=e[s].length2-e[s].length1;else{i[s]=!0,n=u-o;var l;if(c==-1?l=t.substring(u,u+a.length):l=t.substring(u,c+this.Match_MaxBits),a==l)t=t.substring(0,u)+this.diff_text2(e[s].diffs)+t.substring(u+a.length);else{var f=this.diff_main(a,l,!1);if(a.length>this.Match_MaxBits&&this.diff_levenshtein(f)/a.length>this.Patch_DeleteThreshold)i[s]=!1;else{this.diff_cleanupSemanticLossless(f);for(var p=0,h,y=0;ys[0][1].length){var o=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],i.start1-=o,i.start2-=o,i.length1+=o,i.length2+=o}if(i=e[e.length-1],s=i.diffs,s.length==0||s[s.length-1][0]!=E)s.push(new m.Diff(E,r)),i.length1+=t,i.length2+=t;else if(t>s[s.length-1][1].length){var o=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,o),i.length1+=o,i.length2+=o}return r};m.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,r=0;r2*t?(a.length1+=l.length,i+=l.length,u=!1,a.diffs.push(new m.Diff(c,l)),n.diffs.shift()):(l=l.substring(0,t-a.length1-this.Patch_Margin),a.length1+=l.length,i+=l.length,c===E?(a.length2+=l.length,s+=l.length):u=!1,a.diffs.push(new m.Diff(c,l)),l==n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(l.length))}o=this.diff_text2(a.diffs),o=o.substring(o.length-this.Patch_Margin);var f=this.diff_text1(n.diffs).substring(0,this.Patch_Margin);f!==""&&(a.length1+=f.length,a.length2+=f.length,a.diffs.length!==0&&a.diffs[a.diffs.length-1][0]===E?a.diffs[a.diffs.length-1][1]+=f:a.diffs.push(new m.Diff(E,f))),u||e.splice(++r,0,a)}}};m.prototype.patch_toText=function(e){for(var t=[],r=0;r{var Oe=1e3,Te=Oe*60,Re=Te*60,re=Re*24,wg=re*7,_g=re*365.25;Sa.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return Cg(e);if(r==="number"&&isFinite(e))return t.long?Eg(e):xg(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Cg(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),n=(t[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*_g;case"weeks":case"week":case"w":return r*wg;case"days":case"day":case"d":return r*re;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Re;case"minutes":case"minute":case"mins":case"min":case"m":return r*Te;case"seconds":case"second":case"secs":case"sec":case"s":return r*Oe;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function xg(e){var t=Math.abs(e);return t>=re?Math.round(e/re)+"d":t>=Re?Math.round(e/Re)+"h":t>=Te?Math.round(e/Te)+"m":t>=Oe?Math.round(e/Oe)+"s":e+"ms"}function Eg(e){var t=Math.abs(e);return t>=re?yt(e,t,re,"day"):t>=Re?yt(e,t,Re,"hour"):t>=Te?yt(e,t,Te,"minute"):t>=Oe?yt(e,t,Oe,"second"):e+" ms"}function yt(e,t,r,n){var i=t>=r*1.5;return Math.round(e/r)+" "+n+(i?"s":"")}});var Oa=g((Rb,Aa)=>{"use strict";function Sg(e){r.debug=r,r.default=r,r.coerce=u,r.disable=o,r.enable=s,r.enabled=a,r.humanize=Nr(),Object.keys(e).forEach(function(c){r[c]=e[c]}),r.instances=[],r.names=[],r.skips=[],r.formatters={};function t(c){for(var l=0,f=0;f"u"?":":l)+c)}function s(c){r.save(c),r.names=[],r.skips=[];var l,f=(typeof c=="string"?c:"").split(/[\s,]+/),p=f.length;for(l=0;l{"use strict";function vt(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vt=function(r){return typeof r}:vt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},vt(e)}z.log=Tg;z.formatArgs=Og;z.save=Rg;z.load=Pg;z.useColors=Ag;z.storage=Ig();z.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"];function Ag(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Og(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+bt.exports.humanize(this.diff),!!this.useColors){var t="color: "+this.color;e.splice(1,0,t,"color: inherit");var r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,function(i){i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}}function Tg(){var e;return(typeof console>"u"?"undefined":vt(console))==="object"&&console.log&&(e=console).log.apply(e,arguments)}function Rg(e){try{e?z.storage.setItem("debug",e):z.storage.removeItem("debug")}catch{}}function Pg(){var e;try{e=z.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Ig(){try{return localStorage}catch{}}bt.exports=Oa()(z);var qg=bt.exports.formatters;qg.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var ka=g((kb,Fa)=>{var Wr=function(e){return e.replace(/^\s+|\s+$/g,"")},Ng=function(e){return Object.prototype.toString.call(e)==="[object Array]"};Fa.exports=function(e){if(!e)return{};for(var t={},r=Wr(e).split(` `),n=0;n"u"?t[o]=a:Ng(t[o])?t[o].push(a):t[o]=[t[o],a]}return t}});var za=g(($b,Wa)=>{function Vg(e){r.debug=r,r.default=r,r.coerce=u,r.disable=s,r.enable=i,r.enabled=o,r.humanize=Nr(),r.destroy=c,Object.keys(e).forEach(l=>{r[l]=e[l]}),r.names=[],r.skips=[],r.formatters={};function t(l){let f=0;for(let p=0;p{if(A==="%%")return"%";_++;let I=r.formatters[O];if(typeof I=="function"){let k=v[_];A=I.call(b,k),v.splice(_,1),_--}return A}),r.formatArgs.call(b,v),(b.log||r.log).apply(b,v)}return d.namespace=l,d.useColors=r.useColors(),d.color=r.selectColor(l),d.extend=n,d.destroy=r.destroy,Object.defineProperty(d,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(h!==r.namespaces&&(h=r.namespaces,y=r.enabled(l)),y),set:v=>{p=v}}),typeof r.init=="function"&&r.init(d),d}function n(l,f){let p=r(this.namespace+(typeof f>"u"?":":f)+l);return p.log=this.log,p}function i(l){r.save(l),r.namespaces=l,r.names=[],r.skips=[];let f,p=(typeof l=="string"?l:"").split(/[\s,]+/),h=p.length;for(f=0;f"-"+f)].join(",");return r.enable(""),l}function o(l){if(l[l.length-1]==="*")return!0;let f,p;for(f=0,p=r.skips.length;f{N.formatArgs=Jg;N.save=Yg;N.load=Qg;N.useColors=Kg;N.storage=Xg();N.destroy=(()=>{let e=!1;return()=>{e||(e=!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`."))}})();N.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"];function Kg(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1: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&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function Jg(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+At.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,n=0;e[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),e.splice(n,0,t)}N.log=console.debug||console.log||(()=>{});function Yg(e){try{e?N.storage.setItem("debug",e):N.storage.removeItem("debug")}catch{}}function Qg(){let e;try{e=N.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function Xg(){try{return localStorage}catch{}}At.exports=za()(N);var{formatters:Zg}=At.exports;Zg.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Mg=W(ni()),Dg=W(si()),Fg=W(fa()),kg=W(ba()),jg=W(xa()),Ra=W(Ea());var Pa=W(Ta());var Lg={operator:["..",".",",",":","?"],comparator:[">",">=","<","<=","==","!="],keyword:["$","@"],boolean:["true","false"],paren:["[","]"]},Pb=Object.keys(Lg);var Ib=new Ra.diff_match_patch;var qb=(0,Pa.default)("mutator-document");var Mb=1e3*60;var $g=typeof navigator>"u"?!1:navigator.product==="ReactNative",Ia={timeout:$g?6e4:12e4},qa=function(t){let r={...Ia,...typeof t=="string"?{url:t}:t},{searchParams:n}=new URL(r.url,"http://localhost");if(r.timeout=Ma(r.timeout),r.query){for(let[o,a]of Object.entries(r.query))if(a!==void 0)if(Array.isArray(a))for(let u of a)n.append(o,u);else n.append(o,a)}let[i]=r.url.split("?"),s=n.toString();return s&&(r.url="".concat(i,"?").concat(s)),r.method=r.body&&!r.method?"POST":(r.method||"GET").toUpperCase(),r};function Ma(e){if(e===!1||e===0)return!1;if(e.connect||e.socket)return e;let t=Number(e);return isNaN(t)?Ma(Ia.timeout):{connect:t,socket:t}}var Ug=/^https?:\/\//i,Da=function(t){if(!Ug.test(t.url))throw new Error('"'.concat(t.url,'" is not a valid URL'))};var La=W(ka(),1),Wg=e=>function(r,n){let i=r==="onError",s=n;for(var o=arguments.length,a=new Array(o>2?o-2:0),u=2;u(s[o]=s[o]||[],s),{processOptions:[qa],validateOptions:[Da]});function i(s){let o=(y,d,v)=>{let b=y,w=d;if(!b)try{w=u("onResponse",d,v)}catch(x){w=null,b=x}b=b&&u("onError",b,v),b?a.error.publish(b):w&&a.response.publish(w)},a=Gg.reduce((y,d)=>(y[d]=zg(),y),{}),u=Wg(n),c=u("processOptions",s);u("validateOptions",c);let l={options:c,channels:a,applyMiddleware:u},f,p=a.request.subscribe(y=>{f=t(y,(d,v)=>o(d,v,y))});a.abort.subscribe(()=>{p(),f&&f.abort()});let h=u("onReturn",a,l);return h===a&&a.request.publish(l),h}return i.use=function(o){if(!o)throw new Error("Tried to add middleware that resolved to falsey value");if(typeof o=="function")throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(o.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 ja.forEach(a=>{o[a]&&n[a].push(o[a])}),r.push(o),i},i.clone=()=>$a(r,t),e.forEach(i.use),i}var Ua=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},G=(e,t,r)=>(Ua(e,t,"read from private field"),r?r.call(e):t.get(e)),ne=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Y=(e,t,r,n)=>(Ua(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),wt,_t,Pe,Ct,Q,xt,Et,St=class{constructor(){this.readyState=0,this.responseType="",ne(this,wt,void 0),ne(this,_t,void 0),ne(this,Pe,void 0),ne(this,Ct,{}),ne(this,Q,void 0),ne(this,xt,{}),ne(this,Et,void 0)}open(t,r,n){Y(this,wt,t),Y(this,_t,r),Y(this,Pe,""),this.readyState=1,this.onreadystatechange(),Y(this,Q,void 0)}abort(){G(this,Q)&&G(this,Q).abort()}getAllResponseHeaders(){return G(this,Pe)}setRequestHeader(t,r){G(this,Ct)[t]=r}setInit(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Y(this,xt,t),Y(this,Et,r)}send(t){let r=this.responseType!=="arraybuffer",n={...G(this,xt),method:G(this,wt),headers:G(this,Ct),body:t};typeof AbortController=="function"&&G(this,Et)&&(Y(this,Q,new AbortController),typeof EventTarget<"u"&&G(this,Q).signal instanceof EventTarget&&(n.signal=G(this,Q).signal)),typeof document<"u"&&(n.credentials=this.withCredentials?"include":"omit"),fetch(G(this,_t),n).then(i=>(i.headers.forEach((s,o)=>{Y(this,Pe,G(this,Pe)+"".concat(o,": ").concat(s,`\r `))}),this.status=i.status,this.statusText=i.statusText,this.readyState=3,r?i.text():i.arrayBuffer())).then(i=>{typeof i=="string"?this.responseText=i:this.response=i,this.readyState=4,this.onreadystatechange()}).catch(i=>{var s;if(i.name==="AbortError"){this.onabort();return}(s=this.onerror)==null||s.call(this,i)})}};wt=new WeakMap;_t=new WeakMap;Pe=new WeakMap;Ct=new WeakMap;Q=new WeakMap;xt=new WeakMap;Et=new WeakMap;var zr=typeof XMLHttpRequest=="function"?"xhr":"fetch",Hg=zr==="xhr"?XMLHttpRequest:St,Bg=(e,t)=>{var r;let n=e.options,i=e.applyMiddleware("finalizeOptions",n),s={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:zr,context:e});if(o){let _=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(_)}}let a=new Hg;a instanceof St&&typeof i.fetch=="object"&&a.setInit(i.fetch,(r=i.useAbortSignal)!=null?r:!0);let u=i.headers,c=i.timeout,l=!1,f=!1,p=!1;if(a.onerror=_=>{b(new Error("Request error while attempting to reach ".concat(i.url).concat(_.lengthComputable?"(".concat(_.loaded," of ").concat(_.total," bytes transferred)"):"")))},a.ontimeout=_=>{b(new Error("Request timeout while attempting to reach ".concat(i.url).concat(_.lengthComputable?"(".concat(_.loaded," of ").concat(_.total," bytes transferred)"):"")))},a.onabort=()=>{v(!0),l=!0},a.onreadystatechange=()=>{d(),!(l||a.readyState!==4)&&a.status!==0&&x()},a.open(i.method,i.url,!0),a.withCredentials=!!i.withCredentials,u&&a.setRequestHeader)for(let _ in u)u.hasOwnProperty(_)&&a.setRequestHeader(_,u[_]);return i.rawBody&&(a.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:i,adapter:zr,request:a,context:e}),a.send(i.body||null),c&&(s.connect=setTimeout(()=>y("ETIMEDOUT"),c.connect)),{abort:h};function h(){l=!0,a&&a.abort()}function y(_){p=!0,a.abort();let C=new Error(_==="ESOCKETTIMEDOUT"?"Socket timed out on request to ".concat(i.url):"Connection timed out on request to ".concat(i.url));C.code=_,e.channels.error.publish(C)}function d(){c&&(v(),s.socket=setTimeout(()=>y("ESOCKETTIMEDOUT"),c.socket))}function v(_){(_||l||a.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function b(_){if(f)return;v(!0),f=!0,a=null;let C=_||new Error("Network error while attempting to reach ".concat(i.url));C.isNetworkError=!0,C.request=i,t(C)}function w(){return{body:a.response||(a.responseType===""||a.responseType==="text"?a.responseText:""),url:i.url,method:i.method,headers:(0,La.default)(a.getAllResponseHeaders()),statusCode:a.status,statusMessage:a.statusText}}function x(){if(!(l||f||p)){if(a.status===0){b(new Error("Unknown XHR error"));return}v(),f=!0,t(null,w())}}},Na=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bg;return $a(e,t)};var em=W(Ga(),1);function Ha(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ba(e){var t,r;return Ha(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(Ha(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}function tm(e){return{}}var rm=typeof Buffer>"u"?()=>!1:e=>Buffer.isBuffer(e),nm=["boolean","string","number"];function Va(){return{processOptions:e=>{let t=e.body;return!t||!(!(typeof t.pipe=="function")&&!rm(t)&&(nm.indexOf(typeof t)!==-1||Array.isArray(t)||Ba(t)))?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}}}function Ka(e){return{onResponse:r=>{let n=r.headers["content-type"]||"",i=e&&e.force||n.indexOf("application/json")!==-1;return!r.body||!n||!i?r:Object.assign({},r,{body:t(r.body)})},processOptions:r=>Object.assign({},r,{headers:Object.assign({Accept:"application/json"},r.headers)})};function t(r){try{return JSON.parse(r)}catch(n){throw n.message="Failed to parsed response body as JSON: ".concat(n.message),n}}}var Ye={};typeof globalThis<"u"?Ye=globalThis:typeof window<"u"?Ye=window:typeof globalThis<"u"?Ye=globalThis:typeof self<"u"&&(Ye=self);var im=Ye;function Ja(){let t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).implementation||im.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t(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 Ya(){return{onRequest:e=>{if(e.adapter!=="xhr")return;let t=e.request,r=e.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"));function n(i){return s=>{let 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})}}}}}var Hr=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.implementation||Promise;if(!t)throw new Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((i,s)=>{let o=n.options.cancelToken;o&&o.promise.then(a=>{r.abort.publish(a),s(a)}),r.error.subscribe(s),r.response.subscribe(a=>{i(e.onlyBody?a.body:a)}),setTimeout(()=>{try{r.request.publish(n)}catch(a){s(a)}},0)})}},Ot=class{constructor(t){this.__CANCEL__=!0,this.message=t}toString(){return"Cancel".concat(this.message?": ".concat(this.message):"")}},Gr=class{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r=null;this.promise=new Promise(n=>{r=n}),t(n=>{this.reason||(this.reason=new Ot(n),r(this.reason))})}};Gr.source=()=>{let e;return{token:new Gr(r=>{e=r}),cancel:e}};var sm=Gr,om=e=>!!(e&&e?.__CANCEL__);Hr.Cancel=Ot;Hr.CancelToken=sm;Hr.isCancel=om;var Qa=(e,t,r)=>r.method!=="GET"&&r.method!=="HEAD"?!1:e.isNetworkError||!1,am=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function",um=e=>{let t=e.maxRetries||5,r=e.retryDelay||cm,n=e.shouldRetry;return{onError:(i,s)=>{let o=s.options,a=o.maxRetries||t,u=o.shouldRetry||n,c=o.attemptNumber||0;if(am(o.body)||!u(i,c,o)||c>=a)return i;let l=Object.assign({},s,{options:Object.assign({},o,{attemptNumber:c+1})});return setTimeout(()=>s.channels.request.publish(l),r(c)),null}}};function cm(e){return 100*Math.pow(2,e)+Math.random()*100}var Tt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return um({shouldRetry:Qa,...e})};Tt.shouldRetry=Qa;function lm(e){return function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.ms||1e3,i=r.maxFree||256;return e({keepAlive:!0,keepAliveMsecs:n,maxFreeSockets:i})}}var zb=lm(tm);var Br=function(e,t){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Br(e,t)};function Qe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Br(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Vr(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function qe(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n{var a;return(a=o.error)==null?void 0:a.description}).filter(Boolean),s=i.length?`: - `.concat(i.join(` - `)):"";return n.length>Zr&&(s+=` ...and `.concat(n.length-Zr," more")),r.message="".concat(t.error.description).concat(s),r.details=t.error,r}return t.error&&t.error.description?(r.message=t.error.description,r.details=t.error,r):(r.message=t.error||t.message||wm(e),r)}function bm(e){return lu(e)&&lu(e.error)&&e.error.type==="mutationError"&&typeof e.error.description=="string"}function lu(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function wm(e){let t=e.statusMessage?" ".concat(e.statusMessage):"";return"".concat(e.method,"-request to ").concat(e.url," resulted in HTTP ").concat(e.statusCode).concat(t)}function _m(e,t){return(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")!==-1?JSON.stringify(e,null,2):e}var Cm={onResponse:e=>{if(e.statusCode>=500)throw new tn(e);if(e.statusCode>=400)throw new en(e);return e}},xm={onResponse:e=>{let t=e.headers["x-sanity-warning"];return(Array.isArray(t)?t:[t]).filter(Boolean).forEach(n=>console.warn(n)),e}};function fu(e,t){let{maxRetries:r=5,retryDelay:n}=t,i=Na([r>0?Tt({retryDelay:n,maxRetries:r,shouldRetry:Em}):{},...e,xm,Va(),Ka(),Ya(),Cm,Ja({implementation:se})]);function s(o){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:i)({maxRedirects:0,...o})}return s.defaultRequester=i,s}function Em(e,t,r){let n=r.method==="GET"||r.method==="HEAD",s=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(e.response.statusCode===429||e.response.statusCode===502||e.response.statusCode===503);return(n||s)&&o?!0:Tt.shouldRetry(e,t,r)}function gu(e){if(typeof e=="string"||Array.isArray(e))return{id:e};if(typeof e=="object"&&e!==null&&"query"in e&&typeof e.query=="string")return"params"in e&&typeof e.params=="object"&&e.params!==null?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID ()","* Array of document IDs","* Object containing `query`"].join(` `);throw new Error(`Unknown selection - must be one of: `.concat(t))}var hu=["image","file"],pu=["before","after","replace"],mu=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},Sm=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},Am=e=>{if(hu.indexOf(e)===-1)throw new Error("Invalid asset type: ".concat(e,". Must be one of ").concat(hu.join(", ")))},nt=(e,t)=>{if(t===null||typeof t!="object"||Array.isArray(t))throw new Error("".concat(e,"() takes an object of properties"))},yu=(e,t)=>{if(typeof t!="string"||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw new Error("".concat(e,'(): "').concat(t,'" is not a valid document ID'))},Ht=(e,t)=>{if(!t._id)throw new Error("".concat(e,'() requires that the document contains an ID ("_id" property)'));yu(e,t._id)},Om=(e,t,r)=>{let n="insert(at, selector, items)";if(pu.indexOf(e)===-1){let i=pu.map(s=>'"'.concat(s,'"')).join(", ");throw new Error("".concat(n,' takes an "at"-argument which is one of: ').concat(i))}if(typeof t!="string")throw new Error("".concat(n,' takes a "selector"-argument which must be a string'));if(!Array.isArray(r))throw new Error("".concat(n,' takes an "items"-argument which must be an array'))},vu=e=>{if(!e.dataset)throw new Error("`dataset` must be provided to perform queries");return e.dataset||""},bu=e=>{if(typeof e!="string"||!/^[a-z0-9._-]{1,75}$/i.test(e))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},wu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},ke=(e,t,r)=>(wu(e,t,"read from private field"),r?r.call(e):t.get(e)),_u=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Cu=(e,t,r,n)=>(wu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),De,Fe,Bt=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.selection=t,this.operations=r}set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return nt("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,r,n){return Om(t,r,n),this._assign("insert",{[t]:r,items:n})}append(t,r){return this.insert("after","".concat(t,"[-1]"),r)}prepend(t,r){return this.insert("before","".concat(t,"[0]"),r)}splice(t,r,n,i){let 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="".concat(t,"[").concat(o,":").concat(u,"]");return this.insert("replace",c,i||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...gu(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return nt(t,r),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},n&&this.operations[t]||{},r)}),this}_set(t,r){return this._assign(t,r,!1)}},Tm=class xu extends Bt{constructor(t,r,n){super(t,r),_u(this,De,void 0),Cu(this,De,n)}clone(){return new xu(this.selection,{...this.operations},ke(this,De))}commit(t){if(!ke(this,De))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let r=typeof this.selection=="string",n=Object.assign({returnFirst:r,returnDocuments:!0},t);return ke(this,De).mutate({patch:this.serialize()},n)}};De=new WeakMap;var it=Tm,Rm=class Eu extends Bt{constructor(t,r,n){super(t,r),_u(this,Fe,void 0),Cu(this,Fe,n)}clone(){return new Eu(this.selection,{...this.operations},ke(this,Fe))}commit(t){if(!ke(this,Fe))throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let r=typeof this.selection=="string",n=Object.assign({returnFirst:r,returnDocuments:!0},t);return ke(this,Fe).mutate({patch:this.serialize()},n)}};Fe=new WeakMap;var st=Rm,Su=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},X=(e,t,r)=>(Su(e,t,"read from private field"),r?r.call(e):t.get(e)),Au=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Ou=(e,t,r,n)=>(Su(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ae,ue,Tu={returnDocuments:!1},Vt=class{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;this.operations=t,this.trxId=r}create(t){return nt("create",t),this._add({create:t})}createIfNotExists(t){let r="createIfNotExists";return nt(r,t),Ht(r,t),this._add({[r]:t})}createOrReplace(t){let r="createOrReplace";return nt(r,t),Ht(r,t),this._add({[r]:t})}delete(t){return yu("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}},Pm=class Ru extends Vt{constructor(t,r,n){super(t,n),Au(this,ae,void 0),Ou(this,ae,r)}clone(){return new Ru([...this.operations],X(this,ae),this.trxId)}commit(t){if(!X(this,ae))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return X(this,ae).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Tu,t||{}))}patch(t,r){let n=typeof r=="function";if(typeof t!="string"&&t instanceof st)return this._add({patch:t.serialize()});if(n){let s=r(new st(t,{},X(this,ae)));if(!(s instanceof st))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:s.serialize()})}return this._add({patch:{id:t,...r}})}};ae=new WeakMap;var Pu=Pm,Im=class Iu extends Vt{constructor(t,r,n){super(t,n),Au(this,ue,void 0),Ou(this,ue,r)}clone(){return new Iu([...this.operations],X(this,ue),this.trxId)}commit(t){if(!X(this,ue))throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return X(this,ue).mutate(this.serialize(),Object.assign({transactionId:this.trxId},Tu,t||{}))}patch(t,r){let n=typeof r=="function";if(typeof t!="string"&&t instanceof it)return this._add({patch:t.serialize()});if(n){let s=r(new it(t,{},X(this,ue)));if(!(s instanceof it))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:s.serialize()})}return this._add({patch:{id:t,...r}})}};ue=new WeakMap;var qu=Im,qm="https://www.sanity.io/help/";function pn(e){return qm+e}function Mm(e){let t=!1,r;return function(){return t||(r=e(...arguments),t=!0),r}}var ot=e=>Mm(function(){for(var t=arguments.length,r=new Array(t),n=0;n$m.indexOf(e)!==-1,Nm=function(t){if(t==="1"||t==="X")return;let r=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&r instanceof Date&&r.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")},Du=function(t){switch(t){case"previewDrafts":case"published":case"raw":return;default:throw new TypeError("Invalid API perspective string, expected `published`, `previewDrafts` or `raw`")}},Fu=(e,t)=>{let r=Object.assign({},t,e);r.apiVersion||jm();let n=Object.assign({},ge,r),i=n.useProjectHostname;if(typeof Promise>"u"){let f=pn("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(f))}if(i&&!n.projectId)throw new Error("Configuration must contain `projectId`");if(typeof n.perspective=="string"&&Du(n.perspective),"encodeSourceMapAtPath"in n||"encodeSourceMap"in n||"studioUrl"in n||"logger"in n)throw new Error("It looks like you're using options meant for '@sanity/preview-kit/client', such as 'encodeSourceMapAtPath', 'encodeSourceMap', 'studioUrl' and 'logger'. Make sure you're using the right import.");if("stega"in n&&n.stega!==void 0&&n.stega!==!1)throw new Error("It looks like you're using options meant for '@sanity/client/stega'. Make sure you're using the right import. Or set 'stega' in 'createClient' to 'false'.");let s=typeof window<"u"&&window.location&&window.location.hostname,o=s&&Um(window.location.hostname);s&&o&&n.token&&n.ignoreBrowserTokenWarning!==!0?km():typeof n.useCdn>"u"&&Dm(),i&&Sm(n.projectId),n.dataset&&mu(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?bu(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion="".concat(n.apiVersion).replace(/^v/,""),n.isDefaultApi=n.apiHost===ge.apiHost,n.useCdn=n.useCdn!==!1&&!n.withCredentials,Nm(n.apiVersion);let a=n.apiHost.split("://",2),u=a[0],c=a[1],l=n.isDefaultApi?Lm:c;return n.useProjectHostname?(n.url="".concat(u,"://").concat(n.projectId,".").concat(c,"/v").concat(n.apiVersion),n.cdnUrl="".concat(u,"://").concat(n.projectId,".").concat(l,"/v").concat(n.apiVersion)):(n.url="".concat(n.apiHost,"/v").concat(n.apiVersion),n.cdnUrl=n.url),n},Wm="X-Sanity-Project-ID";function zm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r={},n=t.token||e.token;n&&(r.Authorization="Bearer ".concat(n)),!t.useGlobalApi&&!e.useProjectHostname&&e.projectId&&(r[Wm]=e.projectId);let i=Boolean(typeof t.withCredentials>"u"?e.token||e.withCredentials:t.withCredentials),s=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof s>"u"?5*60*1e3:s,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:typeof t.fetch=="object"&&typeof e.fetch=="object"?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}var ku=e=>{let{query:t,params:r={},options:n={}}=e,i=new URLSearchParams,{tag:s,...o}=n;s&&i.append("tag",s),i.append("query",t);for(let[a,u]of Object.entries(r))i.append("$".concat(a),JSON.stringify(u));for(let[a,u]of Object.entries(o))u&&i.append(a,"".concat(u));return"?".concat(i)},Gm=(e,t)=>e===!1?void 0:typeof e>"u"?t:e,Hm=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{dryRun:e.dryRun,returnIds:!0,returnDocuments:Gm(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}},dn=e=>e.type==="response",Bm=e=>e.body,Vm=(e,t)=>e.reduce((r,n)=>(r[t(n)]=n,r),Object.create(null)),Km=11264;function ju(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};if("stega"in i&&i.stega!==void 0&&i.stega!==!1)throw new Error("It looks like you're using options meant for '@sanity/client/stega'. Make sure you're using the right import. Or set 'stega' in 'fetch' to 'false'.");let s=i.filterResponse===!1?l=>l:l=>l.result,{cache:o,next:a,...u}={useAbortSignal:typeof i.signal<"u",...i},c=typeof o<"u"||typeof a<"u"?{...u,fetch:{cache:o,next:a}}:u;return at(e,t,"query",{query:r,params:n},c).pipe(B(s))}function Lu(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i={uri:Le(e,"doc",r),json:!0,tag:n.tag};return ut(e,t,i).pipe(oe(dn),B(s=>s.body.documents&&s.body.documents[0]))}function $u(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i={uri:Le(e,"doc",r.join(",")),json:!0,tag:n.tag};return ut(e,t,i).pipe(oe(dn),B(s=>{let o=Vm(s.body.documents||[],a=>a._id);return r.map(a=>o[a]||null)}))}function Uu(e,t,r,n){return Ht("createIfNotExists",r),or(e,t,r,"createIfNotExists",n)}function Nu(e,t,r,n){return Ht("createOrReplace",r),or(e,t,r,"createOrReplace",n)}function Wu(e,t,r,n){return at(e,t,"mutate",{mutations:[{delete:gu(r)}]},n)}function zu(e,t,r,n){let i;r instanceof st||r instanceof it?i={patch:r.serialize()}:r instanceof Pu||r instanceof qu?i=r.serialize():i=r;let s=Array.isArray(i)?i:[i],o=n&&n.transactionId||void 0;return at(e,t,"mutate",{mutations:s,transactionId:o},n)}function at(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s=r==="mutate",o=r==="query",a=s?"":ku(n),u=!s&&a.length{if(!s)return b;let w=b.results||[];if(i.returnDocuments)return l?w[0]&&w[0].document:w.map(C=>C.document);let x=l?"documentId":"documentIds",_=l?w[0]&&w[0].id:w.map(C=>C.id);return{transactionId:b.transactionId,results:w,[x]:_}}))}function or(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},s={[n]:r},o=Object.assign({returnFirst:!0,returnDocuments:!0},i);return at(e,t,"mutate",{mutations:[s]},o)}function ut(e,t,r){var n,i;let s=r.url||r.uri,o=e.config(),a=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&s.indexOf("/data/")===0:r.canUseCdn,u=((n=r.useCdn)!=null?n:o.useCdn)&&a,c=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(c&&r.tag!==null&&(r.query={tag:bu(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&s.indexOf("/data/query/")===0){let p=(i=r.resultSourceMap)!=null?i:o.resultSourceMap;p!==void 0&&p!==!1&&(r.query={resultSourceMap:p,...r.query});let h=r.perspective||o.perspective;typeof h=="string"&&h!=="raw"&&(Du(h),r.query={perspective:h,...r.query},h==="previewDrafts"&&u&&(u=!1,Fm()))}let l=zm(o,Object.assign({},r,{url:gn(e,s,u)})),f=new se(p=>t(l,o.requester).subscribe(p));return r.signal?f.pipe(Jm(r.signal)):f}function V(e,t,r){return ut(e,t,r).pipe(oe(i=>i.type==="response"),B(i=>i.body))}function Le(e,t,r){let n=e.config(),i=vu(n),s="/".concat(t,"/").concat(i),o=r?"".concat(s,"/").concat(r):s;return"/data".concat(o).replace(/\/($|\?)/,"$1")}function gn(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{url:n,cdnUrl:i}=e.config(),s=r?i:n;return"".concat(s,"/").concat(t.replace(/^\//,""))}function Jm(e){return t=>new se(r=>{let n=()=>r.error(Qm(e));if(e&&e.aborted){n();return}let i=t.subscribe(r);return e.addEventListener("abort",n),()=>{e.removeEventListener("abort",n),i.unsubscribe()}})}var Ym=Boolean(globalThis.DOMException);function Qm(e){var t,r;if(Ym)return new DOMException((t=e?.reason)!=null?t:"The operation was aborted.","AbortError");let n=new Error((r=e?.reason)!=null?r:"The operation was aborted.");return n.name="AbortError",n}var Gu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Kt=(e,t,r)=>(Gu(e,t,"read from private field"),r?r.call(e):t.get(e)),Jt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Yt=(e,t,r,n)=>(Gu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),jt,Lt,$t,Ut,rn=class{constructor(t,r){Jt(this,jt,void 0),Jt(this,Lt,void 0),Yt(this,jt,t),Yt(this,Lt,r)}upload(t,r,n){return Hu(Kt(this,jt),Kt(this,Lt),t,r,n)}};jt=new WeakMap;Lt=new WeakMap;var nn=class{constructor(t,r){Jt(this,$t,void 0),Jt(this,Ut,void 0),Yt(this,$t,t),Yt(this,Ut,r)}upload(t,r,n){let i=Hu(Kt(this,$t),Kt(this,Ut),t,r,n);return q(i.pipe(oe(s=>s.type==="response"),B(s=>s.body.document)))}};$t=new WeakMap;Ut=new WeakMap;function Hu(e,t,r,n){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};Am(r);let s=i.extract||void 0;s&&!s.length&&(s=["none"]);let o=vu(e.config()),a=r==="image"?"images":"files",u=Xm(i,n),{tag:c,label:l,title:f,description:p,creditLine:h,filename:y,source:d}=u,v={label:l,title:f,description:p,filename:y,meta:s,creditLine:h};return d&&(v.sourceId=d.id,v.sourceName=d.name,v.sourceUrl=d.url),ut(e,t,{tag:c,method:"POST",timeout:u.timeout||0,uri:"/assets/".concat(a,"/").concat(o),headers:u.contentType?{"Content-Type":u.contentType}:{},query:v,body:n})}function Xm(e,t){return typeof File>"u"||!(t instanceof File)?e:Object.assign({filename:e.preserveFilename===!1?void 0:t.name,contentType:t.type},e)}var Zm=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((r,n)=>(r[n]=typeof e[n]>"u"?t[n]:e[n],r),{}),ey=(e,t)=>t.reduce((r,n)=>(typeof e[n]>"u"||(r[n]=e[n]),r),{}),ty=16e3-1200,ry=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],ny={includeResult:!0};function Bu(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{url:n,token:i,withCredentials:s,requestTagPrefix:o}=this.config(),a=r.tag&&o?[o,r.tag].join("."):r.tag,u={...Zm(r,ny),tag:a},c=ey(u,ry),l=ku({query:e,params:t,options:{tag:a,...c}}),f="".concat(n).concat(Le(this,"listen",l));if(f.length>ty)return new se(d=>d.error(new Error("Query too large for listener")));let p=u.events?u.events:["mutation"],h=p.indexOf("reconnect")!==-1,y={};return(i||s)&&(y.withCredentials=!0),i&&(y.headers={Authorization:"Bearer ".concat(i)}),new se(d=>{let v;k().then(L=>{v=L}).catch(L=>{d.error(L),yr()});let b,w=!1;function x(){w||(I(),!w&&v.readyState===v.CLOSED&&(O(),clearTimeout(b),b=setTimeout(mr,100)))}function _(L){d.error(iy(L))}function C(L){let J=Vu(L);return J instanceof Error?d.error(J):d.next(J)}function A(){w=!0,O(),d.complete()}function O(){v&&(v.removeEventListener("error",x),v.removeEventListener("channelError",_),v.removeEventListener("disconnect",A),p.forEach(L=>v.removeEventListener(L,C)),v.close())}function I(){h&&d.next({type:"reconnect"})}async function k(){let{default:L}=await import("https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/browser-ZPGL76XB.js"),J=new L(f,y);return J.addEventListener("error",x),J.addEventListener("channelError",_),J.addEventListener("disconnect",A),p.forEach(Sc=>J.addEventListener(Sc,C)),J}function mr(){k().then(L=>{v=L}).catch(L=>{d.error(L),yr()})}function yr(){w=!0,O()}return yr})}function Vu(e){try{let t=e.data&&JSON.parse(e.data)||{};return Object.assign({type:e.type},t)}catch(t){return t}}function iy(e){if(e instanceof Error)return e;let t=Vu(e);return t instanceof Error?t:new Error(sy(t))}function sy(e){return e.error?e.error.description?e.error.description:typeof e.error=="string"?e.error:JSON.stringify(e.error,null,2):e.message||"Unknown listener error"}var Ku=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},j=(e,t,r)=>(Ku(e,t,"read from private field"),r?r.call(e):t.get(e)),Qt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},Xt=(e,t,r,n)=>(Ku(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ce,le,fe,he,sn=class{constructor(t,r){Qt(this,ce,void 0),Qt(this,le,void 0),Xt(this,ce,t),Xt(this,le,r)}create(t,r){return je(j(this,ce),j(this,le),"PUT",t,r)}edit(t,r){return je(j(this,ce),j(this,le),"PATCH",t,r)}delete(t){return je(j(this,ce),j(this,le),"DELETE",t)}list(){return V(j(this,ce),j(this,le),{uri:"/datasets",tag:null})}};ce=new WeakMap;le=new WeakMap;var on=class{constructor(t,r){Qt(this,fe,void 0),Qt(this,he,void 0),Xt(this,fe,t),Xt(this,he,r)}create(t,r){return q(je(j(this,fe),j(this,he),"PUT",t,r))}edit(t,r){return q(je(j(this,fe),j(this,he),"PATCH",t,r))}delete(t){return q(je(j(this,fe),j(this,he),"DELETE",t))}list(){return q(V(j(this,fe),j(this,he),{uri:"/datasets",tag:null}))}};fe=new WeakMap;he=new WeakMap;function je(e,t,r,n,i){return mu(n),V(e,t,{method:r,uri:"/datasets/".concat(n),body:i,tag:null})}var Ju=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Z=(e,t,r)=>(Ju(e,t,"read from private field"),r?r.call(e):t.get(e)),Zt=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},er=(e,t,r,n)=>(Ju(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ze,et,tt,rt,an=class{constructor(t,r){Zt(this,Ze,void 0),Zt(this,et,void 0),er(this,Ze,t),er(this,et,r)}list(t){let r=t?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return V(Z(this,Ze),Z(this,et),{uri:r})}getById(t){return V(Z(this,Ze),Z(this,et),{uri:"/projects/".concat(t)})}};Ze=new WeakMap;et=new WeakMap;var un=class{constructor(t,r){Zt(this,tt,void 0),Zt(this,rt,void 0),er(this,tt,t),er(this,rt,r)}list(t){let r=t?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return q(V(Z(this,tt),Z(this,rt),{uri:r}))}getById(t){return q(V(Z(this,tt),Z(this,rt),{uri:"/projects/".concat(t)}))}};tt=new WeakMap;rt=new WeakMap;var Yu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},tr=(e,t,r)=>(Yu(e,t,"read from private field"),r?r.call(e):t.get(e)),rr=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},nr=(e,t,r,n)=>(Yu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Nt,Wt,zt,Gt,cn=class{constructor(t,r){rr(this,Nt,void 0),rr(this,Wt,void 0),nr(this,Nt,t),nr(this,Wt,r)}getById(t){return V(tr(this,Nt),tr(this,Wt),{uri:"/users/".concat(t)})}};Nt=new WeakMap;Wt=new WeakMap;var ln=class{constructor(t,r){rr(this,zt,void 0),rr(this,Gt,void 0),nr(this,zt,t),nr(this,Gt,r)}getById(t){return q(V(tr(this,zt),tr(this,Gt),{uri:"/users/".concat(t)}))}};zt=new WeakMap;Gt=new WeakMap;var Qu=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},S=(e,t,r)=>(Qu(e,t,"read from private field"),r?r.call(e):t.get(e)),ir=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},sr=(e,t,r,n)=>(Qu(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),pe,D,de,M,oy=class fn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge;ir(this,pe,void 0),ir(this,D,void 0),this.listen=Bu,this.config(r),sr(this,D,t),this.assets=new rn(this,S(this,D)),this.datasets=new sn(this,S(this,D)),this.projects=new an(this,S(this,D)),this.users=new cn(this,S(this,D))}clone(){return new fn(S(this,D),this.config())}config(t){if(t===void 0)return{...S(this,pe)};if(S(this,pe)&&S(this,pe).allowReconfigure===!1)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return sr(this,pe,Fu(t,S(this,pe)||{})),this}withConfig(t){return new fn(S(this,D),{...this.config(),...t})}fetch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ju(this,S(this,D),t,r,n)}getDocument(t,r){return Lu(this,S(this,D),t,r)}getDocuments(t,r){return $u(this,S(this,D),t,r)}create(t,r){return or(this,S(this,D),t,"create",r)}createIfNotExists(t,r){return Uu(this,S(this,D),t,r)}createOrReplace(t,r){return Nu(this,S(this,D),t,r)}delete(t,r){return Wu(this,S(this,D),t,r)}mutate(t,r){return zu(this,S(this,D),t,r)}patch(t,r){return new it(t,r,this)}transaction(t){return new qu(t,this)}request(t){return V(this,S(this,D),t)}getUrl(t,r){return gn(this,t,r)}getDataUrl(t,r){return Le(this,t,r)}};pe=new WeakMap;D=new WeakMap;var mn=oy,ay=class hn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge;ir(this,de,void 0),ir(this,M,void 0),this.listen=Bu,this.config(r),sr(this,M,t),this.assets=new nn(this,S(this,M)),this.datasets=new on(this,S(this,M)),this.projects=new un(this,S(this,M)),this.users=new ln(this,S(this,M)),this.observable=new mn(t,r)}clone(){return new hn(S(this,M),this.config())}config(t){if(t===void 0)return{...S(this,de)};if(S(this,de)&&S(this,de).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(t),sr(this,de,Fu(t,S(this,de)||{})),this}withConfig(t){return new hn(S(this,M),{...this.config(),...t})}fetch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q(ju(this,S(this,M),t,r,n))}getDocument(t,r){return q(Lu(this,S(this,M),t,r))}getDocuments(t,r){return q($u(this,S(this,M),t,r))}create(t,r){return q(or(this,S(this,M),t,"create",r))}createIfNotExists(t,r){return q(Uu(this,S(this,M),t,r))}createOrReplace(t,r){return q(Nu(this,S(this,M),t,r))}delete(t,r){return q(Wu(this,S(this,M),t,r))}mutate(t,r){return q(zu(this,S(this,M),t,r))}patch(t,r){return new st(t,r,this)}transaction(t){return new Pu(t,this)}request(t){return q(V(this,S(this,M),t))}dataRequest(t,r,n){return q(at(this,S(this,M),t,r,n))}getUrl(t,r){return gn(this,t,r)}getDataUrl(t,r){return Le(this,t,r)}};de=new WeakMap;M=new WeakMap;var ar=ay;function ur(e,t){return{requester:fu(e,{}).defaultRequester,createClient:s=>new t(fu(e,{maxRetries:s.maxRetries,retryDelay:s.retryDelay}),s)}}var cr=[];function uy(e){return function(r){return Mu(),e(r)}}var Xu=ur(cr,ar),c0=Xu.requester,lr=Xu.createClient,l0=uy(lr);var wn={enabled:!1,filter:e=>e.filterDefault(e)};function $e(e){let{stega:t={},...r}=e;return{clientConfig:r,stegaConfig:typeof t=="boolean"?{enabled:t}:t}}var ft=(e,t)=>{let r=Object.assign({},t,e),n=Object.assign({},wn,r);if("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/stega'. Did you mean '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/stega'. Did you mean 'filter'?");if(typeof n.enabled!="boolean")throw new Error("config.enabled must be a boolean, received ".concat(n.enabled));if(n.enabled&&n.studioUrl===void 0)throw new Error("config.studioUrl must be defined when config.enabled is true");if(n.enabled&&typeof n.studioUrl!="string"&&typeof n.studioUrl!="function")throw new Error("config.studioUrl must be a string or a function, received ".concat(n.studioUrl));return n};function sc(e,t){let{stega:r={},...n}=e,i=ft(typeof r=="boolean"?{enabled:r}:r,t);return{fetchOptions:n,stegaConfig:i}}var Zu="drafts.";function cy(e){return e.startsWith(Zu)?e.slice(Zu.length):e}var oc=/_key\s*==\s*['"](.*)['"]/;function ly(e){return typeof e=="string"?oc.test(e.trim()):typeof e=="object"&&"_key"in e}function ac(e){if(!Array.isArray(e))throw new Error("Path is not an array");return e.reduce((t,r,n)=>{let i=typeof r;if(i==="number")return"".concat(t,"[").concat(r,"]");if(i==="string"){let s=n===0?"":".";return"".concat(t).concat(s).concat(r)}if(ly(r)&&r._key)return"".concat(t,'[_key=="').concat(r._key,'"]');if(Array.isArray(r)){let[s,o]=r;return"".concat(t,"[").concat(s,":").concat(o,"]")}throw new Error("Unsupported path segment `".concat(JSON.stringify(r),"`"))},"")}var ec={"\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","'":"\\'","\\":"\\\\"},tc={"\\f":"\f","\\n":` `,"\\r":"\r","\\t":" ","\\'":"'","\\\\":"\\"};function fy(e){return"$".concat(e.map(t=>{if(typeof t=="string"){let r=t.replace(/[\f\n\r\t'\\]/g,n=>ec[n]);return"['".concat(r,"']")}if(typeof t=="number")return"[".concat(t,"]");if(t._key!==""){let r=t._key.replace(/['\\]/g,n=>ec[n]);return"[?(@._key=='".concat(r,"')]")}return"[".concat(t._index,"]")}).join(""))}function rc(e){let t=[],r=/\['(.*?)'\]|\[(\d+)\]|\[\?\(@\._key=='(.*?)'\)\]/g,n;for(;(n=r.exec(e))!==null;){if(n[1]!==void 0){let i=n[1].replace(/\\(\\|f|n|r|t|')/g,s=>tc[s]);t.push(i);continue}if(n[2]!==void 0){t.push(parseInt(n[2],10));continue}if(n[3]!==void 0){let i=n[3].replace(/\\(\\')/g,s=>tc[s]);t.push({_key:i,_index:-1});continue}}return t}function uc(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._key!=="")return{_key:t._key};if(t._index!==-1)return t._index;throw new Error("invalid segment:".concat(JSON.stringify(t)))})}function hy(e){return e.map(t=>{if(typeof t=="string"||typeof t=="number")return t;if(t._index!==-1)return t._index;throw new Error("invalid segment:".concat(JSON.stringify(t)))})}function py(e){let{baseUrl:t,workspace:r="default",tool:n="default",id:i,type:s,path:o}=e;if(!t)throw new Error("baseUrl is required");if(!o)throw new Error("path is required");if(!i)throw new Error("id is required");if(t!=="/"&&t.endsWith("/"))throw new Error("baseUrl must not end with a slash");let a=r==="default"?void 0:r,u=n==="default"?void 0:n,c=cy(i),l=Array.isArray(o)?ac(uc(o)):o,f=new URLSearchParams({baseUrl:t,id:c,type:s,path:l});a&&f.set("workspace",a),u&&f.set("tool",u);let p=[t==="/"?"":t];a&&p.push(a);let h=["mode=presentation","id=".concat(c),"type=".concat(s),"path=".concat(encodeURIComponent(l))];return u&&h.push("tool=".concat(u)),p.push("intent","edit","".concat(h.join(";"),"?").concat(f)),p.join("/")}function dy(e,t){if(!t?.mappings)return;let r=fy(hy(e));if(t.mappings[r]!==void 0)return{mapping:t.mappings[r],matchedPath:r,pathSuffix:""};let n=Object.entries(t.mappings).filter(a=>{let[u]=a;return r.startsWith(u)}).sort((a,u)=>{let[c]=a,[l]=u;return l.length-c.length});if(n.length==0)return;let[i,s]=n[0],o=r.substring(i.length);return{mapping:s,matchedPath:i,pathSuffix:o}}function gy(e){let t=typeof e=="string"?e:e.baseUrl;return t!=="/"&&(t=t.replace(/\/$/,"")),typeof e=="string"?{baseUrl:t}:{...e,baseUrl:t}}function my(e){return e!==null&&Array.isArray(e)}function nc(e){return typeof e=="object"&&e!==null}function hr(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return my(e)?e.map((n,i)=>{if(nc(n)){let s=n._key;if(typeof s=="string")return hr(n,t,r.concat({_key:s,_index:i}))}return hr(n,t,r.concat(i))}):nc(e)?Object.fromEntries(Object.entries(e).map(n=>{let[i,s]=n;return[i,hr(s,t,r.concat(i))]})):t(e,r)}function yy(e,t,r){return hr(e,(n,i)=>{if(typeof n!="string")return n;let s=dy(i,t);if(!s)return n;let{mapping:o,matchedPath:a}=s;if(o.type!=="value"||o.source.type!=="documentValue")return n;let u=t.documents[o.source.document],c=t.paths[o.source.path],l=rc(a),p=rc(c).concat(i.slice(l.length));return r({sourcePath:p,sourceDocument:u,resultPath:i,value:n})})}var yn=e=>{let{sourcePath:t,value:r}=e;if(by(r)||wy(r))return!1;let n=t.at(-1);return!(t.at(-2)==="slug"&&n==="current"||typeof n=="string"&&n.startsWith("_")||typeof n=="number"&&t.at(-2)==="marks"||n==="href"&&typeof t.at(-2)=="number"&&t.at(-3)==="markDefs"||n==="style"||n==="listItem"||t.some(i=>i==="meta"||i==="metadata"||i==="openGraph"||i==="seo")||typeof n=="string"&&vy.has(n))},vy=new Set(["color","colour","currency","email","format","gid","hex","href","hsl","hsla","icon","id","index","key","language","layout","link","linkAction","locale","lqip","page","path","ref","rgb","rgba","route","secret","slug","status","tag","template","theme","type","unit","url","username","variant","website"]);function by(e){return Number.isNaN(Number(e))?Boolean(Date.parse(e)):!1}function wy(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}var fr=20;function cc(e,t,r){var n,i,s,o,a,u,c,l,f;let{filter:p,logger:h,enabled:y}=r;if(!y){let b="config.enabled must be true, don't call this function otherwise";throw(n=h?.error)==null||n.call(h,"[@sanity/client/stega]: ".concat(b),{result:e,resultSourceMap:t,config:r}),new TypeError(b)}if(!t)return(i=h?.error)==null||i.call(h,"[@sanity/client/stega]: Missing Content Source Map from response body",{result:e,resultSourceMap:t,config:r}),e;if(!r.studioUrl){let b="config.studioUrl must be defined";throw(s=h?.error)==null||s.call(h,"[@sanity/client/stega]: ".concat(b),{result:e,resultSourceMap:t,config:r}),new TypeError(b)}let d={encoded:[],skipped:[]},v=yy(e,t,b=>{let{sourcePath:w,sourceDocument:x,resultPath:_,value:C}=b;if((typeof p=="function"?p({sourcePath:w,resultPath:_,filterDefault:yn,sourceDocument:x,value:C}):yn({sourcePath:w,resultPath:_,filterDefault:yn,sourceDocument:x,value:C}))===!1)return h&&d.skipped.push({path:ic(w),value:"".concat(C.slice(0,fr)).concat(C.length>fr?"...":""),length:C.length}),C;h&&d.encoded.push({path:ic(w),value:"".concat(C.slice(0,fr)).concat(C.length>fr?"...":""),length:C.length});let{baseUrl:A,workspace:O,tool:I}=gy(typeof r.studioUrl=="function"?r.studioUrl(x):r.studioUrl);if(!A)return C;let{_id:k,_type:mr}=x;return On(C,{origin:"sanity.io",href:py({baseUrl:A,workspace:O,tool:I,id:k,type:mr,path:w})},!1)});if(h){let b=d.skipped.length,w=d.encoded.length;if((b||w)&&((o=h?.groupCollapsed||h.log)==null||o("[@sanity/client/stega]: Encoding source map into result"),(a=h.log)==null||a.call(h,"[@sanity/client/stega]: Paths encoded: ".concat(d.encoded.length,", skipped: ").concat(d.skipped.length))),d.encoded.length>0&&((u=h?.log)==null||u.call(h,"[@sanity/client/stega]: Table of encoded paths"),(c=h?.table||h.log)==null||c(d.encoded)),d.skipped.length>0){let x=new Set;for(let{path:_}of d.skipped)x.add(_.replace(oc,"0").replace(/\[\d+\]/g,"[]"));(l=h?.log)==null||l.call(h,"[@sanity/client/stega]: List of skipped paths",[...x.values()])}(b||w)&&((f=h?.groupEnd)==null||f.call(h))}return v}function ic(e){return ac(uc(e))}function lc(e){return JSON.parse(JSON.stringify(e,(t,r)=>typeof r!="string"?r:Tn(r).cleaned))}var fc=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},pr=(e,t,r)=>(fc(e,t,"read from private field"),r?r.call(e):t.get(e)),hc=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},pc=(e,t,r,n)=>(fc(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ct,lt,_y=class vn extends mn{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge,{clientConfig:n,stegaConfig:i}=$e(r);super(t,n),hc(this,ct,void 0),pc(this,ct,t),this.stegaConfig=ft(i,wn)}clone(){return new vn(pr(this,ct),this.config())}config(t){if(t===void 0)return{...super.config(),stega:{...this.stegaConfig}};let{clientConfig:r,stegaConfig:n}=$e(t);return super.config(r),this.stegaConfig=ft(n,this.stegaConfig||{}),this}withConfig(t){let r=this.config(),{stegaConfig:n}=$e(t||{});return new vn(pr(this,ct),{...r,...t,stega:{...r.stega||{},...n||{}}})}fetch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{stegaConfig:i,fetchOptions:s}=sc(n,this.stegaConfig),o=r&&lc(r);if(!i.enabled)return super.fetch(t,o,s);let{filterResponse:a=!0}=s;return super.fetch(t,o,Object.assign({},s,{filterResponse:!1,resultSourceMap:"withKeyArraySelector"})).pipe(B(u=>{let{result:c,resultSourceMap:l}=u,f=cc(c,l,i);return a?f:{...u,result:f}}))}};ct=new WeakMap;var Cy=_y,xy=class bn extends ar{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ge,{clientConfig:n,stegaConfig:i}=$e(r);super(t,n),hc(this,lt,void 0),pc(this,lt,t),this.stegaConfig=ft(i,wn),this.observable=new Cy(t,r)}clone(){return new bn(pr(this,lt),this.config())}config(t){if(t===void 0)return{...super.config(),stega:{...this.stegaConfig}};let{clientConfig:r,stegaConfig:n}=$e(t);return super.config(r),this.stegaConfig=ft(n,{...this.stegaConfig||{}}),this}withConfig(t){let r=this.config(),{stegaConfig:n}=$e(t||{});return new bn(pr(this,lt),{...r,...t,stega:{...r.stega||{},...n||{}}})}fetch(t,r){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{stegaConfig:i,fetchOptions:s}=sc(n,this.stegaConfig),o=r&&lc(r);if(!i.enabled)return super.fetch(t,o,s);let{filterResponse:a=!0}=s;return super.fetch(t,o,Object.assign({},s,{filterResponse:!1,resultSourceMap:"withKeyArraySelector"})).then(u=>{let{result:c,resultSourceMap:l}=u,f=cc(c,l,i);return a?f:{...u,result:f}})}};lt=new WeakMap;var Ey=xy,dc=ur(cr,Ey),g0=dc.requester,gc=dc.createClient;var mc=e=>{var t,r;let{encodeSourceMap:n=Ay(),encodeSourceMapAtPath:i,studioUrl:s=Oy(),logger:o,...a}=e,u=n===!0;if(n==="auto"&&(u=Sy()),typeof n=="string"&&n!=="auto")throw new Error("Invalid value for encodeSourceMap: ".concat(n,". Did you mean 'auto'?"));try{if(u&&e.resultSourceMap!==!1)return s?((r=o?.debug)==null||r.call(o,"[@sanity/preview-kit]: Creating source map enabled client"),gc({...a,resultSourceMap:e.resultSourceMap?e.resultSourceMap:"withKeyArraySelector",stega:{enabled:!0,studioUrl:s,logger:o,filter:i?c=>i({path:c.sourcePath,filterDefault:()=>c.filterDefault(c)}):void 0}})):((t=o?.error)==null||t.call(o,"[@sanity/preview-kit]: Content source map enabled client is enabled, but no studioUrl is provided. Falling back to @sanity/client"),lr(a))}catch(c){console.error("[@sanity/preview-kit]: Error creating client",c,"falling back to non-embedded sourcemap mode")}return lr(a)};function Sy(){try{return import.meta.env.VERCEL_ENV==="preview"}catch{}try{return process.env.VERCEL_ENV==="preview"}catch{}return!1}function Ay(){try{return import.meta.env.SANITY_SOURCE_MAP==="true"}catch{}try{return process.env.SANITY_SOURCE_MAP==="true"}catch{}return!1}function Oy(){try{return import.meta.env.SANITY_STUDIO_URL}catch{}try{return process.env.SANITY_STUDIO_URL}catch{}}var U=W(xn(),1),me=W(Ac(),1);var yc=(0,U.createContext)(void 0),vc=()=>(0,U.useContext)(yc);var Ty=(0,U.lazy)(()=>import("https://cdn.shopify.com/oxygen-v2/26325/10618/21930/1653407/build/_shared/dist-I3VSWBHA.js").then(e=>({default:e.LiveQueryProvider})));function _0(e){let{children:t,previewConfig:r,fallback:n=t,...i}=e,[,s]=(0,U.useTransition)(),[o,a]=(0,U.useState)(!1);if((0,U.useEffect)(()=>s(()=>a(!0)),[]),!o||!r||!r.projectId)return(0,me.jsx)(me.Fragment,{children:t});let u=mc(r);return(0,me.jsx)(yc.Provider,{value:{projectId:r.projectId},children:(0,me.jsx)(U.Suspense,{fallback:n,children:(0,me.jsx)(Ty,{...i,client:u,children:t})})})}var Ry,Py;Ry=new WeakMap,Py=new WeakMap;var _n=[],Cn=[],bc=new Set,ht=new Map,pt=new Map,wc=e=>typeof e=="string"?new RegExp("^".concat(e,"$"),"i"):e,dr=(e,t)=>typeof t!="string"?e:e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase(),_c=(e,t,r)=>{if(!e.length||bc.has(e))return t;let{length:n}=r;for(;n--;){let i=r[n];if(i[0].test(t))return t.replace(i[0],function(){for(var s=arguments.length,o=new Array(s),a=0;ao[p]||"");return dr(u===""?t[c-1]:u,l)})}return t},Cc=(e,t,r,n)=>{let i=e.toLowerCase();return r.has(i)?dr(e,i):t.has(i)?dr(e,t.get(i)):_c(i,e,n)},xc=(e,t,r,n)=>{let i=e.toLowerCase();return r.has(i)?!0:t.has(i)?!1:_c(i,i,n)===i},F=(e,t,r)=>{let n=t===1?F.singular(e):F.plural(e);return r?"".concat(t," ").concat(n):n};F.plural=e=>Cc(e,pt,ht,_n);F.singular=e=>Cc(e,ht,pt,Cn);F.addPluralRule=(e,t)=>{_n.push([wc(e),t])};F.addSingularRule=(e,t)=>{Cn.push([wc(e),t])};F.addIrregularRule=(e,t)=>{let r=t.toLowerCase(),n=e.toLowerCase();pt.set(n,r),ht.set(r,n)};F.addUncountableRule=e=>{if(typeof e=="string"){bc.add(e.toLowerCase());return}F.addPluralRule(e,"$0"),F.addSingularRule(e,"$0")};F.isPlural=e=>xc(e,pt,ht,_n);F.isSingular=e=>xc(e,ht,pt,Cn);var Iy=[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["my","our"],["its","their"],["his","their"],["her","their"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"],["canvas","canvases"]],qy=[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]],My=[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/(dg|ss|ois|lk|ok|wn|mb|th|ch|ec|oal|is|ck|ix|sser|ts|wb)ies$/i,"$1ie"],[/\b(l|(?:neck|cross|hog|aun)?t|coll|faer|food|gen|goon|group|hipp|junk|vegg|(?:pork)?p|charl|calor|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]],Dy=["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i];for(let[e,t]of Iy)F.addIrregularRule(e,t);for(let[e,t]of qy)F.addPluralRule(e,t);for(let[e,t]of My)F.addSingularRule(e,t);for(let e of Dy)F.addUncountableRule(e);var gr=W(xn());var Ec={default:{language:"EN",country:"US",label:"United States (USD $)",currency:"USD"},"/en-au":{language:"EN",country:"AU",label:"Australia (AUD $)",currency:"AUD"},"/en-gb":{language:"EN",country:"GB",label:"UK (GBP \xA3)",currency:"GBP"},"/en-no":{language:"EN",country:"NO",label:"Norway (NOK kr)",currency:"NOK"}};var Fy=Object.freeze({...Ec.default,pathPrefix:""});function I0(e){let[t]=An();return`${(t.data?.selectedLocale??Fy).pathPrefix}${e.startsWith("/")?e:"/"+e}`}function q0(e){let t={ATTEMPTED_DELIVERY:"Attempted delivery",CANCELED:"Canceled",CONFIRMED:"Confirmed",DELIVERED:"Delivered",FAILURE:"Failure",FULFILLED:"Fulfilled",IN_PROGRESS:"In Progress",IN_TRANSIT:"In transit",LABEL_PRINTED:"Label printed",LABEL_PURCHASED:"Label purchased",LABEL_VOIDED:"Label voided",MARKED_AS_FULFILLED:"Marked as fulfilled",NOT_DELIVERED:"Not delivered",ON_HOLD:"On Hold",OPEN:"Open",OUT_FOR_DELIVERY:"Out for delivery",PARTIALLY_FULFILLED:"Partially Fulfilled",PENDING_FULFILLMENT:"Pending",PICKED_UP:"Displayed as Picked up",READY_FOR_PICKUP:"Ready for pickup",RESTOCKED:"Restocked",SCHEDULED:"Scheduled",SUBMITTED:"Submitted",UNFULFILLED:"Unfulfilled"};try{return t?.[e]}catch{return e}}var M0=e=>{let t=e?.[0];return!t||t.name==="Title"&&t.values.some(r=>r==="Default Title")?!1:t.name==="Title"&&t.values[0]!=="Default Title"?!0:!(t.name==="Title"&&t.values[0]==="Default Title")},D0=e=>e?.map(({name:t,values:r})=>F(t,r.length,!0)).join(" / ");function F0(e){let t=ky(),r=En(),n=Boolean(vc()),i=t.get(e);return(0,gr.useEffect)(()=>{n&&r.state==="idle"&&!i&&r.revalidate()},[i,n,r]),i}function ky(){let e=Sn();return(0,gr.useMemo)(()=>{let t=new Map;if(!Array.isArray(e))return t;for(let r of e)t.has(r.id)||t.set(r.id,r);return t},[e])}export{vc as a,_0 as b,Fy as c,I0 as d,q0 as e,M0 as f,D0 as g,F0 as h,ky as i}; /*! Bundled license information: is-plain-object/dist/is-plain-object.mjs: (*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. *) */