PageSourceSearch

https://lumalabs.ai/_next/static/chunks/5573-7efc7004d17be575.js

js lumalabs.ai collected 2026-10-01 08:43:45 UTC 83,190 bytes, 8 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5573],{94745:function(e,t,r){r.d(t,{default:function(){return s.a}});var n=r(86541),s=r.n(n)},68383:function(e,t,r){var n=r(11003);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}}),r.o(n,"useServerInsertedHTML")&&r.d(t,{useServerInsertedHTML:function(){return n.useServerInsertedHTML}})},86541:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let n=r(20321);r(66110),r(41031);let s=n._(r(47223));function o(e,t){var r;let n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};"function"==typeof e&&(n.loader=e);let o={...n,...t};return(0,s.default)({...o,modules:null==(r=o.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36037:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return s}});let n=r(14850);function s(e){let{reason:t,children:r}=e;if("undefined"==typeof window)throw new n.BailoutToCSRError(t);return r}},47223:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return c}});let n=r(66110),s=r(41031),o=r(36037),i=r(96011);function a(e){return{default:e&&"default"in e?e.default:e}}let u={loader:()=>Promise.resolve(a(()=>null)),loading:null,ssr:!0},c=function(e){let t={...u,...e},r=(0,s.lazy)(()=>t.loader().then(a)),c=t.loading;function l(e){let a=c?(0,n.jsx)(c,{isLoading:!0,pastDelay:!0,error:null}):null,u=t.ssr?(0,n.jsxs)(n.Fragment,{children:["undefined"==typeof window?(0,n.jsx)(i.PreloadCss,{moduleIds:t.modules}):null,(0,n.jsx)(r,{...e})]}):(0,n.jsx)(o.BailoutToCSR,{reason:"next/dynamic",children:(0,n.jsx)(r,{...e})});return(0,n.jsx)(s.Suspense,{fallback:a,children:u})}return l.displayName="LoadableComponent",l}},96011:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadCss",{enumerable:!0,get:function(){return o}});let n=r(66110),s=r(8920);function o(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let r=(0,s.getExpectedRequestStore)("next/dynamic css"),o=[];if(r.reactLoadableManifest&&t){let e=r.reactLoadableManifest;for(let r of t){if(!e[r])continue;let t=e[r].files.filter(e=>e.endsWith(".css"));o.push(...t)}}return 0===o.length?null:(0,n.jsx)(n.Fragment,{children:o.map(e=>(0,n.jsx)("link",{precedence:"dynamic",rel:"stylesheet",href:r.assetPrefix+"/_next/"+encodeURI(e),as:"style"},e))})}},69652:function(e,t,r){r.d(t,{y:function(){return l}});var n=r(94386),s=r(25808),o=r(43492),i=r(97596),a=r(89643),u=r(66393),c=r(47974),l=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var o,i=this,a=(o=e)&&o instanceof n.Lv||o&&(0,u.m)(o.next)&&(0,u.m)(o.error)&&(0,u.m)(o.complete)&&(0,s.Nn)(o)?e:new n.Hp(e,t,r);return(0,c.x)(function(){var e=i.operator,t=i.source;a.add(e?e.call(a,t):t?i._subscribe(a):i._trySubscribe(a))}),a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))(function(t,s){var o=new n.Hp({next:function(t){try{e(t)}catch(e){s(e),o.unsubscribe()}},error:s,complete:t});r.subscribe(o)})},e.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},e.prototype[o.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,i.U)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=d(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function d(e){var t;return null!==(t=null!=e?e:a.v.Promise)&&void 0!==t?t:Promise}},94386:function(e,t,r){r.d(t,{Hp:function(){return g},Lv:function(){return p}});
1var n=r(27799),s=r(66393),o=r(25808),i=r(89643),a=r(26753),u=r(93739),c=l("C",void 0,void 0);function l(e,t,r){return{kind:e,value:t,error:r}}var d=r(90070),f=r(47974),p=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,o.Nn)(t)&&t.add(r)):r.destination=w,r}return(0,n.ZT)(t,e),t.create=function(e,t,r){return new g(e,t,r)},t.prototype.next=function(e){this.isStopped?v(l("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?v(l("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?v(c,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(o.w0),h=Function.prototype.bind;function y(e,t){return h.call(e,t)}var m=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),g=function(e){function t(t,r,n){var o,a,u=e.call(this)||this;return(0,s.m)(t)||!t?o={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:u&&i.v.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return u.unsubscribe()},o={next:t.next&&y(t.next,a),error:t.error&&y(t.error,a),complete:t.complete&&y(t.complete,a)}):o=t,u.destination=new m(o),u}return(0,n.ZT)(t,e),t}(p);function b(e){i.v.useDeprecatedSynchronousErrorHandling?(0,f.O)(e):(0,a.h)(e)}function v(e,t){var r=i.v.onStoppedNotification;r&&d.z.setTimeout(function(){return r(e,t)})}var w={closed:!0,next:u.Z,error:function(e){throw e},complete:u.Z}},25808:function(e,t,r){r.d(t,{Lc:function(){return u},w0:function(){return a},Nn:function(){return c}});var n=r(27799),s=r(66393),o=(0,r(82862).d)(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t}}),i=r(59963),a=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,i,a,u=this._parentage;if(u){if(this._parentage=null,Array.isArray(u))try{for(var c=(0,n.XA)(u),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}else u.remove(this)}var f=this.initialTeardown;if((0,s.m)(f))try{f()}catch(e){a=e instanceof o?e.errors:[e]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=(0,n.XA)(p),y=h.next();!y.done;y=h.next()){var m=y.value;try{l(m)}catch(e){a=null!=a?a:[],e instanceof o?a=(0,n.ev)((0,n.ev)([],(0,n.CR)(a)),(0,n.CR)(e.errors)):a.push(e)}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}}if(a)throw new o(a)}},t.prototype.add=function(e){var r;if(e&&e!==this){if(this.closed)l(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!==(r=this._finalizers)&&void 0!==r?r:[]).push(e)}}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&(0,i.P)(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&(0,i.P)(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=((e=new t).closed=!0,e),t}(),u=a.EMPTY;function c(e){return e instanceof a||e&&"closed"in e&&(0,s.m)(e.remove)&&(0,s.m)(e.add)&&(0,s.m)(e.unsubscribe)}function l(e){(0,s.m)(e)?e():e.unsubscribe()}},89643:function(e,t,r){r.d(t,{v:function(){return n}});var n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
1Context:!1}},82745:function(e,t,r){r.d(t,{P:function(){return o}});var n=r(69652),s=r(69983);function o(e){return new n.y(function(t){(0,s.Xf)(e()).subscribe(t)})}},40598:function(e,t,r){r.d(t,{E:function(){return n}});var n=new(r(69652)).y(function(e){return e.complete()})},69983:function(e,t,r){r.d(t,{Xf:function(){return y}});var n=r(27799),s=r(8643),o=r(19666),i=r(69652),a=r(56169),u=r(79251),c=r(17156),l=r(56540),d=r(41167),f=r(66393),p=r(26753),h=r(43492);function y(e){if(e instanceof i.y)return e;if(null!=e){if((0,a.c)(e))return new i.y(function(t){var r=e[h.L]();if((0,f.m)(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")});if((0,s.z)(e))return new i.y(function(t){for(var r=0;r<e.length&&!t.closed;r++)t.next(e[r]);t.complete()});if((0,o.t)(e))return new i.y(function(t){e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,p.h)});if((0,u.D)(e))return m(e);if((0,l.T)(e))return new i.y(function(t){var r,s;try{for(var o=(0,n.XA)(e),i=o.next();!i.done;i=o.next()){var a=i.value;if(t.next(a),t.closed)return}}catch(e){r={error:e}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(r)throw r.error}}t.complete()});if((0,d.L)(e))return m((0,d.Q)(e))}throw(0,c.z)(e)}function m(e){return new i.y(function(t){(function(e,t){var r,s,o,i;return(0,n.mG)(this,void 0,void 0,function(){var a;return(0,n.Jh)(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),r=(0,n.KL)(e),u.label=1;case 1:return[4,r.next()];case 2:if((s=u.sent()).done)return[3,4];if(a=s.value,t.next(a),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o={error:u.sent()},[3,11];case 6:if(u.trys.push([6,,9,10]),!(s&&!s.done&&(i=r.return)))return[3,8];return[4,i.call(r)];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}},46960:function(e,t,r){r.d(t,{x:function(){return s}});var n=r(27799);function s(e,t,r,n,s){return new o(e,t,r,n,s)}var o=function(e){function t(t,r,n,s,o,i){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=i,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=s?function(e){try{s(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,n.ZT)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null===(t=this.onFinalize)||void 0===t||t.call(this)}},t}(r(94386).Lv)},56686:function(e,t,r){r.d(t,{h:function(){return o}});var n=r(21304),s=r(46960);function o(e,t){return(0,n.e)(function(r,n){var o=0;r.subscribe((0,s.x)(n,function(r){return e.call(t,r,o++)&&n.next(r)}))})}},12249:function(e,t,r){r.d(t,{U:function(){return o}});var n=r(21304),s=r(46960);function o(e,t){return(0,n.e)(function(r,n){var o=0;r.subscribe((0,s.x)(n,function(r){n.next(e.call(t,r,o++))}))})}},85306:function(e,t,r){r.d(t,{z:function(){return function e(t,r,u){return(void 0===u&&(u=1/0),(0,a.m)(r))?e(function(e,o){return(0,n.U)(function(t,n){return r(e,t,o,n)})((0,s.Xf)(t(e,o)))},u):("number"==typeof r&&(u=r),(0,o.e)(function(e,r){var n,o,a,c,l,d,f,p,h;return n=u,a=[],c=0,l=0,d=!1,f=function(){!d||a.length||c||r.complete()},p=function(e){return c<n?h(e):a.push(e)},h=function(e){c++;var u=!1;(0,s.Xf)(t(e,l++)).subscribe((0,i.x)(r,function(e){o?p(e):r.next(e)},function(){u=!0},void 0,function(){if(u)try{for(c--;a.length&&c<n;)!function(){var e=a.shift();h(e)}();f()}catch(e){r.error(e)}}))},e.subscribe((0,i.x)(r,p,function(){d=!0,f()})),function(){}}))}}});var n=r(12249),s=r(69983),o=r(21304),i=(r(51863),r(46960)),a=r(66393)},90070:function(e,t,r){r.d(t,{z:function(){return s}});var n=r(27799),s={setTimeout:function(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var i=s.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,n.ev)([e,t],(0,n.CR)(r))):setTimeout.apply(void 0,(0,n.ev)([e,t],(0,n.CR)(r)))},clearTimeout:function(e){var t=s.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0}},94954:function(e,t,r){r.d(t,{h:function(){return n}});var n="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},43492:function(e,t,r){r.d(t,{L:function(){return n}});var n="function"==typeof Symbol&&Symbol.observable||"@@observable"},59963:function(e,t,r){r.d(t,{P:function(){return n}});function n(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}},82862:function(e,t,r){r.d(t,{d:function(){return n}});function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}},47974:function(e,t,r){r.d(t,{O:function(){return i},x:function(){return o}});var n=r(89643),s=null;function o(e){if(n.v.useDeprecatedSynchronousErrorHandling){var t=!s;if(t&&(s={errorThrown:!1,error:null}),e(),t){var r=s,o=r.errorThrown,i=r.error;if(s=null,o)throw i}}else e()}function i(e){n.v.useDeprecatedSynchronousErrorHandling&&s&&(s.errorThrown=!0,s.error=e)}},51863:function(e,t,r){r.d(t,{f:function(){return n}});function n(e,t,r,n,s){void 0===n&&(n=0),void 0===s&&(s=!1);var o=t.schedule(function(){r(),s?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!s)return o}},5343:function(e,t,r){r.d(t,{y:function(){return n}});function n(e){return e}},8643:function(e,t,r){r.d(t,{z:function(){return n}});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},79251:function(e,t,r){r.d(t,{D:function(){return s}});var n=r(66393);function s(e){return Symbol.asyncIterator&&(0,n.m)(null==e?void 0:e[Symbol.asyncIterator])}},66393:function(e,t,r){r.d(t,{m:function(){return n}});function n(e){return"function"==typeof e}},56169:function(e,t,r){r.d(t,{c:function(){return o}});var n=r(43492),s=r(66393);function o(e){return(0,s.m)(e[n.L])}},56540:function(e,t,r){r.d(t,{T:function(){return o}});var n=r(94954),s=r(66393);function o(e){return(0,s.m)(null==e?void 0:e[n.h])}},19666:function(e,t,r){r.d(t,{t:function(){return s}});var n=r(66393);function s(e){return(0,n.m)(null==e?void 0:e.then)}},41167:function(e,t,r){r.d(t,{L:function(){return i},Q:function(){return o}});var n=r(27799),s=r(66393);function o(e){return(0,n.FC)(this,arguments,function(){var t,r,s;return(0,n.Jh)(this,function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,(0,n.qq)(t.read())];case 3:if(s=(r=o.sent()).value,!r.done)return[3,5];return[4,(0,n.qq)(void 0)];case 4:return[2,o.sent()];case 5:return[4,(0,n.qq)(s)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function i(e){return(0,s.m)(null==e?void 0:e.getReader)}},21304:function(e,t,r){r.d(t,{e:function(){return s}});var n=r(66393);function s(e){return function(t){if((0,n.m)(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}},93739:function(e,t,r){r.d(t,{Z:function(){return n}});function n(){}},97596:function(e,t,r){r.d(t,{U:function(){return o},z:function(){return s}});var n=r(5343);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)}function o(e){return 0===e.length?n.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},26753:function(e,t,r){r.d(t,{h:function(){return o}});var n=r(89643),s=r(90070);function o(e){s.z.setTimeout(function(){var t=n.v.onUnhandledError;if(t)t(e);else throw e})}},17156:function(e,t,r){r.d(t,{z:function(){return n}});function n(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
1d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},92448:function(e,t,r){r.d(t,{C:function(){return i},N:function(){return c}});var n={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},s={0:8203,1:8204,2:8205,3:65279},o=[,,,,].fill(String.fromCodePoint(s[0])).join("");function i(e,t,r="auto"){let n;return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${n=JSON.stringify(t),`${o}${Array.from(n).map(e=>{let t=e.charCodeAt(0);if(t>255)throw Error(`Only ASCII edit info can be encoded. Error attempting to encode ${n} on character ${e} (${t})`);return Array.from(t.toString(4).padStart(4,"0")).map(e=>String.fromCodePoint(s[e])).join("")}).join("")}`}`}Object.fromEntries(Object.entries(s).map(e=>e.reverse())),Object.fromEntries(Object.entries(n).map(e=>e.reverse()));var a=`${Object.values(n).map(e=>`\\u{${e.toString(16)}}`).join("")}`,u=RegExp(`[${a}]{4,}`,"gu");function c(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(u,""),encoded:(null==(r=t.match(u))?void 0:r[0])||""}.cleaned)}},58468:function(e,t,r){r.d(t,{yK:function(){return _},Hq:function(){return U},ei:function(){return z},bK:function(){return M},Ol:function(){return L},UE:function(){return D},Ag:function(){return F},F8:function(){return P},dS:function(){return W},zB:function(){return B},lB:function(){return H}});var n=r(97773),s=r(95664),o=r(52680),i=r(60275),a=r(68160),u=r(82745),c=r(27799),l=r(69983),d=r(69652),f=r(85306),p=r(8643),h=r(66393),y=r(12249),m=Array.isArray,g=["addListener","removeListener"],b=["addEventListener","removeEventListener"],v=["on","off"];function w(e,t,r,n){if((0,h.m)(r)&&(n=r,r=void 0),n)return w(e,t,r).pipe((s=n,(0,y.U)(function(e){return m(e)?s.apply(void 0,(0,c.ev)([],(0,c.CR)(e))):s(e)})));var s,o=(0,c.CR)((0,h.m)(e.addEventListener)&&(0,h.m)(e.removeEventListener)?b.map(function(n){return function(s){return e[n](t,s,r)}}):(0,h.m)(e.addListener)&&(0,h.m)(e.removeListener)?g.map(C(e,t)):(0,h.m)(e.on)&&(0,h.m)(e.off)?v.map(C(e,t)):[],2),i=o[0],a=o[1];if(!i&&(0,p.z)(e))return(0,f.z)(function(e){return w(e,t,r)})((0,l.Xf)(e));if(!i)throw TypeError("Invalid event target");return new d.y(function(e){var t=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return e.next(1<t.length?t:t[0])};return i(t),function(){return a(t)}})}function C(e,t){return function(r){return function(n){return e[r](t,n)}}}var E=r(97596),x=r(56686),q=r(21304),R=r(46960),j=r(59963),T=r(40598);function O(e){return e<=0?function(){return T.E}:(0,q.e)(function(t,r){var n=0;t.subscribe((0,R.x)(r,function(t){++n<=e&&(r.next(t),e<=n&&r.complete())}))})}var k=r(93739);let S=e=>({context:t})=>{let{count:r,include:n,exclude:s,responseType:o="message.received"}=e;return{count:r,domain:t.domain,from:t.connectTo,include:n?Array.isArray(n)?n:[n]:[],exclude:s?Array.isArray(s)?s:[s]:[],responseType:o,target:t.target,to:t.name}},I=e=>t=>{let{data:r}=t;return(!e.include.length||e.include.includes(r.type))&&(!e.exclude.length||!e.exclude.includes(r.type))&&r.domain===e.domain&&r.from===e.from&&r.to===e.to&&(!e.target||t.source===e.target)},$=e=>t=>({type:e,message:t}),A=(0,u.P)(()=>w(window,"message")),P=e=>(0,s.Y$)(({input:t})=>{var r,n,s,o;return A.pipe(e?(0,y.U)(e):(0,E.z)(),(0,x.h)(I(t)),(0,y.U)($(t.responseType)),t.count?(0,E.z)((r=t.count,void 0===n&&(n=null),n=null!=n?n:r,(0,q.e)(function(e,t){var s=[],o=0;e.subscribe((0,R.x)(t,function(e){var i,a,u,l,d=null;o++%n==0&&s.push([]);try{for(var f=(0,c.XA)(s),p=f.next();!p.done;p=f.next()){var h=p.value;h.push(e),r<=h.length&&(d=null!=d?d:[]).push(h)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}if(d)try{for(var y=(0,c.XA)(d),m=y.next();!m.done;m=y.next()){var h=m.value;(0,j.P)(s,h),t.next(h)}}catch(e){u={error:e}}finally{try{m&&!m.done&&(l=y.return)&&l.call(y)}finally{if(u)throw u.error}}},function(){var e,r;try{for(var n=(0,c.XA)(s),o=n.next();!o.done;o=n.next()){var i=o.value;t.next(i)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}t.complete()},void 0,function(){s=null}))})),(s=e=>e,(0,h.m)(void 0)?(0,f.z)(s,o,1):(0,f.z)(s,1)),O(t.count)):(0,E.z)())}),_="sanity/comlink",F="comlink/response",D="comlink/heartbeat",U="c
1omlink/disconnect",M="comlink/handshake/syn",L="comlink/handshake/syn-ack",z="comlink/handshake/ack",N=e=>t=>t.pipe(O(1),(0,y.U)(()=>{throw Error(e)})),H=()=>(0,o.cY)({types:{},actors:{listen:(0,s.Y$)(({input:e})=>{let t=e.signal?w(e.signal,"abort").pipe(N(`Request ${e.requestId} aborted`)):T.E;return w(window,"message").pipe((0,x.h)(t=>t.data?.type===F&&t.data?.responseTo===e.requestId&&!!t.source&&e.sources.has(t.source)),O(e.sources.size),(0,q.e)(function(e,r){(0,l.Xf)(t).subscribe((0,R.x)(r,function(){return r.complete()},k.Z)),r.closed||e.subscribe(r)}))})},actions:{"send message":({context:e},t)=>{let{sources:r,targetOrigin:n}=e,{message:s}=t;r.forEach(e=>{e.postMessage(s,{targetOrigin:n})})},"on success":(0,i.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.response&&e.resolvable?.resolve(e.response),{type:"request.success",requestId:t.id,response:e.response,responseTo:e.responseTo})),"on fail":(0,i.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.suppressWarnings||console.warn(`[@sanity/comlink] Received no response to message '${e.type}' on client '${e.from}' (ID: '${e.id}').`),e.resolvable?.reject(Error("No response received")),{type:"request.failed",requestId:t.id})),"on abort":(0,i.c)(({context:e})=>e.parentRef,({context:e,self:t})=>(e.resolvable?.reject(Error("Request aborted")),{type:"request.aborted",requestId:t.id}))},guards:{expectsResponse:({context:e})=>e.expectResponse},delays:{initialTimeout:0,responseTimeout:({context:e})=>e.responseTimeout??3e3}}).createMachine({context:({input:e})=>({channelId:e.channelId,data:e.data,domain:e.domain,expectResponse:e.expectResponse??!1,from:e.from,id:`msg-${(0,n.Z)()}`,parentRef:e.parentRef,resolvable:e.resolvable,response:null,responseTimeout:e.responseTimeout,responseTo:e.responseTo,signal:e.signal,sources:e.sources instanceof Set?e.sources:new Set([e.sources]),suppressWarnings:e.suppressWarnings,targetOrigin:e.targetOrigin,to:e.to,type:e.type}),initial:"idle",on:{abort:".aborted"},states:{idle:{after:{initialTimeout:[{target:"sending"}]}},sending:{entry:{type:"send message",params:({context:e})=>{let{channelId:t,data:r,domain:n,from:s,id:o,responseTo:i,to:a,type:u}=e;return{message:{channelId:t,data:r,domain:n,from:s,id:o,to:a,type:u,responseTo:i}}}},always:[{guard:"expectsResponse",target:"awaiting"},"success"]},awaiting:{invoke:{id:"listen for response",src:"listen",input:({context:e})=>({requestId:e.id,sources:e.sources,signal:e.signal}),onError:"aborted"},after:{responseTimeout:"failed"},on:{message:{actions:(0,i.a)({response:({event:e})=>e.data.data,responseTo:({event:e})=>e.data.responseTo}),target:"success"}}},failed:{type:"final",entry:"on fail"},success:{type:"final",entry:"on success"},aborted:{type:"final",entry:"on abort"}},output:({context:e,self:t})=>({requestId:t.id,response:e.response,responseTo:e.responseTo})}),B=((0,s.E9)(({sendBack:e,input:t})=>{let r=()=>{e(t.event)};t.immediate&&r();let n=setInterval(r,t.interval);return()=>{clearInterval(n)}}),()=>(0,o.cY)({types:{},actors:{requestMachine:H(),listen:P()},actions:{"buffer handshake":(0,i.a)({handshakeBuffer:({event:e,context:t})=>((0,o.ZD)(e,"message.received"),[...t.handshakeBuffer,e])}),"buffer message":(0,i.b)(({enqueue:e})=>{e.assign({buffer:({event:e,context:t})=>((0,o.ZD)(e,"post"),[...t.buffer,{data:e.data,resolvable:e.resolvable,options:e.options}])}),e.emit(({event:e})=>((0,o.ZD)(e,"post"),{type:"buffer.added",message:e.data}))}),"create request":(0,i.a)({requests:({context:e,event:t,self:r,spawn:s})=>{(0,o.ZD)(t,"request");let i=(Array.isArray(t.data)?t.data:[t.data]).map(t=>s("requestMachine",{id:`req-${(0,n.Z)()}`,input:{channelId:e.channelId,data:t.data,domain:e.domain,expectResponse:t.expectResponse,from:e.name,parentRef:r,resolvable:t.resolvable,responseTimeout:t.options?.responseTimeout,responseTo:t.responseTo,signal:t.options?.signal,sources:e.target,suppressWarnings:t.options?.suppressWarnings,targetOrigin:e.targetOrigin,to:e.connectTo,type:t.type}}));return[...e.requests,...i]}}),"emit heartbeat":(0,i.e)(()=>({type:"heartbeat"})),"emit received message":(0,i.b)(({enqueue:e})=>{e.emit(({event:e})=>((0,o.ZD)(e,"message.received"),{type:"message",message:e.message.data}))}),"emit status":(0,i.e)((e,t)=>({type:"status",status:t.status})),"post message":(0,a.O)(({event:e})=>((0,o.ZD)(e,"post"),{type:"request",data:{data:e.data.data,expectResponse:!!e.resolvable,type:e.data.type,resolvable:e.resolvable,options:e.options}})),"process pending handshakes":(0,i.b)(({context:e,enqueue:t})=>
1{e.handshakeBuffer.forEach(e=>t.raise(e)),t.assign({handshakeBuffer:[]})}),"remove request":(0,i.b)(({context:e,enqueue:t,event:r})=>{(0,o.ZD)(r,["request.success","request.failed","request.aborted"]),(0,a.R)(r.requestId),t.assign({requests:e.requests.filter(({id:e})=>e!==r.requestId)})}),"send response":(0,a.O)(({event:e})=>((0,o.ZD)(e,["message.received","heartbeat.received"]),{type:"request",data:{type:F,responseTo:e.message.data.id,data:void 0}})),"send handshake syn ack":(0,a.O)({type:"request",data:{type:L}}),"send pending messages":(0,i.b)(({enqueue:e})=>{e.raise(({context:e})=>({type:"request",data:e.buffer.map(({data:e,resolvable:t,options:r})=>({data:e.data,type:e.type,expectResponse:!!t,resolvable:t,options:r}))})),e.emit(({context:e})=>({type:"buffer.flushed",messages:e.buffer.map(({data:e})=>e)})),e.assign({buffer:[]})}),"set connection config":(0,i.a)({channelId:({event:e})=>((0,o.ZD)(e,"handshake.syn"),e.message.data.channelId),target:({event:e})=>((0,o.ZD)(e,"handshake.syn"),e.message.source||void 0),targetOrigin:({event:e})=>((0,o.ZD)(e,"handshake.syn"),e.message.origin)})},guards:{hasSource:({context:e})=>null!==e.target}}).createMachine({id:"node",context:({input:e})=>({buffer:[],channelId:null,connectTo:e.connectTo,domain:e.domain??_,handshakeBuffer:[],name:e.name,requests:[],target:void 0,targetOrigin:null}),invoke:{id:"listen for handshake syn",src:"listen",input:S({include:M,responseType:"handshake.syn"})},on:{"request.success":{actions:"remove request"},"request.failed":{actions:"remove request"},"request.aborted":{actions:"remove request"},"handshake.syn":{actions:"set connection config",target:".handshaking"}},initial:"idle",states:{idle:{entry:[{type:"emit status",params:{status:"idle"}}],on:{post:{actions:"buffer message"}}},handshaking:{guard:"hasSource",entry:["send handshake syn ack",{type:"emit status",params:{status:"handshaking"}}],invoke:[{id:"listen for handshake ack",src:"listen",input:S({include:z,count:1,responseType:"handshake.complete"}),onDone:"connected"},{id:"listen for disconnect",src:"listen",input:S({include:U,count:1,responseType:"disconnect"})},{id:"listen for messages",src:"listen",input:S({exclude:[U,M,z,D,F]})}],on:{request:{actions:"create request"},post:{actions:"buffer message"},"message.received":{actions:"buffer handshake"},disconnect:{target:"idle"}}},connected:{entry:["process pending handshakes","send pending messages",{type:"emit status",params:{status:"connected"}}],invoke:[{id:"listen for messages",src:"listen",input:S({exclude:[U,M,z,D,F]})},{id:"listen for heartbeat",src:"listen",input:S({include:D,responseType:"heartbeat.received"})},{id:"listen for disconnect",src:"listen",input:S({include:U,count:1,responseType:"disconnect"})}],on:{request:{actions:"create request"},post:{actions:"post message"},disconnect:{target:"idle"},"message.received":{actions:["send response","emit received message"]},"heartbeat.received":{actions:["send response","emit heartbeat"]}}}}})),W=(e,t=B())=>{let r;let n=(0,a.A)(t,{input:e}),s=new Map,o=new Map;n.on("message",({message:e})=>{let t=s.get(e.type);if(t){t.forEach(t=>t(e.data));return}let r=o.get(e.type);r?r.add(e):o.set(e.type,new Set([e]))});let i=()=>{n.stop()};return{actor:n,fetch:(e,t,r)=>{let{responseTimeout:s=1e4,signal:o,suppressWarnings:i}=r||{},a=Promise.withResolvers();return n.send({type:"post",data:{type:e,data:t},resolvable:a,options:{responseTimeout:s,signal:o,suppressWarnings:i}}),a.promise},machine:t,on:(e,t,r)=>{let n=s.get(e)||new Set;s.has(e)||s.set(e,n),n.add(t);let i=o.get(e);if(i){let n=r?.replay??1;Array.from(i).slice(-n).forEach(({data:e})=>t(e)),o.delete(e)}return()=>{n.delete(t)}},onStatus:(e,t)=>{let{unsubscribe:s}=n.on("status",n=>{r=n.status,t&&n.status!==t||e(n.status)});return r&&e(r),s},post:(e,t)=>{n.send({type:"post",data:{type:e,data:t}})},start:()=>(n.start(),i),stop:i}}},2519:function(e,t,r){r.d(t,{Bk:function(){return o},Uw:function(){return a},Y5:function(){return u},id:function(){return c},re:function(){return l}});let n=new Set,s="checking";function o(e){if(s!==e)for(let t of(s=e,n))t()}let i=new Set;function a(e){for(let e of i)e()}let u=new Set,c=null;function l(e){for(let t of(c=e,u))t()}},78968:function(e,t,r){r.d(t,{default:function(){return o}});var n=r(66110);let s=(0,r(94745).default)(()=>r.e(4929).then(r.bind(r,64929)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/SanityLiveStream.js")]},ssr:!1});function o(e){return(0,n.jsx)(s,{...e})}},65087:function(e,t,r){r.d(t,{default:function(){return t5}});var n,s=r(66110);let o=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:o?6e4:12e4},a=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(i.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),n=e.slice(t+1);if(!o)return{url:r,searchParams:new URLSearchParams(n)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let s=new URLSearchParams;for(let e of n.split("&")){let[t,r]=e.split("=");t&&s.append(u(t),u(r||""))}return{url:r,searchParams:s}}(t.url);for(let[n,s]of Object.entries(t.query)){if(void 0!==s){if(Array.isArray(s))for(let e of s)r.append(n,e);else r.append(n,s)}let o=r.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function u(e){return decodeURIComponent(e.replace(/\+/g," "))}let c=/^https?:\/\//i,l=function(e){if(!c.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},d=["request","response","progress","error","abort"],f=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var p,h,y,m=(p=function(){if(y)return h;y=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return h=function(t){if(!t)return{};for(var r,n={},s=e(t).split("\n"),o=0;o<s.length;o++){var i=s[o],a=i.indexOf(":"),u=e(i.slice(0,a)).toLowerCase(),c=e(i.slice(a+1));typeof n[u]>"u"?n[u]=c:(r=n[u],"[object Array]"===Object.prototype.toString.call(r)?n[u].push(c):n[u]=[n[u],c])}return n}}())&&p.__esModule&&Object.prototype.hasOwnProperty.call(p,"default")?p.default:p;class g{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#s;#o={};#i;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#s=void 0}abort(){this.#s&&this.#s.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#o=e,this.#i=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#o,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#i&&(this.#s=new AbortController,"u">typeof EventTarget&&this.#s.signal instanceof EventTarget&&(r.signal=this.#s.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>
1(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r
2`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let b="function"==typeof XMLHttpRequest?"xhr":"fetch",v="xhr"===b?XMLHttpRequest:g,w=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),s={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:b,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let i=new v;i instanceof g&&"object"==typeof n.fetch&&i.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,d=!1;if(i.onerror=e=>{h(i instanceof g?e instanceof Error?e:Error(`Request error while attempting to reach is ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},i.ontimeout=e=>{h(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},i.onabort=()=>{p(!0),c=!0},i.onreadystatechange=function(){u&&(p(),s.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),u.socket)),!c&&i&&4===i.readyState&&0!==i.status&&function(){if(!(c||l||d)){if(0===i.status)return void h(Error("Unknown XHR error"));p(),l=!0,t(null,{body:i.response||(""===i.responseType||"text"===i.responseType?i.responseText:""),url:n.url,method:n.method,headers:m(i.getAllResponseHeaders()),statusCode:i.status,statusMessage:i.statusText})}}()},i.open(n.method,n.url,!0),i.withCredentials=!!n.withCredentials,a&&i.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&i.setRequestHeader(e,a[e]);return n.rawBody&&(i.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:b,request:i,context:e}),i.send(n.body||null),u&&(s.connect=setTimeout(()=>f("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,i&&i.abort()}};function f(t){d=!0,i.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function p(e){(e||c||i&&i.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function h(e){if(l)return;p(!0),l=!0,i=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}},C=(e=[],t=w)=>(function e(t,r){let n=[],s=f.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[a],validateOptions:[l]});function o(e){let t;let n=d.reduce((e,t)=>(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let r in e)e[r](t)},subscribe:function(r){let n=t++;return e[n]=r,function(){delete e[n]}}}}(),e),{}),o=function(e,t,...r){let n="onError"===e,o=t;for(let t=0;t<s[e].length&&(o=(0,s[e][t])(o,...r),!n||o);t++);return o},i=o("processOptions",e);o("validateOptions",i);let a={options:i,channels:n,applyMiddleware:o},u=n.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let s=e,i=t;if(!s)try{i=o("onResponse",t,r)}catch(e){i=null,s=e}(s=s&&o("onError",s,r))?n.error.publish(s):i&&n.response.publish(i)})(t,r,e))});n.abort.subscribe(()=>{u(),t&&t.abort()});let c=o("onReturn",n,a);return c===n&&n.request.publish(a),c}return o.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&s.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return f.forEach(t=>{e[t]&&s[t].push(e[t])}),n.push(e),o},o.clone=()=>e(n,r),t.forEach(o.use),o})(e,t);var E,x,q,R,j,T=r(28070),O=r(65650).lW,k={exports:{}};j||(j=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,s=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(s=n))}),t.splice(s,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch{}return!e&&"u">typeof T&&"env"in T&&(e=T.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
2("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),t.destroy=(r=!1,()=>{r||(r=!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`."))}),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=(R?q:(R=1,q=function(e){function t(e){let n,s,o,i=null;function a(...e){if(!a.enabled)return;let r=Number(new Date),s=r-(n||r);a.diff=s,a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";o++;let s=t.formatters[n];if("function"==typeof s){let t=e[o];r=s.call(a,t),e.splice(o,1),o--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(s!==t.namespaces&&(s=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,s=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(s=n,o=r):r++,n++;else{if(-1===s)return!1;n=s+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(x)return E;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return x=1,E=function(t,r){r=r||{};var n,s,o=typeof t;if("string"===o&&t.length>0)return function(e){if(!((e=String(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]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*r;case"weeks":case"week":case"w":return 6048e5*r;case"days":case"day":case"d":return 864e5*r;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*r;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*r;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(t);if("number"===o&&isFinite(t))return r.long?(s=Math.abs(t))>=864e5?e(t,s,864e5,"day"):s>=36e5?e(t,s,36e5,"hour"):s>=6e4?e(t,s,6e4,"minute"):s>=1e3?e(t,s,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.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`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}
2(k,k.exports)),k.exports,Object.prototype.hasOwnProperty;let S=typeof O>"u"?()=>!1:e=>O.isBuffer(e);function I(e){return"[object Object]"===Object.prototype.toString.call(e)}let $=["boolean","string","number"],A={};"u">typeof globalThis?A=globalThis:"u">typeof window?A=window:"u">typeof global?A=global:"u">typeof self&&(A=self);var P=A;let _=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,s)=>{let o=n.options.cancelToken;o&&o.promise.then(e=>{r.abort.publish(e),s(e)}),r.error.subscribe(s),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){s(e)}},0)})}};class F{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class D{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new F(e),t(this.reason))})}static source=()=>{let e;return{token:new D(t=>{e=t}),cancel:e}}}_.Cancel=F,_.CancelToken=D,_.isCancel=e=>!(!e||!e?.__CANCEL__);var U=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function M(e){return 100*Math.pow(2,e)+100*Math.random()}let L=(e={})=>(e=>{let t=e.maxRetries||5,r=e.retryDelay||M,n=e.shouldRetry;return{onError:(e,s)=>{var o;let i=s.options,a=i.maxRetries||t,u=i.retryDelay||r,c=i.shouldRetry||n,l=i.attemptNumber||0;if(null!==(o=i.body)&&"object"==typeof o&&"function"==typeof o.pipe||!c(e,l,i)||l>=a)return e;let d=Object.assign({},s,{options:Object.assign({},i,{attemptNumber:l+1})});return setTimeout(()=>s.channels.request.publish(d),u(l)),null}}})({shouldRetry:U,...e});L.shouldRetry=U;var z=r(40647),N=r(45277),H=r(86394),B=r(56894),W=r(4132),Z=r(31256),G=r(10733),X=r(20509),J=r(32501),Y=r(24386),V=r(87602),K=r(50906),Q=r(45388),ee=r(47531),et=r(39160),er=r(18497),en=r(39539),es=r(92448),eo=r(18680),ei=r(72133),ea=r(20646);class eu extends Error{response;statusCode=400;responseBody;details;constructor(e){let t=el(e);super(t.message),Object.assign(this,t)}}class ec extends Error{response;statusCode=500;responseBody;details;constructor(e){let t=el(e);super(t.message),Object.assign(this,t)}}function el(e){let t=e.body,r={response:e,statusCode:e.statusCode,responseBody:-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(t,null,2):t,message:"",details:void 0};if(t.error&&t.message)return r.message=`${t.error} - ${t.message}`,r;if(ed(t)&&ed(t.error)&&"mutationError"===t.error.type&&"string"==typeof t.error.description||ed(t)&&ed(t.error)&&"actionError"===t.error.type&&"string"==typeof t.error.description){let e=t.error.items||[],n=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),s=n.length?`:
3- ${n.join(`
4- `)}`:"";return e.length>5&&(s+=`
5...and ${e.length-5} more`),r.message=`${t.error.description}${s}`,r.details=t.error,r}return t.error&&t.error.description?(r.message=t.error.description,r.details=t.error):r.message=t.error||t.message||function(e){let t=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${t}`}(e),r}function ed(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}class ef extends Error{projectId;addOriginUrl;constructor({projectId:e}){super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e;let t=new URL(`https://sanity.io/manage/project/${e}/api`);if("u">typeof location){let{origin:e}=location;t.searchParams.set("cors","add"),t.searchParams.set("origin",e),this.addOriginUrl=t,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${t}`}else this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: ${t}`}}let ep={onResponse:e=>{if(e.statusCode>=500)throw new ec(e);if(e.statusCode>=400)throw new eu(e);return e}};function eh(e){return C([L({shouldRetry:ey}),...e,function(){let e={};return{onResponse:t=>{let r=t.headers["x-sanity-warning"];for(let t of Array.isArray(r)?r:[r])!t||e[t]||(e[t]=!0,console.warn(t));return t}}}(),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||S(t)||-1===$.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===I(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!(!1===I(r)||!1===r.hasOwnProperty("isPrototypeOf"))}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},ep,function(e={}){let t=e.implementation||P.Observable;if(!t)throw Error("`Observable` is not available in global scope, and n
5o implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:z.y})])}function ey(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,s=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!s)&&!!o||L.shouldRetry(e,t,r)}function em(e){return"https://www.sanity.io/help/"+e}let eg=["image","file"],eb=["before","after","replace"],ev=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},ew=e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},eC=e=>{if(-1===eg.indexOf(e))throw Error(`Invalid asset type: ${e}. Must be one of ${eg.join(", ")}`)},eE=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},ex=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},eq=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);ex(e,t._id)},eR=(e,t,r)=>{let n="insert(at, selector, items)";if(-1===eb.indexOf(e)){let e=eb.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)},ej=e=>{if(!e.dataset)throw Error("`dataset` must be provided to perform queries");return e.dataset||""},eT=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},eO=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":if(2!==r.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${t.toString()}`)}},ek=(e,t)=>{if(t["~experimental_resource"])throw Error(`\`${e}\` does not support resource-based operations`)},eS=e=>{var t;let r,n;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(n=t(...e),r=!0),n)},eI=eS(["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"]),e$=eS(["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."]),eA=eS(["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."]),eP=eS(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),e_=eS(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${em("js-client-browser-token")} for more information and how to hide this warning.`]),eF=eS(["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`."]),eD=eS(["Using the Sanity client without specifying an API version is deprecated.",`See ${em("js-client-api-version")}`]),eU=(eS(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),{apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}}),eM=["localhost","127.0.0.1","0.0.0.0"],eL=e=>-1!==eM.indexOf(e);function ez(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let eN=(e,t)=>{let r={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||eU.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};r.apiVersion||eD();let n={...eU,...r},s=n.useProjectHostname&&!n["~experimental_resource"];if(typeof Promise>"u"){let e=em("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(s&&!n.projectId)throw Error("Configuration must contain `projectId`");if(n["~experimental_resource"]&&eO(n),"u">typeof n.perspective&&ez(n.perspective),"encodeSourceMap"in n)throw 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 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'?");
5if("boolean"!=typeof n.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&void 0===n.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&"string"!=typeof n.stega.studioUrl&&"function"!=typeof n.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);let o="u">typeof window&&window.location&&window.location.hostname,i=o&&eL(window.location.hostname),a=!!n.token;n.withCredentials&&a&&(eF(),n.withCredentials=!1),o&&i&&a&&!0!==n.ignoreBrowserTokenWarning?e_():typeof n.useCdn>"u"&&e$(),s&&ew(n.projectId),n.dataset&&ev(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?eT(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===eU.apiHost,!0===n.useCdn&&n.withCredentials&&eI(),n.useCdn=!1!==n.useCdn&&!n.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(n.apiVersion);let u=n.apiHost.split("://",2),c=u[0],l=u[1],d=n.isDefaultApi?"apicdn.sanity.io":l;return s?(n.url=`${c}://${n.projectId}.${l}/v${n.apiVersion}`,n.cdnUrl=`${c}://${n.projectId}.${d}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class eH extends Error{name="ConnectionFailedError"}class eB extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class eW extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class eZ extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class eG extends Error{name="MessageParseError"}let eX=["channelError","disconnect"];function eJ(e,t){return(0,N.P)(()=>{let t=e();return(0,H.b)(t)?t:(0,B.of)(t)}).pipe((0,W.z)(e=>new z.y(r=>{let n=t.includes("open"),s=t.includes("reconnect");function o(t){if("data"in t){let[e,n]=eY(t);r.error(e?new eG("Unable to parse EventSource error message",{cause:n}):new eZ((n?.data).message,n));return}e.readyState===e.CLOSED?r.error(new eH("EventSource connection failed")):s&&r.next({type:"reconnect"})}function i(){r.next({type:"open"})}function a(e){let[t,n]=eY(e);if(t){r.error(new eG("Unable to parse EventSource message",{cause:t}));return}if("channelError"===e.type){var s;r.error(new eW((s=n?.data).error?s.error.description?s.error.description:"string"==typeof s.error?s.error:JSON.stringify(s.error,null,2):s.message||"Unknown listener error",n.data));return}if("disconnect"===e.type){r.error(new eB(`Server disconnected client: ${n.data?.reason||"unknown error"}`));return}r.next({type:e.type,id:e.lastEventId,...n.data?{data:n.data}:{}})}e.addEventListener("error",o),n&&e.addEventListener("open",i);let u=[...new Set([...eX,...t])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(t=>e.addEventListener(t,a)),()=>{e.removeEventListener("error",o),n&&e.removeEventListener("open",i),u.forEach(t=>e.removeEventListener(t,a)),e.close()}})))}function eY(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function eV(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(`
6`);throw Error(`Unknown selection - must be one of:
7
8${t}`)}class eK{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return eE("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw 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,t,r){return eR(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let s=t<0?t-1:t,o=typeof r>"u"||-1===r?-1:Math.max(0,t+r),i=`${e}[${s}:${s<0&&o>=0?"":o}]`;return this.insert("replace",i,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...eV(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return eE(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class eQ extends eK{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new eQ(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}class e0 extends eK{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new e0(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}let e1={returnDocuments:!1};class e3{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return eE("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return eE(t,e),eq(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return eE(t,e),eq(t,e),this._add({[t]:e})}delete(e){return ex("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}}class e6 extends e3{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new e6([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e1,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof e0,s="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new e0(e,{},this.#a));if(!(r instanceof e0))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(s){let r=new e0(e,t||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class e9 extends e3{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new e9([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},e1,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof eQ)return this._add({patch:e.serialize()});if(r){let r=t(new eQ(e,{},this.#a));if(!(r instanceof eQ))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let e4=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:s,includeMutations:o,returnQuery:i,...a}=r;for(let[r,o]of(s&&n.append("tag",s),n.append("query",e),Object.entries(t)))n.append(`$${r}`,JSON.stringify(o));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===i&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
8se"),`?${n}`},e5=(e,t)=>!1===e?void 0:typeof e>"u"?t:e,e2=(e={})=>({dryRun:e.dryRun,returnIds:!0,returnDocuments:e5(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}),e8=e=>"response"===e.type,e7=e=>e.body,te=(e,t)=>e.reduce((e,r)=>(e[t(r)]=r,e),Object.create(null));function tt(e,t,n,s,o={},i={}){let a="stega"in i?{...n||{},..."boolean"==typeof i.stega?{enabled:i.stega}:i.stega||{}}:n,u=a.enabled?(0,es.N)(o):o,c=!1===i.filterResponse?e=>e:e=>e.result,{cache:l,next:d,...f}={useAbortSignal:"u">typeof i.signal,resultSourceMap:a.enabled?"withKeyArraySelector":i.resultSourceMap,...i,returnQuery:!1===i.filterResponse&&!1!==i.returnQuery},p=tc(e,t,"query",{query:s,params:u},"u">typeof l||"u">typeof d?{...f,fetch:{cache:l,next:d}}:f);return a.enabled?p.pipe((0,eo.V)((0,Z.D)(r.e(2320).then(r.bind(r,81593)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,ei.U)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return c({...e,result:r})})):p.pipe((0,ei.U)(c))}function tr(e,t,r,n={}){let s={uri:tw(e,"doc",r),json:!0,tag:n.tag,signal:n.signal};return tb(e,t,s).pipe((0,ea.h)(e8),(0,ei.U)(e=>e.body.documents&&e.body.documents[0]))}function tn(e,t,r,n={}){let s={uri:tw(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return tb(e,t,s).pipe((0,ea.h)(e8),(0,ei.U)(e=>{let t=te(e.body.documents||[],e=>e._id);return r.map(e=>t[e]||null)}))}function ts(e,t,r,n){return eq("createIfNotExists",r),tl(e,t,r,"createIfNotExists",n)}function to(e,t,r,n){return eq("createOrReplace",r),tl(e,t,r,"createOrReplace",n)}function ti(e,t,r,n){return tc(e,t,"mutate",{mutations:[{delete:eV(r)}]},n)}function ta(e,t,r,n){let s;return tc(e,t,"mutate",{mutations:Array.isArray(s=r instanceof e0||r instanceof eQ?{patch:r.serialize()}:r instanceof e6||r instanceof e9?r.serialize():r)?s:[s],transactionId:n&&n.transactionId||void 0},n)}function tu(e,t,r,n){let s=Array.isArray(r)?r:[r];return tc(e,t,"actions",{actions:s,transactionId:n&&n.transactionId||void 0,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function tc(e,t,r,n,s={}){let o="mutate"===r,i="actions"===r,a=o||i?"":e4(n),u=!o&&!i&&a.length<11264,c=s.returnFirst,{timeout:l,token:d,tag:f,headers:p,returnQuery:h,lastLiveEventId:y,cacheMode:m}=s,g=tw(e,r,u?a:"");return tb(e,t,{method:u?"GET":"POST",uri:g,json:!0,body:u?void 0:n,query:o&&e2(s),timeout:l,headers:p,token:d,tag:f,returnQuery:h,perspective:s.perspective,resultSourceMap:s.resultSourceMap,lastLiveEventId:Array.isArray(y)?y[0]:y,cacheMode:m,canUseCdn:"query"===r,signal:s.signal,fetch:s.fetch,useAbortSignal:s.useAbortSignal,useCdn:s.useCdn}).pipe((0,ea.h)(e8),(0,ei.U)(e7),(0,ei.U)(e=>{if(!o)return e;let t=e.results||[];if(s.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let r=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:r}}))}function tl(e,t,r,n,s={}){return tc(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},s))}let td=e=>void 0!==e.config().dataset&&void 0!==e.config().projectId||void 0!==e.config()["~experimental_resource"],tf=(e,t)=>td(e)&&t.startsWith(tw(e,"query")),tp=(e,t)=>td(e)&&t.startsWith(tw(e,"mutate")),th=(e,t)=>td(e)&&t.startsWith(tw(e,"doc","")),ty=(e,t)=>td(e)&&t.startsWith(tw(e,"listen")),tm=(e,t)=>td(e)&&t.startsWith(tw(e,"history","")),tg=(e,t)=>t.startsWith("/data/")||tf(e,t)||tp(e,t)||th(e,t)||ty(e,t)||tm(e,t);function tb(e,t,r){var n;let s=r.url||r.uri,o=e.config(),i=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&tg(e,s):r.canUseCdn,a=(r.useCdn??o.useCdn)&&i,u=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:eT(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&tf(e,s)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&eP(),ez(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&a&&(a=!1,eA())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(e,t={}){let r={},n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let s=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:s,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:tC(e,s,a)})),l=new z.y(e=>t(c,o.requester).subscribe(e));return r.signal?l.pipe((n=r.signal,e=>new z.y(t=>{let r=()=>t.error(function(e){if(tE)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted){r();return}let s=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),s.unsubscribe()}}))):l}function tv(e,t,r){return tb(e,t,r).pipe((0,ea.h)(e=>"response"===e.type),(0,ei.U)(e=>e.body))}function tw(e,t,r){let n=e.config();if(n["~experimental_resource"]){eO(n);let e=tx(n),s=void 0!==r?`${t}/${r}`:t;return`${e}/${s}`.replace(/\/($|\?)/,"$1")}let s=ej(n),o=`/${t}/${s}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function tC(e,t,r=!1){let{url:n,cdnUrl:s}=e.config();return`${r?s:n}/${t.replace(/^\//,"")}`}let tE=!!globalThis.DOMException,tx=e=>{if(!e["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:t,id:r}=e["~experimental_resource"];switch(t){case"dataset":{let e=r.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${r}`;case"media-library":return`/media-libraries/${r}`;case"dashboard":return`/dashboards/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}};class tq{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return tj(this.#a,this.#u,e,t,r)}}class tR{#a;#u;
8constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){let n=tj(this.#a,this.#u,e,t,r);return(0,G.n)(n.pipe((0,ea.h)(e=>"response"===e.type),(0,ei.U)(e=>e.body.document)))}}function tj(e,t,r,n,s={}){eC(r);let o=s.extract||void 0;o&&!o.length&&(o=["none"]);let i=e.config(),a=!(typeof File>"u")&&n instanceof File?Object.assign({filename:!1===s.preserveFilename?void 0:n.name,contentType:n.type},s):s,{tag:u,label:c,title:l,description:d,creditLine:f,filename:p,source:h}=a,y={label:c,title:l,description:d,filename:p,meta:o,creditLine:f};return h&&(y.sourceId=h.id,y.sourceName=h.name,y.sourceUrl=h.url),tb(e,t,{tag:u,method:"POST",timeout:a.timeout||0,uri:function(e,t){let r="image"===t?"images":"files";if(e["~experimental_resource"]){let{type:t,id:n}=e["~experimental_resource"];switch(t){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${n}/assets/${r}`;case"media-library":return`/media-libraries/${n}/upload`;case"dashboard":return`/dashboards/${n}/assets/${r}`;default:throw Error(`Unsupported resource type: ${t.toString()}`)}}let n=ej(e);return`assets/${r}/${n}`}(i,r),headers:a.contentType?{"Content-Type":a.contentType}:{},query:y,body:n})}var tT=(e,t)=>Object.keys(t).concat(Object.keys(e)).reduce((r,n)=>(r[n]=typeof e[n]>"u"?t[n]:e[n],r),{});let tO=(e,t)=>t.reduce((t,r)=>(typeof e[r]>"u"||(t[r]=e[r]),t),{}),tk=(0,N.P)(()=>r.e(8628).then(r.t.bind(r,78628,19))).pipe((0,ei.U)(({default:e})=>e),(0,X.d)(1));function tS(){return function(e){return e.pipe((0,J.K)((e,t)=>e instanceof eH?(0,Y.z)((0,B.of)({type:"reconnect"}),(0,V.H)(1e3).pipe((0,W.z)(()=>t))):(0,K._)(()=>e)))}}let tI=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],t$={includeResult:!0};function tA(e,t,r={}){let{url:n,token:s,withCredentials:o,requestTagPrefix:i}=this.config(),a=r.tag&&i?[i,r.tag].join("."):r.tag,u={...tT(r,t$),tag:a},c=e4({query:e,params:t,options:{tag:a,...tO(u,tI)}}),l=`${n}${tw(this,"listen",c)}`;if(l.length>14800)return(0,K._)(()=>Error("Query too large for listener"));let d=u.events?u.events:["mutation"],f={};return o&&(f.withCredentials=!0),s&&(f.headers={Authorization:`Bearer ${s}`}),eJ(()=>(typeof EventSource>"u"||f.headers?tk:(0,B.of)(EventSource)).pipe((0,ei.U)(e=>new e(l,f))),d).pipe(tS(),(0,ea.h)(e=>d.includes(e.type)),(0,ei.U)(e=>({type:e.type,..."data"in e?e.data:{}})))}let tP="2021-03-25";class t_{#a;constructor(e){this.#a=e}events({includeDrafts:e=!1,tag:t}={}){var r,n,s;ek("live",this.#a.config());let{projectId:o,apiVersion:i,token:a,withCredentials:u,requestTagPrefix:c}=this.#a.config(),l=i.replace(/^v/,"");if("X"!==l&&l<tP)throw Error(`The live events API requires API version ${tP} or later. The current API version is ${l}. Please update your API version to use this feature.`);if(e&&!a&&!u)throw 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.");let d=tw(this.#a,"live/events"),f=new URL(this.#a.getUrl(d,!1)),p=t&&c?[c,t].join("."):t;p&&f.searchParams.set("tag",p),e&&f.searchParams.set("includeDrafts","true");let h={};e&&a&&(h.headers={Authorization:`Bearer ${a}`}),e&&u&&(h.withCredentials=!0);let y=`${f.href}::${JSON.stringify(h)}`,m=tF.get(y);if(m)return m;let g=eJ(()=>(typeof EventSource>"u"||h.headers?tk:(0,B.of)(EventSource)).pipe((0,ei.U)(e=>new e(f.href,h))),["message","restart","welcome","reconnect","goaway"]).pipe(tS(),(0,ei.U)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})),b=(n={method:"OPTIONS",mode:"cors",credentials:h.withCredentials?"include":"omit",headers:h.headers},new z.y(e=>{let t=new AbortController,r=t.signal;return fetch(f,{...n,signal:t.signal}).then(t=>{e.next(t),e.complete()},t=>{r.aborted||e.error(t)}),()=>t.abort()})).pipe((0,W.z)(()=>en.E),(0,J.K)(()=>{throw new ef({projectId:o})})),v=(0,Y.z)(b,g).pipe((0,ee.x)(()=>tF.delete(y)),(s="function"==typeof(r={predicate:e=>"welcome"===e.type})?{predicate:r}:r,e=>{let t,r=!1,{predicate:n,...o}=s,i=e.pipe((0,Q.b)(e=>{s.predicate(e)&&(r=!0,t=e)}),(0,ee.x)(()=>{r=!1,t=void 0}),(0,et.B)(o)),a=new z.y(e=>{r&&e.next(t),e.complete()});return(0,er.T)(i,a)}));return tF.set(y,v),v}}let tF=new Map;class tD{#a;#u;
8constructor(e,t){this.#a=e,this.#u=t}create(e,t){return tM(this.#a,this.#u,"PUT",e,t)}edit(e,t){return tM(this.#a,this.#u,"PATCH",e,t)}delete(e){return tM(this.#a,this.#u,"DELETE",e)}list(){return tv(this.#a,this.#u,{uri:"/datasets",tag:null})}}class tU{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return ek("dataset",this.#a.config()),(0,G.n)(tM(this.#a,this.#u,"PUT",e,t))}edit(e,t){return ek("dataset",this.#a.config()),(0,G.n)(tM(this.#a,this.#u,"PATCH",e,t))}delete(e){return ek("dataset",this.#a.config()),(0,G.n)(tM(this.#a,this.#u,"DELETE",e))}list(){return ek("dataset",this.#a.config()),(0,G.n)(tv(this.#a,this.#u,{uri:"/datasets",tag:null}))}}function tM(e,t,r,n,s){return ek("dataset",e.config()),ev(n),tv(e,t,{method:r,uri:`/datasets/${n}`,body:s,tag:null})}class tL{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){ek("projects",this.#a.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return tv(this.#a,this.#u,{uri:t})}getById(e){return ek("projects",this.#a.config()),tv(this.#a,this.#u,{uri:`/projects/${e}`})}}class tz{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){ek("projects",this.#a.config());let t=e?.includeMembers===!1?"/projects?includeMembers=false":"/projects";return(0,G.n)(tv(this.#a,this.#u,{uri:t}))}getById(e){return ek("projects",this.#a.config()),(0,G.n)(tv(this.#a,this.#u,{uri:`/projects/${e}`}))}}class tN{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return tv(this.#a,this.#u,{uri:`/users/${e}`})}}class tH{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return(0,G.n)(tv(this.#a,this.#u,{uri:`/users/${e}`}))}}class tB{assets;datasets;live;projects;users;#c;#u;listen=tA;constructor(e,t=eU){this.config(t),this.#u=e,this.assets=new tq(this,this.#u),this.datasets=new tD(this,this.#u),this.live=new t_(this),this.projects=new tL(this,this.#u),this.users=new tN(this,this.#u)}clone(){return new tB(this.#u,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=eN(e,this.#c||{}),this}withConfig(e){let t=this.config();return new tB(this.#u,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return tt(this,this.#u,this.#c.stega,e,t,r)}getDocument(e,t){return tr(this,this.#u,e,t)}getDocuments(e,t){return tn(this,this.#u,e,t)}create(e,t){return tl(this,this.#u,e,"create",t)}createIfNotExists(e,t){return ts(this,this.#u,e,t)}createOrReplace(e,t){return to(this,this.#u,e,t)}delete(e,t){return ti(this,this.#u,e,t)}mutate(e,t){return ta(this,this.#u,e,t)}patch(e,t){return new eQ(e,t,this)}transaction(e){return new e9(e,this)}action(e,t){return tu(this,this.#u,e,t)}request(e){return tv(this,this.#u,e)}getUrl(e,t){return tC(this,e,t)}getDataUrl(e,t){return tw(this,e,t)}}class tW{assets;datasets;live;projects;users;observable;#c;#u;listen=tA;constructor(e,t=eU){this.config(t),this.#u=e,this.assets=new tR(this,this.#u),this.datasets=new tU(this,this.#u),this.live=new t_(this),this.projects=new tz(this,this.#u),this.users=new tH(this,this.#u),this.observable=new tB(e,t)}clone(){return new tW(this.#u,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#c=eN(e,this.#c||{}),this}withConfig(e){let t=this.config();return new tW(this.#u,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return(0,G.n)(tt(this,this.#u,this.#c.stega,e,t,r))}getDocument(e,t){return(0,G.n)(tr(this,this.#u,e,t))}getDocuments(e,t){return(0,G.n)(tn(this,this.#u,e,t))}create(e,t){return(0,G.n)(tl(this,this.#u,e,"create",t))}createIfNotExists(e,t){return(0,G.n)(ts(this,this.#u,e,t))}createOrReplace(e,t){return(0,G.n)(to(this,this.#u,e,t))}delete(e,t){return(0,G.n)(ti(this,this.#u,e,t))}
8mutate(e,t){return(0,G.n)(ta(this,this.#u,e,t))}patch(e,t){return new e0(e,t,this)}transaction(e){return new e6(e,this)}action(e,t){return(0,G.n)(tu(this,this.#u,e,t))}request(e){return(0,G.n)(tv(this,this.#u,e))}dataRequest(e,t,r){return(0,G.n)(tc(this,this.#u,e,t,r))}getUrl(e,t){return tC(this,e,t)}getDataUrl(e,t){return tw(this,e,t)}}let tZ={requester:eh(n=[]),createClient:e=>{let t=eh(n);return new tW((r,n)=>(n||t)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,...r}),e)}},tG=(tZ.requester,tZ.createClient);var tX=r(69799),tJ=r(85773),tY=r(94745),tV=r(68383),tK=r(41031),tQ=r(51919),t0=r(2519);let t1=(0,tY.default)(()=>r.e(5578).then(r.bind(r,45578)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/PresentationComlink.js")]},ssr:!1}),t3=(0,tY.default)(()=>r.e(939).then(r.bind(r,30939)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnMount.js")]},ssr:!1}),t6=(0,tY.default)(()=>r.e(5405).then(r.bind(r,85405)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnFocus.js")]},ssr:!1}),t9=(0,tY.default)(()=>r.e(298).then(r.bind(r,80090)),{loadableGenerated:{webpack:()=>[require.resolveWeak("../_chunks-es/RefreshOnReconnect.js")]},ssr:!1}),t4=e=>{var t;e instanceof ef?console.warn("Sanity Live is unable to connect to the Sanity API as the current origin - ".concat(window.origin," - is not in the list of allowed CORS origins for this Sanity Project."),e.addOriginUrl&&"Add it here:",null===(t=e.addOriginUrl)||void 0===t?void 0:t.toString()):console.error(e)};function t5(e){let{projectId:t,dataset:r,apiHost:n,apiVersion:o,useProjectHostname:i,token:a,requestTagPrefix:u,draftModeEnabled:c,draftModePerspective:l,refreshOnMount:d=!1,refreshOnFocus:f=!c&&(typeof window>"u"||window.self===window.top),refreshOnReconnect:p=!0,requestTag:h="next-loader.live",onError:y=t4}=e,m=(0,tK.useMemo)(()=>tG({projectId:t,dataset:r,apiHost:n,apiVersion:o,useProjectHostname:i,ignoreBrowserTokenWarning:!0,token:a,useCdn:!1,requestTagPrefix:u}),[n,o,r,t,u,a,i]),g=(0,tV.useRouter)(),b=(0,tQ.i)(e=>{"message"===e.type?(0,tX.n)(e.tags):("restart"===e.type||"reconnect"===e.type)&&g.refresh()});(0,tK.useEffect)(()=>{let e=m.live.events({includeDrafts:!!a,tag:h}).subscribe({next:b,error:e=>{y(e)}});return()=>e.unsubscribe()},[m.live,y,h,a]),(0,tK.useEffect)(()=>{c&&l?(0,t0.Bk)(l):(0,t0.Bk)("unknown")},[c,l]);let[v,w]=(0,tK.useState)(!1);(0,tK.useEffect)(()=>{if(!(0,tJ.Ig)()){if(c&&a){(0,t0.Uw)("live");return}if(c){(0,t0.Uw)("static");return}(0,t0.Uw)("unknown")}},[c,a]),(0,tK.useEffect)(()=>{if(!(0,tJ.Ig)())return;let e=new AbortController,t=setTimeout(()=>(0,t0.Uw)("live"),3e3);return window.addEventListener("message",r=>{let{data:n}=r;n&&"object"==typeof n&&"domain"in n&&"sanity/channels"===n.domain&&"from"in n&&"presentation"===n.from&&(clearTimeout(t),(0,t0.Uw)((0,tJ.Ax)()?"presentation-window":"presentation-iframe"),w(!0),e.abort())},{signal:e.signal}),()=>{clearTimeout(t),e.abort()}},[]);let C=(0,tK.useRef)(void 0);return(0,tK.useEffect)(()=>{if(c)return clearTimeout(C.current),()=>{C.current=setTimeout(()=>{console.warn("Sanity Live: Draft mode was enabled, but is now being disabled")})}},[c]),(0,s.jsxs)(s.Fragment,{children:[c&&v&&(0,s.jsx)(t1,{draftModeEnabled:c,draftModePerspective:l}),!c&&d&&(0,s.jsx)(t3,{}),!c&&f&&(0,s.jsx)(t6,{}),!c&&p&&(0,s.jsx)(t9,{})]})}t5.displayName="SanityLive"},69799:function(e,t,r){r.d(t,{N:function(){return s},n:function(){return o}}),r(26034);var n=r(96701),s=(0,n.$)("6c0ad986d81306b102bb4629ec3b27e6b3a58798"),o=(0,n.$)("c53f90a5c87dedfae527b508a88e4d72ea8a9c44")},85773:function(e,t,r){r.d(t,{Ax:function(){return d},Ig:function(){return f},XP:function(){return c},el:function(){return l}});var n=r(58468);let s={"handshake/syn":n.bK,"handshake/syn-ack":n.Ol,"handshake/ack":n.ei,"channel/response":n.Ag,"channel/heartbeat":n.UE,"channel/disconnect":n.Hq,"overlay/focus":"visual-editing/focus","overlay/navigate":"visual-editing/navigate","overlay/toggle":"visual-editing/toggle","presentation/toggleOverlay":"presentation/toggle-overlay"},o={[n.bK]:"handshake/syn",[n.Ol]:"handshake/syn-ack",[n.ei]:"handshake/ack",[n.Ag]:"channel/response",[n.UE]:"channel/heartbeat",[n.Hq]:"channel/disconnect","visual-editing/focus":"overlay/focus","visual-editing/navigate":"overlay/navigate","visual-editing/toggle":"overlay/toggle","presentation/toggle-overlay":"presentation/toggleOverlay"},i=e=>{let{data:t}=e;return t&&"object"==typeof t&&"domain"in t&&"type"in t&&"from"in t&&"to"in t&&("sanity/channels"===t.domain&&(t.domain=n.yK),"overlays"===t.to&&(t.to="visual-editing"),"overlays"===t.from&&(t.from="visual-editing"),t.channelId=t.connectionId,delete t.connectionId,t.type=s[t.type]??t.type),e},a=e=>{let{channelId:t,...r}=e,s={...r,connectionId:t};return s.domain===n.yK&&(s.domain="sanity/channels"),"visual-editing"===s.to&&(s.to="overlays"),"visual-editing"===s.from&&(s.from="overlays"),s.type=o[s.type]??s.type,"channel/response"===s.type&&s.responseTo&&!s.data&&(s.data={responseTo:s.responseTo}),("handshake/syn"===s.type||"handshake/syn-ack"===s.type||"handshake/ack"===s.type)&&(s.data={id:s.connectionId}),s},u=({context:e},t)=>{let{sources:r,targetOrigin:n}=e,s=a(t.message);
8r.forEach(e=>{e.postMessage(s,{targetOrigin:n})})},c=()=>({listen:(0,n.F8)(i),requestMachine:(0,n.lB)().provide({actions:{"send message":u}})});function l(){return window.self!==window.top}function d(){return!!window.opener}function f(){return l()||d()}},39559:function(e,t,r){r.d(t,{default:function(){return i}});var n=r(66110),s=r(41031);let o=(0,s.lazy)(()=>Promise.all([r.e(8372),r.e(188),r.e(7978),r.e(466),r.e(2457)]).then(r.bind(r,58977)));function i(e){return(0,n.jsx)(s.Suspense,{fallback:null,children:(0,n.jsx)(o,{...e})})}}}]);

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.