PageSourceSearch

https://datastax-docs.vercel.app/_next/static/chunks/pages/examples/[page]-19666f9760476014070e.js

js datastax-docs.vercel.app collected 2026-10-03 06:31:43 UTC 103,963 bytes, 1 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[16],{"+0iv":function(t,e,n){"use strict";var r=n("qDJ8");function o(t){return!0===r(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,n;return!1!==o(t)&&("function"===typeof(e=t.constructor)&&(!1!==o(n=e.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}},"/dyv":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i=n("Qetd"),s=n("8c+Z").filter,a=n("eX1s").map,c=n("s+BN"),u=n("l3Vq"),l=n("qS3u"),f=n("flg0"),p=n("Ji/L"),h=n("3mOt"),d=n("6wuA"),y=n("vHaw"),v=n("xHEm"),m=n("C5f4"),b=n("4ZSR"),g=b.defaultConfig,w=b.initConfig,O=n("VmPP");function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g;if(!(this instanceof _))return new _(t);if(this.config(t),this.assets=new h(this),this.datasets=new f(this),this.projects=new p(this),this.users=new d(this),this.auth=new y(this),this.clientConfig.isPromiseAPI){var e=i({},this.clientConfig,{isPromiseAPI:!1});this.observable=new _(e)}}i(_.prototype,l),i(_.prototype,{clone:function(){return new _(this.config())},config:function(t){if("undefined"===typeof t)return i({},this.clientConfig);if(this.observable){var e=i({},t,{isPromiseAPI:!1});this.observable.config(e)}return this.clientConfig=w(t,this.clientConfig||{}),this},withConfig:function(t){return this.clone().config(t)},getUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(n,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=t.url||t.uri,n="undefined"===typeof t.canUseCdn?["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===e.indexOf("/data/"):t.canUseCdn,s=this.clientConfig.useCdn&&n,a=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;a&&(t.query=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({tag:O.requestTag(a)},t.query));var c=m(this.clientConfig,i({},t,{url:this.getUrl(e,s)}));return v(c,this.clientConfig.requester)},request:function(t){var e=this._requestObservable(t).pipe(s((function(t){return"response"===t.type})),a((function(t){return t.body})));return this.isPromiseAPI()?function(t){return t.toPromise()}(e):e}}),_.Patch=c,_.Transaction=u,_.ClientError=v.ClientError,_.ServerError=v.ServerError,_.requester=v.defaultRequester,t.exports=_},"0j7I":function(t,e,n){"use strict";t.exports=n("equ0")},"1Z+e":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("FWf1");e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new i(t))}};var i=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},"3mOt":function(t,e,n){"use strict";function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);s=!0);}catch(c){a=!0,o=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}
1(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var i=n("Qetd"),s=n("eX1s").map,a=n("8c+Z").filter,c=n("YIS7"),u=n("VmPP");function l(t){this.client=t}function f(t){var e=t.document;return Object.defineProperty(e,"document",{enumerable:!1,get:function(){return console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),e}}),e}function p(t,e){return"undefined"!==typeof window&&e instanceof window.File?i({filename:!1===t.preserveFilename?void 0:e.name,contentType:e.type},t):t}i(l.prototype,{upload:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};u.validateAssetType(t);var r=n.extract||void 0;r&&!r.length&&(r=["none"]);var o=u.hasDataset(this.client.clientConfig),i="image"===t?"images":"files",c=p(n,e),l=c.tag,h=c.label,d=c.title,y=c.description,v=c.creditLine,m=c.filename,b=c.source,g={label:h,title:d,description:y,filename:m,meta:r,creditLine:v};
1b&&(g.sourceId=b.id,g.sourceName=b.name,g.sourceUrl=b.url);var w=this.client._requestObservable({tag:l,method:"POST",timeout:c.timeout||0,uri:"/assets/".concat(i,"/").concat(o),headers:c.contentType?{"Content-Type":c.contentType}:{},query:g,body:e});return this.client.isPromiseAPI()?w.pipe(a((function(t){return"response"===t.type})),s((function(t){return f(t.body)}))).toPromise():w},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var n=e||"";return/^(image|file)-/.test(n)?t._id&&(n=t._id):n="".concat(t,"-").concat(n),u.hasDataset(this.client.clientConfig),this.client.delete(n)},getImageUrl:function(t,e){var n=t._ref||t;if("string"!==typeof n)throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(n))throw new Error('Unsupported asset ID "'.concat(n,'". URL generation only works for auto-generated IDs.'));var o=r(n.split("-"),4),i=o[1],s=o[2],a=o[3];u.hasDataset(this.client.clientConfig);var l=this.client.clientConfig,f=l.projectId,p=l.dataset,h=e?c(e):"";return"https://cdn.sanity.io/images/".concat(f,"/").concat(p,"/").concat(i,"-").concat(s,".").concat(a).concat(h)}}),t.exports=l},"3ocN":function(t,e,n){"use strict";var r=n("Q1FS").Observable,o=n("Qetd"),i=n("eX1s").map,s=n("8c+Z").filter,a=n("9bx3").reduce;function c(){r.apply(this,arguments)}function u(t,e){var n=!1;return function(){return n||(n=!0,console.warn(new Error("Calling observable.".concat(t,"(...) is deprecated. Please use observable.pipe(").concat(t,"(...)) instead")))),this.pipe(e.apply(this,arguments))}}c.prototype=Object.create(o(Object.create(null),r.prototype)),Object.defineProperty(c.prototype,"constructor",{value:c,enumerable:!1,writable:!0,configurable:!0}),c.prototype.lift=function(t){var e=new c;return e.source=this,e.operator=t,e},c.prototype.map=u("map",i),c.prototype.filter=u("filter",s),c.prototype.reduce=u("filter",a),t.exports=c},"4JlD":function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?i(s(t),(function(s){var a=encodeURIComponent(r(s))+n;return o(t[s])?i(t[s],(function(t){return a+encodeURIComponent(r(t))})).join(e):a+encodeURIComponent(r(t[s]))})).join(e):a?encodeURIComponent(r(a))+n+encodeURIComponent(r(t)):""};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var s=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},"4ZSR":function(t,e,n){"use strict";var r=n("N2s1"),o=n("Qetd"),i=n("VmPP"),s=n("J4Kz"),a={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},c=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=a,e.initConfig=function(t,n){var u=o({},n,t);u.apiVersion||s.printNoApiVersionSpecifiedWarning();var l=o({},a,u),f=l.gradientMode,p=!f&&l.useProjectHostname;if("undefined"===typeof Promise){var h=r("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(h))}if(f&&!l.namespace)throw new Error("Configuration must contain `namespace` when running in gradient mode");if(p&&!l.projectId)throw new Error("Configuration must contain `projectId`");var d="undefined"!==typeof window&&window.location&&window.location.hostname,y=d&&function(t){return-1!==c.indexOf(t)}(window.location.hostname);if(d&&y&&l.token&&!0!==l.ignoreBrowserTokenWarning?s.printBrowserTokenWarning():(!d||y)&&l.useCdn&&l.token?s.printCdnTokenWarning():"undefined"===typeof l.useCdn&&s.printCdnWarning(),p&&i.projectId(l.projectId),!f&&l.dataset&&i.dataset(l.dataset,l.gradientMode),"requestTagPrefix"in l&&(l.requestTagPrefix=l.requestTagPrefix?i.requestTag(l.requestTagPrefix).replace(/\.+$/,""):void 0),l.apiVersion="".concat(l.apiVersion).replace(/^v/,""),l.isDefaultApi=l.apiHost===a.apiH
1ost,l.useCdn=Boolean(l.useCdn)&&!l.token&&!l.withCredentials,e.validateApiVersion(l.apiVersion),l.gradientMode)l.url=l.apiHost,l.cdnUrl=l.apiHost;else{var v=l.apiHost.split("://",2),m=v[0],b=v[1],g=l.isDefaultApi?"apicdn.sanity.io":b;l.useProjectHostname?(l.url="".concat(m,"://").concat(l.projectId,".").concat(b,"/v").concat(l.apiVersion),l.cdnUrl="".concat(m,"://").concat(l.projectId,".").concat(g,"/v").concat(l.apiVersion)):(l.url="".concat(l.apiHost,"/v").concat(l.apiVersion),l.cdnUrl=l.url)}return l},e.validateApiVersion=function(t){if("1"!==t&&"X"!==t){var e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},"4ik+":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("FWf1");e.filter=function(t,e){return function(n){return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.count=0,o}return r(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)},e}(o.Subscriber)},"6wuA":function(t,e,n){"use strict";function r(t){this.client=t}n("Qetd")(r.prototype,{getById:function(t){return this.client.request({uri:"/users/".concat(t)})}}),t.exports=r},"76/Q":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("FWf1"),i=n("IKal"),s=n("aJGj");e.takeLast=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o<n;o++){var i=e++%n;t.next(r[i])}t.complete()},e}(o.Subscriber)},"7Q5a":function(t,e,n){var r,o,i;"undefined"===typeof self||self,o=[],void 0===(i="function"===typeof(r=function(){var t=function(t,e){if(!t||"string"!=typeof t)throw new SyntaxError("Not enough arguments");this.URL=t,this.setOptions(e);var n=this;setTimeout((function(){n.poll()}),0)};if(t.prototype={CONNECTING:0,OPEN:1,CLOSED:2,defaultOptions:{loggingEnabled:!1,loggingPrefix:"eventsource",interval:500,bufferSizeLimit:262144,silentTimeout:3e5,getArgs:{evs_buffer_size_limit:262144},xhrHeaders:{Accept:"text/event-stream","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}},setOptions:function(t){var e,n=this.defaultOptions;for(e in n)n.hasOwnProperty(e)&&(this[e]=n[e]);for(e in t)e in n&&t.hasOwnProperty(e)&&(this[e]=t[e]);this.getArgs&&this.bufferSizeLimit&&(this.getArgs.evs_buffer_size_limit=this.bufferSizeLimit),"undefined"!==typeof console&&"undefined"!==typeof console.log||(this.loggingEnabled=!1)},log:function(t){this.loggingEnabled&&console.log("["+this.loggingPrefix+"]:"+t)},poll:function(){try{if(this.readyState==this.CLOSED)return;this.cleanup(),this.readyState=this.CONNECTING,this.cursor=0,this.cache="",this._xhr=new this.XHR(this),this.resetNoActivityTimer()}catch(t){this.log("There were errors inside the pool try-catch"),this.dispatchEvent("error",{type:"error",data:t.message})}},pollAgain:function(t){var e=this;e.readyState=e.CONNECTING,e.dispatchEvent("error",{type:"error",data:"Reconnecting "}),this._pollTimer=setTimeout((function(){e.poll()}),t||0)},cleanup:function(){this.log("evs cleaning up"),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null),this._noActivityTimer&&(clearInterval(this._noActivityTimer),this._noActivityTimer=null),this._xhr&&(this._xhr.abort(),this._xhr=null)},resetNoActivityTimer:function(){if(this.silentTimeout){this._noActivityTimer&&clearInterval(this._noActivityTimer);var t=this;this._noActivityTimer=setTimeout((function(){t.log("Timeout! silentTImeout:"+t.silentTimeout),t.pollAgain()}),this.silentTimeout)}},close:function(){this.readyState=this.CLOSED,this.log("Closing connection. readyState: "+this.readyState),this.cleanup()},_onxhrdata:function(){var t=this._xhr;if(t.isReady()&&!t.hasError()){this.resetNoActivityTimer(),this.readyState==this.CONNECTING&&(this.readyState=this.OP
1EN,this.dispatchEvent("open",{type:"open"}));var e=t.getBuffer();e.length>this.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&e.length>0&&"\ufeff"==e.substring(0,1)&&(this.cursor=1);var n=this.lastMessageIndex(e);if(n[0]>=this.cursor){var r=n[1],o=e.substring(this.cursor,r);this.parseStream(o),this.cursor=r}t.isDone()&&(this.log("request.isDone(). reopening the connection"),this.pollAgain(this.interval))}else this.readyState!==this.CLOSED&&(this.log("this.readyState !== this.CLOSED"),this.pollAgain(this.interval))},parseStream:function(t){var e,r,o,i,s,a,c=(t=this.cache+this.normalizeToLF(t)).split("\n\n");for(e=0;e<c.length-1;e++){o="message",i=[];var u=c[e].split("\n");for(r=0;r<u.length;r++)0==(s=this.trimWhiteSpace(u[r])).indexOf("event")?o=s.replace(/event:?\s*/,""):0==s.indexOf("retry")?(a=parseInt(s.replace(/retry:?\s*/,""),10),isNaN(a)||(this.interval=a)):0==s.indexOf("data")?i.push(s.replace(/data:?\s*/,"")):0==s.indexOf("id:")?this.lastEventId=s.replace(/id:?\s*/,""):0==s.indexOf("id")&&(this.lastEventId=null);if(i.length&&this.readyState!=this.CLOSED){var l=new n(o,i.join("\n"),"undefined"!==typeof window&&"undefined"!==typeof window.location?window.location.origin:null,this.lastEventId);this.dispatchEvent(o,l)}}this.cache=c[c.length-1]},dispatchEvent:function(t,e){var n=this["_"+t+"Handlers"];if(n)for(var r=0;r<n.length;r++)n[r].call(this,e);this["on"+t]&&this["on"+t].call(this,e)},addEventListener:function(t,e){this["_"+t+"Handlers"]||(this["_"+t+"Handlers"]=[]),this["_"+t+"Handlers"].push(e)},removeEventListener:function(t,e){var n=this["_"+t+"Handlers"];if(n)for(var r=n.length-1;r>=0;--r)if(n[r]===e){n.splice(r,1);break}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(t,e){var n=[];if(e){var r,o,i=encodeURIComponent;for(r in e)e.hasOwnProperty(r)&&(o=i(r)+"="+i(e[r]),n.push(o))}return n.length>0?-1==t.indexOf("?")?t+"?"+n.join("&"):t+"&"+n.join("&"):t},lastMessageIndex:function(t){var e=t.lastIndexOf("\n\n"),n=t.lastIndexOf("\r\r"),r=t.lastIndexOf("\r\n\r\n");return r>Math.max(e,n)?[r,r+4]:[Math.max(e,n),Math.max(e,n)+2]},trimWhiteSpace:function(t){var e=/^(\s|\u00A0)+|(\s|\u00A0)+$/g;return t.replace(e,"")},normalizeToLF:function(t){return t.replace(/\r\n|\r/g,"\n")}},r()){t.isPolyfill="IE_8-9";var e=t.prototype.defaultOptions;e.xhrHeaders=null,e.getArgs.evs_preamble=2056,t.prototype.XHR=function(t){var e=new XDomainRequest;this._request=e,e.onprogress=function(){e._ready=!0,t._onxhrdata()},e.onload=function(){this._loaded=!0,t._onxhrdata()},e.onerror=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},e.ontimeout=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};var n={};if(t.getArgs){var r=t.getArgs;for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);t.lastEventId&&(n.evs_last_event_id=t.lastEventId)}e.open("GET",t.urlWithParams(t.URL,n)),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!0,_request:null,_ready:!1,_loaded:!1,_failed:!1,isReady:function(){return this._request._ready},isDone:function(){return this._request._loaded},hasError:function(){return this._request._failed},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(e){}return t},abort:function(){this._request&&this._request.abort()}}}else t.isPolyfill="XHR",t.prototype.XHR=function(t){var e=new XMLHttpRequest;this._request=e,t._xhr=this,e.onreadystatechange=function(){e.readyState>1&&t.readyState!=t.CLOSED&&(200==e.status||e.status>=300&&e.status<400?t._onxhrdata():(e._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"The server responded with "+e.status}),t.close()))},e.onprogress=function(){},e.open("GET",t.urlWithParams(t.URL,t.getArgs),!0);var n=t.xhrHeaders;for(var r in n)n.hasOwnProperty(r)&&e.setRequestHeader(r,n[r]);t.lastEventId&&e.setRequestHeader("Last-Event-Id",t.lastEventId),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!1,_request:null,_failed:!1,isReady:function(){return this._request.readyState>=2},isDone:function(){return 4==this._request.readyState},hasError:function(){return this._failed||this._request.status>=400},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(e){}return t},abort:function(){this._request&&this._request.abort()}};function n(t,e,n,r){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=e||null,this.origin=n||"",this.lastEventId=r||"",this.type=t||"message"}function r(){return Boolean("undefined"!==typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType)}return t})?r.apply(e,o):r)||(t.exports=i)},"82qm":function(t,e){t.exports=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}},publish:function(){for(var e=0;e<t.length;e++)t[e].apply(null,arguments)}}}},"8Uid":function(t,e,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n("Qetd"),i=n("+0iv"),s=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e,n=t.body;return n&&!("function"===typeof n.pipe)&&!((e=n).constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==s.indexOf("undefined"===typeof n?"undefined":r(n))||Array.isArray(n)||i(n))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t}}}}
1,"8c+Z":function(t,e,n){e.filter=n("4ik+").filter},"9AGB":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("yoF8");function o(t){return 0===t.length?r.identity:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)},e.pipeFromArray=o},"9bx3":function(t,e,n){e.reduce=n("YK4L").reduce},Bcqf:function(t,e,n){"use strict";(function(e){"undefined"!==typeof window?t.exports=window:"undefined"!==typeof e?t.exports=e:"undefined"!==typeof self?t.exports=self:t.exports={}}).call(this,n("ntbh"))},C5f4:function(t,e,n){"use strict";var r=n("Qetd"),o="X-Sanity-Project-ID";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=e.token||t.token;i&&(n.Authorization="Bearer ".concat(i)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(n[o]=t.projectId);var s=Boolean("undefined"===typeof e.withCredentials?t.token||t.withCredentials:e.withCredentials),a="undefined"===typeof e.timeout?t.timeout:e.timeout;return r({},e,{headers:r({},n,e.headers||{}),timeout:"undefined"===typeof a?3e5:a,proxy:e.proxy||t.proxy,json:!0,withCredentials:s})}},CoN9:function(t,e,n){"use strict";var r=n("Qetd"),o=n("RT5d");t.exports=function(t,e){var n=e||{useDashedStyles:!1};function i(e,n){return t(e,null,n.children)}return{defaultSerializers:{types:{block:function(e){var n=e.node.style||"normal";return/^h\d/.test(n)?t(n,null,e.children):t("blockquote"===n?"blockquote":"p",null,e.children)},image:function(e){if(!e.node.asset)return null;var n=t("img",{src:o(e)});return e.isInline?n:t("figure",null,n)}},marks:{strong:i.bind(null,"strong"),em:i.bind(null,"em"),code:i.bind(null,"code"),underline:function(e){var r=n.useDashedStyles?{"text-decoration":"underline"}:{textDecoration:"underline"};return t("span",{style:r},e.children)},"strike-through":function(e){return t("del",null,e.children)},link:function(e){return t("a",{href:e.mark.href},e.children)}},list:function(e){var n="bullet"===e.type?"ul":"ol";return t(n,null,e.children)},listItem:function(e){var n=e.node.style&&"normal"!==e.node.style?t(e.serializers.types.block,e,e.children):e.children;return t("li",null,n)},block:function(e){var n=e.node,r=e.serializers,o=e.options,i=e.isInline,s=e.children,a=n._type,c=r.types[a];if(!c){if(o.ignoreUnknownTypes)return console.warn('Unknown block type "'.concat(a,'", please specify a serializer for it in the `serializers.types` prop')),t(r.unknownType,{node:n,options:o,isInline:i},s);throw new Error('Unknown block type "'.concat(a,'", please specify a serializer for it in the `serializers.types` prop'))}return t(c,{node:n,options:o,isInline:i},s)},span:function(e){var n=e.node,r=n.mark,o=n.children,i="string"===typeof r?r:r._type,s=e.serializers.marks[i];return s?t(s,e.node,o):(console.warn('Unknown mark type "'.concat(i,'", please specify a serializer for it in the `serializers.marks` prop')),t(e.serializers.unknownMark,null,o))},hardBreak:function(){return t("br")},unknownType:function(e){return t("div",{style:{display:"none"}},'Unknown block type "'.concat(e.node._type,'", please specify a serializer for it in the `serializers.types` prop'))},unknownMark:"span",container:"div",text:void 0,empty:""},serializeSpan:function(e,n,o,i){if("\n"===e&&n.hardBreak)return t(n.hardBreak,{key:"hb-".concat(o)});if("string"===typeof e)return n.text?t(n.text,{key:"text-".concat(o)},e):e;var s;e.children&&(s={children:e.children.map((function(t,n){return i.serializeNode(t,n,e.children,!0)}))});var a=r({},e,s);return t(n.span,{key:e._key||"span-".concat(o),node:a,serializers:n})}}}},Cshh:function(t,e,n){"use strict";function r(){this.readyState=0}r.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},r.prototype.abort=function(){this._controller&&this._controller.abort()},r.prototype.getAllResponseHeaders=function(){return this._resHeaders},r.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},r.prototype.send=function(t){var e=this,n=this._controller="function"===typeof AbortController&&new AbortController,r="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:n&&n.signal,body:t};"undefined"!==typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then((function(t){return t.headers.forEac
1h((function(t,n){e._resHeaders+=n+": "+t+"\r\n"})),e.status=t.status,e.statusText=t.statusText,e.readyState=3,r?t.text():t.arrayBuffer()})).then((function(t){r?e.responseText=t:e.response=t,e.readyState=4,e.onreadystatechange()})).catch((function(t){"AbortError"!==t.name?e.onerror(t):e.onabort()}))},t.exports=r},DCZw:function(t,e,n){"use strict";var r=n("q1tI"),o=(0,n("DEm0").getSerializers)(r.createElement),i=o.defaultSerializers,s=o.serializeSpan;t.exports={serializeSpan:s,serializers:i,renderProps:{nestMarks:!0}}},DEm0:function(t,e,n){t.exports=n("ctZY")},DRjL:function(t,e,n){"use strict";t.exports=function(t,e){return e.reduce((function(e,n){return"undefined"===typeof t[n]||(e[n]=t[n]),e}),{})}},E6ma:function(t,e,n){"use strict";var r=n("Qetd"),o=n("GBY4"),i="undefined"!==typeof navigator&&"ReactNative"===navigator.product,s=Object.prototype.hasOwnProperty,a={timeout:i?6e4:12e4};function c(t){var e=[];for(var n in t)s.call(t,n)&&r(n,t[n]);return e.length?e.join("&"):"";function r(t,n){Array.isArray(n)?n.forEach((function(e){return r(t,e)})):e.push([t,n].map(encodeURIComponent).join("="))}}function u(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var e=Number(t);return isNaN(e)?u(a.timeout):{connect:e,socket:e}}t.exports=function(t){var e="string"===typeof t?r({url:t},a):r({},a,t),n=o(e.url,{},!0);return e.timeout=u(e.timeout),e.query&&(n.query=r({},n.query,function(t){var e={};for(var n in t)void 0!==t[n]&&(e[n]=t[n]);return e}(e.query))),e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e.url=n.toString(c),e}},FWf1:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("pshJ"),i=n("GiSu"),s=n("zB/H"),a=n("p//D"),c=n("n3uD"),u=n("MkmW"),l=function(t){function e(n,r,o){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=i.empty;break;case 1:if(!n){s.destination=i.empty;break}if("object"===typeof n){n instanceof e?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new f(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new f(s,n,r,o)}return s}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.Subscription);e.Subscriber=l;var f=function(t){function e(e,n,r,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return o.isFunction(n)?a=n:n&&(a=n.next,r=n.error,s=n.complete,n!==i.empty&&(u=Object.create(n),o.isFunction(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=r,c._complete=s,c}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):u.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;u.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw n;u.hostReportError(n)}},e.prototype.__tryOrSetError=function(t,e,n){if(!c.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return c.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(u.hostReportError(r),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l);e.SafeSubscriber=f},GBY4:function(t,e,n){"use strict";(function(e){var r=n("RA0T"),o=n("nFlj"),i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,a=/^[a-zA-Z]:/,c=new RegExp("^[\\x09\\x0A\\x0B\\x0C\\x0D\\x20\\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF]+");function u(t){return(t||"").toString().replace(c,"")}var l=[["#","hash"],["?","query"],function(t,e){return h(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d+)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function p(t){var n,r=("undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{}).location||{},o={},s=typeof(t=t||r);if("blob:"===t.protocol)o=new y(unescape(t.pathname),{});else if("string"===s)for(n in o=new y(t,{}),f)delete o[n];else if("object"===s){for(n in t)n in f||(o[n]=t[n]);void 0===o.slashes&&(o.slashes=i.test(t.href))}return o}function h(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function d(t,e){t=u(t),e=e||{};var n,r=s.exec(t),o=r[1]?r[1].toLowerCase():"",i=!!r[2],a=!!r[3],c=0;
1return i?a?(n=r[2]+r[3]+r[4],c=r[2].length+r[3].length):(n=r[2]+r[4],c=r[2].length):a?(n=r[3]+r[4],c=r[3].length):n=r[4],"file:"===o?c>=2&&(n=n.slice(2)):h(o)?n=r[4]:o?i&&(n=n.slice(2)):c>=2&&h(e.protocol)&&(n=r[4]),{protocol:o,slashes:i||h(o),slashesCount:c,rest:n}}function y(t,e,n){if(t=u(t),!(this instanceof y))return new y(t,e,n);var i,s,c,f,v,m,b=l.slice(),g=typeof e,w=this,O=0;for("object"!==g&&"string"!==g&&(n=e,e=null),n&&"function"!==typeof n&&(n=o.parse),i=!(s=d(t||"",e=p(e))).protocol&&!s.slashes,w.slashes=s.slashes||i&&e.slashes,w.protocol=s.protocol||e.protocol||"",t=s.rest,("file:"===s.protocol&&(2!==s.slashesCount||a.test(t))||!s.slashes&&(s.protocol||s.slashesCount<2||!h(w.protocol)))&&(b[3]=[/(.*)/,"pathname"]);O<b.length;O++)"function"!==typeof(f=b[O])?(c=f[0],m=f[1],c!==c?w[m]=t:"string"===typeof c?~(v=t.indexOf(c))&&("number"===typeof f[2]?(w[m]=t.slice(0,v),t=t.slice(v+f[2])):(w[m]=t.slice(v),t=t.slice(0,v))):(v=c.exec(t))&&(w[m]=v[1],t=t.slice(0,v.index)),w[m]=w[m]||i&&f[3]&&e[m]||"",f[4]&&(w[m]=w[m].toLowerCase())):t=f(t,w);n&&(w.query=n(w.query)),i&&e.slashes&&"/"!==w.pathname.charAt(0)&&(""!==w.pathname||""!==e.pathname)&&(w.pathname=function(t,e){if(""===t)return e;for(var n=(e||"/").split("/").slice(0,-1).concat(t.split("/")),r=n.length,o=n[r-1],i=!1,s=0;r--;)"."===n[r]?n.splice(r,1):".."===n[r]?(n.splice(r,1),s++):s&&(0===r&&(i=!0),n.splice(r,1),s--);return i&&n.unshift(""),"."!==o&&".."!==o||n.push(""),n.join("/")}(w.pathname,e.pathname)),"/"!==w.pathname.charAt(0)&&h(w.protocol)&&(w.pathname="/"+w.pathname),r(w.port,w.protocol)||(w.host=w.hostname,w.port=""),w.username=w.password="",w.auth&&(f=w.auth.split(":"),w.username=f[0],w.password=f[1]||""),w.origin="file:"!==w.protocol&&h(w.protocol)&&w.host?w.protocol+"//"+w.host:"null",w.href=w.toString()}y.prototype={set:function(t,e,n){var i=this;switch(t){case"query":"string"===typeof e&&e.length&&(e=(n||o.parse)(e)),i[t]=e;break;case"port":i[t]=e,r(e,i.protocol)?e&&(i.host=i.hostname+":"+e):(i.host=i.hostname,i[t]="");break;case"hostname":i[t]=e,i.port&&(e+=":"+i.port),i.host=e;break;case"host":i[t]=e,/:\d+$/.test(e)?(e=e.split(":"),i.port=e.pop(),i.hostname=e.join(":")):(i.hostname=e,i.port="");break;case"protocol":i.protocol=e.toLowerCase(),i.slashes=!n;break;case"pathname":case"hash":if(e){var s="pathname"===t?"/":"#";i[t]=e.charAt(0)!==s?s+e:e}else i[t]=e;break;case"username":case"password":i[t]=encodeURIComponent(e);break;case"auth":var a=e.split(":");i.username=a[0],i.password=2===a.length?a[1]:""}for(var c=0;c<l.length;c++){var u=l[c];u[4]&&(i[u[1]]=i[u[1]].toLowerCase())}return i.auth=i.password?i.username+":"+i.password:i.username,i.origin="file:"!==i.protocol&&h(i.protocol)&&i.host?i.protocol+"//"+i.host:"null",i.href=i.toString(),i},toString:function(t){t&&"function"===typeof t||(t=o.stringify);var e,n=this,r=n.protocol;r&&":"!==r.charAt(r.length-1)&&(r+=":");var i=r+(n.protocol&&n.slashes||h(n.protocol)?"//":"");return n.username?(i+=n.username,n.password&&(i+=":"+n.password),i+="@"):n.password&&(i+=":"+n.password,i+="@"),i+=n.host+n.pathname,(e="object"===typeof n.query?t(n.query):n.query)&&(i+="?"!==e.charAt(0)?"?"+e:e),n.hash&&(i+=n.hash),i}},y.extractProtocol=d,y.location=p,y.trimLeft=u,y.qs=o,t.exports=y}).call(this,n("ntbh"))},GMZp:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"===typeof t}},GiSu:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("n3uD"),o=n("MkmW");e.empty={closed:!0,next:function(t){},error:function(t){if(r.config.useDeprecatedSynchronousErrorHandling)throw t;o.hostReportError(t)},complete:function(){}}},"H+cO":function(t,e,n){"use strict";n.r(e),n.d(e,"__N_SSG",(function(){return I})),n.d(e,"default",(function(){return P}));var r=n("nKUr"),o=n("xvhg"),i=n("q1tI"),s=n.n(i),a=n("g4pe"),c=n.n(a);var u=n("aCiT"),l=n("42Sc"),f=n("X6oe"),p=n("JwlQ"),h=n("vJKn"),d=n.n(h);function y(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(u){return void n(u)}a.done?e(c):Promise.resolve(c).then(r,o)}function v(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(t){y(i,r,o,s,a,"next",t)}function a(t){y(i,r,o,s,a,"throw",t)}s(void 0)}))}}function m(t){var e=t.extensions,n=t.active,o=t.setActive;return Object(r.jsxs)("div",{className:"form-group row",children:[Object(r.jsx)("label",{className:"col-sm-3 col-form-label",htmlFor:"codeLanguage",children:"Code Language"}),Object(r.jsx)("div",{className:"col-sm-4",children:Object(r.jsx)("select",{className:"form-control",name:"codeLanguage",id:"codeLanguage",value:n,onChange:function(t){t.preventDefault(),o(t.target.value)},children:e.map((function(t){return Object(r.jsx)("option",{value:t,children:t},t)}))})})]})}var b=function(t){var e=t.content,n=t.activeLines,o=void 0===n?[]:n,i=t.hideInactive,s=void 0!==i&&i,a=(o||[]).length>0;return Object(r.jsx)("ul",{className:"code-viewer",children:e.match(/^.*((\r\n|\n|\r)|$)/gm).map((function(t,e){var n=!a||o.includes(e);return s&&!n?null:Object(r.jsxs)("li",{className:"code-line ".concat(n&&!s?"active":""),children:[Object(r.jsx)("span",{className:"code-line-number",children:e+1}),Object(r.jsx)("pre",{className:"code-line-content",children:t})]},"code_viewer_".concat(e))}))})};n("/dyv"),n("bYjO"),Object.prototype.hasOwnProperty;var g=n("osSN"),w=n.n(g);n("dFLH");var O=function(t){var e=t.projectId,n=t.dataset,r=t.serializers;return function(t){return s.a.createElement(w.a,Object.assign({projectId:e,dataset:n,serializers:r},t))}}({projectId:"dh7vb62q",dataset:"production",apiVersion:"2021-03-25",useCdn:!1,token:"skiNTzUZEZ2gfKvkrEzNT3dT4gh6GWLCDG3EAUOhLWw25I4gRuFN23sr7gQbZp290Fe4z7WCmeUoBtDeIBnsULkq5lPsy0pjB8x9oCowZx8H0erZnEWfG6IT45EQRCqdwhppTTJRfyinAIbWvvYTqRw1B0hvHmDGpMlXBP5B4J46CiwtAPQp"});function _(){return x.apply(this,arguments)}function x(){return(x=v(d.a.mark((function t(){return d.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){document.querySelectorAll(".example-section.highlighted-section").forEach((function(t){t.classList.remove("highlighted-section")})),t()})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t){var e=Object(i.useState)(""),n=e[0],o=e[1],s=Object(i.useState)(null),a=s[0],c=s[1],u=Object(i.useState)([]),l=u[0],f=u[1],p=Object(i.useState)(null),h=p[0],y=p[1],g=Object(i.useState)([]),w=g[0],x=g[1],j=Object(i.useState)([]),E=j[0],S=j[1];return Object(i.useEffect)((function(){var e=(t.page.sections||[]).reduce((function(t,e){return(e.codeLinking||[]).map((function(e){var n=e.linkingExtension;t.push(n)})),t.filter((function(e,n){return t.indexOf(e)===n}))}),[]),n=e[0]||null;x(e),n&&o(n)}),[]),Object(i.useEffect)((function(){var t=new IntersectionObserver((function(t){for(var e=0;e<t.length;e++){var n=t[e];n.isIntersecting&&y(n.target.id)}}),{rootMargin:"40px",threshold:1});return document.querySelectorAll(".example-section").forEach((function(e){t.observe(e)})),function(){document.querySelectorAll(".example-section").forEach((function(e){t.unobserve(e)}))}}),[]),Object(i.useEffect)((function(){if(n){var e=(t.page.sections||[]).filter((function(t){return(t.codeLinking||[]).filter((function(t){return t.linkingExtension===n})).length>0})).reduce((function(t,e){return(e.codeLinking||[]).filter((function(t){return t.linkingExtension===n})).map((function(e){e.codeFilesRef.map((function(e){t.find((function(t){return t.codeSample._id===e.codeSample._id}
1))||t.push(e)}))})),t}),[]),r=e[0];S(e),r&&(c(r.codeSample),f(r.codeLines||[]))}}),[n]),Object(i.useEffect)((function(){v(d.a.mark((function e(){var r,o,i,s,u;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:h&&(r=document.getElementById(h),o=(t.page.sections||[]).find((function(t){return t._id===h})),r&&o&&o.codeLinking&&(i=o.codeLinking.find((function(t){return t.linkingExtension===n})))&&(r.classList.add("highlighted-section"),s=i.codeFilesRef||[],!s.find((function(t){return t.codeSample._id===a._id}))&&s.length>0&&(u=s[0]?s[0]:null,c(u.codeSample))));case 3:case"end":return e.stop()}}),e)})))()}),[h,n]),Object(i.useEffect)((function(){v(d.a.mark((function e(){var r,o,i,s,c;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:h&&n&&a&&(r=(t.page.sections||[]).find((function(t){return t._id===h})))&&r.codeLinking&&(o=null,i=r.codeLinking||[],(s=i.find((function(t){return t.linkingExtension===n})))&&(c=s.codeFilesRef||[],o=c.find((function(t){return t.codeSample._id===a._id}))),o&&f(o.codeLines||[]));case 1:case"end":return e.stop()}}),e)})))()}),[h,n,a]),Object(r.jsxs)(r.Fragment,{children:[Object(r.jsx)("div",{className:"row mb-4",children:Object(r.jsx)("div",{className:"col-md-7 offset-md-5",children:Object(r.jsx)(m,{extensions:w,active:n,setActive:o})})}),Object(r.jsxs)("div",{className:"row",children:[Object(r.jsx)("div",{className:"col-md-5",children:Object(r.jsx)("div",{className:"example-content",children:(t.page.sections||[]).map((function(t){return Object(r.jsxs)("div",{className:"example-section",id:t._id,onClick:function(){return y(t._id)},children:[Object(r.jsx)("h2",{children:t.title}),t.blockContent?Object(r.jsx)(O,{blocks:t.blockContent}):Object(r.jsx)("p",{children:t.content}),Object(r.jsx)("div",{className:"highlighted-separator"})]},t._id)}))})}),Object(r.jsx)("div",{className:"col-md-7 d-flex",children:Object(r.jsx)("div",{className:"code-viewer-wrapper",children:Object(r.jsxs)("div",{className:"code-viewer-wrapper-content",children:[Object(r.jsx)("div",{className:"code-viewer-tags",children:E.map((function(t){return Object(r.jsxs)("span",{className:"tag "+(t.codeSample._id===a._id?"active":""),onClick:function(){return c(t)},children:[t.codeSample.name,".",t.codeSample.extension.extension]},t._id)}))}),a&&Object(r.jsx)(b,{content:a.content||"",activeLines:l})]})})})]})]})}var E=n("dhJC");function S(t){var e=t.section,n=(Object(E.a)(t,["section"]),Object(i.useState)(null)),o=n[0],s=n[1],a=Object(i.useState)([]),c=a[0],u=a[1],l=Object(i.useState)(""),f=l[0],p=l[1],h=Object(i.useState)([]),d=h[0],y=h[1];return Object(i.useEffect)((function(){var t=(e.codeLinking||[]).map((function(t){return t.linkingExtension})).filter((function(t,e,n){return n.indexOf(t)===e})),n=t[0]||null;u(t),n&&p(n)}),[]),Object(i.useEffect)((function(){if(f){var t=(e.codeLinking||[]).filter((function(t){return t.linkingExtension===f})).reduce((function(t,e){return t.concat(e.codeFilesRef.map((function(t){return t})))}),[]),n=t[0];y(t),n&&s(n)}}),[f]),console.log("section.title",e.title,o),Object(r.jsxs)("div",{className:"example-section",id:e._id,children:[Object(r.jsx)("h2",{children:e.title}),e.blockContent?Object(r.jsx)(O,{blocks:e.blockContent}):Object(r.jsx)("p",{children:e.content}),e.codeLinking&&Object(r.jsxs)("div",{className:"code-viewer-wrapper",children:[Object(r.jsx)("div",{className:"code-viewer-tags",children:c.map((function(t){return Object(r.jsx)("span",{className:"tag "+(t===f?"active":""),onClick:function(){return p(t)},children:t},t)}))}),(d||[]).length>1&&Object(r.jsx)("div",{className:"code-viewer-tags",children:d.map((function(t){return Object(r.jsxs)("span",{className:"tag ".concat(o&&t.codeSample._id===o.codeSample._id?" active":""),onClick:function(){s(t)},children:[t.codeSample.name,".",t.codeSample.extension.extension]},t.codeSample._id)}))}),o&&Object(r.jsx)(b,{content:o.codeSample.content||"",hideInactive:!0,activeLines:o.codeLines||[]})]})]},e._id)}function k(t){return Object(r.jsx)("div",{className:"row",children:Object(r.jsx)("div",{className:"col-md-12",children:Object(r.jsx)("div",{className:"example-content",children:(t.page.sections||[]).map((function(e){return Object(r.jsx)(S,{section:e,extensions:t.extensions},e._id)}))})})})}var I=!0;function P(t){var e=Object(i.useState)(!1),n=e[0],s=e[1],a=function(){var t=Object(i.useState)([void 0,void 0]),e=t[0],n=t[1];return Object(i.useEffect)((function(){var t=function(){n([window.innerWidth,window.innerHeight])};return t(),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}),[]),e}(),h=Object(o.a)(a,1)[0];return Object(i.useEffect)((function(){document.addEventListener("keydown",(function(t){t.metaKey&&"k"===t.key.toLowerCase()&&document.querySelector(".sidebar-search-input")&&document.querySelector(".sidebar-search-input").focus()}))}),[]),Object(r.jsxs)(r.Fragment,{children:[Object(r.jsxs)(c.a,{children:[Object(r.jsx)("title",{children:"Datastax Documentation"}),Object(r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"})]}),Object(r.jsxs)("div",{className:"layout-wrapper",children:[Object(r.jsx)(u.a,{}
1),Object(r.jsxs)("main",{className:"docs-wrapper",children:[Object(r.jsx)("section",{className:"sidebar-wrapper ".concat(n?"nav-sidebar--minified":""),children:Object(r.jsx)(l.a,{minified:n,setMinified:s,blocks:t.navs.allEmbedded,documents:t.documents})}),Object(r.jsxs)("section",{className:"content-container",children:[Object(r.jsx)(f.a,{}),Object(r.jsx)(p.a,{title:t.page.title,text:t.page.description,documents:t.documents}),t.page.sections&&Object(r.jsx)("div",{className:"container-fluid example-container",children:h>992?Object(r.jsx)(j,{page:t.page,extensions:t.extensions}):Object(r.jsx)(k,{page:t.page,extensions:t.extensions})})]})]})]})]})}},I97X:function(t,e,n){"use strict";var r=n("p+I8"),o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(t){if(null===t||void 0===t)throw new TypeError("Sources cannot be null or undefined");return Object(t)}function a(t,e,n){var i=e[n];if(void 0!==i&&null!==i){if(o.call(t,n)&&(void 0===t[n]||null===t[n]))throw new TypeError("Cannot convert undefined or null to object ("+n+")");o.call(t,n)&&r(i)?t[n]=c(Object(t[n]),e[n]):t[n]=i}}function c(t,e){if(t===e)return t;for(var n in e=Object(e))o.call(e,n)&&a(t,e,n);if(Object.getOwnPropertySymbols)for(var r=Object.getOwnPropertySymbols(e),s=0;s<r.length;s++)i.call(e,r[s])&&a(t,e,r[s]);return t}t.exports=function(t){t=s(t);for(var e=1;e<arguments.length;e++)c(t,arguments[e]);return t}},IKal:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}();e.ArgumentOutOfRangeError=r},J4Kz:function(t,e,n){"use strict";var r=n("N2s1"),o=n("pU/T"),i=function(t){return o((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=console).warn.apply(e,[t.join(" ")].concat(r))}))};e.printCdnWarning=i(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(r("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),e.printBrowserTokenWarning=i(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(r("js-client-browser-token")," for more information and how to hide this warning.")]),e.printCdnTokenWarning=i(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you","want. The CDN cannot be used with an authorization token, since private data cannot be cached.","See ".concat(r("js-client-usecdn-token")," for more information.")]),e.printNoApiVersionSpecifiedWarning=i(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(r("js-client-api-version"))])},"Ji/L":function(t,e,n){"use strict";function r(t){this.client=t}n("Qetd")(r.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=r},LBXl:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();e.UnsubscriptionError=r},LMKn:function(t,e,n){"use strict";t.exports=function(t){if("string"===typeof t||Array.isArray(t))return{id:t};if(t&&t.query)return"params"in t?{query:t.query,params:t.params}:{query:t.query};var e=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join("\n");throw new Error("Unknown selection - must be one of:\n\n".concat(e))}},"MB/A":function(t,e,n){"use strict";var r=n("b1HN"),o=n("Qetd");function i(t){var e=a(t);i.super.call(this,e.message),o(this,e)}function s(t){var e=a(t);s.super.call(this,e.message),o(this,e)}function a(t){var e=t.body,n={response:t,statusCode:t.statusCode,responseBody:c(e,t)};return e.error&&e.message?(n.message="".concat(e.error," - ").concat(e.message),n):e.error&&e.error.description?(n.message=e.error.description,n.details=e.error,n):(n.message=e.error||e.message||function(t){var e=t.statusMessage?" ".concat(t.statusMessage):"";return"".concat(t.method,"-request to ").concat(t.url," resulted in HTTP ").concat(t.statusCode).concat(e)}(t),n)}function c(t,e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(t,null,2):t}r(i),r(s),e.ClientError=i,e.ServerError=s},MkmW:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},N2s1:function(t,e){t.exports=function(t){return"https://docs.sanity.io/help/"+t}},Q1FS:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("yx2s"),o=n("Xwq/"),i=n("zfKp"),s=n("9AGB"),a=n("n3uD"),c=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?i.add(r.call(i,this.source)):i.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),a.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),r.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=u(e))((function(e,r){var o;o=n.subscribe((function(e){try{t(e)}catch(n){r(n),o&&o.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=u(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))},t.create=function(e){return new t(e)},t}();function u(t){if(t||(t=a.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=c},QmWs:function(t,e,n){var r,o=(r=n("s4NR"))&&"object"==typeof r&&"default"in r?r.default:r,i=/https?|ftp|gopher|file/;function s(t){"string"==typeof t&&(t=g(t));var e=function(t,e,n){var r=t.auth,o=t.hostname,i=t.protocol||"",s=t.pathname||"",a=t.hash||"",c=t.query||"",u=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",t.host?u=r+t.host:o&&(u=r+(~o.indexOf(":")?"["+o+"]":o),t.port&&(u+=":"+t.port)),c&&"object"==typeof c&&(c=e.encode(c));var l=t.search||c&&"?"+c||"";return i&&":"!==i.substr(-1)&&(i+=":"),t.slashes||(!i||n.test(i))&&!1!==u?(u="//"+(u||""),s&&"/"!==s[0]&&(s="/"+s)):u||(u=""),a&&"#"!==a[0]&&(a="#"+a),l&&"?"!==l[0]&&(l="?"+l),{protocol:i,host:u,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:l=l.replace("#","%23"),hash:a}}(t,o,i);return""+e.protocol+e.host+e.pathname+e.search+e.hash}var a="http://",c="w.w",u=a+c,l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,f=/https?|ftp|gopher|file/;function p(t,e){var n="string"==typeof t?g(t):t;t="object"==typeof t?s(t):t;var r=g(e),o="";n.protocol&&!n.slashes&&(o=n.protocol,t=t.replace(n.protocol,""),o+="/"===e[0]||"/"===t[0]?"/":""),o&&r.protocol&&(o="",r.slashes||(o=r.protocol,e=e.replace(r.protocol,"")));var i=t.match(l);i&&!r.protocol&&(t=t.substr((o=i[1]+(i[2]||"")).length),/^\/\/[^/]/.test(e)&&(o=o.slice(0,-1)));var c=new URL(t,u+"/"),p=new URL(e,c).toString().replace(u,""),h=r.protocol||n.protocol;return h+=n.slashes||r.slashes?"//":"",!o&&h?p=p.replace(a,h):o&&(p=p.replace(a,"")),f.test(p)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==p.slice(-1)||(p=p.slice(0,-1)),o&&(p=o+("/"===p[0]?p.substr(1):p)),p}function h(){}h.prototype.parse=g,h.prototype.format=s,h.prototype.resolve=p,h.prototype.resolveObject=p;var d=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,v=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,m=/^([a-z0-9.+-]*:)?\/\/\/*/i,b=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function g(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!1),t&&"object"==typeof t&&t instanceof h)return t;var r=(t=t.trim()).match(y);t=r?r[1].replace(/\\/g,"/")+r[2]:t.replace(/\\/g,"/"),b.test(t)&&"/"!==t.slice(-1)&&(t+="/");var i=!/(^javascript)/.test(t)&&t.match(v),a=m.test(t),l="";i&&(d.test(i[1])||(l=i[1].toLowerCase(),t=""+i[2]+i[3]),i[2]||(a=!1,d.test(i[1])?(l=i[1],t=""+i[3]):t="//"+i[3]),3!==i[2].length&&1!==i[2].length||(l=i[1],t="/"+i[3]));var f,p=(r?r[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),g=p&&p[1],w=new h,O="",_="";
1try{f=new URL(t)}catch(o){O=o,l||n||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(_="/",t=t.substr(1));try{f=new URL(t,u)}catch(t){return w.protocol=l,w.href=l,w}}w.slashes=a&&!_,w.host=f.host===c?"":f.host,w.hostname=f.hostname===c?"":f.hostname.replace(/(\[|\])/g,""),w.protocol=O?l||null:f.protocol,w.search=f.search.replace(/\\/g,"%5C"),w.hash=f.hash.replace(/\\/g,"%5C");var x=t.split("#");!w.search&&~x[0].indexOf("?")&&(w.search="?"),w.hash||""!==x[1]||(w.hash="#"),w.query=e?o.decode(f.search.substr(1)):w.search.substr(1),w.pathname=_+(i?function(t){return t.replace(/['^|`]/g,(function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(t,e){try{return decodeURIComponent(e).split("").map((function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()})).join("")}catch(t){return e}}))}(f.pathname):f.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),O&&"/"!==t[0]&&(w.pathname=w.pathname.substr(1)),l&&!d.test(l)&&"/"!==t.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[f.username,f.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=f.port,g&&!w.host.endsWith(g)&&(w.host+=g,w.port=g.slice(1)),w.href=_?""+w.pathname+w.search+w.hash:s(w);var j=/^(file)/.test(w.href)?["host","hostname"]:[];
1return Object.keys(w).forEach((function(t){~j.indexOf(t)||(w[t]=w[t]||null)})),w}e.parse=g,e.format=s,e.resolve=p,e.resolveObject=function(t,e){return g(p(t,e))},e.Url=h},RA0T:function(t,e,n){"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t=+t))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},RT5d:function(t,e,n){"use strict";var r=n("pmlw"),o=n("bYjO"),i=n("Qetd"),s=encodeURIComponent,a="You must either:\n  - Pass `projectId` and `dataset` to the block renderer\n  - Materialize images to include the `url` field.\n\nFor more information, see ".concat(r("block-content-image-materializing"));t.exports=function(t){var e=t.node,n=t.options,r=n.projectId,c=n.dataset,u=e.asset;if(!u)throw new Error("Image does not have required `asset` property");if(u.url)return u.url+function(t){var e=t.imageOptions,n=Object.keys(e);if(!n.length)return"";var r=n.map((function(t){return"".concat(s(t),"=").concat(s(e[t]))}));return"?".concat(r.join("&"))}(n);if(!r||!c)throw new Error(a);if(!u._ref)throw new Error("Invalid image reference in block, no `_ref` found on `asset`");return o(i({projectId:r,dataset:c},n.imageOptions||{})).image(e).toString()}},RfbL:function(t,e,n){"use strict";var r=n("Qetd");function o(t){try{return JSON.parse(t)}catch(e){throw e.message="Failed to parsed response body as JSON: "+e.message,e}}t.exports=function(t){return{onResponse:function(e){var n=e.headers["content-type"]||"",i=t&&t.force||-1!==n.indexOf("application/json");return e.body&&n&&i?r({},e,{body:o(e.body)}):e},processOptions:function(t){return r({},t,{headers:r({Accept:"application/json"},t.headers)})}}}},V1Fd:function(t,e,n){"use strict";var r=n("Qetd"),o=n("ftCV"),i=n("ueIO"),s=n("xM0z"),a=n("cIWD"),c=["projectId","dataset","imageOptions","ignoreUnknownTypes"],u={imageOptions:{},ignoreUnknownTypes:!0};function l(t){return"block"===t._type&&t.listItem}t.exports=function(t,e,n,f){var p=r({},u,e),h=Array.isArray(p.blocks)?p.blocks:[p.blocks],d=s(h),y=i(d,p.listNestMode),v=a(n,p.serializers||{}),m=c.reduce((function(t,e){var n=p[e];return"undefined"!==typeof n&&(t[e]=n),t}),{});function b(e,n,r,i){return"list"===(s=e)._type&&s.listItem?function(e){var n=e.listItem,r=e.level,o=e._key,i=e.children.map(b);return t(v.list,{key:o,level:r,type:n,options:m},i)}(e):l(e)?function(e,n){var r=e._key,i=o(e).map(b);return t(v.listItem,{node:e,serializers:v,index:n,key:r,options:m},i)}(e,function(t,e){for(var n=0,r=0;r<e.length;r++){if(e[r]===t)return n;l(e[r])&&n++}return n}(e,r)):function(t){return"string"===typeof t||t.marks||"span"===t._type}(e)?f(e,v,n,{serializeNode:b}):function(e,n,r){var i=o(e).map((function(t,e,n){return b(t,e,n,!0)})),s={key:e._key||"block-".concat(n),node:e,isInline:r,serializers:v,options:m};return t(v.block,s,i)}(e,n,i);var s}var g=Boolean(p.renderContainerOnSingleChild),w=y.map(b);if(g||w.length>1){var O=p.className?{className:p.className}:{};return t(v.container,O,w)}return w[0]?w[0]:"function"===typeof v.empty?t(v.empty):v.empty}},VmPP:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=["image","file"],i=["before","after","replace"];e.dataset=function(t){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},e.projectId=function(t){if(!/^[-a-z0-9]+$/i.test(t))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},e.validateAssetType=function(t){if(-1===o.indexOf(t))throw new Error("Invalid asset type: ".concat(t,". Must be one of ").concat(o.join(", ")))},e.validateObject=function(t,e){if(null===e||"object"!==r(e)||Array.isArray(e))throw new Error("".concat(t,"() takes an object of properties"))},e.requireDocumentId=function(t,n){if(!n._id)throw new Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));e.validateDocumentId(t,n._id)},e.validateDocumentId=function(t,e){if("string"!==typeof e||!/^[a-z0-9_.-]+$/i.test(e))throw new Error("".concat(t,'(): "').concat(e,'" is not a valid document ID'))},e.validateInsert=function(t,e,n){var r="insert(at, selector, items)";if(-1===i.indexOf(t)){var o=i.map((function(t){return'"'.concat(t,'"')})).join(", ");throw new Error("".concat(r,' takes an "at"-argument which is one of: ').concat(o))}if("string"!==typeof e)throw new Error("".concat(r,' takes a "selector"-argument which must be a string'));if(!Array.isArray(n))throw new Error("".concat(r,' takes an "items"-argument which must be an array'))},e.hasDataset=function(t){if(!t.gradientMode&&!t.dataset)throw new Error("`dataset` must be provided to perform queries");return t.dataset||""},e.requestTag=function(t){if("string"!==typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t}},"Xwq/":function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var r=n("FWf1"),o=n("p//D"),i=n("GiSu");e.toSubscriber=function(t,e,n){if(t){if(t instanceof r.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||n?new r.Subscriber(t,e,n):new r.Subscriber(i.empty)}},YIS7:function(t,e,n){"use strict";t.exports=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(t[n])));return e.length>0?"?".concat(e.join("&")):""}},YK4L:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("vrE+"),o=n("76/Q"),i=n("1Z+e"),s=n("9AGB");e.reduce=function(t,e){return arguments.length>=2?function(n){return s.pipe(r.scan(t,e),o.takeLast(1),i.defaultIfEmpty(e))(n)}:function(e){return s.pipe(r.scan((function(e,n,r){return t(e,n,r+1)})),o.takeLast(1))(e)}}},ZESv:function(t,e){var n=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,r={},o=n(t).split("\n"),i=0;i<o.length;i++){var s=o[i],a=s.indexOf(":"),c=n(s.slice(0,a)).toLowerCase(),u=n(s.slice(a+1));"undefined"===typeof r[c]?r[c]=u:(e=r[c],"[object Array]"===Object.prototype.toString.call(e)?r[c].push(u):r[c]=[r[c],u])}return r}},ZeDx:function(t,e,n){var r=n("7Q5a");t.exports="undefined"!==typeof window&&window.EventSource?window.EventSource:r.EventSource},a7GE:function(t,e,n){"use strict";var r=n("fXrF"),o=n("ZESv"),i=n("Cshh"),s="undefined"===typeof window?void 0:window,a=s?"xhr":"fetch",c="function"===typeof XMLHttpRequest?XMLHttpRequest:function(){},u="withCredentials"in new c,l="undefined"===typeof XDomainRequest?void 0:XDomainRequest,f=u?c:l;s||(c=i,f=i),t.exports=function(t,e){var n=t.options,i=t.applyMiddleware("finalizeOptions",n),u={},l=s&&s.location&&!r(s.location.href,i.url),p=t.applyMiddleware("interceptRequest",void 0,{adapter:a,context:t});if(p){var h=setTimeout(e,0,null,p);return{abort:function(){return clearTimeout(h)}}}var d=l?new f:new c,y=s&&s.XDomainRequest&&d instanceof s.XDomainRequest,v=i.headers,m=i.timeout,b=!1,g=!1,w=!1;if(d.onerror=j,d.ontimeout=j,d.onabort=function(){b=!0},d.onprogress=function(){},d[y?"onload":"onreadystatechange"]=function(){!function(){if(!m)return;x(),u.socket=setTimeout((function(){return _("ESOCKETTIMEDOUT")}),m.socket)}(),b||4!==d.readyState&&!y||0!==d.status&&function(){if(b||g||w)return;if(0===d.status)return void j(new Error("Unknown XHR error"));x(),g=!0,e(null,function(){var t=d.status,e=d.statusText;if(y&&void 0===t)t=200;else{if(t>12e3&&t<12156)return j();t=1223===d.status?204:d.status,e=1223===d.status?"No Content":e}return{body:d.response||d.responseText,url:i.url,method:i.method,headers:y?{}:o(d.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}()},d.open(i.method,i.url,!0),d.withCredentials=!!i.withCredentials,v&&d.setRequestHeader)for(var O in v)v.hasOwnProperty(O)&&d.setRequestHeader(O,v[O]);else if(v&&y)throw new Error("Headers cannot be set on an XDomainRequest object");return i.rawBody&&(d.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:i,adapter:a,request:d,context:t}),d.send(i.body||null),m&&(u.connect=setTimeout((function(){return _("ETIMEDOUT")}),m.connect)),{abort:function(){b=!0,d&&d.abort()}};function _(e){w=!0,d.abort();var n=new Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+i.url:"Connection timed out on request to "+i.url);n.code=e,t.channels.error.publish(n)}function x(){(b||d.readyState>=2&&u.connect)&&clearTimeout(u.connect),u.socket&&clearTimeout(u.socket)}function j(t){if(!g){x(),g=!0,d=null;var n=t||new Error("Network error while attempting to reach "+i.url);n.isNetworkError=!0,n.request=i,e(n)}}}},aJGj:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("Q1FS");e.EMPTY=new r.Observable((function(t){return t.complete()})),e.empty=function(t){return t?function(t){return new r.Observable((function(e){return t.schedule((function(){return e.complete()}))}))}(t):e.EMPTY}},b1HN:function(t,e,n){"use strict";var r="undefined"!==typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,i=Error.captureStackTrace;function s(t){void 0!==t&&o(this,"message",{configurable:!0,value:t,writable:!0});var e=this.constructor.name;void 0!==e&&e!==this.name&&o(this,"name",{configurable:!0,value:e,writable:!0}),i(this,this.constructor)}void 0===i&&(i=function(t){var e=new Error;o(t,"stack",{configurable:!0,get:function(){var t=e.stack;return o(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(e){o(t,"stack",{configurable:!0,value:e,writable:!0})}})}),s.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:s,writable:!0}});var a=function(){function t(t,e){return o(t,"name",{configurable:!0,value:e})}try{var e=function(){};if(t(e,"foo"),"foo"===e.name)return t}catch(n){}}();(t.exports=function(t,e){if(null==e||e===Error)e=s;else if("function"!==typeof e)throw new TypeError("super_ should be a function");var n;if("string"===typeof t)n=t,t=void 0!==r?function(){return r(e,arguments,this.constructor)}:function(){e.apply(this,arguments)},void 0!==a&&(a(t,n),n=void 0);else if("function"!==typeof t)throw new TypeError("constructor should be either a string or a function");t.super_=t.super=e;var o={constructor:{configurable:!0,value:t,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),t.prototype=Object.create(e.prototype,o),t}).BaseError=s},bYjO:function(t,e,n){t.exports=function(){function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function e(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r(t){var n=0;if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=e(t)))return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}var o="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function i(t){var e=t.split("-"),n=e[1],r=e[2],i=e[3];
1if(!n||!r||!i)throw new Error("Malformed asset _ref '"+t+"'. Expected an id like \""+o+'".');var s=r.split("x"),a=+s[0],c=+s[1];if(!isFinite(a)||!isFinite(c))throw new Error("Malformed asset _ref '"+t+"'. Expected an id like \""+o+'".');return{id:n,width:a,height:c,format:i}}var s=function(t){return!!t&&"string"===typeof t._ref},a=function(t){return!!t&&"string"===typeof t._id},c=function(t){var e=t;return!(!e||!e.asset)&&"string"===typeof e.asset.url};function u(t){if(!t)return null;var e;if("string"===typeof t&&l(t))e={asset:{_ref:f(t)}};else if("string"===typeof t)e={asset:{_ref:t}};else if(s(t))e={asset:t};else if(a(t))e={asset:{_ref:t._id||""}};else if(c(t))e={asset:{_ref:f(t.asset.url)}};else{if("object"!==typeof t.asset)return null;e=t}var n=t;return n.crop&&(e.crop=n.crop),n.hotspot&&(e.hotspot=n.hotspot),p(e)}function l(t){return/^https?:\/\//.test(""+t)}function f(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}function p(e){if(e.crop&&e.hotspot)return e;var n=t({},e);return n.crop||(n.crop={left:0,top:0,bottom:0,right:0}),n.hotspot||(n.hotspot={x:.5,y:.5,height:1,width:1}),n}var h=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]];function d(e){var n=t({},e||{}),r=n.source;delete n.source;var o=u(r);if(!o)return null;var s=i(o.asset._ref||o.asset._id||""),a=Math.round(o.crop.left*s.width),c=Math.round(o.crop.top*s.height),l={left:a,top:c,width:Math.round(s.width-o.crop.right*s.width-a),height:Math.round(s.height-o.crop.bottom*s.height-c)},f=o.hotspot.height*s.height/2,p=o.hotspot.width*s.width/2,h=o.hotspot.x*s.width,d=o.hotspot.y*s.height,m={left:h-p,top:d-f,right:h+p,bottom:d+f};return n.rect||n.focalPoint||n.ignoreImageParams||n.crop||(n=t(t({},n),v({crop:l,hotspot:m},n))),y(t(t({},n),{},{asset:s}))}function y(t){var e=t.baseUrl||"https://cdn.sanity.io",n=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format,r=e+"/images/"+t.projectId+"/"+t.dataset+"/"+n,o=[];if(t.rect){var i=t.rect,s=i.left,a=i.top,c=i.width,u=i.height;(0!==s||0!==a||u!==t.asset.height||c!==t.asset.width)&&o.push("rect="+s+","+a+","+c+","+u)}t.bg&&o.push("bg="+t.bg),t.focalPoint&&(o.push("fp-x="+t.focalPoint.x),o.push("fp-y="+t.focalPoint.y));var l=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return l&&o.push("flip="+l),h.forEach((function(e){var n=e[0],r=e[1];"undefined"!==typeof t[n]?o.push(r+"="+encodeURIComponent(t[n])):"undefined"!==typeof t[r]&&o.push(r+"="+encodeURIComponent(t[r]))})),0===o.length?r:r+"?"+o.join("&")}function v(t,e){var n,r=e.width,o=e.height;if(!r||!o)return{width:r,height:o,rect:t.crop};var i=t.crop,s=t.hotspot,a=r/o;if(i.width/i.height>a){var c=i.height,u=c*a,l=i.top,f=(s.right-s.left)/2+s.left-u/2;f<i.left?f=i.left:f+u>i.left+i.width&&(f=i.left+i.width-u),n={left:Math.round(f),top:Math.round(l),width:Math.round(u),height:Math.round(c)}}else{var p=i.width,h=p/a,d=i.left,y=(s.bottom-s.top)/2+s.top-h/2;y<i.top?y=i.top:y+h>i.top+i.height&&(y=i.top+i.height-h),n={left:Math.max(0,Math.floor(d)),top:Math.max(0,Math.floor(y)),width:Math.round(p),height:Math.round(h)}}return{width:r,height:o,rect:n}}var m=["clip","crop","fill","fillmax","max","scale","min"],b=["top","bottom","left","right","center","focalpoint","entropy"],g=["format"];function w(t){return!!t&&"object"===typeof t.clientConfig}function O(t){for(var e,n=r(h);!(e=n()).done;){var o=e.value,i=o[0],s=o[1];if(t===i||t===s)return i}return t}function _(t){var e=t;if(w(e)){var n=e.clientConfig,r=n.apiHost,o=n.projectId,i=n.dataset;return new x(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:o,dataset:i})}return new x(null,t)}var x=function(){function e(e,n){this.options=t(e?t({},e.options||{}):{},n||{})}var n=e.prototype;return n.withOptions=function(n){var r=n.baseUrl||this.options.baseUrl,o={baseUrl:r};for(var i in n)n.hasOwnProperty(i)&&(o[O(i)]=n[i]);return new e(this,t({baseUrl:r},o))},n.image=function(t){return this.withOptions({source:t})},n.dataset=function(t){return this.withOptions({dataset:t})},n.projectId=function(t){return this.withOptions({projectId:t})},n.bg=function(t){return this.withOptions({bg:t})},n.dpr=function(t){return this.withOptions({dpr:t})},n.width=function(t){return this.withOptions({width:t})},n.height=function(t){return this.withOptions({height:t})},n.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},n.maxWidth=function(t){return this.withOptions({maxWidth:t})},n.minWidth=function(t){return this.withOptions({minWidth:t})},n.maxHeight=function(t){return this.withOptions({maxHeight:t})},n.minHeight=function(t){return this.withOptions({minHeight:t})},n.size=function(t,e){return this.withOptions({width:t,height:e})},n.blur=function(t){return this.withOptions({blur:t})},n.sharpen=function(t){return this.withOptions({sharpen:t})},n.rect=function(t,e,n,r){return this.withOptions({rect:{left:t,top:e,width:n,height:r}})},n.format=function(t){return this.withOptions({format:t})},n.invert=function(t){return this.withOptions({invert:t})},n.orientation=function(t){return this.withOptions({orientation:t})},n.quality=function(t){return this.withOptions({quality:t})},n.forceDownload=function(t){return this.withOptions({download:t})},n.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},n.flipVertical=function(){return this.withOptions({flipVertical:!0})},n.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},n.fit=function(t){if(-1===m.indexOf(t))throw new Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},n.crop=function(t){if(-1===b.indexOf(t))throw new Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},n.saturation=function(t){return this.withOptions({saturation:t})},n.auto=function(t){if(-1===g.indexOf(t))throw new Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},n.pad=function(t){return this.withOptions({pad:t})},n.url=function(){return d(this.options)},n.toString=function(){return this.url()},e}();return _}()},"c8+P":function(t,e,n){"use strict";var r=n("82qm"),o=n("pY8y"),i=n("E6ma"),s=n("jD2y"),a=n("pNVt"),c=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,l=[],f=u.reduce((function(t,e){return t[e]=t[e]||[],t}),{processOptions:[i],validateOptions:[s]});function p(t){var e=c.reduce((function(t,e){return t[e]=r(),t}),{}),i=o(f),s=i("processOptions",t);i("validateOptions",s);var a={options:s,channels:e,applyMiddleware:i},u=null,l=e.request.subscribe((function(t){u=n(t,(function(n,r){return function(t,r,o){var s=t,a=r;if(!s)try{a=i("onResponse",r,o)}catch(n){a=null,s=n}(s=s&&i("onError",s,o))?e.error.publish(s):a&&e.response.publish(a)}(n,r,t)}))}));e.abort.subscribe((function(){l(),u&&u.abort()}));var p=i("onReturn",e,a);return p===e&&e.request.publish(a),p}return p.use=function(t){if(!t)throw new Error("Tried to add middleware that resolved to fal
1sey value");if("function"===typeof t)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&f.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 u.forEach((function(e){t[e]&&f[e].push(t[e])})),l.push(t),p},p.clone=function(){return t(l)},e.forEach(p.use),p}},cIWD:function(t,e,n){"use strict";function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n("Qetd");t.exports=function(t,e){return Object.keys(t).reduce((function(n,i){var s=r(t[i]);return n[i]="function"===s?"undefined"!==typeof e[i]?e[i]:t[i]:"object"===s?o({},t[i],e[i]):"undefined"===typeof e[i]?t[i]:e[i],n}),{})}},ctZY:function(t,e,n){"use strict";var r=n("CoN9"),o=n("V1Fd"),i=n("RT5d"),s=n("cIWD");t.exports={blocksToNodes:function(t,e,n,i){if(n)return o(t,e,n,i);var s=r(t);return o(t,e,s.defaultSerializers,s.serializeSpan)},getSerializers:r,getImageUrl:i,mergeSerializers:s}},dFLH:function(t,e,n){"use strict";t.exports=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.length-1;return t.slice(0,o).reduce((function(t,e,r){return t+e+n[r]}),"")+t[o]}},eX1s:function(t,e,n){e.map=n("q3Kh").map},equ0:function(t,e,n){"use strict";t.exports=function(){return{onRequest:function(t){if("xhr"===t.adapter){var e=t.request,n=t.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=r("upload")),"onprogress"in e&&(e.onprogress=r("download"))}function r(t){return function(e){var r=e.lengthComputable?e.loaded/e.total*100:-1;n.channels.progress.publish({stage:t,percent:r,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},fXrF:function(t,e,n){"use strict";var r=n("QmWs");t.exports=function(t,e,n){if(t===e)return!0;var o=r.parse(t,!1,!0),i=r.parse(e,!1,!0),s=0|o.port||("https"===o.protocol?443:80),a=0|i.port||("https"===i.protocol?443:80),c={proto:o.protocol===i.protocol,hostname:o.hostname===i.hostname,port:s===a};return c.proto&&c.hostname&&(c.port||n)}},flg0:function(t,e,n){"use strict";var r=n("Qetd"),o=n("VmPP");function i(t){this.request=t.request.bind(t)}r(i.prototype,{create:function(t,e){return this._modify("PUT",t,e)},edit:function(t,e){return this._modify("PATCH",t,e)},delete:function(t){return this._modify("DELETE",t)},list:function(){return this.request({uri:"/datasets"})},_modify:function(t,e,n){return o.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:n})}}),t.exports=i},fmMd:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("Qetd"),a=n("kLGu"),c=n("ZeDx"),u=n("N2s1"),l=n("DRjL"),f=n("pU/T"),p=n("rHvv"),h=n("xhG/"),d=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(u("js-client-listener-tokens-browser"),".")],y=f((function(){return console.warn(d.join(" "))})),v=Boolean("undefined"!==typeof window&&window.EventSource),m=v?window.EventSource:c,b=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],g={includeResult:!0};function w(t){try{var e=t.data&&JSON.parse(t.data)||{};return s({type:t.type},e)}catch(n){return n}}function O(t){if(t instanceof Error)return t;var e=w(t);return e instanceof Error?e:new Error(function(t){if(!t.error)return t.message||"Unknown listener error";if(t.error.description)return t.error.description;return"string"===typeof t.error?t.error:JSON.stringify(t.error,null,2)}(e))}t.exports=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.clientConfig,i=r.url,s=r.token,c=r.withCredentials,u=r.requestTagPrefix,f=n.tag&&u?[u,n.tag].join("."):n.tag,d=o(o({},p(n,g)),{},{tag:f}),_=l(d,b),x=h({query:t,params:e,options:_,tag:f}
1),j="".concat(i).concat(this.getDataUrl("listen",x));if(j.length>14800)return new a((function(t){return t.error(new Error("Query too large for listener"))}));var E=d.events?d.events:["mutation"],S=-1!==E.indexOf("reconnect");s&&v&&y();var k={};return(s||c)&&(k.withCredentials=!0),s&&(k.headers={Authorization:"Bearer ".concat(s)}),new a((function(t){var e,n=u(),r=!1;function o(){r||(S&&t.next({type:"reconnect"}),r||n.readyState===m.CLOSED&&(c(),clearTimeout(e),e=setTimeout(l,100)))}function i(e){t.error(O(e))}function s(e){var n=w(e);return n instanceof Error?t.error(n):t.next(n)}function a(e){r=!0,c(),t.complete()}function c(){n.removeEventListener("error",o,!1),n.removeEventListener("channelError",i,!1),n.removeEventListener("disconnect",a,!1),E.forEach((function(t){return n.removeEventListener(t,s,!1)})),n.close()}function u(){var t=new m(j,k);return t.addEventListener("error",o,!1),t.addEventListener("channelError",i,!1),t.addEventListener("disconnect",a,!1),E.forEach((function(e){return t.addEventListener(e,s,!1)})),t}function l(){n=u()}return function(){r=!0,c()}}))}},ftCV:function(t,e,n){"use strict";var r=["strong","em","code","underline","strike-through"];function o(t,e,n){if(!t.marks||0===t.marks.length)return t.marks||[];var r=t.marks.reduce((function(t,r){t[r]=t[r]?t[r]+1:1;for(var o=e+1;o<n.length;o++){var i=n[o];if(!i.marks||!Array.isArray(i.marks)||-1===i.marks.indexOf(r))break;t[r]++}return t}),{}),o=i.bind(null,r);return t.marks.slice().sort(o)}function i(t,e,n){var o=t[e]||0,i=t[n]||0;if(o!==i)return i-o;var s=r.indexOf(e),a=r.indexOf(n);return s!==a?s-a:e<n?-1:e>n?1:0}t.exports=function(t){var e=t.children,n=t.markDefs;if(!e||!e.length)return[];var r=e.map(o),i={_type:"span",children:[]},s=[i];return e.forEach((function(t,e){var o=r[e];if(o){var i=1;if(s.length>1)for(;i<s.length;i++){var a=s[i].markKey,c=o.indexOf(a);if(-1===c)break;o.splice(c,1)}var u,l=function(t){for(var e=t.length-1;e>=0;e--){var n=t[e];if("span"===n._type&&n.children)return n}return}(s=s.slice(0,i));if(o.forEach((function(e){var r={_type:"span",_key:t._key,children:[],mark:n.find((function(t){return t._key===e}))||e,markKey:e};l.children.push(r),s.push(r),l=r})),"span"!==(u=t)._type||"string"!==typeof u.text||!Array.isArray(u.marks)&&"undefined"!==typeof u.marks)l.children=l.children.concat(t);else{for(var f=t.text.split("\n"),p=f.length;p-- >1;)f.splice(p,0,"\n");l.children=l.children.concat(f)}}else{s[s.length-1].children.push(t)}})),i.children}},h1JA:function(t,e,n){"use strict";var r=n("Bcqf"),o=n("Qetd");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||r.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,n){return new e((function(e){return t.error.subscribe((function(t){return e.error(t)})),t.progress.subscribe((function(t){return e.next(o({type:"progress"},t))})),t.response.subscribe((function(t){e.next(o({type:"response"},t)),e.complete()})),t.request.publish(n),function(){return t.abort.publish()}}))}}}},i6MQ:function(t,e,n){"use strict";t.exports=[]},jD2y:function(t,e,n){"use strict";var r=/^https?:\/\//i;t.exports=function(t){if(!r.test(t.url))throw new Error('"'+t.url+'" is not a valid URL')}},kLGu:function(t,e,n){t.exports=n("3ocN")},kd2E:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var s={};if("string"!==typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var c=1e3;i&&"number"===typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var f,p,h,d,y=t[l].replace(a,"%20"),v=y.indexOf(n);v>=0?(f=y.substr(0,v),p=y.substr(v+1)):(f=y,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(s,h)?o(s[h])?s[h].push(d):s[h]=[s[h],d]:s[h]=d}return s};var o=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},l3Vq:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("Qetd"),i=n("VmPP"),s=n("s+BN"),a={returnDocuments:!1};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.trxId=n,this.operations=t,this.client=e}o(c.prototype,{clone:function(){return new c(this.operations.slice(0),this.client,this.trxId)},create:function(t){return i.validateObject("create",t),this._add({create:t})},createIfNotExists:function(t){var e="createIfNotExists";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(r({},e,t))},createOrReplace:function(t){var e="createOrReplace";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(r({},e,t))},delete:function(t){return i.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var n="function"===typeof e;if(t instanceof s)return this._add({patch:t.serialize()});if(n){var r=e(new s(t,{},this.client));if(!(r instanceof s))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:o({id:t},e)})},transactionId:function(t){return t?(this.trxId=t,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(t){if(!this.client)throw new Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),o({transactionId:this.trxId},a,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=c},mbIT:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"===typeof t.length}},n3uD:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},nFlj:function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty;function o(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function i(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var n,o,s=[];for(o in"string"!==typeof e&&(e="?"),t)if(r.call(t,o)){if((n=t[o])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),o=i(o),n=i(n),null===o||null===n)continue;s.push(o+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,n=/([^=?#&]+)=?([^&]*)/g,r={};e=n.exec(t);){var i=o(e[1]),s=o(e[2]);null===i||null===s||i in r||(r[i]=s)}return r}},ntbh:function(t,e){(function(e){t.exports=function(){var t={149:function(t){var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(n){"object"===typeof window&&(e=window)}t.exports=e}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}},i=!0;try{t[e](o,o.exports,r),i=!1}finally{i&&delete n[e]}return o.exports}return r.ab=e+"/",r(149)}()}).call(this,"/")},oKRs:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/examples/[page]",function(){return n("H+cO")}])},osSN:function(t,e,n){"use strict";var r=n("q1tI"),o=n("17x9"),i=n("DEm0"),s=n("DCZw"),a=s.serializers,c=s.serializeSpan,u=s.renderProps,l=i.getImageUrl,f=i.blocksToNodes,p=i.mergeSerializers,h=r.createElement,d=function t(e){var n=p(t.defaultSerializers,e.serializers),r=Object.assign({},u,e,{serializers:n,blocks:e.blocks||[]});return f(h,r,a,c)};d.defaultSerializers=a,d.getImageUrl=l,d.propTypes={className:o.string,renderContainerOnSingleChild:o.bool,ignoreUnknownTypes:o.bool,projectId:o.string,dataset:o.string,imageOptions:o.object,serializers:o.shape({types:o.object,marks:o.object,list:o.func,listItem:o.func,block:o.func,span:o.func}),blocks:o.oneOfType([o.arrayOf(o.shape({_type:o.string.isRequired})),o.shape({_type:o.string.isRequired})]).isRequired},d.defaultProps={ignoreUnknownTypes:!0,renderContainerOnSingleChild:!1,serializers:{},imageOptions:{}},t.exports=d},"p+I8":function(t,e,n){"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},"p//D":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"===typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},pNVt:function(t,e,n){"use strict";t.exports=n("a7GE")},"pU/T":function(t,e,n){"use strict";t.exports=function(t){var e,n=!1;return function(){return n||(e=t.apply(void 0,arguments),n=!0),e}}},pY8y:function(t,e,n){"use strict";t.exports=function(t){return function(e,n){for(var r=arguments.length,o=Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];for(var s="onError"===e,a=n,c=0;c<t[e].length;c++){var u=t[e][c];if(a=u.apply(void 0,[a].concat(o)),s&&!a)break}return a}}},pmlw:function(t,e){t.exports=function(t){return"https://docs.sanity.io/help/"+t}},pshJ:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"===typeof t}},q3Kh:function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n("FWf1");e.map=function(t,e){return function(n){if("function"!==typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}();e.MapOperator=i;var s=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)},e}(o.Subscriber)},qDJ8:function(t,e,n){"use strict";
1t.exports=function(t){return null!=t&&"object"===typeof t&&!1===Array.isArray(t)}},qS3u:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("Qetd"),i=n("8c+Z").filter,s=n("eX1s").map,a=n("VmPP"),c=n("LMKn"),u=n("xhG/"),l=n("l3Vq"),f=n("s+BN"),p=n("fmMd"),h=function(t,e){return!1===t?void 0:"undefined"===typeof t?e:t},d=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:h(t.returnDocuments,!0),visibility:t.visibility||"sync"}},y=function(t){return"response"===t.type},v=function(t){return t.body},m=function(t,e){return t.reduce((function(t,n){return t[e(n)]=n,t}),Object.create(null))},b=function(t){return t.toPromise()};t.exports={listen:p,getDataUrl:function(t,e){var n=this.clientConfig,r=n.gradientMode?n.namespace:a.hasDataset(n),o="/".concat(t,"/").concat(r),i=e?"".concat(o,"/").concat(e):o;return(this.clientConfig.gradientMode?i:"/data".concat(i)).replace(/\/($|\?)/,"$1")},fetch:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1===n.filterResponse?function(t){return t}:function(t){return t.result},o=this._dataRequest("query",{query:t,params:e},n).pipe(s(r));return this.isPromiseAPI()?b(o):o},getDocument:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",t),json:!0,tag:e.tag},r=this._requestObservable(n).pipe(i(y),s((function(t){return t.body.documents&&t.body.documents[0]})));return this.isPromiseAPI()?b(r):r},getDocuments:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",t.join(",")),json:!0,tag:e.tag},r=this._requestObservable(n).pipe(i(y),s((function(e){var n=m(e.body.documents||[],(function(t){return t._id}));return t.map((function(t){return n[t]||null}))})));return this.isPromiseAPI()?b(r):r},create:function(t,e){return this._create(t,"create",e)},createIfNotExists:function(t,e){return a.requireDocumentId("createIfNotExists",t),this._create(t,"createIfNotExists",e)},createOrReplace:function(t,e){return a.requireDocumentId("createOrReplace",t),this._create(t,"createOrReplace",e)},patch:function(t,e){return new f(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:c(t)}]},e)},mutate:function(t,e){var n=t instanceof f||t instanceof l?t.serialize():t,r=Array.isArray(n)?n:[n],o=e&&e.transactionId;return this.dataRequest("mutate",{mutations:r,transactionId:o},e)},transaction:function(t){return new l(t,this)},dataRequest:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._dataRequest(t,e,n);return this.isPromiseAPI()?b(r):r},_dataRequest:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===t,a="query"===t,c=!o&&u(e),l=!o&&c.length<11264,f=l?c:"",p=n.returnFirst,h=n.timeout,m=n.token,b=n.tag,g=this.getDataUrl(t,f),w={method:l?"GET":"POST",uri:g,json:!0,body:l?void 0:e,query:o&&d(n),timeout:h,token:m,tag:b,canUseCdn:a};return this._requestObservable(w).pipe(i(y),s(v),s((function(t){if(!o)return t;var e=t.results||[];if(n.returnDocuments)return p?e[0]&&e[0].document:e.map((function(t){return t.document}));var i=p?"documentId":"documentIds",s=p?e[0]&&e[0].id:e.map((function(t){return t.id}));return r({transactionId:t.transactionId,results:e},i,s)})))},_create:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r({},e,t),s=o({returnFirst:!0,returnDocuments:!0},n);return this.dataRequest("mutate",{mutations:[i]},s)}}},rHvv:function(t,e,n){"use strict";t.exports=function(t,e){return Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return n[r]="undefined"===typeof t[r]?e[r]:t[r],n}),{})}},"s+BN":function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n("I97X"),i=n("Qetd"),s=n("LMKn"),a=n("VmPP"),c=a.validateObject,u=a.validateInsert;function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=t,this.operations=i({},e),this.client=n}i(l.prototype,{clone:function(){return new l(this.selection,i({},this.operations),this.client)},merge:function(t){c("merge",t);var e=(new Error).stack.toString().split("\n").filter((function(t){return t.trim()})).slice(2);return console.warn('The "merge" patch has been deprecated and will be removed in the future\n'.concat(e.join("\n"))),this._assign("merge",o(this.operations.merge||{},t))},set:function(t){return this._assign("set",t)},diffMatchPatch:function(t){return c("diffMatchPatch",t),this._assign("diffMatchPatch",t)},unset:function(t){if(!Array.isArray(t))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=i({},this.operations,{unset:t}),this},setIfMissing:function(t){return this._assign("setIfMissing",t)},replace:function(t){return c("replace",t),this._set("set",{$:t})},inc:function(t){return this._assign("inc",t)},dec:function(t){return this._assign("dec",t)},insert:function(t,e,n){var o;return u(t,e,n),this._assign("insert",(r(o={},t,e),r(o,"items",n),o))},append:function(t,e){return this.insert("after","".concat(t,"[-1]"),e)},prepend:function(t,e){return this.insert("before","".concat(t,"[0]"),e)},splice:function(t,e,n,r){var o=e<0?e-1:e,i="undefined"===typeof n||-1===n?-1:Math.max(0,e+n),s=o<0&&i>=0?"":i,a="".concat(t,"[").concat(o,":").concat(s,"]");return this.insert("replace",a,r||[])},ifRevisionId:function(t){return this.operations.ifRevisionID=t,this},serialize:function(){return i(s(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw new Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var e="string"===typeof this.selection,n=i({returnFirst:e,returnDocuments:!0},t);return this.client.mutate({patch:this.serialize()},n)},reset:function(){return this.operations={},this},_set:function(t,e){return this._assign(t,e,!1)},_assign:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return c(t,e),this.operations=i({},this.operations,r({},t,i({},n&&this.operations[t]||{},e))),this}}),t.exports=l},s4NR:function(t,e,n){"use strict";e.decode=e.parse=n("kd2E"),e.encode=e.stringify=n("4JlD")},ueIO:function(t,e,n){"use strict";var r=n("Qetd");function o(t){return Boolean(t.listItem)}function i(t,e){return t.level===e.level&&t.listItem===e.listItem}function s(t){return{_type:"list",_key:"".concat(t._key,"-parent"),level:t.level,listItem:t.listItem,children:[t]}}function a(t){return t.children&&t.children[t.children.length-1]}function c(t,e){var n="string"===typeof e.listItem;if("list"===t._type&&t.level===e.level&&n&&t.listItem===e.listItem)return t;var r=a(t);return!!r&&c(r,e)}t.exports=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html",u=[],l=0;l<t.length;l++){var f=t[l];if(o(f))if(e)if(i(f,e))e.children.push(f);else if(f.level>e.level){var p=s(f);if("html"===n){var h=a(e),d=r({},h,{children:h.children.concat(p)});e.children[e.children.length-1]=d}else e.children.push(p);e=p}else if(f.level<e.level){var y=c(u[u.length-1],f);if(y){(e=y).children.push(f);continue}e=s(f),u.push(e)}else if(f.listItem===e.listItem)console.warn("Unknown state encountered for block",f),u.push(f);else{var v=c(u[u.length-1],{level:f.level});if(v&&v.listItem===f.listItem){(e=v).children.push(f);continue}e=s(f),u.push(e)}else e=s(f),u.push(e);else u.push(f),e=null}return u}},vHaw:function(t,e,n){"use strict";function r(t){this.client=t}n("Qetd")(r.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),t.exports=r},"vrE+":function(t,e,n){"use strict";var r=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();
1Object.defineProperty(e,"__esModule",{value:!0});var o=n("FWf1");e.scan=function(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new i(t,e,n))}};var i=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return r(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},"wH9+":function(t,e,n){t.exports=n("c8+P")},xHEm:function(t,e,n){"use strict";var r=n("wH9+"),o=n("Qetd"),i=n("h1JA"),s=n("8Uid"),a=n("RfbL"),c=n("0j7I"),u=n("kLGu"),l=n("MB/A"),f=l.ClientError,p=l.ServerError,h={onResponse:function(t){if(t.statusCode>=500)throw new p(t);if(t.statusCode>=400)throw new f(t);return t}},d={onResponse:function(t){var e=t.headers["x-sanity-warning"];return(Array.isArray(e)?e:[e]).filter(Boolean).forEach((function(t){return console.warn(t)})),t}},y=r(n("i6MQ").concat([d,s(),a(),c(),h,i({implementation:u})]));function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return e(o({maxRedirects:0},t))}v.defaultRequester=y,v.ClientError=f,v.ServerError=p,t.exports=v},xM0z:function(t,e,n){"use strict";var r=n("Qetd");function o(t){var e=0,n=t.length;if(0===n)return e;for(var r=0;r<n;r++)e=(e<<5)-e+t.charCodeAt(r),e&=e;return e}t.exports=function(t){return t.map((function(t){return t._key?t:r({_key:(e=t,o(JSON.stringify(e)).toString(36).replace(/[^A-Za-z0-9]/g,""))},t);var e}))}},"xhG/":function(t,e,n){"use strict";var r=["tag"];function o(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var i=encodeURIComponent;t.exports=function(t){var e=t.query,n=t.params,s=void 0===n?{}:n,a=t.options,c=void 0===a?{}:a,u=c.tag,l=o(c,r),f="query=".concat(i(e)),p=u?"?tag=".concat(i(u),"&").concat(f):"?".concat(f),h=Object.keys(s).reduce((function(t,e){return"".concat(t,"&").concat(i("$".concat(e)),"=").concat(i(JSON.stringify(s[e])))}),p);return Object.keys(l).reduce((function(t,e){return c[e]?"".concat(t,"&").concat(i(e),"=").concat(i(c[e])):t}),h)}},yoF8:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=function(t){return t}},yx2s:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("FWf1");e.canReportError=function(t){for(;t;){var e=t,n=e.closed,o=e.destination,i=e.isStopped;if(n||i)return!1;t=o&&o instanceof r.Subscriber?o:null}return!0}},"zB/H":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("mbIT"),o=n("GMZp"),i=n("pshJ"),s=n("LBXl"),a=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,a=n._parentOrParents,u=n._ctorUnsubscribe,l=n._unsubscribe,f=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof t)a.remove(this);else if(null!==a)for(var p=0;p<a.length;++p){a[p].remove(this)}if(i.isFunction(l)){u&&(this._unsubscribe=void 0);try{l.call(this)}catch(y){e=y instanceof s.UnsubscriptionError?c(y.errors):[y]}}if(r.isArray(f)){p=-1;for(var h=f.length;++p<h;){var d=f[p];if(o.isObject(d))try{d.unsubscribe()}catch(y){e=e||[],y instanceof s.UnsubscriptionError?e=e.concat(c(y.errors)):e.push(y)}}}if(e)throw new s.UnsubscriptionError(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!==typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof t){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(t){return t.reduce((function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=a},zfKp:function(t,e,n){"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.observable="function"===typeof Symbol&&Symbol.observable||"@@observable"}},[["oKRs",0,1,2,3,4]]]);

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.