1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="2234e107-9d04-40a2-8f0c-4f24b17cf1de",e._sentryDebugIdIdentifier="sentry-dbid-2234e107-9d04-40a2-8f0c-4f24b17cf1de")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[643],{7834:e=>{e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports.default=e.exports},8538:(e,t,r)=>{"use strict";r.d(t,{UU:()=>r5});let n=!(typeof navigator>"u")&&"ReactNative"===navigator.product,i={timeout:n?6e4:12e4},o=function(e){let t={...i,..."string"==typeof e?{url:e}:e};if(t.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let r=Number(t);return isNaN(r)?e(i.timeout):{connect:r,socket:r}}(t.timeout),t.query){let{url:e,searchParams:r}=function(e){let t=e.indexOf("?");if(-1===t)return{url:e,searchParams:new URLSearchParams};let r=e.slice(0,t),i=e.slice(t+1);if(!n)return{url:r,searchParams:new URLSearchParams(i)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let o=new URLSearchParams;for(let e of i.split("&")){let[t,r]=e.split("=");t&&o.append(s(t),s(r||""))}return{url:r,searchParams:o}}(t.url);for(let[n,i]of Object.entries(t.query)){if(void 0!==i)if(Array.isArray(i))for(let e of i)r.append(n,e);else r.append(n,i);let o=r.toString();o&&(t.url=`${e}?${o}`)}}return t.method=t.body&&!t.method?"POST":(t.method||"GET").toUpperCase(),t};function s(e){return decodeURIComponent(e.replace(/\+/g," "))}let a=/^https?:\/\//i,u=function(e){if(!a.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},c=["request","response","progress","error","abort"],l=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var h,f,p=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(function(){if(f)return h;f=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return h=function(t){if(!t)return{};for(var r=Object.create(null),n=e(t).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),u=e(s.slice(0,a)).toLowerCase(),c=e(s.slice(a+1));typeof r[u]>"u"?r[u]=c:(o=r[u],"[object Array]"===Object.prototype.toString.call(o))?r[u].push(c):r[u]=[r[u],c]}return r}}());class d{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#e;#t;#r;#n={};#i;#o={};#s;open(e,t,r){this.#e=e,this.#t=t,this.#r="",this.readyState=1,this.onreadystatechange?.(),this.#i=void 0}abort(){this.#i&&this.#i.abort()}getAllResponseHeaders(){return this.#r}setRequestHeader(e,t){this.#n[e]=t}setInit(e,t=!0){this.#o=e,this.#s=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#o,method:this.#e,headers:this.#n,body:e};"function"==typeof AbortController&&this.#s&&(this.#i=new AbortController,"u">typeof EventTarget&&this.#i.signal instanceof EventTarget&&(r.signal=this.#i.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#t,r).then(e=>(e.headers.forEach((e,t)=>{this.#r+=`${t}: ${e}\r 2`}),this.status=e.status,this.statusText=e.statusText,this.readyState=3,this.onreadystatechange?.(),t?e.text():e.arrayBuffer())).then(e=>{"string"==typeof e?this.responseText=e:this.response=e,this.readyState=4,this.onreadystatechange?.()}).catch(e=>{"AbortError"!==e.name?this.onerror?.(e):this.onabort?.()})}}let y="function"==typeof XMLHttpRequest?"xhr":"fetch",g="xhr"===y?XMLHttpRequest:d,v=(e,t)=>{let r=e.options,n=e.applyMiddleware("finalizeOptions",r),i={},o=e.applyMiddleware("interceptRequest",void 0,{adapter:y,context:e});if(o){let e=setTimeout(t,0,null,o);return{abort:()=>clearTimeout(e)}}let s=new g;s instanceof d&&"object"==typeof n.fetch&&s.setInit(n.fetch,n.useAbortSignal??!0);let a=n.headers,u=n.timeout,c=!1,l=!1,h=!1;if(s.onerror=e=>{m(s instanceof d?e instanceof Error?e:Error(`Request error while attempting to reach ${n.url}`,{cause:e}):Error(`Request error while attempting to reach is ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.ontimeout=e=>{m(Error(`Request timeout while attempting to reach ${n.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},s.onabort=()=>
2{v(!0),c=!0},s.onreadystatechange=function(){u&&(v(),i.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),u.socket)),!c&&s&&4===s.readyState&&0!==s.status&&function(){if(!(c||l||h)){if(0===s.status)return m(Error("Unknown XHR error"));v(),l=!0,t(null,{body:s.response||(""===s.responseType||"text"===s.responseType?s.responseText:""),url:n.url,method:n.method,headers:p(s.getAllResponseHeaders()),statusCode:s.status,statusMessage:s.statusText})}}()},s.open(n.method,n.url,!0),s.withCredentials=!!n.withCredentials,a&&s.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&s.setRequestHeader(e,a[e]);return n.rawBody&&(s.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:n,adapter:y,request:s,context:e}),s.send(n.body||null),u&&(i.connect=setTimeout(()=>f("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,s&&s.abort()}};function f(t){h=!0,s.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${n.url}`:`Connection timed out on request to ${n.url}`);r.code=t,e.channels.error.publish(r)}function v(e){(e||c||s&&s.readyState>=2&&i.connect)&&clearTimeout(i.connect),i.socket&&clearTimeout(i.socket)}function m(e){if(l)return;v(!0),l=!0,s=null;let r=e||Error(`Network error while attempting to reach ${n.url}`);r.isNetworkError=!0,r.request=n,t(r)}};var m,b,w,x,O,C=r(80462),E=r(73741).hp,R={exports:{}};O||(O=1,function(e,t){let r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))}),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch{}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch{}return!e&&"u">typeof C&&"env"in C&&(e=C.env.DEBUG),e},t.useColors=function(){let e;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch{}}(),r=!1,t.destroy=()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(x?w:(x=1,w=function(e){function t(e){let n,i,o,s=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(n||r),a.prev=n,a.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,n)=>{if("%%"===r)return"%";i++;let o=t.formatters[n];if("function"==typeof o){let t=e[i];r=o.call(a,t),e.splice(i,1),i--}return r}),t.formatArgs.call(a,e),(a.log||t.log).apply(a,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=r,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let n=t(this.namespace+(typeof r>"u"?":":r)+e);return n.log=this.log,n}function n(e,t){let r=0,n=0,i=-1,o=0;for(;r<e.length;)if(n<t.length&&(t[n]===e[r]||"*"===t[n]))"*"===t[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<t.length&&"*"===t[n];)n++;return n===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){for(let r of(t.save(e),t.namespaces=e,t.names=[],t.skips=[],("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(
2Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(n(e,r))return!1;for(let r of t.names)if(n(e,r))return!0;return!1},t.humanize=function(){if(b)return m;b=1;function e(e,t,r,n){return Math.round(e/r)+" "+n+(t>=1.5*r?"s":"")}return m=function(t,r){r=r||{};var n,i,o=typeof t;if("string"===o&&t.length>0){var s=t;if(!((s=String(s)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(a){var u=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*u;case"weeks":case"week":case"w":return 6048e5*u;case"days":case"day":case"d":return 864e5*u;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*u;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*u;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u}}}return}if("number"===o&&isFinite(t))return r.long?(i=Math.abs(t))>=864e5?e(t,i,864e5,"day"):i>=36e5?e(t,i,36e5,"hour"):i>=6e4?e(t,i,6e4,"minute"):i>=1e3?e(t,i,1e3,"second"):t+" ms":(n=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":n>=36e5?Math.round(t/36e5)+"h":n>=6e4?Math.round(t/6e4)+"m":n>=1e3?Math.round(t/1e3)+"s":t+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(r=>{t[r]=e[r]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=(r<<5)-r+e.charCodeAt(t)|0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}))(t);let{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(R,R.exports)),R.exports,Object.prototype.hasOwnProperty;let _=typeof E>"u"?()=>!1:e=>E.isBuffer(e);function I(e){return"[object Object]"===Object.prototype.toString.call(e)}let j=["boolean","string","number"],q={};"u">typeof globalThis?q=globalThis:"u">typeof window?q=window:"u">typeof global?q=global:"u">typeof self&&(q=self);var T=q;let S=(e={})=>{let t=e.implementation||Promise;if(!t)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new t((t,i)=>{let o=n.options.cancelToken;o&&o.promise.then(e=>{r.abort.publish(e),i(e)}),r.error.subscribe(i),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(e){i(e)}},0)})}};class ${__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}class A{promise;reason;constructor(e){if("function"!=typeof e)throw TypeError("executor must be a function.");let t=null;this.promise=new Promise(e=>{t=e}),e(e=>{this.reason||(this.reason=new $(e),t(this.reason))})}static source=()=>{let e;return{token:new A(t=>{e=t}),cancel:e}}}S.Cancel=$,S.CancelToken=A,S.isCancel=e=>!(!e||!e?.__CANCEL__);var P=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function k(e){return 100*Math.pow(2,e)+100*Math.random()}let M=(e={})=>(e=>{let t=e.maxRetries||5,r=e.retryDelay||k,n=e.shouldRetry;return{onError:(e,i)=>{var o;let s=i.options,a=s.maxRetries||t,u=s.retryDelay||r,c=s.shouldRetry||n,l=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!c(e,l,s)||l>=a)return e;let h=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:l+1})});return setTimeout(()=>i.channels.request.publish(h),u(l)),null}}})({shouldRetry:P,...e});M.shouldRetry=P;var N=r(5774);function D(e){return"function"==typeof e}function F(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var U=F(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function z(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var H=function(){var e;function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,t,r,n,i,o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=(0,N.Ju)(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var u=this.initialTeardown;
2if(D(u))try{u()}catch(e){i=e instanceof U?e.errors:[e]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var l=(0,N.Ju)(c),h=l.next();!h.done;h=l.next()){var f=h.value;try{W(f)}catch(e){i=null!=i?i:[],e instanceof U?i=(0,N.fX)((0,N.fX)([],(0,N.zs)(i)),(0,N.zs)(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{h&&!h.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new U(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)W(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(e)}},t.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},t.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},t.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&z(t,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&z(r,e),e instanceof t&&e._removeParent(this)},(e=new t).closed=!0,t.EMPTY=e,t}(),V=H.EMPTY;function L(e){return e instanceof H||e&&"closed"in e&&D(e.remove)&&D(e.add)&&D(e.unsubscribe)}function W(e){D(e)?e():e.unsubscribe()}var B={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},J={setTimeout:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=J.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,(0,N.fX)([e,t],(0,N.zs)(r))):setTimeout.apply(void 0,(0,N.fX)([e,t],(0,N.zs)(r)))}),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var t=J.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)}),delegate:void 0};function G(e){J.setTimeout(function(){var t=B.onUnhandledError;if(t)t(e);else throw e})}function Y(){}var X=Q("C",void 0,void 0);function Q(e,t,r){return{kind:e,value:t,error:r}}var K=null;function Z(e){if(B.useDeprecatedSynchronousErrorHandling){var t=!K;if(t&&(K={errorThrown:!1,error:null}),e(),t){var r=K,n=r.errorThrown,i=r.error;if(K=null,n)throw i}}else e()}var ee=function(e){function t(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,L(t)&&t.add(r)):r.destination=ea,r}return(0,N.C6)(t,e),t.create=function(e,t,r){return new ei(e,t,r)},t.prototype.next=function(e){this.isStopped?es(Q("N",e,void 0),this):this._next(e)},t.prototype.error=function(e){this.isStopped?es(Q("E",void 0,e),this):(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped?es(X,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(H),et=Function.prototype.bind;function er(e,t){return et.call(e,t)}var en=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){eo(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){eo(e)}else eo(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){eo(e)}},e}(),ei=function(e){function t(t,r,n){var i,o,s=e.call(this)||this;return D(t)||!t?i={next:null!=t?t:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}:s&&B.useDeprecatedNextContext?((o=Object.create(t)).unsubscribe=function(){return s.unsubscribe()},i={next:t.next&&er(t.next,o),error:t.error&&er(t.error,o),complete:t.complete&&er(t.complete,o)}):i=t,s.destination=new en(i),s}return(0,N.C6)(t,e),t}(ee);function eo(e){if(B.useDeprecatedSynchronousErrorHandling)B.useDeprecatedSynchronousErrorHandling&&K&&(K.errorThrown=!0,K.error=e);else G(e)}function es(e,t){var r=B.onStoppedNotification;r&&J.setTimeout(function(){return r(e,t)})}var ea={closed:!0,next:Y,error:function(e){throw e},complete:Y},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function ec(e){return e}function el(e){return 0===e.length?ec:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var eh=function(){function e(e){e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this,i=!function(e){return e&&e instanceof ee||e&&D(e.next)&&D(e.error)&&D(e.complete)&&L(e)}(e)?new ei(e,t,r):e;return Z(function(){var e=n.operator,t=n.source;i.add(e?e.call(i,t):t?n._subscribe(i):n._trySubscribe(i))}),i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=ef(t))(function(t,n){var i=new ei({next:function(t){try{e(t)}catch(e){n(e),i.unsubscribe()}},error:n,complete:t});r.subscribe(i)})},e.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},e.prototype[eu]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return el(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=ef(e))(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}();function ef(e){var t;return null!=(t=null!=e?e:B.Promise)?t:Promise}var ep=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function ed(e){return D(null==e?void 0:e.then)}function ey(e){return Symbol.asyncIterator&&D(null==e?void 0:e[Symbol.asyncIterator])}function eg(e){return TypeError("You provided "+(null!==e&&"object"==typeof e?"an invali
2d object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var ev="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function em(e){return D(null==e?void 0:e[ev])}function eb(e){return(0,N.AQ)(this,arguments,function(){var t,r,n;return(0,N.YH)(this,function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,(0,N.N3)(t.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,(0,N.N3)(void 0)];case 4:return[2,i.sent()];case 5:return[4,(0,N.N3)(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function ew(e){return D(null==e?void 0:e.getReader)}function ex(e){if(e instanceof eh)return e;if(null!=e){var t,r,n,i;if(D(e[eu])){return t=e,new eh(function(e){var r=t[eu]();if(D(r.subscribe))return r.subscribe(e);throw TypeError("Provided object does not correctly
2implement Symbol.observable")})}if(ep(e)){return r=e,new eh(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}if(ed(e)){return n=e,new eh(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,G)})}if(ey(e))return eO(e);if(em(e)){return i=e,new eh(function(e){var t,r;try{for(var n=(0,N.Ju)(i),o=n.next();!o.done;o=n.next()){var s=o.value;if(e.next(s),e.closed)return}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}e.complete()})}if(ew(e))return eO(eb(e))}throw eg(e)}function eO(e){return new eh(function(t){(function(e,t){var r,n,i,o;return(0,N.sH)(this,void 0,void 0,function(){var s;return(0,N.YH)(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=(0,N.xN)(e),a.label=1;case 1:return[4,r.next()];case 2:if((n=a.sent()).done)return[3,4];if(s=n.value,t.next(s),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];case 6:if(a.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(e){return t.error(e)})})}function eC(e){return new eh(function(t){ex(e()).subscribe(t)})}function eE(e){return e[e.length-1]}function eR(e){var t;return(t=eE(e))&&D(t.schedule)?e.pop():void 0}function e_(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(o),!i)return o}function eI(e){return function(t){if(D(null==t?void 0:t.lift))return t.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}function ej(e,t,r,n,i){return new eq(e,t,r,n,i)}var eq=function(e){function t(t,r,n,i,o,s){var a=e.call(this,t)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,N.C6)(t,e),t.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},t}(ee);function eT(e,t){return void 0===t&&(t=0),eI(function(r,n){r.subscribe(ej(n,function(r){return e_(n,e,function(){return n.next(r)},t)},function(){return e_(n,e,function(){return n.complete()},t)},function(r){return e_(n,e,function(){return n.error(r)},t)}))})}function eS(e,t){return void 0===t&&(t=0),eI(function(r,n){n.add(e.schedule(function(){return r.subscribe(n)},t))})}function e$(e,t){if(!e)throw Error("Iterable cannot be null");return new eh(function(r){e_(r,t,function(){var n=e[Symbol.asyncIterator]();e_(r,t,function(){n.next().then(function(e){e.done?r.complete():r.next(e.value)})},0,!0)})})}function eA(e,t){return t?function(e,t){if(null!=e){if(D(e[eu]))return ex(e).pipe(eS(t),eT(t));if(ep(e))return new eh(function(r){var n=0;return t.schedule(function(){n===e.length?r.complete():(r.next(e[n++]),r.closed||this.schedule())})});if(ed(e))return ex(e).pipe(eS(t),eT(t));if(ey(e))return e$(e,t);if(em(e))return new eh(function(r){var n;return e_(r,t,function(){n=e[ev](),e_(r,t,function(){var e,t,i;try{t=(e=n.next()).value,i=e.done}catch(e){r.error(e);return}i?r.complete():r.next(t)},0,!0)}),function(){return D(null==n?void 0:n.return)&&n.return()}});if(ew(e))return e$(eb(e),t)}throw eg(e)}(e,t):ex(e)}function eP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=eR(e);return eA(e,r)}function ek(e,t){return eI(function(r,n){var i=0;r.subscribe(ej(n,function(r){n.next(e.call(t,r,i++))}))})}function eM(e,t,r){return(void 0===r&&(r=1/0),D(t))?eM(function(r,n){return ek(function(e,i){return t(r,e,n,i)})(ex(e(r,n)))},r):("number"==typeof t&&(r=t),eI(function(t,n){var i,o,s,a,u,c,l,h,f;return i=r,s=[],a=0,u=0,c=!1,l=function(){!c||s.length||a||n.complete()},h=function(e){return a<i?f(e):s.push(e)},f=function(t){a++;var r=!1;ex(e(t,u++)).subscribe(ej(n,function(e){o?h(e):n.next(e)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<i;)!function(){var e=s.shift();f(e)}();l()}catch(e){n.error(e)}}))},t.subscribe(ej(n,h,function(){c=!0,l()})),function(){}}))}var eN=F(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function eD(e,t){var r="object"==typeof t;return new Promise(function(n,i){var o,s=!1;e.subscribe({next:function(e){o=e,s=!0},error:i,complete:function(){s?n(o):r?n(t.defaultValue):i(new eN)}})})}var eF=F(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eU=function(e){function t(){var t=e.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return(0,N.C6)(t,e),t.prototype.lift=function(e){var t=new ez(this,this);return t.operator=e,t},t.prototype._throwIfClosed=function(){if(this.closed)throw new eF},t.prototype.next=function(e){var t=this;Z(function(){var r,n;if(t._throwIfClosed(),!t.isStopped){t.currentObservers||(t.currentObservers=Array.from(t.observers));try{for(var i=(0,N.Ju)(t.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(e)}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},t.prototype.error=function(e){var t=this;Z(function(){if(t._throwIfClosed(),!t.isStopped){t.hasError=t.isStopped=!0,t.thrownError=e;for(var r=t.observers;r.length;)r.shift().error(e)}})},t.prototype.complete=function(){var e=this;Z(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return(null==(e=this.observers)?void 0:e.length)>0}
2,enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(t){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?V:(this.currentObservers=null,i.push(e),new H(function(){t.currentObservers=null,z(i,e)}))},t.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},t.prototype.asObservable=function(){var e=new eh;return e.source=this,e},t.create=function(e,t){return new ez(e,t)},t}(eh),ez=function(e){function t(t,r){var n=e.call(this)||this;return n.destination=t,n.source=r,n}return(0,N.C6)(t,e),t.prototype.next=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.next)||r.call(t,e)},t.prototype.error=function(e){var t,r;null==(r=null==(t=this.destination)?void 0:t.error)||r.call(t,e)},t.prototype.complete=function(){var e,t;null==(t=null==(e=this.destination)?void 0:e.complete)||t.call(e)},t.prototype._subscribe=function(e){var t,r;return null!=(r=null==(t=this.source)?void 0:t.subscribe(e))?r:V},t}(eU),eH={now:function(){return(eH.delegate||Date).now()},delegate:void 0},eV=function(e){function t(t,r,n){void 0===t&&(t=1/0),void 0===r&&(r=1/0),void 0===n&&(n=eH);var i=e.call(this)||this;return i._bufferSize=t,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,t),i._windowTime=Math.max(1,r),i}return(0,N.C6)(t,e),t.prototype.next=function(t){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(t),i||n.push(o.now()+s)),this._trimBuffer(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},t.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},t}(eU);function eL(e){void 0===e&&(e={});var t=e.connector,r=void 0===t?function(){return new eU}:t,n=e.resetOnError,i=void 0===n||n,o=e.resetOnComplete,s=void 0===o||o,a=e.resetOnRefCountZero,u=void 0===a||a;return function(e){var t,n,o,a=0,c=!1,l=!1,h=function(){null==n||n.unsubscribe(),n=void 0},f=function(){h(),t=o=void 0,c=l=!1},p=function(){var e=t;f(),null==e||e.unsubscribe()};return eI(function(e,d){a++,l||c||h();var y=o=null!=o?o:r();d.add(function(){0!=--a||l||c||(n=eW(p,u))}),y.subscribe(d),!t&&a>0&&(t=new ei({next:function(e){return y.next(e)},error:function(e){l=!0,h(),n=eW(f,i,e),y.error(e)},complete:function(){c=!0,h(),n=eW(f,s),y.complete()}}),ex(e).subscribe(t))})(e)}}function eW(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===t)return void e();if(!1!==t){var i=new ei({next:function(){i.unsubscribe(),e()}});return ex(t.apply(void 0,(0,N.fX)([],(0,N.zs)(r)))).subscribe(i)}}function eB(e){return eI(function(t,r){var n,i=null,o=!1;i=t.subscribe(ej(r,void 0,void 0,function(s){n=ex(e(s,eB(e)(t))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}function eJ(e){return void 0===e&&(e=1/0),eM(ec,e)}var eG=function(e){function t(t,r){return e.call(this)||this}return(0,N.C6)(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(H),eY={setInterval:function(e){function t(t,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=eY.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,(0,N.fX)([e,t],(0,N.zs)(r))):setInterval.apply(void 0,(0,N.fX)([e,t],(0,N.zs)(r)))}),clearInterval:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){var t=eY.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)}),delegate:void 0},eX=function(e){function t(t,r){var n=e.call(this,t,r)||this;
2return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,N.C6)(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),eY.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&eY.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},t.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,z(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(eG),eQ=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=eH.now,e}(),eK=new(function(e){function t(t,r){void 0===r&&(r=eQ.now);var n=e.call(this,t,r)||this;return n.actions=[],n._active=!1,n}return(0,N.C6)(t,e),t.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift());if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},t}(eQ))(eX);function eZ(e,t){var r=D(e)?e:function(){return e},n=function(e){return e.error(r())};return new eh(t?function(e){return t.schedule(n,0,e)}:n)}function e0(e){return eI(function(t,r){try{t.subscribe(r)}finally{r.add(e)}})}var e1=new eh(function(e){return e.complete()});function e3(e,t){var r="object"==typeof t;return new Promise(function(n,i){var o=new ei({next:function(e){n(e),o.unsubscribe()},error:i,complete:function(){r?n(t.defaultValue):i(new eN)}});e.subscribe(o)})}var e6=r(44460),e2=Array.isArray,e9=Array.isArray;function e4(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=D(eE(e))?e.pop():void 0;return r?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return el(e)}(e4.apply(void 0,(0,N.fX)([],(0,N.zs)(e))),ek(function(e){return e9(e)?r.apply(void 0,(0,N.fX)([],(0,N.zs)(e))):r(e)})):eI(function(t,r){var n,i,o;(n=(0,N.fX)([t],(0,N.zs)(1===e.length&&e2(e[0])?e[0]:e)),void 0===o&&(o=ec),function(e){var t,r,s;t=void 0,r=function(){for(var t=n.length,r=Array(t),s=t,a=t,u=function(t){var u,c,l;u=i,c=function(){var u=eA(n[t],i),c=!1;u.subscribe(ej(e,function(n){r[t]=n,!c&&(c=!0,a--),a||e.next(o(r.slice()))},function(){--s||e.complete()}))},l=e,u?e_(l,u,c):c()},c=0;c<t;c++)u(c)},s=e,t?e_(s,t,r):r()})(r)})}function e5(e,t){return eI(function(r,n){var i=0;r.subscribe(ej(n,function(r){return e.call(t,r,i++)&&n.next(r)}))})}let e8="drafts.",e7="versions.";function te(e){return e.startsWith(e8)}function tt(e){return e.startsWith(e7)}function tr(e){return tt(e)?e8+to(e):te(e)?e:e8+e}function tn(e,t){if("drafts"===t||"published"===t)throw Error('Version can not be "published" or "drafts"');return`${e7}${t}.${to(e)}`}function ti(e){if(!tt(e))return;let[t,r]=e.split(".");return r}function to(e){return tt(e)?e.split(".").slice(2).join("."):te(e)?e.slice(e8.length):e}let ts=e=>crypto.getRandomValues(new Uint8Array(e)),ta=/\r\n|[\n\r\u2028\u2029]/;function tu(e,t){let r=0;for(let n=0;n<t.length;n++){let i=t[n].length+1;if(r+i>e)return{line:n+1,column:e-r};r+=i}return{line:t.length,column:t[t.length-1]?.length??0}}class tc extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){let r=th(e,t);super(r.message),Object.assign(this,r)}}
2class tl extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){let t=th(e);super(t.message),Object.assign(this,t)}}function th(e,t){var r,n,i;let o=e.body,s={response:e,statusCode:e.statusCode,responseBody:(r=o,-1!==(e.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),traceId:function(e){let t=e?.headers?.traceparent;if(t)return t.split("-")[1]}(e),message:"",details:void 0};if(!(0,e6.u4)(o))return s.message=`${td(e,o)}${ty(s.traceId)}`,s;let a=o.error;if("string"==typeof a&&"string"==typeof o.message)return s.message=`${a} - ${o.message}${ty(s.traceId)}`,s;if("object"!=typeof a||null===a)return"string"==typeof a?s.message=`${a}${ty(s.traceId)}`:"string"==typeof o.message?s.message=`${o.message}${ty(s.traceId)}`:s.message=`${td(e,o)}${ty(s.traceId)}`,s;if("type"in(n=a)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=a)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let e=a.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`: 3- ${t.join(` 4- `)}`:"";return e.length>5&&(r+=` 5...and ${e.length-5} more`),s.message=`${a.description}${ty(s.traceId)}${r}`,s.details=o.error,s}return tf(a)?(s.message=tp(a,t?.options?.query?.tag,s.traceId),s.details=o.error):"description"in a&&"string"==typeof a.description?(s.message=`${a.description}${ty(s.traceId)}`,s.details=a):s.message=`${td(e,o)}${ty(s.traceId)}`,s}function tf(e){return(0,e6.u4)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function tp(e,t,r){let{query:n,start:i,end:o,description:s}=e,a=r?` 6(traceId: ${r})`:"";if(!n||typeof i>"u")return`GROQ query parse error: ${s}${a}`;let u=t?` 7 8Tag: ${t}`:"";return`GROQ query parse error: 9${function(e,t,r){let n=e.split(ta),{start:i,end:o,markerLines:s}=function(e,t){let r={...e.start},n={...r,...e.end},i=r.line??-1,o=r.column??0,s=n.line,a=n.column,u=Math.max(i-3,0),c=Math.min(t.length,s+3);-1===i&&(u=0),-1===s&&(c=t.length);let l=s-i,h={};if(l)for(let e=0;e<=l;e++){let r=e+i;if(o)if(0===e){let e=t[r-1].length;h[r]=[o,e-o+1]}else if(e===l)h[r]=[0,a];else{let n=t[r-e].length;h[r]=[0,n]}else h[r]=!0}else o===a?o?h[i]=[o,0]:h[i]=!0:h[i]=[o,a-o];return{start:u,end:c,markerLines:h}}({start:tu(t.start,n),end:t.end?tu(t.end,n):void 0},n),a=`${o}`.length;return e.split(ta,o).slice(i,o).map((e,t)=>{let n=i+1+t,o=` ${` ${n}`.slice(-a)} |`,u=s[n],c=!s[n+1];if(!u)return` ${o}${e.length>0?` ${e}`:""}`;let l="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),n=u[1]||1;l=` 10 `+o.replace(/\d/g," ")+" "+t+"^".repeat(n),c&&r&&(l+=" "+r)}return">"+o+(e.length>0?` ${e}`:"")+l}).join(` 11`)}(n,{start:i,end:o},s)}${u}${a}`}function td(e,t){var r,n;let i="string"==typeof t?` (${n=100,(r=t).length>100?`${r.slice(0,n)}\u2026`:r})`:"",o=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${o}${i}`}function ty(e){return e?` (traceId: ${e})`:""}class tg extends Error{projectId;addOriginUrl;constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){let r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:n}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",n),t&&r.searchParams.set("credentials",""),this.addOriginUrl=r,this.message=`The current origin is not allowed to connect to the Live Content API. Add it here: ${r}`}else e?this.message=`The current origin is not allowed to connect to the Live Content API. Change your configuration here: https://sanity.io/manage/project/${e}/api`:this.message="The current origin is not allowed to connect to the Live Content API."}}let tv={onResponse:(e,t)=>{if(e.statusCode>=500)throw new tl(e);if(e.statusCode>=400)throw new tc(e,t);return e}};function tm(e,t={}){return((e=[],t=v)=>(function e(t,r){let n=[],i=l.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[o],validateOptions:[u]});function s(e){let t,n=c.reduce((e,t)=>
11(e[t]=function(){let e=Object.create(null),t=0;return{publish:function(t){for(let r in e)e[r](t)},subscribe:function(r){let n=t++;return e[n]=r,function(){delete e[n]}}}}(),e),{}),o=function(e,t,...r){let n="onError"===e,o=t;for(let t=0;t<i[e].length&&(o=(0,i[e][t])(o,...r),!n||o);t++);return o},s=o("processOptions",e);o("validateOptions",s);let a={options:s,channels:n,applyMiddleware:o},u=n.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,s=t;if(!i)try{s=o("onResponse",t,r)}catch(e){s=null,i=e}(i=i&&o("onError",i,r))?n.error.publish(i):s&&n.response.publish(s)})(t,r,e))});n.abort.subscribe(()=>{u(),t&&t.abort()});let l=o("onReturn",n,a);return l===n&&n.request.publish(a),l}return s.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof e)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(e.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return l.forEach(t=>{e[t]&&i[t].push(e[t])}),n.push(e),s},s.clone=()=>e(n,r),t.forEach(s.use),s})(e,t))([M({shouldRetry:tb}),...e,function(e={}){let t={},r=t=>void 0!==e.ignoreWarnings&&(Array.isArray(e.ignoreWarnings)?e.ignoreWarnings:[e.ignoreWarnings]).some(e=>"string"==typeof e?t.includes(e):e instanceof RegExp&&e.test(t));return{onResponse:e=>{let n=e.headers["x-sanity-warning"];for(let e of Array.isArray(n)?n:[n])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||_(t)||-1===j.indexOf(typeof t)&&!Array.isArray(t)&&!function(e){if(!1===I(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!1!==I(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(t)?e:Object.assign({},e,{body:JSON.stringify(e.body),headers:Object.assign({},e.headers,{"Content-Type":"application/json"})})}},{onResponse:e=>{let t=e.headers["content-type"]||"",r=-1!==t.indexOf("application/json");return e.body&&t&&r?Object.assign({},e,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(e.body)}):e},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})},{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function n(e){return t=>{let n=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:n,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=n("upload")),"onprogress"in t&&(t.onprogress=n("download"))}},tv,function(e={}){let t=e.implementation||T.Observable;if(!t)throw Error("`Observable` is not available in global scope, and no implementation was passed");return{onReturn:(e,r)=>new t(t=>(e.error.subscribe(e=>t.error(e)),e.progress.subscribe(e=>t.next(Object.assign({type:"progress"},e))),e.response.subscribe(e=>{t.next(Object.assign({type:"response"},e)),t.complete()}),e.request.publish(r),()=>e.abort.publish()))}}({implementation:eh})])}function tb(e,t,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=e.response&&(429===e.response.statusCode||502===e.response.statusCode||503===e.response.statusCode);return(!!n||!!i)&&!!o||M.shouldRetry(e,t,r)}function tw(e){return"https://www.sanity.io/help/"+e}let tx=["image","file"],tO=["before","after","replace"],tC=e=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(e))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},tE=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},tR=(e,t)=>{if("string"!=typeof t||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(t)||t.includes(".."))throw Error(`${e}(): "${t}" is not a valid document ID`)},t_=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);tR(e,t._id)},tI=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);((e,t)=>
11{if("string"!=typeof t)throw Error(`\`${e}()\`: \`${t}\` is not a valid document type`)})(e,t._type)},tj=e=>{if(e.dataset)return e.dataset;let t=e.resource;if(t&&"dataset"===t.type){let e=t.id.split(".");if(2!==e.length)throw Error('Dataset resource ID must be in the format "project.dataset"');return e[1]}throw Error("`dataset` must be provided to perform queries")},tq=e=>{if("string"!=typeof e||!/^[a-z0-9._-]{1,75}$/i.test(e))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return e},tT=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":if(2!==n.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error(`Unsupported resource type: ${r.toString()}`)}},tS=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},t$=e=>(function(e){let t=!1,r;return(...n)=>(t||(r=e(...n),t=!0),r)})((...t)=>console.warn(e.join(" "),...t)),tA=t$(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),tP=t$(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),tk=t$(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),tM=t$(["The `previewDrafts` perspective has been renamed to `drafts` and will be removed in a future API version"]),tN=t$(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${tw("js-client-browser-token")} for more information and how to hide this warning.`]),tD=t$(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),tF=t$(["Using the Sanity client without specifying an API version is deprecated.",`See ${tw("js-client-api-version")}`]),tU=(t$(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),t$(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),tz=t$(["The `~experimental_resource` configuration property has been renamed to `resource`.","Please update your client configuration to use `resource` instead. Support for `~experimental_resource` will be removed in a future version."]),tH={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},tV=["localhost","127.0.0.1","0.0.0.0"];function tL(e){if(Array.isArray(e)&&e.length>1&&e.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let tW=(e,t)=>{let r,n={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||tH.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};n.apiVersion||tF();let i={...tH,...n};i["~experimental_resource"]&&!i.resource&&(tz(),i.resource=i["~experimental_resource"]);let o=i.resource,s=i.useProjectHostname&&!o;if(typeof Promise>"u"){let e=tw("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(s&&!i.projectId)throw Error("Configuration must contain `projectId`");if(o&&tT(i),"u">typeof i.perspective&&tL(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
11if("boolean"!=typeof i.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${i.stega.enabled}`);if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${i.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==tV.indexOf(r)),c=!!i.token;i.withCredentials&&c&&(tD(),i.withCredentials=!1),a&&u&&c&&!0!==i.ignoreBrowserTokenWarning?tN():typeof i.useCdn>"u"&&tP(),s&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&tC(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?tq(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion=`${i.apiVersion}`.replace(/^v/,""),i.isDefaultApi=i.apiHost===tH.apiHost,!0===i.useCdn&&i.withCredentials&&tA(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(e){if("1"===e||"X"===e)return;let t=new Date(e);if(!(/^\d{4}-\d{2}-\d{2}$/.test(e)&&t instanceof Date&&t.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let l=i.apiHost.split("://",2),h=l[0],f=l[1],p=i.isDefaultApi?"apicdn.sanity.io":f;return s?(i.url=`${h}://${i.projectId}.${f}/v${i.apiVersion}`,i.cdnUrl=`${h}://${i.projectId}.${p}/v${i.apiVersion}
11`):(i.url=`${i.apiHost}/v${i.apiVersion}`,i.cdnUrl=i.url),i};class tB extends Error{name="ConnectionFailedError"}class tJ extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class tG extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class tY extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class tX extends Error{name="MessageParseError"}let tQ=["channelError","disconnect"];function tK(e,t){return eC(()=>{let t=e();return t&&(t instanceof eh||D(t.lift)&&D(t.subscribe))?t:eP(t)}).pipe(eM(e=>{var r,n;return r=e,n=t,new eh(e=>{let t=n.includes("open"),i=n.includes("reconnect");function o(t){if("data"in t){let[r,n]=tZ(t);e.error(r?new tX("Unable to parse EventSource error message",{cause:n}):new tY((n?.data).message,n));return}r.readyState===r.CLOSED?e.error(new tB("EventSource connection failed")):i&&e.next({type:"reconnect"})}function s(){e.next({type:"open"})}function a(t){let[n,i]=tZ(t);if(n)return void e.error(new tX("Unable to parse EventSource message",{cause:n}));if("channelError"===t.type){let t=new URL(r.url).searchParams.get("tag");e.error(new tG(function(e,t){let r=e.error;return r?tf(r)?tp(r,t):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):e.message||"Unknown listener error"}(i?.data,t),i.data));return}if("disconnect"===t.type)return void e.error(new tJ(`Server disconnected client: ${i.data?.reason||"unknown error"}`));e.next({type:t.type,id:t.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",o),t&&r.addEventListener("open",s);let u=[...new Set([...tQ,...n])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",o),t&&r.removeEventListener("open",s),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function tZ(e){try{let t="string"==typeof e.data&&JSON.parse(e.data);return[null,{type:e.type,id:e.lastEventId,...!function(e){for(let t in e)return!1;return!0}(t)?{data:t}:{}}]}catch(e){return[e,null]}}function t0(e){if("string"==typeof e)return{id:e};if(Array.isArray(e))return{query:"*[_id in $ids]",params:{ids:e}};if("object"==typeof e&&null!==e&&"query"in e&&"string"==typeof e.query)return"params"in e&&"object"==typeof e.params&&null!==e.params?{query:e.query,params:e.params}:{query:e.query};let t=["* Document ID (<docId>)","* Array of document IDs","* Object containing `query`"].join(` 12`);throw Error(`Unknown selection - must be one of: 13 14${t}`)}class t1{selection;operations;constructor(e,t={}){this.selection=e,this.operations=t}set(e){return this._assign("set",e)}setIfMissing(e){return this._assign("setIfMissing",e)}diffMatchPatch(e){return tE("diffMatchPatch",e),this._assign("diffMatchPatch",e)}unset(e){if(!Array.isArray(e))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:e}),this}inc(e){return this._assign("inc",e)}dec(e){return this._assign("dec",e)}insert(e,t,r){return((e,t,r)=>{let n="insert(at, selector, items)";if(-1===tO.indexOf(e)){let e=tO.map(e=>`"${e}"`).join(", ");throw Error(`${n} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${n} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${n} takes an "items"-argument which must be an array`)})(e,t,r),this._assign("insert",{[e]:t,items:r})}append(e,t){return this.insert("after",`${e}[-1]`,t)}prepend(e,t){return this.insert("before",`${e}[0]`,t)}splice(e,t,r,n){let i=t<0?t-1:t,o=typeof r>"u"||-1===r?-1:Math.max(0,t+r),s=`${e}[${i}:${i<0&&o>=0?"":o}]`;return this.insert("replace",s,n||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...t0(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return tE(e,t),this.operations=Object.assign({},this.operations,{[e]:Object.assign({},r&&this.operations[e]||{},t)}),this}_set(e,t){return this._assign(e,t,!1)}}class t3 extends t1{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new t3(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}class t6 extends t1{#a;constructor(e,t,r){super(e,t),this.#a=r}clone(){return new t6(this.selection,{...this.operations},this.#a)}commit(e){if(!this.#a)throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let t=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},e);return this.#a.mutate({patch:this.serialize()},t)}}let t2={returnDocuments:!1};class t9{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return tE("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return tE(t,e),t_(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return tE(t,e),t_(t,e),this._add({[t]:e})}delete(e){return tR("delete",e),this._add({delete:{id:e}})}transactionId(e){return e?(this.trxId=e,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(e){return this.operations.push(e),this}}class t4 extends t9{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new t4([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},t2,e||{}))}patch(e,t){let r="function"==typeof t,n="string"!=typeof e&&e instanceof t6,i="object"==typeof e&&("query"in e||"id"in e);if(n)return this._add({patch:e.serialize()});if(r){let r=t(new t6(e,{},this.#a));if(!(r instanceof t6))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(i){let r=new t6(e,t||{},this.#a);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class t5 extends t9{#a;constructor(e,t,r){super(e,r),this.#a=t}clone(){return new t5([...this.operations],this.#a,this.trxId)}commit(e){if(!this.#a)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#a.mutate(this.serialize(),Object.assign({transactionId:this.trxId},t2,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof t3)return this._add({patch:e.serialize()});if(r){let r=t(new t3(e,{},this.#a));if(!(r instanceof t3))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let t8=({query:e,params:t={},options:r={}})=>{let n=new URLSearchParams,{tag:i,includeMutations:o,returnQuery:s,...a}=r;for(let[r,o]of(i&&n.append("tag",i),n.append("query",e),Object.entries(t)))void 0!==o&&n.append(`$${r}`,JSON.stringify(o));for(let[e,t]of Object.entries(a))t&&n.append(e,`${t}`);return!1===s&&n.append("returnQuery","false"),!1===o&&n.append("includeMutations","fal
14se"),`?${n}`},t7=e=>"response"===e.type,re=e=>e.body;function rt(e,t,n,i,o={},s={}){let a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,u=a.enabled?(0,e6.Q)(o):o,c=!1===s.filterResponse?e=>e:e=>e.result,{cache:l,next:h,...f}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},p=ry(e,t,"query",{query:i,params:u},"u">typeof l||"u">typeof h?{...f,fetch:{cache:l,next:h}}:f);return a.enabled?p.pipe(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e4.apply(void 0,(0,N.fX)([],(0,N.zs)(e)))}(eA(r.e(914).then(r.bind(r,60914)).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),ek(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return c({...e,result:r})})):p.pipe(ek(c))}function rr(e,t,r,n={}){let i={uri:rx(e,"doc",(()=>{if(!n.releaseId)return r;let e=ti(r);if(!e){if(te(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${n.releaseId}\``);return tn(r,n.releaseId)}if(e!==n.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${n.releaseId}\`)`);return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return rb(e,t,i).pipe(e5(t7),ek(e=>{let t=e.body.documents;return t?n.includeAllVersions?t:t[0]:n.includeAllVersions?[]:void 0}))}function rn(e,t,r,n={}){let i={uri:rx(e,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return rb(e,t,i).pipe(e5(t7),ek(e=>{let t,n,i=(t=e.body.documents||[],n=e=>e._id,t.reduce((e,t)=>(e[n(t)]=t,e),Object.create(null)));return r.map(e=>i[e]||null)}))}function ri(e,t,r,n={}){return ry(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function ro(e,t,r,n){return t_("createIfNotExists",r),rg(e,t,r,"createIfNotExists",n)}function rs(e,t,r,n){return t_("createOrReplace",r),rg(e,t,r,"createOrReplace",n)}function ra(e,t,r,n,i){return t_("createVersion",r),tI("createVersion",r),tU(),rd(e,t,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function ru(e,t,r,n,i,o,s){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return tR("createVersion",n),tR("createVersion",r),rd(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?tn(r,i):tr(r),ifBaseRevisionId:o},s)}function rc(e,t,r,n){return ry(e,t,"mutate",{mutations:[{delete:t0(r)}]},n)}function rl(e,t,r,n=!1,i){return rd(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function rh(e,t,r,n){return t_("replaceVersion",r),tI("replaceVersion",r),rd(e,t,{actionType:"sanity.action.document.version.replace",document:r},n)}function rf(e,t,r,n,i){return rd(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function rp(e,t,r,n){let i;return ry(e,t,"mutate",{mutations:Array.isArray(i=r instanceof t6||r instanceof t3?{patch:r.serialize()}:r instanceof t4||r instanceof t5?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function rd(e,t,r,n){let i=Array.isArray(r)?r:[r],o=n&&n.transactionId||void 0;return ry(e,t,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function ry(e,t,r,n,i={}){let o="mutate"===r,s="actions"===r,a=o||s?"":t8(n),u=!o&&!s&&a.length<11264,c=u?a:"",l=i.returnFirst,{timeout:h,token:f,tag:p,headers:d,returnQuery:y,lastLiveEventId:g,cacheMode:v}=i,m={method:u?"GET":"POST",uri:rx(e,r,c),json:!0,body:u?void 0:n,query:o&&((e={})=>{let t,r;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,r=!0,!1===t?void 0:typeof t>"u"?r:t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(i),timeout:h,headers:d,token:f,tag:p,returnQuery:y,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(g)?g[0]:g,cacheMode:v,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return rb(e,t,m).pipe(e5(t7),ek(re),ek(e=>{if(!o)return e;let t=e.results||[];if(i.returnDocuments)return l?t[0]&&t[0].document:t.map(e=>e.document);let r=l?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[l?"documentId":"documentIds"]:r}}))}function rg(e,t,r,n,i={}){return ry(e,t,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let rv=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},rm=(e,t)=>
14rv(e)&&t.startsWith(rx(e,"query"));function rb(e,t,r){var n;let i=r.url||r.uri,o=e.config(),s=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(i.startsWith("/data/")||rm(e,i)||rv(e)&&i.startsWith(rx(e,"mutate"))||rv(e)&&i.startsWith(rx(e,"doc",""))||rv(e)&&i.startsWith(rx(e,"listen"))||rv(e)&&i.startsWith(rx(e,"history",""))):r.canUseCdn,a=(r.useCdn??o.useCdn)&&s,u=r.tag&&o.requestTagPrefix?[o.requestTagPrefix,r.tag].join("."):r.tag||o.requestTagPrefix;if(u&&null!==r.tag&&(r.query={tag:tq(u),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&rm(e,i)){let e=r.resultSourceMap??o.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||o.perspective;"u">typeof t&&("previewDrafts"===t&&tM(),tL(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&a&&(a=!1,tk())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),a&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let c=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let n=t.token||e.token;n&&(r.Authorization=`Bearer ${n}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let i=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),o=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:t.proxy||e.proxy,json:!0,withCredentials:i,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(o,Object.assign({},r,{url:rO(e,i,a)})),l=new eh(e=>t(c,o.requester).subscribe(e));return r.signal?l.pipe((n=r.signal,e=>new eh(t=>{let r=()=>t.error(function(e){if(rC)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(n));if(n&&n.aborted)return void r();let i=e.subscribe(t);return n.addEventListener("abort",r),()=>{n.removeEventListener("abort",r),i.unsubscribe()}}))):l}function rw(e,t,r){return rb(e,t,r).pipe(e5(e=>"response"===e.type),ek(e=>e.body))}function rx(e,t,r){let n=e.config();if(n.resource){tT(n);let e=rE(n),i=void 0!==r?`${t}/${r}`:t;return`${e}/${i}`.replace(/\/($|\?)/,"$1")}let i=tj(n),o=`/${t}/${i}`;return`/data${void 0!==r?`${o}/${r}`:o}`.replace(/\/($|\?)/,"$1")}function rO(e,t,r=!1){let{url:n,cdnUrl:i}=e.config();return`${r?i:n}/${t.replace(/^\//,"")}`}let rC=!!globalThis.DOMException,rE=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:n}=t;switch(r){case"dataset":{let e=n.split(".");if(2!==e.length)throw Error('Dataset ID must be in the format "project.dataset"');return`/projects/${e[0]}/datasets/${e[1]}`}case"canvas":return`/canvases/${n}`;case"media-library":return`/media-libraries/${n}`;case"dashboard":return`/dashboards/${n}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function rR(e,t,r){let n=tj(e.config());return rw(e,t,{method:"POST",uri:`/agent/action/generate/${n}`,body:r})}function r_(e,t,r){let n=tj(e.config());return rw(e,t,{method:"POST",uri:`/agent/action/transform/${n}`,body:r})}function rI(e,t,r){let n=tj(e.config());return rw(e,t,{method:"POST",uri:`/agent/action/translate/${n}`,body:r})}class rj{#a;#u;constructor(e,t){this.#a=e,this.#u=t}generate(e){return rR(this.#a,this.#u,e)}transform(e){return r_(this.#a,this.#u,e)}translate(e){return rI(this.#a,this.#u,e)}}class rq{#a;#u;constructor(e,t){this.#a=e,this.#u=t}generate(e){return eD(rR(this.#a,this.#u,e))}transform(e){return eD(r_(this.#a,this.#u,e))}translate(e){return eD(rI(this.#a,this.#u,e))}prompt(e){return eD(function(e,t,r){let n=tj(e.config());return rw(e,t,{method:"POST",uri:`/agent/action/prompt/${n}`,body:r})}(this.#a,this.#u,e))}patch(e){return eD(function(e,t,r){let n=tj(e.config());return rw(e,t,{method:"POST",uri:`/agent/action/patch/${n}`,body:r})}(this.#a,this.#u,e))}}class rT{#a;#u;constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return r$(this.#a,this.#u,e,t,r)}}class rS{#a;#u;
14constructor(e,t){this.#a=e,this.#u=t}upload(e,t,r){return eD(r$(this.#a,this.#u,e,t,r).pipe(e5(e=>"response"===e.type),ek(e=>e.body.document)))}}function r$(e,t,r,n,i={}){var o,s;if(-1===tx.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${tx.join(", ")}`);let a=i.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.config(),c=(o=i,s=n,!(typeof File>"u")&&s instanceof File?Object.assign({filename:!1===o.preserveFilename?void 0:s.name,contentType:s.type},o):o),{tag:l,label:h,title:f,description:p,creditLine:d,filename:y,source:g}=c,v=u.resource?.type==="media-library",m=v?{title:f,filename:y}:{label:h,title:f,description:p,filename:y,meta:a,creditLine:d};return g&&!v&&(m.sourceId=g.id,m.sourceName=g.name,m.sourceUrl=g.url),rb(e,t,{tag:l,method:"POST",timeout:c.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",n=e.resource;if(n){let{type:e,id:t}=n;switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return`/canvases/${t}/assets/${r}`;case"media-library":return`/media-libraries/${t}/upload`;case"dashboard":return`/dashboards/${t}/assets/${r}`;default:throw Error(`Unsupported resource type: ${e.toString()}`)}}let i=tj(e);return`assets/${r}/${i}`}(u,r),headers:c.contentType?{"Content-Type":c.contentType}:{},query:m,body:n})}let rA=eC(()=>r.e(2635).then(r.t.bind(r,82635,19))).pipe(ek(({default:e})=>e),function(e,t,r){var n,i,o,s,a=!1;return s=null!=e?e:1/0,eL({connector:function(){return new eV(s,t,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}(1));function rP(){return function(e){return e.pipe(eB((e,t)=>{var r;return e instanceof tB?function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return eJ(1)(eA(e,eR(e)))}(eP({type:"reconnect"}),(void 0===r&&(r=eK),new eh(function(e){var t=1e3;t<0&&(t=0);var n=0;return r.schedule(function(){e.closed||(e.next(n++),e.complete())},t)})).pipe(eM(()=>t))):eZ(()=>e)}))}}let rk=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],rM={includeResult:!0};function rN(e,t,r={}){let{url:n,token:i,withCredentials:o,requestTagPrefix:s,headers:a}=this.config(),u=r.tag&&s?[s,r.tag].join("."):r.tag,c={...Object.keys(rM).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?rM[t]:r[t],e),{}),tag:u},l=t8({query:e,params:t,options:{tag:u,...rk.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),h=`${n}${rx(this,"listen",l)}`;if(h.length>14800)return eZ(()=>Error("Query too large for listener"));let f=c.events?c.events:["mutation"],p={};return o&&(p.withCredentials=!0),(i||a)&&(p.headers={},i&&(p.headers.Authorization=`Bearer ${i}`),a&&Object.assign(p.headers,a)),tK(()=>(typeof EventSource>"u"||p.headers?rA:eP(EventSource)).pipe(ek(e=>new e(h,p))),f).pipe(rP(),e5(e=>f.includes(e.type)),ek(e=>({type:e.type,..."data"in e?e.data:{}})))}let rD="2021-03-25";class rF{#a;constructor(e){this.#a=e}events({includeDrafts:e=!1,tag:t,waitFor:r}={}){var n,i,o,s,a;let{projectId:u,apiVersion:c,token:l,withCredentials:h,requestTagPrefix:f,headers:p}=this.#a.config(),d=c.replace(/^v/,"");if("X"!==d&&d<rD)throw Error(`The live events API requires API version ${rD} or later. The current API version is ${d}. Please update your API version to use this feature.`);if(e&&!l&&!h)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let y=rx(this.#a,"live/events"),g=new URL(this.#a.getUrl(y,!1)),v=t&&f?[f,t].join("."):t;v&&g.searchParams.set("tag",v),e&&g.searchParams.set("includeDrafts","true"),r&&g.searchParams.set("waitFor",r);let m={};e&&h&&(m.withCredentials=!0),(e&&l||p)&&(m.headers={},e&&l&&(m.headers.Authorization=`Bearer ${l}`),p&&Object.assign(m.headers,p));let b=`${g.href}::${JSON.stringify(m)}`,w=rU.get(b);if(w)return w;let x=tK(()=>(typeof EventSource>"u"||m.headers?rA:eP(EventSource)).pipe(ek(e=>new e(g.href,m))),["message","restart","welcome","reconnect","goaway"]),O=(i=new URL(this.#a.getUrl("/check/cors",!1)),o=u,s=!0===m.withCredentials,new eh(e=>{let t=new AbortController,{signal:r}=t;return fetch(i,{method:"GET",mode:"cors",credentials:"omit",signal:r}).then(e=>{if(!(r.aborted||!e.ok))return e.json()}).then(t=>{if(!r.aborted){if(s&&t?.result?.withCredentials===!1)return void e.error(new tg({projectId:o,credentials:!0}));if(t?.result?.allowed===!1)return void e.error(new tg({projectId:o,credentials:s}));e.next(),e.complete()}}).catch(()=>{r.aborted||e.closed||(e.next(),e.complete())}),()=>t.abort()})),C=x.pipe(rP(),eM(e=>"reconnect"===e.type?O.pipe(eM(()=>eP(e))):eP(e)),eB(e=>e instanceof tg?eZ(()=>e):O.pipe(eM(()=>{throw e}))),ek(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe(e0(()=>rU.delete(b)),(a="function"==typeof(n={predicate:e=>"welcome"===e.type})?{predicate:n,...void 0}:n,e=>{var t,r,n,i;let o,s=!1,{predicate:u,...c}=a;return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=eR(t),i=(e=1/0,"number"==typeof eE(t)?t.pop():e);return t.length?1===t.length?ex(t[0]):eJ(i)(eA(t,n)):e1}(e.pipe((i=D(t=e=>{a.predicate(e)&&(s=!0,o=e)})?{next:t,error:r,complete:n}:t)?eI(function(e,t){null==(r=i.subscribe)||r.call(i);var r,n=!0;e.subscribe(ej(t,function(e){var r;null==(r=i.next)||r.call(i,e),t.next(e)},function(){var e;n=!1,null==(e=i.complete)||e.call(i),t.complete()},function(e){var r;n=!1,null==(r=i.error)||r.call(i,e),t.error(e)},function(){var e,t;n&&(null==(e=i.unsubscribe)||e.call(i)),null==(t=i.finalize)||t.call(i)}))}):ec,e0(()=>{s=!1,o=void 0}),eL(c)),new eh(e=>{s&&e.next(o),e.complete()}
14))}));return rU.set(b,C),C}}let rU=new Map;class rz{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return rL(this.#a,this.#u,"PUT",e,t)}edit(e,t){return rL(this.#a,this.#u,"PATCH",e,t)}delete(e){return rL(this.#a,this.#u,"DELETE",e)}list(){tS("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),rw(this.#a,this.#u,{uri:r,tag:null})}getEmbeddingsSettings(e){return tS("dataset",this.#a.config()),tC(e),rw(this.#a,this.#u,{uri:rV(this.#a,e),tag:null})}editEmbeddingsSettings(e,t){return tS("dataset",this.#a.config()),tC(e),rw(this.#a,this.#u,{method:"PUT",uri:rV(this.#a,e),body:t,tag:null})}}class rH{#a;#u;constructor(e,t){this.#a=e,this.#u=t}create(e,t){return tS("dataset",this.#a.config()),eD(rL(this.#a,this.#u,"PUT",e,t))}edit(e,t){return tS("dataset",this.#a.config()),eD(rL(this.#a,this.#u,"PATCH",e,t))}delete(e){return tS("dataset",this.#a.config()),eD(rL(this.#a,this.#u,"DELETE",e))}list(){tS("dataset",this.#a.config());let e=this.#a.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),eD(rw(this.#a,this.#u,{uri:r,tag:null}))}getEmbeddingsSettings(e){return tS("dataset",this.#a.config()),tC(e),eD(rw(this.#a,this.#u,{uri:rV(this.#a,e),tag:null}))}editEmbeddingsSettings(e,t){return tS("dataset",this.#a.config()),tC(e),eD(rw(this.#a,this.#u,{method:"PUT",uri:rV(this.#a,e),body:t,tag:null}))}}function rV(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function rL(e,t,r,n,i){return tS("dataset",e.config()),tC(n),rw(e,t,{method:r,uri:`/datasets/${n}`,body:i,tag:null})}class rW{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getPlaybackInfo(e,t={}){var r,n;let i=this.#a.config(),o=(i.resource||i["~experimental_resource"])?.id,{instanceId:s,library
14Id:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=rJ.exec(t);if(r){let[,e,t]=r;return{libraryId:e,instanceId:t}}if("string"==typeof e&&e.startsWith("video-"))return{instanceId:e};throw Error(`Invalid video asset instance identifier "${t}": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library`)}(e),u=a||o;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let c=(r=s,n=u,`/media-libraries/${n}/video/${r}/playback-info`),l=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:n,storyboard:i}=e.transformations;r&&(r.width&&(t.thumbnailWidth=r.width),r.height&&(t.thumbnailHeight=r.height),void 0!==r.time&&(t.thumbnailTime=r.time),r.fit&&(t.thumbnailFit=r.fit),r.format&&(t.thumbnailFormat=r.format)),n&&(n.width&&(t.animatedWidth=n.width),n.height&&(t.animatedHeight=n.height),void 0!==n.start&&(t.animatedStart=n.start),void 0!==n.end&&(t.animatedEnd=n.end),n.fps&&(t.animatedFps=n.fps),n.format&&(t.animatedFormat=n.format)),i&&i.format&&(t.storyboardFormat=i.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return rw(this.#a,this.#u,{method:"GET",uri:c,query:l})}}class rB{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getPlaybackInfo(e,t={}){return eD(new rW(this.#a.observable,this.#u).getPlaybackInfo(e,t))}}let rJ=/^media-library:(ml[^:]+):([^:]+)$/;class rG{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),rw(this.#a,this.#u,{uri:"/projects",query:t})}getById(e){return rw(this.#a,this.#u,{uri:`/projects/${e}`})}}class rY{#a;#u;constructor(e,t){this.#a=e,this.#u=t}list(e){let t={};return e?.includeMembers===!1&&(t.includeMembers="false"),e?.includeFeatures===!1&&(t.includeFeatures="false"),e?.organizationId&&(t.organizationId=e.organizationId),e?.onlyExplicitMembership&&(t.onlyExplicitMembership="true"),eD(rw(this.#a,this.#u,{uri:"/projects",query:t}))}getById(e){return eD(rw(this.#a,this.#u,{uri:`/projects/${e}`}))}}let rX=((e,t=21)=>((e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*n*t/e.length);return (o=t)=>{let s="";for(;;){let t=r(i),a=0|i;for(;a--;)if((s+=e[t[a]&n]||"").length===o)return s}}})(e,t,ts))("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),rQ=(e,t)=>t?tn(e,t):tr(e);function rK(e,{releaseId:t,publishedId:r,document:n}){if(r&&n._id){let e=rQ(r,t);return((e,t)=>{if(t._id&&t._id!==e)throw Error(`The provided document ID (\`${t._id}\`) does not match the generated version ID (\`${e}\`)`)})(e,n),e}if(n._id){let r=te(n._id),i=tt(n._id);if(!r&&!i)throw Error(`\`${e}()\` requires a document with an \`_id\` that is a version or draft ID`);if(t){if(r)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let i=ti(n._id);if(i!==t)throw Error(`\`${e}()\` was called with a document ID (\`${n._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${i}\`).`)}return n._id}if(r)return rQ(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let rZ=(e,t)=>{let[r,n,i]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=rX(),metadata:n={}}=e;return[r,n,t]}return[rX(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};class r0{#a;#u;constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return rr(this.#a,this.#u,`_.releases.${e}`,t)}create(e,t){let{action:r,options:n}=rZ(e,t),{releaseId:i,metadata:o}=r;return rd(this.#a,this.#u,r,n).pipe(ek(e=>({...e,releaseId:i,metadata:o})))}edit({releaseId:e,patch:t},r){return rd(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return rd(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return rd(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return rd(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return rd(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return rd(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return rd(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return ri(this.#a,this.#u,e,t)}}class r1{#a;#u;
14constructor(e,t){this.#a=e,this.#u=t}get({releaseId:e},t){return eD(rr(this.#a,this.#u,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:n}=rZ(e,t),{releaseId:i,metadata:o}=r;return{...await eD(rd(this.#a,this.#u,r,n)),releaseId:i,metadata:o}}edit({releaseId:e,patch:t},r){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e},t){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return eD(rd(this.#a,this.#u,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return eD(ri(this.#a,this.#u,e,t))}}class r3{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return rw(this.#a,this.#u,{uri:`/users/${e}`})}}class r6{#a;#u;constructor(e,t){this.#a=e,this.#u=t}getById(e){return eD(rw(this.#a,this.#u,{uri:`/users/${e}`}))}}class r2{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#c;#l;#u;listen=rN;constructor(e,t=tH){this.config(t),this.#l=e;let r=t._requestHandler;this.#u=r?(()=>{let n;return(i,o)=>(n||(n=new r9(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,o),n))})():e,this.assets=new rT(this,this.#u),this.datasets=new rz(this,this.#u),this.live=new rF(this),this.mediaLibrary={video:new rW(this,this.#u)},this.projects=new rG(this,this.#u),this.users=new r3(this,this.#u),this.agent={action:new rj(this,this.#u)},this.releases=new r0(this,this.#u)}clone(){return new r2(this.#l,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#c=tW(e,this.#c||{}),this}withConfig(e){let t=this.config();return new r2(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return rt(this,this.#u,this.#c.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return rr(this,this.#u,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return rr(this,this.#u,e,r)}getDocuments(e,t){return rn(this,this.#u,e,t)}create(e,t){return rg(this,this.#u,e,"create",t)}createIfNotExists(e,t){return ro(this,this.#u,e,t)}createOrReplace(e,t){return rs(this,this.#u,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!e)return ru(this,this.#u,t,n,r,i,o);let s=rK("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:s},u=t||to(e._id);return ra(this,this.#u,a,u,o)}delete(e,t){return rc(this,this.#u,e,t)}discardVersion({releaseId:e,publishedId:t},r,n){let i=rQ(t,e);return rl(this,this.#u,i,r,n)}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=rK("replaceVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:i};return rh(this,this.#u,o,n)}unpublishVersion({releaseId:e,publishedId:t},r){let n=tn(t,e);return rf(this,this.#u,n,t,r)}mutate(e,t){return rp(this,this.#u,e,t)}patch(e,t){return new t3(e,t,this)}transaction(e){return new t5(e,this)}action(e,t){return rd(this,this.#u,e,t)}request(e){return rw(this,this.#u,e)}getUrl(e,t){return rO(this,e,t)}getDataUrl(e,t){return rx(this,e,t)}}class r9{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#c;#l;#u;listen=rN;constructor(e,t=tH){this.config(t),this.#l=e;let r=t._requestHandler;this.#u=r?(()=>{let n;return(i,o)=>(n||(n=new r9(e,{...t,_requestHandler:void 0})),r(i,t=>e(t,o),n))})():e,this.assets=new rS(this,this.#u),this.datasets=new rH(this,this.#u),this.live=new rF(this),this.mediaLibrary={video:new rB(this,this.#u)}
14,this.projects=new rY(this,this.#u),this.users=new r6(this,this.#u),this.agent={action:new rq(this,this.#u)},this.releases=new r1(this,this.#u),this.observable=new r2(e,t)}clone(){return new r9(this.#l,this.config())}config(e){if(void 0===e)return{...this.#c};if(this.#c&&!1===this.#c.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(e),this.#c=tW(e,this.#c||{}),this}withConfig(e){let t=this.config();return new r9(this.#l,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eD(rt(this,this.#u,this.#c.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return eD(rr(this,this.#u,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eD(rr(this,this.#u,e,r))}getDocuments(e,t){return eD(rn(this,this.#u,e,t))}create(e,t){return eD(rg(this,this.#u,e,"create",t))}createIfNotExists(e,t){return eD(ro(this,this.#u,e,t))}createOrReplace(e,t){return eD(rs(this,this.#u,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:n,ifBaseRevisionId:i},o){if(!e)return e3(ru(this,this.#u,t,n,r,i,o));let s=rK("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:s},u=t||to(e._id);return e3(ra(this,this.#u,a,u,o))}delete(e,t){return eD(rc(this,this.#u,e,t))}discardVersion({releaseId:e,publishedId:t},r,n){let i=rQ(t,e);return eD(rl(this,this.#u,i,r,n))}replaceVersion({document:e,publishedId:t,releaseId:r},n){let i=rK("replaceVersion",{document:e,publishedId:t,releaseId:r}),o={...e,_id:i};return e3(rh(this,this.#u,o,n))}unpublishVersion({releaseId:e,publishedId:t},r){let n=tn(t,e);return eD(rf(this,this.#u,n,t,r))}mutate(e,t){return eD(rp(this,this.#u,e,t))}patch(e,t){return new t6(e,t,this)}transaction(e){return new t4(e,this)}action(e,t){return eD(rd(this,this.#u,e,t))}request(e){return eD(rw(this,this.#u,e))}dataRequest(e,t,r){return eD(ry(this,this.#u,e,t,r))}getUrl(e,t){return rO(this,e,t)}getDataUrl(e,t){return rx(this,e,t)}}let r4=function(e,t){return{requester:tm(e),createClient:r=>{let n=tm(e,{ignoreWarnings:r.ignoreWarnings});return new t((e,t)=>(t||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,lineage:r.lineage,...e}),r)}}}([],r9),r5=(r4.requester,r4.createClient)},9555:(e,t,r)=>{"use strict";var n=r(55768),i=r(92699);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(r(87667)),s=i(r(20076)),a=i(r(14354)),u=n(r(36744)),c=r(52710),l=i(r(65164));function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach(function(t){(0,s.default)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e){var t=e.isOpen,r=e.onRest,n=e.style,i=e.transition,s=e.className,c=(0,a.default)(e,["isOpen","onRest","style","transition","className"]),h=(0,u.useRef)(null),p=(0,l.default)({isOpen:t,content:h}),d=p.setIsExpandedStyle,y=p.setIsCollapsedStyle,g=p.style,v=f(f({willChange:"height",transition:i},n),g);return u.default.createElement("div",(0,o.default)({ref:h,style:v,className:s,onTransitionEnd:function(e){e.target===h.current&&"height"===e.propertyName&&(t?d():y(),r&&r())}},c))}p.defaultProps={isOpen:!1,onRest:null,style:null,className:"react-css-collapse-transition",transition:"height 250ms cubic-bezier(0.4, 0, 0.2, 1)"},p.propTypes={isOpen:c.bool,onRest:c.func,style:(0,c.shape)({}),className:c.string,transition:c.string},t.default=p},14354:(e,t,r)=>{var n=r(35436);e.exports=function(e,t){if(null==e)return{};var r,i,o=n(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},e.exports.__esModule=!0,e.exports.default=e.exports},18029:function(e){e.exports=function(){function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function t(){return(t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
14).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(e){return("image-"+e.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["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"],["frame","frame"]],o=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],u=function(){function u(e,r){this.options=void 0,this.options=e?t({},e.options||{},r||{}):t({},r||{})}var c=u.prototype;return c.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var s in r)r.hasOwnProperty(s)&&(o[function(t){for(var r,n=function(t,r){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,r){if(t){if("string"==typeof t)return e(t,void 0);var n=({}).toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e(t,r):void 0}}(t))){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i);!(r=n()).done;){var o=r.value,s=o[0],a=o[1];if(t===s||t===a)return s}return t}(s)]=r[s]);return new u(this,t({baseUrl:n},o))},c.image=function(e){return this.withOptions({source:e})},c.dataset=function(e){return this.withOptions({dataset:e})},c.projectId=function(e){return this.withOptions({projectId:e})},c.bg=function(e){return this.withOptions({bg:e})},c.dpr=function(e){return this.withOptions(e&&1!==e?{dpr:e}:{})},c.width=function(e){return this.withOptions({width:e})},c.height=function(e){return this.withOptions({height:e})},c.focalPoint=function(e,t){return this.withOptions({focalPoint:{x:e,y:t}})},c.maxWidth=function(e){return this.withOptions({maxWidth:e})},c.minWidth=function(e){return this.withOptions({minWidth:e})},c.maxHeight=function(e){return this.withOptions({maxHeight:e})},c.minHeight=function(e){return this.withOptions({minHeight:e})},c.size=function(e,t){return this.withOptions({width:e,height:t})},c.blur=function(e){return this.withOptions({blur:e})},c.sharpen=function(e){return this.withOptions({sharpen:e})},c.rect=function(e,t,r,n){return this.withOptions({rect:{left:e,top:t,width:r,height:n}})},c.format=function(e){return this.withOptions({format:e})},c.invert=function(e){return this.withOptions({invert:e})},c.orientation=function(e){return this.withOptions({orientation:e})},c.quality=function(e){return this.withOptions({quality:e})},c.forceDownload=function(e){return this.withOptions({download:e})},c.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},c.flipVertical=function(){return this.withOptions({flipVertical:!0})},c.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},c.fit=function(e){if(-1===o.indexOf(e))throw Error('Invalid fit mode "'+e+'"');return this.withOptions({fit:e})},c.crop=function(e){if(-1===s.indexOf(e))throw Error('Invalid crop mode "'+e+'"');return this.withOptions({crop:e})},c.saturation=function(e){return this.withOptions({saturation:e})},c.auto=function(e){if(-1===a.indexOf(e))throw Error('Invalid auto mode "'+e+'"');return this.withOptions({auto:e})},c.pad=function(e){return this.withOptions({pad:e})},c.vanityName=function(e){return this.withOptions({vanityName:e})},c.frame=function(e){if(1!==e)throw Error('Invalid frame value "'+e+'"');return this.withOptions({frame:e})},c.url=function(){return function(e){var o=t({},e||{}),s=o.source;delete o.source;var a=function(e){var r,i;if(!e)return null;if("string"==typeof e&&(i=e,/^https?:\/\//.test(""+i)))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=t({},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);
14return 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){if(s&&"object"==typeof s&&null!==s&&s._upload&&(!s.asset||!s.asset._ref))return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8HwQACfsD/QNViZkAAAAASUVORK5CYII=";throw Error("Unable to resolve image URL from source ("+JSON.stringify(s)+")")}var u=function(e){var t=e.split("-"),n=t[1],i=t[2],o=t[3];if(!n||!i||!o)throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');var s=i.split("x"),a=s[0],u=s[1],c=+a,l=+u;if(!(isFinite(c)&&isFinite(l)))throw Error("Malformed asset _ref '"+e+"'. Expected an id like \""+r+'".');return{id:n,width:c,height:l,format:o}}(a.asset._ref||a.asset._id||""),c=Math.round(a.crop.left*u.width),l=Math.round(a.crop.top*u.height),h={left:c,top:l,width:Math.round(u.width-a.crop.right*u.width-c),height:Math.round(u.height-a.crop.bottom*u.height-l)},f=a.hotspot.height*u.height/2,p=a.hotspot.width*u.width/2,d=a.hotspot.x*u.width,y=a.hotspot.y*u.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=t({},o,function(e,t){var r,n=t.width,i=t.height;if(!(n&&i))return{width:n,height:i,rect:e.crop};var o=e.crop,s=e.hotspot,a=n/i;if(o.width/o.height>a){var u=Math.round(o.height),c=Math.round(u*a),l=Math.max(0,Math.round(o.top)),h=Math.max(0,Math.round(Math.round((s.right-s.left)/2+s.left)-c/2));h<o.left?h=o.left:h+c>o.left+o.width&&(h=o.left+o.width-c),r={left:h,top:l,width:c,height:u}}else{var f=o.width,p=Math.round(f/a),d=Math.max(0,Math.round(o.left)),y=Math.max(0,Math.round(Math.round((s.bottom-s.top)/2+s.top)-p/2));y<o.top?y=o.top:y+p>o.top+o.height&&(y=o.top+o.height-p),r={left:d,top:y,width:f,height:p}}return{width:n,height:i,rect:r}}({crop:h,hotspot:{left:d-p,top:y-f,right:d+p,bottom:y+f}},o))),function(e){var t=(e.baseUrl||"https://cdn.sanity.io").replace(/\/+$/,""),r=e.vanityName?"/"+e.vanityName:"",n=e.asset.id+"-"+e.asset.width+"x"+e.asset.height+"."+e.asset.format+r,o=t+"/images/"+e.projectId+"/"+e.dataset+"/"+n,s=[];if(e.rect){var a=e.rect,u=a.left,c=a.top,l=a.width,h=a.height;(0!==u||0!==c||h!==e.asset.height||l!==e.asset.width)&&s.push("rect="+u+","+c+","+l+","+h)}e.bg&&s.push("bg="+e.bg),e.focalPoint&&(s.push("fp-x="+e.focalPoint.x),s.push("fp-y="+e.focalPoint.y));var f=[e.flipHorizontal&&"h",e.flipVertical&&"v"].filter(Boolean).join("");return(f&&s.push("flip="+f),i.forEach(function(t){var r=t[0],n=t[1];void 0!==e[r]?s.push(n+"="+encodeURIComponent(e[r])):void 0!==e[n]&&s.push(n+"="+encodeURIComponent(e[n]))}),0===s.length)?o:o+"?"+s.join("&")}(t({},o,{asset:u}))}(this.options)},c.toString=function(){return this.url()},u}();return function(e){if(e&&"config"in e&&"function"==typeof e.config){var t=e.config(),r=t.apiHost,n=t.projectId,i=t.dataset;return new u(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}if(e&&"clientConfig"in e&&"object"==typeof e.clientConfig){var o=e.clientConfig,s=o.apiHost,a=o.projectId,c=o.dataset;return new u(null,{baseUrl:(s||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:a,dataset:c})}return new u(null,e||{})}}()},18942:e=>{e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},20076:(e,t,r)=>{var n=r(27013);e.exports=function(e,t,r){return(t=n(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports.default=e.exports},27013:(e,t,r)=>{var n=r(23667).default,i=r(80196);e.exports=function(e){var t=i(e,"string");return"symbol"==n(t)?t:t+""},e.exports.__esModule=!0,e.exports.default=e.exports},31163:(e,t,r)=>{var n=r(7834);e.exports=function(e,t){if(e){if("string"==typeof e)return n(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},32005:e=>
14{e.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},33638:(e,t,r)=>{var n=r(18942),i=r(50825),o=r(31163),s=r(32005);e.exports=function(e,t){return n(e)||i(e,t)||o(e,t)||s()},e.exports.__esModule=!0,e.exports.default=e.exports},35436:e=>{e.exports=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r},e.exports.__esModule=!0,e.exports.default=e.exports},43961:(e,t,r)=>{"use strict";r.d(t,{F:()=>s});var n=r(46779);let i=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,o=n.A,s=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return o(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:s,defaultVariants:a}=t,u=Object.keys(s).map(e=>{let t=null==r?void 0:r[e],n=null==a?void 0:a[e];if(null===t)return null;let o=i(t)||i(n);return s[e][o]}),c=r&&Object.entries(r).reduce((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return o(e,u,null==t||null==(n=t.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...a,...c}[t]):({...a,...c})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},44266:(e,t,r)=>{"use strict";var n=r(95957);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,o,s){if(s!==n){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i}
14;return r.PropTypes=r,r}},44460:(e,t,r)=>{"use strict";function n(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}r.d(t,{Q:()=>h,u4:()=>n,y:()=>u});var i={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},o={0:8203,1:8204,2:8205,3:65279},s={0:String.fromCodePoint(o[0]),1:String.fromCodePoint(o[1]),2:String.fromCodePoint(o[2]),3:String.fromCodePoint(o[3])},a=[,,,,].fill(String.fromCodePoint(o[0])).join("");function u(e,t,r="auto"){return!0===r||"auto"===r&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),r=new TextEncoder().encode(t),n="";for(let e=0;e<r.length;e++){let t=r[e];n+=s[t>>6&3]+s[t>>4&3]+s[t>>2&3]+s[3&t]}return a+n}(t)}`}Object.fromEntries(Object.entries(s).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(i).map(e=>e.reverse()));var c=`${Object.values(i).map(e=>`\\u{${e.toString(16)}}`).join("")}`,l=RegExp(`[${c}]{4,}`,"gu");function h(e){var t,r;return e&&JSON.parse({cleaned:(t=JSON.stringify(e)).replace(l,""),encoded:(null==(r=t.match(l))?void 0:r[0])||""}.cleaned)}},46779:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(n&&(n+=" "),n+=t);return n}},50825:e=>{e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(c)throw i}}return a}},e.exports.__esModule=!0,e.exports.default=e.exports},52710:(e,t,r)=>{e.exports=r(44266)()},55768:(e,t,r)=>{var n=r(23667).default;function i(t,r){if("function"==typeof WeakMap)var o=new WeakMap,s=new WeakMap;return(e.exports=i=function(e,t){if(!t&&e&&e.__esModule)return e;var r,i,a={__proto__:null,default:e};if(null===e||"object"!=n(e)&&"function"!=typeof e)return a;
14if(r=t?s:o){if(r.has(e))return r.get(e);r.set(e,a)}for(var u in e)"default"!==u&&({}).hasOwnProperty.call(e,u)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(i.get||i.set)?r(a,u,i):a[u]=e[u]);return a},e.exports.__esModule=!0,e.exports.default=e.exports)(t,r)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},61033:(e,t,r)=>{e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=((n=r(2))&&n.__esModule?n:{default:n}).default,e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function i(e){return e&&e.__esModule?e:{default:e}}t.default=c;var o=r(3),s=i(r(4)),a=r(14),u=i(r(15));function c(e){var t=e.activeClassName,r=void 0===t?"":t,i=e.activeIndex,s=void 0===i?-1:i,c=e.activeStyle,l=e.autoEscape,h=e.caseSensitive,f=void 0!==h&&h,p=e.className,d=e.findChunks,y=e.highlightClassName,g=void 0===y?"":y,v=e.highlightStyle,m=void 0===v?{}:v,b=e.highlightTag,w=e.sanitize,x=e.searchWords,O=e.textToHighlight,C=e.unhighlightClassName,E=void 0===C?"":C,R=e.unhighlightStyle,_=function(e,t){var r={};for(var n in e)!(t.indexOf(n)>=0)&&Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),I=(0,o.findAll)({autoEscape:l,caseSensitive:f,findChunks:d,sanitize:w,searchWords:x,textToHighlight:O}),j=void 0===b?"mark":b,q=-1,T="",S=void 0,$=(0,u.default)(function(e){var t={};for(var r in e)t[r.toLowerCase()]=e[r];return t});return(0,a.createElement)("span",n({className:p},_,{children:I.map(function(e,t){var n=O.substr(e.start,e.end-e.start);if(!e.highlight)return(0,a.createElement)("span",{children:n,className:E,key:t,style:R});q++;var i=void 0;i="object"==typeof g?f?g[n]:(g=$(g))[n.toLowerCase()]:g;var o=q===+s;T=i+" "+(o?r:""),S=!0===o&&null!=c?Object.assign({},m,c):m;var u={children:n,className:T,key:t,style:S};return"string"!=typeof j&&(u.highlightIndex=q),(0,a.createElement)(j,u)})}))}c.propTypes={activeClassName:s.default.string,activeIndex:s.default.number,activeStyle:s.default.object,autoEscape:s.default.bool,className:s.default.string,findChunks:s.default.func,highlightClassName:s.default.oneOfType([s.default.object,s.default.string]),highlightStyle:s.default.object,highlightTag:s.default.oneOfType([s.default.node,s.default.func,s.default.string]),sanitize:s.default.func,searchWords:s.default.arrayOf(s.default.oneOfType([s.default.string,s.default.instanceOf(RegExp)])).isRequired,textToHighlight:s.default.string.isRequired,unhighlightClassName:s.default.string,unhighlightStyle:s.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}return r.m=e,r.c=t,r.p="",r(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return n.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return n.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return n.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return n.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,o=e.caseSensitive,s=e.findChunks,a=void 0===s?n:s,u=e.s
14anitize,c=e.searchWords,l=e.textToHighlight;return i({chunksToHighlight:r({chunks:a({autoEscape:t,caseSensitive:void 0!==o&&o,sanitize:u,searchWords:c,textToHighlight:l})}),totalLength:l?l.length:0})};var r=t.combineChunks=function(e){var t=e.chunks;return t.sort(function(e,t){return e.start-t.start}).reduce(function(e,t){if(0===e.length)return[t];var r=e.pop();if(t.start<=r.end){var n=Math.max(r.end,t.end);e.push({start:r.start,end:n})}else e.push(r,t);return e},[])},n=function(e){var t=e.autoEscape,r=e.caseSensitive,n=e.sanitize,i=void 0===n?o:n,s=e.searchWords,a=e.textToHighlight;return a=i(a),s.filter(function(e){return e}).reduce(function(e,n){n=i(n),t&&(n=n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var o=new RegExp(n,r?"g":"gi"),s=void 0;s=o.exec(a);){var u=s.index,c=o.lastIndex;c>u&&e.push({start:u,end:c}),s.index==o.lastIndex&&o.lastIndex++}return e},[])};t.findChunks=n;var i=t.fillInChunks=function(e){var t=e.chunksToHighlight,r=e.totalLength,n=[],i=function(e,t,r){t-e>0&&n.push({start:e,end:t,highlight:r})};if(0===t.length)i(0,r,!1);else{var o=0;t.forEach(function(e){i(o,e.start,!1),i(e.start,e.end,!0),o=e.end}),i(o,r,!1)}return n};function o(e){return e}}])},function(e,t,r){(function(t){if("production"!==t.env.NODE_ENV){var n="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=r(6)(function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},!0)}else e.exports=r(13)()}).call(t,r(5))},function(e,t){var r,n,i,o=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}var c=[],l=!1,h=-1;
14function f(){l&&i&&(l=!1,i.length?c=i.concat(c):h=-1,c.length&&p())}function p(){if(!l){var e=u(f);l=!0;for(var t=c.length;t;){for(i=c,c=[];++h<t;)i&&i[h].run();h=-1,t=c.length}i=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new d(e,t)),1!==c.length||l||u(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){(function(t){"use strict";var n=r(7),i=r(8),o=r(9),s=r(10),a=r(11),u=r(12);e.exports=function(e,r){var c="function"==typeof Symbol&&Symbol.iterator,l="<<anonymous>>",h={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(n.thatReturnsNull),arrayOf:function(e){return p(function(t,r,n,i,o){if("function"!=typeof e)return new f("Property `"+o+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+o+"` of type "+("`"+y(s)+"` supplied to `")+n+"`, expected an array.");for(var u=0;u<s.length;u++){var c=e(s,u,n,i,o+"["+u+"]",a);if(c instanceof Error)return c}return null})},element:p(function(t,r,n,i,o){var s=t[r];return e(s)?null:new f("Invalid "+i+" `"+o+"` of type "+("`"+y(s)+"` supplied to `")+n+"`, expected a single ReactElement.")}),instanceOf:function(e){return p(function(t,r,n,i,o){if(!(t[r]instanceof e)){var s,a=e.name||l;return new f("Invalid "+i+" `"+o+"` of type "+("`"+((s=t[r]).constructor&&s.constructor.name?s.constructor.name:l)+"` supplied to `")+n+"`, expected instance of `"+a+"`.")}return null})},node:p(function(t,r,n,i,o){return!function t(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(t);if(null===r||e(r))return!0;var n=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(r);if(!n)return!1;var i,o=n.call(r);if(n!==r.entries){for(;!(i=o.next()).done;)if(!t(i.value))return!1}else for(;!(i=o.next()).done;){var s=i.value;if(s&&!t(s[1]))return!1}return!0;default:return!1}}(t[r])?new f("Invalid "+i+" `"+o+"` supplied to `"+n+"`, expected a ReactNode."):null}),objectOf:function(e){return p(function(t,r,n,i,o){if("function"!=typeof e)return new f("Property `"+o+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var s=t[r],u=y(s);if("object"!==u)return new f("Invalid "+i+" `"+o+"` of type "+("`"+u+"` supplied to `")+n+"`, expected an object.");for(var c in s)if(s.hasOwnProperty(c)){var l=e(s,c,n,i,o+"."+c,a);if(l instanceof Error)return l}return null})},oneOf:function(e){return Array.isArray(e)?p(function(t,r,n,i,o){for(var s,a=t[r],u=0;u<e.length;u++)if(a===(s=e[u])?0!==a||1/a==1/s:a!=a&&s!=s)return null;return new f("Invalid "+i+" `"+o+"` of value `"+a+"` "+("supplied to `"+n+"`, expected one of ")+JSON.stringify(e)+".")}):("production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOf, expected an instance of array."),n.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&o(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),n.thatReturnsNull;for(var r=0;r<e.length;r++){var i=e[r];if("function"!=typeof i)return o(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",function(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}(i),r),n.thatReturnsNull}return p(function(t,r,n,i,o){for(var s=0;s<e.length;s++)if(null==(0,e[s])(t,r,n,i,o,a))return null;return new f("Invalid "+i+" `"+o+"` supplied to `"+n+"`.")})},shape:function(e){return p(function(t,r,n,i,o){var s=t[r],u=y(s);if("object"!==u)return new f("Invalid "+i+" `"+o+"` of type `"+u+"` supplied to `"+n+"`, expected `object`.");for(var c in e){var l=e[c];if(l){var h=l(s,c,n,i,o+"."+c,a);if(h)return h}}return null})},exact:function(e){return p(function(t,r,n,i,o){var u=t[r],c=y(u);if("object"!==c)return new f("Invalid "+i+" `"+o+"` of type `"+c+"` supplied to `"+n+"`, expected `object`.");var l=s({},t[r],e);for(var h in l){var p=e[h];if(!p)return new f("Invalid "+i+" `"+o+"` key `"+h+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var d=p(u,h,n,i,o+"."+h,a);if(d)return d}return null})}};function f(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var n={},s=0;function u(u,c,h,p,d,y,g){if(p=p||l,y=y||h,g!==a){if(r)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=p+":"+h;!n[v]&&s<3&&(o(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",y,p),n[v]=!0,s++)}}return null!=c[h]?e(c,h,p,d,y):u?new f(null===c[h]?"The "+d+" `"+y+"` is marked as required in `"+p+"`, but its value is `null`.":"The "+d+" `"+y+"` is marked as required in `"+p+"`, but its value is `undefined`."):null}var c=u.bind(null,!1);
14return c.isRequired=u.bind(null,!0),c}function d(e){return p(function(t,r,n,i,o,s){var a=t[r];return y(a)!==e?new f("Invalid "+i+" `"+o+"` of type "+("`"+g(a)+"` supplied to `")+n+"`, expected `"+e+"`."):null})}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol?"symbol":t}function g(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";else if(e instanceof RegExp)return"regexp"}return t}return f.prototype=Error.prototype,h.checkPropTypes=u,h.PropTypes=h,h}}).call(t,r(5))},function(e,t){"use strict";function r(e){return function(){return e}}var n=function(){};n.thatReturns=r,n.thatReturnsFalse=r(!1),n.thatReturnsTrue=r(!0),n.thatReturnsNull=r(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},function(e,t,r){(function(t){"use strict";var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw Error("invariant requires an error message argument")}),e.exports=function(e,t,n,i,o,s,a,u){if(r(t),!e){var c;if(void 0===t)c=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,s,a,u],h=0;(c=Error(t.replace(/%s/g,function(){return l[h++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,r(5))},function(e,t,r){(function(t){"use strict";var n=r(7);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0,o="Warning: "+e.replace(/%s/g,function(){return r[i++]});"undefined"!=typeof console&&console.error(o);try{throw Error(o)}catch(e){}};n=function(e,t){if(void 0===t)throw Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];i.apply(void 0,[t].concat(n))}}}e.exports=n}).call(t,r(5))},function(e,t){"use strict";var r=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==n.join(""))return!1;var i={};if("abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},i)).join(""))return!1;return!0}catch(e){return!1}}()?function(e,t){for(var o,s,a=function(e){if(null==e)throw TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in o=Object(arguments[u]))n.call(o,c)&&(a[c]=o[c]);if(r){s=r(o);for(var l=0;l<s.length;l++)i.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}:Object.assign},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,r){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var n=r(8),i=r(9),o=r(11),s={};e.exports=function(e,r,a,u,c){if("production"!==t.env.NODE_ENV){for(var l in e)if(e.hasOwnProperty(l)){var h;try{n("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",u||"React class",a,l,typeof e[l]),h=e[l](r,l,u,a,null,o)}catch(e){h=e}if(i(!h||h instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",u||"React class",a,l,typeof h),h instanceof Error&&!(h.message in s)){s[h.message]=!0;var f=c?c():"";i(!1,"Failed %s type: %s%s",a,h.message,null!=f?f:"")}}}}}).call(t,r(5))},function(e,t,r){"use strict";var n=r(7),i=r(8),o=r(11);e.exports=function(){function e(e,t,r,n,s,a){a!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;
14var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return r.checkPropTypes=n,r.PropTypes=r,r}},function(e,t){e.exports=r(36744)},function(e,t){"use strict";var r=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,n=void 0,i=[],o=void 0,s=!1,a=function(e,r){return t(e,i[r])};return function(){for(var t=arguments.length,r=Array(t),u=0;u<t;u++)r[u]=arguments[u];return s&&n===this&&r.length===i.length&&r.every(a)?o:(s=!0,n=this,i=r,o=e.apply(this,r))}}}])},65164:(e,t,r)=>{"use strict";var n=r(92699);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r(33638)),o=r(36744);function s(e){return e&&e.current&&e.current.scrollHeight?"".concat(e.current.scrollHeight,"px"):"0px"}t.default=function(e){var t=e.isOpen,r=e.content,n=(0,o.useState)("0"),a=(0,i.default)(n,2),u=a[0],c=a[1],l=(0,o.useState)("hidden"),h=(0,i.default)(l,2),f=h[0],p=h[1],d=(0,o.useState)("hidden"),y=(0,i.default)(d,2),g=y[0],v=y[1],m=(0,o.useState)(!0),b=(0,i.default)(m,2),w=b[0],x=b[1];return(0,o.useEffect)(function(){t?(v("visible"),w?(c("auto"),p("visible")):c(s(r))):w||(c(s(r)),window.requestAnimationFrame(function(){setTimeout(function(){c("0"),p("hidden")})}))},[t]),(0,o.useEffect)(function(){x(!1)},[]),{setIsExpandedStyle:function(){c("auto"),p("visible"),v("visible")},setIsCollapsedStyle:function(){v("hidden")},style:{overflow:f,visibility:g,height:u}}}},80196:(e,t,r)=>{var n=r(23667).default;e.exports=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!=n(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},87667:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},88369:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.d(t,{A:()=>n})},89668:(e,t,r)=>{"use strict";var n=r(92699);t.Ay=void 0;var i=n(r(9555));n(r(65164)),t.Ay=i.default},92699:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},95957:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}}]);
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.