1/*! For license information please see LICENSES */ 2(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{426:function(t,e,r){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,source){for(var e,r,f=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),s=1;s<arguments.length;s++){for(var l in e=Object(arguments[s]))o.call(e,l)&&(f[l]=e[l]);if(n){r=n(e);for(var i=0;i<r.length;i++)c.call(e,r[i])&&(f[r[i]]=e[r[i]])}}return f}},469:function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=r(426),filter=r(495).filter,map=r(496).map,f=r(533),l=r(560),h=r(590),d=r(608),y=r(609),v=r(610),m=r(612),w=r(613),_=r(614),O=r(641),E=r(642),x=E.defaultConfig,j=E.initConfig,S=r(475);function P(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;if(!(this instanceof P))return new P(t);if(this.config(t),this.assets=new v(this),this.datasets=new d(this),this.projects=new y(this),this.users=new m(this),this.auth=new w(this),this.clientConfig.isPromiseAPI){var e=c({},this.clientConfig,{isPromiseAPI:!1});this.observable=new P(e)}}c(P.prototype,h),c(P.prototype,{clone:function(){return new P(this.config())},config:function(t){if(void 0===t)return c({},this.clientConfig);if(this.observable){var e=c({},t,{isPromiseAPI:!1});this.observable.config(e)}return this.clientConfig=j(t,this.clientConfig||{}),this},withConfig:function(t){return this.clone().config(t)},getUrl:function(t){var base=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(base,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=t.url||t.uri,r=void 0===t.canUseCdn?["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===e.indexOf("/data/"):t.canUseCdn,f=this.clientConfig.useCdn&&r,l=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;l&&(t.query=function(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?n(Object(source),!0).forEach((function(e){o(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}({tag:S.requestTag(l)},t.query));var h=O(this.clientConfig,c({},t,{url:this.getUrl(e,f)}));return _(h,this.clientConfig.requester)},request:function(t){var e=this._requestObservable(t).pipe(filter((function(t){return"response"===t.type})),map((function(t){return t.body})));return this.isPromiseAPI()?function(t){return t.toPromise()}(e):e}}),P.Patch=f,P.Transaction=l,P.ClientError=_.ClientError,P.ServerError=_.ServerError,P.requester=_.defaultRequester,t.exports=P},474:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(555),f=r(556),l=r(583),h=r(558),d=r(532),y=r(557),v=function(t){function e(r,n,o){var c=t.call(this)||this;switch(c.syncErrorValue=null,c.syncErrorThrown=!1,c.syncErrorThrowable=!1,c.isStopped=!1,arguments.length){case 0:c.destination=f.empty;break;case 1:if(!r){c.destination=f.empty;break}if("object"==typeof r){r instanceof e?(c.syncErrorThrowable=r.syncErrorThrowable,c.destination=r,r.add(c)):(c.syncErrorThrowable=!0,c.destination=new m(c,r));break}default:c.syncErrorThrowable=!0,c.destination=new m(c,r,n,o)}return c}return o(e,t),e.prototype[h.rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);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}(l.Subscription);e.Subscriber=v;var m=function(t){function e(e,r,n,o){var l,h=t.call(this)||this;h._parentSubscriber=e;var d=h;return c.isFunction(r)?l=r:r&&(l=r.next,n=r.error,o=r.complete,r!==f.empty&&(d=Object.create(r),c.isFunction(d.unsubscribe)&&h.add(d.unsubscribe.bind(d)),d.unsubscribe=h.unsubscribe.bind(h))),h._context=d,h._next=l,h._error=n,h._complete=o,h}return o(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;d.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,r=d.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):y.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;y.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};d.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),d.config.useDeprecatedSynchronousErrorHandling)throw t;y.hostReportError(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!d.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,r)}catch(e){return d.config.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(y.hostReportError(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(v);e.SafeSubscriber=m},475:function(t,e,r){"use strict";function n(t){return n="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},n(t)}var o=["image","file"],c=["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"!==n(e)||Array.isArray(e))throw new Error("".concat(t,"() takes an object of properties"))},e.requireDocumentId=function(t,r){if(!r._id)throw new Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));e.validateDocumentId(t,r._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,r){var n="insert(at, selector, items)";if(-1===c.indexOf(t)){var o=c.map((function(t){return'"'.concat(t,'"')})).join(", ");throw new Error("".concat(n,' takes an "at"-argument which is one of: ').concat(o))}if("string"!=typeof e)throw new Error("".concat(n,' takes a "selector"-argument which must be a string'));if(!Array.isArray(r))throw new Error("".concat(n,' takes an "items"-argument which must be an array'))},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}},495:function(t,e,r){e.filter=r(582).filter},496:function(t,e,r){e.map=r(587).map},532:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var n=!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 n&&console.log("RxJS: Back to a better error behavior. Thank you. <3");n=t},get useDeprecatedSynchronousErrorHandling(){return n}}},533:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(588),c=r(426),f=r(559),l=r(475),h=l.validateObject,d=l.validateInsert;function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=t,this.operations=c({},e),this.client=r}c(y.prototype,{clone:function(){return new y(this.selection,c({},this.operations),this.client)},merge:function(t){h("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 h("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=c({},this.operations,{unset:t}),this},setIfMissing:function(t){return this._assign("setIfMissing",t)},replace:function(t){return h("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,r){var o;return d(t,e,r),this._assign("insert",(n(o={},t,e),n(o,"items",r),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,r,n){var o=e<0?e-1:e,c=void 0===r||-1===r?-1:Math.max(0,e+r),f=o<0&&c>=0?"":c,l="".concat(t,"[").concat(o,":").concat(f,"]");return this.insert("replace",l,n||[])},ifRevisionId:function(t){return this.operations.ifRevisionID=t,this},serialize:function(){return c(f(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,r=c({returnFirst:e,returnDocuments:!0},t);return this.client.mutate({patch:this.serialize()},r)},reset:function(){return this.operations={},this},_set:function(t,e){return this._assign(t,e,!1)},_assign:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return h(t,e),this.operations=c({},this.operations,n({},t,c({},r&&this.operations[t]||{},e))),this}}),t.exports=y},534:function(t,e){t.exports=function(t){return"https://docs.sanity.io/help/"+t}},555:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"==typeof t}},556:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(532),o=r(557);e.empty={closed:!0,next:function(t){},error:function(t){if(n.config.useDeprecatedSynchronousErrorHandling)throw t;o.hostReportError(t)},complete:function(){}}},557:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout((function(){throw t}),0)}},558:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},559:function(t,e,r){"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))}},560:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(426),c=r(475),f=r(533),l={returnDocuments:!1};function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;this.trxId=r,this.operations=t,this.client=e}o(h.prototype,{clone:function(){return new h(this.operations.slice(0),this.client,this.trxId)},create:function(t){return c.validateObject("create",t),this._add({create:t})},createIfNotExists:function(t){var e="createIfNotExists";return c.validateObject(e,t),c.requireDocumentId(e,t),this._add(n({},e,t))},createOrReplace:function(t){var e="createOrReplace";return c.validateObject(e,t),c.requireDocumentId(e,t),this._add(n({},e,t))},delete:function(t){return c.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var r="function"==typeof e;if(t instanceof f)return this._add({patch:t.serialize()});if(r){var n=e(new f(t,{},this.client));if(!(n instanceof f))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:n.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},l,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=h},561:function(t,e,r){"use strict";var n=["tag"];function o(source,t){if(null==source)return{};var e,i,r=function(source,t){if(null==source)return{};var e,i,r={},n=Object.keys(source);for(i=0;i<n.length;i++)e=n[i],t.indexOf(e)>=0||(r[e]=source[e]);return r}(source,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(source);for(i=0;i<n.length;i++)e=n[i],t.indexOf(e)>=0||Object.prototype.propertyIsEnumerable.call(source,e)&&(r[e]=source[e])}return r}var c=encodeURIComponent;t.exports=function(t){var e=t.query,r=t.params,f=void 0===r?{}:r,l=t.options,h=void 0===l?{}:l,d=h.tag,y=o(h,n),q="query=".concat(c(e)),base=d?"?tag=".concat(c(d),"&").concat(q):"?".concat(q),v=Object.keys(f).reduce((function(t,param){return"".concat(t,"&").concat(c("$".concat(param)),"=").concat(c(JSON.stringify(f[param])))}),base);return Object.keys(y).reduce((function(t,option){return h[option]?"".concat(t,"&").concat(c(option),"=").concat(c(h[option])):t}),v)}},562:function(t,e,r){t.exports=r(592)},563:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0});var n=r(593),o=r(594),c=r(595),f=r(564),l=r(532),h=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,c=o.toSubscriber(t,e,r);if(n?c.add(n.call(c,this.source)):c.add(this.source||l.config.useDeprecatedSynchronousErrorHandling&&!c.syncErrorThrowable?this._subscribe(c):this._trySubscribe(c)),l.config.useDeprecatedSynchronousErrorHandling&&c.syncErrorThrowable&&(c.syncErrorThrowable=!1,c.syncErrorThrown))throw c.syncErrorValue;return c},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),n.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=d(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(t){n(t),o&&o.unsubscribe()}}),n,e)}))},t.prototype._subscribe=function(t){var source=this.source;return source&&source.subscribe(t)},t.prototype[c.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:f.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=d(t))((function(t,r){var n;e.subscribe((function(t){return n=t}),(function(t){return r(t)}),(function(){return t(n)}))}))},t.create=function(e){return new t(e)},t}();function d(t){if(t||(t=l.config.Promise||Promise),!t)throw new Error("no Promise impl found");return t}e.Observable=h},564:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(596);function o(t){return 0===t.length?n.identity:1===t.length?t[0]:function(input){return t.reduce((function(t,e){return e(t)}),input)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)},e.pipeFromArray=o},565:function(t,e,r){"use strict";t.exports=function(t){var e,r=!1;return function(){return r||(e=t.apply(void 0,arguments),r=!0),e}}},582:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(474);e.filter=function(t,e){return function(source){return source.lift(new f(t,e))}};var f=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,source){return source.subscribe(new l(t,this.predicate,this.thisArg))},t}(),l=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.predicate=r,o.thisArg=n,o.count=0,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(c.Subscriber)},583:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(584),o=r(585),c=r(555),f=r(586),l=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 r=this,l=r._parentOrParents,d=r._ctorUnsubscribe,y=r._unsubscribe,v=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,l instanceof t)l.remove(this);else if(null!==l)for(var m=0;m<l.length;++m){l[m].remove(this)}if(c.isFunction(y)){d&&(this._unsubscribe=void 0);try{y.call(this)}catch(t){e=t instanceof f.UnsubscriptionError?h(t.errors):[t]}}if(n.isArray(v)){m=-1;for(var w=v.length;++m<w;){var sub=v[m];if(o.isObject(sub))try{sub.unsubscribe()}catch(t){e=e||[],t instanceof f.UnsubscriptionError?e=e.concat(h(t.errors)):e.push(t)}}}if(e)throw new f.UnsubscriptionError(e)}},t.prototype.add=function(e){var r=e;if(!e)return t.EMPTY;switch(typeof e){case"function":r=new t(e);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof t)){var n=r;(r=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof t){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var c=this._subscriptions;return null===c?this._subscriptions=[r]:c.push(r),r},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function h(t){return t.reduce((function(t,e){return t.concat(e instanceof f.UnsubscriptionError?e.errors:e)}),[])}e.Subscription=l},584:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},585:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"==typeof t}},586:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,i){return i+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();e.UnsubscriptionError=n},587:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(474);e.map=function(t,e){return function(source){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return source.lift(new f(t,e))}};var f=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,source){return source.subscribe(new l(t,this.project,this.thisArg))},t}();e.MapOperator=f;var l=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.project=r,o.count=0,o.thisArg=n||o,o}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(c.Subscriber)},588:function(t,e,r){"use strict";var n=r(589),o=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;function f(t,e,r){var c=e[r];
2if(null!=c){if(o.call(t,r)&&(void 0===t[r]||null===t[r]))throw new TypeError("Cannot convert undefined or null to object ("+r+")");o.call(t,r)&&n(c)?t[r]=l(Object(t[r]),e[r]):t[r]=c}}function l(t,e){if(t===e)return t;for(var r in e=Object(e))o.call(e,r)&&f(t,e,r);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),i=0;i<n.length;i++)c.call(e,n[i])&&f(t,e,n[i]);return t}t.exports=function(t){t=function(t){if(null==t)throw new TypeError("Sources cannot be null or undefined");return Object(t)}(t);for(var s=1;s<arguments.length;s++)l(t,arguments[s]);return t}},589:function(t,e,r){"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},590:function(t,e,r){"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(426),filter=r(495).filter,map=r(496).map,c=r(475),f=r(559),l=r(561),h=r(560),d=r(533),y=r(591),v=function(param,t){return!1===param?void 0:void 0===param?t:param},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:v(t.returnDocuments,!0),visibility:t.visibility||"sync"}},w=function(t){return"response"===t.type},_=function(t){return t.body},O=function(t,e){return t.reduce((function(t,r){return t[e(r)]=r,t}),Object.create(null))},E=function(t){return t.toPromise()},x=11264;t.exports={listen:y,getDataUrl:function(t,path){var e=this.clientConfig,r=e.gradientMode?e.namespace:c.hasDataset(e),n="/".concat(t,"/").concat(r),o=path?"".concat(n,"/").concat(path):n;return(this.clientConfig.gradientMode?o:"/data".concat(o)).replace(/\/($|\?)/,"$1")},fetch:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!1===r.filterResponse?function(t){return t}:function(t){return t.result},o=this._dataRequest("query",{query:t,params:e},r).pipe(map(n));return this.isPromiseAPI()?E(o):o},getDocument:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(filter(w),map((function(t){return t.body.documents&&t.body.documents[0]})));return this.isPromiseAPI()?E(n):n},getDocuments:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t.join(",")),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(filter(w),map((function(e){var r=O(e.body.documents||[],(function(t){return t._id}));return t.map((function(t){return r[t]||null}))})));return this.isPromiseAPI()?E(n):n},create:function(t,e){return this._create(t,"create",e)},createIfNotExists:function(t,e){return c.requireDocumentId("createIfNotExists",t),this._create(t,"createIfNotExists",e)},createOrReplace:function(t,e){return c.requireDocumentId("createOrReplace",t),this._create(t,"createOrReplace",e)},patch:function(t,e){return new d(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:f(t)}]},e)},mutate:function(t,e){var r=t instanceof d||t instanceof h?t.serialize():t,n=Array.isArray(r)?r:[r],o=e&&e.transactionId;return this.dataRequest("mutate",{mutations:n,transactionId:o},e)},transaction:function(t){return new h(t,this)},dataRequest:function(t,body){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._dataRequest(t,body,e);return this.isPromiseAPI()?E(r):r},_dataRequest:function(t,body){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="mutate"===t,o="query"===t,c=!r&&l(body),f=!r&&c.length<x,h=f?c:"",d=e.returnFirst,y=e.timeout,v=e.token,O=e.tag,E={method:f?"GET":"POST",uri:this.getDataUrl(t,h),json:!0,body:f?void 0:body,query:r&&m(e),timeout:y,token:v,tag:O,canUseCdn:o};return this._requestObservable(E).pipe(filter(w),map(_),map((function(t){if(!r)return t;var o=t.results||[];if(e.returnDocuments)return d?o[0]&&o[0].document:o.map((function(t){return t.document}));var c=d?"documentId":"documentIds",f=d?o[0]&&o[0].id:o.map((function(t){return t.id}));return n({transactionId:t.transactionId,results:o},c,f)})))},_create:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=n({},e,t),f=o({returnFirst:!0,returnDocuments:!0},r);return this.dataRequest("mutate",{mutations:[c]},f)}}},591:function(t,e,r){"use strict";function n(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function o(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};
2i%2?n(Object(source),!0).forEach((function(e){c(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):n(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var f=r(426),l=r(562),h=r(604),d=r(534),y=r(606),v=r(565),m=r(607),w=r(561),_=14800,O=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(d("js-client-listener-tokens-browser"),".")],E=v((function(){return console.warn(O.join(" "))})),x=Boolean("undefined"!=typeof window&&window.EventSource),j=x?window.EventSource:h,S=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],P={includeResult:!0};function T(t){try{var data=t.data&&JSON.parse(t.data)||{};return f({type:t.type},data)}catch(t){return t}}t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.clientConfig,c=n.url,f=n.token,h=n.withCredentials,d=n.requestTagPrefix,v=r.tag&&d?[d,r.tag].join("."):r.tag,O=o(o({},m(r,P)),{},{tag:v}),C=y(O,S),I=w({query:t,params:e,options:C,tag:v}),A="".concat(c).concat(this.getDataUrl("listen",I));if(A.length>_)return new l((function(t){return t.error(new Error("Query too large for listener"))}));var R=O.events?O.events:["mutation"],D=-1!==R.indexOf("reconnect");f&&x&&E();var k={};return(f||h)&&(k.withCredentials=!0),f&&(k.headers={Authorization:"Bearer ".concat(f)}),new l((function(t){var e,r=d(),n=!1;function o(){n||(D&&t.next({type:"reconnect"}),n||r.readyState===j.CLOSED&&(h(),clearTimeout(e),e=setTimeout(y,100)))}function c(e){t.error(function(t){if(t instanceof Error)return t;var e=T(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))}(e))}function f(e){var r=T(e);return r instanceof Error?t.error(r):t.next(r)}function l(e){n=!0,h(),t.complete()}function h(){r.removeEventListener("error",o,!1),r.removeEventListener("channelError",c,!1),r.removeEventListener("disconnect",l,!1),R.forEach((function(t){return r.removeEventListener(t,f,!1)})),r.close()}function d(){var t=new j(A,k);return t.addEventListener("error",o,!1),t.addEventListener("channelError",c,!1),t.addEventListener("disconnect",l,!1),R.forEach((function(e){return t.addEventListener(e,f,!1)})),t}function y(){r=d()}return function(){n=!0,h()}}))}},592:function(t,e,r){"use strict";var n=r(563).Observable,o=r(426),map=r(496).map,filter=r(495).filter,c=r(597).reduce;function f(){n.apply(this,arguments)}function l(t,e){var r=!1;return function(){return r||(r=!0,console.warn(new Error("Calling observable.".concat(t,"(...) is deprecated. Please use observable.pipe(").concat(t,"(...)) instead")))),this.pipe(e.apply(this,arguments))}}f.prototype=Object.create(o(Object.create(null),n.prototype)),Object.defineProperty(f.prototype,"constructor",{value:f,enumerable:!1,writable:!0,configurable:!0}),f.prototype.lift=function(t){var e=new f;return e.source=this,e.operator=t,e},f.prototype.map=l("map",map),f.prototype.filter=l("filter",filter),f.prototype.reduce=l("filter",c),t.exports=f},593:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(474);e.canReportError=function(t){for(;t;){var e=t,r=e.closed,o=e.destination,c=e.isStopped;if(r||c)return!1;t=o&&o instanceof n.Subscriber?o:null}return!0}},594:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(474),o=r(558),c=r(556);e.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(c.empty)}},595:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},596:function(t,e,r){"use strict";
2Object.defineProperty(e,"__esModule",{value:!0}),e.identity=function(t){return t}},597:function(t,e,r){e.reduce=r(598).reduce},598:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(599),o=r(600),c=r(603),f=r(564);e.reduce=function(t,e){return arguments.length>=2?function(source){return f.pipe(n.scan(t,e),o.takeLast(1),c.defaultIfEmpty(e))(source)}:function(source){return f.pipe(n.scan((function(e,r,n){return t(e,r,n+1)})),o.takeLast(1))(source)}}},599:function(t,e,r){"use strict";var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(474);e.scan=function(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(source){return source.lift(new f(t,e,r))}};var f=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,source){return source.subscribe(new l(t,this.accumulator,this.seed,this.hasSeed))},t}(),l=function(t){function e(e,r,n,o){var c=t.call(this,e)||this;return c.accumulator=r,c._seed=n,c.hasSeed=o,c.index=0,c}return o(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,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(c.Subscriber)},600:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(474),f=r(601),l=r(602);e.takeLast=function(t){return function(source){return 0===t?l.empty():source.lift(new h(t))}};var h=function(){function t(t){if(this.total=t,this.total<0)throw new f.ArgumentOutOfRangeError}return t.prototype.call=function(t,source){return source.subscribe(new d(t,this.total))},t}(),d=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=new Array,n.count=0,n}return o(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i<r;i++){var o=e++%r;t.next(n[o])}t.complete()},e}(c.Subscriber)},601:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=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=n},602:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(563);e.EMPTY=new n.Observable((function(t){return t.complete()})),e.empty=function(t){return t?function(t){return new n.Observable((function(e){return t.schedule((function(){return e.complete()}))}))}(t):e.EMPTY}},603:function(t,e,r){"use strict";
2var n,o=this&&this.__extends||(n=function(t,b){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,b){t.__proto__=b}||function(t,b){for(var p in b)b.hasOwnProperty(p)&&(t[p]=b[p])},n(t,b)},function(t,b){function e(){this.constructor=t}n(t,b),t.prototype=null===b?Object.create(b):(e.prototype=b.prototype,new e)});Object.defineProperty(e,"__esModule",{value:!0});var c=r(474);e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(source){return source.lift(new f(t))}};var f=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,source){return source.subscribe(new l(t,this.defaultValue))},t}(),l=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return o(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}(c.Subscriber)},604:function(t,e,r){var n=r(605);t.exports="undefined"!=typeof window&&window.EventSource?window.EventSource:n.EventSource},605:function(t,e,r){var n,o,c;"undefined"==typeof self||self,o=[],void 0===(c="function"==typeof(n=function(){var t=function(t,e){if(!t||"string"!=typeof t)throw new SyntaxError("Not enough arguments");this.URL=t,this.setOptions(e);var r=this;setTimeout((function(){r.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 option,e=this.defaultOptions;for(option in e)e.hasOwnProperty(option)&&(this[option]=e[option]);for(option in t)option in e&&t.hasOwnProperty(option)&&(this[option]=t[option]);this.getArgs&&this.bufferSizeLimit&&(this.getArgs.evs_buffer_size_limit=this.bufferSizeLimit),"undefined"!=typeof console&&void 0!==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.OPEN,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 r=this.lastMessageIndex(e);if(r[0]>=this.cursor){var n=r[1],o=e.substring(this.cursor,n);this.parseStream(o),this.cursor=n}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 i,e,n,o,line,c,f=(t=this.cache+this.normalizeToLF(t)).split("\n\n");for(i=0;i<f.length-1;i++){n="message",o=[];var l=f[i].split("\n");for(e=0;e<l.length;e++)0==(line=this.trimWhiteSpace(l[e])).indexOf("event")?n=line.replace(/event:?\s*/,""):0==line.indexOf("retry")?(c=parseInt(line.replace(/retry:?\s*/,""),10),isNaN(c)||(this.interval=c)):0==line.indexOf("data")?o.push(line.replace(/data:?\s*/,"")):0==line.indexOf("id:")?this.lastEventId=line.replace(/id:?\s*/,""):0==line.indexOf("id")&&(this.lastEventId=null);if(o.length&&this.readyState!=this.CLOSED){var h=new r(n,o.join("\n"),"undefined"!=typeof window&&void 0!==window.location?window.location.origin:null,this.lastEventId);this.dispatchEvent(n,h)}}this.cache=f[f.length-1]},dispatchEvent:function(t,e){var r=this["_"+t+"Handlers"];if(r)for(var i=0;i<r.length;i++)r[i].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 r=this["_"+t+"Handlers"];if(r)for(var i=r.length-1;i>=0;--i)if(r[i]===e){r.splice(i,1);break}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",curs
2or:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(t,e){var r=[];if(e){var n,o,c=encodeURIComponent;for(n in e)e.hasOwnProperty(n)&&(o=c(n)+"="+c(e[n]),r.push(o))}return r.length>0?-1==t.indexOf("?")?t+"?"+r.join("&"):t+"&"+r.join("&"):t},lastMessageIndex:function(text){var t=text.lastIndexOf("\n\n"),e=text.lastIndexOf("\r\r"),r=text.lastIndexOf("\r\n\r\n");return r>Math.max(t,e)?[r,r+4]:[Math.max(t,e),Math.max(t,e)+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")}},n()){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 r={};if(t.getArgs){var n=t.getArgs;for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);t.lastEventId&&(r.evs_last_event_id=t.lastEventId)}e.open("GET",t.urlWithParams(t.URL,r)),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(t){}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 r=t.xhrHeaders;for(var header in r)r.hasOwnProperty(header)&&e.setRequestHeader(header,r[header]);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(t){}return t},abort:function(){this._request&&this._request.abort()}};function r(t,data,e,r){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=data||null,this.origin=e||"",this.lastEventId=r||"",this.type=t||"message"}function n(){return Boolean("undefined"!=typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType)}return t})?n.apply(e,o):n)||(t.exports=c)},606:function(t,e,r){"use strict";t.exports=function(t,e){return e.reduce((function(e,r){return void 0===t[r]||(e[r]=t[r]),e}),{})}},607:function(t,e,r){"use strict";t.exports=function(t,e){return Object.keys(e).concat(Object.keys(t)).reduce((function(r,n){return r[n]=void 0===t[n]?e[n]:t[n],r}),{})}},608:function(t,e,r){"use strict";var n=r(426),o=r(475);function c(t){this.request=t.request.bind(t)}n(c.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,body){return o.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:body})}}),t.exports=c},609:function(t,e,r){"use strict";function n(t){this.client=t}r(426)(n.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=n},610:function(t,e,r){"use strict";function n(t,i){return function(t){if(Array.isArray(t))return t}(t)||function(t,i){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var r,n,o=[],c=!0,f=!1;try{for(e=e.call(t);!(c=(r=e.next()).done)&&(o.push(r.value),!i||o.length!==i);c=!0);}catch(t){f=!0,n=t}finally{try{c||null==e.return||e.return()}finally{if(f)throw n}}return o}(t,i)||function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(t,e)}
2(t,i)||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 i=0,r=new Array(e);i<e;i++)r[i]=t[i];return r}var c=r(426),map=r(496).map,filter=r(495).filter,f=r(611),l=r(475);function h(t){this.client=t}c(h.prototype,{upload:function(t,body){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};l.validateAssetType(t);var meta=e.extract||void 0;meta&&!meta.length&&(meta=["none"]);var r=l.hasDataset(this.client.clientConfig),n="image"===t?"images":"files",o=function(t,e){return"undefined"!=typeof window&&e instanceof window.File?c({filename:!1===t.preserveFilename?void 0:e.name,contentType:e.type},t):t}(e,body),f=o.tag,label=o.label,title=o.title,h=o.description,d=o.creditLine,y=o.filename,source=o.source,v={label:label,title:title,description:h,filename:y,meta:meta,creditLine:d};source&&(v.sourceId=source.id,v.sourceName=source.name,v.sourceUrl=source.url);var m=this.client._requestObservable({tag:f,method:"POST",timeout:o.timeout||0,uri:"/assets/".concat(n,"/").concat(r),headers:o.contentType?{"Content-Type":o.contentType}:{},query:v,body:body});return this.client.isPromiseAPI()?m.pipe(filter((function(t){return"response"===t.type})),map((function(t){return function(body){var t=body.document;return Object.defineProperty(t,"document",{enumerable:!1,get:function(){return console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),t}}),t}(t.body)}))).toPromise():m},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var r=e||"";return/^(image|file)-/.test(r)?t._id&&(r=t._id):r="".concat(t,"-").concat(r),l.hasDataset(this.client.clientConfig),this.client.delete(r)},getImageUrl:function(t,e){var r=t._ref||t;if("string"!=typeof r)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(r))throw new Error('Unsupported asset ID "'.concat(r,'". URL generation only works for auto-generated IDs.'));var o=n(r.split("-"),4),c=o[1],h=o[2],d=o[3];l.hasDataset(this.client.clientConfig);var y=this.client.clientConfig,v=y.projectId,m=y.dataset,w=e?f(e):"";return"https://cdn.sanity.io/images/".concat(v,"/").concat(m,"/").concat(c,"-").concat(h,".").concat(d).concat(w)}}),t.exports=h},611:function(t,e,r){"use strict";t.exports=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t[r])));return e.length>0?"?".concat(e.join("&")):""}},612:function(t,e,r){"use strict";function n(t){this.client=t}r(426)(n.prototype,{getById:function(t){return this.client.request({uri:"/users/".concat(t)})}}),t.exports=n},613:function(t,e,r){"use strict";function n(t){this.client=t}r(426)(n.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),t.exports=n},614:function(t,e,r){"use strict";var n=r(615),o=r(426),c=r(630),f=r(632),l=r(635),progress=r(636),h=r(562),d=r(638),y=d.ClientError,v=d.ServerError,m={onResponse:function(t){if(t.statusCode>=500)throw new v(t);if(t.statusCode>=400)throw new y(t);return t}},w={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}},_=n(r(640).concat([w,f(),l(),progress(),m,c({implementation:h})]));function O(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:_)(o({maxRedirects:0},t))}O.defaultRequester=_,O.ClientError=y,O.ServerError=v,t.exports=O},615:function(t,e,r){t.exports=r(616)},616:function(t,e,r){"use strict";var n=r(617),o=r(618),c=r(619),f=r(623),l=r(624),h=["request","response","progress","error","abort"],d=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,y=[],v=d.reduce((function(t,e){return t[e]=t[e]||[],t}),{processOptions:[c],validateOptions:[f]});function m(t){var e=h.reduce((function(t,e){return t[e]=n(),t}),{}),c=o(v),f=c("processOptions",t);c("validateOptions",f);
2var l={options:f,channels:e,applyMiddleware:c},d=null,y=e.request.subscribe((function(t){d=r(t,(function(r,n){return function(t,r,n){var o=t,f=r;if(!o)try{f=c("onResponse",r,n)}catch(t){f=null,o=t}o=o&&c("onError",o,n),o?e.error.publish(o):f&&e.response.publish(f)}(r,n,t)}))}));e.abort.subscribe((function(){y(),d&&d.abort()}));var m=c("onReturn",e,l);return m===e&&e.request.publish(l),m}return m.use=function(t){if(!t)throw new Error("Tried to add middleware that resolved to falsey 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&&v.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 d.forEach((function(e){t[e]&&v[e].push(t[e])})),y.push(t),m},m.clone=function(){return t(y)},e.forEach(m.use),m}},617:function(t,e){t.exports=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}},publish:function(){for(var i=0;i<t.length;i++)t[i].apply(null,arguments)}}}},618:function(t,e,r){"use strict";t.exports=function(t){return function(e,r){for(var n=arguments.length,o=Array(n>2?n-2:0),c=2;c<n;c++)o[c-2]=arguments[c];for(var f="onError"===e,l=r,i=0;i<t[e].length;i++){if(l=t[e][i].apply(void 0,[l].concat(o)),f&&!l)break}return l}}},619:function(t,e,r){"use strict";var n=r(426),o=r(620),c="undefined"!=typeof navigator&&"ReactNative"===navigator.product,f=Object.prototype.hasOwnProperty,l={timeout:c?6e4:12e4};function h(t){var e=[];for(var r in t)f.call(t,r)&&n(r,t[r]);return e.length?e.join("&"):"";function n(t,r){Array.isArray(r)?r.forEach((function(e){return n(t,e)})):e.push([t,r].map(encodeURIComponent).join("="))}}function d(time){if(!1===time||0===time)return!1;if(time.connect||time.socket)return time;var t=Number(time);return isNaN(t)?d(l.timeout):{connect:t,socket:t}}t.exports=function(t){var e="string"==typeof t?n({url:t},l):n({},l,t),r=o(e.url,{},!0);return e.timeout=d(e.timeout),e.query&&(r.query=n({},r.query,function(t){var e={};for(var r in t)void 0!==t[r]&&(e[r]=t[r]);return e}(e.query))),e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e.url=r.toString(h),e}},620:function(t,e,r){"use strict";(function(e){var n=r(621),o=r(622),c=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,f=/[\n\r\t]/g,l=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,h=/:\d+$/,d=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,y=/^[a-zA-Z]:/;function v(t){return(t||"").toString().replace(c,"")}var m=[["#","hash"],["?","query"],function(address,t){return O(t.protocol)?address.replace(/\\/g,"/"):address},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],w={hash:1,query:1};function _(t){var r,n=("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{}).location||{},o={},c=typeof(t=t||n);if("blob:"===t.protocol)o=new x(unescape(t.pathname),{});else if("string"===c)for(r in o=new x(t,{}),w)delete o[r];else if("object"===c){for(r in t)r in w||(o[r]=t[r]);void 0===o.slashes&&(o.slashes=l.test(t.href))}return o}function O(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function E(address,t){address=(address=v(address)).replace(f,""),t=t||{};var e,r=d.exec(address),n=r[1]?r[1].toLowerCase():"",o=!!r[2],c=!!r[3],l=0;return o?c?(e=r[2]+r[3]+r[4],l=r[2].length+r[3].length):(e=r[2]+r[4],l=r[2].length):c?(e=r[3]+r[4],l=r[3].length):e=r[4],"file:"===n?l>=2&&(e=e.slice(2)):O(n)?e=r[4]:n?o&&(e=e.slice(2)):l>=2&&O(t.protocol)&&(e=r[4]),{protocol:n,slashes:o||O(n),slashesCount:l,rest:e}}function x(address,t,e){if(address=(address=v(address)).replace(f,""),!(this instanceof x))return new x(address,t,e);var r,c,l,h,d,w,j=m.slice(),S=typeof t,P=this,i=0;for("object"!==S&&"string"!==S&&(e=t,t=null),e&&"function"!=typeof e&&(e=o.parse),r=!(c=E(address||"",t=_(t))).protocol&&!c.slashes,P.slashes=c.slashes||r&&t.slashes,P.protocol=c.protocol||t.protocol||"",address=c.rest,("file:"===c.protocol&&(2!==c.slashesCount||y.test(address))||!c.slashes&&(c.protocol||c.slashesCount<2||!O(P.protocol)))&&(j[3]=[/(.*)/,"pathname"]);i<j.length;i++)"function"!=typeof(h=j[i])?(l=h[0],w=h[1],l!=l?P[w]=address:"string"==typeof l?~(d="@"===l?address.lastIndexOf(l):address.indexOf(l))&&("number"==typeof h[2]?(P[w]=address.slice(0,d),address=address.slice(d+h[2])):(P[w]=address.slice(d),address=address.slice(0,d))):(d=l.exec(address))&&(P[w]=d[1],address=address.slice(0,d.index)),P[w]=P[w]||r&&h[3]&&t[w]||"",h[4]&&(P[w]=P[w].toLowerCase())):address=h(address,P);e&&(P.query=e(P.query)),r&&t.slashes&&"/"!==P.pathname.charAt(0)&&(""!==P.pathname||""!==t.pathname)&&(P.pathname=function(t,base){if(""===t)return base;for(var path=(base||"/").split("/").slice(0,-1).concat(t.split("/")),i=path.length,e=path[i-1],r=!1,n=0;i--;)"."===path[i]?path.splice(i,1):".."===path[i]?(path.splice(i,1),n++):n&&(0===i&&(r=!0),path.splice(i,1),n--);return r&&path.unshift(""),"."!==e&&".."!==e||path.push(""),path.join("/")}(P.pathname,t.pathname)),"/"!==P.pathname.charAt(0)&&O(P.protocol)&&(P.pathname="/"+P.pathname),n(P.port,P.protocol)||(P.host=P.hostname,P.port=""),P.username=P.password="",P.auth&&(~(d=P.auth.indexOf(":"))?(P.username=P.auth.slice(0,d),P.username=encodeURIComponent(decodeURIComponent(P.username)),P.password=P.auth.slice(d+1),P.password=encodeURIComponent(decodeURIComponent(P.password))):P.username=encodeURIComponent(decodeURIComponent(P.auth)),P.auth=P.password?P.username+":"+P.password:P.username),P.origin="file:"!==P.protocol&&O(P.protocol)&&P.host?P.protocol+"//"+P.host:"null",P.href=P.toString()}x.prototype={set:function(t,e,r){var c=this;switch(t){case"query":"string"==typeof e&&e.length&&(e=(r||o.parse)(e)),c[t]=e;break;case"port":c[t]=e,n(e,c.protocol)?e&&(c.host=c.hostname+":"+e):(c.host=c.hostname,c[t]="");break;case"hostname":c[t]=e,c.port&&(e+=":"+c.port),c.host=e;break;case"host":c[t]=e,h.test(e)?(e=e.split(":"),c.port=e.pop(),c.hostname=e.join(":")):(c.hostname=e,c.port="");break;case"protocol":c.protocol=e.toLowerCase(),c.slashes=!r;break;case"pathname":case"hash":if(e){var f="pathname"===t?"/":"#";c[t]=e.charAt(0)!==f?f+e:e}else c[t]=e;break;case"username":case"password":c[t]=encodeURIComponent(e);break;case"auth":var l=e.indexOf(":");~l?(c.username=e.slice(0,l),c.username=encodeURIComponent(decodeURIComponent(c.username)),c.password=e.slice(l+1),c.password=encodeURIComponent(decodeURIComponent(c.password))):c.username=encodeURIComponent(decodeURIComponent(e))}for(var i=0;i<m.length;i++){var ins=m[i];ins[4]&&(c[ins[1]]=c[ins[1]].toLowerCase())}return c.auth=c.password?c.username+":"+c.password:c.username,c.origin="file:"!==c.protocol&&O(c.protocol)&&c.host?c.protocol+"//"+c.host:"null",c.href=c.toString(),c},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,r=this,n=r.host,c=r.protocol;c&&":"!==c.charAt(c.length-1)&&(c+=":");var f=c+(r.protocol&&r.slashes||O(r.protocol)?"//":"");return r.username?(f+=r.username,r.password&&(f+=":"+r.password),f+="@"):r.password?(f+=":"+r.password,f+="@"):"file:"!==r.protocol&&O(r.protocol)&&!n&&"/"!==r.pathname&&(f+="@"),(":"===n[n.length-1]||h.test(r.hostname)&&!r.port)&&(n+=":"),f+=n+r.pathname,(e="object"==typeof r.query?t(r.query):r.query)&&(f+="?"!==e.charAt(0)?"?"+e:e),r.hash&&(f+=r.hash),f}},x.extractProtocol=E,x.location=_,x.trimLeft=v,x.qs=o,t.exports=x}).call(this,r(52))},621:function(t,e,r){"use strict";
2t.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}},622:function(t,e,r){"use strict";var n,o=Object.prototype.hasOwnProperty;function c(input){try{return decodeURIComponent(input.replace(/\+/g," "))}catch(t){return null}}function f(input){try{return encodeURIComponent(input)}catch(t){return null}}e.stringify=function(t,e){e=e||"";var r,c,l=[];for(c in"string"!=typeof e&&(e="?"),t)if(o.call(t,c)){if((r=t[c])||null!==r&&r!==n&&!isNaN(r)||(r=""),c=f(c),r=f(r),null===c||null===r)continue;l.push(c+"="+r)}return l.length?e+l.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,n={};e=r.exec(t);){var o=c(e[1]),f=c(e[2]);null===o||null===f||o in n||(n[o]=f)}return n}},623:function(t,e,r){"use strict";var n=/^https?:\/\//i;t.exports=function(t){if(!n.test(t.url))throw new Error('"'+t.url+'" is not a valid URL')}},624:function(t,e,r){"use strict";t.exports=r(625)},625:function(t,e,r){"use strict";var n=r(626),o=r(628),c=r(629),f="undefined"==typeof window?void 0:window,l=f?"xhr":"fetch",h="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){},d="withCredentials"in new h,y="undefined"==typeof XDomainRequest?void 0:XDomainRequest,v=d?h:y;f||(h=c,v=c),t.exports=function(t,e){var r=t.options,c=t.applyMiddleware("finalizeOptions",r),d={},y=f&&f.location&&!n(f.location.href,c.url),m=t.applyMiddleware("interceptRequest",void 0,{adapter:l,context:t});if(m){var w=setTimeout(e,0,null,m);return{abort:function(){return clearTimeout(w)}}}var _=y?new v:new h,O=f&&f.XDomainRequest&&_ instanceof f.XDomainRequest,E=c.headers,x=c.timeout,j=!1,S=!1,P=!1;if(_.onerror=A,_.ontimeout=A,_.onabort=function(){j=!0},_.onprogress=function(){},_[O?"onload":"onreadystatechange"]=function(){!function(){if(!x)return;I(),d.socket=setTimeout((function(){return C("ESOCKETTIMEDOUT")}),x.socket)}(),j||4!==_.readyState&&!O||0!==_.status&&function(){if(j||S||P)return;if(0===_.status)return void A(new Error("Unknown XHR error"));I(),S=!0,e(null,function(){var t=_.status,e=_.statusText;if(O&&void 0===t)t=200;else{if(t>12e3&&t<12156)return A();t=1223===_.status?204:_.status,e=1223===_.status?"No Content":e}return{body:_.response||_.responseText,url:c.url,method:c.method,headers:O?{}:o(_.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}()},_.open(c.method,c.url,!0),_.withCredentials=!!c.withCredentials,E&&_.setRequestHeader)for(var T in E)E.hasOwnProperty(T)&&_.setRequestHeader(T,E[T]);else if(E&&O)throw new Error("Headers cannot be set on an XDomainRequest object");return c.rawBody&&(_.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:c,adapter:l,request:_,context:t}),_.send(c.body||null),x&&(d.connect=setTimeout((function(){return C("ETIMEDOUT")}),x.connect)),{abort:function(){j=!0,_&&_.abort()}};function C(code){P=!0,_.abort();var e=new Error("ESOCKETTIMEDOUT"===code?"Socket timed out on request to "+c.url:"Connection timed out on request to "+c.url);e.code=code,t.channels.error.publish(e)}function I(){(j||_.readyState>=2&&d.connect)&&clearTimeout(d.connect),d.socket&&clearTimeout(d.socket)}function A(t){if(!S){I(),S=!0,_=null;var r=t||new Error("Network error while attempting to reach "+c.url);r.isNetworkError=!0,r.request=c,e(r)}}}},626:function(t,e,r){"use strict";var n=r(627);t.exports=function(t,e,r){if(t===e)return!0;var o=n.parse(t,!1,!0),c=n.parse(e,!1,!0),f=0|o.port||("https"===o.protocol?443:80),l=0|c.port||("https"===c.protocol?443:80),h={proto:o.protocol===c.protocol,hostname:o.hostname===c.hostname,port:f===l};return h.proto&&h.hostname&&(h.port||r)}},627:function(t,e,r){"use strict";var n=/^(?:(?:(?:([^:\/#\?]+:)?(?:(?:\/\/)((?:((?:[^:@\/#\?]+)(?:\:(?:[^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((?:\/?(?:[^\/\?#]+\/+)*)(?:[^\?#]*)))?(\?[^#]+)?)(#.*)?/;t.exports={regex:n,parse:function(t){var e=n.exec(t);return e?{protocol:(e[1]||"").toLowerCase()||void 0,hostname:(e[5]||"").toLowerCase()||void 0,port:e[6]||void 0}:{}}}},628:function(t,e){var r=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var e,n={},o=r(t).split("\n"),i=0;i<o.length;i++){var c=o[i],f=c.indexOf(":"),l=r(c.slice(0,f)).toLowerCase(),h=r(c.slice(f+1));void 0===n[l]?n[l]=h:(e=n[l],"[object Array]"===Object.prototype.toString.call(e)?n[l].push(h):n[l]=[n[l],h])}return n}},629:function(t,e,r){"use strict";function n(){this.readyState=0}n.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},n.prototype.abort=function(){this._controller&&this._controller.abort()},n.prototype.getAllResponseHeaders=function(){return this._resHeaders},n.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},n.prototype.send=function(body){var t=this,e=this._controller="function"==typeof AbortController&&new AbortController,r="arraybuffer"!==this.responseType,n={method:this._method,headers:this._headers,signal:e&&e.signal,body:body};"undefined"!=typeof window&&(n.credentials=this.withCredentials?"include":"omit"),fetch(this._url,n).then((function(e){return e.headers.forEac
2h((function(e,r){t._resHeaders+=r+": "+e+"\r\n"})),t.status=e.status,t.statusText=e.statusText,t.readyState=3,r?e.text():e.arrayBuffer()})).then((function(e){r?t.responseText=e:t.response=e,t.readyState=4,t.onreadystatechange()})).catch((function(e){"AbortError"!==e.name?t.onerror(e):t.onabort()}))},t.exports=n},630:function(t,e,r){"use strict";var n=r(631),o=r(426);t.exports=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).implementation||n.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(e,r){return new t((function(t){return e.error.subscribe((function(e){return t.error(e)})),e.progress.subscribe((function(e){return t.next(o({type:"progress"},e))})),e.response.subscribe((function(e){t.next(o({type:"response"},e)),t.complete()})),e.request.publish(r),function(){return e.abort.publish()}}))}}}},631:function(t,e,r){"use strict";(function(e){"undefined"!=typeof window?t.exports=window:void 0!==e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(this,r(52))},632:function(t,e,r){"use strict";var n="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=r(426),c=r(633),f=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e,body=t.body;return body&&!("function"==typeof body.pipe)&&!((e=body).constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==f.indexOf(void 0===body?"undefined":n(body))||Array.isArray(body)||c(body))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t}}}},633:function(t,e,r){"use strict";var n=r(634);function o(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,r;return!1!==o(t)&&("function"==typeof(e=t.constructor)&&(!1!==o(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}},634:function(t,e,r){"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},635:function(t,e,r){"use strict";var n=r(426);function o(body){try{return JSON.parse(body)}catch(t){throw t.message="Failed to parsed response body as JSON: "+t.message,t}}t.exports=function(t){return{onResponse:function(e){var r=e.headers["content-type"]||"",c=t&&t.force||-1!==r.indexOf("application/json");return e.body&&r&&c?n({},e,{body:o(e.body)}):e},processOptions:function(t){return n({},t,{headers:n({Accept:"application/json"},t.headers)})}}}},636:function(t,e,r){"use strict";t.exports=r(637)},637:function(t,e,r){"use strict";t.exports=function(){return{onRequest:function(t){if("xhr"===t.adapter){var e=t.request,r=t.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}function n(t){return function(e){var n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},638:function(t,e,r){"use strict";var n=r(639),o=r(426);function c(t){var e=l(t);c.super.call(this,e.message),o(this,e)}function f(t){var e=l(t);f.super.call(this,e.message),o(this,e)}function l(t){var body=t.body,e={response:t,statusCode:t.statusCode,responseBody:h(body,t)};return body.error&&body.message?(e.message="".concat(body.error," - ").concat(body.message),e):body.error&&body.error.description?(e.message=body.error.description,e.details=body.error,e):(e.message=body.error||body.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),e)}function h(body,t){return-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(body,null,2):body}n(c),n(f),e.ClientError=c,e.ServerError=f},639:function(t,e,r){"use strict";var n="undefined"!=typeof Reflect?Reflect.construct:void 0,o=Object.defineProperty,c=Error.captureStackTrace;function f(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}),c(this,this.constructor)}void 0===c&&(c=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})}})}),f.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:f,writable:!0}});var l=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(t){}}();e=t.exports=function(t,e){if(null==e||e===Error)e=f;else if("function"!=typeof e)throw new TypeError("super_ should be a function");var r;if("string"==typeof t)r=t,t=void 0!==n?function(){return n(e,arguments,this.constructor)}:function(){e.apply(this,arguments)},void 0!==l&&(l(t,r),r=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!==r&&(o.name={configurable:!0,value:r,writable:!0}),t.prototype=Object.create(e.prototype,o),t},e.BaseError=f},640:function(t,e,r){"use strict";
2t.exports=[]},641:function(t,e,r){"use strict";var n=r(426),o="X-Sanity-Project-ID";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},c=e.token||t.token;c&&(r.Authorization="Bearer ".concat(c)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r[o]=t.projectId);var f=Boolean(void 0===e.withCredentials?t.token||t.withCredentials:e.withCredentials),l=void 0===e.timeout?t.timeout:e.timeout;return n({},e,{headers:n({},r,e.headers||{}),timeout:void 0===l?3e5:l,proxy:e.proxy||t.proxy,json:!0,withCredentials:f})}},642:function(t,e,r){"use strict";var n=r(534),o=r(426),c=r(475),f=r(643),l={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},h=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=l,e.initConfig=function(t,r){var d=o({},r,t);d.apiVersion||f.printNoApiVersionSpecifiedWarning();var y=o({},l,d),v=y.gradientMode,m=!v&&y.useProjectHostname;if("undefined"==typeof Promise){var w=n("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(w))}if(v&&!y.namespace)throw new Error("Configuration must contain `namespace` when running in gradient mode");if(m&&!y.projectId)throw new Error("Configuration must contain `projectId`");var _="undefined"!=typeof window&&window.location&&window.location.hostname,O=_&&function(t){return-1!==h.indexOf(t)}(window.location.hostname);if(_&&O&&y.token&&!0!==y.ignoreBrowserTokenWarning?f.printBrowserTokenWarning():(!_||O)&&y.useCdn&&y.token?f.printCdnTokenWarning():void 0===y.useCdn&&f.printCdnWarning(),m&&c.projectId(y.projectId),!v&&y.dataset&&c.dataset(y.dataset,y.gradientMode),"requestTagPrefix"in y&&(y.requestTagPrefix=y.requestTagPrefix?c.requestTag(y.requestTagPrefix).replace(/\.+$/,""):void 0),y.apiVersion="".concat(y.apiVersion).replace(/^v/,""),y.isDefaultApi=y.apiHost===l.apiHost,y.useCdn=Boolean(y.useCdn)&&!y.token&&!y.withCredentials,e.validateApiVersion(y.apiVersion),y.gradientMode)y.url=y.apiHost,y.cdnUrl=y.apiHost;else{var E=y.apiHost.split("://",2),x=E[0],j=E[1],S=y.isDefaultApi?"apicdn.sanity.io":j;y.useProjectHostname?(y.url="".concat(x,"://").concat(y.projectId,".").concat(j,"/v").concat(y.apiVersion),y.cdnUrl="".concat(x,"://").concat(y.projectId,".").concat(S,"/v").concat(y.apiVersion)):(y.url="".concat(y.apiHost,"/v").concat(y.apiVersion),y.cdnUrl=y.url)}return y},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`")}}},643:function(t,e,r){"use strict";var n=r(534),o=r(565),c=function(t){return o((function(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=console).warn.apply(e,[t.join(" ")].concat(n))}))};e.printCdnWarning=c(["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(n("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),e.printBrowserTokenWarning=c(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(n("js-client-browser-token")," for more information and how to hide this warning.")]),e.printCdnTokenWarning=c(["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(n("js-client-usecdn-token")," for more information.")]),e.printNoApiVersionSpecifiedWarning=c(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(n("js-client-api-version"))])}}]);
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.