/*! For license information please see main.dcd37c2d.js.LICENSE.txt */ !function(){var e={1015:function(e,t,n){e.exports=n(329)},5872:function(e,t,n){"use strict";var r=n(1725),o=n(7809),i=n(1157),a=n(5998),s=n(6546),u=["projectId","dataset","imageOptions","ignoreUnknownTypes"],l={imageOptions:{},ignoreUnknownTypes:!0};function c(e){return"block"===e._type&&e.listItem}e.exports=function(e,t,n,f){var d=r({},l,t),p=Array.isArray(d.blocks)?d.blocks:[d.blocks],h=a(p),v=i(h,d.listNestMode),m=s(n,d.serializers||{}),g=u.reduce((function(e,t){var n=d[t];return"undefined"!==typeof n&&(e[t]=n),e}),{});function y(t,n,r,i){return"list"===(a=t)._type&&a.listItem?function(t){var n=t.listItem,r=t.level,o=t._key,i=t.children.map(y);return e(m.list,{key:o,level:r,type:n,options:g},i)}(t):c(t)?function(t,n){var r=t._key,i=o(t).map(y);return e(m.listItem,{node:t,serializers:m,index:n,key:r,options:g},i)}(t,function(e,t){for(var n=0,r=0;r1){var x=d.className?{className:d.className}:{};return e(m.container,x,w)}return w[0]?w[0]:"function"===typeof m.empty?e(m.empty):m.empty}},7809:function(e){"use strict";var t=["strong","em","code","underline","strike-through"];function n(e,t,n){if(!e.marks||0===e.marks.length)return e.marks||[];var o=e.marks.reduce((function(e,r){e[r]=e[r]?e[r]+1:1;for(var o=t+1;or?1:0}e.exports=function(e){var t=e.children,r=e.markDefs;if(!t||!t.length)return[];var o=t.map(n),i={_type:"span",children:[]},a=[i];return t.forEach((function(e,t){var n=o[t];if(n){var i=1;if(a.length>1)for(;i=0;t--){var n=e[t];if("span"===n._type&&n.children)return n}return}(a=a.slice(0,i));if(n.forEach((function(t){var n={_type:"span",_key:e._key,children:[],mark:r.find((function(e){return e._key===t}))||t,markKey:t};c.children.push(n),a.push(n),c=n})),"span"!==(l=e)._type||"string"!==typeof l.text||!Array.isArray(l.marks)&&"undefined"!==typeof l.marks)c.children=c.children.concat(e);else{for(var f=e.text.split("\n"),d=f.length;d-- >1;)f.splice(d,0,"\n");c.children=c.children.concat(f)}}else{a[a.length-1].children.push(e)}})),i.children}},5998:function(e,t,n){"use strict";var r=n(1725);function o(e){var t=0,n=e.length;if(0===n)return t;for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:"html",l=[],c=0;ct.level){var d=a(f);if("html"===n){var p=s(t),h=r({},p,{children:p.children.concat(d)});t.children[t.children.length-1]=h}else t.children.push(d);t=d}else if(f.levele.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),l=a.tag,f=a.label,p=a.title,h=a.description,v=a.creditLine,m=a.filename,g=a.source,y={label:f,title:p,description:h,filename:m,meta:r,creditLine:v};g&&(y.sourceId=g.id,y.sourceName=g.name,y.sourceUrl=g.url);var b=this.client._requestObservable({tag:l,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})),s((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],s=o[3];c.hasDataset(this.client.clientConfig);var u=this.client.clientConfig,f=u.projectId,d=u.dataset,p=t?l(t):"";return"https://cdn.sanity.io/images/".concat(f,"/").concat(d,"/").concat(i,"-").concat(a,".").concat(s).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(1725),o=n(6537),i=n(5152),a=n(8277),s={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,isPromiseAPI:!0},u=["localhost","127.0.0.1","0.0.0.0"];t.defaultConfig=s,t.initConfig=function(e,n){var l=r({},n,e);l.apiVersion||a.printNoApiVersionSpecifiedWarning();var c=r({},s,l),f=c.useProjectHostname;if("undefined"===typeof Promise){var d=o("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===s.apiHost,c.useCdn=Boolean(c.useCdn)&&!c.withCredentials,t.validateApiVersion(c.apiVersion);var v=c.apiHost.split("://",2),m=v[0],g=v[1],y=c.isDefaultApi?"apicdn.sanity.io":g;return c.useProjectHostname?(c.url="".concat(m,"://").concat(c.projectId,".").concat(g,"/v").concat(c.apiVersion),c.cdnUrl="".concat(m,"://").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,s=i.filter,u=n(5152),l=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},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dryRun:e.dryRun,returnIds:!0,returnDocuments:h(e.returnDocuments,!0),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}},m=function(e){return"response"===e.type},g=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(s(m),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(s(m),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:l(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),l=!o&&u.length<11264,f=l?u:"",d=n.returnFirst,p=n.timeout,h=n.token,y=n.tag,b=n.headers,w=this.getDataUrl(e,f),x={method:l?"GET":"POST",uri:w,json:!0,body:l?void 0:t,query:o&&v(n),timeout:p,headers:b,token:h,tag:y,canUseCdn:i};return this._requestObservable(x).pipe(s(m),a(g),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,s=e.options,u=void 0===s?{}:s,l=u.tag,c=n(u,t),f="query=".concat(r(o)),d=l?"?tag=".concat(r(l),"&").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,g=r.requestTagPrefix,y=n.tag&&g?[g,n.tag].join("."):n.tag,b=o(o({},c(n,h)),{},{tag:y}),w=l(b,p),x=f({query:e,params:t,options:w,tag:y}),k="".concat(i).concat(this.getDataUrl("listen",x));if(k.length>14800)return new s((function(e){return e.error(new Error("Query too large for listener"))}));var S=b.events?b.events:["mutation"],E=-1!==S.indexOf("reconnect"),C={};return(a||u)&&(C.withCredentials=!0),a&&(C.headers={Authorization:"Bearer ".concat(a)}),new s((function(e){var t,n=l(),r=!1;function o(){r||(E&&e.next({type:"reconnect"}),r||n.readyState===d.CLOSED&&(u(),clearTimeout(t),t=setTimeout(c,100)))}function i(t){e.error(m(t))}function a(t){var n=v(t);return n instanceof Error?e.error(n):e.next(n)}function s(t){r=!0,u(),e.complete()}function u(){n.removeEventListener("error",o,!1),n.removeEventListener("channelError",i,!1),n.removeEventListener("disconnect",s,!1),S.forEach((function(e){return n.removeEventListener(e,a,!1)})),n.close()}function l(){var e=new d(k,C);return e.addEventListener("error",o,!1),e.addEventListener("channelError",i,!1),e.addEventListener("disconnect",s,!1),S.forEach((function(t){return e.addEventListener(t,a,!1)})),e}function c(){n=l()}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),s=a.validateObject,u=a.validateInsert;function l(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(l.prototype,{clone:function(){return new l(this.selection,o({},this.operations),this.client)},set:function(e){return this._assign("set",e)},diffMatchPatch:function(e){return s("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 s("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,s="".concat(e,"[").concat(o,":").concat(a,"]");return this.insert("replace",s,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 s(e,t),this.operations=o({},this.operations,r({},e,o({},n&&this.operations[e]||{},t))),this}}),e.exports=l},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),s={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},s,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},6537:function(e){"use strict";e.exports=function(e){return"https://docs.sanity.io/help/"+e}},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=s(e);i.super.call(this,t.message),o(this,t)}function a(e){var t=s(e);a.super.call(this,t.message),o(this,t)}function s(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),s=n(9034),u=n(7173),l=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}},v=r(n(9402).concat([h,a(),s(),u(),p,i({implementation:l})]));function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v;return t(o({maxRedirects:0},e))}m.defaultRequester=v,m.ClientError=f,m.ServerError=d,e.exports=m},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),s="undefined"===typeof t.timeout?e.timeout:t.timeout;return r({},t,{headers:r({},n,t.headers||{}),timeout:"undefined"===typeof s?3e5:s,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){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:k;if(!(this instanceof C))return new C(e);if(this.config(e),this.assets=new m(this),this.datasets=new h(this),this.projects=new v(this),this.users=new g(this),this.auth=new y(this),this.clientConfig.isPromiseAPI){var t=a({},this.clientConfig,{isPromiseAPI:!1});this.observable=new C(t)}}a(C.prototype,p),a(C.prototype,{clone:function(){return new C(this.config())},config:function(e){if("undefined"===typeof e)return a({},this.clientConfig);if(this.clientConfig&&!1===this.clientConfig.allowReconfigure)throw new Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");if(this.observable){var t=a({},e,{isPromiseAPI:!1});this.observable.config(t)}return this.clientConfig=S(e,this.clientConfig||{}),this},withConfig:function(e){return new C(o(o({},this.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,r="undefined"===typeof e.canUseCdn?["GET","HEAD"].indexOf(e.method||"GET")>=0&&0===n.indexOf("/data/"):e.canUseCdn,i=this.clientConfig.useCdn&&r,s=e.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,e.tag].join("."):e.tag||this.clientConfig.requestTagPrefix;s&&(e.query=o({tag:E.requestTag(s)},e.query));var l=w(this.clientConfig,a({},e,{url:this.getUrl(n,i)}));return new u((function(e){return b(l,t.clientConfig.requester).subscribe(e)}))},request:function(e){var t=this._requestObservable(e).pipe(c((function(e){return"response"===e.type})),l((function(e){return e.body})));return this.isPromiseAPI()?function(e){return e.toPromise()}(t):t}}),C.Patch=f,C.Transaction=d,C.ClientError=b.ClientError,C.ServerError=b.ServerError,C.requester=b.defaultRequester,e.exports=C},631:function(e,t,n){"use strict";function r(e){this.client=e}n(1725)(r.prototype,{getById:function(e){return this.client.request({uri:"/users/".concat(e)})}}),e.exports=r},7282:function(e){"use strict";e.exports=function(e,t){return Object.keys(t).concat(Object.keys(e)).reduce((function(n,r){return n[r]="undefined"===typeof e[r]?t[r]:e[r],n}),{})}},4779:function(e){"use strict";e.exports=function(e){if("string"===typeof e||Array.isArray(e))return{id:e};if(e&&e.query)return"params"in e?{query:e.query,params:e.params}:{query:e.query};var t=["* Document ID ()","* 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(6537),o=n(9541),i=function(e){return o((function(){for(var t,n=arguments.length,r=new Array(n),o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var o="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function i(e){var t=e.split("-"),n=t[1],r=t[2],i=t[3];if(!n||!r||!i)throw new Error("Malformed asset _ref '"+e+"'. Expected an id like \""+o+'".');var a=r.split("x"),s=+a[0],u=+a[1];if(!isFinite(s)||!isFinite(u))throw new Error("Malformed asset _ref '"+e+"'. Expected an id like \""+o+'".');return{id:n,width:s,height:u,format:i}}var a=function(e){return!!e&&"string"===typeof e._ref},s=function(e){return!!e&&"string"===typeof e._id},u=function(e){var t=e;return!(!t||!t.asset)&&"string"===typeof t.asset.url};function l(e){if(!e)return null;var t;if("string"===typeof e&&c(e))t={asset:{_ref:f(e)}};else if("string"===typeof e)t={asset:{_ref:e}};else if(a(e))t={asset:e};else if(s(e))t={asset:{_ref:e._id||""}};else if(u(e))t={asset:{_ref:f(e.asset.url)}};else{if("object"!==typeof e.asset)return null;t=e}var n=e;return n.crop&&(t.crop=n.crop),n.hotspot&&(t.hotspot=n.hotspot),d(t)}function c(e){return/^https?:\/\//.test(""+e)}function f(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}function d(t){if(t.crop&&t.hotspot)return t;var n=e({},t);return n.crop||(n.crop={left:0,top:0,bottom:0,right:0}),n.hotspot||(n.hotspot={x:.5,y:.5,height:1,width:1}),n}var p=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]];function h(t){var n=e({},t||{}),r=n.source;delete n.source;var o=l(r);if(!o)return null;var a=i(o.asset._ref||o.asset._id||""),s=Math.round(o.crop.left*a.width),u=Math.round(o.crop.top*a.height),c={left:s,top:u,width:Math.round(a.width-o.crop.right*a.width-s),height:Math.round(a.height-o.crop.bottom*a.height-u)},f=o.hotspot.height*a.height/2,d=o.hotspot.width*a.width/2,p=o.hotspot.x*a.width,h=o.hotspot.y*a.height,g={left:p-d,top:h-f,right:p+d,bottom:h+f};return n.rect||n.focalPoint||n.ignoreImageParams||n.crop||(n=e(e({},n),m({crop:c,hotspot:g},n))),v(e(e({},n),{},{asset:a}))}function v(e){var t=e.baseUrl||"https://cdn.sanity.io",n=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format,r=t+"/images/"+e.projectId+"/"+e.dataset+"/"+n,o=[];if(e.rect){var i=e.rect,a=i.left,s=i.top,u=i.width,l=i.height;(0!==a||0!==s||l!==e.asset.height||u!==e.asset.width)&&o.push("rect="+a+","+s+","+u+","+l)}e.bg&&o.push("bg="+e.bg),e.focalPoint&&(o.push("fp-x="+e.focalPoint.x),o.push("fp-y="+e.focalPoint.y));var c=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return c&&o.push("flip="+c),p.forEach((function(t){var n=t[0],r=t[1];"undefined"!==typeof e[n]?o.push(r+"="+encodeURIComponent(e[n])):"undefined"!==typeof e[r]&&o.push(r+"="+encodeURIComponent(e[r]))})),0===o.length?r:r+"?"+o.join("&")}function m(e,t){var n,r=t.width,o=t.height;if(!r||!o)return{width:r,height:o,rect:e.crop};var i=e.crop,a=e.hotspot,s=r/o;if(i.width/i.height>s){var u=i.height,l=u*s,c=i.top,f=(a.right-a.left)/2+a.left-l/2;fi.left+i.width&&(f=i.left+i.width-l),n={left:Math.round(f),top:Math.round(c),width:Math.round(l),height:Math.round(u)}}else{var d=i.width,p=d/s,h=i.left,v=(a.bottom-a.top)/2+a.top-p/2;vi.top+i.height&&(v=i.top+i.height-p),n={left:Math.max(0,Math.floor(h)),top:Math.max(0,Math.floor(v)),width:Math.round(d),height:Math.round(p)}}return{width:r,height:o,rect:n}}var g=["clip","crop","fill","fillmax","max","scale","min"],y=["top","bottom","left","right","center","focalpoint","entropy"],b=["format"];function w(e){return!!e&&"object"===typeof e.clientConfig}function x(e){for(var t,n=r(p);!(t=n()).done;){var o=t.value,i=o[0],a=o[1];if(e===i||e===a)return i}return e}function k(e){var t=e;if(w(t)){var n=t.clientConfig,r=n.apiHost,o=n.projectId,i=n.dataset;return new S(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:o,dataset:i})}return new S(null,e)}var S=function(){function t(t,n){this.options=e(t?e({},t.options||{}):{},n||{})}var n=t.prototype;return n.withOptions=function(n){var r=n.baseUrl||this.options.baseUrl,o={baseUrl:r};for(var i in n)n.hasOwnProperty(i)&&(o[x(i)]=n[i]);return new t(this,e({baseUrl:r},o))},n.image=function(e){return this.withOptions({source:e})},n.dataset=function(e){return this.withOptions({dataset:e})},n.projectId=function(e){return this.withOptions({projectId:e})},n.bg=function(e){return this.withOptions({bg:e})},n.dpr=function(e){return this.withOptions({dpr:e})},n.width=function(e){return this.withOptions({width:e})},n.height=function(e){return this.withOptions({height:e})},n.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},n.maxWidth=function(e){return this.withOptions({maxWidth:e})},n.minWidth=function(e){return this.withOptions({minWidth:e})},n.maxHeight=function(e){return this.withOptions({maxHeight:e})},n.minHeight=function(e){return this.withOptions({minHeight:e})},n.size=function(e,t){return this.withOptions({width:e,height:t})},n.blur=function(e){return this.withOptions({blur:e})},n.sharpen=function(e){return this.withOptions({sharpen:e})},n.rect=function(e,t,n,r){return this.withOptions({rect:{left:e,top:t,width:n,height:r}})},n.format=function(e){return this.withOptions({format:e})},n.invert=function(e){return this.withOptions({invert:e})},n.orientation=function(e){return this.withOptions({orientation:e})},n.quality=function(e){return this.withOptions({quality:e})},n.forceDownload=function(e){return this.withOptions({download:e})},n.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},n.flipVertical=function(){return this.withOptions({flipVertical:!0})},n.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},n.fit=function(e){if(-1===g.indexOf(e))throw new Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},n.crop=function(e){if(-1===y.indexOf(e))throw new Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})},n.saturation=function(e){return this.withOptions({saturation:e})},n.auto=function(e){if(-1===b.indexOf(e))throw new Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})},n.pad=function(e){return this.withOptions({pad:e})},n.url=function(){return h(this.options)},n.toString=function(){return this.url()},t}();return k}()},7945:function(e){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var o=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]&&arguments[0]&&(h=!0),h)return p=(0,f.default)(p,v),(0,c.default)(p,v.once),p},g=function(){p=(0,d.default)(),m()},y=function(){p.forEach((function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")}))},b=function(e){return!0===e||"mobile"===e&&l.default.mobile()||"phone"===e&&l.default.phone()||"tablet"===e&&l.default.tablet()||"function"==typeof e&&!0===e()},w=function(e){v=o(v,e),p=(0,d.default)();var t=document.all&&!window.atob;return b(v.disable)||t?y():(v.disableMutationObserver||u.default.isSupported()||(console.info('\n aos: MutationObserver is not supported on this browser,\n code mutations observing has been disabled.\n You may have to call "refreshHard()" by yourself.\n '),v.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",v.easing),document.querySelector("body").setAttribute("data-aos-duration",v.duration),document.querySelector("body").setAttribute("data-aos-delay",v.delay),"DOMContentLoaded"===v.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?m(!0):"load"===v.startEvent?window.addEventListener(v.startEvent,(function(){m(!0)})):document.addEventListener(v.startEvent,(function(){m(!0)})),window.addEventListener("resize",(0,s.default)(m,v.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(m,v.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)((function(){(0,c.default)(p,v.once)}),v.throttleDelay)),v.disableMutationObserver||u.default.ready("[data-aos]",g),p)};e.exports={init:w,refresh:m,refreshHard:g}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function r(t){var n=v,r=m;return v=m=void 0,E=t,y=e.apply(r,n)}function i(e){return E=e,b=setTimeout(c,t),C?r(e):y}function a(e){var n=t-(e-w);return j?k(n,g-(e-E)):n}function u(e){var n=e-w;return void 0===w||n>=t||n<0||j&&e-E>=g}function c(){var e=S();return u(e)?f(e):void(b=setTimeout(c,a(e)))}function f(e){return b=void 0,P&&v?r(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),E=0,v=w=m=b=void 0}function p(){return void 0===b?y:f(S())}function h(){var e=S(),n=u(e);if(v=arguments,m=this,w=e,n){if(void 0===b)return i(w);if(j)return b=setTimeout(c,t),r(w)}return void 0===b&&(b=setTimeout(c,t)),y}var v,m,g,y,b,w,E=0,C=!1,j=!1,P=!0;if("function"!=typeof e)throw new TypeError(l);return t=s(t)||0,o(n)&&(C=!!n.leading,g=(j="maxWait"in n)?x(s(n.maxWait)||0,t):g,P="trailing"in n?!!n.trailing:P),h.cancel=d,h.flush=p,h}function r(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(l);return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}function o(e){var t="undefined"==typeof e?"undefined":u(e);return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==("undefined"==typeof e?"undefined":u(e))}function a(e){return"symbol"==("undefined"==typeof e?"undefined":u(e))||i(e)&&w.call(e)==f}function s(e){if("number"==typeof e)return e;if(a(e))return c;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=h.test(e);return n||v.test(e)?m(e.slice(2),n?2:8):p.test(e)?c:+e}var u="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},l="Expected a function",c=NaN,f="[object Symbol]",d=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,h=/^0b[01]+$/i,v=/^0o[0-7]+$/i,m=parseInt,g="object"==("undefined"==typeof t?"undefined":u(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,b=g||y||Function("return this")(),w=Object.prototype.toString,x=Math.max,k=Math.min,S=function(){return b.Date.now()};e.exports=r}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=v,r=m;return v=m=void 0,E=t,y=e.apply(r,n)}function i(e){return E=e,b=setTimeout(c,t),C?o(e):y}function s(e){var n=t-(e-S);return j?x(n,g-(e-E)):n}function l(e){var n=e-S;return void 0===S||n>=t||n<0||j&&e-E>=g}function c(){var e=k();return l(e)?f(e):void(b=setTimeout(c,s(e)))}function f(e){return b=void 0,P&&v?o(e):(v=m=void 0,y)}function d(){void 0!==b&&clearTimeout(b),E=0,v=S=m=b=void 0}function p(){return void 0===b?y:f(k())}function h(){var e=k(),n=l(e);if(v=arguments,m=this,S=e,n){if(void 0===b)return i(S);if(j)return b=setTimeout(c,t),o(S)}return void 0===b&&(b=setTimeout(c,t)),y}var v,m,g,y,b,S,E=0,C=!1,j=!1,P=!0;if("function"!=typeof e)throw new TypeError(u);return t=a(t)||0,r(n)&&(C=!!n.leading,g=(j="maxWait"in n)?w(a(n.maxWait)||0,t):g,P="trailing"in n?!!n.trailing:P),h.cancel=d,h.flush=p,h}function r(e){var t="undefined"==typeof e?"undefined":s(e);return!!e&&("object"==t||"function"==t)}function o(e){return!!e&&"object"==("undefined"==typeof e?"undefined":s(e))}function i(e){return"symbol"==("undefined"==typeof e?"undefined":s(e))||o(e)&&b.call(e)==c}function a(e){if("number"==typeof e)return e;if(i(e))return l;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(f,"");var n=p.test(e);return n||h.test(e)?v(e.slice(2),n?2:8):d.test(e)?l:+e}var s="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},u="Expected a function",l=NaN,c="[object Symbol]",f=/^\s+|\s+$/g,d=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,h=/^0o[0-7]+$/i,v=parseInt,m="object"==("undefined"==typeof t?"undefined":s(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":s(self))&&self&&self.Object===Object&&self,y=m||g||Function("return this")(),b=Object.prototype.toString,w=Math.max,x=Math.min,k=function(){return y.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e){var t=void 0,r=void 0;for(t=0;te.position?e.node.classList.add("aos-animate"):"undefined"!=typeof r&&("false"===r||!n&&"true"!==r)&&e.node.classList.remove("aos-animate")},r=function(e,t){var r=window.pageYOffset,o=window.innerHeight;e.forEach((function(e,i){n(e,o+r,t)}))};t.default=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(12)),i=function(e,t){return e.forEach((function(e,n){e.node.classList.add("aos-init"),e.position=(0,o.default)(e.node,t.offset)})),e};t.default=i},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(13)),i=function(e,t){var n=0,r=0,i=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(r=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,o.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=i/2;break;case"bottom-center":n+=i/2+e.offsetHeight;break;case"center-center":n+=i/2+e.offsetHeight/2;break;case"top-top":n+=i;break;case"bottom-top":n+=e.offsetHeight+i;break;case"center-top":n+=e.offsetHeight/2+i}return a.anchorPlacement||a.offset||isNaN(t)||(r=t),n+r};t.default=i},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,(function(e){return{node:e}}))};t.default=n}])},4048:function(e,t){var n,r,o;!function(i){"use strict";var a=i.setTimeout,s=i.clearTimeout,u=i.XMLHttpRequest,l=i.XDomainRequest,c=i.ActiveXObject,f=i.EventSource,d=i.document,p=i.Promise,h=i.fetch,v=i.Response,m=i.TextDecoder,g=i.TextEncoder,y=i.AbortController;if("undefined"===typeof window||"undefined"===typeof d||"readyState"in d||null!=d.body||(d.readyState="loading",window.addEventListener("load",(function(e){d.readyState="complete"}),!1)),null==u&&null!=c&&(u=function(){return new c("Microsoft.XMLHTTP")}),void 0==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),void 0==y){var b=h;h=function(e,t){var n=t.signal;return b(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}}))},y=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function w(){this.bitsNeeded=0,this.codePoint=0}w.prototype.decode=function(e){function t(e,t,n){if(1===n)return e>=128>>t&&e<=2048>>t&&e<=57344>>t&&e<=65536>>t&&e<>6>15?3:t>31?2:1;if(12===e)return t>15?3:2;if(18===e)return 3;throw new Error}for(var r=65533,o="",i=this.bitsNeeded,a=this.codePoint,s=0;s191||!t(a<<6|63&u,i-6,n(i,a)))&&(i=0,a=r,o+=String.fromCharCode(a)),0===i?(u>=0&&u<=127?(i=0,a=u):u>=192&&u<=223?(i=6,a=31&u):u>=224&&u<=239?(i=12,a=15&u):u>=240&&u<=247?(i=18,a=7&u):(i=0,a=r),0===i||t(a,i,n(i,a))||(i=0,a=r)):(i-=6,a=a<<6|63&u),0===i&&(a<=65535?o+=String.fromCharCode(a):(o+=String.fromCharCode(55296+(a-65535-1>>10)),o+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=i,this.codePoint=a,o};void 0!=m&&void 0!=g&&function(){try{return"test"===(new m).decode((new g).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}return!1}()||(m=w);var x=function(){};function k(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=x,this.onload=x,this.onerror=x,this.onreadystatechange=x,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=x}function S(e){return e.replace(/[A-Z]/g,(function(e){return String.fromCharCode(e.charCodeAt(0)+32)}))}function E(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,c=[],f=l.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 s={options:a,channels:t,applyMiddleware:i},l=null,c=t.request.subscribe((function(e){l=n(e,(function(n,r){return function(e,r,o){var a=e,s=r;if(!a)try{s=i("onResponse",r,o)}catch(n){s=null,a=n}(a=a&&i("onError",a,o))?t.error.publish(a):s&&t.response.publish(s)}(n,r,e)}))}));t.abort.subscribe((function(){c(),l&&l.abort()}));var d=i("onReturn",t,s);return d===t&&t.request.publish(s),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 l.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,s={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 l(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var t=Number(e);return isNaN(t)?l(s.timeout):{connect:t,socket:t}}e.exports=function(e){var t="string"===typeof e?r({url:e},s):r({},s,e),n=o(t.url,{},!0);return t.timeout=l(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,s=a?"xhr":"fetch",u="function"===typeof XMLHttpRequest?XMLHttpRequest:function(){},l="withCredentials"in new u,c="undefined"===typeof XDomainRequest?void 0:XDomainRequest,f=l?u:c;a||(u=i,f=i),e.exports=function(e,t){var n=e.options,i=e.applyMiddleware("finalizeOptions",n),l={},c=a&&a.location&&!r(a.location.href,i.url),d=e.applyMiddleware("interceptRequest",void 0,{adapter:s,context:e});if(d){var p=setTimeout(t,0,null,d);return{abort:function(){return clearTimeout(p)}}}var h=c?new f:new u,v=a&&a.XDomainRequest&&h instanceof a.XDomainRequest,m=i.headers,g=i.timeout,y=!1,b=!1,w=!1;if(h.onerror=E,h.ontimeout=E,h.onabort=function(){S(!0),y=!0},h.onprogress=function(){},h[v?"onload":"onreadystatechange"]=function(){!function(){if(!g)return;S(),l.socket=setTimeout((function(){return k("ESOCKETTIMEDOUT")}),g.socket)}(),y||4!==h.readyState&&!v||0!==h.status&&function(){if(y||b||w)return;if(0===h.status)return void E(new Error("Unknown XHR error"));S(),b=!0,t(null,function(){var e=h.status,t=h.statusText;if(v&&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:v?{}:o(h.getAllResponseHeaders()),statusCode:e,statusMessage:t}}())}()},h.open(i.method,i.url,!0),h.withCredentials=!!i.withCredentials,m&&h.setRequestHeader)for(var x in m)m.hasOwnProperty(x)&&h.setRequestHeader(x,m[x]);else if(m&&v)throw new Error("Headers cannot be set on an XDomainRequest object");return i.rawBody&&(h.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:i,adapter:s,request:h,context:e}),h.send(i.body||null),g&&(l.connect=setTimeout((function(){return k("ETIMEDOUT")}),g.connect)),{abort:function(){y=!0,h&&h.abort()}};function k(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 S(e){(e||y||h.readyState>=2&&l.connect)&&clearTimeout(l.connect),l.socket&&clearTimeout(l.socket)}function E(e){if(!b){S(!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 globalThis?e.exports=globalThis:"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),s=2;s-1&&e.splice(n,1)}},publish:function(){for(var t=0;t