PageSourceSearch

https://helloalma.com/_next/static/chunks/0w15392bsng-4.js

js helloalma.com collected 2026-09-24 18:47:40 UTC 66,798 bytes, 14 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,945736,373983,e=>{"use strict";var t,r=e.i(271011),s=e.i(708228),n=e.i(394426),i=e.i(172441),o=e.i(245912),a=e.i(245281),u=e.i(484973),l=e.i(330823),c=e.i(305753),h=e.i(827341),d=e.i(992481),p=e.i(602400),f=e.i(817312),g=e.i(254201),m=e.i(218692),y=e.i(128068),b=e.i(277497),w=e.i(993817),v=e.i(94059),C=e.i(839338),q=e.i(247984),R=e.i(524888),E=e.i(722249),$=e.i(589293),I=e.i(314052),F=e.i(902965);function j(e,t){return(0,F.operate)((0,I.scanInternals)(e,t,arguments.length>=2,!1,!0))}e.s(["reduce",0,j],373983);var T=e.i(216024);let O=e=>crypto.getRandomValues(new Uint8Array(e)),x=/\r\n|[\n\r\u2028\u2029]/;function A(e,t){let r=0;for(let s=0;s<t.length;s++){let n=t[s].length+1;if(r+n>e)return{line:s+1,column:e-r};r+=n}return{line:t.length,column:t[t.length-1]?.length??0}}class S extends Error{response;statusCode=400;responseBody;traceId;details;constructor(e,t){const r=P(e,t);super(r.message),Object.assign(this,r)}}class V extends Error{response;statusCode=500;responseBody;traceId;details;constructor(e){const t=P(e);super(t.message),Object.assign(this,t)}}function P(e,t){var r,s,n;let i=e.body,o={response:e,statusCode:e.statusCode,responseBody:(r=i,-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,q.isRecord)(i))return o.message=`${M(e,i)}${k(o.traceId)}`,o;let a=i.error;if("string"==typeof a&&"string"==typeof i.message)return o.message=`${a} - ${i.message}${k(o.traceId)}`,o;if("object"!=typeof a||null===a)return"string"==typeof a?o.message=`${a}${k(o.traceId)}`:"string"==typeof i.message?o.message=`${i.message}${k(o.traceId)}`:o.message=`${M(e,i)}${k(o.traceId)}`,o;if("type"in(s=a)&&"mutationError"===s.type&&"description"in s&&"string"==typeof s.description||"type"in(n=a)&&"actionError"===n.type&&"description"in n&&"string"==typeof n.description){let e=a.items||[],t=e.slice(0,5).map(e=>e.error?.description).filter(Boolean),r=t.length?`:
2- ${t.join(`
3- `)}`:"";return e.length>5&&(r+=`
4...and ${e.length-5} more`),o.message=`${a.description}${k(o.traceId)}${r}`,o.details=i.error,o}return D(a)?(o.message=_(a,t?.options?.query?.tag,o.traceId),o.details=i.error):"description"in a&&"string"==typeof a.description?(o.message=`${a.description}${k(o.traceId)}`,o.details=a):o.message=`${M(e,i)}${k(o.traceId)}`,o}function D(e){return(0,q.isRecord)(e)&&"queryParseError"===e.type&&"string"==typeof e.query&&"number"==typeof e.start&&"number"==typeof e.end}function _(e,t,r){let{query:s,start:n,end:i,description:o}=e,a=r?`
5(traceId: ${r})`:"";if(!s||typeof n>"u")return`GROQ query parse error: ${o}${a}`;let u=t?`
6
7Tag: ${t}`:"";return`GROQ query parse error:
8${function(e,t,r){let s=e.split(x),{start:n,end:i,markerLines:o}=function(e,t){let r={...e.start},s={...r,...e.end},n=r.line??-1,i=r.column??0,o=s.line,a=s.column,u=Math.max(n-3,0),l=Math.min(t.length,o+3);-1===n&&(u=0),-1===o&&(l=t.length);let c=o-n,h={};if(c)for(let e=0;e<=c;e++){let r=e+n;if(i)if(0===e){let e=t[r-1].length;h[r]=[i,e-i+1]}else if(e===c)h[r]=[0,a];else{let s=t[r-e].length;h[r]=[0,s]}else h[r]=!0}else i===a?i?h[n]=[i,0]:h[n]=!0:h[n]=[i,a-i];return{start:u,end:l,markerLines:h}}({start:A(t.start,s),end:t.end?A(t.end,s):void 0},s),a=`${i}`.length;return e.split(x,i).slice(n,i).map((e,t)=>{let s=n+1+t,i=` ${` ${s}`.slice(-a)} |`,u=o[s],l=!o[s+1];if(!u)return` ${i}${e.length>0?` ${e}`:""}`;let c="";if(Array.isArray(u)){let t=e.slice(0,Math.max(u[0]-1,0)).replace(/[^\t]/g," "),s=u[1]||1;c=[`
9 `,i.replace(/\d/g," ")," ",t,"^".repeat(s)].join(""),l&&r&&(c+=" "+r)}return[">",i,e.length>0?` ${e}`:"",c].join("")}).join(`
10`)}(s,{start:n,end:i},o)}${u}${a}`}function M(e,t){var r;let s="string"==typeof t?` (${(r=t).length>100?`${r.slice(0,100)}\u2026`:r})`:"",n=e.statusMessage?` ${e.statusMessage}`:"";return`${e.method}-request to ${e.url} resulted in HTTP ${e.statusCode}${n}${s}`}function k(e){return e?` (traceId: ${e})`:""}
10class U extends Error{projectId;addOriginUrl;constructor({projectId:e,credentials:t}={}){if(super("CorsOriginError"),this.name="CorsOriginError",this.projectId=e,e&&"u">typeof location){const r=new URL(`https://sanity.io/manage/project/${e}/api`),{origin:s}=location;r.searchParams.set("cors","add"),r.searchParams.set("origin",s),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 L={onResponse:(e,t)=>{if(e.statusCode>=500)throw new V(e);if(e.statusCode>=400)throw new S(e,t);return e}};function N(e,t={}){return(0,r.getIt)([(0,s.retry)({shouldRetry:H}),...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 s=e.headers["x-sanity-warning"];for(let e of Array.isArray(s)?s:[s])!e||t[e]||r(e)||(t[e]=!0,console.warn(e));return e}}}(t),(0,s.jsonRequest)(),(0,s.jsonResponse)(),(0,s.progress)(),L,(0,s.observable)({implementation:n.Observable})])}function H(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||s.retry.shouldRetry(e,t,r)}function z(e){return"https://www.sanity.io/help/"+e}let B=["image","file"],G=["before","after","replace"],W=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")},J=(e,t)=>{if(null===t||"object"!=typeof t||Array.isArray(t))throw Error(`${e}() takes an object of properties`)},Q=(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`)},Y=(e,t)=>{if(!t._id)throw Error(`${e}() requires that the document contains an ID ("_id" property)`);Q(e,t._id)},K=(e,t)=>{if(!t._type)throw Error(`\`${e}()\` requires that the document contains a type (\`_type\` property)`);var r=t._type;if("string"!=typeof r)throw Error(`\`${e}()\`: \`${r}\` is not a valid document type`)},X=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")},Z=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},ee=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:s}=t;switch(r){case"dataset":if(2!==s.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()}`)}},et=(e,t)=>{if(t.resource)throw Error(`\`${e}\` does not support resource-based operations`)},er=e=>{var t;let r,s;return t=(...t)=>console.warn(e.join(" "),...t),r=!1,(...e)=>(r||(s=t(...e),r=!0),s)},es=er(["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"]),en=er(["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."]),ei=er(["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."]),eo=er(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),ea=er(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.",`See ${z("js-client-browser-token")} for more information and how to hide this warning.`]),eu=er(["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`."]),el=er(["Using the Sanity client without specifying an API version is deprecated.",`See ${z("js-client-api-version")}`]),ec=(er(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),er(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),eh=er(["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."]),ed={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},ep=["localhost","127.0.0.1","0.0.0.0"];function ef(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 eg=(e,t)=>{let r,s={...t,...e,stega:{..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||ed.stega,..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||{}}};s.apiVersion||el();let n={...ed,...s};n["~experimental_resource"]&&!n.resource&&(eh(),n.resource=n["~experimental_resource"]);let i=n.resource,o=n.useProjectHostname&&!i;if(typeof Promise>"u"){let e=z("js-client-promise-polyfill");throw Error(`No native Promise-implementation found, polyfill needed - see ${e}`)}if(o&&!n.projectId)throw Error("Configuration must contain `projectId`");if(i&&ee(n),"u">typeof n.perspective&&ef(n.perspective),"encodeSourceMap"in n)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 n)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'?");
10if("boolean"!=typeof n.stega.enabled)throw Error(`stega.enabled must be a boolean, received ${n.stega.enabled}`);if(n.stega.enabled&&void 0===n.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(n.stega.enabled&&"string"!=typeof n.stega.studioUrl&&"function"!=typeof n.stega.studioUrl)throw Error(`stega.studioUrl must be a string or a function, received ${n.stega.studioUrl}`);let a="u">typeof window&&window.location&&window.location.hostname,u=a&&(r=window.location.hostname,-1!==ep.indexOf(r)),l=!!n.token;n.withCredentials&&l&&(eu(),n.withCredentials=!1),a&&u&&l&&!0!==n.ignoreBrowserTokenWarning?ea():typeof n.useCdn>"u"&&en(),o&&(e=>{if(!/^[-a-z0-9]+$/i.test(e))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(n.projectId),n.dataset&&W(n.dataset),"requestTagPrefix"in n&&(n.requestTagPrefix=n.requestTagPrefix?Z(n.requestTagPrefix).replace(/\.+$/,""):void 0),n.apiVersion=`${n.apiVersion}`.replace(/^v/,""),n.isDefaultApi=n.apiHost===ed.apiHost,!0===n.useCdn&&n.withCredentials&&es(),n.useCdn=!1!==n.useCdn&&!n.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`")}(n.apiVersion);let c=n.apiHost.split("://",2),h=c[0],d=c[1],p=n.isDefaultApi?"apicdn.sanity.io":d;return o?(n.url=`${h}://${n.projectId}.${d}/v${n.apiVersion}`,n.cdnUrl=`${h}://${n.projectId}.${p}/v${n.apiVersion}`):(n.url=`${n.apiHost}/v${n.apiVersion}`,n.cdnUrl=n.url),n};class em extends Error{name="ConnectionFailedError";status;constructor(e,t={}){const{status:r,...s}=t;super(e,s),this.status=r}}class ey extends Error{name="DisconnectError";reason;constructor(e,t,r={}){super(e,r),this.reason=t}}class eb extends Error{name="ChannelError";data;constructor(e,t){super(e),this.data=t}}class ew extends Error{name="MessageError";data;constructor(e,t,r={}){super(e,r),this.data=t}}class ev extends Error{name="MessageParseError"}let eC=["channelError","disconnect"];function eq(e,t){return(0,i.defer)(()=>{let t=e();return(0,o.isObservable)(t)?t:(0,a.of)(t)}).pipe((0,u.mergeMap)(e=>{var r,s;return r=e,s=t,new n.Observable(e=>{let t=s.includes("open"),n=s.includes("reconnect");function i(t){if("data"in t){let[r,s]=eR(t);e.error(r?new ev("Unable to parse EventSource error message",{cause:s}):new ew((s?.data).message,s));return}let s=t.status,i="number"==typeof s?s:void 0;void 0!==i?e.error(new em("EventSource connection failed",{status:i})):r.readyState===r.CLOSED?e.error(new em("EventSource connection failed")):n&&e.next({type:"reconnect"})}function o(){e.next({type:"open"})}function a(t){let[s,n]=eR(t);if(s)return void e.error(new ev("Unable to parse EventSource message",{cause:s}));if("channelError"===t.type){var i,o;let t,s=new URL(r.url).searchParams.get("tag");e.error(new eb((i=n?.data,o=s,(t=i.error)?D(t)?_(t,o):t.description?t.description:"string"==typeof t?t:JSON.stringify(t,null,2):i.message||"Unknown listener error"),n.data));return}"disconnect"===t.type?e.error(new ey(`Server disconnected client: ${n.data?.reason||"unknown error"}`)):e.next({type:t.type,id:t.lastEventId,...n.data?{data:n.data}:{}})}r.addEventListener("error",i),t&&r.addEventListener("open",o);let u=[...new Set([...eC,...s])].filter(e=>"error"!==e&&"open"!==e&&"reconnect"!==e);return u.forEach(e=>r.addEventListener(e,a)),()=>{r.removeEventListener("error",i),t&&r.removeEventListener("open",o),u.forEach(e=>r.removeEventListener(e,a)),r.close()}})}))}function eR(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 eE(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(`
11`);throw Error(`Unknown selection - must be one of:
12
13${t}`)}class e${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 J("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 s="insert(at, selector, items)";if(-1===G.indexOf(e)){let e=G.map(e=>`"${e}"`).join(", ");throw Error(`${s} takes an "at"-argument which is one of: ${e}`)}if("string"!=typeof t)throw Error(`${s} takes a "selector"-argument which must be a string`);if(!Array.isArray(r))throw Error(`${s} 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,s){let n=t<0?t-1:t,i=typeof r>"u"||-1===r?-1:Math.max(0,t+r),o=`${e}[${n}:${n<0&&i>=0?"":i}]`;return this.insert("replace",o,s||[])}ifRevisionId(e){return this.operations.ifRevisionID=e,this}serialize(){return{...eE(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(e,t,r=!0){return J(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 eI extends e${#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eI(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)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.#e.mutate({patch:this.serialize()},t)}}class eF extends e${#e;constructor(e,t,r){super(e,t),this.#e=r}clone(){return new eF(this.selection,{...this.operations},this.#e)}commit(e){if(!this.#e)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.#e.mutate({patch:this.serialize()},t)}}let ej={returnDocuments:!1};class eT{operations;trxId;constructor(e=[],t){this.operations=e,this.trxId=t}create(e){return J("create",e),this._add({create:e})}createIfNotExists(e){let t="createIfNotExists";return J(t,e),Y(t,e),this._add({[t]:e})}createOrReplace(e){let t="createOrReplace";return J(t,e),Y(t,e),this._add({[t]:e})}delete(e){return Q("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 eO extends eT{#e;
13constructor(e,t,r){super(e,r),this.#e=t}clone(){return new eO([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},ej,e||{}))}patch(e,t){let r="function"==typeof t,s="string"!=typeof e&&e instanceof eF,n="object"==typeof e&&("query"in e||"id"in e);if(s)return this._add({patch:e.serialize()});if(r){let r=t(new eF(e,{},this.#e));if(!(r instanceof eF))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(n){let r=new eF(e,t||{},this.#e);return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}class ex extends eT{#e;constructor(e,t,r){super(e,r),this.#e=t}clone(){return new ex([...this.operations],this.#e,this.trxId)}commit(e){if(!this.#e)throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return this.#e.mutate(this.serialize(),Object.assign({transactionId:this.trxId},ej,e||{}))}patch(e,t){let r="function"==typeof t;if("string"!=typeof e&&e instanceof eI)return this._add({patch:e.serialize()});if(r){let r=t(new eI(e,{},this.#e));if(!(r instanceof eI))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:e,...t}})}}let eA=({query:e,params:t={},options:r={}})=>{let s=new URLSearchParams,{tag:n,includeMutations:i,returnQuery:o,...a}=r;for(let[r,i]of(n&&s.append("tag",n),s.append("query",e),Object.entries(t)))void 0!==i&&s.append(`$${r}`,JSON.stringify(i));for(let[e,t]of Object.entries(a))t&&s.append(e,`${t}`);return!1===o&&s.append("returnQuery","false"),!1===i&&s.append("includeMutations","false"),`?${s}`},eS=e=>"response"===e.type,eV=e=>e.body;function eP(t,r,s,n,i={},o={}){let a="stega"in o?{...s||{},..."boolean"==typeof o.stega?{enabled:o.stega}:o.stega||{}}:s,u=a.enabled?(0,q.stegaClean)(i):i,c=!1===o.filterResponse?e=>e:e=>e.result,{cache:h,next:d,...p}={useAbortSignal:"u">typeof o.signal,resultSourceMap:a.enabled?"withKeyArraySelector":o.resultSourceMap,...o,returnQuery:!1===o.filterResponse&&!1!==o.returnQuery},f=eY(t,r,"query",{query:n,params:u},"u">typeof h||"u">typeof d?{...p,fetch:{cache:h,next:d}}:p);return a.enabled?f.pipe((0,R.combineLatestWith)((0,l.from)(e.A(684927).then(function(e){return e.stegaEncodeSourceMap$1}).then(({stegaEncodeSourceMap:e})=>e))),(0,v.map)(([e,t])=>{let r=t(e.result,e.resultSourceMap,a);return c({...e,result:r})})):f.pipe((0,v.map)(c))}function eD(e,t,r,s={}){let n={uri:e3(e,"doc",(()=>{if(!s.releaseId)return r;let e=(0,T.getVersionFromId)(r);if(!e){if((0,T.isDraftId)(r))throw Error(`The document ID (\`${r}\`) is a draft, but \`options.releaseId\` is set as \`${s.releaseId}\``);return(0,T.getVersionId)(r,s.releaseId)}if(e!==s.releaseId)throw Error(`The document ID (\`${r}\`) is already a version of \`${e}\` release, but this does not match the provided \`options.releaseId\` (\`${s.releaseId}\`)`);return r})()),json:!0,tag:s.tag,signal:s.signal,query:void 0!==s.includeAllVersions?{includeAllVersions:s.includeAllVersions}:void 0};return e0(e,t,n).pipe((0,E.filter)(eS),(0,v.map)(e=>{let t=e.body.documents;return t?s.includeAllVersions?t:t[0]:s.includeAllVersions?[]:void 0}))}function e_(e,t,r,s={}){let n={uri:e3(e,"doc",r.join(",")),json:!0,tag:s.tag,signal:s.signal};return e0(e,t,n).pipe((0,E.filter)(eS),(0,v.map)(e=>{let t,s,n=(t=e.body.documents||[],s=e=>e._id,t.reduce((e,t)=>(e[s(t)]=t,e),Object.create(null)));return r.map(e=>n[e]||null)}))}function eM(e,t,r,s={}){if(0===r.length)return(0,a.of)(new Set);let n=[];for(let e=0;e<r.length;e+=100)n.push(r.slice(e,e+100));return(0,l.from)(n).pipe((0,$.concatMap)(r=>e0(e,t,{uri:e3(e,"doc",r.map(encodeURIComponent).join(",")),tag:s.tag,signal:s.signal,query:{excludeContent:!0}}).pipe((0,E.filter)(eS),(0,v.map)(e=>{let t=new Set;for(let r of e.body.omitted||[])"existence"===r.reason&&t.add(r.id);return new Set(r.filter(e=>!t.has(e)))}))),j((e,t)=>{for(let r of t)e.add(r);return e},new Set))}function ek(e,t,r,s={}){return eY(e,t,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},s)}function eU(e,t,r,s){return Y("createIfNotExists",r),eK(e,t,r,"createIfNotExists",s)}function eL(e,t,r,s){return Y("createOrReplace",r),eK(e,t,r,"createOrReplace",s)}function eN(e,t,r,s,n){return Y("createVersion",r),K("createVersion",r),ec(),eQ(e,t,{actionType:"sanity.action.document.version.create",publishedId:s,document:r},n)}function eH(e,t,r,s,n,i,o){if(!s)throw Error("`createVersion()` requires `baseId` when no `document` is provided");
13if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return Q("createVersion",s),Q("createVersion",r),eQ(e,t,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:s,versionId:n?(0,T.getVersionId)(r,n):(0,T.getDraftId)(r),ifBaseRevisionId:i},o)}function ez(e,t,r,s){return eY(e,t,"mutate",{mutations:[{delete:eE(r)}]},s)}function eB(e,t,r,s=!1,n){return eQ(e,t,{actionType:"sanity.action.document.version.discard",versionId:r,purge:s},n)}function eG(e,t,r,s){return Y("replaceVersion",r),K("replaceVersion",r),eQ(e,t,{actionType:"sanity.action.document.version.replace",document:r},s)}function eW(e,t,r,s,n){return eQ(e,t,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:s},n)}function eJ(e,t,r,s){let n;return eY(e,t,"mutate",{mutations:Array.isArray(n=r instanceof eF||r instanceof eI?{patch:r.serialize()}:r instanceof eO||r instanceof ex?r.serialize():r)?n:[n],transactionId:s&&s.transactionId||void 0},s)}function eQ(e,t,r,s){let n=Array.isArray(r)?r:[r],i=s&&s.transactionId||void 0;return eY(e,t,"actions",{actions:n,transactionId:i,skipCrossDatasetReferenceValidation:s&&s.skipCrossDatasetReferenceValidation||void 0,dryRun:s&&s.dryRun||void 0},s)}function eY(e,t,r,s,n={}){let i="mutate"===r,o="actions"===r,a=i||o?"":eA(s),u=!i&&!o&&a.length<11264,l=u?a:"",c=n.returnFirst,{timeout:h,token:d,tag:p,headers:f,returnQuery:g,lastLiveEventId:m,cacheMode:y}=n,b={method:u?"GET":"POST",uri:e3(e,r,l),json:!0,body:u?void 0:s,query:i&&((e={})=>{let t;return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}})(n),timeout:h,headers:f,token:d,tag:p,returnQuery:g,perspective:n.perspective,variant:n.variant,resultSourceMap:n.resultSourceMap,lastLiveEventId:Array.isArray(m)?m[0]:m,cacheMode:y,canUseCdn:"query"===r,signal:n.signal,fetch:n.fetch,useAbortSignal:n.useAbortSignal,useCdn:n.useCdn};return e0(e,t,b).pipe((0,E.filter)(eS),(0,v.map)(eV),(0,v.map)(e=>{if(!i)return e;let t=e.results||[];if(n.returnDocuments)return c?t[0]&&t[0].document:t.map(e=>e.document);let r=c?t[0]&&t[0].id:t.map(e=>e.id);return{transactionId:e.transactionId,results:t,[c?"documentId":"documentIds"]:r}}))}function eK(e,t,r,s,n={}){return eY(e,t,"mutate",{mutations:[{[s]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},n))}let eX=e=>{let t=e.config();return void 0!==t.dataset&&void 0!==t.projectId||void 0!==t.resource},eZ=(e,t)=>eX(e)&&t.startsWith(e3(e,"query"));function e0(e,t,r){var s;let i=Error(),o=r.url||r.uri,a=e.config(),u=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(o.startsWith("/data/")||eZ(e,o)||eX(e)&&o.startsWith(e3(e,"mutate"))||eX(e)&&o.startsWith(e3(e,"doc",""))||eX(e)&&o.startsWith(e3(e,"listen"))||eX(e)&&o.startsWith(e3(e,"history",""))):r.canUseCdn,l=(r.useCdn??a.useCdn)&&u,c=r.tag&&a.requestTagPrefix?[a.requestTagPrefix,r.tag].join("."):r.tag||a.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:Z(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&eZ(e,o)){let e=r.resultSourceMap??a.resultSourceMap;void 0!==e&&!1!==e&&(r.query={resultSourceMap:e,...r.query});let t=r.perspective||a.perspective;"u">typeof t&&("previewDrafts"===t&&eo(),ef(t),r.query={perspective:Array.isArray(t)?t.join(","):t,...r.query},(Array.isArray(t)&&t.length>0||"previewDrafts"===t||"drafts"===t)&&l&&(l=!1,ei()));let s=r.variant||a.variant;"string"==typeof s&&(r.query={variant:s,...r.query}),"object"==typeof s&&(r.query={variantCondition:Object.entries(s).map(([e,t])=>`${e}:${t}`).toSorted(),...r.query}),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),l&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let h=function(e,t={}){let r={};e.headers&&Object.assign(r,e.headers);let s=t.token||e.token;s&&(r.Authorization=`Bearer ${s}`),t.useGlobalApi||e.useProjectHostname||!e.projectId||(r["X-Sanity-Project-ID"]=e.projectId);let n=!!(typeof t.withCredentials>"u"?e.withCredentials:t.withCredentials),i=typeof t.timeout>"u"?e.timeout:t.timeout;return Object.assign({},t,{headers:Object.assign({},r,t.headers||{}),timeout:typeof i>"u"?3e5:i,proxy:t.proxy||e.proxy,json:!0,withCredentials:n,fetch:"object"==typeof t.fetch&&"object"==typeof e.fetch?{...e.fetch,...t.fetch}:t.fetch||e.fetch})}(a,Object.assign({},r,{url:e6(e,o,l),callSiteStack:i})),d=new n.Observable(e=>t(h,a.requester).subscribe(e));return r.signal?d.pipe((s=r.signal,e=>new n.Observable(t=>{let r=()=>t.error(function(e){if(e2)return new DOMException(e?.reason??"The operation was aborted.","AbortError");let t=Error(e?.reason??"The operation was aborted.");return t.name="AbortError",t}(s));if(s&&s.aborted)return void r();let n=e.subscribe(t);return s.addEventListener("abort",r),()=>{s.removeEventListener("abort",r),n.unsubscribe()}}))):d}function e1(e,t,r){return e0(e,t,r).pipe((0,E.filter)(e=>"response"===e.type),(0,v.map)(e=>e.body))}function e3(e,t,r){let s=e.config();if(s.resource){ee(s);let e=e9(s),n=void 0!==r?`${t}/${r}`:t;return`${e}/${n}`.replace(/\/($|\?)/,"$1")}let n=X(s),i=`/${t}/${n}`;return`/data${void 0!==r?`${i}/${r}`:i}`.replace(/\/($|\?)/,"$1")}function e6(e,t,r=!1){let{url:s,cdnUrl:n}=e.config();return`${r?n:s}/${t.replace(/^\//,"")}`}let e2=!!globalThis.DOMException,e9=e=>{let t=e.resource;if(!t)throw Error("`resource` must be provided to perform resource queries");let{type:r,id:s}=t;switch(r){case"dataset":{let e=s.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/${s}`;case"media-library":return`/media-libraries/${s}`;case"dashboard":return`/dashboards/${s}`;default:throw Error(`Unsupported resource type: ${r.toString()}`)}};function e4(e,t,r){let s=X(e.config());return e1(e,t,{method:"POST",uri:`/agent/action/generate/${s}`,body:r})}function e5(e,t,r){let s=X(e.config());return e1(e,t,{method:"POST",uri:`/agent/action/transform/${s}`,body:r})}function e8(e,t,r){let s=X(e.config());return e1(e,t,{method:"POST",uri:`/agent/action/translate/${s}`,body:r})}class e7{#e;#t;constructor(e,t){this.#e=e,this.#t=t}generate(e){return e4(this.#e,this.#t,e)}transform(e){return e5(this.#e,this.#t,e)}translate(e){return e8(this.#e,this.#t,e)}}class te{#e;#t;constructor(e,t){this.#e=e,this.#t=t}
13generate(e){return(0,c.lastValueFrom)(e4(this.#e,this.#t,e))}transform(e){return(0,c.lastValueFrom)(e5(this.#e,this.#t,e))}translate(e){return(0,c.lastValueFrom)(e8(this.#e,this.#t,e))}prompt(e){var t,r;let s;return(0,c.lastValueFrom)((t=this.#e,r=this.#t,s=X(t.config()),e1(t,r,{method:"POST",uri:`/agent/action/prompt/${s}`,body:e})))}patch(e){var t,r;let s;return(0,c.lastValueFrom)((t=this.#e,r=this.#t,s=X(t.config()),e1(t,r,{method:"POST",uri:`/agent/action/patch/${s}`,body:e})))}}class tt{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){return ts(this.#e,this.#t,e,t,r)}}class tr{#e;#t;constructor(e,t){this.#e=e,this.#t=t}upload(e,t,r){let s=ts(this.#e,this.#t,e,t,r);return(0,c.lastValueFrom)(s.pipe((0,E.filter)(e=>"response"===e.type),(0,v.map)(e=>e.body.document)))}}function ts(e,t,r,s,n={}){var i,o;if(-1===B.indexOf(r))throw Error(`Invalid asset type: ${r}. Must be one of ${B.join(", ")}`);let a=n.extract||void 0;a&&!a.length&&(a=["none"]);let u=e.config(),l=(i=n,o=s,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===i.preserveFilename?void 0:o.name,contentType:o.type},i):i),{tag:c,label:h,title:d,description:p,creditLine:f,filename:g,source:m}=l,y=u.resource?.type==="media-library",b=y?{title:d,filename:g}:{label:h,title:d,description:p,filename:g,meta:a,creditLine:f};return m&&!y&&(b.sourceId=m.id,b.sourceName=m.name,b.sourceUrl=m.url),e0(e,t,{tag:c,method:"POST",timeout:l.timeout||0,uri:function(e,t){let r="image"===t?"images":"files",s=e.resource;if(s){let{type:e,id:t}=s;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 n=X(e);return`assets/${r}/${n}`}(u,r),headers:l.contentType?{"Content-Type":l.contentType}:{},query:b,body:s})}let tn=(0,i.defer)(()=>e.A(407500)).pipe((0,v.map)(({default:e})=>e),(0,h.shareReplay)(1)),ti=new Set([408,429]);function to(){return function(e){return e.pipe((0,d.catchError)((e,t)=>e instanceof em&&("number"!=typeof e.status||e.status<400||e.status>=500||ti.has(e.status))?(0,p.concat)((0,a.of)({type:"reconnect"}),(0,f.timer)(1e3).pipe((0,u.mergeMap)(()=>t))):(0,g.throwError)(()=>e)))}}let ta=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","enableResume","tag"],tu={includeResult:!0};function tl(e,t,r={}){let{url:s,token:n,withCredentials:i,requestTagPrefix:o,headers:u}=this.config(),l=r.tag&&o?[o,r.tag].join("."):r.tag,c={...Object.keys(tu).concat(Object.keys(r)).reduce((e,t)=>(e[t]=typeof r[t]>"u"?tu[t]:r[t],e),{}),tag:l},h=eA({query:e,params:t,options:{tag:l,...ta.reduce((e,t)=>(typeof c[t]>"u"||(e[t]=c[t]),e),{})}}),d=`${s}${e3(this,"listen",h)}`;if(d.length>14800)return(0,g.throwError)(()=>Error("Query too large for listener"));let p=c.events?c.events:["mutation"],f={};return i&&(f.withCredentials=!0),(n||u)&&(f.headers={},n&&(f.headers.Authorization=`Bearer ${n}`),u&&Object.assign(f.headers,u)),eq(()=>(typeof EventSource>"u"||f.headers?tn:(0,a.of)(EventSource)).pipe((0,v.map)(e=>new e(d,f))),p).pipe(to(),(0,E.filter)(e=>p.includes(e.type)),(0,v.map)(e=>({type:e.type,..."data"in e?e.data:{}})))}let tc="2021-03-25";class th{#e;constructor(e){this.#e=e}events({includeDrafts:e=!1,tag:t,waitFor:r}={}){var s,i,o,l,c;let{projectId:h,apiVersion:p,token:f,withCredentials:C,requestTagPrefix:q,headers:R}=this.#e.config(),E=p.replace(/^v/,"");if("X"!==E&&E<tc)throw Error(`The live events API requires API version ${tc} or later. The current API version is ${E}. Please update your API version to use this feature.`);if(e&&!f&&!C)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 $=e3(this.#e,"live/events"),I=new URL(this.#e.getUrl($,!1)),F=t&&q?[q,t].join("."):t;F&&I.searchParams.set("tag",F),e&&I.searchParams.set("includeDrafts","true"),r&&I.searchParams.set("waitFor",r);let j={};e&&C&&(j.withCredentials=!0),(e&&f||R)&&(j.headers={},e&&f&&(j.headers.Authorization=`Bearer ${f}`),R&&Object.assign(j.headers,R));let T=`${I.href}::${JSON.stringify(j)}`,O=td.get(T);if(O)return O;let x=eq(()=>(typeof EventSource>"u"||j.headers?tn:(0,a.of)(EventSource)).pipe((0,v.map)(e=>new e(I.href,j))),["message","restart","welcome","reconnect","goaway"]),A=(i=new URL(this.#e.getUrl("/check/cors",!1)),o=h,l=!0===j.withCredentials,new n.Observable(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(l&&t?.result?.withCredentials===!1)return void e.error(new 
13U({projectId:o,credentials:!0}));if(t?.result?.allowed===!1)return void e.error(new U({projectId:o,credentials:l}));e.next(),e.complete()}}).catch(()=>{r.aborted||e.closed||(e.next(),e.complete())}),()=>t.abort()})),S=x.pipe(to(),(0,u.mergeMap)(e=>"reconnect"===e.type?A.pipe((0,u.mergeMap)(()=>(0,a.of)(e))):(0,a.of)(e)),(0,d.catchError)(e=>e instanceof U?(0,g.throwError)(()=>e):A.pipe((0,u.mergeMap)(()=>{throw e}))),(0,v.map)(e=>{if("message"===e.type){let{data:t,...r}=e;return{...r,tags:t.tags}}return e})).pipe((0,y.finalize)(()=>td.delete(T)),(c="function"==typeof(s={predicate:e=>"welcome"===e.type})?{predicate:s,...void 0}:s,e=>{let t,r=!1,{predicate:s,...i}=c,o=e.pipe((0,m.tap)(e=>{c.predicate(e)&&(r=!0,t=e)}),(0,y.finalize)(()=>{r=!1,t=void 0}),(0,b.share)(i)),a=new n.Observable(e=>{r&&e.next(t),e.complete()});return(0,w.merge)(o,a)}));return td.set(T,S),S}}let td=new Map;class tp{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return tm(this.#e,this.#t,"PUT",e,t)}edit(e,t){return tm(this.#e,this.#t,"PATCH",e,t)}delete(e){return tm(this.#e,this.#t,"DELETE",e)}list(){et("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),e1(this.#e,this.#t,{uri:r,tag:null})}getEmbeddingsSettings(e){return et("dataset",this.#e.config()),W(e),e1(this.#e,this.#t,{uri:tg(this.#e,e),tag:null})}editEmbeddingsSettings(e,t){return et("dataset",this.#e.config()),W(e),e1(this.#e,this.#t,{method:"PUT",uri:tg(this.#e,e),body:t,tag:null})}}class tf{#e;#t;constructor(e,t){this.#e=e,this.#t=t}create(e,t){return et("dataset",this.#e.config()),(0,c.lastValueFrom)(tm(this.#e,this.#t,"PUT",e,t))}edit(e,t){return et("dataset",this.#e.config()),(0,c.lastValueFrom)(tm(this.#e,this.#t,"PATCH",e,t))}delete(e){return et("dataset",this.#e.config()),(0,c.lastValueFrom)(tm(this.#e,this.#t,"DELETE",e))}list(){et("dataset",this.#e.config());let e=this.#e.config(),t=e.projectId,r="/datasets";return!1===e.useProjectHostname&&(r=`/projects/${t}/datasets`),(0,c.lastValueFrom)(e1(this.#e,this.#t,{uri:r,tag:null}))}getEmbeddingsSettings(e){return et("dataset",this.#e.config()),W(e),(0,c.lastValueFrom)(e1(this.#e,this.#t,{uri:tg(this.#e,e),tag:null}))}editEmbeddingsSettings(e,t){return et("dataset",this.#e.config()),W(e),(0,c.lastValueFrom)(e1(this.#e,this.#t,{method:"PUT",uri:tg(this.#e,e),body:t,tag:null}))}}function tg(e,t){let r=e.config();return!1===r.useProjectHostname?`/projects/${r.projectId}/datasets/${t}/settings/embeddings`:`/datasets/${t}/settings/embeddings`}function tm(e,t,r,s,n){return et("dataset",e.config()),W(s),e1(e,t,{method:r,uri:`/datasets/${s}`,body:n,tag:null})}class ty{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}){var r,s;let n=this.#e.config(),i=(n.resource||n["~experimental_resource"])?.id,{instanceId:o,libraryId:a}=function(e){let t="object"==typeof e&&"_ref"in e?e._ref:e,r=tw.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||i;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 l=(r=o,s=u,`/media-libraries/${s}/video/${r}/playback-info`),c=function(e){let t={};if(e.transformations){let{thumbnail:r,animated:s,storyboard:n}=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)),s&&(s.width&&(t.animatedWidth=s.width),s.height&&(t.animatedHeight=s.height),void 0!==s.start&&(t.animatedStart=s.start),void 0!==s.end&&(t.animatedEnd=s.end),s.fps&&(t.animatedFps=s.fps),s.format&&(t.animatedFormat=s.format)),n&&n.format&&(t.storyboardFormat=n.format)}return e.expiration&&(t.expiration=e.expiration),t}(t);return e1(this.#e,this.#t,{method:"GET",uri:l,query:c})}}class tb{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getPlaybackInfo(e,t={}
13){return(0,c.lastValueFrom)(new ty(this.#e.observable,this.#t).getPlaybackInfo(e,t))}}let tw=/^media-library:(ml[^:]+):([^:]+)$/;class tv{#e;#t;constructor(e,t){this.#e=e,this.#t=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"),e1(this.#e,this.#t,{uri:"/projects",query:t})}getById(e){return e1(this.#e,this.#t,{uri:`/projects/${e}`})}}class tC{#e;#t;constructor(e,t){this.#e=e,this.#t=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"),(0,c.lastValueFrom)(e1(this.#e,this.#t,{uri:"/projects",query:t}))}getById(e){return(0,c.lastValueFrom)(e1(this.#e,this.#t,{uri:`/projects/${e}`}))}}let tq=((e,t=21)=>{var r;let s,n;return r=t,n=-~(1.6*(s=(2<<Math.log(e.length-1)/Math.LN2)-1)*r/e.length),(t=r)=>{if(t<=0)return"";let i="";for(;;){let r=O(n),o=0|n;for(;o--;)if((i+=e[r[o]&s]||"").length===t)return i}}})("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),tR=(e,t)=>t?(0,T.getVersionId)(e,t):(0,T.getDraftId)(e);function tE(e,{releaseId:t,publishedId:r,document:s}){if(r&&s._id){let e=tR(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,s),e}if(s._id){let r=(0,T.isDraftId)(s._id),n=(0,T.isVersionId)(s._id);if(!r&&!n)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 (\`${s._id}\`) that is a draft ID, but a release ID (\`${t}\`) was also provided.`);let n=(0,T.getVersionFromId)(s._id);if(n!==t)throw Error(`\`${e}()\` was called with a document ID (\`${s._id}\`) that is a version ID, but the release ID (\`${t}\`) does not match the document's version ID (\`${n}\`).`)}return s._id}if(r)return tR(r,t);throw Error(`\`${e}()\` requires either a publishedId or a document with an \`_id\``)}let t$=(e,t)=>{let[r,s,n]=((e,t)=>{if("object"==typeof e&&null!==e&&("releaseId"in e||"metadata"in e)){let{releaseId:r=tq(),metadata:s={}}=e;return[r,s,t]}return[tq(),{},e]})(e,t);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...s,releaseType:s.releaseType||"undecided"}},options:n}};class tI{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return eD(this.#e,this.#t,`_.releases.${e}`,t)}create(e,t){let{action:r,options:s}=t$(e,t),{releaseId:n,metadata:i}=r;return eQ(this.#e,this.#t,r,s).pipe((0,v.map)(e=>({...e,releaseId:n,metadata:i})))}edit({releaseId:e,patch:t},r){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r)}publish({releaseId:e},t){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t)}archive({releaseId:e},t){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t)}unarchive({releaseId:e},t){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t)}schedule({releaseId:e,publishAt:t},r){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r)}unschedule({releaseId:e},t){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t)}delete({releaseId:e},t){return eQ(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t)}fetchDocuments({releaseId:e},t){return ek(this.#e,this.#t,e,t)}}class tF{#e;#t;constructor(e,t){this.#e=e,this.#t=t}get({releaseId:e},t){return(0,c.lastValueFrom)(eD(this.#e,this.#t,`_.releases.${e}`,t))}async create(e,t){let{action:r,options:s}=t$(e,t),{releaseId:n,metadata:i}=r;return{...await (0,c.lastValueFrom)(eQ(this.#e,this.#t,r,s)),releaseId:n,metadata:i}}edit({releaseId:e,patch:t},r){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.edit",releaseId:e,patch:t},r))}publish({releaseId:e}
13,t){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.publish",releaseId:e},t))}archive({releaseId:e},t){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.archive",releaseId:e},t))}unarchive({releaseId:e},t){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.unarchive",releaseId:e},t))}schedule({releaseId:e,publishAt:t},r){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.schedule",releaseId:e,publishAt:t},r))}unschedule({releaseId:e},t){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.unschedule",releaseId:e},t))}delete({releaseId:e},t){return(0,c.lastValueFrom)(eQ(this.#e,this.#t,{actionType:"sanity.action.release.delete",releaseId:e},t))}fetchDocuments({releaseId:e},t){return(0,c.lastValueFrom)(ek(this.#e,this.#t,e,t))}}class tj{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return e1(this.#e,this.#t,{uri:`/users/${e}`})}}class tT{#e;#t;constructor(e,t){this.#e=e,this.#t=t}getById(e){return(0,c.lastValueFrom)(e1(this.#e,this.#t,{uri:`/users/${e}`}))}}class tO{assets;datasets;live;mediaLibrary;projects;users;agent;releases;#r;#s;#t;listen=tl;constructor(e,t=ed){this.config(t),this.#s=e;const r=t._requestHandler;this.#t=r?(()=>{let s;return(n,i)=>(s||(s=new tx(e,{...t,_requestHandler:void 0})),r(n,t=>e(t,i),s))})():e,this.assets=new tt(this,this.#t),this.datasets=new tp(this,this.#t),this.live=new th(this),this.mediaLibrary={video:new ty(this,this.#t)},this.projects=new tv(this,this.#t),this.users=new tj(this,this.#t),this.agent={action:new e7(this,this.#t)},this.releases=new tI(this,this.#t)}clone(){return new tO(this.#s,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.#r=eg(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tO(this.#s,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}fetch(e,t,r){return eP(this,this.#t,this.#r.stega,e,t,r)}getDocument(e,t){if(t?.includeAllVersions===!0)return eD(this,this.#t,e,{...t,includeAllVersions:!0});let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return eD(this,this.#t,e,r)}getDocuments(e,t){return e_(this,this.#t,e,t)}documentsExists(e,t){return eM(this,this.#t,e,t)}create(e,t){return eK(this,this.#t,e,"create",t)}createIfNotExists(e,t){return eU(this,this.#t,e,t)}createOrReplace(e,t){return eL(this,this.#t,e,t)}createVersion({document:e,publishedId:t,releaseId:r,baseId:s,ifBaseRevisionId:n},i){if(!e)return eH(this,this.#t,t,s,r,n,i);let o=tE("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,T.getPublishedId)(e._id);return eN(this,this.#t,a,u,i)}delete(e,t){return ez(this,this.#t,e,t)}discardVersion({releaseId:e,publishedId:t},r,s){let n=tR(t,e);return eB(this,this.#t,n,r,s)}replaceVersion({document:e,publishedId:t,releaseId:r},s){let n=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),i={...e,_id:n};return eG(this,this.#t,i,s)}unpublishVersion({releaseId:e,publishedId:t},r){let s=(0,T.getVersionId)(t,e);return eW(this,this.#t,s,t,r)}mutate(e,t){return eJ(this,this.#t,e,t)}patch(e,t){return new eI(e,t,this)}transaction(e){return new ex(e,this)}action(e,t){return eQ(this,this.#t,e,t)}request(e){return e1(this,this.#t,e)}getUrl(e,t){return e6(this,e,t)}getDataUrl(e,t){return e3(this,e,t)}}class tx{assets;datasets;live;mediaLibrary;projects;users;agent;releases;observable;#r;#s;#t;listen=tl;constructor(e,t=ed){this.config(t),this.#s=e;const r=t._requestHandler;this.#t=r?(()=>{let s;return(n,i)=>(s||(s=new tx(e,{...t,_requestHandler:void 0})),r(n,t=>e(t,i),s))})():e,this.assets=new tr(this,this.#t),this.datasets=new tf(this,this.#t),this.live=new th(this),this.mediaLibrary={video:new tb(this,this.#t)},this.projects=new tC(this,this.#t),this.users=new tT(this,this.#t),this.agent={action:new te(this,this.#t)},this.releases=new tF(this,this.#t),this.observable=new tO(e,t)}clone(){return new tx(this.#s,this.config())}config(e){if(void 0===e)return{...this.#r};if(this.#r&&!1===this.#r.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.#r=eg(e,this.#r||{}),this}withConfig(e){let t=this.config();return new tx(this.#s,{...t,...e,stega:{...t.stega||{},..."boolean"==typeof e?.stega?{enabled:e.stega}:e?.stega||{}}})}
13fetch(e,t,r){return(0,c.lastValueFrom)(eP(this,this.#t,this.#r.stega,e,t,r))}getDocument(e,t){if(t?.includeAllVersions===!0)return(0,c.lastValueFrom)(eD(this,this.#t,e,{...t,includeAllVersions:!0}));let r={signal:t?.signal,tag:t?.tag,releaseId:t?.releaseId,...t&&"includeAllVersions"in t?{includeAllVersions:!1}:{}};return(0,c.lastValueFrom)(eD(this,this.#t,e,r))}getDocuments(e,t){return(0,c.lastValueFrom)(e_(this,this.#t,e,t))}documentsExists(e,t){return(0,c.lastValueFrom)(eM(this,this.#t,e,t))}create(e,t){return(0,c.lastValueFrom)(eK(this,this.#t,e,"create",t))}createIfNotExists(e,t){return(0,c.lastValueFrom)(eU(this,this.#t,e,t))}createOrReplace(e,t){return(0,c.lastValueFrom)(eL(this,this.#t,e,t))}createVersion({document:e,publishedId:t,releaseId:r,baseId:s,ifBaseRevisionId:n},i){if(!e)return(0,C.firstValueFrom)(eH(this,this.#t,t,s,r,n,i));let o=tE("createVersion",{document:e,publishedId:t,releaseId:r}),a={...e,_id:o},u=t||(0,T.getPublishedId)(e._id);return(0,C.firstValueFrom)(eN(this,this.#t,a,u,i))}delete(e,t){return(0,c.lastValueFrom)(ez(this,this.#t,e,t))}discardVersion({releaseId:e,publishedId:t},r,s){let n=tR(t,e);return(0,c.lastValueFrom)(eB(this,this.#t,n,r,s))}replaceVersion({document:e,publishedId:t,releaseId:r},s){let n=tE("replaceVersion",{document:e,publishedId:t,releaseId:r}),i={...e,_id:n};return(0,C.firstValueFrom)(eG(this,this.#t,i,s))}unpublishVersion({releaseId:e,publishedId:t},r){let s=(0,T.getVersionId)(t,e);return(0,c.lastValueFrom)(eW(this,this.#t,s,t,r))}mutate(e,t){return(0,c.lastValueFrom)(eJ(this,this.#t,e,t))}patch(e,t){return new eF(e,t,this)}transaction(e){return new eO(e,this)}action(e,t){return(0,c.lastValueFrom)(eQ(this,this.#t,e,t))}request(e){return(0,c.lastValueFrom)(e1(this,this.#t,e))}dataRequest(e,t,r){return(0,c.lastValueFrom)(eY(this,this.#t,e,t,r))}getUrl(e,t){return e6(this,e,t)}getDataUrl(e,t){return e3(this,e,t)}}let tA={requester:N(t=[]),createClient:e=>{let r=N(t,{ignoreWarnings:e.ignoreWarnings});return new tx((t,s)=>(s||r)({maxRedirects:0,maxRetries:e.maxRetries,retryDelay:e.retryDelay,lineage:e.lineage,...t}),e)}},tS=(tA.requester,tA.createClient);e.s(["ClientError",0,S,"ConnectionFailedError",0,em,"CorsOriginError",0,U,"DisconnectError",0,ey,"createClient",0,tS,"validateApiPerspective",0,ef],945736)},271011,708228,545146,524888,e=>{"use strict";let t=!(typeof navigator>"u")&&"ReactNative"===navigator.product,r={timeout:t?6e4:12e4},s=function(e){let s={...r,..."string"==typeof e?{url:e}:e};if(s.timeout=function e(t){if(!1===t||0===t)return!1;if(t.connect||t.socket)return t;let s=Number(t);return isNaN(s)?e(r.timeout):{connect:s,socket:s}}(s.timeout),s.query){let{url:e,searchParams:r}=function(e){let r=e.indexOf("?");if(-1===r)return{url:e,searchParams:new URLSearchParams};let s=e.slice(0,r),i=e.slice(r+1);if(!t)return{url:s,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(n(t),n(r||""))}return{url:s,searchParams:o}}(s.url);for(let[t,n]of Object.entries(s.query)){if(void 0!==n)if(Array.isArray(n))for(let e of n)r.append(t,e);else r.append(t,n);let i=r.toString();i&&(s.url=`${e}?${i}`)}}return s.method=s.body&&!s.method?"POST":(s.method||"GET").toUpperCase(),s};function n(e){return decodeURIComponent(e.replace(/\+/g," "))}let i=/^https?:\/\//i,o=function(e){if(!i.test(e.url))throw Error(`"${e.url}" is not a valid URL`)},a=["request","response","progress","error","abort"],u=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var l,c,h,d=(l=function(){if(h)return c;h=1;var e=function(e){return e.replace(/^\s+|\s+$/g,"")};return c=function(t){if(!t)return{};for(var r=Object.create(null),s=e(t).split("\n"),n=0;n<s.length;n++){var i,o=s[n],a=o.indexOf(":"),u=e(o.slice(0,a)).toLowerCase(),l=e(o.slice(a+1));typeof r[u]>"u"?r[u]=l:(i=r[u],"[object Array]"===Object.prototype.toString.call(i))?r[u].push(l):r[u]=[r[u],l]}return r}}
13())&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l;class p{onabort;onerror;onreadystatechange;ontimeout;readyState=0;response;responseText="";responseType="";status;statusText;withCredentials;#n;#i;#o;#a={};#u;#l={};#c;open(e,t,r){this.#n=e,this.#i=t,this.#o="",this.readyState=1,this.onreadystatechange?.(),this.#u=void 0}abort(){this.#u&&this.#u.abort()}getAllResponseHeaders(){return this.#o}setRequestHeader(e,t){this.#a[e]=t}setInit(e,t=!0){this.#l=e,this.#c=t}send(e){let t="arraybuffer"!==this.responseType,r={...this.#l,method:this.#n,headers:this.#a,body:e};"function"==typeof AbortController&&this.#c&&(this.#u=new AbortController,"u">typeof EventTarget&&this.#u.signal instanceof EventTarget&&(r.signal=this.#u.signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(this.#i,r).then(e=>(e.headers.forEach((e,t)=>{this.#o+=`${t}: ${e}\r
14`}),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 f="function"==typeof XMLHttpRequest?"xhr":"fetch",g="xhr"===f?XMLHttpRequest:p,m=(e,t)=>{let r=e.options,s=e.applyMiddleware("finalizeOptions",r),n={},i=e.applyMiddleware("interceptRequest",void 0,{adapter:f,context:e});if(i){let e=setTimeout(t,0,null,i);return{abort:()=>clearTimeout(e)}}let o=new g;o instanceof p&&"object"==typeof s.fetch&&o.setInit(s.fetch,s.useAbortSignal??!0);let a=s.headers,u=s.timeout,l=!1,c=!1,h=!1;if(o.onerror=e=>{b(o instanceof p?e instanceof Error?e:Error(`Request error while attempting to reach ${s.url}`,{cause:e}):Error(`Request error while attempting to reach is ${s.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.ontimeout=e=>{b(Error(`Request timeout while attempting to reach ${s.url}${e.lengthComputable?`(${e.loaded} of ${e.total} bytes transferred)`:""}`))},o.onabort=()=>{y(!0),l=!0},o.onreadystatechange=function(){u&&(y(),n.socket=setTimeout(()=>m("ESOCKETTIMEDOUT"),u.socket)),!l&&o&&4===o.readyState&&0!==o.status&&function(){if(!(l||c||h)){if(0===o.status)return b(Error("Unknown XHR error"));y(),c=!0,t(null,{body:o.response||(""===o.responseType||"text"===o.responseType?o.responseText:""),url:s.url,method:s.method,headers:d(o.getAllResponseHeaders()),statusCode:o.status,statusMessage:o.statusText})}}()},o.open(s.method,s.url,!0),o.withCredentials=!!s.withCredentials,a&&o.setRequestHeader)for(let e in a)a.hasOwnProperty(e)&&o.setRequestHeader(e,a[e]);return s.rawBody&&(o.responseType="arraybuffer"),e.applyMiddleware("onRequest",{options:s,adapter:f,request:o,context:e}),o.send(s.body||null),u&&(n.connect=setTimeout(()=>m("ETIMEDOUT"),u.connect)),{abort:function(){l=!0,o&&o.abort()}};function m(t){h=!0,o.abort();let r=Error("ESOCKETTIMEDOUT"===t?`Socket timed out on request to ${s.url}`:`Connection timed out on request to ${s.url}`);r.code=t,e.channels.error.publish(r)}function y(e){(e||l||o&&o.readyState>=2&&n.connect)&&clearTimeout(n.connect),n.socket&&clearTimeout(n.socket)}function b(e){if(c)return;y(!0),c=!0,o=null;let r=e||Error(`Network error while attempting to reach ${s.url}`);r.isNetworkError=!0,r.request=s,t(r)}};e.s(["adapter",0,f,"environment",0,"browser","getIt",0,(e=[],t=m)=>(function e(t,r){let n=[],i=u.reduce((e,t)=>(e[t]=e[t]||[],e),{processOptions:[s],validateOptions:[o]});function l(e){let t,s="object"==typeof e&&e.callSiteStack?e.callSiteStack:void 0,n=s?void 0:Error(),o=a.reduce((e,t)=>{let r,s;return e[t]=(r=Object.create(null),s=0,{publish:function(e){for(let t in r)r[t](e)},subscribe:function(e){let t=s++;return r[t]=e,function(){delete r[t]}}}),e},{}),u=function(e,t,...r){let s="onError"===e,n=t;for(let t=0;t<i[e].length&&(n=(0,i[e][t])(n,...r),!s||n);t++);return n},l=u("processOptions",e);u("validateOptions",l);let c={options:l,channels:o,applyMiddleware:u},h=o.request.subscribe(e=>{t=r(e,(t,r)=>((e,t,r)=>{let i=e,a=t;if(!i)try{a=u("onResponse",t,r)}catch(e){a=null,i=e}if(i=i&&u("onError",i,r)){if(i instanceof Error){let e=s?.stack||n?.stack;if("string"==typeof e){let t=e.split("\n").slice(s?1:2);t.length>0&&(i.stack+="\n"+t.join("\n"))}}o.error.publish(i)}else a&&o.response.publish(a)})(t,r,e))});o.abort.subscribe(()=>{h(),t&&t.abort()});let d=u("onReturn",o,c);return d===o&&o.request.publish(c),d}return l.use=function(e){if(!e)throw Error("Tried to add middleware that resolved to fal
14sey 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 u.forEach(t=>{e[t]&&i[t].push(e[t])}),n.push(e),l},l.clone=()=>e(n,r),t.forEach(l.use),l})(e,t)],271011);var y,b,w,v,C,q=e.i(247167),R=e.i(467034),E={exports:{}};C||(C=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 s=0,n=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(s++,"%c"===e&&(n=s))}),t.splice(n,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 q.default&&"env"in q.default&&(e=q.default.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=(v?w:(v=1,w=function(e){function t(e){let s,n,i,o=null;function a(...e){if(!a.enabled)return;let r=Number(new Date);a.diff=r-(s||r),a.prev=s,a.curr=r,s=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let n=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,s)=>{if("%%"===r)return"%";n++;let i=t.formatters[s];if("function"==typeof i){let t=e[n];r=i.call(a,t),e.splice(n,1),n--}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!==o?o:(n!==t.namespaces&&(n=t.namespaces,i=t.enabled(e)),i),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function r(e,r){let s=t(this.namespace+(typeof r>"u"?":":r)+e);return s.log=this.log,s}function s(e,t){let r=0,s=0,n=-1,i=0;for(;r<e.length;)if(s<t.length&&(t[s]===e[r]||"*"===t[s]))"*"===t[s]?(n=s,i=r):r++,s++;else{if(-1===n)return!1;s=n+1,r=++i}for(;s<t.length&&"*"===t[s];)s++;return s===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(
14Boolean)))"-"===r[0]?t.skips.push(r.slice(1)):t.names.push(r)},t.enabled=function(e){for(let r of t.skips)if(s(e,r))return!1;for(let r of t.names)if(s(e,r))return!0;return!1},t.humanize=function(){if(b)return y;b=1;function e(e,t,r,s){return Math.round(e/r)+" "+s+(t>=1.5*r?"s":"")}return y=function(t,r){r=r||{};var s,n,i=typeof t;if("string"===i&&t.length>0){var o=t;if(!((o=String(o)).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(o);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"===i&&isFinite(t))return r.long?(n=Math.abs(t))>=864e5?e(t,n,864e5,"day"):n>=36e5?e(t,n,36e5,"hour"):n>=6e4?e(t,n,6e4,"minute"):n>=1e3?e(t,n,1e3,"second"):t+" ms":(s=Math.abs(t))>=864e5?Math.round(t/864e5)+"d":s>=36e5?Math.round(t/36e5)+"h":s>=6e4?Math.round(t/6e4)+"m":s>=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:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(E,E.exports)),E.exports,Object.prototype.hasOwnProperty;let $=typeof R.Buffer>"u"?()=>!1:e=>R.Buffer.isBuffer(e);function I(e){return"[object Object]"===Object.prototype.toString.call(e)}let F=["boolean","string","number"];var j="u">typeof globalThis?globalThis:"u">typeof window?window:e.g;let T=(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,s)=>new t((t,n)=>{let i=s.options.cancelToken;i&&i.promise.then(e=>{r.abort.publish(e),n(e)}),r.error.subscribe(n),r.response.subscribe(r=>{t(e.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(s)}catch(e){n(e)}},0)})}};class O{__CANCEL__=!0;message;constructor(e){this.message=e}toString(){return"Cancel"+(this.message?`: ${this.message}`:"")}}T.Cancel=O,T.CancelToken=class e{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 O(e),t(this.reason))})}static source=()=>{let t;return{token:new e(e=>{t=e}),cancel:t}}},T.isCancel=e=>!(!e||!e?.__CANCEL__);var x=(e,t,r)=>("GET"===r.method||"HEAD"===r.method)&&(e.isNetworkError||!1);function A(e){return 100*Math.pow(2,e)+100*Math.random()}let S=(e={})=>{var t;let r,s,n;return r=(t={shouldRetry:x,...e}).maxRetries||5,s=t.retryDelay||A,n=t.shouldRetry,{onError:(e,t)=>{var i;let o=t.options,a=o.maxRetries||r,u=o.retryDelay||s,l=o.shouldRetry||n,c=o.attemptNumber||0;if(null!==(i=o.body)&&"object"==typeof i&&"function"==typeof i.pipe||!l(e,c,o)||c>=a)return e;let h=Object.assign({},t,{options:Object.assign({},o,{attemptNumber:c+1})});return setTimeout(()=>t.channels.request.publish(h),u(c)),null}}};S.shouldRetry=x,e.s(["jsonRequest",0,function(){return{processOptions:e=>{let t=e.body;return!t||"function"==typeof t.pipe||$(t)||-1===F.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"})})}}},"jsonResponse",0,function(e){return{onResponse:t=>{let r=t.headers["content-type"]||"",s=e&&e.force||-1!==r.indexOf("application/json");return t.body&&r&&s?Object.assign({},t,{body:function(e){try{return JSON.parse(e)}catch(e){throw e.message=`Failed to parsed response body as JSON: ${e.message}`,e}}(t.body)}):t},processOptions:e=>Object.assign({},e,{headers:Object.assign({Accept:"application/json"},e.headers)})}},"observable",0,function(e={}){let t=e.implementation||j.Observable;if(!t)throw Error("`Observable` is not available in global scope, and n
14o 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()))}},"progress",0,function(){return{onRequest:e=>{if("xhr"!==e.adapter)return;let t=e.request,r=e.context;function s(e){return t=>{let s=t.lengthComputable?t.loaded/t.total*100:-1;r.channels.progress.publish({stage:e,percent:s,total:t.total,loaded:t.loaded,lengthComputable:t.lengthComputable})}}"upload"in t&&"onprogress"in t.upload&&(t.upload.onprogress=s("upload")),"onprogress"in t&&(t.onprogress=s("download"))}}},"retry",0,S],708228);var V=e.i(290571),P=e.i(630330),D=e.i(902965),_=Array.isArray;function M(e){return 1===e.length&&_(e[0])?e[0]:e}e.s(["argsOrArgArray",0,M],545146);var k=e.i(272383),U=e.i(282541),L=e.i(673649);function N(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=(0,L.popResultSelector)(e);return r?(0,U.pipe)(N.apply(void 0,(0,V.__spreadArray)([],(0,V.__read)(e))),(0,k.mapOneOrManyArgs)(r)):(0,D.operate)(function(t,r){(0,P.combineLatestInit)((0,V.__spreadArray)([t],(0,V.__read)(M(e))))(r)})}e.s(["combineLatestWith",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N.apply(void 0,(0,V.__spreadArray)([],(0,V.__read)(e)))}],524888)},314052,e=>{"use strict";var t=e.i(627608);e.s(["scanInternals",0,function(e,r,s,n,i){return function(o,a){var u=s,l=r,c=0;o.subscribe((0,t.createOperatorSubscriber)(a,function(t){var r=c++;l=u?e(l,t,r):(u=!0,t),n&&a.next(l)},i&&function(){u&&a.next(l),a.complete()}))}}])}]);

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.