(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[400],{167:function(t,e){var r,n,o;"undefined"===typeof self||self,n=[],void 0===(o="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 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 e,r=this.defaultOptions;for(e in r)r.hasOwnProperty(e)&&(this[e]=r[e]);for(e in t)e in r&&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.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 e,n,o,i,s,a,u=(t=this.cache+this.normalizeToLF(t)).split("\n\n");for(e=0;e=0;--n)if(r[n]===e){r.splice(n,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 r=[];if(e){var n,o,i=encodeURIComponent;for(n in e)e.hasOwnProperty(n)&&(o=i(n)+"="+i(e[n]),r.push(o))}return r.length>0?-1==t.indexOf("?")?t+"?"+r.join("&"):t+"&"+r.join("&"):t},lastMessageIndex:function(t){var e=t.lastIndexOf("\n\n"),r=t.lastIndexOf("\r\r"),n=t.lastIndexOf("\r\n\r\n");return n>Math.max(e,r)?[n,n+4]:[Math.max(e,r),Math.max(e,r)+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(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 r=t.xhrHeaders;for(var n in r)r.hasOwnProperty(n)&&e.setRequestHeader(n,r[n]);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 r(t,e,r,n){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=e||null,this.origin=r||"",this.lastEventId=n||"",this.type=t||"message"}function n(){return Boolean("undefined"!==typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType)}return t})?r.apply(e,n):r)||(t.exports=o)},5258:function(t,e,r){"use strict";function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,o,i=[],s=!0,a=!1;try{for(r=r.call(t);!(s=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(u){a=!0,o=u}finally{try{s||null==r.return||r.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 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)}(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 r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:{};c.validateAssetType(t);var n=r.extract||void 0;n&&!n.length&&(n=["none"]);var o=c.hasDataset(this.client.clientConfig),i="image"===t?"images":"files",u=l(r,e),f=u.tag,h=u.label,d=u.title,y=u.description,v=u.creditLine,b=u.filename,g=u.source,m={label:h,title:d,description:y,filename:b,meta:n,creditLine:v};g&&(m.sourceId=g.id,m.sourceName=g.name,m.sourceUrl=g.url);var w=this.client._requestObservable({tag:f,method:"POST",timeout:u.timeout||0,uri:"/assets/".concat(i,"/").concat(o),headers:u.contentType?{"Content-Type":u.contentType}:{},query:m,body:e});return this.client.isPromiseAPI()?w.pipe(a((function(t){return"response"===t.type})),s((function(t){return p(t.body)}))).toPromise():w},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete()");var r=e||"";return/^(image|file)-/.test(r)?t._id&&(r=t._id):r="".concat(t,"-").concat(r),c.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),i=o[1],s=o[2],a=o[3];c.hasDataset(this.client.clientConfig);var f=this.client.clientConfig,p=f.projectId,l=f.dataset,h=e?u(e):"";return"https://cdn.sanity.io/images/".concat(p,"/").concat(l,"/").concat(i,"-").concat(s,".").concat(a).concat(h)}}),t.exports=f},6586:function(t,e,r){"use strict";function n(t){this.client=t}r(6086)(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},9895:function(t,e,r){"use strict";var n=r(261),o=r(6086),i=r(2947),s=r(1356),a={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},u=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=a,e.initConfig=function(t,r){var c=o({},r,t);c.apiVersion||s.printNoApiVersionSpecifiedWarning();var f=o({},a,c),p=f.gradientMode,l=!p&&f.useProjectHostname;if("undefined"===typeof Promise){var h=n("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(h))}if(p&&!f.namespace)throw new Error("Configuration must contain `namespace` when running in gradient mode");if(l&&!f.projectId)throw new Error("Configuration must contain `projectId`");var d="undefined"!==typeof window&&window.location&&window.location.hostname,y=d&&function(t){return-1!==u.indexOf(t)}(window.location.hostname);if(d&&y&&f.token&&!0!==f.ignoreBrowserTokenWarning?s.printBrowserTokenWarning():(!d||y)&&f.useCdn&&f.token?s.printCdnTokenWarning():"undefined"===typeof f.useCdn&&s.printCdnWarning(),l&&i.projectId(f.projectId),!p&&f.dataset&&i.dataset(f.dataset,f.gradientMode),"requestTagPrefix"in f&&(f.requestTagPrefix=f.requestTagPrefix?i.requestTag(f.requestTagPrefix).replace(/\.+$/,""):void 0),f.apiVersion="".concat(f.apiVersion).replace(/^v/,""),f.isDefaultApi=f.apiHost===a.apiHost,f.useCdn=Boolean(f.useCdn)&&!f.token&&!f.withCredentials,e.validateApiVersion(f.apiVersion),f.gradientMode)f.url=f.apiHost,f.cdnUrl=f.apiHost;else{var v=f.apiHost.split("://",2),b=v[0],g=v[1],m=f.isDefaultApi?"apicdn.sanity.io":g;f.useProjectHostname?(f.url="".concat(b,"://").concat(f.projectId,".").concat(g,"/v").concat(f.apiVersion),f.cdnUrl="".concat(b,"://").concat(f.projectId,".").concat(m,"/v").concat(f.apiVersion)):(f.url="".concat(f.apiHost,"/v").concat(f.apiVersion),f.cdnUrl=f.url)}return f},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`")}}},1078: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(6086),i=r(2828).filter,s=r(1350).map,a=r(2947),u=r(7054),c=r(6102),f=r(485),p=r(5770),l=r(5420),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},b=function(t,e){return t.reduce((function(t,r){return t[e(r)]=r,t}),Object.create(null))},g=function(t){return t.toPromise()};t.exports={listen:l,getDataUrl:function(t,e){var r=this.clientConfig,n=r.gradientMode?r.namespace:a.hasDataset(r),o="/".concat(t,"/").concat(n),i=e?"".concat(o,"/").concat(e):o;return(this.clientConfig.gradientMode?i:"/data".concat(i)).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(s(n));return this.isPromiseAPI()?g(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(i(y),s((function(t){return t.body.documents&&t.body.documents[0]})));return this.isPromiseAPI()?g(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(i(y),s((function(e){var r=b(e.body.documents||[],(function(t){return t._id}));return t.map((function(t){return r[t]||null}))})));return this.isPromiseAPI()?g(n):n},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 p(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:u(t)}]},e)},mutate:function(t,e){var r=t instanceof p||t instanceof f?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 f(t,this)},dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._dataRequest(t,e,r);return this.isPromiseAPI()?g(n):n},_dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===t,a=!o&&c(e),u=!o&&a.length<11264,f=u?a:"",p=r.returnFirst,l=r.timeout,h=r.token,b=r.tag,g=this.getDataUrl(t,f),m={method:u?"GET":"POST",uri:g,json:!0,body:u?void 0:e,query:o&&d(r),timeout:l,token:h,tag:b};return this._requestObservable(m).pipe(i(y),s(v),s((function(t){if(!o)return t;var e=t.results||[];if(r.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 n({transactionId:t.transactionId,results:e},i,s)})))},_create:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n({},e,t),s=o({returnFirst:!0,returnDocuments:!0},r);return this.dataRequest("mutate",{mutations:[i]},s)}}},6102:function(t){"use strict";var e=["tag"];function r(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}var n=encodeURIComponent;t.exports=function(t){var o=t.query,i=t.params,s=void 0===i?{}:i,a=t.options,u=void 0===a?{}:a,c=u.tag,f=r(u,e),p="query=".concat(n(o)),l=c?"?tag=".concat(n(c),"&").concat(p):"?".concat(p),h=Object.keys(s).reduce((function(t,e){return"".concat(t,"&").concat(n("$".concat(e)),"=").concat(n(JSON.stringify(s[e])))}),l);return Object.keys(f).reduce((function(t,e){return u[e]?"".concat(t,"&").concat(n(e),"=").concat(n(u[e])):t}),h)}},5420:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function o(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:{},n=this.clientConfig,i=n.url,s=n.token,u=n.withCredentials,c=n.requestTagPrefix,p=r.tag&&c?[c,r.tag].join("."):r.tag,d=o(o({},l(r,m)),{},{tag:p}),O=f(d,g),E=h({query:t,params:e,options:O,tag:p}),x="".concat(i).concat(this.getDataUrl("listen",E));if(x.length>14800)return new a((function(t){return t.error(new Error("Query too large for listener"))}));var j=d.events?d.events:["mutation"],S=-1!==j.indexOf("reconnect");s&&v&&y();var P={};return(s||u)&&(P.withCredentials=!0),s&&(P.headers={Authorization:"Bearer ".concat(s)}),new a((function(t){var e,r=c(),n=!1;function o(){n||(S&&t.next({type:"reconnect"}),n||r.readyState===b.CLOSED&&(u(),clearTimeout(e),e=setTimeout(f,100)))}function i(e){t.error(_(e))}function s(e){var r=w(e);return r instanceof Error?t.error(r):t.next(r)}function a(e){n=!0,u(),t.complete()}function u(){r.removeEventListener("error",o,!1),r.removeEventListener("channelError",i,!1),r.removeEventListener("disconnect",a,!1),j.forEach((function(t){return r.removeEventListener(t,s,!1)})),r.close()}function c(){var t=new b(x,P);return t.addEventListener("error",o,!1),t.addEventListener("channelError",i,!1),t.addEventListener("disconnect",a,!1),j.forEach((function(e){return t.addEventListener(e,s,!1)})),t}function f(){r=c()}return function(){n=!0,u()}}))}},5770: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(8178),i=r(6086),s=r(7054),a=r(2947),u=a.validateObject,c=a.validateInsert;function f(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=i({},e),this.client=r}i(f.prototype,{clone:function(){return new f(this.selection,i({},this.operations),this.client)},merge:function(t){u("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 u("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 u("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 c(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,i="undefined"===typeof r||-1===r?-1:Math.max(0,e+r),s=o<0&&i>=0?"":i,a="".concat(t,"[").concat(o,":").concat(s,"]");return this.insert("replace",a,n||[])},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,r=i({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 u(t,e),this.operations=i({},this.operations,n({},t,i({},r&&this.operations[t]||{},e))),this}}),t.exports=f},485: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(6086),i=r(2947),s=r(5770),a={returnDocuments:!1};function u(){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(u.prototype,{clone:function(){return new u(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(n({},e,t))},createOrReplace:function(t){var e="createOrReplace";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(n({},e,t))},delete:function(t){return i.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var r="function"===typeof e;if(t instanceof s)return this._add({patch:t.serialize()});if(r){var n=e(new s(t,{},this.client));if(!(n instanceof s))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},a,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=u},8288:function(t,e,r){"use strict";var n=r(6086),o=r(2947);function i(t){this.request=t.request.bind(t)}n(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,r){return o.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:r})}}),t.exports=i},1708:function(t){"use strict";t.exports=[]},2288:function(t,e,r){"use strict";var n=r(1432),o=r(6086);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,r={response:t,statusCode:t.statusCode,responseBody:u(e,t)};return e.error&&e.message?(r.message="".concat(e.error," - ").concat(e.message),r):e.error&&e.error.description?(r.message=e.error.description,r.details=e.error,r):(r.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),r)}function u(t,e){return-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(t,null,2):t}n(i),n(s),e.ClientError=i,e.ServerError=s},3202:function(t){"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("&")):""}},7343:function(t,e,r){"use strict";var n=r(6258),o=r(6086),i=r(6890),s=r(2289),a=r(8362),u=r(5018),c=r(1885),f=r(2288),p=f.ClientError,l=f.ServerError,h={onResponse:function(t){if(t.statusCode>=500)throw new l(t);if(t.statusCode>=400)throw new p(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=n(r(1708).concat([d,s(),a(),u(),h,i({implementation:c})]));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=p,v.ServerError=l,t.exports=v},3914:function(t,e,r){"use strict";var n=r(6086),o="X-Sanity-Project-ID";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},i=e.token||t.token;i&&(r.Authorization="Bearer ".concat(i)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r[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 n({},e,{headers:n({},r,e.headers||{}),timeout:"undefined"===typeof a?3e5:a,proxy:e.proxy||t.proxy,json:!0,withCredentials:s})}},7015:function(t,e,r){"use strict";function n(t){this.client=t}r(6086)(n.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=n},9729:function(t,e,r){"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}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 i=r(6086),s=r(2828).filter,a=r(1350).map,u=r(5770),c=r(485),f=r(1078),p=r(8288),l=r(7015),h=r(5258),d=r(1102),y=r(6586),v=r(7343),b=r(3914),g=r(9895),m=g.defaultConfig,w=g.initConfig,_=r(2947);function O(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;if(!(this instanceof O))return new O(t);if(this.config(t),this.assets=new h(this),this.datasets=new p(this),this.projects=new l(this),this.users=new d(this),this.auth=new y(this),this.clientConfig.isPromiseAPI){var e=i({},this.clientConfig,{isPromiseAPI:!1});this.observable=new O(e)}}i(O.prototype,f),i(O.prototype,{clone:function(){return new O(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],r=e?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(r,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=t.url||t.uri,r=this.clientConfig.useCdn&&["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===e.indexOf("/data/"),s=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;s&&(t.query=function(t){for(var e=1;e)","* Array of document IDs","* Object containing `query`"].join("\n");throw new Error("Unknown selection - must be one of:\n\n".concat(e))}},7826:function(t){"use strict";t.exports=function(t){var e,r=!1;return function(){return r||(e=t.apply(void 0,arguments),r=!0),e}}},8201:function(t){"use strict";t.exports=function(t,e){return e.reduce((function(e,r){return"undefined"===typeof t[r]||(e[r]=t[r]),e}),{})}},2947:function(t,e){"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 n=["image","file"],o=["before","after","replace"];e.dataset=function(t){if(!/^(~[a-z0-9]{1}[-\w]{0,25}|[a-z0-9]{1}[-\w]{0,19})$/.test(t))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 20 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===n.indexOf(t))throw new Error("Invalid asset type: ".concat(t,". Must be one of ").concat(n.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,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===o.indexOf(t)){var i=o.map((function(t){return'"'.concat(t,'"')})).join(", ");throw new Error("".concat(n,' takes an "at"-argument which is one of: ').concat(i))}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}},1356:function(t,e,r){"use strict";var n=r(261),o=r(7826),i=function(t){return o((function(){for(var e,r=arguments.length,n=new Array(r),o=0;oa){var u=Math.round(i.height),c=Math.round(u*a),f=Math.max(0,Math.round(i.top)),p=Math.round((s.right-s.left)/2+s.left),l=Math.max(0,Math.round(p-c/2));li.left+i.width&&(l=i.left+i.width-c),r={left:l,top:f,width:c,height:u}}else{var h=i.width,d=Math.round(h/a),y=Math.max(0,Math.round(i.left)),v=Math.round((s.bottom-s.top)/2+s.top),b=Math.max(0,Math.round(v-d/2));bi.top+i.height&&(b=i.top+i.height-d),r={left:y,top:b,width:h,height:d}}return{width:n,height:o,rect:r}}var h=["clip","crop","fill","fillmax","max","scale","min"],d=["top","bottom","left","right","center","focalpoint","entropy"],y=["format"];function v(t){return!!t&&"object"===typeof t.clientConfig}function b(t){for(var e=0,r=c;e0&&void 0!==arguments[0]?arguments[0]:[],r=[],f=c.reduce((function(t,e){return t[e]=t[e]||[],t}),{processOptions:[i],validateOptions:[s]});function p(t){var e=u.reduce((function(t,e){return t[e]=n(),t}),{}),r=o(f),i=r("processOptions",t);r("validateOptions",i);var s={options:i,channels:e,applyMiddleware:r},c=null,p=e.request.subscribe((function(t){c=a(t,(function(n,o){return function(t,o,i){var s=t,a=o;if(!s)try{a=r("onResponse",o,i)}catch(n){a=null,s=n}(s=s&&r("onError",s,i))?e.error.publish(s):a&&e.response.publish(a)}(n,o,t)}))}));e.abort.subscribe((function(){p(),c&&c.abort()}));var l=r("onReturn",e,s);return l===e&&e.request.publish(s),l}return p.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&&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 c.forEach((function(e){t[e]&&f[e].push(t[e])})),r.push(t),p},p.clone=function(){return t(r)},e.forEach(p.use),p}},5734:function(t,e,r){"use strict";var n=r(6086),o=r(4564),i="undefined"!==typeof navigator&&"ReactNative"===navigator.product,s=Object.prototype.hasOwnProperty,a={timeout:i?6e4:12e4};function u(t){var e=[];for(var r in t)s.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 c(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;var e=Number(t);return isNaN(e)?c(a.timeout):{connect:e,socket:e}}t.exports=function(t){var e="string"===typeof t?n({url:t},a):n({},a,t),r=o(e.url,{},!0);return e.timeout=c(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(u),e}},5139:function(t){"use strict";var e=/^https?:\/\//i;t.exports=function(t){if(!e.test(t.url))throw new Error('"'+t.url+'" is not a valid URL')}},2289: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(6086),i=r(5299),s=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e,r=t.body;return r&&!("function"===typeof r.pipe)&&!((e=r).constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==s.indexOf("undefined"===typeof r?"undefined":n(r))||Array.isArray(r)||i(r))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t}}}},8362:function(t,e,r){"use strict";var n=r(6086);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 r=e.headers["content-type"]||"",i=t&&t.force||-1!==r.indexOf("application/json");return e.body&&r&&i?n({},e,{body:o(e.body)}):e},processOptions:function(t){return n({},t,{headers:n({Accept:"application/json"},t.headers)})}}}},6890:function(t,e,r){"use strict";var n=r(3366),o=r(6086);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||n.Observable;if(!e)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,r){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(r),function(){return t.abort.publish()}}))}}}},4393:function(t){"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})}}}}}},5018:function(t,e,r){"use strict";t.exports=r(4393)},7288:function(t,e,r){"use strict";var n=r(7215),o=r(4947),i=window,s=i.XMLHttpRequest||function(){},a="withCredentials"in new s?s:i.XDomainRequest;t.exports=function(t,e){var r=t.options,u=t.applyMiddleware("finalizeOptions",r),c={},f=i&&i.location&&!n(i.location.href,u.url),p=t.applyMiddleware("interceptRequest",void 0,{adapter:"xhr",context:t});if(p){var l=setTimeout(e,0,null,p);return{abort:function(){return clearTimeout(l)}}}var h=f?new a:new s,d=i.XDomainRequest&&h instanceof i.XDomainRequest,y=u.headers,v=!1,b=!1,g=!1;if(h.onerror=E,h.ontimeout=E,h.onabort=function(){v=!0},h.onprogress=function(){},h[d?"onload":"onreadystatechange"]=function(){!function(){if(!w)return;O(),c.socket=setTimeout((function(){return _("ESOCKETTIMEDOUT")}),w.socket)}(),v||4!==h.readyState&&!d||0!==h.status&&function(){if(v||b||g)return;if(0===h.status)return void E(new Error("Unknown XHR error"));O(),b=!0,e(null,function(){var t=h.status,e=h.statusText;if(d&&void 0===t)t=200;else{if(t>12e3&&t<12156)return E();t=1223===h.status?204:h.status,e=1223===h.status?"No Content":e}return{body:h.response||h.responseText,url:u.url,method:u.method,headers:d?{}:o(h.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}()},h.open(u.method,u.url,!0),h.withCredentials=!!u.withCredentials,y&&h.setRequestHeader)for(var m in y)y.hasOwnProperty(m)&&h.setRequestHeader(m,y[m]);else if(y&&d)throw new Error("Headers cannot be set on an XDomainRequest object");u.rawBody&&(h.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:u,adapter:"xhr",request:h,context:t}),h.send(u.body||null);var w=u.timeout;return w&&(c.connect=setTimeout((function(){return _("ETIMEDOUT")}),w.connect)),{abort:function(){v=!0,h&&h.abort()}};function _(e){g=!0,h.abort();var r=new Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+u.url:"Connection timed out on request to "+u.url);r.code=e,t.channels.error.publish(r)}function O(){(v||h.readyState>=2&&c.connect)&&clearTimeout(c.connect),c.socket&&clearTimeout(c.socket)}function E(){if(!b){O(),b=!0,h=null;var t=new Error("Network error while attempting to reach "+u.url);t.isNetworkError=!0,t.request=u,e(t)}}}},9825:function(t,e,r){"use strict";t.exports=r(7288)},3366:function(t,e,r){"use strict";"undefined"!==typeof window?t.exports=window:"undefined"!==typeof r.g?t.exports=r.g:"undefined"!==typeof self?t.exports=self:t.exports={}},6604:function(t){"use strict";t.exports=function(t){return function(e,r){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i-1&&t.splice(r,1)}},publish:function(){for(var e=0;e256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()})).join("")}catch(t){return e}}))}(p.pathname):p.pathname),"about:"===w.protocol&&"blank"===w.pathname&&(w.protocol="",w.pathname=""),_&&"/"!==t[0]&&(w.pathname=w.pathname.substr(1)),f&&!d.test(f)&&"/"!==t.slice(-1)&&"/"===w.pathname&&(w.pathname=""),w.path=w.pathname+w.search,w.auth=[p.username,p.password].map(decodeURIComponent).filter(Boolean).join(":"),w.port=p.port,m&&!w.host.endsWith(m)&&(w.host+=m,w.port=m.slice(1)),w.href=O?""+w.pathname+w.search+w.hash:s(w);var x=/^(file)/.test(w.href)?["host","hostname"]:[];return Object.keys(w).forEach((function(t){~x.indexOf(t)||(w[t]=w[t]||null)})),w}e.parse=m,e.format=s,e.resolve=l,e.resolveObject=function(t,e){return m(l(t,e))},e.Url=h},4947:function(t){var e=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var r,n={},o=e(t).split("\n"),i=0;i0&&u>a&&(u=a);for(var c=0;c=0?(f=d.substr(0,y),p=d.substr(y+1)):(f=d,p=""),l=decodeURIComponent(f),h=decodeURIComponent(p),e(i,l)?Array.isArray(i[l])?i[l].push(h):i[l]=[i[l],h]:i[l]=h}return i}},2361:function(t){"use strict";var e=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,r,n,o){return r=r||"&",n=n||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(o){var i=encodeURIComponent(e(o))+n;return Array.isArray(t[o])?t[o].map((function(t){return i+encodeURIComponent(e(t))})).join(r):i+encodeURIComponent(e(t[o]))})).filter(Boolean).join(r):o?encodeURIComponent(e(o))+n+encodeURIComponent(e(t)):""}},7673:function(t,e,r){"use strict";e.decode=e.parse=r(2587),e.encode=e.stringify=r(2361)},7129:function(t,e){"use strict";var r=Object.prototype.hasOwnProperty;function n(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return null}}function o(t){try{return encodeURIComponent(t)}catch(e){return null}}e.stringify=function(t,e){e=e||"";var n,i,s=[];for(i in"string"!==typeof e&&(e="?"),t)if(r.call(t,i)){if((n=t[i])||null!==n&&undefined!==n&&!isNaN(n)||(n=""),i=o(i),n=o(n),null===i||null===n)continue;s.push(i+"="+n)}return s.length?e+s.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,o={};e=r.exec(t);){var i=n(e[1]),s=n(e[2]);null===i||null===s||i in o||(o[i]=s)}return o}},7418:function(t){"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}},2837:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(7481),o=r(3123),i=r(6079),s=r(8105),a=r(9079),u=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,i=o.toSubscriber(t,e,r);if(n?i.add(n.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),n.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=c(e))((function(e,n){var o;o=r.subscribe((function(e){try{t(e)}catch(r){n(r),o&&o.unsubscribe()}}),n,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=2?function(r){return s.pipe(n.scan(t,e),o.takeLast(1),i.defaultIfEmpty(e))(r)}:function(e){return s.pipe(n.scan((function(e,r,n){return t(e,r,n+1)})),o.takeLast(1))(e)}}},2641:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(9454);e.scan=function(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new i(t,e,r))}};var i=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,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return n(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(n){this.destination.error(n)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},1003:function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(9454),i=r(874),s=r(2684);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 u(t,this.total))},t}(),u=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 n(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o=2&&(r=r.slice(2)):h(o)?r=n[4]:o?i&&(r=r.slice(2)):u>=2&&h(e.protocol)&&(r=n[4]),{protocol:o,slashes:i||h(o),slashesCount:u,rest:r}}function y(t,e,r){if(t=c(t),!(this instanceof y))return new y(t,e,r);var i,s,u,p,v,b,g=f.slice(),m=typeof e,w=this,_=0;for("object"!==m&&"string"!==m&&(r=e,e=null),r&&"function"!==typeof r&&(r=o.parse),i=!(s=d(t||"",e=l(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)))&&(g[3]=[/(.*)/,"pathname"]);_