/*! For license information please see main.faa7390a.js.LICENSE.txt */ !function(){var e={9998:function(e,t,n){var r=n(3867).w_;e.exports.L=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]})(e)}},742:function(e,t,n){var r=n(3867).w_;e.exports.I=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]})(e)}},6003:function(e,t,n){var r=n(3867).w_;e.exports.M=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 0 1-112.7 75.9A352.8 352.8 0 0 1 512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 0 1-112.7-75.9 353.28 353.28 0 0 1-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 0 0 0-12.6z"}}]})(e)}},3163:function(e,t,n){var r=n(3867).w_;e.exports.q=function(e){return r({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M292.7 840h438.6l24.2-512h-487z"}},{tag:"path",attr:{d:"M864 256H736v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zm-504-72h304v72H360v-72zm371.3 656H292.7l-24.2-512h487l-24.2 512z"}}]})(e)}},4944:function(e,t,n){var r=n(3867).w_;e.exports.c=function(e){return r({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8 0l1.669.864 1.858.282.842 1.68 1.337 1.32L13.4 6l.306 1.854-1.337 1.32-.842 1.68-1.858.282L8 12l-1.669-.864-1.858-.282-.842-1.68-1.337-1.32L2.6 6l-.306-1.854 1.337-1.32.842-1.68L6.331.864 8 0z"}},{tag:"path",attr:{d:"M4 11.794V16l4-1 4 1v-4.206l-2.018.306L8 13.126 6.018 12.1 4 11.794z"}}]})(e)}},7216:function(e,t,n){var r=n(3867).w_;e.exports.J=function(e){return r({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}},6392:function(e,t,n){var r=n(3867).w_;e.exports.r=function(e){return r({tag:"svg",attr:{viewBox:"0 0 20 20",fill:"currentColor"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"}}]})(e)}},1641:function(e,t,n){var r=n(3867).w_;e.exports.h=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}}]})(e)}},1401:function(e,t,n){var r=n(3867).w_;e.exports.D=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M416 277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416v42.666z"}}]})(e)}},6896:function(e,t,n){var r=n(3867).w_;e.exports.y=function(e){return r({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M337.509 305.372h-17.501l-6.571-5.486c20.791-25.232 33.922-57.054 33.922-93.257C347.358 127.632 283.896 64 205.135 64 127.452 64 64 127.632 64 206.629s63.452 142.628 142.225 142.628c35.011 0 67.831-13.167 92.991-34.008l6.561 5.487v17.551L415.18 448 448 415.086 337.509 305.372zm-131.284 0c-54.702 0-98.463-43.887-98.463-98.743 0-54.858 43.761-98.742 98.463-98.742 54.7 0 98.462 43.884 98.462 98.742 0 54.856-43.762 98.743-98.462 98.743z"}}]})(e)}},3867:function(e,t,n){"use strict";n.d(t,{w_:function(){return s}});var r=n(2791),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},i=r.createContext&&r.createContext(o),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;nthis.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&t.length>0&&"\ufeff"==t.substring(0,1)&&(this.cursor=1);var n=this.lastMessageIndex(t);if(n[0]>=this.cursor){var r=n[1],o=t.substring(this.cursor,r);this.parseStream(o),this.cursor=r}e.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(e){var t,r,o,i,a,l,u=(e=this.cache+this.normalizeToLF(e)).split("\n\n");for(t=0;t=0;--r)if(n[r]===t){n.splice(r,1);break}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(e,t){var n=[];if(t){var r,o,i=encodeURIComponent;for(r in t)t.hasOwnProperty(r)&&(o=i(r)+"="+i(t[r]),n.push(o))}return n.length>0?-1==e.indexOf("?")?e+"?"+n.join("&"):e+"&"+n.join("&"):e},lastMessageIndex:function(e){var t=e.lastIndexOf("\n\n"),n=e.lastIndexOf("\r\r"),r=e.lastIndexOf("\r\n\r\n");return r>Math.max(t,n)?[r,r+4]:[Math.max(t,n),Math.max(t,n)+2]},trimWhiteSpace:function(e){var t=/^(\s|\u00A0)+|(\s|\u00A0)+$/g;return e.replace(t,"")},normalizeToLF:function(e){return e.replace(/\r\n|\r/g,"\n")}},r()){e.isPolyfill="IE_8-9";var t=e.prototype.defaultOptions;t.xhrHeaders=null,t.getArgs.evs_preamble=2056,e.prototype.XHR=function(e){var t=new XDomainRequest;this._request=t,t.onprogress=function(){t._ready=!0,e._onxhrdata()},t.onload=function(){this._loaded=!0,e._onxhrdata()},t.onerror=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},t.ontimeout=function(){this._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};var n={};if(e.getArgs){var r=e.getArgs;for(var o in r)r.hasOwnProperty(o)&&(n[o]=r[o]);e.lastEventId&&(n.evs_last_event_id=e.lastEventId)}t.open("GET",e.urlWithParams(e.URL,n)),t.send()},e.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 e="";try{e=this._request.responseText||""}catch(t){}return e},abort:function(){this._request&&this._request.abort()}}}else e.isPolyfill="XHR",e.prototype.XHR=function(e){var t=new XMLHttpRequest;this._request=t,e._xhr=this,t.onreadystatechange=function(){t.readyState>1&&e.readyState!=e.CLOSED&&(200==t.status||t.status>=300&&t.status<400?e._onxhrdata():(t._failed=!0,e.readyState=e.CLOSED,e.dispatchEvent("error",{type:"error",data:"The server responded with "+t.status}),e.close()))},t.onprogress=function(){},t.open("GET",e.urlWithParams(e.URL,e.getArgs),!0);var n=e.xhrHeaders;for(var r in n)n.hasOwnProperty(r)&&t.setRequestHeader(r,n[r]);e.lastEventId&&t.setRequestHeader("Last-Event-Id",e.lastEventId),t.send()},e.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 e="";try{e=this._request.responseText||""}catch(t){}return e},abort:function(){this._request&&this._request.abort()}};function n(e,t,n,r){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=t||null,this.origin=n||"",this.lastEventId=r||"",this.type=e||"message"}function r(){return Boolean("undefined"!==typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===(new XMLHttpRequest).responseType)}return e})?n.apply(t,r):n)||(e.exports=o)},7143:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(u){l=!0,o=u}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:{};c.validateAssetType(e);var r=n.extract||void 0;r&&!r.length&&(r=["none"]);var o=c.hasDataset(this.client.clientConfig),i="image"===e?"images":"files",a=d(n,t),s=a.tag,f=a.label,p=a.title,h=a.description,m=a.creditLine,g=a.filename,v=a.source,y={label:f,title:p,description:h,filename:g,meta:r,creditLine:m};v&&(y.sourceId=v.id,y.sourceName=v.name,y.sourceUrl=v.url);var b=this.client._requestObservable({tag:s,method:"POST",timeout:a.timeout||0,uri:"/assets/".concat(i,"/").concat(o),headers:a.contentType?{"Content-Type":a.contentType}:{},query:y,body:t});return this.client.isPromiseAPI()?b.pipe(u((function(e){return"response"===e.type})),l((function(e){return e.body.document}))).toPromise():b},delete:function(e,t){console.warn("client.assets.delete() is deprecated, please use client.delete()");var n=t||"";return/^(image|file)-/.test(n)?e._id&&(n=e._id):n="".concat(e,"-").concat(n),c.hasDataset(this.client.clientConfig),this.client.delete(n)},getImageUrl:function(e,t){var n=e._ref||e;if("string"!==typeof n)throw new Error("getImageUrl() needs either an object with a _ref, or a string with an asset document ID");if(!/^image-[A-Za-z0-9_]+-\d+x\d+-[a-z]{1,5}$/.test(n))throw new Error('Unsupported asset ID "'.concat(n,'". URL generation only works for auto-generated IDs.'));var o=r(n.split("-"),4),i=o[1],a=o[2],l=o[3];c.hasDataset(this.client.clientConfig);var u=this.client.clientConfig,f=u.projectId,d=u.dataset,p=t?s(t):"";return"https://cdn.sanity.io/images/".concat(f,"/").concat(d,"/").concat(i,"-").concat(a,".").concat(l).concat(p)}}),e.exports=f},4284:function(e,t,n){"use strict";function r(e){this.client=e}n(1725)(r.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),e.exports=r},1897:function(e,t,n){"use strict";var r=n(9421),o=n(1725),i=n(5152),a=n(8277),l={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,isPromiseAPI:!0},u=["localhost","127.0.0.1","0.0.0.0"];t.defaultConfig=l,t.initConfig=function(e,n){var s=o({},n,e);s.apiVersion||a.printNoApiVersionSpecifiedWarning();var c=o({},l,s),f=c.useProjectHostname;if("undefined"===typeof Promise){var d=r("js-client-promise-polyfill");throw new Error("No native Promise-implementation found, polyfill needed - see ".concat(d))}if(f&&!c.projectId)throw new Error("Configuration must contain `projectId`");var p="undefined"!==typeof window&&window.location&&window.location.hostname,h=p&&function(e){return-1!==u.indexOf(e)}(window.location.hostname);p&&h&&c.token&&!0!==c.ignoreBrowserTokenWarning?a.printBrowserTokenWarning():"undefined"===typeof c.useCdn&&a.printCdnWarning(),f&&i.projectId(c.projectId),c.dataset&&i.dataset(c.dataset),"requestTagPrefix"in c&&(c.requestTagPrefix=c.requestTagPrefix?i.requestTag(c.requestTagPrefix).replace(/\.+$/,""):void 0),c.apiVersion="".concat(c.apiVersion).replace(/^v/,""),c.isDefaultApi=c.apiHost===l.apiHost,c.useCdn=Boolean(c.useCdn)&&!c.withCredentials,t.validateApiVersion(c.apiVersion);var m=c.apiHost.split("://",2),g=m[0],v=m[1],y=c.isDefaultApi?"apicdn.sanity.io":v;return c.useProjectHostname?(c.url="".concat(g,"://").concat(c.projectId,".").concat(v,"/v").concat(c.apiVersion),c.cdnUrl="".concat(g,"://").concat(c.projectId,".").concat(y,"/v").concat(c.apiVersion)):(c.url="".concat(c.apiHost,"/v").concat(c.apiVersion),c.cdnUrl=c.url),c},t.validateApiVersion=function(e){if("1"!==e&&"X"!==e){var t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw new Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},693:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1725),i=n(3899),a=i.map,l=i.filter,u=n(5152),s=n(4779),c=n(1186),f=n(9439),d=n(7285),p=n(5279),h=function(e,t){return!1===e?void 0:"undefined"===typeof e?t:e},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:h(e.returnDocuments,!0),visibility:e.visibility||"sync"}},g=function(e){return"response"===e.type},v=function(e){return e.body},y=function(e,t){return e.reduce((function(e,n){return e[t(n)]=n,e}),Object.create(null))},b=function(e){return e.toPromise()};e.exports={listen:p,getDataUrl:function(e,t){var n=this.clientConfig,r=u.hasDataset(n),o="/".concat(e,"/").concat(r),i=t?"".concat(o,"/").concat(t):o;return"/data".concat(i).replace(/\/($|\?)/,"$1")},fetch:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!1===n.filterResponse?function(e){return e}:function(e){return e.result},o=this._dataRequest("query",{query:e,params:t},n).pipe(a(r));return this.isPromiseAPI()?b(o):o},getDocument:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",e),json:!0,tag:t.tag},r=this._requestObservable(n).pipe(l(g),a((function(e){return e.body.documents&&e.body.documents[0]})));return this.isPromiseAPI()?b(r):r},getDocuments:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={uri:this.getDataUrl("doc",e.join(",")),json:!0,tag:t.tag},r=this._requestObservable(n).pipe(l(g),a((function(t){var n=y(t.body.documents||[],(function(e){return e._id}));return e.map((function(e){return n[e]||null}))})));return this.isPromiseAPI()?b(r):r},create:function(e,t){return this._create(e,"create",t)},createIfNotExists:function(e,t){return u.requireDocumentId("createIfNotExists",e),this._create(e,"createIfNotExists",t)},createOrReplace:function(e,t){return u.requireDocumentId("createOrReplace",e),this._create(e,"createOrReplace",t)},patch:function(e,t){return new d(e,t,this)},delete:function(e,t){return this.dataRequest("mutate",{mutations:[{delete:s(e)}]},t)},mutate:function(e,t){var n=e instanceof d||e instanceof f?e.serialize():e,r=Array.isArray(n)?n:[n],o=t&&t.transactionId;return this.dataRequest("mutate",{mutations:r,transactionId:o},t)},transaction:function(e){return new f(e,this)},dataRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._dataRequest(e,t,n);return this.isPromiseAPI()?b(r):r},_dataRequest:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===e,i="query"===e,u=!o&&c(t),s=!o&&u.length<11264,f=s?u:"",d=n.returnFirst,p=n.timeout,h=n.token,y=n.tag,b=this.getDataUrl(e,f),w={method:s?"GET":"POST",uri:b,json:!0,body:s?void 0:t,query:o&&m(n),timeout:p,token:h,tag:y,canUseCdn:i};return this._requestObservable(w).pipe(l(g),a(v),a((function(e){if(!o)return e;var t=e.results||[];if(n.returnDocuments)return d?t[0]&&t[0].document:t.map((function(e){return e.document}));var i=d?"documentId":"documentIds",a=d?t[0]&&t[0].id:t.map((function(e){return e.id}));return r({transactionId:e.transactionId,results:t},i,a)})))},_create:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r({},t,e),a=o({returnFirst:!0,returnDocuments:!0},n);return this.dataRequest("mutate",{mutations:[i]},a)}}},1186:function(e){"use strict";var t=["tag"];function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var r=encodeURIComponent;e.exports=function(e){var o=e.query,i=e.params,a=void 0===i?{}:i,l=e.options,u=void 0===l?{}:l,s=u.tag,c=n(u,t),f="query=".concat(r(o)),d=s?"?tag=".concat(r(s),"&").concat(f):"?".concat(f),p=Object.keys(a).reduce((function(e,t){return"".concat(e,"&").concat(r("$".concat(t)),"=").concat(r(JSON.stringify(a[t])))}),d);return Object.keys(c).reduce((function(e,t){return u[t]?"".concat(e,"&").concat(r(t),"=").concat(r(u[t])):e}),p)}},5279:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=this.clientConfig,i=r.url,a=r.token,u=r.withCredentials,s=r.requestTagPrefix,f=n.tag&&s?[s,n.tag].join("."):n.tag,h=o(o({},d(n,b)),{},{tag:f}),S=c(h,y),k=p({query:e,params:t,options:S,tag:f}),E="".concat(i).concat(this.getDataUrl("listen",k));if(E.length>14800)return new l((function(e){return e.error(new Error("Query too large for listener"))}));var C=h.events?h.events:["mutation"],O=-1!==C.indexOf("reconnect");a&&g&&m();var j={};return(a||u)&&(j.withCredentials=!0),a&&(j.headers={Authorization:"Bearer ".concat(a)}),new l((function(e){var t,n=s(),r=!1;function o(){r||(O&&e.next({type:"reconnect"}),r||n.readyState===v.CLOSED&&(u(),clearTimeout(t),t=setTimeout(c,100)))}function i(t){e.error(x(t))}function a(t){var n=w(t);return n instanceof Error?e.error(n):e.next(n)}function l(t){r=!0,u(),e.complete()}function u(){n.removeEventListener("error",o,!1),n.removeEventListener("channelError",i,!1),n.removeEventListener("disconnect",l,!1),C.forEach((function(e){return n.removeEventListener(e,a,!1)})),n.close()}function s(){var e=new v(E,j);return e.addEventListener("error",o,!1),e.addEventListener("channelError",i,!1),e.addEventListener("disconnect",l,!1),C.forEach((function(t){return e.addEventListener(t,a,!1)})),e}function c(){n=s()}return function(){r=!0,u()}}))}},7285:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1725),i=n(4779),a=n(5152),l=a.validateObject,u=a.validateInsert;function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=e,this.operations=o({},t),this.client=n}o(s.prototype,{clone:function(){return new s(this.selection,o({},this.operations),this.client)},set:function(e){return this._assign("set",e)},diffMatchPatch:function(e){return l("diffMatchPatch",e),this._assign("diffMatchPatch",e)},unset:function(e){if(!Array.isArray(e))throw new Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=o({},this.operations,{unset:e}),this},setIfMissing:function(e){return this._assign("setIfMissing",e)},replace:function(e){return l("replace",e),this._set("set",{$:e})},inc:function(e){return this._assign("inc",e)},dec:function(e){return this._assign("dec",e)},insert:function(e,t,n){var o;return u(e,t,n),this._assign("insert",(r(o={},e,t),r(o,"items",n),o))},append:function(e,t){return this.insert("after","".concat(e,"[-1]"),t)},prepend:function(e,t){return this.insert("before","".concat(e,"[0]"),t)},splice:function(e,t,n,r){var o=t<0?t-1:t,i="undefined"===typeof n||-1===n?-1:Math.max(0,t+n),a=o<0&&i>=0?"":i,l="".concat(e,"[").concat(o,":").concat(a,"]");return this.insert("replace",l,r||[])},ifRevisionId:function(e){return this.operations.ifRevisionID=e,this},serialize:function(){return o(i(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var e=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 t="string"===typeof this.selection,n=o({returnFirst:t,returnDocuments:!0},e);return this.client.mutate({patch:this.serialize()},n)},reset:function(){return this.operations={},this},_set:function(e,t){return this._assign(e,t,!1)},_assign:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return l(e,t),this.operations=o({},this.operations,r({},e,o({},n&&this.operations[e]||{},t))),this}}),e.exports=s},9439:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(1725),i=n(5152),a=n(7285),l={returnDocuments:!1};function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;this.trxId=n,this.operations=e,this.client=t}o(u.prototype,{clone:function(){return new u(this.operations.slice(0),this.client,this.trxId)},create:function(e){return i.validateObject("create",e),this._add({create:e})},createIfNotExists:function(e){var t="createIfNotExists";return i.validateObject(t,e),i.requireDocumentId(t,e),this._add(r({},t,e))},createOrReplace:function(e){var t="createOrReplace";return i.validateObject(t,e),i.requireDocumentId(t,e),this._add(r({},t,e))},delete:function(e){return i.validateDocumentId("delete",e),this._add({delete:{id:e}})},patch:function(e,t){var n="function"===typeof t;if(e instanceof a)return this._add({patch:e.serialize()});if(n){var r=t(new a(e,{},this.client));if(!(r instanceof a))throw new Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:o({id:e},t)})},transactionId:function(e){return e?(this.trxId=e,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(e){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,e||{}))},reset:function(){return this.operations=[],this},_add:function(e){return this.operations.push(e),this}}),e.exports=u},9806:function(e,t,n){"use strict";var r=n(1725),o=n(5152);function i(e){this.request=e.request.bind(e)}r(i.prototype,{create:function(e,t){return this._modify("PUT",e,t)},edit:function(e,t){return this._modify("PATCH",e,t)},delete:function(e){return this._modify("DELETE",e)},list:function(){return this.request({uri:"/datasets"})},_modify:function(e,t,n){return o.dataset(t),this.request({method:e,uri:"/datasets/".concat(t),body:n})}}),e.exports=i},9402:function(e){"use strict";e.exports=[]},2093:function(e,t,n){"use strict";var r=n(1064),o=n(1725);function i(e){var t=l(e);i.super.call(this,t.message),o(this,t)}function a(e){var t=l(e);a.super.call(this,t.message),o(this,t)}function l(e){var t=e.body,n={response:e,statusCode:e.statusCode,responseBody:u(t,e)};return t.error&&t.message?(n.message="".concat(t.error," - ").concat(t.message),n):t.error&&t.error.description?(n.message=t.error.description,n.details=t.error,n):(n.message=t.error||t.message||function(e){var t=e.statusMessage?" ".concat(e.statusMessage):"";return"".concat(e.method,"-request to ").concat(e.url," resulted in HTTP ").concat(e.statusCode).concat(t)}(e),n)}function u(e,t){return-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(e,null,2):e}r(i),r(a),t.ClientError=i,t.ServerError=a},307:function(e){"use strict";e.exports=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(e[n])));return t.length>0?"?".concat(t.join("&")):""}},2197:function(e,t,n){"use strict";var r=n(9434),o=n(1725),i=n(1947),a=n(337),l=n(9034),u=n(7173),s=n(3899).Observable,c=n(2093),f=c.ClientError,d=c.ServerError,p={onResponse:function(e){if(e.statusCode>=500)throw new d(e);if(e.statusCode>=400)throw new f(e);return e}},h={onResponse:function(e){var t=e.headers["x-sanity-warning"];return(Array.isArray(t)?t:[t]).filter(Boolean).forEach((function(e){return console.warn(e)})),e}},m=r(n(9402).concat([h,a(),l(),u(),p,i({implementation:s})]));function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return t(o({maxRedirects:0},e))}g.defaultRequester=m,g.ClientError=f,g.ServerError=d,e.exports=g},7865:function(e,t,n){"use strict";var r=n(1725),o="X-Sanity-Project-ID";e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},i=t.token||e.token;i&&(n.Authorization="Bearer ".concat(i)),t.useGlobalApi||e.useProjectHostname||!e.projectId||(n[o]=e.projectId);var a=Boolean("undefined"===typeof t.withCredentials?e.token||e.withCredentials:t.withCredentials),l="undefined"===typeof t.timeout?e.timeout:t.timeout;return r({},t,{headers:r({},n,t.headers||{}),timeout:"undefined"===typeof l?3e5:l,proxy:t.proxy||e.proxy,json:!0,withCredentials:a})}},4709:function(e,t,n){"use strict";function r(e){this.client=e}n(1725)(r.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(e){return this.client.request({uri:"/projects/".concat(e)})}}),e.exports=r},8910:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(1725),a=n(3899),l=a.Observable,u=a.map,s=a.filter,c=n(7285),f=n(9439),d=n(693),p=n(9806),h=n(4709),m=n(7143),g=n(631),v=n(4284),y=n(2197),b=n(7865),w=n(1897),x=w.defaultConfig,S=w.initConfig,k=n(5152);function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x;if(!(this instanceof E))return new E(e);if(this.config(e),this.assets=new m(this),this.datasets=new p(this),this.projects=new h(this),this.users=new g(this),this.auth=new v(this),this.clientConfig.isPromiseAPI){var t=i({},this.clientConfig,{isPromiseAPI:!1});this.observable=new E(t)}}i(E.prototype,d),i(E.prototype,{clone:function(){return new E(this.config())},config:function(e){if("undefined"===typeof e)return i({},this.clientConfig);if(this.observable){var t=i({},e,{isPromiseAPI:!1});this.observable.config(t)}return this.clientConfig=S(e,this.clientConfig||{}),this},withConfig:function(e){return this.clone().config(e)},getUrl:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(n,"/").concat(e.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(e){var t=this,n=e.url||e.uri,a="undefined"===typeof e.canUseCdn?["GET","HEAD"].indexOf(e.method||"GET")>=0&&0===n.indexOf("/data/"):e.canUseCdn,u=this.clientConfig.useCdn&&a,s=e.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,e.tag].join("."):e.tag||this.clientConfig.requestTagPrefix;s&&(e.query=function(e){for(var t=1;t)","* Array of document IDs","* Object containing `query`"].join("\n");throw new Error("Unknown selection - must be one of:\n\n".concat(t))}},3899:function(e,t,n){"use strict";var r=n(5726).Observable,o=n(6736).filter,i=n(2601).map;e.exports={Observable:r,filter:o,map:i}},9541:function(e){"use strict";e.exports=function(e){var t,n=!1;return function(){return n||(t=e.apply(void 0,arguments),n=!0),t}}},581:function(e){"use strict";e.exports=function(e,t){return t.reduce((function(t,n){return"undefined"===typeof e[n]||(t[n]=e[n]),t}),{})}},5152:function(e,t){"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}var r=["image","file"],o=["before","after","replace"];t.dataset=function(e){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw new Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},t.projectId=function(e){if(!/^[-a-z0-9]+$/i.test(e))throw new Error("`projectId` can only contain only a-z, 0-9 and dashes")},t.validateAssetType=function(e){if(-1===r.indexOf(e))throw new Error("Invalid asset type: ".concat(e,". Must be one of ").concat(r.join(", ")))},t.validateObject=function(e,t){if(null===t||"object"!==n(t)||Array.isArray(t))throw new Error("".concat(e,"() takes an object of properties"))},t.requireDocumentId=function(e,n){if(!n._id)throw new Error("".concat(e,'() requires that the document contains an ID ("_id" property)'));t.validateDocumentId(e,n._id)},t.validateDocumentId=function(e,t){if("string"!==typeof t||!/^[a-z0-9_.-]+$/i.test(t))throw new Error("".concat(e,'(): "').concat(t,'" is not a valid document ID'))},t.validateInsert=function(e,t,n){var r="insert(at, selector, items)";if(-1===o.indexOf(e)){var i=o.map((function(e){return'"'.concat(e,'"')})).join(", ");throw new Error("".concat(r,' takes an "at"-argument which is one of: ').concat(i))}if("string"!==typeof t)throw new Error("".concat(r,' takes a "selector"-argument which must be a string'));if(!Array.isArray(n))throw new Error("".concat(r,' takes an "items"-argument which must be an array'))},t.hasDataset=function(e){if(!e.dataset)throw new Error("`dataset` must be provided to perform queries");return e.dataset||""},t.requestTag=function(e){if("string"!==typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw new Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e}},8277:function(e,t,n){"use strict";var r=n(9421),o=n(9541),i=function(e){return o((function(){for(var t,n=arguments.length,r=new Array(n),o=0;ol){var u=Math.round(i.height),s=Math.round(u*l),c=Math.max(0,Math.round(i.top)),f=Math.round((a.right-a.left)/2+a.left),d=Math.max(0,Math.round(f-s/2));di.left+i.width&&(d=i.left+i.width-s),n={left:d,top:c,width:s,height:u}}else{var p=i.width,h=Math.round(p/l),m=Math.max(0,Math.round(i.left)),g=Math.round((a.bottom-a.top)/2+a.top),v=Math.max(0,Math.round(g-h/2));vi.top+i.height&&(v=i.top+i.height-h),n={left:m,top:v,width:p,height:h}}return{width:r,height:o,rect:n}}var p=["clip","crop","fill","fillmax","max","scale","min"],h=["top","bottom","left","right","center","focalpoint","entropy"],m=["format"];function g(e){return!!e&&"object"===typeof e.clientConfig}function v(e){for(var t=0,n=s;t0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l,c=[],f=s.reduce((function(e,t){return e[t]=e[t]||[],e}),{processOptions:[i],validateOptions:[a]});function d(e){var t=u.reduce((function(e,t){return e[t]=r(),e}),{}),i=o(f),a=i("processOptions",e);i("validateOptions",a);var l={options:a,channels:t,applyMiddleware:i},s=null,c=t.request.subscribe((function(e){s=n(e,(function(n,r){return function(e,r,o){var a=e,l=r;if(!a)try{l=i("onResponse",r,o)}catch(n){l=null,a=n}(a=a&&i("onError",a,o))?t.error.publish(a):l&&t.response.publish(l)}(n,r,e)}))}));t.abort.subscribe((function(){c(),s&&s.abort()}));var d=i("onReturn",t,l);return d===t&&t.request.publish(l),d}return d.use=function(e){if(!e)throw new Error("Tried to add middleware that resolved to falsey value");if("function"===typeof e)throw new Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.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 s.forEach((function(t){e[t]&&f[t].push(e[t])})),c.push(e),d},d.clone=function(){return e(c)},t.forEach(d.use),d}},8089:function(e,t,n){"use strict";var r=n(1725),o=n(5915),i="undefined"!==typeof navigator&&"ReactNative"===navigator.product,a=Object.prototype.hasOwnProperty,l={timeout:i?6e4:12e4};function u(e){var t=[];for(var n in e)a.call(e,n)&&r(n,e[n]);return t.length?t.join("&"):"";function r(e,n){Array.isArray(n)?n.forEach((function(t){return r(e,t)})):t.push([e,n].map(encodeURIComponent).join("="))}}function s(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?s(l.timeout):{connect:t,socket:t}}e.exports=function(e){var t="string"===typeof e?r({url:e},l):r({},l,e),n=o(t.url,{},!0);return t.timeout=s(t.timeout),t.query&&(n.query=r({},n.query,function(e){var t={};for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}(t.query))),t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t.url=n.toString(u),t}},6255:function(e){"use strict";var t=/^https?:\/\//i;e.exports=function(e){if(!t.test(e.url))throw new Error('"'.concat(e.url,'" is not a valid URL'))}},337:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(1725),i=n(4807),a=["boolean","string","number"];e.exports=function(){return{processOptions:function(e){var t,n=e.body;return n&&!("function"===typeof n.pipe)&&!((t=n).constructor&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t))&&(-1!==a.indexOf(r(n))||Array.isArray(n)||i(n))?o({},e,{body:JSON.stringify(e.body),headers:o({},e.headers,{"Content-Type":"application/json"})}):e}}}},9034:function(e,t,n){"use strict";var r=n(1725);function o(e){try{return JSON.parse(e)}catch(t){throw t.message="Failed to parsed response body as JSON: ".concat(t.message),t}}e.exports=function(e){return{onResponse:function(t){var n=t.headers["content-type"]||"",i=e&&e.force||-1!==n.indexOf("application/json");return t.body&&n&&i?r({},t,{body:o(t.body)}):t},processOptions:function(e){return r({},e,{headers:r({Accept:"application/json"},e.headers)})}}}},1947:function(e,t,n){"use strict";var r=n(7193),o=n(1725);e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.implementation||r.Observable;if(!t)throw new Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(e,n){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(n),function(){return e.abort.publish()}}))}}}},7791:function(e){"use strict";e.exports=function(){return{onRequest:function(e){if("xhr"===e.adapter){var t=e.request,n=e.context;"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=r("upload")),"onprogress"in t&&(t.onprogress=r("download"))}function r(e){return function(t){var r=t.lengthComputable?t.loaded/t.total*100:-1;n.channels.progress.publish({stage:e,percent:r,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}}}}},7173:function(e,t,n){"use strict";e.exports=n(7791)},4757:function(e,t,n){"use strict";var r=n(6784),o=n(9913),i=n(7390),a="undefined"===typeof window?void 0:window,l=a?"xhr":"fetch",u="function"===typeof XMLHttpRequest?XMLHttpRequest:function(){},s="withCredentials"in new u,c="undefined"===typeof XDomainRequest?void 0:XDomainRequest,f=s?u:c;a||(u=i,f=i),e.exports=function(e,t){var n=e.options,i=e.applyMiddleware("finalizeOptions",n),s={},c=a&&a.location&&!r(a.location.href,i.url),d=e.applyMiddleware("interceptRequest",void 0,{adapter:l,context:e});if(d){var p=setTimeout(t,0,null,d);return{abort:function(){return clearTimeout(p)}}}var h=c?new f:new u,m=a&&a.XDomainRequest&&h instanceof a.XDomainRequest,g=i.headers,v=i.timeout,y=!1,b=!1,w=!1;if(h.onerror=E,h.ontimeout=E,h.onabort=function(){k(!0),y=!0},h.onprogress=function(){},h[m?"onload":"onreadystatechange"]=function(){!function(){if(!v)return;k(),s.socket=setTimeout((function(){return S("ESOCKETTIMEDOUT")}),v.socket)}(),y||4!==h.readyState&&!m||0!==h.status&&function(){if(y||b||w)return;if(0===h.status)return void E(new Error("Unknown XHR error"));k(),b=!0,t(null,function(){var e=h.status,t=h.statusText;if(m&&void 0===e)e=200;else{if(e>12e3&&e<12156)return E();e=1223===h.status?204:h.status,t=1223===h.status?"No Content":t}return{body:h.response||h.responseText,url:i.url,method:i.method,headers:m?{}:o(h.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},h.open(i.method,i.url,!0),h.withCredentials=!!i.withCredentials,g&&h.setRequestHeader)for(var x in g)g.hasOwnProperty(x)&&h.setRequestHeader(x,g[x]);else if(g&&m)throw new Error("Headers cannot be set on an XDomainRequest object");return i.rawBody&&(h.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:i,adapter:l,request:h,context:e}),h.send(i.body||null),v&&(s.connect=setTimeout((function(){return S("ETIMEDOUT")}),v.connect)),{abort:function(){y=!0,h&&h.abort()}};function S(t){w=!0,h.abort();var n=new Error("ESOCKETTIMEDOUT"===t?"Socket timed out on request to ".concat(i.url):"Connection timed out on request to ".concat(i.url));n.code=t,e.channels.error.publish(n)}function k(e){(e||y||h.readyState>=2&&s.connect)&&clearTimeout(s.connect),s.socket&&clearTimeout(s.socket)}function E(e){if(!b){k(!0),b=!0,h=null;var n=e||new Error("Network error while attempting to reach ".concat(i.url));n.isNetworkError=!0,n.request=i,t(n)}}}},7390:function(e){"use strict";function t(){this.readyState=0}t.prototype.open=function(e,t){this._method=e,this._url=t,this._resHeaders="",this.readyState=1,this.onreadystatechange()},t.prototype.abort=function(){this._controller&&this._controller.abort()},t.prototype.getAllResponseHeaders=function(){return this._resHeaders},t.prototype.setRequestHeader=function(e,t){this._headers=this._headers||{},this._headers[e]=t},t.prototype.send=function(e){var t=this,n=this._controller="function"===typeof AbortController&&new AbortController,r="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:n&&n.signal,body:e};"undefined"!==typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then((function(e){return e.headers.forEach((function(e,n){t._resHeaders+="".concat(n,": ").concat(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()}))},e.exports=t},5910:function(e,t,n){"use strict";e.exports=n(4757)},7193:function(e,t,n){"use strict";"undefined"!==typeof window?e.exports=window:"undefined"!==typeof n.g?e.exports=n.g:"undefined"!==typeof self?e.exports=self:e.exports={}},1258:function(e){"use strict";e.exports=function(e){return function(t,n){for(var r="onError"===t,o=n,i=arguments.length,a=new Array(i>2?i-2:0),l=2;l-1&&e.splice(n,1)}},publish:function(){for(var t=0;t