PageSourceSearch

https://www.gonoodle.com/company/_next/static/chunks/117-eb0f4ee60da1720e.js

js gonoodle.com collected 2026-09-24 08:54:42 UTC 82,547 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[117],{125:(t,e,r)=>{t.exports=r(4472)},176:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5354);function o(t){return 0===t.length?n.identity:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}e.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o(t)},e.pipeFromArray=o},182:(t,e)=>{"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n=["image","file"],o=["before","after","replace"];e.dataset=function(t){if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},e.projectId=function(t){if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")},e.validateAssetType=function(t){if(-1===n.indexOf(t))throw Error("Invalid asset type: ".concat(t,". Must be one of ").concat(n.join(", ")))},e.validateObject=function(t,e){if(null===e||"object"!==r(e)||Array.isArray(e))throw Error("".concat(t,"() takes an object of properties"))},e.requireDocumentId=function(t,r){if(!r._id)throw Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));e.validateDocumentId(t,r._id)},e.validateDocumentId=function(t,e){if("string"!=typeof e||!/^[a-z0-9_.-]+$/i.test(e))throw Error("".concat(t,'(): "').concat(e,'" is not a valid document ID'))},e.validateInsert=function(t,e,r){var n="insert(at, selector, items)";if(-1===o.indexOf(t)){var i=o.map(function(t){return'"'.concat(t,'"')}).join(", ");throw Error("".concat(n,' takes an "at"-argument which is one of: ').concat(i))}if("string"!=typeof e)throw Error("".concat(n,' takes a "selector"-argument which must be a string'));if(!Array.isArray(r))throw Error("".concat(n,' takes an "items"-argument which must be an array'))},e.hasDataset=function(t){if(!t.gradientMode&&!t.dataset)throw Error("`dataset` must be provided to perform queries");return t.dataset||""},e.requestTag=function(t){if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t}},228:(t,e,r)=>{"use strict";t.exports=r(1160)},252:(t,e,r)=>{!function(){var e={452:function(t){"use strict";t.exports=r(954)}},n={};function o(t){var r=n[t];if(void 0!==r)return r.exports;var i=n[t]={exports:{}},s=!0;try{e[t](i,i.exports,o),s=!1}finally{s&&delete n[t]}return i.exports}o.ab="//";var i={};!function(){var t,e=(t=o(452))&&"object"==typeof t&&"default"in t?t.default:t,r=/https?|ftp|gopher|file/;function n(t){"string"==typeof t&&(t=b(t));var n,o,i,s,a,c,u,h,p,l=(o=(n=t).auth,i=n.hostname,s=n.protocol||"",a=n.pathname||"",c=n.hash||"",u=n.query||"",h=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",n.host?h=o+n.host:i&&(h=o+(~i.indexOf(":")?"["+i+"]":i),n.port&&(h+=":"+n.port)),u&&"object"==typeof u&&(u=e.encode(u)),p=n.search||u&&"?"+u||"",s&&":"!==s.substr(-1)&&(s+=":"),n.slashes||(!s||r.test(s))&&!1!==h?(h="//"+(h||""),a&&"/"!==a[0]&&(a="/"+a)):h||(h=""),c&&"#"!==c[0]&&(c="#"+c),p&&"?"!==p[0]&&(p="?"+p),{protocol:s,host:h,pathname:a=a.replace(/[?#]/g,encodeURIComponent),search:p=p.replace("#","%23"),hash:c});return""+l.protocol+l.host+l.pathname+l.search+l.hash}var s="http://",a=s+"w.w",c=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function h(t,e){var r="string"==typeof t?b(t):t;t="object"==typeof t?n(t):t;var o=b(e),i="";r.protocol&&!r.slashes&&(i=r.protocol,t=t.replace(r.protocol,""),i+="/"===e[0]||"/"===t[0]?"/":""),i&&o.protocol&&(i="",o.slashes||(i=o.protocol,e=e.replace(o.protocol,"")));var h=t.match(c);h&&!o.protocol&&(t=t.substr((i=h[1]+(h[2]||"")).length),/^\/\/[^/]/.test(e)&&(i=i.slice(0,-1)));var p=new URL(t,a+"/"),l=new URL(e,p).toString().replace(a,""),f=o.protocol||r.protocol;return f+=r.slashes||o.slashes?"//":"",!i&&f?l=l.replace(s,f):i&&(l=l.replace(s,"")),u.test(l)||~e.indexOf(".")||"/"===t.slice(-1)||"/"===e.slice(-1)||"/"!==l.slice(-1)||(l=l.slice(0,-1)),i&&(l=i+("/"===l[0]?l.substr(1):l)),l}function p(){}p.prototype.parse=b,p.prototype.format=n,p.prototype.resolve=h,p.prototype.resolveObject=h;var l=/^https?|ftp|gopher|file/,f=/^(.*?)([#?].*)/,d=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(t,r,o){if(void 0===r&&(r=!1),void 0===o&&(o=!1),t&&"object"==typeof t&&t instanceof p)return t;var i=(t=t.trim()).match(f);t=i?i[1].replace(/\\/g,"/")+i[2]:t.replace(/\\/g,"/"),v.test(t)&&"/"!==t.slice(-1)&&(t+="/");var s=!/(^javascript)/.test(t)&&t.match(d),c=y.test(t),u="";s&&(l.test(s[1])||(u=s[1].toLowerCase(),t=""+s[2]+s[3]),s[2]||(c=!1,l.test(s[1])?(u=s[1],t=""+s[3]):t="//"+s[3]),3!==s[2].length&&1!==s[2].length||(u=s[1],t="/"+s[3]));var h,b=(i?i[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),m=b&&b[1],g=new p,w="",_="";try{h=new URL(t)}catch(e){w=e,u||o||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(_="/",t=t.substr(1));try{h=new URL(t,a)}catch(t){return g.protocol=u,g.href=u,g}}g.slashes=c&&!_,g.host="w.w"===h.host?"":h.host,g.hostname="w.w"===h.hostname?"":h.hostname.replace(/(\[|\])/g,""),g.protocol=w?u||null:h.protocol,g.search=h.search.replace(/\\/g,"%5C"),g.hash=h.hash.replace(/\\/g,"%5C");var O=t.split("#");!g.search&&~O[0].indexOf("?")&&(g.search="?"),g.hash||""!==O[1]||(g.hash="#"),g.query=r?e.decode(h.search.substr(1)):g.search.substr(1),g.pathname=_+(s?h.pathname.replace(/['^|`]/g,function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(t,e){try{return decodeURIComponent(e).split("").map(function(t){var e=t.charCodeAt();return e>256||/^[a-z0-9]$/i.test(t)?t:"%"+e.toString(16).toUpperCase()}).join("")}catch(t){return e}}):h.pathname),"about:"===g.protocol&&"blank"===g.pathname&&(g.protocol="",g.pathname=""),w&&"/"!==t[0]&&(g.pathname=g.pathname.substr(1)),u&&!l.test(u)&&"/"!==t.slice(-1)&&"/"===g.pathname&&(g.pathname=""),g.path=g.pathname+g.search,g.auth=[h.username,h.password].map(decodeURIComponent).filter(
1Boolean).join(":"),g.port=h.port,m&&!g.host.endsWith(m)&&(g.host+=m,g.port=m.slice(1)),g.href=_?""+g.pathname+g.search+g.hash:n(g);var E=/^(file)/.test(g.href)?["host","hostname"]:[];return Object.keys(g).forEach(function(t){~E.indexOf(t)||(g[t]=g[t]||null)}),g}i.parse=b,i.format=n,i.resolve=h,i.resolveObject=function(t,e){return b(h(t,e))},i.Url=p}(),t.exports=i}()},425:(t,e,r)=>{"use strict";var n=r(252);t.exports=function(t,e,r){if(t===e)return!0;var o=n.parse(t,!1,!0),i=n.parse(e,!1,!0),s=0|o.port||("https"===o.protocol?443:80),a=0|i.port||("https"===i.protocol?443:80),c={proto:o.protocol===i.protocol,hostname:o.hostname===i.hostname,port:s===a};return c.proto&&c.hostname&&(c.port||r)}},508:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}var o=r(2623),i=r(8982).filter,s=r(534).map,a=r(5668),c=r(3734),u=r(4164),h=r(9831),p=r(6489),l=r(8255),f=r(667),d=r(6453),y=r(6655),v=r(5175),b=r(5835),m=b.defaultConfig,g=b.initConfig,w=r(182);function _(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;if(!(this instanceof _))return new _(t);if(this.config(t),this.assets=new l(this),this.datasets=new h(this),this.projects=new p(this),this.users=new f(this),this.auth=new d(this),this.clientConfig.isPromiseAPI){var e=o({},this.clientConfig,{isPromiseAPI:!1});this.observable=new _(e)}}o(_.prototype,u),o(_.prototype,{clone:function(){return new _(this.config())},config:function(t){if(void 0===t)return o({},this.clientConfig);if(this.observable){var e=o({},t,{isPromiseAPI:!1});this.observable.config(e)}return this.clientConfig=g(t,this.clientConfig||{}),this},withConfig:function(t){return this.clone().config(t)},getUrl:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e?this.clientConfig.cdnUrl:this.clientConfig.url;return"".concat(r,"/").concat(t.replace(/^\//,""))},isPromiseAPI:function(){return this.clientConfig.isPromiseAPI},_requestObservable:function(t){var e=t.url||t.uri,r=void 0===t.canUseCdn?["GET","HEAD"].indexOf(t.method||"GET")>=0&&0===e.indexOf("/data/"):t.canUseCdn,i=this.clientConfig.useCdn&&r,s=t.tag&&this.clientConfig.requestTagPrefix?[this.clientConfig.requestTagPrefix,t.tag].join("."):t.tag||this.clientConfig.requestTagPrefix;return s&&(t.query=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({tag:w.requestTag(s)},t.query)),y(v(this.clientConfig,o({},t,{url:this.getUrl(e,i)})),this.clientConfig.requester)},request:function(t){var e=this._requestObservable(t).pipe(i(function(t){return"response"===t.type}),s(function(t){return t.body}));return this.isPromiseAPI()?e.toPromise():e}}),_.Patch=a,_.Transaction=c,_.ClientError=y.ClientError,_.ServerError=y.ServerError,_.requester=y.defaultRequester,t.exports=_},534:(t,e,r)=>{e.map=r(8849).map},667:(t,e,r)=>{"use strict";function n(t){this.client=t}r(2623)(n.prototype,{getById:function(t){return this.client.request({uri:"/users/".concat(t)})}}),t.exports=n},812:(t,e,r)=>{"use strict";var n=r(1327),o=r(4467),i=function(t){return o(function(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=console).warn.apply(e,[t.join(" ")].concat(n))})};e.printCdnWarning=i(["You are not using the Sanity CDN. That means your data is always fresh, but the CDN is faster and","cheaper. Think about it! For more info, see ".concat(n("js-client-cdn-configuration"),"."),"To hide this warning, please set the `useCdn` option to either `true` or `false` when creating","the client."]),e.printBrowserTokenWarning=i(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(n("js-cl
1ient-browser-token")," for more information and how to hide this warning.")]),e.printCdnTokenWarning=i(["You have set `useCdn` to `true` while also specifying a token. This is usually not what you","want. The CDN cannot be used with an authorization token, since private data cannot be cached.","See ".concat(n("js-client-usecdn-token")," for more information.")]),e.printNoApiVersionSpecifiedWarning=i(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(n("js-client-api-version"))])},954:t=>{!function(){"use strict";var e={815:function(t){t.exports=function(t,r,n,o){r=r||"&",n=n||"=";var i={};if("string"!=typeof t||0===t.length)return i;var s=/\+/g;t=t.split(r);var a=1e3;o&&"number"==typeof o.maxKeys&&(a=o.maxKeys);var c=t.length;a>0&&c>a&&(c=a);for(var u=0;u<c;++u){var h,p,l,f,d=t[u].replace(s,"%20"),y=d.indexOf(n);(y>=0?(h=d.substr(0,y),p=d.substr(y+1)):(h=d,p=""),l=decodeURIComponent(h),f=decodeURIComponent(p),Object.prototype.hasOwnProperty.call(i,l))?e(i[l])?i[l].push(f):i[l]=[i[l],f]:i[l]=f}return i};var e=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,i,s,a){return(i=i||"&",s=s||"=",null===t&&(t=void 0),"object"==typeof t)?n(o(t),function(o){var a=encodeURIComponent(e(o))+s;return r(t[o])?n(t[o],function(t){return a+encodeURIComponent(e(t))}).join(i):a+encodeURIComponent(e(t[o]))}).join(i):a?encodeURIComponent(e(a))+s+encodeURIComponent(e(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function n(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n<t.length;n++)r.push(e(t[n],n));return r}var o=Object.keys||function(t){var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}},s=!0;try{e[t](i,i.exports,n),s=!1}finally{s&&delete r[t]}return i.exports}n.ab="//";var o={};o.decode=o.parse=n(815),o.encode=o.stringify=n(577),t.exports=o}()},1021:t=>{"use strict";var e=["tag"],r=encodeURIComponent;t.exports=function(t){var n=t.query,o=t.params,i=void 0===o?{}:o,s=t.options,a=void 0===s?{}:s,c=a.tag,u=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(a,e),h="query=".concat(r(n)),p=c?"?tag=".concat(r(c),"&").concat(h):"?".concat(h),l=Object.keys(i).reduce(function(t,e){return"".concat(t,"&").concat(r("$".concat(e)),"=").concat(r(JSON.stringify(i[e])))},p);return Object.keys(u).reduce(function(t,e){return a[e]?"".concat(t,"&").concat(r(e),"=").concat(r(a[e])):t},l)}},1160:t=>{"use strict";t.exports=function(){return{onRequest:function(t){if("xhr"===t.adapter){var e=t.request,r=t.context;"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}function n(t){return function(e){var n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}}}}},1327:t=>{t.exports=function(t){return"https://docs.sanity.io/help/"+t}},1430:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(5469);e.defaultIfEmpty=function(t){return void 0===t&&(t=null),function(e){return e.lift(new i(t))}};var i=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.defaultValue))},t}(),s=function(t){function e(e,r){var n=t.call(this,e)||this;return n.defaultValue=r,n.isEmpty=!0,n}return n(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},1508:function(t){t.exports=function(){function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];
1for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var o=[["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"]],i=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],c=function(){function c(e,r){this.options=e?t(t({},e.options||{}),r||{}):t({},r||{})}var u=c.prototype;return u.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,i={baseUrl:n};for(var s in r)r.hasOwnProperty(s)&&(i[function(t){for(var r,n=function(t){var r=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,r){if(t){if("string"==typeof t)return e(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,void 0)}}(t)))return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}};throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}(o);!(r=n()).done;){var i=r.value,s=i[0],a=i[1];if(t===s||t===a)return s}return t}(s)]=r[s]);return new c(this,t({baseUrl:n},i))},u.image=function(t){return this.withOptions({source:t})},u.dataset=function(t){return this.withOptions({dataset:t})},u.projectId=function(t){return this.withOptions({projectId:t})},u.bg=function(t){return this.withOptions({bg:t})},u.dpr=function(t){return this.withOptions({dpr:t})},u.width=function(t){return this.withOptions({width:t})},u.height=function(t){return this.withOptions({height:t})},u.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},u.maxWidth=function(t){return this.withOptions({maxWidth:t})},u.minWidth=function(t){return this.withOptions({minWidth:t})},u.maxHeight=function(t){return this.withOptions({maxHeight:t})},u.minHeight=function(t){return this.withOptions({minHeight:t})},u.size=function(t,e){return this.withOptions({width:t,height:e})},u.blur=function(t){return this.withOptions({blur:t})},u.sharpen=function(t){return this.withOptions({sharpen:t})},u.rect=function(t,e,r,n){return this.withOptions({rect:{left:t,top:e,width:r,height:n}})},u.format=function(t){return this.withOptions({format:t})},u.invert=function(t){return this.withOptions({invert:t})},u.orientation=function(t){return this.withOptions({orientation:t})},u.quality=function(t){return this.withOptions({quality:t})},u.forceDownload=function(t){return this.withOptions({download:t})},u.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},u.flipVertical=function(){return this.withOptions({flipVertical:!0})},u.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},u.fit=function(t){if(-1===i.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},u.crop=function(t){if(-1===s.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},u.saturation=function(t){return this.withOptions({saturation:t})},u.auto=function(t){if(-1===a.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},u.pad=function(t){return this.withOptions({pad:t})},u.url=function(){return function(e){var i=t({},e||{}),s=i.source;delete i.source;var a=function(e){var r,o;if(!e)return null;if("string"==typeof e&&(o=e,/^https?:\/\//.test(""+o)))r={asset:{_ref:n(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:n(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r=e}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;var r=t({},e);
1return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(s);if(!a)return null;var c=function(t){var e=t.split("-"),n=e[1],o=e[2],i=e[3];if(!n||!o||!i)throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');var s=o.split("x"),a=s[0],c=s[1],u=+a,h=+c;if(!(isFinite(u)&&isFinite(h)))throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');return{id:n,width:u,height:h,format:i}}(a.asset._ref||a.asset._id||""),u=Math.round(a.crop.left*c.width),h=Math.round(a.crop.top*c.height),p={left:u,top:h,width:Math.round(c.width-a.crop.right*c.width-u),height:Math.round(c.height-a.crop.bottom*c.height-h)},l=a.hotspot.height*c.height/2,f=a.hotspot.width*c.width/2,d=a.hotspot.x*c.width,y=a.hotspot.y*c.height;return i.rect||i.focalPoint||i.ignoreImageParams||i.crop||(i=t(t({},i),function(t,e){var r,n=e.width,o=e.height;if(!(n&&o))return{width:n,height:o,rect:t.crop};var i=t.crop,s=t.hotspot,a=n/o;if(i.width/i.height>a){var c=i.height,u=c*a,h=i.top,p=(s.right-s.left)/2+s.left-u/2;p<i.left?p=i.left:p+u>i.left+i.width&&(p=i.left+i.width-u),r={left:Math.round(p),top:Math.round(h),width:Math.round(u),height:Math.round(c)}}else{var l=i.width,f=l/a,d=i.left,y=(s.bottom-s.top)/2+s.top-f/2;y<i.top?y=i.top:y+f>i.top+i.height&&(y=i.top+i.height-f),r={left:Math.max(0,Math.floor(d)),top:Math.max(0,Math.floor(y)),width:Math.round(l),height:Math.round(f)}}return{width:n,height:o,rect:r}}({crop:p,hotspot:{left:d-f,top:y-l,right:d+f,bottom:y+l}},i))),function(t){var e=t.baseUrl||"https://cdn.sanity.io",r=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format,n=e+"/images/"+t.projectId+"/"+t.dataset+"/"+r,i=[];if(t.rect){var s=t.rect,a=s.left,c=s.top,u=s.width,h=s.height;(0!==a||0!==c||h!==t.asset.height||u!==t.asset.width)&&i.push("rect="+a+","+c+","+u+","+h)}t.bg&&i.push("bg="+t.bg),t.focalPoint&&(i.push("fp-x="+t.focalPoint.x),i.push("fp-y="+t.focalPoint.y));var p=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return(p&&i.push("flip="+p),o.forEach(function(e){var r=e[0],n=e[1];void 0!==t[r]?i.push(n+"="+encodeURIComponent(t[r])):void 0!==t[n]&&i.push(n+"="+encodeURIComponent(t[n]))}),0===i.length)?n:n+"?"+i.join("&")}(t(t({},i),{},{asset:c}))}(this.options)},u.toString=function(){return this.url()},c}();return function(t){if(t&&"object"==typeof t.clientConfig){var e=t.clientConfig,r=e.apiHost,n=e.projectId,o=e.dataset;return new c(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:o})}return new c(null,t)}}()},1525:function(t,e){var r,n,o;"undefined"==typeof self||self,void 0===(n="function"==typeof(r=function(){var t=function(t,e){if(!t||"string"!=typeof t)throw SyntaxError("Not enough arguments");this.URL=t,this.setOptions(e);var r=this;setTimeout(function(){r.poll()},0)};if(t.prototype={CONNECTING:0,OPEN:1,CLOSED:2,defaultOptions:{loggingEnabled:!1,loggingPrefix:"eventsource",interval:500,bufferSizeLimit:262144,silentTimeout:3e5,getArgs:{evs_buffer_size_limit:262144},xhrHeaders:{Accept:"text/event-stream","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"}},setOptions:function(t){var e,r=this.defaultOptions;for(e in r)r.hasOwnProperty(e)&&(this[e]=r[e]);for(e in t)e in r&&t.hasOwnProperty(e)&&(this[e]=t[e]);this.getArgs&&this.bufferSizeLimit&&(this.getArgs.evs_buffer_size_limit=this.bufferSizeLimit),("undefined"==typeof console||void 0===console.log)&&(this.loggingEnabled=!1)},log:function(t){this.loggingEnabled&&console.log("["+this.loggingPrefix+"]:"+t)},poll:function(){try{if(this.readyState==this.CLOSED)return;this.cleanup(),this.readyState=this.CONNECTING,this.cursor=0,this.cache="",this._xhr=new this.XHR(this),this.resetNoActivityTimer()}catch(t){this.log("There were errors inside the pool try-catch"),this.dispatchEvent("error",{type:"error",data:t.message})}},pollAgain:function(t){var e=this;e.readyState=e.CONNECTING,e.dispatchEvent("error",{type:"error",data:"Reconnecting "}),this._pollTimer=setTimeout(function(){e.poll()},t||0)},cleanup:function(){this.log("evs cleaning up"),this._pollTimer&&(clearInterval(this._pollTimer),this._pollTimer=null),this._noActivityTimer&&(clearInterval(this._noActivityTimer),this._noActivityTimer=null),this._xhr&&(this._xhr.abort(),this._xhr=null)},resetNoActivityTimer:function(){if(this.silentTimeout){this._noActivityTimer&&clearInterval(this._noActivityTimer);var t=this;this._noActivityTimer=setTimeout(function(){t.log("Timeout! silentTImeout:"+t.silentTimeout),t.pollAgain()},this.silentTimeout)}},close:function(){this.readyState=this.CLOSED,this.log("Closing connection. readyState: "+this.readyState),this.cleanup()},_onxhrdata:function(){var t=this._xhr;if(t.isReady()&&!t.hasError()){this.resetNoActivityTimer(),this.readyState==this.CONNECTING&&(this.readyState=this.OP
1EN,this.dispatchEvent("open",{type:"open"}));var e=t.getBuffer();e.length>this.bufferSizeLimit&&(this.log("buffer.length > this.bufferSizeLimit"),this.pollAgain()),0==this.cursor&&e.length>0&&"\uFEFF"==e.substring(0,1)&&(this.cursor=1);var r=this.lastMessageIndex(e);if(r[0]>=this.cursor){var n=r[1],o=e.substring(this.cursor,n);this.parseStream(o),this.cursor=n}t.isDone()&&(this.log("request.isDone(). reopening the connection"),this.pollAgain(this.interval))}else this.readyState!==this.CLOSED&&(this.log("this.readyState !== this.CLOSED"),this.pollAgain(this.interval))},parseStream:function(t){var e,n,o,i,s,a,c=(t=this.cache+this.normalizeToLF(t)).split("\n\n");for(e=0;e<c.length-1;e++){o="message",i=[];var u=c[e].split("\n");for(n=0;n<u.length;n++)0==(s=this.trimWhiteSpace(u[n])).indexOf("event")?o=s.replace(/event:?\s*/,""):0==s.indexOf("retry")?isNaN(a=parseInt(s.replace(/retry:?\s*/,""),10))||(this.interval=a):0==s.indexOf("data")?i.push(s.replace(/data:?\s*/,"")):0==s.indexOf("id:")?this.lastEventId=s.replace(/id:?\s*/,""):0==s.indexOf("id")&&(this.lastEventId=null);if(i.length&&this.readyState!=this.CLOSED){var h=new r(o,i.join("\n"),"undefined"!=typeof window&&void 0!==window.location?window.location.origin:null,this.lastEventId);this.dispatchEvent(o,h)}}this.cache=c[c.length-1]},dispatchEvent:function(t,e){var r=this["_"+t+"Handlers"];if(r)for(var n=0;n<r.length;n++)r[n].call(this,e);this["on"+t]&&this["on"+t].call(this,e)},addEventListener:function(t,e){this["_"+t+"Handlers"]||(this["_"+t+"Handlers"]=[]),this["_"+t+"Handlers"].push(e)},removeEventListener:function(t,e){var r=this["_"+t+"Handlers"];if(r){for(var n=r.length-1;n>=0;--n)if(r[n]===e){r.splice(n,1);break}}},_pollTimer:null,_noactivityTimer:null,_xhr:null,lastEventId:null,cache:"",cursor:0,onerror:null,onmessage:null,onopen:null,readyState:0,urlWithParams:function(t,e){var r=[];if(e){var n,o,i=encodeURIComponent;for(n in e)e.hasOwnProperty(n)&&(o=i(n)+"="+i(e[n]),r.push(o))}return r.length>0?-1==t.indexOf("?")?t+"?"+r.join("&"):t+"&"+r.join("&"):t},lastMessageIndex:function(t){var e=t.lastIndexOf("\n\n"),r=t.lastIndexOf("\r\r"),n=t.lastIndexOf("\r\n\r\n");return n>Math.max(e,r)?[n,n+4]:[Math.max(e,r),Math.max(e,r)+2]},trimWhiteSpace:function(t){return t.replace(/^(\s|\u00A0)+|(\s|\u00A0)+$/g,"")},normalizeToLF:function(t){return t.replace(/\r\n|\r/g,"\n")}},!("undefined"!=typeof window&&window.XDomainRequest&&window.XMLHttpRequest&&void 0===new XMLHttpRequest().responseType))t.isPolyfill="XHR",t.prototype.XHR=function(t){var e=new XMLHttpRequest;this._request=e,t._xhr=this,e.onreadystatechange=function(){e.readyState>1&&t.readyState!=t.CLOSED&&(200==e.status||e.status>=300&&e.status<400?t._onxhrdata():(e._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"The server responded with "+e.status}),t.close()))},e.onprogress=function(){},e.open("GET",t.urlWithParams(t.URL,t.getArgs),!0);var r=t.xhrHeaders;for(var n in r)r.hasOwnProperty(n)&&e.setRequestHeader(n,r[n]);t.lastEventId&&e.setRequestHeader("Last-Event-Id",t.lastEventId),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!1,_request:null,_failed:!1,isReady:function(){return this._request.readyState>=2},isDone:function(){return 4==this._request.readyState},hasError:function(){return this._failed||this._request.status>=400},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(t){}return t},abort:function(){this._request&&this._request.abort()}};else{t.isPolyfill="IE_8-9";var e=t.prototype.defaultOptions;e.xhrHeaders=null,e.getArgs.evs_preamble=2056,t.prototype.XHR=function(t){var e=new XDomainRequest;this._request=e,e.onprogress=function(){e._ready=!0,t._onxhrdata()},e.onload=function(){this._loaded=!0,t._onxhrdata()},e.onerror=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest error"})},e.ontimeout=function(){this._failed=!0,t.readyState=t.CLOSED,t.dispatchEvent("error",{type:"error",data:"XDomainRequest timed out"})};var r={};if(t.getArgs){var n=t.getArgs;for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);t.lastEventId&&(r.evs_last_event_id=t.lastEventId)}e.open("GET",t.urlWithParams(t.URL,r)),e.send()},t.prototype.XHR.prototype={useXDomainRequest:!0,_request:null,_ready:!1,_loaded:!1,_failed:!1,isReady:function(){return this._request._ready},isDone:function(){return this._request._loaded},hasError:function(){return this._request._failed},getBuffer:function(){var t="";try{t=this._request.responseText||""}catch(t){}return t},abort:function(){this._request&&this._request.abort()}}}function r(t,e,r,n){this.bubbles=!1,this.cancelBubble=!1,this.cancelable=!1,this.data=e||null,this.origin=r||"",this.lastEventId=n||"",this.type=t||"message"}return t})?r.apply(e,[]):r)||(t.exports=n)},1668:t=>{t.exports=function(){var t=[];return{subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}},publish:function(){for(var e=0;e<t.length;e++)t[e].apply(null,arguments)}}}},2032:(t,e,r)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0});var n=r(8562);e.EMPTY=new n.Observable(function(t){return t.complete()}),e.empty=function(t){var r;return t?(r=t,new n.Observable(function(t){return r.schedule(function(){return t.complete()})})):e.EMPTY}},2189:(t,e,r)=>{t.exports=r(9841)},2229:(t,e)=>{"use strict";var r="undefined"!=typeof Reflect?Reflect.construct:void 0,n=Object.defineProperty,o=Error.captureStackTrace;function i(t){void 0!==t&&n(this,"message",{configurable:!0,value:t,writable:!0});var e=this.constructor.name;void 0!==e&&e!==this.name&&n(this,"name",{configurable:!0,value:e,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(t){var e=Error();n(t,"stack",{configurable:!0,get:function(){var t=e.stack;return n(this,"stack",{configurable:!0,value:t,writable:!0}),t},set:function(e){n(t,"stack",{configurable:!0,value:e,writable:!0})}})}),i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var s=function(){function t(t,e){return n(t,"name",{configurable:!0,value:e})}try{var e=function(){};if(t(e,"foo"),"foo"===e.name)return t}catch(t){}}();(t.exports=function(t,e){if(null==e||e===Error)e=i;else if("function"!=typeof e)throw TypeError("super_ should be a function");if("string"==typeof t)n=t,t=void 0!==r?function(){return r(e,arguments,this.constructor)}:function(){e.apply(this,arguments)},void 0!==s&&(s(t,n),n=void 0);else if("function"!=typeof t)throw TypeError("constructor should be either a string or a function");t.super_=t.super=e;var n,o={constructor:{configurable:!0,value:t,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),t.prototype=Object.create(e.prototype,o),t}).BaseError=i},2390:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5433),o=r(2415),i=r(7935),s=r(4416);function a(t){return t.reduce(function(t,e){return t.concat(e instanceof s.UnsubscriptionError?e.errors:e)},[])}e.Subscription=function(){var t;function e(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return e.prototype.unsubscribe=function(){if(!this.closed){var t,r=this._parentOrParents,c=this._ctorUnsubscribe,u=this._unsubscribe,h=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(null!==r)for(var p=0;p<r.length;++p)r[p].remove(this);if(i.isFunction(u)){c&&(this._unsubscribe=void 0);try{u.call(this)}catch(e){t=e instanceof s.UnsubscriptionError?a(e.errors):[e]}}if(n.isArray(h))for(var p=-1,l=h.length;++p<l;){var f=h[p];if(o.isObject(f))try{f.unsubscribe()}catch(e){t=t||[],e instanceof s.UnsubscriptionError?t=t.concat(a(e.errors)):t.push(e)}}if(t)throw new s.UnsubscriptionError(t)}},e.prototype.add=function(t){var r=t;if(!t)return e.EMPTY;switch(typeof t){case"function":r=new e(t);case"object":if(r===this||r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if(!(r instanceof e)){var n=r;(r=new e)._subscriptions=[n]}break;default:throw Error("unrecognized teardown "+t+" added to Subscription.")}var o=r._parentOrParents;if(null===o)r._parentOrParents=this;else if(o instanceof e){if(o===this)return r;r._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return r;o.push(this)}var i=this._subscriptions;return null===i?this._subscriptions=[r]:i.push(r),r},e.prototype.remove=function(t){var e=this._subscriptions;if(e){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}},(t=new e).closed=!0,e.EMPTY=t,e}()},2415:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isObject=function(t){return null!==t&&"object"==typeof t}},2623:t=>{"use strict";t.exports=Object.assign.bind(Object),t.exports.default=t.exports},2656:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),e.$$rxSubscriber=e.rxSubscriber},2853:(t,e,r)=>{"use strict";var n=r(5210),o=r(4373),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,c=/:\d+$/,u=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,h=/^[a-zA-Z]:/;function p(t){return(t||"").toString().replace(i,"")}var l=[["#","hash"],["?","query"],function(t,e){return y(e.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],f={hash:1,query:1};function d(t){var e,n,o=("undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{}).location||{},i={},s=typeof(t=t||o);if("blob:"===t.protocol)i=new b(unescape(t.pathname),{});else if("string"===s)for(n in i=new b(t,{}),f)delete i[n];else if("object"===s){for(n in t)n in f||(i[n]=t[n]);void 0===i.slashes&&(i.slashes=a.test(t.href))}return i}function y(t){return"file:"===t||"ftp:"===t||"http:"===t||"https:"===t||"ws:"===t||"wss:"===t}function v(t,e){t=(t=p(t)).replace(s,""),e=e||{};var r,n=u.exec(t),o=n[1]?n[1].toLowerCase():"",i=!!n[2],a=!!n[3],c=0;return i?a?(r=n[2]+n[3]+n[4],c=n[2].length+n[3].length):(r=n[2]+n[4],c=n[2].length):a?(r=n[3]+n[4],c=n[3].length):r=n[4],"file:"===o?c>=2&&(r=r.slice(2)):y(o)?r=n[4]:o?i&&(r=r.slice(2)):c>=2&&y(e.protocol)&&(r=n[4]),{protocol:o,slashes:i||y(o),slashesCount:c,rest:r}}function b(t,e,r){if(t=(t=p(t)).replace(s,""),!(this instanceof b))return new b(t,e,r);var i,a,c,u,f,m,g=l.slice(),w=typeof e,_=0;for("object"!==w&&"string"!==w&&(r=e,e=null),r&&"function"!=typeof r&&(r=o.parse),i=!(a=v(t||"",e=d(e))).protocol&&!a.slashes,this.slashes=a.slashes||i&&e.slashes,this.protocol=a.protocol||e.protocol||"",t=a.rest,("file:"===a.protocol&&(2!==a.slashesCount||h.test(t))||!a.slashes&&(a.protocol||a.slashesCount<2||!y(this.protocol)))&&(g[3]=[/(.*)/,"pathname"]);_<g.length;_++){if("function"==typeof(u=g[_])){t=u(t,this);continue}c=u[0],m=u[1],c!=c?this[m]=t:"string"==typeof c?~(f="@"===c?t.lastIndexOf(c):t.indexOf(c))&&("number"==typeof u[2]?(this[m]=t.slice(0,f),t=t.slice(f+u[2])):(this[m]=t.slice(f),t=t.slice(0,f))):(f=c.exec(t))&&(this[m]=f[1],t=t.slice(0,f.index)),this[m]=this[m]||i&&u[3]&&e[m]||"",u[4]&&(this[m]=this[m].toLowerCase())}r&&(this.query=r(this.query)),i&&e.slashes&&"/"!==this.pathname.charAt(0)&&(""!==this.pathname||""!==e.pathname)&&(this.pathname=function(t,e){if(""===t)return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,o=r[n-1],i=!1,s=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),s++):s&&(0===n&&(i=!0),r.splice(n,1),s--);return i&&r.unshift(""),("."===o||".."===o)&&r.push(""),r.join("/")}(this.pathname,e.pathname)),"/"!==this.pathname.charAt(0)&&y(this.protocol)&&(this.pathname="/"+this.pathname),n(this.port,this.protocol)||(this.host=this.hostname,this.port=""),this.username=this.password="",this.auth&&(~(f=this.auth.indexOf(":"))?(this.username=this.auth.slice(0,f),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=this.auth.slice(f+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(this.auth)),this.auth=this.password?this.username+":"+this.password:this.username),this.origin="file:"!==this.protocol&&y(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString()}b.prototype={set:function(t,e,r){switch(t){case"query":"string"==typeof e&&e.length&&(e=(r||o.parse)(e)),this[t]=e;break;case"port":this[t]=e,n(e,this.protocol)?e&&(this.host=this.hostname+":"+e):(this.host=this.hostname,this[t]="");break;case"hostname":this[t]=e,this.port&&(e+=":"+this.port),this.host=e;break;case"host":this[t]=e,c.test(e)?(e=e.split(":"),this.port=e.pop(),this.hostname=e.join(":")):(this.hostname=e,this.port="");break;case"protocol":this.protocol=e.toLowerCase(),this.slashes=!r;break;case"pathname":case"hash":if(e){var i="pathname"===t?"/":"#";this[t]=e.charAt(0)!==i?i+e:e}else this[t]=e;break;case"username":case"password":this[t]=encodeURIComponent(e);break;case"auth":var s=e.indexOf(":");~s?(this.username=e.slice(0,s),this.username=encodeURIComponent(decodeURIComponent(this.username)),this.password=e.slice(s+1),this.password=encodeURIComponent(decodeURIComponent(this.password))):this.username=encodeURIComponent(decodeURIComponent(e))}for(var a=0;a<l.length;a++){var u=l[a];u[4]&&(this[u[1]]=this[u[1]].toLowerCase())}return this.auth=this.password?this.username+":"+this.password:this.username,this.origin="file:"!==this.protocol&&y(this.protocol)&&this.host?this.protocol+"//"+this.host:"null",this.href=this.toString(),this},toString:function(t){t&&"function"==typeof t||(t=o.stringify);var e,r=this.host,n=this.protocol;n&&":"!==n.charAt(n.length-1)&&(n+=":");var i=n+(this.protocol&&this.slashes||y(this.protocol)?"//":"");return this.username?(i+=this.username,this.password&&(i+=":"+this.password),i+="@"):this.password?(i+=":"+this.password,i+="@"):"file:"!==this.protocol&&y(this.protocol)&&!r&&"/"!==this.pathname&&(i+="@"),(":"===r[r.length-1]||c.test(this.hostname)&&!this.port)&&(r+=":"),i+=r+this.pathname,(e="object"==typeof this.query?t(this.query):this.query)&&(i+="?"!==e.charAt(0)?"?"+e:e),this.hash&&(i+=this.hash),i}},b.extractProtocol=v,b.location=d,b.trimLeft=p,b.qs=o,t.exports=b},2895:(t,e,r)=>{"use strict";var n=r(2623),o=r(2853),i="undefined"!=typeof navigator&&"ReactNative"===navigator.product,s=Object.prototype.hasOwnProperty,a={timeout:i?6e4:12e4};function c(t){var e=[];for(var r in t)s.call(t,r)&&function t(r,n){Array.isArray(n)?n.forEac
1h(function(e){return t(r,e)}):e.push([r,n].map(encodeURIComponent).join("="))}(r,t[r]);return e.length?e.join("&"):""}t.exports=function(t){var e="string"==typeof t?n({url:t},a):n({},a,t),r=o(e.url,{},!0);return e.timeout=function t(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;var r=Number(e);return isNaN(r)?t(a.timeout):{connect:r,socket:r}}(e.timeout),e.query&&(r.query=n({},r.query,function(t){var e={};for(var r in t)void 0!==t[r]&&(e[r]=t[r]);return e}(e.query))),e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e.url=r.toString(c),e}},3011:t=>{"use strict";t.exports=function(t,e){return e.reduce(function(e,r){return void 0===t[r]||(e[r]=t[r]),e},{})}},3203:(t,e,r)=>{"use strict";t.exports=r(3895)},3233:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=!1;e.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value?console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+Error().stack):r&&console.log("RxJS: Back to a better error behavior. Thank you. <3"),r=value},get useDeprecatedSynchronousErrorHandling(){return r}}},3734:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(2623),i=r(182),s=r(5668),a={returnDocuments:!1};function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;this.trxId=r,this.operations=t,this.client=e}o(c.prototype,{clone:function(){return new c(this.operations.slice(0),this.client,this.trxId)},create:function(t){return i.validateObject("create",t),this._add({create:t})},createIfNotExists:function(t){var e="createIfNotExists";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(n({},e,t))},createOrReplace:function(t){var e="createOrReplace";return i.validateObject(e,t),i.requireDocumentId(e,t),this._add(n({},e,t))},delete:function(t){return i.validateDocumentId("delete",t),this._add({delete:{id:t}})},patch:function(t,e){var r="function"==typeof e;if(t instanceof s)return this._add({patch:t.serialize()});if(r){var n=e(new s(t,{},this.client));if(!(n instanceof s))throw Error("function passed to `patch()` must return the patch");return this._add({patch:n.serialize()})}return this._add({patch:o({id:t},e)})},transactionId:function(t){return t?(this.trxId=t,this):this.trxId},serialize:function(){return this.operations.slice()},toJSON:function(){return this.serialize()},commit:function(t){if(!this.client)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.client.mutate(this.serialize(),o({transactionId:this.trxId},a,t||{}))},reset:function(){return this.operations=[],this},_add:function(t){return this.operations.push(t),this}}),t.exports=c},3766:(t,e,r)=>{"use strict";var n=r(8244),o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function s(t,e,r){var i=e[r];if(null!=i){if(o.call(t,r)&&(void 0===t[r]||null===t[r]))throw TypeError("Cannot convert undefined or null to object ("+r+")");o.call(t,r)&&n(i)?t[r]=a(Object(t[r]),e[r]):t[r]=i}}function a(t,e){if(t===e)return t;for(var r in e=Object(e))o.call(e,r)&&s(t,e,r);if(Object.getOwnPropertySymbols)for(var n=Object.getOwnPropertySymbols(e),a=0;a<n.length;a++)i.call(e,n[a])&&s(t,e,n[a]);return t}t.exports=function(t){t=function(t){if(null==t)throw TypeError("Sources cannot be null or undefined");return Object(t)}(t);for(var e=1;e<arguments.length;e++)a(t,arguments[e]);return t}},3842:(t,e,r)=>{e.reduce=r(4019).reduce},3843:(t,e,r)=>{var n=r(1525);t.exports="undefined"!=typeof window&&window.EventSource?window.EventSource:n.EventSource},3895:(t,e,r)=>{"use strict";var n=r(425),o=r(6786),i=r(9702),s="undefined"==typeof window?void 0:window,a=s?"xhr":"fetch",c="function"==typeof XMLHttpRequest?XMLHttpRequest:function(){},u="withCredentials"in new c,h="undefined"==typeof XDomainRequest?void 0:XDomainRequest,p=u?c:h;s||(c=i,p=i),t.exports=function(t,e){var r=t.options,i=t.applyMiddleware("finalizeOptions",r),u={},h=s&&s.location&&!n(s.location.href,i.url),l=t.applyMiddleware("interceptRequest",void 0,{adapter:a,context:t});if(l){var f=setTimeout(e,0,null,l);return{abort:function(){return clearTimeout(f)}}}var d=h?new p:new c,y=s&&s.XDomainRequest&&d instanceof s.XDomainRequest,v=i.headers,b=i.timeout,m=!1,g=!1,w=!1;if(d.onerror=x,d.ontimeout=x,d.onabort=function(){m=!0},d.onprogress=function(){},d[y?"onload":"onreadystatechange"]=function(){b&&(E(),u.socket=setTimeout(function(){return O("ESOCKETTIMEDOUT")},b.socket)),!m&&(4===d.readyState||y)&&0!==d.status&&function(){if(!m&&!g&&!w){if(0===d.status)return x(Error("Unknown XHR error"));E(),g=!0,e(null,function(){var t=d.status,e=d.statusText;if(y&&void 0===t)t=200;else{if(t>12e3&&t<12156)return x();t=1223===d.status?204:d.status,e=1223===d.status?"No Content":e}return{body:d.response||d.responseText,url:i.url,method:i.method,headers:y?{}:o(d.getAllResponseHeaders()),statusCode:t,statusMessage:e}}())}}()},d.open(i.method,i.url,!0),d.withCredentials=!!i.withCredentials,v&&d.setRequestHeader)for(var _ in v)v.hasOwnProperty(_)&&d.setRequestHeader(_,v[_]);else if(v&&y)throw Error("Headers cannot be set on an XDomainRequest object");return i.rawBody&&(d.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:i,adapter:a,request:d,c
1ontext:t}),d.send(i.body||null),b&&(u.connect=setTimeout(function(){return O("ETIMEDOUT")},b.connect)),{abort:function(){m=!0,d&&d.abort()}};function O(e){w=!0,d.abort();var r=Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to "+i.url:"Connection timed out on request to "+i.url);r.code=e,t.channels.error.publish(r)}function E(){(m||d.readyState>=2&&u.connect)&&clearTimeout(u.connect),u.socket&&clearTimeout(u.socket)}function x(t){if(!g){E(),g=!0,d=null;var r=t||Error("Network error while attempting to reach "+i.url);r.isNetworkError=!0,r.request=i,e(r)}}}},4019:(t,e,r)=>{"use strict";var n=r(7136),o=r(8934),i=r(1430),s=r(176);e.reduce=function(t,e){return arguments.length>=2?function(r){return s.pipe(n.scan(t,e),o.takeLast(1),i.defaultIfEmpty(e))(r)}:function(e){return s.pipe(n.scan(function(e,r,n){return t(e,r,n+1)}),o.takeLast(1))(e)}}},4130:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hostReportError=function(t){setTimeout(function(){throw t},0)}},4148:t=>{"use strict";t.exports=function(t,e){return Object.keys(e).concat(Object.keys(t)).reduce(function(r,n){return r[n]=void 0===t[n]?e[n]:t[n],r},{})}},4164:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(2623),i=r(8982).filter,s=r(534).map,a=r(182),c=r(5876),u=r(1021),h=r(3734),p=r(5668),l=r(9665),f=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:void 0===t||t),visibility:e.visibility||"sync"}},d=function(t){return"response"===t.type},y=function(t){return t.body},v=function(t){return t.toPromise()};t.exports={listen:l,getDataUrl:function(t,e){var r=this.clientConfig,n=r.gradientMode?r.namespace:a.hasDataset(r),o="/".concat(t,"/").concat(n),i=e?"".concat(o,"/").concat(e):o;return(this.clientConfig.gradientMode?i:"/data".concat(i)).replace(/\/($|\?)/,"$1")},fetch:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=!1===r.filterResponse?function(t){return t}:function(t){return t.result},o=this._dataRequest("query",{query:t,params:e},r).pipe(s(n));return this.isPromiseAPI()?v(o):o},getDocument:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(i(d),s(function(t){return t.body.documents&&t.body.documents[0]}));return this.isPromiseAPI()?v(n):n},getDocuments:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={uri:this.getDataUrl("doc",t.join(",")),json:!0,tag:e.tag},n=this._requestObservable(r).pipe(i(d),s(function(e){var r,n,o=(r=e.body.documents||[],n=function(t){return t._id},r.reduce(function(t,e){return t[n(e)]=e,t},Object.create(null)));return t.map(function(t){return o[t]||null})}));return this.isPromiseAPI()?v(n):n},create:function(t,e){return this._create(t,"create",e)},createIfNotExists:function(t,e){return a.requireDocumentId("createIfNotExists",t),this._create(t,"createIfNotExists",e)},createOrReplace:function(t,e){return a.requireDocumentId("createOrReplace",t),this._create(t,"createOrReplace",e)},patch:function(t,e){return new p(t,e,this)},delete:function(t,e){return this.dataRequest("mutate",{mutations:[{delete:c(t)}]},e)},mutate:function(t,e){var r=t instanceof p||t instanceof h?t.serialize():t,n=Array.isArray(r)?r:[r],o=e&&e.transactionId;return this.dataRequest("mutate",{mutations:n,transactionId:o},e)},transaction:function(t){return new h(t,this)},dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this._dataRequest(t,e,r);return this.isPromiseAPI()?v(n):n},_dataRequest:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o="mutate"===t,a=!o&&u(e),c=!o&&a.length<11264,h=c?a:"",p=r.returnFirst,l=r.timeout,v=r.token,b=r.tag,m={method:c?"GET":"POST",uri:this.getDataUrl(t,h),json:!0,body:c?void 0:e,query:o&&f(r),timeout:l,token:v,tag:b,canUseCdn:"query"===t};return this._requestObservable(m).pipe(i(d),s(y),s(function(t){if(!o)return t;var e=t.results||[];if(r.returnDocuments)return p?e[0]&&e[0].document:e.map(function(t){return t.document});var i=p?e[0]&&e[0].id:e.map(function(t){return t.id});return n({transactionId:t.transactionId,results:e},p?"documentId":"documentIds",i)}))},_create:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n({},e,t),s=o({returnFirst:!0,returnDocuments:!0},r);return this.dataRequest("mutate",{mutations:[i]},s)}}},4373:(t,e)=>{"use strict";var r,n=Object.prototype.hasOwnProperty;function o(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}function i(t){try{return encodeURIComponent(t)}catch(t){return null}}e.stringify=function(t,e){var o,s,a=[];for(s in"string"!=typeof(e=e||"")&&(e="?"),t)if(n.call(t,s)){if(!(o=t[s])&&(null===o||o===r||isNaN(o))&&(o=""),s=i(s),o=i(o),null===s||null===o)continue;a.push(s+"="+o)}return a.length?e+a.join("&"):""},e.parse=function(t){for(var e,r=/([^=?#&]+)=?([^&]*)/g,n={};e=r.exec(t);){var i=o(e[1]),s=o(e[2]);null===i||null===s||i in n||(n[i]=s)}return n}},4416:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.UnsubscriptionError=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}()},4467:t=>{"use strict";t.exports=function(t){var e,r=!1;return function(){return r||(e=t.apply(void 0,arguments),r=!0),e}}},4472:(t,e,r)=>{"use strict";var n=r(8562).Observable,o=r(2623),i=r(534).map,s=r(8982).filter,a=r(3842).reduce;function c(){n.apply(this,arguments)}function u(t,e){var r=!1;return function(){return r||(r=!0,console.warn(Error("Calling observable.".concat(t,"(...) is deprecated. Please use observable.pipe(").concat(t,"(...)) instead")))),this.pipe(e.apply(this,arguments))}}c.prototype=Object.create(o(Object.create(null),n.prototype)),Object.defineProperty(c.prototype,"constructor",{value:c,enumerable:!1,writable:!0,configurable:!0}),c.prototype.lift=function(t){var e=new c;return e.source=this,e.operator=t,e},c.prototype.map=u("map",i),c.prototype.filter=u("filter",s),c.prototype.reduce=u("filter",a),t.exports=c},4709:(t,e,r)=>{"use strict";var n=r(6183);function o(t){return!0===n(t)&&"[object Object]"===Object.prototype.toString.call(t)}t.exports=function(t){var e,r;return!1!==o(t)&&"function"==typeof(e=t.constructor)&&!1!==o(r=e.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")}},4847:(t,e,r)=>{"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=r(2623),i=r(4709),s=["boolean","string","number"];t.exports=function(){return{processOptions:function(t){var e=t.body;return e?"function"!=typeof e.pipe&&!(e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))&&(-1!==s.indexOf(void 0===e?"undefined":n(e))||Array.isArray(e)||i(e))?o({},t,{body:JSON.stringify(t.body),headers:o({},t.headers,{"Content-Type":"application/json"})}):t:t}}}},5175:(t,e,r)=>{"use strict";var n=r(2623);t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={},o=e.token||t.token;o&&(r.Authorization="Bearer ".concat(o)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r["X-Sanity-Project-ID"]=t.projectId);var i=!!(void 0===e.withCredentials?t.token||t.withCredentials:e.withCredentials),s=void 0===e.timeout?t.timeout:e.timeout;return n({},e,{headers:n({},r,e.headers||{}),timeout:void 0===s?3e5:s,proxy:e.proxy||t.proxy,json:!0,withCredentials:i})}},5210:t=>{"use strict";t.exports=function(t,e){if(e=e.split(":")[0],!(t*=1))return!1;switch(e){case"http":case"ws":return 80!==t;case"https":case"wss":return 443!==t;case"ftp":return 21!==t;case"gopher":return 70!==t;case"file":return!1}return 0!==t}},5246:t=>{"use strict";t.exports=[]},5354:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=function(t){return t}},5433:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},5469:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(7935),i=r(8529),s=r(2390),a=r(2656),c=r(3233),u=r(4130),h=function(t){function e(r,n,o){var s=t.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=i.empty;break;case 1:if(!r){s.destination=i.empty;break}if("object"==typeof r){r instanceof e?(s.syncErrorThrowable=r.syncErrorThrowable,s.destination=r,r.add(s)):(s.syncErrorThrowable=!0,s.destination=new p(s,r));break}default:s.syncErrorThrowable=!0,s.destination=new p(s,r,n,o)}return s}return n(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,r,n){var o=new e(t,r,n);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(s.Subscription);e.Subscriber=h;var p=function(t){function e(e,r,n,s){var a,c=t.call(this)||this;c._parentSubscriber=e;var u=c;return o.isFunction(r)?a=r:r&&(a=r.next,n=r.error,s=r.complete,r!==i.empty&&(u=Object.create(r),o.isFunction(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=n,c._complete=s,c}return n(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,r=c.config.useDeprecatedSynchronousErrorHandling;if(this._error)r&&e.syncErrorThrowable?this.__tryOrSetError(e,this._error,t):this.__tryOrUnsub(this._error,t),this.unsubscribe();else if(e.syncErrorThrowable)r?(e.syncErrorValue=t,e.syncErrorThrown=!0):u.hostReportError(t),this.unsubscribe();else{if(this.unsubscribe(),r)throw t;u.hostReportError(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var r=function(){return t._complete.call(t._context)};c.config.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,r):this.__tryOrUnsub(r),this.unsubscribe()}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),c.config.useDeprecatedSynchronousErrorHandling)throw t;u.hostReportError(t)}},e.prototype.__tryOrSetError=function(t,e,r){if(!c.config.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{e.call(this._context,r)}catch(e){if(c.config.useDeprecatedSynchronousErrorHandling)return t.syncErrorValue=e,t.syncErrorThrown=!0,!0;return u.hostReportError(e),!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(h);e.SafeSubscriber=p},5569:t=>{"use strict";var e=/^https?:\/\//i;t.exports=function(t){if(!e.test(t.url))throw Error('"'+t.url+'" is not a valid URL')}},5668:(t,e,r)=>{"use strict";function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(3766),i=r(2623),s=r(5876),a=r(182),c=a.validateObject,u=a.validateInsert;function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.selection=t,this.operations=i({},e),this.client=r}i(h.prototype,{clone:function(){return new h(this.selection,i({},this.operations),this.client)},merge:function(t){c("merge",t);var e=Error().stack.toString().split("\n").filter(function(t){return t.trim()}).slice(2);return console.warn('The "merge" patch has been deprecated and will be removed in the future\n'.concat(e.join("\n"))),this._assign("merge",o(this.operations.merge||{},t))},set:function(t){return this._assign("set",t)},diffMatchPatch:function(t){return c("diffMatchPatch",t),this._assign("diffMatchPatch",t)},unset:function(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=i({},this.operations,{unset:t}),this},setIfMissing:function(t){return this._assign("setIfMissing",t)},replace:function(t){return c("replace",t),this._set("set",{$:t})},inc:function(t){return this._assign("inc",t)},dec:function(t){return this._assign("dec",t)},insert:function(t,e,r){var o;return u(t,e,r),this._assign("insert",(n(o={},t,e),n(o,"items",r),o))},append:function(t,e){return this.insert("after","".concat(t,"[-1]"),e)},prepend:function(t,e){return this.insert("before","".concat(t,"[0]"),e)},splice:function(t,e,r,n){var o=e<0?e-1:e,i=void 0===r||-1===r?-1:Math.max(0,e+r),s="".concat(t,"[").concat(o,":").concat(o<0&&i>=0?"":i,"]");return this.insert("replace",s,n||[])},ifRevisionId:function(t){return this.operations.ifRevisionID=t,this},serialize:function(){return i(s(this.selection),this.operations)},toJSON:function(){return this.serialize()},commit:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.client)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");var e=i({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return this.client.mutate({patch:this.serialize()},e)},reset:function(){return this.operations={},this},_set:function(t,e){return this._assign(t,e,!1)},_assign:function(t,e){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return c(t,e),this.operations=i({},this.operations,n({},t,i({},r&&this.operations[t]||{},e))),this}}),t.exports=h},5835:(t,e,r)=>{"use strict";var n=r(1327),o=r(2623),i=r(182),s=r(812),a={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,gradientMode:!1,isPromiseAPI:!0},c=["localhost","127.0.0.1","0.0.0.0"];e.defaultConfig=a,e.initConfig=function(t,r){var u,h=o({},r,t);h.apiVersion||s.printNoApiVersionSpecifiedWarning();var p=o({},a,h),l=p.gradientMode,f=!l&&p.useProjectHostname;
1if("undefined"==typeof Promise){var d=n("js-client-promise-polyfill");throw Error("No native Promise-implementation found, polyfill needed - see ".concat(d))}if(l&&!p.namespace)throw Error("Configuration must contain `namespace` when running in gradient mode");if(f&&!p.projectId)throw Error("Configuration must contain `projectId`");var y="undefined"!=typeof window&&window.location&&window.location.hostname,v=y&&(u=window.location.hostname,-1!==c.indexOf(u));if(y&&v&&p.token&&!0!==p.ignoreBrowserTokenWarning?s.printBrowserTokenWarning():(!y||v)&&p.useCdn&&p.token?s.printCdnTokenWarning():void 0===p.useCdn&&s.printCdnWarning(),f&&i.projectId(p.projectId),!l&&p.dataset&&i.dataset(p.dataset,p.gradientMode),"requestTagPrefix"in p&&(p.requestTagPrefix=p.requestTagPrefix?i.requestTag(p.requestTagPrefix).replace(/\.+$/,""):void 0),p.apiVersion="".concat(p.apiVersion).replace(/^v/,""),p.isDefaultApi=p.apiHost===a.apiHost,p.useCdn=!!p.useCdn&&!p.token&&!p.withCredentials,e.validateApiVersion(p.apiVersion),p.gradientMode)p.url=p.apiHost,p.cdnUrl=p.apiHost;else{var b=p.apiHost.split("://",2),m=b[0],g=b[1],w=p.isDefaultApi?"apicdn.sanity.io":g;p.useProjectHostname?(p.url="".concat(m,"://").concat(p.projectId,".").concat(g,"/v").concat(p.apiVersion),p.cdnUrl="".concat(m,"://").concat(p.projectId,".").concat(w,"/v").concat(p.apiVersion)):(p.url="".concat(p.apiHost,"/v").concat(p.apiVersion),p.cdnUrl=p.url)}return p},e.validateApiVersion=function(t){if("1"!==t&&"X"!==t){var e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}}},5876:t=>{"use strict";t.exports=function(t){if("string"==typeof t||Array.isArray(t))return{id:t};if(t&&t.query)return"params"in t?{query:t.query,params:t.params}:{query:t.query};throw Error("Unknown selection - must be one of:\n\n".concat("* Document ID (<docId>)\n* Array of document IDs\n* Object containing `query`"))}},6085:(t,e,r)=>{"use strict";var n=r(6467),o=r(2623);t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||n.Observable;if(!e)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:function(t,r){return new e(function(e){return t.error.subscribe(function(t){return e.error(t)}),t.progress.subscribe(function(t){return e.next(o({type:"progress"},t))}),t.response.subscribe(function(t){e.next(o({type:"response"},t)),e.complete()}),t.request.publish(r),function(){return t.abort.publish()}})}}}},6183:t=>{"use strict";t.exports=function(t){return null!=t&&"object"==typeof t&&!1===Array.isArray(t)}},6269:(t,e,r)=>{"use strict";var n=r(2229),o=r(2623);function i(t){var e=a(t);i.super.call(this,e.message),o(this,e)}function s(t){var e=a(t);s.super.call(this,e.message),o(this,e)}function a(t){var e,r,n,o=t.body,i={response:t,statusCode:t.statusCode,responseBody:(e=o,-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(e,null,2):e)};return o.error&&o.message?i.message="".concat(o.error," - ").concat(o.message):o.error&&o.error.description?(i.message=o.error.description,i.details=o.error):i.message=o.error||o.message||(n=(r=t).statusMessage?" ".concat(r.statusMessage):"","".concat(r.method,"-request to ").concat(r.url," resulted in HTTP ").concat(r.statusCode).concat(n)),i}n(i),n(s),e.ClientError=i,e.ServerError=s},6347:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=r(5469);e.filter=function(t,e){return function(r){return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.predicate,this.thisArg))},t}(),s=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.predicate=r,o.thisArg=n,o.count=0,o}return n(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}e&&this.destination.next(t)},e}(o.Subscriber)},6453:(t,e,r)=>{"use strict";function n(t){this.client=t}r(2623)(n.prototype,{getLoginProviders:function(){return this.client.request({uri:"/auth/providers"})},logout:function(){return this.client.request({uri:"/auth/logout",method:"POST"})}}),t.exports=n},6467:(t,e,r)=>{"use strict";"undefined"!=typeof window?t.exports=window:void 0!==r.g?t.exports=r.g:"undefined"!=typeof self?t.exp
1orts=self:t.exports={}},6489:(t,e,r)=>{"use strict";function n(t){this.client=t}r(2623)(n.prototype,{list:function(){return this.client.request({uri:"/projects"})},getById:function(t){return this.client.request({uri:"/projects/".concat(t)})}}),t.exports=n},6655:(t,e,r)=>{"use strict";var n=r(2189),o=r(2623),i=r(6085),s=r(4847),a=r(7741),c=r(228),u=r(125),h=r(6269),p=h.ClientError,l=h.ServerError,f=n(r(5246).concat([{onResponse:function(t){var e=t.headers["x-sanity-warning"];return(Array.isArray(e)?e:[e]).filter(Boolean).forEach(function(t){return console.warn(t)}),t}},s(),a(),c(),{onResponse:function(t){if(t.statusCode>=500)throw new l(t);if(t.statusCode>=400)throw new p(t);return t}},i({implementation:u})]));function d(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;return e(o({maxRedirects:0},t))}d.defaultRequester=f,d.ClientError=p,d.ServerError=l,t.exports=d},6786:t=>{var e=function(t){return t.replace(/^\s+|\s+$/g,"")};t.exports=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),o=0;o<n.length;o++){var i,s=n[o],a=s.indexOf(":"),c=e(s.slice(0,a)).toLowerCase(),u=e(s.slice(a+1));void 0===r[c]?r[c]=u:(i=r[c],"[object Array]"===Object.prototype.toString.call(i))?r[c].push(u):r[c]=[r[c],u]}return r}},7136:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(5469);e.scan=function(t,e){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new i(t,e,r))}};var i=function(){function t(t,e,r){void 0===r&&(r=!1),this.accumulator=t,this.seed=e,this.hasSeed=r}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.accumulator,this.seed,this.hasSeed))},t}(),s=function(t){function e(e,r,n,o){var i=t.call(this,e)||this;return i.accumulator=r,i._seed=n,i.hasSeed=o,i.index=0,i}return n(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,r=this.index++;try{e=this.accumulator(this.seed,t,r)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},7597:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},7741:(t,e,r)=>{"use strict";var n=r(2623);t.exports=function(t){return{onResponse:function(e){var r=e.headers["content-type"]||"",o=t&&t.force||-1!==r.indexOf("application/json");return e.body&&r&&o?n({},e,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message="Failed to parsed response body as JSON: "+t.message,t}}(e.body)}):e},processOptions:function(t){return n({},t,{headers:n({Accept:"application/json"},t.headers)})}}}},7935:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isFunction=function(t){return"function"==typeof t}},7988:t=>{"use strict";t.exports=function(t){return function(e,r){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];for(var s="onError"===e,a=r,c=0;c<t[e].length&&(a=t[e][c].apply(void 0,[a].concat(o)),!s||a);c++);return a}}},8195:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5469),o=r(2656),i=r(8529);e.toSubscriber=function(t,e,r){if(t){if(t instanceof n.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||r?new n.Subscriber(t,e,r):new n.Subscriber(i.empty)}},8244:t=>{"use strict";t.exports=function(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}},8255:(t,e,r)=>{"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var o=r(2623),i=r(534).map,s=r(8982).filter,a=r(8883),c=r(182);function u(t){this.client=t}o(u.prototype,{upload:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c.validateAssetType(t);var n=r.extract||void 0;n&&!n.length&&(n=["none"]);var a=c.hasDataset(this.client.clientConfig),u="image"===t?"images":"files",h="undefined"!=typeof window&&e instanceof window.File?o({filename:!1===r.preserveFilename?void 0:e.name,contentType:e.type},r):r,p=h.tag,l=h.label,f=h.title,d=h.description,y=h.creditLine,v=h.filename,b=h.source,m={label:l,title:f,description:d,filename:v,meta:n,creditLine:y};b&&(m.sourceId=b.id,m.sourceName=b.name,m.sourceUrl=b.url);var g=this.client._requestObservable({tag:p,method:"POST",timeout:h.timeout||0,uri:"/assets/".concat(u,"/").concat(a),headers:h.contentType?{"Content-Type":h.contentType}:{},query:m,body:e});return this.client.isPromiseAPI()?g.pipe(s(function(t){return"response"===t.type}),i(function(t){var e;return Object.defineProperty(e=t.body.document,"document",{enumerable:!1,get:function(){return console.warn("The promise returned from client.asset.upload(...) now resolves with the asset document"),e}}),e})).toPromise():g},delete:function(t,e){console.warn("client.assets.delete() is deprecated, please use client.delete(<document-id>)");var r=e||"";return/^(image|file)-/.test(r)?t._id&&(r=t._id):r="".concat(t,"-").concat(r),c.hasDataset(this.client.clientConfig),this.client.delete(r)},getImageUrl:function(t,e){var r,o=t._ref||t;if("string"!=typeof o)throw 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(o))throw Error('Unsupported asset ID "'.concat(o,'". URL generation only works for auto-generated IDs.'));var i=function(t){if(Array.isArray(t))return t}(r=o.split("-"))||function(t,e){var r,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],s=!0,a=!1;try{for(o=o.call(t);!(s=(r=o.next()).done)&&(i.push(r.value),i.length!==e);s=!0);}catch(t){a=!0,n=t}finally{try{s||null==o.return||o.return()}finally{if(a)throw n}}return i}}(r,4)||function(t,e){if(t){if("string"==typeof t)return n(t,4);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,e)}}
1(r,4)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),s=i[1],u=i[2],h=i[3];c.hasDataset(this.client.clientConfig);var p=this.client.clientConfig,l=p.projectId,f=p.dataset,d=e?a(e):"";return"https://cdn.sanity.io/images/".concat(l,"/").concat(f,"/").concat(s,"-").concat(u,".").concat(h).concat(d)}}),t.exports=u},8529:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(3233),o=r(4130);e.empty={closed:!0,next:function(t){},error:function(t){if(n.config.useDeprecatedSynchronousErrorHandling)throw t;o.hostReportError(t)},complete:function(){}}},8562:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(9646),o=r(8195),i=r(7597),s=r(176),a=r(3233);function c(t){if(t||(t=a.config.Promise||Promise),!t)throw Error("no Promise impl found");return t}e.Observable=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this.operator,i=o.toSubscriber(t,e,r);if(n?i.add(n.call(i,this.source)):i.add(this.source||a.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),a.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){a.config.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),n.canReportError(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=c(e))(function(e,n){var o;o=r.subscribe(function(e){try{t(e)}catch(t){n(t),o&&o.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[i.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=c(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}()},8849:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=r(5469);e.map=function(t,e){return function(r){if("function"!=typeof t)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new i(t,e))}};var i=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.thisArg))},t}(),s=function(t){function e(e,r,n){var o=t.call(this,e)||this;return o.project=r,o.count=0,o.thisArg=n||o,o}return n(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){this.destination.error(t);return}this.destination.next(e)},e}(o.Subscriber)},8883:t=>{"use strict";t.exports=function(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push("".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(t[r])));return e.length>0?"?".concat(e.join("&")):""}},8934:(t,e,r)=>{"use strict";var n=function(){var t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(e,r)};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(5469),i=r(9489),s=r(2032);e.takeLast=function(t){return function(e){return 0===t?s.empty():e.lift(new a(t))}};var a=function(){function t(t){if(this.total=t,this.total<0)throw new i.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,r){var n=t.call(this,e)||this;return n.total=r,n.ring=[],n.count=0,n}return n(e,t),e.prototype._next=function(t){var e=this.ring,r=this.total,n=this.count++;e.length<r?e.push(t):e[n%r]=t},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=e++%r;t.next(n[i])}t.complete()},e}(o.Subscriber)},8982:(t,e,r)=>{e.filter=r(6347).filter},9489:(t,e)=>{"use strict";
1Object.defineProperty(e,"__esModule",{value:!0}),e.ArgumentOutOfRangeError=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},9646:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(5469);e.canReportError=function(t){for(;t;){var e=t,r=e.closed,o=e.destination,i=e.isStopped;if(r||i)return!1;t=o&&o instanceof n.Subscriber?o:null}return!0}},9665:(t,e,r)=>{"use strict";function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function o(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],o in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}var i=r(2623),s=r(125),a=r(3843),c=r(1327),u=r(3011),h=r(4467),p=r(4148),l=r(1021),f=["Using token with listeners is not supported in browsers. ","For more info, see ".concat(c("js-client-listener-tokens-browser"),".")],d=h(function(){return console.warn(f.join(" "))}),y=!!("undefined"!=typeof window&&window.EventSource),v=y?window.EventSource:a,b=["includePreviousRevision","includeResult","visibility","effectFormat","tag"],m={includeResult:!0};function g(t){try{var e=t.data&&JSON.parse(t.data)||{};return i({type:t.type},e)}catch(t){return t}}t.exports=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.clientConfig,i=n.url,a=n.token,c=n.withCredentials,h=n.requestTagPrefix,f=r.tag&&h?[h,r.tag].join("."):r.tag,w=o(o({},p(r,m)),{},{tag:f}),_=l({query:t,params:e,options:u(w,b),tag:f}),O="".concat(i).concat(this.getDataUrl("listen",_));if(O.length>14800)return new s(function(t){return t.error(Error("Query too large for listener"))});var E=w.events?w.events:["mutation"],x=-1!==E.indexOf("reconnect");a&&y&&d();var j={};return(a||c)&&(j.withCredentials=!0),a&&(j.headers={Authorization:"Bearer ".concat(a)}),new s(function(t){var e,r=u(),n=!1;function o(){!n&&(x&&t.next({type:"reconnect"}),n||r.readyState===v.CLOSED&&(c(),clearTimeout(e),e=setTimeout(h,100)))}function i(e){t.error(function(t){if(t instanceof Error)return t;var e,r=g(t);return r instanceof Error?r:Error((e=r).error?e.error.description?e.error.description:"string"==typeof e.error?e.error:JSON.stringify(e.error,null,2):e.message||"Unknown listener error")}(e))}function s(e){var r=g(e);return r instanceof Error?t.error(r):t.next(r)}function a(e){n=!0,c(),t.complete()}function c(){r.removeEventListener("error",o,!1),r.removeEventListener("channelError",i,!1),r.removeEventListener("disconnect",a,!1),E.forEach(function(t){return r.removeEventListener(t,s,!1)}),r.close()}function u(){var t=new v(O,j);return t.addEventListener("error",o,!1),t.addEventListener("channelError",i,!1),t.addEventListener("disconnect",a,!1),E.forEach(function(e){return t.addEventListener(e,s,!1)}),t}function h(){r=u()}return function(){n=!0,c()}})}},9702:t=>{"use strict";function e(){this.readyState=0}e.prototype.open=function(t,e){this._method=t,this._url=e,this._resHeaders="",this.readyState=1,this.onreadystatechange()},e.prototype.abort=function(){this._controller&&this._controller.abort()},e.prototype.getAllResponseHeaders=function(){return this._resHeaders},e.prototype.setRequestHeader=function(t,e){this._headers=this._headers||{},this._headers[t]=e},e.prototype.send=function(t){var e=this,r=this._controller="function"==typeof AbortController&&new AbortController,n="arraybuffer"!==this.responseType,o={method:this._method,headers:this._headers,signal:r&&r.signal,body:t};"undefined"!=typeof window&&(o.credentials=this.withCredentials?"include":"omit"),fetch(this._url,o).then(function(t){return t.headers.forEac
1h(function(t,r){e._resHeaders+=r+": "+t+"\r\n"}),e.status=t.status,e.statusText=t.statusText,e.readyState=3,n?t.text():t.arrayBuffer()}).then(function(t){n?e.responseText=t:e.response=t,e.readyState=4,e.onreadystatechange()}).catch(function(t){if("AbortError"===t.name)return void e.onabort();e.onerror(t)})},t.exports=e},9831:(t,e,r)=>{"use strict";var n=r(2623),o=r(182);function i(t){this.request=t.request.bind(t)}n(i.prototype,{create:function(t,e){return this._modify("PUT",t,e)},edit:function(t,e){return this._modify("PATCH",t,e)},delete:function(t){return this._modify("DELETE",t)},list:function(){return this.request({uri:"/datasets"})},_modify:function(t,e,r){return o.dataset(e),this.request({method:t,uri:"/datasets/".concat(e),body:r})}}),t.exports=i},9841:(t,e,r)=>{"use strict";var n=r(1668),o=r(7988),i=r(2895),s=r(5569),a=r(3203),c=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];t.exports=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,h=[],p=u.reduce(function(t,e){return t[e]=t[e]||[],t},{processOptions:[i],validateOptions:[s]});function l(t){var e=c.reduce(function(t,e){return t[e]=n(),t},{}),i=o(p),s=i("processOptions",t);i("validateOptions",s);var a={options:s,channels:e,applyMiddleware:i},u=null,h=e.request.subscribe(function(t){u=r(t,function(r,n){var o=r,s=n,a=t,c=o,u=s;if(!c)try{u=i("onResponse",s,a)}catch(t){u=null,c=t}(c=c&&i("onError",c,a))?e.error.publish(c):u&&e.response.publish(u)})});e.abort.subscribe(function(){h(),u&&u.abort()});var l=i("onReturn",e,a);return l===e&&e.request.publish(a),l}return l.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&p.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return u.forEach(function(e){t[e]&&p[e].push(t[e])}),h.push(t),l},l.clone=function(){return t(h)},e.forEach(l.use),l}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.