vendor: 11,867 bytes, lines 1-2
1var Lt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function yc(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}function hs(e,t){return function(){return e.apply(t,arguments)}}const{toString:hc}=Object.prototype,{getPrototypeOf:Pt}=Object,{iterator:Yt,toStringTag:ms}=Symbol,Rr=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),zt=(e,t)=>{let r=e;const n=[];for(;r!=null&&r!==Object.prototype;){if(n.indexOf(r)!==-1)return!1;if(n.push(r),Rr(r,t))return!0;r=Pt(r)}return!1},mc=(e,t)=>e!=null&&zt(e,t)?e[t]:void 0,Uo=(e=>t=>{const r=hc.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),qe=e=>(e=e.toLowerCase(),t=>Uo(t)===e),Cr=e=>t=>typeof t===e,{isArray:Et}=Array,Ot=Cr("undefined");function Ct(e){return e!==null&&!Ot(e)&&e.constructor!==null&&!Ot(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const gs=qe("ArrayBuffer");function gc(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&gs(e.buffer),t}const vc=Cr("string"),De=Cr("function"),vs=Cr("number"),It=e=>e!==null&&typeof e=="object",bc=e=>e===!0||e===!1,br=e=>{if(!It(e))return!1;const t=Pt(e);return(t===null||t===Object.prototype||Pt(t)===null)&&!zt(e,ms)&&!zt(e,Yt)},Ec=e=>{if(!It(e)||Ct(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Oc=qe("Date"),Sc=qe("File"),wc=e=>!!(e&&typeof e.uri<"u"),_c=e=>e&&typeof e.getParts<"u",Ac=qe("Blob"),Rc=qe("FileList"),Tc=qe("Set"),Lc=e=>It(e)&&De(e.pipe);function Pc(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const li=Pc(),fi=typeof li.FormData<"u"?li.FormData:void 0,Cc=e=>{if(!e)return!1;if(fi&&e instanceof fi)return!0;const t=Pt(e);if(!t||t===Object.prototype||!De(e.append))return!1;const r=Uo(e);return r==="formdata"||r==="object"&&De(e.toString)&&e.toString()==="[object FormData]"},Ic=qe("URLSearchParams"),[Dc,Nc,xc,jc]=["ReadableStream","Request","Response","Headers"].map(qe),Bc=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Jt(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,o;if(typeof e!="object"&&(e=[e]),Et(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{if(Ct(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(n=0;n<s;n++)a=i[n],t.call(null,e[a],a,e)}}function bs(e,t){if(Ct(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,o;for(;n-- >0;)if(o=r[n],t===o.toLowerCase())return o;return null}const vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Es=e=>!Ot(e)&&e!==vt;function Po(...e){const{caseless:t,skipUndefined:r}=Es(this)&&this||{},n={},o=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=t&&typeof s=="string"&&bs(n,s)||s,c=Rr(n,a)?n[a]:void 0;br(c)&&br(i)?n[a]=Po(c,i):br(i)?n[a]=Po({},i):Et(i)?n[a]=i.slice():(!r||!Ot(i))&&(n[a]=i)};for(let i=0,s=e.length;i<s;i++){const a=e[i];if(!a||Ct(a)||(Jt(a,o),typeof a!="object"||Et(a)))continue;const c=Object.getOwnPropertySymbols(a);for(let p=0;p<c.length;p++){const u=c[p];Vc.call(a,u)&&o(a[u],u)}}return n}const Mc=(e,t,r,{allOwnKeys:n}={})=>(Jt(t,(o,i)=>{r&&De(o)?Object.defineProperty(e,i,{__proto__:null,value:hs(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),Uc=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),kc=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},$c=(e,t,r,n)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=r!==!1&&Pt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Fc=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},qc=e=>{if(!e)return null;if(Et(e))return e;let t=e.length;if(!vs(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Hc=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pt(Uint8Array)),Kc=(e,t)=>{const n=(e&&e[Yt]).call(e);let o;for(;(o=n.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Gc=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},zc=qe("HTMLFormElement"),Wc=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),{propertyIsEnumerable:Vc}=Object.prototype,Yc=qe("RegExp"),Os=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Jt(r,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(n[i]=s||o)}),Object.defineProperties(e,n)},Jc=e=>{Os(e,(t,r)=>{if(De(e)&&["arguments","caller","callee"].includes(r))return!1;const n=e[r];if(De(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Qc=(e,t)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return Et(e)?n(e):n(String(e).split(t)),r},Xc=()=>{},Zc=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function el(e){return!!(e&&De(e.append)&&e[ms]==="FormData"&&e[Yt])}const tl=e=>{const t=new WeakSet,r=n=>{if(It(n)){if(t.has(n))return;if(Ct(n))return n;if(!("toJSON"in n)){t.add(n);let o;if(Tc(n)){o=[];for(const i of n){const s=r(i);!Ot(s)&&o.push(s)}}else o=Et(n)?[]:{},Jt(n,(i,s)=>{const a=r(i);!Ot(a)&&(o[s]=a)});return t.delete(n),o}}return n};return r(e)},rl=qe("AsyncFunction"),nl=e=>e&&(It(e)||De(e))&&De(e.then)&&De(e.catch),Ss=((e,t)=>e?setImmediate:t?((r,n)=>(vt.addEventListener("message",({source:o,data:i})=>{o===vt&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),vt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",De(vt.postMessage)),ol=typeof queueMicrotask<"u"?queueMicrotask.bind(vt):typeof process<"u"&&process.nextTick||Ss,ws=e=>e!=null&&De(e[Yt]),il=e=>e!=null&&zt(e,Yt)&&ws(e),v={isArray:Et,isArrayBuffer:gs,isBuffer:Ct,isFormData:Cc,isArrayBufferView:gc,isString:vc,isNumber:vs,isBoolean:bc,isObject:It,isPlainObject:br,isEmptyObject:Ec,isReadableStream:Dc,isRequest:Nc,isResponse:xc,isHeaders:jc,isUndefined:Ot,isDate:Oc,isFile:Sc,isReactNativeBlob:wc,isReactNative:_c,isBlob:Ac,isRegExp:Yc,isFunction:De,isStream:Lc,isURLSearchParams:Ic,isTypedArray:Hc,isFileList:Rc,forEach:Jt,merge:Po,extend:Mc,trim:Bc,stripBOM:Uc,inherits:kc,toFlatObject:$c,kindOf:Uo,kindOfTest:qe,endsWith:Fc,toArray:qc,forEachEntry:Kc,matchAll:Gc,isHTMLForm:zc,hasOwnProperty:Rr,hasOwnProp:Rr,hasOwnInPrototypeChain:zt,getSafeProp:mc,reduceDescriptors:Os,freezeMethods:Jc,toObjectSet:Qc,toCamelCase:Wc,noop:Xc,toFiniteNumber:Zc,findKey:bs,global:vt,isContextDefined:Es,isSpecCompliantForm:el,toJSONObject:tl,isAsyncFn:rl,isThenable:nl,setImmediate:Ss,asap:ol,isIterable:ws,isSafeIterable:il},al=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sl=e=>{const t={};let r,n,o;return e&&e.split(` 2`).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim();const a=v.hasOwnProp(t,r);!r||a&&v.hasOwnProp(al,r)||(r==="set-cookie"?a?t[r].push(n):t[r]=[n]:t[r]=a?t[r]+", "+n:n)}),t};function ul(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}const cl=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),ll=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ko(e,t){return v.isArray(e)?e.map(r=>ko(r,t)):ul(String(e).replace(t,""))}const fl=e=>ko(e,cl),pl=e=>ko(e,ll);function _s(e){const t=Object.create(null);return v.forEach(e.toJSON(),(r,n)=>{t[n]=pl(r)}),t}const pi=Symbol("internals");function Ft(e){return e&&String(e).trim().toLowerCase()}function Er(e){return e===!1||e==null?e:v.isArray(e)?e.map(Er):fl(String(e))}function dl(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const yl=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;function Kr(e){let t=0,r=e.length;for(;t<r;){const n=e.charCodeAt(t);if(n!==9&&n!==32)break;t+=1}for(;r>t;){const n=e.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return t===0&&r===e.length?e:e.slice(t,r)}function hl(e){const t=e.length-1;if(t<1||e.charCodeAt(0)!==34||e.charCodeAt(t)!==34)return e;let r="";for(let n=1;n<t;n++){const o=e.charCodeAt(n);if(o===34||o===92&&(n+=1,n>=t))return e;r+=e[n]}return r}function ml(e){const t=Object.create(null),r=String(e);let n=0,o=!1,i=!1;function s(a){const c=Kr(r.slice(n,a)),p=c.indexOf("=");if(p<1)return;const u=Kr(c.slice(0,p));if(!yl.test(u))return;const l=u.toLowerCase();if(l==="__proto__"||l==="constructor"||l==="prototype")return;const O=Kr(c.slice(p+1));t[l]=hl(O)}for(let a=0;a<r.length;a++){const c=r.charCodeAt(a);o?i?i=!1:c===92?i=!0:c===34&&(o=!1):c===34?o=!0:(c===44||c===59)&&(s(a),n=a+1)}return s(r.length),t}const gl=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Gr(e,t,r,n,o){if(v.isFunction(n))return n.call(this,t,r);if(o&&(t=r),!!v.isString(t)){if(v.isString(n))return t.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(t)}}function vl(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function bl(e,t){const r=v.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{__proto__:null,value:function(o,i,s){return this[n].call(this,t,o,i,s)},configurable:!0})})}let Le=class{constructor(t){t&&this.set(t)}set(t,r,n){const o=this;function i(a,c,p){const u=Ft(c);if(!u)return;const l=v.findKey(o,u);(!l||o[l]===void 0||p===!0||p===void 0&&o[l]!==!1)&&(o[l||c]=Er(a))}const s=(a,c)=>v.forEach(a,(p,u)=>i(p,u,c));if(v.isPlainObject(t)||t instanceof this.constructor)s(t,r);else if(v.isString(t)&&(t=t.trim())&&!gl(t))s(sl(t),r);else if(v.isObject(t)&&v.isSafeIterable(t)){let a=Object.create(null),c,p;for(const u of t){if(!v.isArray(u))throw new TypeError("Object iterator must return a key-value pair");p=u[0],v.hasOwnProp(a,p)?(c=a[p],a[p]=v.isArray(c)?[...c,u[1]]:[c,u[1]]):a[p]=u[1]}s(a,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=Ft(t),t){const n=v.findKey(this,t);if(n){const o=this[n];if(!r)return o;if(r===!0)return dl(o);if(v.isFunction(r))return r.call(this,o,n);if(v.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Ft(t),t){const n=v.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Gr(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let o=!1;function i(s){if(s=Ft(s),s){const a=v.findKey(n,s);a&&(!r||Gr(n,n[a],a,r))&&(delete n[a],o=!0)}}return v.isArray(t)?t.forEach(i):i(t),o}clear(t){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!t||Gr(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const r=this,n={};return v.forEach(this,(o,i)=>{const s=v.findKey(n,i);
2if(s){r[s]=Er(o),delete r[i];return}const a=t?vl(i):String(i).trim();a!==i&&delete r[i],r[a]=Er(o),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return v.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=t&&v.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 3`)}getSetCookie(){const t=this.get("set-cookie");return v.isArray(t)?t:t==null||t===!1?[]:[t]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static parseParameters(t){return ml(t)}static concat(t,...r){const n=new this(t);return r.forEach(o=>n.set(o)),n}static accessor(t){const n=(this[pi]=this[pi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Ft(s);n[a]||(bl(o,s),n[a]=!0)}return v.isArray(t)?t.forEach(i):i(t),this}};Le.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(Le.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});v.freezeMethods(Le);const Tr="[REDACTED ****]";function El(e){if(v.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(v.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Ol(e,t){const r=new Set(t.map(i=>String(i).toLowerCase())),n=[],o=i=>{if(i===null||typeof i!="object"||v.isBuffer(i))return i;if(n.indexOf(i)!==-1)return;i instanceof Le&&(i=i.toJSON()),n.push(i);let s;if(v.isArray(i))s=[],i.forEach((a,c)=>{const p=o(a);v.isUndefined(p)||(s[c]=p)});else{if(!v.isPlainObject(i)&&El(i))return n.pop(),i;s=Object.create(null);for(const[a,c]of Object.entries(i)){const p=r.has(a.toLowerCase())?Tr:o(c);v.isUndefined(p)||(s[a]=p)}}return n.pop(),s};return o(e)}function di(e){try{return String(e)}catch{return""}}function Sl(e){return e.errors.map(r=>{try{return r&&r.message?di(r.message):di(r)}catch{return""}}).filter(Boolean).join("; ")||e.name||"AggregateError"}let q=class As extends Error{static from(t,r,n,o,i,s){let a=t.message;!a&&v.isArray(t.errors)&&t.errors.length&&(a=Sl(t));const c=new As(a,r||t.code,n,o,i);return Object.defineProperty(c,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),c.name=t.name,t.status!=null&&c.status==null&&(c.status=t.status),s&&Object.assign(c,s),c}constructor(t,r,n,o,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,r=t&&v.hasOwnProp(t,"redact")?t.redact:void 0,n=v.isArray(r)&&r.length>0?Ol(t,r):v.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};q.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";q.ERR_BAD_OPTION="ERR_BAD_OPTION";q.ECONNABORTED="ECONNABORTED";q.ETIMEDOUT="ETIMEDOUT";q.ECONNREFUSED="ECONNREFUSED";q.ERR_NETWORK="ERR_NETWORK";q.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";q.ERR_DEPRECATED="ERR_DEPRECATED";q.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";q.ERR_BAD_REQUEST="ERR_BAD_REQUEST";q.ERR_CANCELED="ERR_CANCELED";q.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";q.ERR_INVALID_URL="ERR_INVALID_URL";q.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const wl=null,Rs=100;function Co(e){return v.isPlainObject(e)||v.isArray(e)}function Ts(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function zr(e,t,r){return e?e.concat(t).map(function(o,i){return o=Ts(o),!r&&i?"["+o+"]":o}).join(r?".":""):t}function _l(e){return v.isArray(e)&&!e.some(Co)}const Al=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function Ir(e,t,r){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=v.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,g){return!v.isUndefined(g[E])});const n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,a=r.Blob||typeof Blob<"u"&&Blob,c=r.maxDepth===void 0?Rs:r.maxDepth,p=a&&v.isSpecCompliantForm(t),u=[];
vendor: 4,888 bytes, line 3
3if(!v.isFunction(o))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(v.isDate(f))return f.toISOString();if(v.isBoolean(f))return f.toString();if(!p&&v.isBlob(f))throw new q("Blob is not supported. Use a Buffer instead.");if(v.isArrayBuffer(f)||v.isTypedArray(f)){if(p&&typeof a=="function")return new a([f]);throw new q("Blob is not supported. Use a Buffer instead.",q.ERR_NOT_SUPPORT)}return f}function O(f){if(f>c)throw new q("Object is too deeply nested ("+f+" levels). Max depth: "+c,q.ERR_FORM_DATA_DEPTH_EXCEEDED)}function A(f,E){if(c===1/0)return JSON.stringify(f);const g=[];return JSON.stringify(f,function(C,I){if(!v.isObject(I))return I;for(;g.length&&g[g.length-1]!==this;)g.pop();return g.push(I),O(E+g.length-1),I})}function d(f,E,g){let N=f;if(v.isReactNative(t)&&v.isReactNativeBlob(f))return t.append(zr(g,E,i),l(f)),!1;if(f&&!g&&typeof f=="object"){if(v.endsWith(E,"{}"))E=n?E:E.slice(0,-2),f=A(f,1);else if(v.isArray(f)&&_l(f)||(v.isFileList(f)||v.endsWith(E,"[]"))&&(N=v.toArray(f)))return E=Ts(E),N.forEach(function(I,P){!(v.isUndefined(I)||I===null)&&t.append(s===!0?zr([E],P,i):s===null?E:E+"[]",l(I))}),!1}return Co(f)?!0:(t.append(zr(g,E,i),l(f)),!1)}const m=Object.assign(Al,{defaultVisitor:d,convertValue:l,isVisitable:Co});function y(f,E,g=0){if(!v.isUndefined(f)){if(O(g),u.indexOf(f)!==-1)throw new Error("Circular reference detected in "+E.join("."));u.push(f),v.forEach(f,function(C,I){(!(v.isUndefined(C)||C===null)&&o.call(t,C,v.isString(I)?I.trim():I,E,m))===!0&&y(C,E?E.concat(I):[I],g+1)}),u.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return y(e),t}function yi(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(n){return t[n]})}function $o(e,t){this._pairs=[],e&&Ir(e,this,t)}const Ls=$o.prototype;Ls.append=function(t,r){this._pairs.push([t,r])};Ls.toString=function(t){const r=t?n=>t.call(this,n,yi):yi;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Rl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ps(e,t,r){if(!t)return e;e=e||"";const n=v.isFunction(r)?{serialize:r}:r,o=v.getSafeProp(n,"encode")||Rl,i=v.getSafeProp(n,"serialize");let s;if(i?s=i(t,n):s=v.isURLSearchParams(t)?t.toString():new $o(t,n).toString(o),s){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class hi{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Fo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},Tl=typeof URLSearchParams<"u"?URLSearchParams:$o,Ll=typeof FormData<"u"?FormData:null,Pl=typeof Blob<"u"?Blob:null,Cl={isBrowser:!0,classes:{URLSearchParams:Tl,FormData:Ll,Blob:Pl},protocols:["http","https","file","blob","url","data"]},qo=typeof window<"u"&&typeof document<"u",Io=typeof navigator=="object"&&navigator||void 0,Il=qo&&(!Io||["ReactNative","NativeScript","NS"].indexOf(Io.product)<0),Dl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Nl=qo&&window.location.href||"http://localhost",xl=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:qo,hasStandardBrowserEnv:Il,hasStandardBrowserWebWorkerEnv:Dl,navigator:Io,origin:Nl},Symbol.toStringTag,{value:"Module"})),_e={...xl,...Cl};function jl(e,t){return Ir(e,new _e.classes.URLSearchParams,{visitor:function(r,n,o,i){return _e.isNode&&v.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const mi=Rs;function Cs(e){if(e>mi)throw new q("FormData field is too deeply nested ("+e+" levels). Max depth: "+mi,q.ERR_FORM_DATA_DEPTH_EXCEEDED)}function Bl(e){const t=[],r=/[^.[\]]+|\[([^.[\]]*)]/g;let n;for(;(n=r.exec(e))!==null;)Cs(t.length),t.push(n[0]==="[]"?"":n[1]||n[0]);return t}function Ml(e){const t={},r=Object.keys(e);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],t[i]=e[i];return t}function Is(e){function t(r,n,o,i){Cs(i);let s=r[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=r.length;return s=!s&&v.isArray(o)?o.length:s,c?(v.hasOwnProp(o,s)?o[s]=v.isArray(o[s])?o[s].concat(n):[o[s],n]:o[s]=n,!a):((!v.hasOwnProp(o,s)||!v.isObject(o[s]))&&(o[s]=[]),t(r,n,o[s],i)&&v.isArray(o[s])&&(o[s]=Ml(o[s])),!a)}if(v.isFormData(e)&&v.isFunction(e.entries)){const r={};return v.forEachEntry(e,(n,o)=>{t(Bl(n),o,r,0)}),r}return null}const Rt=(e,t)=>
vendor: 9,786 bytes, line 3
3e!=null&&v.hasOwnProp(e,t)?e[t]:void 0;function Ul(e,t,r){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const Qt={transitional:Fo,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=v.isObject(t);if(i&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return o?JSON.stringify(Is(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){const c=Rt(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return jl(t,c).toString();if((a=v.isFileList(t))||n.indexOf("multipart/form-data")>-1){const p=Rt(this,"env"),u=p&&p.FormData;return Ir(a?{"files[]":t}:t,u&&new u,c)}}return i||o?(r.setContentType("application/json",!1),Ul(t)):t}],transformResponse:[function(t){const r=Rt(this,"transitional")||Qt.transitional,n=r&&r.forcedJSONParsing,o=Rt(this,"responseType"),i=o==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(n&&!o||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t,Rt(this,"parseReviver"))}catch(c){if(a)throw c.name==="SyntaxError"?q.from(c,q.ERR_BAD_RESPONSE,this,null,Rt(this,"response")):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_e.classes.FormData,Blob:_e.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch","query"],e=>{Qt.headers[e]={}});function Wr(e,t){const r=this||Qt,n=t||r,o=Le.from(n.headers);let i=n.data;return v.forEach(e,function(a){i=a.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ds(e){return!!(e&&e.__CANCEL__)}let Xt=class extends q{constructor(t,r,n){super(t??"canceled",q.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ns(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new q("Request failed with status code "+r.status,r.status>=400&&r.status<500?q.ERR_BAD_REQUEST:q.ERR_BAD_RESPONSE,r.config,r.request,r))}function kl(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function $l(e,t){e=e||10;const r=new Array(e),n=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const p=Date.now(),u=n[i];s||(s=p),r[o]=c,n[o]=p;let l=i,O=0;for(;l!==o;)O+=r[l++],l=l%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),p-s<t)return;const A=u&&p-u;return A?Math.round(O*1e3/A):void 0}}function Fl(e,t){let r=0,n=1e3/t,o,i;const s=(p,u=Date.now())=>{r=u,o=null,i&&(clearTimeout(i),i=null),e(...p)};return[(...p)=>{const u=Date.now(),l=u-r;l>=n?s(p,u):(o=p,i||(i=setTimeout(()=>{i=null,s(o)},n-l)))},()=>o&&s(o)]}const Lr=(e,t,r=3)=>{let n=0;const o=$l(50,250);return Fl(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=Math.max(0,a!=null?Math.min(s,a):s),p=Math.max(0,c-n),u=o(p);n=Math.max(n,c);const l={loaded:c,total:a,progress:a?c/a:void 0,bytes:p,rate:u||void 0,estimated:u&&a?(a-c)/u:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(l)},r)},gi=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},vi=(e,t=v.asap)=>(...r)=>t(()=>e(...r)),ql=_e.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,_e.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(_e.origin),_e.navigator&&/(msie|trident)/i.test(_e.navigator.userAgent)):()=>!0,Hl=_e.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if(typeof document>"u")return;const a=[`${e}=${encodeURIComponent(t)}`];v.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),v.isString(n)&&a.push(`path=${n}`),v.isString(o)&&a.push(`domain=${o}`),i===!0&&a.push("secure"),v.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let r=0;r<t.length;r++){const n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(o!==-1&&n.slice(0,o)===e)try{return decodeURIComponent(n.slice(o+1))}catch{return n.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Kl(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Gl(e,t){if(!t)return e;let r=e.length;for(;r>0&&e.charCodeAt(r-1)===47;)r--;return e.slice(0,r)+"/"+t.replace(/^\/+/,"")}const zl=/^https?:(?!\/\/)/i,Wl=/[\t\n\r]/g;function Vl(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function Yl(e){return Vl(e).replace(Wl,"")}function Jl(e){return e&&e.replace(/(^|&)([^=&]*=)?[^&]+/g,(t,r,n="")=>`${r}${n}${Tr}`)}function Ql(e){const t=e.replace(/^(https?:\/{0,2})[^/?#]*@/i,`$1${Tr}@`),r=t.indexOf("#"),o=(r===-1?t:t.slice(0,r)).replace(/([?&][^=&#]*=)[^&#]*/g,`$1${Tr}`);return r===-1?o:`${o}#${Jl(t.slice(r+1))}`}function bi(e,t){if(typeof e=="string"){const r=Yl(e);if(zl.test(r))throw new q(`Invalid URL ${JSON.stringify(Ql(r))}: missing "//" after protocol`,q.ERR_INVALID_URL,t)}}function xs(e,t,r,n){bi(t,n);let o=!Kl(t);return e&&(o||r===!1)?(bi(e,n),Gl(e,t)):t}const Ei=e=>e instanceof Le?{...e}:e,Xl=e=>Object.getOwnPropertySymbols&&Object.getOwnPropertyDescriptor?Object.keys(e).concat(Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)):Object.keys(e);function St(e,t){e=e||{},t=t||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(u,l,O,A){return v.isPlainObject(u)&&v.isPlainObject(l)?v.merge.call({caseless:A},u,l):v.isPlainObject(l)?v.merge({},l):v.isArray(l)?l.slice():l}function o(u,l,O,A){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u,O,A)}else return n(u,l,O,A)}function i(u,l){if(!v.isUndefined(l))return n(void 0,l)}function s(u,l){if(v.isUndefined(l)){if(!v.isUndefined(u))return n(void 0,u)}else return n(void 0,l)}function a(u){const l=v.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!v.isUndefined(l))if(v.isPlainObject(l)){if(v.hasOwnProp(l,u))return l[u]}else return;const O=v.hasOwnProp(e,"transitional")?e.transitional:void 0;if(v.isPlainObject(O)&&v.hasOwnProp(O,u))return O[u]}function c(u,l,O){if(v.hasOwnProp(t,O))return n(u,l);if(v.hasOwnProp(e,O))return n(void 0,u)}const p={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:c,headers:(u,l,O)=>o(Ei(u),Ei(l),O,!0)};return v.forEach(Xl({...e,...t}),function(l){if(l==="__proto__"||l==="constructor"||l==="prototype")return;const O=v.hasOwnProp(p,l)?p[l]:o,A=v.hasOwnProp(e,l)?e[l]:void 0,d=v.hasOwnProp(t,l)?t[l]:void 0,m=O(A,d,l);v.isUndefined(m)&&O!==c||(r[l]=m)}),v.hasOwnProp(t,"validateStatus")&&v.isUndefined(t.validateStatus)&&a("validateStatusUndefinedResolves")===!1&&(v.hasOwnProp(e,"validateStatus")?r.validateStatus=n(void 0,e.validateStatus):delete r.validateStatus),r}const Zl=["content-type","content-length"];function ef(e,t,r){if(r!=="content-only"){e.set(t);return}Object.entries(t||{}).forEach(([n,o])=>{Zl.includes(n.toLowerCase())&&e.set(n,o)})}const tf=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16)));function js(e){const t=St({},e),r=O=>v.hasOwnProp(t,O)?t[O]:void 0,n=r("data");let o=r("withXSRFToken");const i=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const c=r("auth"),p=r("baseURL"),u=r("allowAbsoluteUrls"),l=r("url");if(t.headers=a=Le.from(a),t.url=Ps(xs(p,l,u,t),r("params"),r("paramsSerializer")),c){const O=v.getSafeProp(c,"username")||"",A=v.getSafeProp(c,"password")||"";try{a.set("Authorization","Basic "+btoa(O+":"+(A?tf(A):"")))}catch(d){throw q.from(d,q.ERR_BAD_OPTION_VALUE,e)}}if(v.isFormData(n)&&(_e.hasStandardBrowserEnv||_e.hasStandardBrowserWebWorkerEnv||v.isReactNative(n)?a.setContentType(void 0):v.isFunction(n.getHeaders)&&ef(a,n.getHeaders(),r("formDataHeaderPolicy"))),_e.hasStandardBrowserEnv&&(v.isFunction(o)&&(o=o(t)),o===!0||o==null&&ql(t.url))){const A=i&&s&&Hl.read(s);A&&a.set(i,A)}return t}const rf=typeof XMLHttpRequest<"u",nf=rf&&function(e){return new Promise(function(r,n){const o=js(e);let i=o.data;const s=Le.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:p}=o,u,l,O,A,d;function m(){A&&A(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function f(){if(!y)return;const g=Le.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:g,config:e,request:y};Ns(function(P){r(P),m()},function(P){n(P),m()},C),y=null}"onloadend"in y?y.onloadend=f:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.startsWith("file:"))||setTimeout(f)},y.onabort=function(){y&&(n(new q("Request aborted",q.ECONNABORTED,e,y)),m(),y=null)},y.onerror=function(N){const C=N&&N.message?N.message:"Network Error",I=new q(C,q.ERR_NETWORK,e,y);
3I.event=N||null,n(I),m(),y=null},y.ontimeout=function(){let N=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const C=o.transitional||Fo;o.timeoutErrorMessage&&(N=o.timeoutErrorMessage),n(new q(N,C.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,y)),m(),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&v.forEach(_s(s),function(N,C){y.setRequestHeader(C,N)}),v.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),p&&([O,d]=Lr(p,!0),y.addEventListener("progress",O)),c&&y.upload&&([l,A]=Lr(c),y.upload.addEventListener("progress",l),y.upload.addEventListener("loadend",A)),(o.cancelToken||o.signal)&&(u=g=>{y&&(n(!g||g.type?new Xt(null,e,y):g),y.abort(),m(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const E=kl(o.url);if(E&&!_e.protocols.includes(E)){n(new q("Unsupported protocol "+E+":",q.ERR_BAD_REQUEST,e)),m();return}y.send(i||null)})},of=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const r=new AbortController;let n=!1;const o=function(c){if(!n){n=!0,s();const p=c instanceof Error?c:this.reason;r.abort(p instanceof q?p:new Xt(p instanceof Error?p.message:p))}};let i=t&&setTimeout(()=>{i=null,o(new q(`timeout of ${t}ms exceeded`,q.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),e=null)};e.forEach(c=>{if(!n){if(c.aborted){o.call(c);return}c.addEventListener("abort",o,{once:!0})}});const{signal:a}=r;return a.unsubscribe=()=>v.asap(s),a},af=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,o;for(;n<r;)o=n+t,yield e.slice(n,o),n=o},sf=async function*(e,t){for await(const r of uf(e))yield*af(r,t)},uf=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},Oi=(e,t,r,n)=>{const o=sf(e,t);let i=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({async pull(c){try{const{done:p,value:u}=await o.next();if(p){a(),c.close();return}let l=u.byteLength;if(r){let O=i+=l;r(O)}c.enqueue(new Uint8Array(u))}catch(p){throw a(p),p}},cancel(c){return a(c),o.return()}},{highWaterMark:2})},Si=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,Bs=(e,t,r)=>t+2<r&&Si(e.charCodeAt(t+1))&&Si(e.charCodeAt(t+2)),wi=e=>e<=57?e-48:(e&223)-55,cf=e=>e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===47||e===45||e===95,lf=e=>e===9||e===10||e===12||e===13||e===32,ff=e=>{const t=Math.floor(e/4),r=e%4;return t*3+(r===2?1:r===3?2:0)},pf=e=>{const t=e.length;let r=0;return t>0&&e.charCodeAt(t-1)===61&&(r++,t>1&&e.charCodeAt(t-2)===61&&r++),Math.floor((t-r)*3/4)},df=e=>{const t=e.length;let r=0,n=0,o=!1;for(let i=0;i<t;i++){let s=e.charCodeAt(i);if(s===37&&Bs(e,i,t)&&(s=wi(e.charCodeAt(i+1))*16+wi(e.charCodeAt(i+2)),i+=2),!lf(s)){if(s===61){n++;continue}if(!cf(s)||n>0){o=!0;continue}r++}}return o||n>2||n>0&&(r+n)%4!==0||r%4===1?pf(e):ff(r)},yf=(e,t)=>{if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const r=e.indexOf(",");if(r<0)return 0;const n=e.slice(5,r),o=e.slice(r+1);if(/;base64/i.test(n))return t(o);let s=0;for(let a=0,c=o.length;a<c;a++){const p=o.charCodeAt(a);if(p===37&&Bs(o,a,c))s+=1,a+=2;else if(p<128)s+=1;else if(p<2048)s+=2;else if(p>=55296&&p<=56319&&a+1<c){const u=o.charCodeAt(a+1);u>=56320&&u<=57343?(s+=4,a++):s+=3}else s+=3}return s};function hf(e){const t=typeof e=="string"?e.indexOf("#"):-1;return yf(t===-1?e:e.slice(0,t),df)}const Ho="1.19.0",_i=64*1024,{isFunction:dr}=v,mf=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,r)=>String.fromCharCode(parseInt(r,16))),Ai=e=>{if(!v.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},Ri=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gf=e=>{const t=e.indexOf("://");let r=e;return t!==-1&&(r=r.slice(t+3)),r.includes("@")||r.includes(":")},vf=e=>{const t=v.global!==void 0&&v.global!==null?v.global:globalThis,{ReadableStream:r,TextEncoder:n}=t;e=v.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:o,Request:i,Response:s}=e,a=o?dr(o):typeof fetch=="function",c=dr(i),p=dr(s);if(!a)return!1;const u=a&&dr(r),l=a&&(typeof n=="function"?(f=>E=>f.encode(E))(new n):async f=>new Uint8Array(await new i(f).arrayBuffer())),O=c&&u&&Ri(()=>{let f=!1;const E=new i(_e.origin,{body:new r,method:"POST",get duplex(){return f=!0,"half"}}),g=E.headers.has("Content-Type");return E.body!=null&&E.body.cancel(),f&&!g}),A=p&&u&&Ri(()=>v.isReadableStream(new s("").body)),d={stream:A&&(f=>f.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(f=>{!d[f]&&(d[f]=(E,g)=>{let N=E&&E[f];if(N)return N.call(E);throw new q(`Response type '${f}' is not supported`,q.ERR_NOT_SUPPORT,g)})});const m=async f=>{if(f==null)return 0;if(v.isBlob(f))return f.size;if(v.isSpecCompliantForm(f))return(await new i(_e.origin,{method:"POST",body:f}).arrayBuffer()).byteLength;if(v.isArrayBufferView(f)||v.isArrayBuffer(f))return f.byteLength;if(v.isURLSearchParams(f)&&(f=f+""),v.isString(f))return(await l(f)).byteLength},y=async(f,E)=>{const g=v.toFiniteNumber(f.getContentLength());return g??m(E)};return async f=>{let{url:E,method:g,data:N,signal:C,cancelToken:I,timeout:P,onDownloadProgress:D,onUploadProgress:w,responseType:x,headers:b,withCredentials:L="same-origin",fetchOptions:U,maxContentLength:$,maxBodyLength:H}=js(f);const V=v.isNumber($)&&$>-1,ee=v.isNumber(H)&&H>-1,G=W=>v.hasOwnProp(f,W)?f[W]:void 0;let J=o||fetch;x=x?(x+"").toLowerCase():"text";let z=of([C,I&&I.toAbortSignal()],P),F=null;const oe=z&&z.unsubscribe&&(()=>{z.unsubscribe()});let fe,ve=null;const Q=()=>
vendor: 4,534 bytes, lines 3-5
3new q("Request body larger than maxBodyLength limit",q.ERR_BAD_REQUEST,f,F);try{let W;const ae=G("auth");if(ae){const M=v.getSafeProp(ae,"username")||"",Y=v.getSafeProp(ae,"password")||"";W={username:M,password:Y}}if(gf(E)){const M=new URL(E,_e.origin);if(!W&&(M.username||M.password)){const Y=Ai(M.username),ce=Ai(M.password);W={username:Y,password:ce}}(M.username||M.password)&&(M.username="",M.password="",E=M.href)}if(W&&(b.delete("authorization"),b.set("Authorization","Basic "+btoa(mf((W.username||"")+":"+(W.password||""))))),V&&typeof E=="string"&&E.startsWith("data:")&&hf(E)>$)throw new q("maxContentLength size of "+$+" exceeded",q.ERR_BAD_RESPONSE,f,F);if(ee&&g!=="get"&&g!=="head"){const M=await m(N);if(typeof M=="number"&&isFinite(M)&&(fe=M,M>H))throw Q()}const pe=ee&&(v.isReadableStream(N)||v.isStream(N)),de=(M,Y,ce)=>Oi(M,_i,Oe=>{if(ee&&Oe>H)throw ve=Q();Y&&Y(Oe)},ce);if(O&&g!=="get"&&g!=="head"&&(w||pe)){if(fe=fe??await y(b,N),fe!==0||pe){let M=new i(E,{method:"POST",body:N,duplex:"half"}),Y;if(v.isFormData(N)&&(Y=M.headers.get("content-type"))&&b.setContentType(Y),M.body){const[ce,Oe]=w&&gi(fe,Lr(vi(w)))||[];N=de(M.body,ce,Oe)}}}else if(pe&&!c&&u&&g!=="get"&&g!=="head")N=de(N);else if(pe&&c&&!O&&g!=="get"&&g!=="head")throw new q("Stream request bodies are not supported by the current fetch implementation",q.ERR_NOT_SUPPORT,f,F);v.isString(L)||(L=L?"include":"omit");const re=c&&"credentials"in i.prototype;if(v.isFormData(N)){const M=b.getContentType();M&&/^multipart\/form-data/i.test(M)&&!/boundary=/i.test(M)&&b.delete("content-type")}b.set("User-Agent","axios/"+Ho,!1);const se={...U,signal:z,method:g.toUpperCase(),headers:_s(b.normalize()),body:N,duplex:"half",credentials:re?L:void 0};F=c&&new i(E,se);let X=await(c?J(F,U):J(E,se));const T=Le.from(X.headers);if(V){const M=v.toFiniteNumber(T.getContentLength());if(M!=null&&M>$)throw new q("maxContentLength size of "+$+" exceeded",q.ERR_BAD_RESPONSE,f,F)}const j=A&&(x==="stream"||x==="response");if(A&&X.body&&(D||V||j&&oe)){const M={};["status","statusText","headers"].forEach(Ce=>{M[Ce]=X[Ce]});const Y=v.toFiniteNumber(T.getContentLength()),[ce,Oe]=D&&gi(Y,Lr(vi(D),!0))||[];let Ae=0;const Pe=Ce=>{if(V&&(Ae=Ce,Ae>$))throw new q("maxContentLength size of "+$+" exceeded",q.ERR_BAD_RESPONSE,f,F);ce&&ce(Ce)};X=new s(Oi(X.body,_i,Pe,()=>{Oe&&Oe(),oe&&oe()}),M)}x=x||"text";let k=await d[v.findKey(d,x)||"text"](X,f);if(V&&!A&&!j){let M;if(k!=null&&(typeof k.byteLength=="number"?M=k.byteLength:typeof k.size=="number"?M=k.size:typeof k=="string"&&(M=typeof n=="function"?new n().encode(k).byteLength:k.length)),typeof M=="number"&&M>$)throw new q("maxContentLength size of "+$+" exceeded",q.ERR_BAD_RESPONSE,f,F)}return!j&&oe&&oe(),await new Promise((M,Y)=>{Ns(M,Y,{data:k,headers:Le.from(X.headers),status:X.status,statusText:X.statusText,config:f,request:F})})}catch(W){if(oe&&oe(),z&&z.aborted&&z.reason instanceof q){const ae=z.reason;throw ae.config=f,F&&(ae.request=F),W!==ae&&Object.defineProperty(ae,"cause",{__proto__:null,value:W,writable:!0,enumerable:!1,configurable:!0}),ae}if(ve)throw F&&!ve.request&&(ve.request=F),ve;if(W instanceof q)throw F&&!W.request&&(W.request=F),W;if(W&&W.name==="TypeError"&&/Load failed|fetch/i.test(W.message)){const ae=new q("Network Error",q.ERR_NETWORK,f,F,W&&W.response);throw Object.defineProperty(ae,"cause",{__proto__:null,value:W.cause||W,writable:!0,enumerable:!1,configurable:!0}),ae}throw q.from(W,W&&W.code,f,F,W&&W.response)}}},bf=new Map,Ms=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:o}=t,i=[n,o,r];let s=i.length,a=s,c,p,u=bf;for(;a--;)c=i[a],p=u.get(c),p===void 0&&u.set(c,p=a?new Map:vf(t)),u=p;return p};Ms();const Ko={http:wl,xhr:nf,fetch:{get:Ms}};v.forEach(Ko,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const Ti=e=>`- ${e}`,Ef=e=>v.isFunction(e)||e===null||e===!1;function Of(e,t){e=v.isArray(e)?e:[e];const{length:r}=e;let n,o;const i={};for(let s=0;s<r;s++){n=e[s];let a;if(o=n,!Ef(n)&&(o=Ko[(a=String(n)).toLowerCase()],o===void 0))throw new q(`Unknown adapter '${a}'`);if(o&&(v.isFunction(o)||(o=o.get(t))))break;i[a||"#"+s]=o}if(!o){const s=Object.entries(i).map(([c,p])=>`adapter ${c} `+(p===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since : 4`+s.map(Ti).join(` 5`):" "+Ti(s[0]):"as no adapter specified";throw new q("There is no suitable adapter to dispatch the request "+a,q.ERR_NOT_SUPPORT)}return o}
vendor: 5,469 bytes, lines 5-9
5const Us={getAdapter:Of,adapters:Ko};function Vr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xt(null,e)}function Yr(e){return Vr(e),e.headers=Le.from(e.headers),e.data=Wr.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Us.getAdapter(e.adapter||Qt.adapter,e)(e).then(function(n){Vr(e),e.response=n;try{n.data=Wr.call(e,e.transformResponse,n)}finally{delete e.response}return n.headers=Le.from(n.headers),n},function(n){if(!Ds(n)&&(Vr(e),n&&n.response)){e.response=n.response;try{n.response.data=Wr.call(e,e.transformResponse,n.response)}finally{delete e.response}n.response.headers=Le.from(n.response.headers)}return Promise.reject(n)})}const Dr={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Dr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Li={};Dr.transitional=function(t,r,n){function o(i,s){return"[Axios v"+Ho+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,a)=>{if(t===!1)throw new q(o(s," has been removed"+(r?" in "+r:"")),q.ERR_DEPRECATED);return r&&!Li[s]&&(Li[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,s,a):!0}};Dr.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Sf(e,t,r){if(typeof e!="object"||e===null)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let o=n.length;for(;o-- >0;){const i=n[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const a=e[i],c=a===void 0||s(a,i,e);if(c!==!0)throw new q("option "+i+" must be "+c,q.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new q("Unknown option "+i,q.ERR_BAD_OPTION)}}const Or={assertOptions:Sf,validators:Dr},Te=Or.validators;let bt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new hi,response:new hi}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=(()=>{if(!o.stack)return"";const s=o.stack.indexOf(` 6`);return s===-1?"":o.stack.slice(s+1)})();try{if(!n.stack)n.stack=i;else if(i){const s=i.indexOf(` 7`),a=s===-1?-1:i.indexOf(` 8`,s+1),c=a===-1?"":i.slice(a+1);String(n.stack).endsWith(c)||(n.stack+=` 9`+i)}}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=St(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Or.assertOptions(n,{silentJSONParsing:Te.transitional(Te.boolean),forcedJSONParsing:Te.transitional(Te.boolean),clarifyTimeoutError:Te.transitional(Te.boolean),legacyInterceptorReqResOrdering:Te.transitional(Te.boolean),advertiseZstdAcceptEncoding:Te.transitional(Te.boolean),validateStatusUndefinedResolves:Te.transitional(Te.boolean)},!1),o!=null&&(v.isFunction(o)?r.paramsSerializer={serialize:o}:Or.assertOptions(o,{encode:Te.function,serialize:Te.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Or.assertOptions(r,{baseUrl:Te.spelling("baseURL"),withXsrfToken:Te.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&v.merge(i.common,i[r.method]);i&&v.forEach(["delete","get","head","post","put","patch","query","common"],d=>{delete i[d]}),r.headers=Le.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(r)===!1)return;c=c&&m.synchronous;const y=r.transitional||Fo;y&&y.legacyInterceptorReqResOrdering?a.unshift(m.fulfilled,m.rejected):a.push(m.fulfilled,m.rejected)});const p=[];this.interceptors.response.forEach(function(m){p.push(m.fulfilled,m.rejected)});let u,l=0,O;if(!c){const d=[Yr.bind(this),void 0];for(d.unshift(...a),d.push(...p),O=d.length,u=Promise.resolve(r);l<O;)u=u.then(d[l++],d[l++]);return u}O=a.length;let A=r;for(;l<O;){const d=a[l++],m=a[l++];try{A=d?d(A):A}catch(y){if(!m){u=Promise.reject(y);break}try{const f=m.call(this,y);v.isThenable(f)&&(u=Promise.resolve(f).then(()=>Yr.call(this,A)))}catch(f){u=Promise.reject(f)}break}}if(!u)try{u=Yr.call(this,A)}catch(d){u=Promise.reject(d)}for(l=0,O=p.length;l<O;)u=u.then(p[l++],p[l++]);return u}getUri(t){t=St(this.defaults,t);const r=xs(t.baseURL,t.url,t.allowAbsoluteUrls,t);return Ps(r,t.params,t.paramsSerializer)}};v.forEach(["delete","get","head","options"],function(t){bt.prototype[t]=function(r,n){return this.request(St(n||{},{method:t,url:r,data:n&&v.hasOwnProp(n,"data")?n.data:void 0}))}});v.forEach(["post","put","patch","query"],function(t){function r(n){return function(i,s,a){return this.request(St(a||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}bt.prototype[t]=r(),t!=="query"&&(bt.prototype[t+"Form"]=r(!0))});let wf=class ks{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{n.subscribe(a),i=a}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},t(function(i,s,a){n.reason||(n.reason=new Xt(i,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
9subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ks(function(o){t=o}),cancel:t}}};function _f(e){return function(r){return e.apply(null,r)}}function Af(e){return v.isObject(e)&&e.isAxiosError===!0}const Do={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerReturnsAnUnknownError:520,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Do).forEach(([e,t])=>{Do[t]=e});function $s(e){const t=new bt(e),r=hs(bt.prototype.request,t);return v.extend(r,bt.prototype,t,{allOwnKeys:!0}),v.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return $s(St(e,o))},r}const ge=$s(Qt);ge.Axios=bt;ge.CanceledError=Xt;ge.CancelToken=wf;ge.isCancel=Ds;ge.VERSION=Ho;ge.toFormData=Ir;ge.AxiosError=q;ge.Cancel=ge.CanceledError;ge.all=function(t){return Promise.all(t)};ge.spread=_f;ge.isAxiosError=Af;ge.mergeConfig=St;ge.AxiosHeaders=Le;ge.formToJSON=e=>Is(v.isHTMLForm(e)?new FormData(e):e);ge.getAdapter=Us.getAdapter;ge.HttpStatusCode=Do;ge.default=ge;const{Axios:mh,AxiosError:gh,CanceledError:vh,isCancel:bh,CancelToken:Eh,VERSION:Oh,all:Sh,Cancel:wh,isAxiosError:_h,spread:Ah,toFormData:Rh,AxiosHeaders:Th,HttpStatusCode:Lh,formToJSON:Ph,getAdapter:Ch,mergeConfig:Ih,create:Dh}=ge;var Rf=Function.prototype.toString,Jr=Object.create,Tf=Object.prototype.toString,Lf=(function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(t){return!!~this._keys.indexOf(t)},e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]},e.prototype.set=function(t,r){this._keys.push(t),this._values.push(r)},e})();function Pf(){return new Lf}function Cf(){return new WeakMap}var If=typeof WeakMap<"u"?Cf:Pf;function Go(e){if(!e)return Jr(null);var t=e.constructor;if(t===Object)return e===Object.prototype?{}:Jr(e);if(t&&~Rf.call(t).indexOf("[native code]"))try{return new t}catch{}return Jr(e)}function Df(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}function Nf(e){return e.flags}var xf=/test/g.flags==="g"?Nf:Df;function Fs(e){var t=Tf.call(e);return t.substring(8,t.length-1)}function jf(e){return e[Symbol.toStringTag]||Fs(e)}var Bf=typeof Symbol<"u"?jf:Fs,Mf=Object.defineProperty,Uf=Object.getOwnPropertyDescriptor,qs=Object.getOwnPropertyNames,zo=Object.getOwnPropertySymbols,Hs=Object.prototype,Ks=Hs.hasOwnProperty,kf=Hs.propertyIsEnumerable,Gs=typeof zo=="function";function $f(e){return qs(e).concat(zo(e))}var Ff=Gs?$f:qs;function Nr(e,t,r){for(var n=Ff(e),o=0,i=n.length,s=void 0,a=void 0;o<i;++o)if(s=n[o],!(s==="callee"||s==="caller")){if(a=Uf(e,s),!a){t[s]=r.copier(e[s],r);continue}!a.get&&!a.set&&(a.value=r.copier(a.value,r));try{Mf(t,s,a)}catch{t[s]=a.value}}return t}function qf(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,o=e.length;n<o;++n)r[n]=t.copier(e[n],t);return r}function Hf(e,t){var r=new t.Constructor;return t.cache.set(e,r),Nr(e,r,t)}function zs(e,t){return e.slice(0)}function Kf(e,t){return e.slice(0,e.size,e.type)}function Gf(e,t){return new t.Constructor(zs(e.buffer))}function zf(e,t){return new t.Constructor(e.getTime())}function Ws(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n,o){r.set(o,t.copier(n,t))}),r}function Wf(e,t){return Nr(e,Ws(e,t),t)}function Vf(e,t){var r=Go(t.prototype);t.cache.set(e,r);for(var n in e)Ks.call(e,n)&&(r[n]=t.copier(e[n],t));return r}function Yf(e,t){var r=Go(t.prototype);t.cache.set(e,r);for(var n in e)Ks.call(e,n)&&(r[n]=t.copier(e[n],t));for(var o=zo(e),i=0,s=o.length,a=void 0;i<s;++i)a=o[i],kf.call(e,a)&&(r[a]=t.copier(e[a],t));return r}var Jf=Gs?Yf:Vf;function Qf(e,t){var r=Go(t.prototype);return t.cache.set(e,r),Nr(e,r,t)}function Qr(e,t){return new t.Constructor(e.valueOf())}function Xf(e,t){var r=new t.Constructor(e.source,xf(e));return r.lastIndex=e.lastIndex,r}function Sr(e,t){return e}function Vs(e,t){var r=new t.Constructor;return t.cache.set(e,r),e.forEach(function(n){r.add(t.copier(n,t))}),r}function Zf(e,t){return Nr(e,Vs(e,t),t)}var ep=Array.isArray,Wo=Object.assign,tp=Object.getPrototypeOf||(function(e){return e.__proto__}),Ys={array:qf,arrayBuffer:zs,blob:Kf,dataView:Gf,date:zf,error:Sr,map:Ws,object:Jf,regExp:Xf,set:Vs},rp=Wo({},Ys,{array:Hf,map:Wf,object:Qf,set:Zf});function np(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:Qr,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:Qr,Object:e.object,Promise:Sr,RegExp:e.regExp,Set:e.set,String:Qr,WeakMap:Sr,WeakSet:Sr,Uint8Array:e.arrayBuffer,
9Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function Js(e){var t=Wo({},Ys,e),r=np(t),n=r.Array,o=r.Object;function i(s,a){if(a.prototype=a.Constructor=void 0,!s||typeof s!="object")return s;if(a.cache.has(s))return a.cache.get(s);if(a.prototype=tp(s),a.Constructor=a.prototype&&a.prototype.constructor,!a.Constructor||a.Constructor===Object)return o(s,a);if(ep(s))return n(s,a);var c=r[Bf(s)];return c?c(s,a):typeof s.then=="function"?s:o(s,a)}return function(a){return i(a,{Constructor:void 0,cache:If(),copier:i,prototype:void 0})}}function op(e){return Js(Wo({},rp,e))}op({});var xr=Js({});function ip(e,t){e.interceptors.request.use(function(r){return t().then(n=>(r.headers.set("Authorization",`Bearer ${n}`),r))})}var Xr={exports:{}},Pi;function ap(){if(Pi)return Xr.exports;Pi=1;var e=Xr.exports={},t,r;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=o}catch{r=o}})();function i(m){if(t===setTimeout)return setTimeout(m,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(m,0);try{return t(m,0)}catch{try{return t.call(null,m,0)}catch{return t.call(this,m,0)}}}function s(m){if(r===clearTimeout)return clearTimeout(m);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(m);try{return r(m)}catch{try{return r.call(null,m)}catch{return r.call(this,m)}}}var a=[],c=!1,p,u=-1;function l(){!c||!p||(c=!1,p.length?a=p.concat(a):u=-1,a.length&&O())}function O(){if(!c){var m=i(l);c=!0;for(var y=a.length;y;){for(p=a,a=[];++u<y;)p&&p[u].run();u=-1,y=a.length}p=null,c=!1,s(m)}}e.nextTick=function(m){var y=new Array(arguments.length-1);if(arguments.length>1)for(var f=1;f<arguments.length;f++)y[f-1]=arguments[f];a.push(new A(m,y)),a.length===1&&!c&&i(O)};function A(m,y){this.fun=m,this.array=y}A.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function d(){}return e.on=d,e.addListener=d,e.once=d,e.off=d,e.removeListener=d,e.removeAllListeners=d,e.emit=d,e.prependListener=d,e.prependOnceListener=d,e.listeners=function(m){return[]},e.binding=function(m){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(m){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},Xr.exports}var sp=ap();const lt=Vt(sp);function up(){return typeof lt<"u"&&!lt.browser}function cp(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function lp(){return lt.versions&<.versions.node?`v${lt.versions.node}`:lt.version}function fp(){return window}function No(){}const pp=e=>new Promise(t=>{setTimeout(t,e)}),dp=e=>Math.pow(Math.SQRT2,e);function yp(e,t=5){const{responseLogger:r=No,requestLogger:n=No}=e.defaults;e.interceptors.request.use(function(o){return n(o),o},function(o){return n(o),Promise.reject(o)}),e.interceptors.response.use(function(o){return r(o),o},async function(o){const{response:i}=o,{config:s}=o;if(r(o),!s||!e.defaults.retryOnError)return Promise.reject(o);const a=s.attempts||1;if(a>t)return o.attempts=s.attempts,Promise.reject(o);let c=null,p=dp(a);return i?i.status>=500&&i.status<600?c=`Server ${i.status}`:i.status===429&&(c="Rate limit",i.headers&&o.response.headers["x-contentful-ratelimit-reset"]&&(p=i.headers["x-contentful-ratelimit-reset"])):c="Connection",c?(p=Math.floor(p*1e3+Math.random()*200+500),e.defaults.logHandler("warning",`${c} error occurred. Waiting for ${p} ms before retrying...`),s.attempts=a+1,delete s.httpAgent,delete s.httpsAgent,pp(p).then(()=>e(s))):Promise.reject(o)})}var Zr,Ci;function hp(){if(Ci)return Zr;Ci=1;var e=typeof Lt=="object"&&Lt&&Lt.Object===Object&≪return Zr=e,Zr}var en,Ii;function mp(){if(Ii)return en;Ii=1;var e=hp(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return en=r,en}var tn,Di;function Qs(){if(Di)return tn;Di=1;var e=mp(),t=e.Symbol;return tn=t,tn}var rn,Ni;function gp(){if(Ni)return rn;Ni=1;var e=Qs(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,o=e?e.toStringTag:void 0;function i(s){var a=r.call(s,o),c=s[o];try{s[o]=void 0;var p=!0}catch{}var u=n.call(s);return p&&(a?s[o]=c:delete s[o]),u}return rn=i,rn}var nn,xi;function vp(){if(xi)return nn;xi=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nn=r,nn}
9var on,ji;function Xs(){if(ji)return on;ji=1;var e=Qs(),t=gp(),r=vp(),n="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function s(a){return a==null?a===void 0?o:n:i&&i in Object(a)?t(a):r(a)}return on=s,on}var an,Bi;function bp(){if(Bi)return an;Bi=1;var e=Array.isArray;return an=e,an}var sn,Mi;function Zs(){if(Mi)return sn;Mi=1;function e(t){return t!=null&&typeof t=="object"}return sn=e,sn}var un,Ui;function Ep(){if(Ui)return un;Ui=1;var e=Xs(),t=bp(),r=Zs(),n="[object String]";function o(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return un=o,un}var Op=Ep();const ki=Vt(Op);class Sp extends Error{name="AbortError";constructor(){super("Throttled function aborted")}}function wp({limit:e,interval:t,strict:r,onDelay:n}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const o=new Map;let i=0,s=0;function a(){const p=Date.now();return p-i>t?(s=1,i=p,0):(s<e?s++:(i+=t,s=1),i-p)}const c=a;return function(p){const u=function(...l){if(!u.isEnabled)return(async()=>p.apply(this,l))();let O;return new Promise((A,d)=>{const m=()=>{A(p.apply(this,l)),o.delete(O)},y=c();y>0?(O=setTimeout(m,y),o.set(O,d),n?.()):m()})};return u.abort=()=>{for(const l of o.keys())clearTimeout(l),o.get(l)(new Sp);o.clear()},u.isEnabled=!0,Object.defineProperty(u,"queueSize",{get(){return o.size}}),u}}const xo=/(?<value>\d+)(%)/;function cn(e,t=7){let r=t;if(xo.test(e)){const n=e.match(xo)?.groups;if(n&&n.value){const o=parseInt(n.value)/100;r=Math.round(t*o)}}return Math.min(30,Math.max(1,r))}function $i(e,t){return t("info",`Throttle request to ${e}/s`),wp({limit:e,interval:1e3,strict:!1})}var _p=(e,t="auto")=>{const{logHandler:r=No}=e.defaults;let n=ki(t)?cn(t):cn("auto",t),o=$i(n,r),i=!1,s=e.interceptors.request.use(c=>o(()=>c)(),function(c){return Promise.reject(c)});const a=e.interceptors.response.use(c=>{if(!i&&ki(t)&&(t==="auto"||xo.test(t))&&c.headers&&c.headers["x-contentful-ratelimit-second-limit"]){const p=parseInt(c.headers["x-contentful-ratelimit-second-limit"]),u=cn(t,p);u!==n&&(s&&e.interceptors.request.eject(s),n=u,o=$i(u,r),s=e.interceptors.request.use(l=>o(()=>l)(),function(l){return Promise.reject(l)})),i=!0}return c},function(c){return Promise.reject(c)});return()=>{e.interceptors.request.eject(s),e.interceptors.response.eject(a)}},ln,Fi;function Dt(){return Fi||(Fi=1,ln=TypeError),ln}const Ap={},Rp=Object.freeze(Object.defineProperty({__proto__:null,default:Ap},Symbol.toStringTag,{value:"Module"})),Tp=yc(Rp);var fn,qi;function jr(){if(qi)return fn;qi=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,s=o&&i&&typeof i.get=="function"?i.get:null,a=o&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,p=c?WeakMap.prototype.has:null,u=typeof WeakSet=="function"&&WeakSet.prototype,l=u?WeakSet.prototype.has:null,O=typeof WeakRef=="function"&&WeakRef.prototype,A=O?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,m=Object.prototype.toString,y=Function.prototype.toString,f=String.prototype.match,E=String.prototype.slice,g=String.prototype.replace,N=String.prototype.toUpperCase,C=String.prototype.toLowerCase,I=RegExp.prototype.test,P=Array.prototype.concat,D=Array.prototype.join,w=Array.prototype.slice,x=Math.floor,b=typeof BigInt=="function"?BigInt.prototype.valueOf:null,L=Object.getOwnPropertySymbols,U=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,$=typeof Symbol=="function"&&typeof Symbol.iterator=="object",H=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===$||!0)?Symbol.toStringTag:null,V=Object.prototype.propertyIsEnumerable,ee=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(_){return _.__proto__}:null);function G(_,R){if(_===1/0||_===-1/0||_!==_||_&&_>-1e3&&_<1e3||I.call(/e/,R))return R;var ie=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof _=="number"){var ne=_<0?-x(-_):x(_);if(ne!==_){var le=String(ne),Z=E.call(R,le.length+1);return g.call(le,ie,"$&_")+"."+g.call(g.call(Z,/([0-9]{3})/g,"$&_"),/_$/,"")}}return g.call(R,ie,"$&_")}var J=Tp,z=J.custom,F=j(z)?z:null,oe={__proto__:null,double:'"',single:"'"},fe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};fn=function _(R,ie,ne,le){var Z=ie||{};if(Y(Z,"quoteStyle")&&!Y(oe,Z.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Y(Z,"maxStringLength")&&(typeof Z.maxStringLength=="number"?Z.maxStringLength<0&&Z.maxStringLength!==1/0:Z.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var We=Y(Z,"customInspect")?Z.customInspect:!0;if(typeof We!="boolean"&&We!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
vendor: 20,504 bytes, lines 9-12
9if(Y(Z,"indent")&&Z.indent!==null&&Z.indent!==" "&&!(parseInt(Z.indent,10)===Z.indent&&Z.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Y(Z,"numericSeparator")&&typeof Z.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var He=Z.numericSeparator;if(typeof R>"u")return"undefined";if(R===null)return"null";if(typeof R=="boolean")return R?"true":"false";if(typeof R=="string")return ft(R,Z);if(typeof R=="number"){if(R===0)return 1/0/R>0?"0":"-0";var be=String(R);return He?G(R,be):be}if(typeof R=="bigint"){var Me=String(R)+"n";return He?G(R,Me):Me}var pt=typeof Z.depth>"u"?5:Z.depth;if(typeof ne>"u"&&(ne=0),ne>=pt&&pt>0&&typeof R=="object")return ae(R)?"[Array]":"[Object]";var Ve=$r(Z,ne);if(typeof le>"u")le=[];else if(Ae(le,R)>=0)return"[Circular]";function Se(ot,_t,qr){if(_t&&(le=w.call(le),le.push(_t)),qr){var Ye={depth:Z.depth};return Y(Z,"quoteStyle")&&(Ye.quoteStyle=Z.quoteStyle),_(ot,Ye,ne+1,le)}return _(ot,Z,ne+1,le)}if(typeof R=="function"&&!de(R)){var tr=Oe(R),rr=Xe(R,Se);return"[Function"+(tr?": "+tr:" (anonymous)")+"]"+(rr.length>0?" { "+D.call(rr,", ")+" }":"")}if(j(R)){var nr=$?g.call(String(R),/^(Symbol\(.*\))_[^)]*$/,"$1"):U.call(R);return typeof R=="object"&&!$?nt(nr):nr}if(kr(R)){for(var dt="<"+C.call(String(R.nodeName)),jt=R.attributes||[],yt=0;yt<jt.length;yt++)dt+=" "+jt[yt].name+"="+ve(Q(jt[yt].value),"double",Z);return dt+=">",R.childNodes&&R.childNodes.length&&(dt+="..."),dt+="</"+C.call(String(R.nodeName))+">",dt}if(ae(R)){if(R.length===0)return"[]";var ht=Xe(R,Se);return Ve&&!er(ht)?"["+wt(ht,Ve)+"]":"[ "+D.call(ht,", ")+" ]"}if(re(R)){var Ke=Xe(R,Se);return!("cause"in Error.prototype)&&"cause"in R&&!V.call(R,"cause")?"{ ["+String(R)+"] "+D.call(P.call("[cause]: "+Se(R.cause),Ke),", ")+" }":Ke.length===0?"["+String(R)+"]":"{ ["+String(R)+"] "+D.call(Ke,", ")+" }"}if(typeof R=="object"&&We){if(F&&typeof R[F]=="function"&&J)return J(R,{depth:pt-ne});if(We!=="symbol"&&typeof R.inspect=="function")return R.inspect()}if(Pe(R)){var or=[];return n&&n.call(R,function(ot,_t){or.push(Se(_t,R,!0)+" => "+Se(ot,R))}),xt("Map",r.call(R),or,Ve)}if(rt(R)){var ir=[];return a&&a.call(R,function(ot){ir.push(Se(ot,R))}),xt("Set",s.call(R),ir,Ve)}if(Ce(R))return Ie("WeakMap");if(Ur(R))return Ie("WeakSet");if(tt(R))return Ie("WeakRef");if(X(R))return nt(Se(Number(R)));if(k(R))return nt(Se(b.call(R)));if(T(R))return nt(d.call(R));if(se(R))return nt(Se(String(R)));if(typeof window<"u"&&R===window)return"{ [object Window] }";if(typeof globalThis<"u"&&R===globalThis||typeof Lt<"u"&&R===Lt)return"{ [object globalThis] }";if(!pe(R)&&!de(R)){var Bt=Xe(R,Se),ar=ee?ee(R)===Object.prototype:R instanceof Object||R.constructor===Object,Mt=R instanceof Object?"":"null prototype",Ue=!ar&&H&&Object(R)===R&&H in R?E.call(ce(R),8,-1):Mt?"Object":"",Fr=ar||typeof R.constructor!="function"?"":R.constructor.name?R.constructor.name+" ":"",Ut=Fr+(Ue||Mt?"["+D.call(P.call([],Ue||[],Mt||[]),": ")+"] ":"");return Bt.length===0?Ut+"{}":Ve?Ut+"{"+wt(Bt,Ve)+"}":Ut+"{ "+D.call(Bt,", ")+" }"}return String(R)};function ve(_,R,ie){var ne=ie.quoteStyle||R,le=oe[ne];return le+_+le}function Q(_){return g.call(String(_),/"/g,""")}function W(_){return!H||!(typeof _=="object"&&(H in _||typeof _[H]<"u"))}function ae(_){return ce(_)==="[object Array]"&&W(_)}function pe(_){return ce(_)==="[object Date]"&&W(_)}function de(_){return ce(_)==="[object RegExp]"&&W(_)}function re(_){return ce(_)==="[object Error]"&&W(_)}function se(_){return ce(_)==="[object String]"&&W(_)}function X(_){return ce(_)==="[object Number]"&&W(_)}function T(_){return ce(_)==="[object Boolean]"&&W(_)}function j(_){if($)return _&&typeof _=="object"&&_ instanceof Symbol;if(typeof _=="symbol")return!0;if(!_||typeof _!="object"||!U)return!1;try{return U.call(_),!0}catch{}return!1}function k(_){if(!_||typeof _!="object"||!b)return!1;try{return b.call(_),!0}catch{}return!1}var M=Object.prototype.hasOwnProperty||function(_){return _ in this};function Y(_,R){return M.call(_,R)}function ce(_){return m.call(_)}function Oe(_){if(_.name)return _.name;var R=f.call(y.call(_),/^function\s*([\w$]+)/);return R?R[1]:null}function Ae(_,R){if(_.indexOf)return _.indexOf(R);for(var ie=0,ne=_.length;ie<ne;ie++)if(_[ie]===R)return ie;return-1}function Pe(_){if(!r||!_||typeof _!="object")return!1;try{r.call(_);try{s.call(_)}catch{return!0}return _ instanceof Map}catch{}return!1}function Ce(_){if(!p||!_||typeof _!="object")return!1;try{p.call(_,p);try{l.call(_,l)}catch{return!0}return _ instanceof WeakMap}catch{}return!1}function tt(_){if(!A||!_||typeof _!="object")return!1;try{return A.call(_),!0}catch{}return!1}function rt(_){if(!s||!_||typeof _!="object")return!1;try{s.call(_);try{r.call(_)}catch{return!0}return _ instanceof Set}catch{}return!1}function Ur(_){if(!l||!_||typeof _!="object")return!1;try{l.call(_,l);try{p.call(_,p)}catch{return!0}return _ instanceof WeakSet}catch{}return!1}function kr(_){return!_||typeof _!="object"?!1:typeof HTMLElement<"u"&&_ instanceof HTMLElement?!0:typeof _.nodeName=="string"&&typeof _.getAttribute=="function"}function ft(_,R){if(_.length>R.maxStringLength){var ie=_.length-R.maxStringLength,ne="... "+ie+" more character"+(ie>1?"s":"");return ft(E.call(_,0,R.maxStringLength),R)+ne}var le=fe[R.quoteStyle||"single"];le.lastIndex=0;var Z=g.call(g.call(_,le,"\\$1"),/[\x00-\x1f]/g,Nt);return ve(Z,"single",R)}function Nt(_){var R=_.charCodeAt(0),ie={8:"b",9:"t",10:"n",12:"f",13:"r"}[R];return ie?"\\"+ie:"\\x"+(R<16?"0":"")+N.call(R.toString(16))}function nt(_){return"Object("+_+")"}function Ie(_){return _+" { ? }"}function xt(_,R,ie,ne){var le=ne?wt(ie,ne):D.call(ie,", ");return _+" ("+R+") {"+le+"}"}function er(_){for(var R=0;R<_.length;R++)if(Ae(_[R],` 10`)>=0)return!1;return!0}function $r(_,R){var ie;if(_.indent===" ")ie=" ";else if(typeof _.indent=="number"&&_.indent>0)ie=D.call(Array(_.indent+1)," ");else return null;return{base:ie,prev:D.call(Array(R+1),ie)}}function wt(_,R){if(_.length===0)return"";var ie=` 11`+R.prev+R.base;return ie+D.call(_,","+ie)+` 12`+R.prev}function Xe(_,R){var ie=ae(_),ne=[];if(ie){ne.length=_.length;for(var le=0;le<_.length;le++)ne[le]=Y(_,le)?R(_[le],_):""}var Z=typeof L=="function"?L(_):[],We;if($){We={};for(var He=0;He<Z.length;He++)We["$"+Z[He]]=Z[He]}for(var be in _)Y(_,be)&&(ie&&String(Number(be))===be&&be<_.length||$&&We["$"+be]instanceof Symbol||(I.call(/[^\w$]/,be)?ne.push(R(be,_)+": "+R(_[be],_)):ne.push(be+": "+R(_[be],_))));if(typeof L=="function")for(var Me=0;Me<Z.length;Me++)V.call(_,Z[Me])&&ne.push("["+R(Z[Me])+"]: "+R(_[Z[Me]],_));return ne}return fn}var pn,Hi;function Lp(){if(Hi)return pn;Hi=1;var e=jr(),t=Dt(),r=function(a,c,p){for(var u=a,l;(l=u.next)!=null;u=l)if(l.key===c)return u.next=l.next,p||(l.next=a.next,a.next=l),l},n=function(a,c){if(a){var p=r(a,c);return p&&p.value}},o=function(a,c,p){var u=r(a,c);u?u.value=p:a.next={key:c,next:a.next,value:p}},i=function(a,c){return a?!!r(a,c):!1},s=function(a,c){if(a)return r(a,c,!0)};return pn=function(){var c,p={assert:function(u){if(!p.has(u))throw new t("Side channel does not contain "+e(u))},delete:function(u){var l=s(c,u);return l&&c&&!c.next&&(c=void 0),!!l},get:function(u){return n(c,u)},has:function(u){return i(c,u)},set:function(u,l){c||(c={next:void 0}),o(c,u,l)}};return p},pn}var dn,Ki;function eu(){return Ki||(Ki=1,dn=Object),dn}var yn,Gi;function Pp(){return Gi||(Gi=1,yn=Error),yn}var hn,zi;function Cp(){return zi||(zi=1,hn=EvalError),hn}var mn,Wi;function Ip(){return Wi||(Wi=1,mn=RangeError),mn}var gn,Vi;function Dp(){return Vi||(Vi=1,gn=ReferenceError),gn}var vn,Yi;function Np(){return Yi||(Yi=1,vn=SyntaxError),vn}var bn,Ji;function xp(){return Ji||(Ji=1,bn=URIError),bn}var En,Qi;function jp(){return Qi||(Qi=1,En=Math.abs),En}var On,Xi;function Bp(){return Xi||(Xi=1,On=Math.floor),On}var Sn,Zi;function Mp(){return Zi||(Zi=1,Sn=Math.max),Sn}var wn,ea;function Up(){return ea||(ea=1,wn=Math.min),wn}var _n,ta;function kp(){return ta||(ta=1,_n=Math.pow),_n}var An,ra;function $p(){return ra||(ra=1,An=Math.round),An}var Rn,na;function Fp(){return na||(na=1,Rn=Number.isNaN||function(t){return t!==t}),Rn}var Tn,oa;function qp(){if(oa)return Tn;oa=1;var e=Fp();return Tn=function(r){return e(r)||r===0?r:r<0?-1:1},Tn}var Ln,ia;function Hp(){return ia||(ia=1,Ln=Object.getOwnPropertyDescriptor),Ln}var Pn,aa;function tu(){if(aa)return Pn;aa=1;var e=Hp();if(e)try{e([],"length")}catch{e=null}return Pn=e,Pn}var Cn,sa;function ru(){if(sa)return Cn;sa=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return Cn=e,Cn}var In,ua;function Kp(){return ua||(ua=1,In=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var i in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var s=Object.getOwnPropertySymbols(t);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(t,r);if(a.value!==o||a.enumerable!==!0)return!1}return!0}),In}var Dn,ca;function Gp(){if(ca)return Dn;ca=1;var e=typeof Symbol<"u"&&Symbol,t=Kp();return Dn=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Dn}var Nn,la;function nu(){return la||(la=1,Nn=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Nn}var xn,fa;function ou(){if(fa)return xn;fa=1;var e=eu();return xn=e.getPrototypeOf||null,xn}var jn,pa;function zp(){if(pa)return jn;pa=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",o=function(c,p){for(var u=[],l=0;l<c.length;l+=1)u[l]=c[l];for(var O=0;O<p.length;O+=1)u[O+c.length]=p[O];return u},i=function(c,p){for(var u=[],l=p,O=0;l<c.length;l+=1,O+=1)u[O]=c[l];return u},s=function(a,c){for(var p="",u=0;u<a.length;u+=1)p+=a[u],u+1<a.length&&(p+=c);return p};return jn=function(c){var p=this;if(typeof p!="function"||t.apply(p)!==n)throw new TypeError(e+p);for(var u=i(arguments,1),l,O=function(){if(this instanceof l){var f=p.apply(this,o(u,arguments));return Object(f)===f?f:this}return p.apply(c,o(u,arguments))},A=r(0,p.length-u.length),d=[],m=0;m<A;m++)d[m]="$"+m;if(l=Function("binder","return function ("+s(d,",")+"){ return binder.apply(this,arguments); }")(O),p.prototype){var y=function(){};y.prototype=p.prototype,l.prototype=new y,y.prototype=null}return l},jn}var Bn,da;function Br(){if(da)return Bn;da=1;var e=zp();return Bn=Function.prototype.bind||e,Bn}var Mn,ya;function Vo(){return ya||(ya=1,Mn=Function.prototype.call),Mn}var Un,ha;function iu(){return ha||(ha=1,Un=Function.prototype.apply),Un}var kn,ma;function Wp(){return ma||(ma=1,kn=typeof Reflect<"u"&&Reflect&&Reflect.apply),kn}var $n,ga;function Vp(){if(ga)return $n;ga=1;var e=Br(),t=iu(),r=Vo(),n=Wp();return $n=n||e.call(r,t),$n}var Fn,va;function au(){if(va)return Fn;va=1;var e=Br(),t=Dt(),r=Vo(),n=Vp();return Fn=function(i){if(i.length<1||typeof i[0]!="function")throw new t("a function is required");return n(e,r,i)},Fn}var qn,ba;function Yp(){if(ba)return qn;ba=1;var e=au(),t=tu(),r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return qn=n&&typeof n.get=="function"?e([n.get]):typeof i=="function"?function(a){return i(a==null?a:o(a))}:!1,qn}var Hn,Ea;function Jp(){if(Ea)return Hn;Ea=1;var e=nu(),t=ou(),r=Yp();return Hn=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,Hn}var Kn,Oa;function Qp(){if(Oa)return Kn;Oa=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Br();return Kn=r.call(e,t),Kn}var Gn,Sa;function Yo(){if(Sa)return Gn;Sa=1;var e,t=eu(),r=Pp(),n=Cp(),o=Ip(),i=Dp(),s=Np(),a=Dt(),c=xp(),p=jp(),u=Bp(),l=Mp(),O=Up(),A=kp(),d=$p(),m=qp(),y=Function,f=function(de){try{return y('"use strict"; return ('+de+").constructor;")()}catch{}},E=tu(),g=ru(),N=function(){throw new a},C=E?(function(){try{return arguments.callee,N}catch{try{return E(arguments,"callee").get}catch{return N}}})():N,I=Gp()(),P=Jp(),D=ou(),w=nu(),x=iu(),b=Vo(),L={},U=typeof Uint8Array>"u"||!P?e:P(Uint8Array),$={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":I&&P?P([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":L,"%AsyncGenerator%":L,"%AsyncGeneratorFunction%":L,"%AsyncIteratorPrototype%":L,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":y,"%GeneratorFunction%":L,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&P?P(P([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!I||!P?e:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":E,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!I||!P?e:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&P?P(""[Symbol.iterator]()):e,"%Symbol%":I?Symbol:e,"%SyntaxError%":s,"%ThrowTypeError%":C,"%TypedArray%":U,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":b,"%Function.prototype.apply%":x,"%Object.defineProperty%":g,"%Object.getPrototypeOf%":D,"%Math.abs%":p,"%Math.floor%":u,"%Math.max%":l,"%Math.min%":O,"%Math.pow%":A,"%Math.round%":d,"%Math.sign%":m,"%Reflect.getPrototypeOf%":w};if(P)try{null.error}catch(de){var H=P(P(de));$["%Error.prototype%"]=H}var V=function de(re){var se;if(re==="%AsyncFunction%")se=f("async function () {}");else if(re==="%GeneratorFunction%")se=f("function* () {}");else if(re==="%AsyncGeneratorFunction%")se=f("async function* () {}");else if(re==="%AsyncGenerator%"){var X=de("%AsyncGeneratorFunction%");X&&(se=X.prototype)}else if(re==="%AsyncIteratorPrototype%"){var T=de("%AsyncGenerator%");T&&P&&(se=P(T.prototype))}return $[re]=se,se},ee={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},G=Br(),J=Qp(),z=G.call(b,Array.prototype.concat),F=G.call(x,Array.prototype.splice),oe=G.call(b,String.prototype.replace),fe=G.call(b,String.prototype.slice),ve=G.call(b,RegExp.prototype.exec),Q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,ae=function(re){var se=fe(re,0,1),X=fe(re,-1);if(se==="%"&&X!=="%")throw new s("invalid intrinsic syntax, expected closing `%`");if(X==="%"&&se!=="%")throw new s("invalid intrinsic syntax, expected opening `%`");var T=[];return oe(re,Q,function(j,k,M,Y){T[T.length]=M?oe(Y,W,"$1"):k||j}),T},pe=function(re,se){var X=re,T;if(J(ee,X)&&(T=ee[X],X="%"+T[0]+"%"),J($,X)){var j=$[X];if(j===L&&(j=V(X)),typeof j>"u"&&!se)throw new a("intrinsic "+re+" exists, but is not available. Please file an issue!");return{alias:T,name:X,value:j}}throw new s("intrinsic "+re+" does not exist!")};return Gn=function(re,se){if(typeof re!="string"||re.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof se!="boolean")throw new a('"allowMissing" argument must be a boolean');if(ve(/^%?[^%]*%?$/,re)===null)throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var X=ae(re),T=X.length>0?X[0]:"",j=pe("%"+T+"%",se),k=j.name,M=j.value,Y=!1,ce=j.alias;ce&&(T=ce[0],F(X,z([0,1],ce)));for(var Oe=1,Ae=!0;Oe<X.length;Oe+=1){var Pe=X[Oe],Ce=fe(Pe,0,1),tt=fe(Pe,-1);if((Ce==='"'||Ce==="'"||Ce==="`"||tt==='"'||tt==="'"||tt==="`")&&Ce!==tt)throw new s("property names with quotes must have matching quotes");if((Pe==="constructor"||!Ae)&&(Y=!0),T+="."+Pe,k="%"+T+"%",J($,k))M=$[k];else if(M!=null){if(!(Pe in M)){if(!se)throw new a("base intrinsic for "+re+" exists, but the property is not available.");return}if(E&&Oe+1>=X.length){var rt=E(M,Pe);Ae=!!rt,Ae&&"get"in rt&&!("originalValue"in rt.get)?M=rt.get:M=M[Pe]}else Ae=J(M,Pe),M=M[Pe];Ae&&!Y&&($[k]=M)}}return M},Gn}var zn,wa;
12function su(){if(wa)return zn;wa=1;var e=Yo(),t=au(),r=t([e("%String.prototype.indexOf%")]);return zn=function(o,i){var s=e(o,!!i);return typeof s=="function"&&r(o,".prototype.")>-1?t([s]):s},zn}var Wn,_a;function uu(){if(_a)return Wn;_a=1;var e=Yo(),t=su(),r=jr(),n=Dt(),o=e("%Map%",!0),i=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),a=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return Wn=!!o&&function(){var l,O={assert:function(A){if(!O.has(A))throw new n("Side channel does not contain "+r(A))},delete:function(A){if(l){var d=c(l,A);return p(l)===0&&(l=void 0),d}return!1},get:function(A){if(l)return i(l,A)},has:function(A){return l?a(l,A):!1},set:function(A,d){l||(l=new o),s(l,A,d)}};return O},Wn}var Vn,Aa;function Xp(){if(Aa)return Vn;Aa=1;var e=Yo(),t=su(),r=jr(),n=uu(),o=Dt(),i=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),a=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return Vn=i?function(){var l,O,A={assert:function(d){if(!A.has(d))throw new o("Side channel does not contain "+r(d))},delete:function(d){if(i&&d&&(typeof d=="object"||typeof d=="function")){if(l)return p(l,d)}else if(n&&O)return O.delete(d);return!1},get:function(d){return i&&d&&(typeof d=="object"||typeof d=="function")&&l?s(l,d):O&&O.get(d)},has:function(d){return i&&d&&(typeof d=="object"||typeof d=="function")&&l?c(l,d):!!O&&O.has(d)},set:function(d,m){i&&d&&(typeof d=="object"||typeof d=="function")?(l||(l=new i),a(l,d,m)):n&&(O||(O=n()),O.set(d,m))}};return A}:n,Vn}var Yn,Ra;function cu(){if(Ra)return Yn;Ra=1;var e=Dt(),t=jr(),r=Lp(),n=uu(),o=Xp(),i=o||n||r;return Yn=function(){var a,c={assert:function(p){if(!c.has(p)){var u=p&&Object(p)===p?"the given object key":t(p);throw new e("Side channel does not contain "+u)}},delete:function(p){return!!a&&a.delete(p)},get:function(p){return a&&a.get(p)},has:function(p){return!!a&&a.has(p)},set:function(p,u){a||(a=i()),a.set(p,u)}};return c},Yn}var Jn,Ta;function Jo(){if(Ta)return Jn;Ta=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Jn={default:r.RFC3986,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(n){return String(n)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Jn}var Qn,La;function lu(){if(La)return Qn;La=1;var e=Jo(),t=cu(),r=ru(),n=Object.prototype.hasOwnProperty,o=Array.isArray,i=t(),s=function(w,x){return i.set(w,x),w},a=function(w){return i.has(w)},c=function(w){return i.get(w)},p=function(w,x){i.set(w,x)},u=(function(){for(var D=[],w=0;w<256;++w)D[D.length]="%"+((w<16?"0":"")+w.toString(16)).toUpperCase();return D})(),l=function(w){for(;w.length>1;){var x=w.pop(),b=x.obj[x.prop];if(o(b)){for(var L=[],U=0;U<b.length;++U)typeof b[U]<"u"&&(L[L.length]=b[U]);x.obj[x.prop]=L}}},O=function(w,x){for(var b=x&&x.plainObjects?{__proto__:null}:{},L=0;L<w.length;++L)typeof w[L]<"u"&&(b[L]=w[L]);return b},A=function(w,x,b){x==="__proto__"&&r?r(w,x,{configurable:!0,enumerable:!0,value:b,writable:!0}):w[x]=b},d=function D(w,x,b){if(!x)return w;if(typeof x!="object"&&typeof x!="function"){if(o(w)){var L=w.length;if(b&&typeof b.arrayLimit=="number"&&L>=b.arrayLimit){if(b.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return s(O(w.concat(x),b),L)}w[L]=x}else if(w&&typeof w=="object")if(a(w)){var U=c(w)+1;w[U]=x,p(w,U)}else{if(b&&b.strictMerge)return[w,x];(b&&(b.plainObjects||b.allowPrototypes)||!n.call(Object.prototype,x))&&(w[x]=!0)}else return[w,x];return w}if(!w||typeof w!="object"){if(a(x)){for(var $=Object.keys(x),H=b&&b.plainObjects?{__proto__:null,0:w}:{0:w},V=0;V<$.length;V++){var ee=parseInt($[V],10);H[ee+1]=x[$[V]]}return s(H,c(x)+1)}var G=[w].concat(x);if(b&&typeof b.arrayLimit=="number"&&G.length>b.arrayLimit){if(b.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return s(O(G,b),G.length-1)}return G}var J=w;
12if(o(w)&&!o(x)&&(J=O(w,b)),o(w)&&o(x)){if(x.forEach(function(z,F){if(n.call(w,F)){var oe=w[F];oe&&typeof oe=="object"&&z&&typeof z=="object"?w[F]=D(oe,z,b):w[w.length]=z}else w[F]=z}),b&&typeof b.arrayLimit=="number"&&w.length>b.arrayLimit){if(b.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+b.arrayLimit+" element"+(b.arrayLimit===1?"":"s")+" allowed in an array.");return s(O(w,b),w.length-1)}return w}return Object.keys(x).reduce(function(z,F){var oe=x[F];if(n.call(z,F)?A(z,F,D(z[F],oe,b)):A(z,F,oe),a(x)&&!a(z)&&s(z,c(x)),a(z)){var fe=parseInt(F,10);String(fe)===F&&fe>=0&&fe>c(z)&&p(z,fe)}return z},J)},m=function(w,x){return Object.keys(x).reduce(function(b,L){return A(b,L,x[L]),b},w)},y=function(D,w,x){var b=D.replace(/\+/g," ");if(x==="iso-8859-1")return b.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(b)}catch{return b}},f=1024,E=function(w,x,b,L,U){if(w.length===0)return w;var $=w;if(typeof w=="symbol"?$=Symbol.prototype.toString.call(w):typeof w!="string"&&($=String(w)),b==="iso-8859-1")return escape($).replace(/%u[0-9a-f]{4}/gi,function(oe){return"%26%23"+parseInt(oe.slice(2),16)+"%3B"});for(var H="",V=0;V<$.length;V+=f){var ee=$.length>=f?$.slice(V,V+f):$;if(V+f<$.length){var G=ee.charCodeAt(ee.length-1);G>=55296&&G<=56319&&(ee=ee.slice(0,-1),V-=1)}for(var J=[],z=0;z<ee.length;++z){var F=ee.charCodeAt(z);if(F===45||F===46||F===95||F===126||F>=48&&F<=57||F>=65&&F<=90||F>=97&&F<=122||U===e.RFC1738&&(F===40||F===41)){J[J.length]=ee.charAt(z);continue}if(F<128){J[J.length]=u[F];continue}if(F<2048){J[J.length]=u[192|F>>6]+u[128|F&63];continue}if(F<55296||F>=57344){J[J.length]=u[224|F>>12]+u[128|F>>6&63]+u[128|F&63];continue}z+=1,F=65536+((F&1023)<<10|ee.charCodeAt(z)&1023),J[J.length]=u[240|F>>18]+u[128|F>>12&63]+u[128|F>>6&63]+u[128|F&63]}H+=J.join("")}return H},g=function(w){for(var x=[{obj:{o:w},prop:"o"}],b=t(),L=0;L<x.length;++L)for(var U=x[L],$=U.obj[U.prop],H=Object.keys($),V=0;V<H.length;++V){var ee=H[V],G=$[ee];typeof G=="object"&&G!==null&&!b.has(G)&&(x[x.length]={obj:$,prop:ee},b.set(G,!0))}return l(x),w},N=function(w){return Object.prototype.toString.call(w)==="[object RegExp]"},C=function(w){return!w||typeof w!="object"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))},I=function(w,x,b,L,U){if(a(w)){if(U)throw new RangeError("Array limit exceeded. Only "+b+" element"+(b===1?"":"s")+" allowed in an array.");var $=c(w)+1;return w[$]=x,p(w,$),w}var H=[].concat(w,x);if(H.length>b){if(U)throw new RangeError("Array limit exceeded. Only "+b+" element"+(b===1?"":"s")+" allowed in an array.");return s(O(H,{plainObjects:L}),H.length-1)}return H},P=function(w,x){if(o(w)){for(var b=[],L=0;L<w.length;L+=1)b[b.length]=x(w[L]);return b}return x(w)};return Qn={arrayToObject:O,assign:m,combine:I,compact:g,decode:y,encode:E,isBuffer:C,isOverflow:a,isRegExp:N,markOverflow:s,maybeMap:P,merge:d},Qn}var Xn,Pa;function Zp(){if(Pa)return Xn;Pa=1;var e=cu(),t=lu(),r=Jo(),n=Object.prototype.hasOwnProperty,o={brackets:function(y){return y+"[]"},comma:"comma",indices:function(y,f){return y+"["+f+"]"},repeat:function(y){return y}},i=Array.isArray,s=Array.prototype.push,a=function(m,y){s.apply(m,i(y)?y:[y])},c=Date.prototype.toISOString,p=r.default,u={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:p,formatter:r.formatters[p],indices:!1,serializeDate:function(y){return c.call(y)},skipNulls:!1,strictNullHandling:!1},l=function(y){return typeof y=="string"||typeof y=="number"||typeof y=="boolean"||typeof y=="symbol"||typeof y=="bigint"},O={},A=function m(y,f,E,g,N,C,I,P,D,w,x,b,L,U,$,H,V,ee){for(var G=y,J=ee,z=0,F=!1;(J=J.get(O))!==void 0&&!F;){var oe=J.get(y);if(z+=1,typeof oe<"u"){if(oe===z)throw new RangeError("Cyclic object value");F=!0}typeof J.get(O)>"u"&&(z=0)}if(typeof w=="function"?G=w(f,G):G instanceof Date?G=L(G):E==="comma"&&i(G)&&(G=t.maybeMap(G,function(k){return k instanceof Date?L(k):k})),G===null){if(C)return $(D&&!H?D(f,u.encoder,V,"key",U):f);G=""}if(l(G)||t.isBuffer(G)){if(D){var fe=H?f:D(f,u.encoder,V,"key",U);return[$(fe)+"="+$(D(G,u.encoder,V,"value",U))]}return[$(f)+"="+$(String(G))]}var ve=[];
vendor: 9,413 bytes, line 12
12if(typeof G>"u")return ve;var Q;if(E==="comma"&&i(G))H&&D&&(G=t.maybeMap(G,function(k){return k==null?k:D(k)})),Q=[{value:G.length>0?G.join(",")||null:void 0}];else if(i(w))Q=w;else{var W=Object.keys(G);Q=x?W.sort(x):W}var ae=P?String(f).replace(/\./g,"%2E"):String(f),pe=g&&i(G)&&G.length===1?ae+"[]":ae;if(N&&i(G)&&G.length===0)return pe+"[]";for(var de=0;de<Q.length;++de){var re=Q[de],se=typeof re=="object"&&re&&typeof re.value<"u"?re.value:G[re];if(!(I&&se===null)){var X=b&&P?String(re).replace(/\./g,"%2E"):String(re),T=i(G)?typeof E=="function"?E(pe,X):pe:pe+(b?"."+X:"["+X+"]");ee.set(y,z);var j=e();j.set(O,ee),a(ve,m(se,T,E,g,N,C,I,P,E==="comma"&&H&&i(G)?null:D,w,x,b,L,U,$,H,V,j))}}return ve},d=function(y){if(!y)return u;if(typeof y.allowEmptyArrays<"u"&&typeof y.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof y.encodeDotInKeys<"u"&&typeof y.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(y.encoder!==null&&typeof y.encoder<"u"&&typeof y.encoder!="function")throw new TypeError("Encoder has to be a function.");var f=y.charset||u.charset;if(typeof y.charset<"u"&&y.charset!=="utf-8"&&y.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var E=r.default;if(typeof y.format<"u"){if(!n.call(r.formatters,y.format))throw new TypeError("Unknown format option provided.");E=y.format}var g=r.formatters[E],N=u.filter;(typeof y.filter=="function"||i(y.filter))&&(N=y.filter);var C;if(y.arrayFormat in o?C=y.arrayFormat:"indices"in y?C=y.indices?"indices":"repeat":C=u.arrayFormat,"commaRoundTrip"in y&&typeof y.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var I=typeof y.allowDots>"u"?y.encodeDotInKeys===!0?!0:u.allowDots:!!y.allowDots;return{addQueryPrefix:typeof y.addQueryPrefix=="boolean"?y.addQueryPrefix:u.addQueryPrefix,allowDots:I,allowEmptyArrays:typeof y.allowEmptyArrays=="boolean"?!!y.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:C,charset:f,charsetSentinel:typeof y.charsetSentinel=="boolean"?y.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!y.commaRoundTrip,delimiter:typeof y.delimiter>"u"?u.delimiter:y.delimiter,encode:typeof y.encode=="boolean"?y.encode:u.encode,encodeDotInKeys:typeof y.encodeDotInKeys=="boolean"?y.encodeDotInKeys:u.encodeDotInKeys,encoder:typeof y.encoder=="function"?y.encoder:u.encoder,encodeValuesOnly:typeof y.encodeValuesOnly=="boolean"?y.encodeValuesOnly:u.encodeValuesOnly,filter:N,format:E,formatter:g,serializeDate:typeof y.serializeDate=="function"?y.serializeDate:u.serializeDate,skipNulls:typeof y.skipNulls=="boolean"?y.skipNulls:u.skipNulls,sort:typeof y.sort=="function"?y.sort:null,strictNullHandling:typeof y.strictNullHandling=="boolean"?y.strictNullHandling:u.strictNullHandling}};return Xn=function(m,y){var f=m,E=d(y),g,N;typeof E.filter=="function"?(N=E.filter,f=N("",f)):i(E.filter)&&(N=E.filter,g=N);var C=[];if(typeof f!="object"||f===null)return"";var I=o[E.arrayFormat],P=I==="comma"&&E.commaRoundTrip;g||(g=Object.keys(f)),E.sort&&g.sort(E.sort);for(var D=e(),w=0;w<g.length;++w){var x=g[w];if(!(typeof x>"u"||x===null)){var b=f[x];E.skipNulls&&b===null||a(C,A(b,x,I,P,E.allowEmptyArrays,E.strictNullHandling,E.skipNulls,E.encodeDotInKeys,E.encode?E.encoder:null,E.filter,E.sort,E.allowDots,E.serializeDate,E.format,E.formatter,E.encodeValuesOnly,E.charset,D))}}var L=C.join(E.delimiter),U=E.addQueryPrefix===!0?"?":"";return E.charsetSentinel&&(E.charset==="iso-8859-1"?U+="utf8=%26%2310003%3B"+E.delimiter:U+="utf8=%E2%9C%93"+E.delimiter),L.length>0?U+L:""},Xn}var Zn,Ca;function ed(){if(Ca)return Zn;Ca=1;var e=lu(),t=Object.prototype.hasOwnProperty,r=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(A){return A.replace(/&#(\d+);/g,function(d,m){return String.fromCharCode(parseInt(m,10))})},i=function(A,d,m,y){if(A&&typeof A=="string"&&d.comma&&A.indexOf(",")>-1){if(y&&d.throwOnLimitExceeded)for(var f=0,E=A.indexOf(",");E>-1;){if(f+=1,f>=d.arrayLimit)throw new RangeError("Array limit exceeded. Only "+d.arrayLimit+" element"+(d.arrayLimit===1?"":"s")+" allowed in an array.");E=A.indexOf(",",E+1)}return A.split(",")}if(d.throwOnLimitExceeded&&m>=d.arrayLimit)throw new RangeError("Array limit exceeded. Only "+d.arrayLimit+" element"+(d.arrayLimit===1?"":"s")+" allowed in an array.");return A},s="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",c=function(d,m){var y={__proto__:null},f=m.ignoreQueryPrefix?d.replace(/^\?/,""):d;f=f.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var E=m.parameterLimit===1/0?void 0:m.parameterLimit,g=f.split(m.delimiter,m.throwOnLimitExceeded&&typeof E<"u"?E+1:E);if(m.throwOnLimitExceeded&&typeof E<"u"&&g.length>E)throw new RangeError("Parameter limit exceeded. Only "+E+" parameter"+(E===1?"":"s")+" allowed.");var N=-1,C,I=m.charset;if(m.charsetSentinel)for(C=0;C<g.length;++C)g[C].indexOf("utf8=")===0&&(g[C]===a?I="utf-8":g[C]===s&&(I="iso-8859-1"),N=C,C=g.length);for(C=0;C<g.length;++C)if(C!==N){var P=g[C],D=P.indexOf("]="),w=D===-1?P.indexOf("="):D+1,x,b;if(w===-1?(x=m.decoder(P,n.decoder,I,"key"),b=m.strictNullHandling?null:""):(x=m.decoder(P.slice(0,w),n.decoder,I,"key"),x!==null&&(b=e.maybeMap(i(P.slice(w+1),m,r(y[x])?y[x].length:0,P.indexOf("[]=")===-1),function(U){return m.decoder(U,n.decoder,I,"value")}))),b&&m.interpretNumericEntities&&I==="iso-8859-1"&&(b=o(String(b))),P.indexOf("[]=")>-1&&(b=r(b)?[b]:b),m.comma&&r(b)&&b.length>m.arrayLimit&&(b=e.combine([],b,m.arrayLimit,m.plainObjects,m.throwOnLimitExceeded)),x!==null){var L=t.call(y,x);L&&(m.duplicates==="combine"||P.indexOf("[]=")>-1)?y[x]=e.combine(y[x],b,m.arrayLimit,m.plainObjects,m.throwOnLimitExceeded):(!L||m.duplicates==="last")&&(y[x]=b)}}return y},p=function(A,d,m,y){var f=0;if(A.length>0&&A[A.length-1]==="[]"){var E=A.slice(0,-1).join("");f=Array.isArray(d)&&d[E]?d[E].length:0}for(var g=y?d:i(d,m,f),N=A.length-1;N>=0;--N){var C,I=A[N];if(I==="[]"&&m.parseArrays)e.isOverflow(g)?C=g:C=m.allowEmptyArrays&&(g===""||m.strictNullHandling&&g===null)?[]:e.combine([],g,m.arrayLimit,m.plainObjects,m.throwOnLimitExceeded);else{C=m.plainObjects?{__proto__:null}:{};var P=I.charAt(0)==="["&&I.charAt(I.length-1)==="]"?I.slice(1,-1):I,D=m.decodeDotInKeys?P.replace(/%2E/g,"."):P,w=parseInt(D,10),x=!isNaN(w)&&I!==D&&String(w)===D&&w>=0&&m.parseArrays;if(!m.parseArrays&&D==="")C={0:g};else if(x&&w<m.arrayLimit)C=[],C[w]=g;else{if(x&&m.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+m.arrayLimit+" element"+(m.arrayLimit===1?"":"s")+" allowed in an array.");x?(C[w]=g,e.markOverflow(C,w)):D!=="__proto__"&&(C[D]=g)}}g=C}return g},u=function(d,m){var y=m.allowDots?d.replace(/\.([^.[]+)/g,"[$1]"):d;if(m.depth<=0)return!m.plainObjects&&t.call(Object.prototype,y)&&!m.allowPrototypes?void 0:[y];var f=[],E=y.indexOf("["),g=E>=0?y.slice(0,E):y;if(g){if(!m.plainObjects&&t.call(Object.prototype,g)&&!m.allowPrototypes)return;f[f.length]=g}for(var N=y.length,C=E,I=0;C>=0&&I<m.depth;){for(var P=1,D=C+1,w=-1;D<N&&w<0;){var x=y.charCodeAt(D);x===91?P+=1:x===93&&(P-=1,P===0&&(w=D)),D+=1}if(w<0)return f[f.length]="["+y.slice(C)+"]",f;var b=y.slice(C,w+1),L=b.slice(1,-1);if(!m.plainObjects&&t.call(Object.prototype,L)&&!m.allowPrototypes)return;f[f.length]=b,I+=1,C=y.indexOf("[",w+1)}if(C>=0){if(m.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+m.depth+" and strictDepth is true");f[f.length]="["+y.slice(C)+"]"}return f},l=function(d,m,y,f){if(d){var E=u(d,y);if(E)return p(E,m,y,f)}},O=function(d){if(!d)return n;if(typeof d.allowEmptyArrays<"u"&&typeof d.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof d.decodeDotInKeys<"u"&&typeof d.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(d.decoder!==null&&typeof d.decoder<"u"&&typeof d.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof d.charset<"u"&&d.charset!=="utf-8"&&d.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof d.throwOnLimitExceeded<"u"&&typeof d.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var m=typeof d.charset>"u"?n.charset:d.charset,y=typeof d.duplicates>"u"?n.duplicates:d.duplicates;if(y!=="combine"&&y!=="first"&&y!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var f=typeof d.allowDots>"u"?d.decodeDotInKeys===!0?!0:n.allowDots:!!d.allowDots;return{allowDots:f,allowEmptyArrays:typeof d.allowEmptyArrays=="boolean"?!!d.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof d.allowPrototypes=="boolean"?d.allowPrototypes:n.allowPrototypes,allowSparse:typeof d.allowSparse=="boolean"?d.allowSparse:n.allowSparse,arrayLimit:typeof d.arrayLimit=="number"?d.arrayLimit:n.arrayLimit,charset
12:m,charsetSentinel:typeof d.charsetSentinel=="boolean"?d.charsetSentinel:n.charsetSentinel,comma:typeof d.comma=="boolean"?d.comma:n.comma,decodeDotInKeys:typeof d.decodeDotInKeys=="boolean"?d.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof d.decoder=="function"?d.decoder:n.decoder,delimiter:typeof d.delimiter=="string"||e.isRegExp(d.delimiter)?d.delimiter:n.delimiter,depth:typeof d.depth=="number"||d.depth===!1?+d.depth:n.depth,duplicates:y,ignoreQueryPrefix:d.ignoreQueryPrefix===!0,interpretNumericEntities:typeof d.interpretNumericEntities=="boolean"?d.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof d.parameterLimit=="number"?d.parameterLimit:n.parameterLimit,parseArrays:d.parseArrays!==!1,plainObjects:typeof d.plainObjects=="boolean"?d.plainObjects:n.plainObjects,strictDepth:typeof d.strictDepth=="boolean"?!!d.strictDepth:n.strictDepth,strictMerge:typeof d.strictMerge=="boolean"?!!d.strictMerge:n.strictMerge,strictNullHandling:typeof d.strictNullHandling=="boolean"?d.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof d.throwOnLimitExceeded=="boolean"?d.throwOnLimitExceeded:!1}};return Zn=function(A,d){var m=O(d);if(A===""||A===null||typeof A>"u")return m.plainObjects?{__proto__:null}:{};for(var y=typeof A=="string"?c(A,m):A,f=m.plainObjects?{__proto__:null}:{},E=Object.keys(y),g=0;g<E.length;++g){var N=E[g],C=l(N,y[N],m,typeof A=="string");f=e.merge(f,C,m)}return m.allowSparse===!0?f:e.compact(f)},Zn}var eo,Ia;function td(){if(Ia)return eo;Ia=1;var e=Zp(),t=ed(),r=Jo();return eo={formats:r,parse:t,stringify:e},eo}var rd=td();const nd=Vt(rd),od=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function id(e){const r={...{insecure:!1,retryOnError:!0,logHandler:(p,u)=>{if(p==="error"&&u){const l=[u.name,u.message].filter(O=>O).join(" - ");console.error(`[error] ${l}`),console.error(u);return}console.log(`[${p}] ${u}`)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},...e};if(!r.accessToken){const p=new TypeError("Expected parameter accessToken");throw r.logHandler("error",p),p}const n=r.insecure?"http":"https",o=r.space?`${r.space}/`:"";let i=r.defaultHostname,s=r.insecure?80:443;if(r.host&&od.test(r.host)){const p=r.host.split(":");p.length===2?[i,s]=p:i=p[0]}r.basePath&&(r.basePath=`/${r.basePath.split("/").filter(Boolean).join("/")}`);const a=e.baseURL||`${n}://${i}:${s}${r.basePath}/spaces/${o}`;return!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken),{baseURL:a,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,fetchOptions:r.fetchOptions,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,paramsSerializer:{serialize:p=>nd.stringify(p)},logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError}}function ad(e){const t=xr(e);return t.httpAgent=e.httpAgent,t.httpsAgent=e.httpsAgent,t}function fu(e,t){const r=id(t),n=e.create(r);return n.httpClientParams=t,n.cloneWithNewParams=function(o){return fu(e,{...ad(t),...o})},t.onBeforeRequest&&n.interceptors.request.use(t.onBeforeRequest),typeof t.accessToken=="function"&&ip(n,t.accessToken),t.throttle&&_p(n,t.throttle),yp(n,t.retryLimit),t.onError&&n.interceptors.response.use(o=>o,t.onError),n}function je({query:e}){const t={};return delete e.resolveLinks,t.params=xr(e),t}function pu(e){const t=Object.getOwnPropertyNames(e);for(const r of t){const n=e[r];n&&typeof n=="object"&&pu(n)}return Object.freeze(e)}function sd(e){return pu(e.sys||{}),e}function Da(){const e=fp();if(!e)return null;const t=e.navigator.userAgent,r=e.navigator.platform,n=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return n.indexOf(r)!==-1?"macOS":i.indexOf(r)!==-1?"iOS":o.indexOf(r)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(r)?"Linux":null}function ud(){const e=lt.platform||"linux",t=lt.version||"0.0.0",r={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in r?`${r[e]||"Linux"}/${t}`:null}function cd(e,t,r,n){const o=[];t&&o.push(`app ${t}`),r&&o.push(`integration ${r}`),o.push(`sdk ${e}`);let i=null;try{cp()?(i=Da(),o.push("platform ReactNative")):up()?(i=ud(),o.push(`platform node.js/${lp()}`)):(i=Da(),o.push("platform browser"))}catch{i=null}return i&&o.push(`os ${i}`),`${o.filter(s=>s!=="").join("; ")};`}function du(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,
12configurable:!1,writable:!1,value:function(){return xr(this)}})}var to,Na;function ld(){if(Na)return to;Na=1;function e(t,r){return function(n){return t(r(n))}}return to=e,to}var ro,xa;function fd(){if(xa)return ro;xa=1;var e=ld(),t=e(Object.getPrototypeOf,Object);return ro=t,ro}var no,ja;function pd(){if(ja)return no;ja=1;var e=Xs(),t=fd(),r=Zs(),n="[object Object]",o=Function.prototype,i=Object.prototype,s=o.toString,a=i.hasOwnProperty,c=s.call(Object);function p(u){if(!r(u)||e(u)!=n)return!1;var l=t(u);if(l===null)return!0;var O=a.call(l,"constructor")&&l.constructor;return typeof O=="function"&&O instanceof O&&s.call(O)==c}return no=p,no}var dd=pd();const oo=Vt(dd);function yd(e){if(e?.headers?.Authorization){const t=`...${e.headers.Authorization.toString().substr(-5)}`;e.headers.Authorization=`Bearer ${t}`}if(e?.headers?.["X-Contentful-Resource-Resolution"]){const t=`...${e.headers["X-Contentful-Resource-Resolution"].toString().substr(-5)}`;e.headers["X-Contentful-Resource-Resolution"]=t}}function xe(e){const{config:t,response:r}=e;let n;if(yd(t),!oo(r)||!oo(t))throw e;const o=r?.data,i={status:r?.status,statusText:r?.statusText,message:"",details:{}};t&&oo(t)&&(i.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&typeof o=="object"&&("requestId"in o&&(i.requestId=o.requestId||"UNKNOWN"),"message"in o&&(i.message=o.message||""),"details"in o&&(i.details=o.details||{}),n=o.sys?.id);const s=new Error;s.name=n&&n!=="Unknown"?n:`${r?.status} ${r?.statusText}`;try{s.message=JSON.stringify(i,null," ")}catch{s.message=i?.message??""}throw s}function hd(e){return function(r){return Object.assign({},e,r)}}var yu={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},Qo={0:8203,1:8204,2:8205,3:65279},md=new Array(4).fill(String.fromCodePoint(Qo[0])).join("");function gd(e){let t=JSON.stringify(e);return`${md}${Array.from(t).map(r=>{let n=r.charCodeAt(0);if(n>255)throw new Error(`Only ASCII edit info can be encoded. Error attempting to encode ${t} on character ${r} (${n})`);return Array.from(n.toString(4).padStart(4,"0")).map(o=>String.fromCodePoint(Qo[o])).join("")}).join("")}`}function vd(e){return!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e)?!1:!!Date.parse(e)}function bd(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}function Ed(e,t,r="auto"){return r===!0||r==="auto"&&(vd(e)||bd(e))?e:`${e}${gd(t)}`}Object.fromEntries(Object.entries(Qo).map(e=>e.reverse()));Object.fromEntries(Object.entries(yu).map(e=>e.reverse()));`${Object.values(yu).map(e=>`\\u{${e.toString(16)}}`).join("")}`;function Gt(e,t){return Ed(e,t)}var io,Ba;function Od(){if(Ba)return io;Ba=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return io=function(r,n,o){if(t.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var s=0;s<i;s++)n.call(o,r[s],s,r);else for(var a in r)e.call(r,a)&&n.call(o,r[a],a,r)},io}var ao,Ma;function Sd(){if(Ma)return ao;Ma=1;var e=Od();ao=t;function t(r,n,o){if(arguments.length===3)return t.set(r,n,o);if(arguments.length===2)return t.get(r,n);var i=t.bind(t,r);for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s].bind(i,r));return i}return t.get=function(r,n){for(var o=Array.isArray(n)?n:t.parse(n),i=0;i<o.length;++i){var s=o[i];if(!(typeof r=="object"&&s in r))throw new Error("Invalid reference token: "+s);r=r[s]}return r},t.set=function(r,n,o){var i=Array.isArray(n)?n:t.parse(n),s=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var c=i[a];typeof c!="string"&&typeof c!="number"&&(c=String(c)),!(c==="__proto__"||c==="constructor"||c==="prototype")&&(c==="-"&&Array.isArray(r)&&(c=r.length),s=i[a+1],c in r||(s.match(/^(\d+|-)$/)?r[c]=[]:r[c]={}),r=r[c])}return s==="-"&&Array.isArray(r)&&(s=r.length),r[s]=o,this},t.remove=function(r,n){var o=Array.isArray(n)?n:t.parse(n),i=o[o.length-1];if(i===void 0)throw new Error('Invalid JSON pointer for remove: "'+n+'"');var s=t.get(r,o.slice(0,-1));if(Array.isArray(s)){var a=+i;
12if(i===""&&isNaN(a))throw new Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(s,a,1)}else delete s[i]},t.dict=function(r,n){var o={};return t.walk(r,function(i,s){o[s]=i},n),o},t.walk=function(r,n,o){var i=[];o=o||function(s){var a=Object.prototype.toString.call(s);return a==="[object Object]"||a==="[object Array]"},(function s(a){e(a,function(c,p){i.push(String(p)),o(c)?s(c):n(c,t.compile(i)),i.pop()})})(r)},t.has=function(r,n){try{t.get(r,n)}catch{return!1}return!0},t.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(t.unescape)},t.compile=function(r){return r.length===0?"":"/"+r.map(t.escape).join("/")},ao}var Qe=Sd();const wd=({pointer:e,mappings:t,data:r,hiddenStrings:n})=>{const o=t[e];if(o){delete t[e];const i=jo(r,e);for(const s of i){t[s]=o;const a=Qe.get(r,s),c=Gt(a,n);Qe.set(r,s,c)}}else{const i=jo(r,e);for(const s of i){const a=Qe.get(r,s),c=Gt(a,n);Qe.set(r,s,c)}}};function _d(e){return"content"in e&&!!e.content}const jo=(e,t="")=>{const r=[],n=Qe.get(e,t);if(_d(n))for(let o=0;o<n.content.length;o++)n.content[o].nodeType==="text"?r.push(`${t}/content/${o}/value`):r.push(...jo(e,`${t}/content/${o}`));return r},Ua=({entityId:e,entityType:t,space:r,environment:n,field:o,locale:i,editorInterface:s,fieldType:a,targetOrigin:c,platform:p})=>({origin:"contentful.com",href:`${`https://app.contentful.com/spaces/${r}/environments/${n}`}/${t==="Entry"?"entries":"assets"}/${e}/?focusedField=${o}&focusedLocale=${i}&source=vercel-content-link`,contentful:{editorInterface:s,fieldType:a}}),Ad=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),Rd=e=>Ld.includes(e);function Td(e){if(typeof structuredClone=="function")return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}const Ld=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function ka(e,t,r,n,o,i,s){const a=s?t[s]:t;switch(e){case"Symbol":{const c=Gt(a,r);Qe.set(n,o,c);break}case"Text":{const c=Gt(a,r);Qe.set(n,o,c);break}case"RichText":{wd({pointer:"",mappings:i,data:a,hiddenStrings:r});break}case"Array":{const c=a.map(p=>typeof p=="string"?Gt(p,r):p);Qe.set(n,o,c);break}}}const yr=(e,t,r,n,o)=>{if(!e.fields)return;const{contentSourceMaps:i}=e.sys;if(!i)return;const{mappings:s}=i;for(const a in s){const{source:c}=s[a],p=e.sys.space.sys.id,u=e.sys.environment.sys.id,l=e.sys.id,O=e.sys.type,A=t[c.fieldType],d=r[c.editorInterface];if(Ad(d.widgetNamespace)&&!Rd(d.widgetId))continue;const m=a.startsWith("/")?a:`/${a}`;if(Qe.has(e,m)){const y=Qe.get(e,m);if(y===null)return;const f=m.split("/").pop();if(!f){console.error("Field name could not be extracted from the pointer",m);return}const E=e.sys.locale;if(E){const g=Ua({entityId:l,entityType:O,space:p,environment:u,field:f,locale:E,editorInterface:d,fieldType:A,targetOrigin:n,platform:o});ka(A,y,g,e,m,s)}else Object.keys(y).forEach(g=>{const N=Ua({entityId:l,entityType:O,space:p,environment:u,field:f,locale:g,editorInterface:d,fieldType:A,targetOrigin:n,platform:o});ka(A,y,N,e,`${m}/${g}`,s,g)})}}},Pd=(e,t,r)=>{var n;const o=Td(e);if(o.sys&&"items"in o){const i=o;if(!((n=i.sys)!=null&&n.contentSourceMapsLookup))return i;const{contentSourceMapsLookup:{fieldTypes:s,editorInterfaces:a}}=i.sys,{items:c,includes:p}=i;c.forEach(u=>yr(u,s,a,t,r)),p&&p.Entry&&p.Entry.forEach(u=>yr(u,s,a,t,r)),p&&p.Asset&&p.Asset.forEach(u=>yr(u,s,a,t,r))}else{const i=o;if(!i.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),i;yr(i,i.sys.contentSourceMapsLookup.fieldTypes,i.sys.contentSourceMapsLookup.editorInterfaces,t,r)}return o};function qt(e){return Dd(e)||Id(e)||hu(e)||Cd()}function Cd(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 13In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Id(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dd(e){if(Array.isArray(e))return Mo(e)}function Bo(e){"@babel/helpers - typeof";return Bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bo(e)}function Nd(e,t){return Bd(e)||jd(e,t)||hu(e,t)||xd()}
13function xd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 14In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hu(e,t){if(e){if(typeof e=="string")return Mo(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mo(e,t):void 0}}function Mo(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function jd(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,s,a=[],c=!0,p=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(u){p=!0,o=u}finally{try{if(!c&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(p)throw o}}return a}}function Bd(e){if(Array.isArray(e))return e}var Wt={},Md=function(t){return t&&t.sys&&t.sys.type==="Link"},Ud=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},kd=function(t){return t.space&&t.environment?["".concat(t.type,"!").concat(t.id),"".concat(t.space.sys.id,"!").concat(t.environment.sys.id,"!").concat(t.type,"!").concat(t.id)]:["".concat(t.type,"!").concat(t.id)]},$a=function(t,r){var n=r.entryId,o=r.linkType,i=r.spaceId,s=r.environmentId;return i&&s?t.get("".concat(i,"!").concat(s,"!").concat(o,"!").concat(n)):t.get("".concat(o,"!").concat(n))},$d=function(t){var r=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(r.test(t)){var n=t.match(r),o=Nd(n,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,c=o[3];return{spaceId:i,environmentId:a,entryId:c}}},Fd=function(t,r){var n=r.sys,o=n.type,i=n.linkType;if(o==="ResourceLink"){if(!i.startsWith("Contentful:"))return r;var s=r.sys.urn,a=$d(s),c=a.spaceId,p=a.environmentId,u=a.entryId,l=i.split(":")[1];return $a(t,{linkType:l,entryId:u,spaceId:c,environmentId:p})||Wt}var O=r.sys.id;return $a(t,{linkType:i,entryId:O})||Wt},qd=function(t){if(Array.isArray(t))return t.filter(function(n){return n!==Wt});for(var r in t)t[r]===Wt&&delete t[r];return t},mu=function(t,r,n,o){if(r(t))return n(t);if(t&&Bo(t)==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=mu(t[i],r,n,o));o&&(t=qd(t))}return t},Hd=function(t,r,n){var o=Fd(t,r);return o===Wt?n?o:r:o},Kd=function(t,r){if(!Array.isArray(r))return t;var n=Object.keys(t).filter(function(o){return r.indexOf(o)!==-1});return n.reduce(function(o,i){return o[i]=t[i],o},{})},gu=function(t,r){if(r=r||{},!t.items)return[];var n=xr(t),o=Object.keys(n.includes||{}).reduce(function(a,c){return[].concat(qt(a),qt(n.includes[c]))},[]),i=[].concat(qt(n.items),qt(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,c){var p=kd(c.sys).map(function(u){return[u,c]});return a.push.apply(a,qt(p)),a},[]));return i.forEach(function(a){var c=Kd(a,r.itemEntryPoints);Object.assign(a,mu(c,function(p){return Md(p)||Ud(p)},function(p){return Hd(s,p,r.removeUnresolved)},r.removeUnresolved))}),n.items},hr={exports:{}},Fa;function Gd(){return Fa||(Fa=1,(function(e,t){t=e.exports=r,t.getSerialize=n;function r(o,i,s,a){return JSON.stringify(o,n(i,a),s)}function n(o,i){var s=[],a=[];return i==null&&(i=function(c,p){return s[0]===p?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(p)).join(".")+"]"}),function(c,p){if(s.length>0){var u=s.indexOf(this);~u?s.splice(u+1):s.push(this),~u?a.splice(u,1/0,c):a.push(c),~s.indexOf(p)&&(p=i.call(this,c,p))}else s.push(p);return o==null?p:o.call(this,c,p)}}})(hr,hr.exports)),hr.exports}var zd=Gd();const Wd=Vt(zd);function vu(e){return Object.defineProperty(e,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(t=null,r=""){return Wd(this,t,r,(n,o)=>({sys:{type:"Link",linkType:"Entry",id:o.sys.id,circular:!0}}))}})}async function Vd(e,t,r){if(!t||!t.initial&&!t.nextSyncToken&&!t.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(t.content_type&&!t.type)t.type="Entry";else if(t.content_type&&t.type&&t.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const n={withoutLinkResolution:!1,withoutUnresolvableLinks:!1,paginate:!0},{withoutLinkResolution:o,withoutUnresolvableLinks:i,paginate:s}=Object.assign(Object.assign({},n),r),a=await bu(e,[],t,{paginate:s});o||(a.items=gu(a,{removeUnresolved:i,itemEntryPoints:["fields"]}));const c=Yd(a.items);return a.nextSyncToken&&(c.nextSyncToken=a.nextSyncToken),a.nextPageToken&&
14(c.nextPageToken=a.nextPageToken),sd(vu(du(c)))}function Yd(e){const t=r=>(n,o)=>(o.sys.type===r&&n.push(du(o)),n);return{entries:e.reduce(t("Entry"),[]),assets:e.reduce(t("Asset"),[]),deletedEntries:e.reduce(t("DeletedEntry"),[]),deletedAssets:e.reduce(t("DeletedAsset"),[])}}function Jd(e){return e.nextPageToken?{sync_token:e.nextPageToken}:e.nextSyncToken?{sync_token:e.nextSyncToken}:e.sync_token?{sync_token:e.sync_token}:e}async function bu(e,t,r,{paginate:n}){const o=Jd(r),s=(await e.get("sync",je({query:o}))).data||{};return t=t.concat(s.items||[]),s.nextPageUrl?n?(delete o.initial,o.sync_token=so(s.nextPageUrl),bu(e,t,o,{paginate:n})):{items:t,nextPageToken:so(s.nextPageUrl)}:s.nextSyncUrl?{items:t,nextSyncToken:so(s.nextSyncUrl)}:{items:[]}}function so(e){const t=e.split("?");return t.length>0?t[1].replace("sync_token=",""):""}function ut(e){const t={};let r=!1;for(const n in e)Array.isArray(e[n])&&(t[n]=e[n].join(","),r=!0);return r?Object.assign(Object.assign({},e),t):e}function Eu(e){if(!e.select)return new Set;const t=Array.isArray(e.select)?e.select:e.select.split(",").map(r=>r.trim());return new Set(t)}function et(e){if(!e.select)return e;const t=Eu(e);return t.has("sys")?e:(t.add("sys.id"),t.add("sys.type"),Object.assign(Object.assign({},e),{select:[...t].join(",")}))}function qa(e,{resolveLinks:t,removeUnresolved:r}){const n=vu(e);return t&&(n.items=gu(n,{removeUnresolved:r,itemEntryPoints:["fields"]})),n}class Fe extends Error{constructor(t,r){super(`Invalid "${t}" provided, `+r),this.name="ValidationError"}}function Qd(e,t,r){if(r=r||{},typeof t!="number")throw new Fe(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(r.maximum&&t>r.maximum)throw new Fe(e,`value (${t}) cannot be further in the future than expected maximum (${r.maximum})`);if(r.now&&t<r.now)throw new Fe(e,`value (${t}) cannot be in the past, current time was ${r.now}`)}function Xd(e){return!!(e&&typeof e=="object"&&typeof e.lte=="string")}function Zd(e){return!!(e&&typeof e=="object"&&(typeof e.lte=="string"||e.lte instanceof Date))}const ey=e=>{if(typeof e!="object"||e===null||Array.isArray(e))throw new Fe("timelinePreview","The 'timelinePreview' parameter must be an object.");const t=Xd(e.release),r=Zd(e.timestamp);if(!t&&!r)throw new Fe("timelinePreview","The 'timelinePreview' object must have at least one of 'release' or 'timestamp' with a valid 'lte' property.");return t||r},Ha=e=>{var t,r;const n=e?.host,o=(t=e?.timelinePreview)!==null&&t!==void 0?t:(r=e?.alphaFeatures)===null||r===void 0?void 0:r.timelinePreview;return{enabled:oy(n,o),timelinePreview:o}};function ty(e){if(e.locale==="*")throw new Fe("locale",`The use of locale='*' is no longer supported.To fetch an entry in all existing locales, 15 use client.withAllLocales instead of the locale='*' parameter.`)}function ry(e){if(e.locale)throw new Fe("locale","The `locale` parameter is not allowed")}function mr(e,t){t?ry(e):ty(e)}function wr(e){if("resolveLinks"in e)throw new Fe("resolveLinks",`The use of the 'resolveLinks' parameter is no longer supported. By default, links are resolved. 16 If you do not want to resolve links, use client.withoutLinkResolution.`)}function _r(e){if("removeUnresolved"in e)throw new Fe("removeUnresolved",`The use of the 'removeUnresolved' parameter is no longer supported. By default, unresolved links are kept as link objects. 17 If you do not want to include unresolved links, use client.withoutUnresolvableLinks.`)}function ny(e,t){if(t===void 0)return!1;if(typeof t!="boolean")throw new Fe("includeContentSourceMaps","The 'includeContentSourceMaps' parameter must be a boolean.");const r=typeof e=="string"&&e.startsWith("preview");if(t&&!r)throw new Fe("includeContentSourceMaps",`The 'includeContentSourceMaps' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to include Content Source Maps. 18 `);return t}function oy(e,t){if(t===void 0)return!1;const r=ey(t),n=typeof e=="string"&&e.startsWith("preview");if(r&&!n)throw new Fe("timelinePreview",`The 'timelinePreview' parameter can only be used with the CPA. Please set host to 'preview.contentful.com' or 'preview.eu.contentful.com' to enable Timeline Preview. 19 `);return!0}function Tt(e){for(const t in e){const r=e[t];if(typeof r=="object"&&r!==null&&!Array.isArray(r))throw new Error(`Objects are not supported as value for the "${t}" query parameter.`)}}const iy=2880*60;
19class ay extends Error{constructor(t,r,n){super("The resource could not be found."),this.sys={type:"Error",id:"NotFound"},this.details={type:"Entry",id:t,environment:r,space:n}}}function Ou({http:e,getGlobalOptions:t},r){const n=(T="unknown")=>new ay(T,t().environment,t().space),o=T=>{let j=T==="space"?t().spaceBaseUrl:t().environmentBaseUrl;if(!j)throw new Error("Please define baseUrl for "+T);return j.endsWith("/")||(j+="/"),j};function i(T={}){var j,k;const M=e.httpClientParams,Y=(j=M?.includeContentSourceMaps)!==null&&j!==void 0?j:(k=M?.alphaFeatures)===null||k===void 0?void 0:k.includeContentSourceMaps,ce=M?.host;if(ny(ce,Y)&&(T.includeContentSourceMaps=!0,T.select)){const Ae=Eu(T);Ae.add("sys"),T.select=Array.from(Ae).join(",")}return T}function s(T){const{enabled:j}=Ha(e.httpClientParams);return j?`timeline/${T}`:T}function a(T){const{enabled:j,timelinePreview:k}=Ha(e.httpClientParams);return j&&(k?.release&&(T.release=k.release),k?.timestamp&&(T.timestamp=k.timestamp)),T}function c(T,j){var k;return((k=j?.params)===null||k===void 0?void 0:k.includeContentSourceMaps)?Pd(T):T}async function p({context:T,path:j,config:k}){const M=o(T);try{const Y=await e.get(M+j,k);return c(Y.data,k)}catch(Y){xe(Y)}}async function u({context:T,path:j,data:k,config:M}){const Y=o(T);try{return(await e.post(Y+j,k,M)).data}catch(ce){xe(ce)}}async function l(){return p({context:"space",path:""})}async function O(T){return p({context:"environment",path:`content_types/${T}`})}async function A(T={}){return p({context:"environment",path:"content_types",config:je({query:T})})}async function d(T,j={}){return y(T,j,r)}async function m(T={}){return E(T,r)}async function y(T,j,k={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:M}=k;return mr(j,M),wr(j),_r(j),Tt(j),f(T,M?Object.assign(Object.assign({},j),{locale:"*"}):j,k)}async function f(T,j,k){if(!T)throw n(T);try{const M=await N(Object.assign({"sys.id":T},i(j)),k);if(M.items.length>0)return M.items[0];throw n(T)}catch(M){xe(M)}}async function E(T,j={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:k}=j;return mr(T,k),wr(T),_r(T),Tt(T),N(k?Object.assign(Object.assign({},T),{locale:"*"}):T,j)}function g(T){const j=a(Object.assign({},T));return i(ut(et(j)))}async function N(T,j){const{withoutLinkResolution:k,withoutUnresolvableLinks:M}=j;try{const Y=await p({context:"environment",path:s("entries"),config:je({query:g(T)})});return qa(Y,{resolveLinks:!k,removeUnresolved:M??!1})}catch(Y){xe(Y)}}async function C(T,j={}){return w(T,j,r)}async function I(T={}){return P(T,r)}async function P(T,j={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:k}=j;mr(T,k),Tt(T);const M=k?Object.assign(Object.assign({},T),{locale:"*"}):T;return x(M)}async function D(T,j){try{return p({context:"environment",path:s(`assets/${T}`),config:je({query:g(j)})})}catch(k){xe(k)}}async function w(T,j,k={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){const{withAllLocales:M}=k;mr(j,M),Tt(j);const Y=M?Object.assign(Object.assign({},j),{locale:"*"}):j;return D(T,Y)}async function x(T){try{return p({context:"environment",path:s("assets"),config:je({query:g(T)})})}catch(j){xe(j)}}async function b(T){return p({context:"environment",path:`tags/${T}`})}async function L(T={}){return Tt(T),p({context:"environment",path:"tags",config:je({query:ut(et(T))})})}async function U(T){try{const j=Math.floor(Date.now()/1e3),k=j+iy;Qd("expiresAt",T,{maximum:k,now:j})}catch(j){xe(j)}return u({context:"environment",path:"asset_keys",data:{expiresAt:T}})}async function $(T={}){return Tt(T),p({context:"environment",path:"locales",config:je({query:et(T)})})}async function H(T,j={paginate:!0}){return V(T,j,r)}async function V(T,j,k={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){wr(T),_r(T);const M=Object.assign(Object.assign({},j),k);return X(e),Vd(e,T,M)}function ee(T){return G(T,r)}function G(T,j={withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!1}){return J(T,j)}function J(T,j){const{withoutLinkResolution:k,withoutUnresolvableLinks:M}=j;return qa(T,{resolveLinks:!k,removeUnresolved:M??!1})}function z(T,j={}
19){return F(T,j)}async function F(T,j={}){try{return p({context:"environment",path:`taxonomy/concept-schemes/${T}`,config:je({query:ut(et(j))})})}catch(k){xe(k)}}function oe(T={}){return fe(T)}async function fe(T={}){try{return p({context:"environment",path:"taxonomy/concept-schemes",config:je({query:ut(et(T))})})}catch(j){xe(j)}}function ve(T,j={}){return Q(T,j)}async function Q(T,j={}){try{return p({context:"environment",path:`taxonomy/concepts/${T}`,config:je({query:ut(et(j))})})}catch(k){xe(k)}}function W(T={}){return ae(T)}async function ae(T={}){try{return p({context:"environment",path:"taxonomy/concepts",config:je({query:ut(et(T))})})}catch(j){xe(j)}}function pe(T,j={}){return de(T,j)}async function de(T,j={}){try{return p({context:"environment",path:`taxonomy/concepts/${T}/ancestors`,config:je({query:ut(et(j))})})}catch(k){xe(k)}}function re(T,j={}){return se(T,j)}async function se(T,j={}){try{return p({context:"environment",path:`taxonomy/concepts/${T}/descendants`,config:je({query:ut(et(j))})})}catch(k){xe(k)}}function X(T){T.defaults.baseURL=t().environmentBaseUrl}return{version:"11.9.0",getSpace:l,getContentType:O,getContentTypes:A,getAsset:C,getAssets:I,getTag:b,getTags:L,getLocales:$,parseEntries:ee,sync:H,getEntry:d,getEntries:m,getConceptScheme:z,getConceptSchemes:oe,getConcept:ve,getConcepts:W,getConceptAncestors:pe,getConceptDescendants:re,createAssetKey:U}}function sy({http:e,getGlobalOptions:t},r,n){const o=Ou({http:e,getGlobalOptions:t},r),i=o||{};return Object.defineProperty(i,"withAllLocales",{get:()=>n(Object.assign(Object.assign({},r),{withAllLocales:!0}))}),Object.defineProperty(i,"withoutLinkResolution",{get:()=>n(Object.assign(Object.assign({},r),{withoutLinkResolution:!0}))}),Object.defineProperty(i,"withoutUnresolvableLinks",{get:()=>n(Object.assign(Object.assign({},r),{withoutUnresolvableLinks:!0}))}),Object.create(i)}const uy=({http:e,getGlobalOptions:t})=>{function r(o){return sy({http:e,getGlobalOptions:t},o,r)}const n=Ou({http:e,getGlobalOptions:t},{withoutLinkResolution:!1,withAllLocales:!1,withoutUnresolvableLinks:!1});return Object.assign(Object.assign({},n),{get withAllLocales(){return r({withAllLocales:!0,withoutLinkResolution:!1,withoutUnresolvableLinks:!1})},get withoutLinkResolution(){return r({withAllLocales:!1,withoutLinkResolution:!0,withoutUnresolvableLinks:!1})},get withoutUnresolvableLinks(){return r({withAllLocales:!1,withoutLinkResolution:!1,withoutUnresolvableLinks:!0})}})};function Nh(e){if(!e.accessToken)throw new TypeError("Expected parameter accessToken");if(!e.space)throw new TypeError("Expected parameter space");wr(e),_r(e);const r=Object.assign(Object.assign({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),e),n=cd("contentful.js/11.9.0",r.application,r.integration);r.headers=Object.assign(Object.assign({},r.headers),{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":n});const o=fu(ge,r);if(!o.defaults.baseURL)throw new Error("Please define a baseURL");const i=hd({space:r.space,environment:r.environment,spaceBaseUrl:o.defaults.baseURL,environmentBaseUrl:`${o.defaults.baseURL}environments/${r.environment}`});return o.defaults.baseURL=i({}).environmentBaseUrl,uy({http:o,getGlobalOptions:i})}var uo={},co={},lo={},Ka;function Zt(){return Ka||(Ka=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=(function(r){return r.DOCUMENT="document",r.PARAGRAPH="paragraph",r.HEADING_1="heading-1",r.HEADING_2="heading-2",r.HEADING_3="heading-3",r.HEADING_4="heading-4",r.HEADING_5="heading-5",r.HEADING_6="heading-6",r.OL_LIST="ordered-list",r.UL_LIST="unordered-list",r.LIST_ITEM="list-item",r.HR="hr",r.QUOTE="blockquote",r.EMBEDDED_ENTRY="embedded-entry-block",r.EMBEDDED_ASSET="embedded-asset-block",r.EMBEDDED_RESOURCE="embedded-resource-block",r.TABLE="table",r.TABLE_ROW="table-row",r.TABLE_CELL="table-cell",r.TABLE_HEADER_CELL="table-header-cell",r})({})})(lo)),lo}var fo={},Ga;function Mr(){return Ga||(Ga=1,(function(e){Object.defineProperty(e,"__esMo
19dule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=(function(r){return r.ASSET_HYPERLINK="asset-hyperlink",r.EMBEDDED_ENTRY="embedded-entry-inline",r.EMBEDDED_RESOURCE="embedded-resource-inline",r.ENTRY_HYPERLINK="entry-hyperlink",r.HYPERLINK="hyperlink",r.RESOURCE_HYPERLINK="resource-hyperlink",r})({})})(fo)),fo}var po={},za;function Su(){return za||(za=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=(function(r){return r.BOLD="bold",r.ITALIC="italic",r.UNDERLINE="underline",r.CODE="code",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",r.STRIKETHROUGH="strikethrough",r})({})})(po)),po}var yo={},Wa;function wu(){return Wa||(Wa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(I,P){for(var D in P)Object.defineProperty(I,D,{enumerable:!0,get:Object.getOwnPropertyDescriptor(P,D).get})}t(e,{get CONTAINERS(){return f},get HEADINGS(){return E},get LIST_ITEM_BLOCKS(){return A},get TABLE_BLOCKS(){return d},get TEXT_CONTAINERS(){return g},get TOP_LEVEL_BLOCKS(){return O},get V1_MARKS(){return C},get V1_NODE_TYPES(){return N},get VOID_BLOCKS(){return m}});var r=Zt(),n=Mr(),o=Su();function i(I,P){(P==null||P>I.length)&&(P=I.length);for(var D=0,w=new Array(P);D<P;D++)w[D]=I[D];return w}function s(I){if(Array.isArray(I))return i(I)}function a(I,P,D){return P in I?Object.defineProperty(I,P,{value:D,enumerable:!0,configurable:!0,writable:!0}):I[P]=D,I}function c(I){if(typeof Symbol<"u"&&I[Symbol.iterator]!=null||I["@@iterator"]!=null)return Array.from(I)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(I){return s(I)||c(I)||l(I)||p()}function l(I,P){if(I){if(typeof I=="string")return i(I,P);var D=Object.prototype.toString.call(I).slice(8,-1);if(D==="Object"&&I.constructor&&(D=I.constructor.name),D==="Map"||D==="Set")return Array.from(D);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return i(I,P)}}var O=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE,r.BLOCKS.TABLE],A=[r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],d=[r.BLOCKS.TABLE,r.BLOCKS.TABLE_ROW,r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL],m=[r.BLOCKS.HR,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,r.BLOCKS.EMBEDDED_RESOURCE],y,f=(y={},a(y,r.BLOCKS.OL_LIST,[r.BLOCKS.LIST_ITEM]),a(y,r.BLOCKS.UL_LIST,[r.BLOCKS.LIST_ITEM]),a(y,r.BLOCKS.LIST_ITEM,A),a(y,r.BLOCKS.QUOTE,[r.BLOCKS.PARAGRAPH]),a(y,r.BLOCKS.TABLE,[r.BLOCKS.TABLE_ROW]),a(y,r.BLOCKS.TABLE_ROW,[r.BLOCKS.TABLE_CELL,r.BLOCKS.TABLE_HEADER_CELL]),a(y,r.BLOCKS.TABLE_CELL,[r.BLOCKS.PARAGRAPH,r.BLOCKS.UL_LIST,r.BLOCKS.OL_LIST]),a(y,r.BLOCKS.TABLE_HEADER_CELL,[r.BLOCKS.PARAGRAPH]),y),E=[r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6],g=[r.BLOCKS.PARAGRAPH].concat(u(E)),N=[r.BLOCKS.DOCUMENT,r.BLOCKS.PARAGRAPH,r.BLOCKS.HEADING_1,r.BLOCKS.HEADING_2,r.BLOCKS.HEADING_3,r.BLOCKS.HEADING_4,r.BLOCKS.HEADING_5,r.BLOCKS.HEADING_6,r.BLOCKS.OL_LIST,r.BLOCKS.UL_LIST,r.BLOCKS.LIST_ITEM,r.BLOCKS.HR,r.BLOCKS.QUOTE,r.BLOCKS.EMBEDDED_ENTRY,r.BLOCKS.EMBEDDED_ASSET,n.INLINES.HYPERLINK,n.INLINES.ENTRY_HYPERLINK,n.INLINES.ASSET_HYPERLINK,n.INLINES.EMBEDDED_ENTRY,"text"],C=[o.MARKS.BOLD,o.MARKS.CODE,o.MARKS.ITALIC,o.MARKS.UNDERLINE]})(yo)),yo}var ho={},Va;function cy(){return Va||(Va=1,Object.defineProperty(ho,"__esModule",{value:!0})),ho}var mo={},Ya;function ly(){return Ya||(Ya=1,Object.defineProperty(mo,"__esModule",{value:!0})),mo}var go={},Ja;function fy(){return Ja||(Ja=1,(function(e){Object.defineProperty(e,"__esMo
19dule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=Zt(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}})(go)),go}var vo={},Qa;function py(){return Qa||(Qa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(f,E){for(var g in E)Object.defineProperty(f,g,{enumerable:!0,get:Object.getOwnPropertyDescriptor(E,g).get})}t(e,{get isBlock(){return l},get isEmptyParagraph(){return A},get isInline(){return u},get isText(){return O},get stripEmptyTrailingParagraphFromDocument(){return y}});var r=Zt(),n=Mr();function o(f,E,g){return E in f?Object.defineProperty(f,E,{value:g,enumerable:!0,configurable:!0,writable:!0}):f[E]=g,f}function i(f){for(var E=1;E<arguments.length;E++){var g=arguments[E]!=null?arguments[E]:{},N=Object.keys(g);typeof Object.getOwnPropertySymbols=="function"&&(N=N.concat(Object.getOwnPropertySymbols(g).filter(function(C){return Object.getOwnPropertyDescriptor(g,C).enumerable}))),N.forEach(function(C){o(f,C,g[C])})}return f}function s(f,E){var g=Object.keys(f);if(Object.getOwnPropertySymbols){var N=Object.getOwnPropertySymbols(f);g.push.apply(g,N)}return g}function a(f,E){return E=E??{},Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(E)):s(Object(E)).forEach(function(g){Object.defineProperty(f,g,Object.getOwnPropertyDescriptor(E,g))}),f}function c(f){"@swc/helpers - typeof";return f&&typeof Symbol<"u"&&f.constructor===Symbol?"symbol":typeof f}function p(f,E){var g=!0,N=!1,C=void 0;try{for(var I=Object.keys(f)[Symbol.iterator](),P;!(g=(P=I.next()).done);g=!0){var D=P.value;if(E===f[D])return!0}}catch(w){N=!0,C=w}finally{try{!g&&I.return!=null&&I.return()}finally{if(N)throw C}}return!1}function u(f){return p(n.INLINES,f.nodeType)}function l(f){return p(r.BLOCKS,f.nodeType)}function O(f){return f.nodeType==="text"}
19function A(f){if(f.nodeType!==r.BLOCKS.PARAGRAPH||f.content.length!==1)return!1;var E=f.content[0];return E.nodeType==="text"&&E.value===""}function d(f){return f!=null&&(typeof f>"u"?"undefined":c(f))==="object"&&"content"in f&&Array.isArray(f.content)}var m=2;function y(f){if(!d(f)||f.content.length<m)return f;var E=f.content[f.content.length-1];return A(E)?a(i({},f),{content:f.content.slice(0,-1)}):f}})(vo)),vo}var bo={},Eo={},Oo={},Xa;function dy(){return Xa||(Xa=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(d,m){for(var y in m)Object.defineProperty(d,y,{enumerable:!0,get:Object.getOwnPropertyDescriptor(m,y).get})}t(e,{get enumError(){return l},get maxSizeError(){return u},get minSizeError(){return p},get requiredPropertyError(){return A},get typeMismatchError(){return c},get unknownPropertyError(){return O}});function r(d,m){(m==null||m>d.length)&&(m=d.length);for(var y=0,f=new Array(m);y<m;y++)f[y]=d[y];return f}function n(d){if(Array.isArray(d))return r(d)}function o(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(d){return n(d)||o(d)||a(d)||i()}function a(d,m){if(d){if(typeof d=="string")return r(d,m);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(y);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return r(d,m)}}var c=function(d){var m=d.path,y=d.property,f=d.typeName,E=d.value;return{details:'The type of "'.concat(y,'" is incorrect, expected type: ').concat(f),name:"type",path:m.toArray(),type:f,value:E}},p=function(d){var m=d.min,y=d.value,f=d.path;return{name:"size",min:m,path:f.toArray(),details:"Size must be at least ".concat(m),value:y}},u=function(d){var m=d.max,y=d.value,f=d.path;return{name:"size",max:m,path:f.toArray(),details:"Size must be at most ".concat(m),value:y}},l=function(d){var m=d.expected,y=d.value,f=d.path;return{details:"Value must be one of expected values",name:"in",expected:s(m).sort(),path:f.toArray(),value:y}},O=function(d){var m=d.property,y=d.path;return{details:'The property "'.concat(m,'" is not expected'),name:"unexpected",path:y.toArray()}},A=function(d){var m=d.property,y=d.path;return{details:'The property "'.concat(m,'" is required here'),name:"required",path:y.toArray()}}})(Oo)),Oo}var Za;function Xo(){return Za||(Za=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return A}});var t=dy();function r(d,m){(m==null||m>d.length)&&(m=d.length);for(var y=0,f=new Array(m);y<m;y++)f[y]=d[y];return f}function n(d){if(Array.isArray(d))return r(d)}function o(d,m){if(!(d instanceof m))throw new TypeError("Cannot call a class as a function")}function i(d,m){for(var y=0;y<m.length;y++){var f=m[y];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}function s(d,m,y){return m&&i(d.prototype,m),d}function a(d,m,y){return m in d?Object.defineProperty(d,m,{value:y,enumerable:!0,configurable:!0,writable:!0}):d[m]=y,d}function c(d){if(typeof Symbol<"u"&&d[Symbol.iterator]!=null||d["@@iterator"]!=null)return Array.from(d)}function p(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(d){return n(d)||c(d)||O(d)||p()}function l(d){"@swc/helpers - typeof";return d&&typeof Symbol<"u"&&d.constructor===Symbol?"symbol":typeof d}function O(d,m){if(d){if(typeof d=="string")return r(d,m);var y=Object.prototype.toString.call(d).slice(8,-1);if(y==="Object"&&d.constructor&&(y=d.constructor.name),y==="Map"||y==="Set")return Array.from(y);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return r(d,m)}}var A=(function(){function d(m,y){var f=this,E=this;o(this,d),a(this,"obj",void 0),a(this,"path",void 0),a(this,"_errors",void 0),a(this,"catch",void 0),a(this,"exists",void 0),a(this,"object",void 0),a(this,"string",void 0),a(this,"number",void 0),a(this,"array",void 0),a(this,"enum",void 0),a(this,"empty",void 0),a(this,"minLength",void 0),a(this,"noAdditionalProperties",void 0),a(this,"each",void 0),this.obj=m,this.path=y,this._errors=[],this.catch=function(){for(var g=arguments.length,N=new Array(g),C=0;C<g;C++)N[C]=arguments[C];var I;(I=E._errors).push.apply(I,u(N))},this.exists=function(g){return g in f.obj?!0:(f.catch((0,t.requiredPropertyError)({property:g,path:f.path.of(g)})),!1)},this.object=function(g){var N,C=g?f.obj[g]:f.obj;if(g&&!f.exists(g))return!1;if((typeof C>"u"?"undefined":l(C))==="object"&&!Array.isArray(C)&&C!==null)return!0;var I=g?f.path.of(g):f.path,P=(N=g??f.path.last())!==null&&N!==void 0?N:"value";return f.catch((0,t.typeMismatchError)({typeName:"Object",property:P,path:I,value:C})),!1},this.string=function(g){var N=f.obj[g];return g&&!f.exists(g)?!1:typeof N=="string"?!0:(f.catch((0,t.typeMismatchError)({typeName:"String",property:g,path:f.path.of(g),value:N})),!1)},this.number=function(g,N){var C=f.obj[g];return N&&!(g in f.obj)?!0:f.exists(g)?typeof C=="number"&&!Number.isNaN(C)?!0:(f.catch((0,t.typeMismatchError)({typeName:"Number",property:g,path:f.path.of(g),value:C})),!1):!1},this.array=function(g){var N=f.obj[g];return g&&!f.exists(g)?!1:Array.isArray(N)?!0:(f.catch((0,t.typeMismatchError)({typeName:"Array",property:g,path:f.path.of(g),value:N})),!1)},this.enum=function(g,N){var C=f.obj[g];return typeof C=="string"&&N.includes(C)?!0:(f.catch((0,t.enumError)({expected:N,value:C,path:f.path.of(g)})),!1)},this.empty=function(g){if(!f.array(g))return!1;var N=f.obj[g];return N.length===0?!0:(f.catch((0,t.maxSizeError)({max:0,value:N,path:f.path.of(g)})),!1)},this.minLength=function(g,N){if(!f.array(g))return!1;var C=f.obj[g];return C.length>=N?!0:(f.catch((0,t.minSizeError)({min:N,value:C,path:f.path.of(g)})),!1)},this.noAdditionalProperties=function(g){var N=Object.keys(f.obj).sort().filter(function(C){return!g.includes(C)});
19return N.forEach(function(C){return f.catch((0,t.unknownPropertyError)({property:C,path:f.path.of(C)}))}),N.length===0},this.each=function(g,N){if(f.array(g)){var C=f.obj[g],I=!1;C.forEach(function(P,D){if(!I){var w=N(P,f.path.of(g).of(D));w.length>0&&(I=!0),f.catch.apply(f,u(w))}})}}}return s(d,[{key:"errors",get:function(){var y=this,f=function(E){return JSON.stringify({details:E.details,path:E.path})};return this._errors.filter(function(E,g){return y._errors.findIndex(function(N){return f(E)===f(N)})===g})}}]),d})()})(Eo)),Eo}var So={},es;function yy(){return es||(es=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(b,L){for(var U in L)Object.defineProperty(b,U,{enumerable:!0,get:Object.getOwnPropertyDescriptor(L,U).get})}t(e,{get EntityLinkAssertion(){return P},get HyperLinkAssertion(){return D},get NodeAssertion(){return I},get VOID_CONTENT(){return C},get assert(){return w},get assertLink(){return x}});var r=Xo();function n(b,L){(L==null||L>b.length)&&(L=b.length);for(var U=0,$=new Array(L);U<L;U++)$[U]=b[U];return $}function o(b){if(Array.isArray(b))return n(b)}function i(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function s(b,L,U){return L=l(L),m(b,N()?Reflect.construct(L,U||[],l(b).constructor):L.apply(b,U))}function a(b,L){if(!(b instanceof L))throw new TypeError("Cannot call a class as a function")}function c(b,L){for(var U=0;U<L.length;U++){var $=L[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(b,$.key,$)}}function p(b,L,U){return L&&c(b.prototype,L),b}function u(b,L,U){return L in b?Object.defineProperty(b,L,{value:U,enumerable:!0,configurable:!0,writable:!0}):b[L]=U,b}function l(b){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},l(b)}function O(b,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(L&&L.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),L&&y(b,L)}function A(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(b,L){return L&&(E(L)==="object"||typeof L=="function")?L:i(b)}function y(b,L){return y=Object.setPrototypeOf||function($,H){return $.__proto__=H,$},y(b,L)}function f(b){return o(b)||A(b)||g(b)||d()}function E(b){"@swc/helpers - typeof";return b&&typeof Symbol<"u"&&b.constructor===Symbol?"symbol":typeof b}function g(b,L){if(b){if(typeof b=="string")return n(b,L);var U=Object.prototype.toString.call(b).slice(8,-1);if(U==="Object"&&b.constructor&&(U=b.constructor.name),U==="Map"||U==="Set")return Array.from(U);if(U==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return n(b,L)}}function N(){try{var b=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N=function(){return!!b})()}var C=[],I=(function(){function b(L,U){a(this,b),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=L,this.validateData=U}return p(b,[{key:"assert",value:function(U,$){var H=new r.ObjectAssertion(U,$);if(!H.object())return H.errors;H.noAdditionalProperties(["nodeType","data","content"]);var V=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(U,$),ee=V.nodeTypes,G=V.min,J=G===void 0?0:G;if(ee.length===0&&J>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(J," with no nodeTypes"));if(H.minLength("content",J),ee.length===0?H.empty("content"):H.each("content",function(Q,W){var ae=new r.ObjectAssertion(Q,W);return ae.object()&&ae.enum("nodeType",ee),ae.errors}),H.object("data")){var z,F,oe,fe,ve=(F=(oe=(fe=this).validateData)===null||oe===void 0?void 0:oe.call(fe,U.data,$.of("data")))!==null&&F!==void 0?F:[];(z=H).catch.apply(z,f(ve))}return H.errors}}]),b})(),P=(function(b){O(L,b);function L(U,$){a(this,L);var H;return H=s(this,L,[$,function(V,ee){return i(H).assertLink(V,ee)}]),u(H,"linkType",void 0),u(H,"type",void 0),u(H,"assertLink",void 0),H.linkType=U,H.assertLink=function(V,ee){var G=new r.ObjectAssertion(V,ee);if(G.object("target")){var J,z=new r.ObjectAssertion(V.target.sys,ee.of("target").of("sys"));
19z.object()&&(z.enum("type",[H.type]),z.enum("linkType",[H.linkType]),H.type==="Link"?(z.string("id"),z.noAdditionalProperties(["type","linkType","id"])):H.type==="ResourceLink"&&(z.string("urn"),z.noAdditionalProperties(["type","linkType","urn"]))),(J=G).catch.apply(J,f(z.errors))}return G.noAdditionalProperties(["target"]),G.errors},H.type=H.linkType.startsWith("Contentful:")?"ResourceLink":"Link",H}return L})(I),D=(function(b){O(L,b);function L(){a(this,L);var U;return U=s(this,L,[["text"],function($,H){return i(U).assertLink($,H)}]),u(U,"assertLink",function($,H){var V=new r.ObjectAssertion($,H);return V.string("uri"),V.noAdditionalProperties(["uri"]),V.errors}),U}return L})(I),w=function(b,L){return new I(b,L)},x=function(b,L){return new P(b,L)}})(So)),So}var wo={},ts;function hy(){return ts||(ts=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return p}});function t(u,l){(l==null||l>u.length)&&(l=u.length);for(var O=0,A=new Array(l);O<l;O++)A[O]=u[O];return A}function r(u){if(Array.isArray(u))return t(u)}function n(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")}function o(u,l,O){return l in u?Object.defineProperty(u,l,{value:O,enumerable:!0,configurable:!0,writable:!0}):u[l]=O,u}function i(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function a(u){return r(u)||i(u)||c(u)||s()}function c(u,l){if(u){if(typeof u=="string")return t(u,l);var O=Object.prototype.toString.call(u).slice(8,-1);if(O==="Object"&&u.constructor&&(O=u.constructor.name),O==="Map"||O==="Set")return Array.from(O);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return t(u,l)}}var p=function u(){var l=this,O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];n(this,u),o(this,"path",void 0),o(this,"of",void 0),o(this,"isRoot",void 0),o(this,"last",void 0),o(this,"toArray",void 0),this.path=O,this.of=function(A){return new u(a(l.path).concat([A]))},this.isRoot=function(){return l.path.length===0},this.last=function(){return l.path[l.path.length-1]},this.toArray=function(){return l.path}}})(wo)),wo}var _o={},rs;function my(){return rs||(rs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=Xo();function r(n,o){var i=new t.ObjectAssertion(n,o);return i.object()&&(i.noAdditionalProperties(["nodeType","data","value","marks"]),i.object("data"),i.each("marks",function(s,a){var c=new t.ObjectAssertion(s,a);return c.object()&&c.string("type"),c.errors}),i.string("value")),i.errors}})(_o)),_o}var ns;function gy(){return ns||(ns=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return I}});var t=Zt(),r=Mr(),n=wu(),o=Xo(),i=yy(),s=hy(),a=my();function c(P,D){(D==null||D>P.length)&&(D=P.length);for(var w=0,x=new Array(D);w<D;w++)x[w]=P[w];return x}function p(P){if(Array.isArray(P))return c(P)}function u(P,D,w){return D in P?Object.defineProperty(P,D,{value:w,enumerable:!0,configurable:!0,writable:!0}):P[D]=w,P}function l(P){if(typeof Symbol<"u"&&P[Symbol.iterator]!=null||P["@@iterator"]!=null)return Array.from(P)}function O(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(P){return p(P)||l(P)||d(P)||O()}function d(P,D){if(P){if(typeof P=="string")return c(P,D);var w=Object.prototype.toString.call(P).slice(8,-1);if(w==="Object"&&P.constructor&&(w=P.constructor.name),w==="Map"||w==="Set")return Array.from(w);if(w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w))return c(P,D)}}var m=(0,i.assert)(A(Object.values(r.INLINES)).concat(["text"]).sort()),y=(0,i.assert)([t.BLOCKS.LIST_ITEM]),f=(0,i.assertLink)("Entry",i.VOID_CONTENT),E=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(P,D){var w=new o.ObjectAssertion(P,D);return w.noAdditionalProperties(["colspan","rowspan"]),w.number("colspan",!0),w.number("rowspan",!0),w.errors}),g,N=(g={},u(g,t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),u(g,t.BLOCKS.PARAGRAPH,m),u(g,t.BLOCKS.HEADING_1,m),u(g,t.BLOCKS.HEADING_2,m),u(g,t.BLOCKS.HEADING_3,m),u(g,t.BLOCKS.HEADING_4,m),u(g,t.BLOCKS.HEADING_5,m),u(g,t.BLOCKS.HEADING_6,m),u(g,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),u(g,t.BLOCKS.EMBEDDED_ENTRY,f),u(g,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),u(g,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(g,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),u(g,t.BLOCKS.OL_LIST,y),u(g,t.BLOCKS.UL_LIST,y),u(g,t.BLOCKS.LIST_ITEM,(0,i.assert)(A(n.LIST_ITEM_BLOCKS).sort())),u(g,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),u(g,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),u(g,t.BLOCKS.TABLE_CELL,E),u(g,t.BLOCKS.TABLE_HEADER_CELL,E),u(g,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),u(g,r.INLINES.EMBEDDED_ENTRY,f),u(g,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),u(g,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),u(g,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),u(g,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),g);function C(P,D){if(P.nodeType==="text")return(0,a.assertText)(P,D);var w=N[P.nodeType].assert(P,D);if(w.length>0)return w;var x=new o.ObjectAssertion(P,D);return x.each("content",function(b,L){return C(b,L)}),x.errors}var I=function(P){var D=new s.Path,w=new o.ObjectAssertion(P,D);return w.object()&&w.enum("nodeType",[t.BLOCKS.DOCUMENT]),w.errors.length>0?w.errors:C(P,D)}})(bo)),bo}var os;function vy(){return os||(os=1,(function(e){Object.defineProperty(e,"__esMo
19dule",{value:!0});function t(l,O){for(var A in O)Object.defineProperty(l,A,{enumerable:!0,get:Object.getOwnPropertyDescriptor(O,A).get})}t(e,{get BLOCKS(){return r.BLOCKS},get EMPTY_DOCUMENT(){return i.EMPTY_DOCUMENT},get INLINES(){return n.INLINES},get MARKS(){return o.MARKS},get helpers(){return s},get validateRichTextDocument(){return a.validateRichTextDocument}});var r=Zt(),n=Mr(),o=Su();c(wu(),e),c(cy(),e),c(ly(),e);var i=fy(),s=u(py()),a=gy();function c(l,O){return Object.keys(l).forEach(function(A){A!=="default"&&!Object.prototype.hasOwnProperty.call(O,A)&&Object.defineProperty(O,A,{enumerable:!0,get:function(){return l[A]}})}),l}function p(l){if(typeof WeakMap!="function")return null;var O=new WeakMap,A=new WeakMap;return(p=function(d){return d?A:O})(l)}function u(l,O){if(l&&l.__esModule)return l;if(l===null||typeof l!="object"&&typeof l!="function")return{default:l};var A=p(O);if(A&&A.has(l))return A.get(l);var d={__proto__:null},m=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in l)if(y!=="default"&&Object.prototype.hasOwnProperty.call(l,y)){var f=m?Object.getOwnPropertyDescriptor(l,y):null;f&&(f.get||f.set)?Object.defineProperty(d,y,f):d[y]=l[y]}return d.default=l,A&&A.set(l,d),d}})(co)),co}var Ao,is;function by(){if(is)return Ao;is=1;var e=/["'&<>]/;Ao=t;function t(r){var n=""+r,o=e.exec(n);if(!o)return n;var i,s="",a=0,c=0;for(a=o.index;a<n.length;a++){switch(n.charCodeAt(a)){case 34:i=""";break;case 38:i="&";break;case 39:i="'";break;case 60:i="<";break;case 62:i=">";break;default:continue}c!==a&&(s+=n.substring(c,a)),c=a+1,s+=i}return c!==a?s+n.substring(c,a):s}return Ao}var as;function Ey(){if(as)return uo;as=1;var e=vy(),t=by();const r=u=>`"${u.replace(/"/g,""")}"`,n={[e.BLOCKS.PARAGRAPH]:(u,l)=>`<p>${l(u.content)}</p>`,[e.BLOCKS.HEADING_1]:(u,l)=>`<h1>${l(u.content)}</h1>`,[e.BLOCKS.HEADING_2]:(u,l)=>`<h2>${l(u.content)}</h2>`,[e.BLOCKS.HEADING_3]:(u,l)=>`<h3>${l(u.content)}</h3>`,[e.BLOCKS.HEADING_4]:(u,l)=>`<h4>${l(u.content)}</h4>`,[e.BLOCKS.HEADING_5]:(u,l)=>`<h5>${l(u.content)}</h5>`,[e.BLOCKS.HEADING_6]:(u,l)=>`<h6>${l(u.content)}</h6>`,[e.BLOCKS.EMBEDDED_ENTRY]:(u,l)=>`<div>${l(u.content)}</div>`,[e.BLOCKS.EMBEDDED_RESOURCE]:(u,l)=>`<div>${l(u.content)}</div>`,[e.BLOCKS.UL_LIST]:(u,l)=>`<ul>${l(u.content)}</ul>`,[e.BLOCKS.OL_LIST]:(u,l)=>`<ol>${l(u.content)}</ol>`,[e.BLOCKS.LIST_ITEM]:(u,l)=>`<li>${l(u.content)}</li>`,[e.BLOCKS.QUOTE]:(u,l)=>`<blockquote>${l(u.content)}</blockquote>`,[e.BLOCKS.HR]:()=>"<hr/>",[e.BLOCKS.TABLE]:(u,l)=>`<table>${l(u.content)}</table>`,[e.BLOCKS.TABLE_ROW]:(u,l)=>`<tr>${l(u.content)}</tr>`,[e.BLOCKS.TABLE_HEADER_CELL]:(u,l)=>`<th>${l(u.content)}</th>`,[e.BLOCKS.TABLE_CELL]:(u,l)=>`<td>${l(u.content)}</td>`,[e.INLINES.ASSET_HYPERLINK]:u=>i(e.INLINES.ASSET_HYPERLINK,u),[e.INLINES.ENTRY_HYPERLINK]:u=>i(e.INLINES.ENTRY_HYPERLINK,u),[e.INLINES.RESOURCE_HYPERLINK]:u=>s(e.INLINES.RESOURCE_HYPERLINK,u),[e.INLINES.EMBEDDED_ENTRY]:u=>i(e.INLINES.EMBEDDED_ENTRY,u),[e.INLINES.EMBEDDED_RESOURCE]:u=>s(e.INLINES.EMBEDDED_RESOURCE,u),[e.INLINES.HYPERLINK]:(u,l)=>{const O=typeof u.data.uri=="string"?u.data.uri:"";return`<a href=${r(O)}>${l(u.content)}</a>`}},o={[e.MARKS.BOLD]:u=>`<b>${u}</b>`,[e.MARKS.ITALIC]:u=>`<i>${u}</i>`,[e.MARKS.UNDERLINE]:u=>`<u>${u}</u>`,[e.MARKS.CODE]:u=>`<code>${u}</code>`,[e.MARKS.SUPERSCRIPT]:u=>`<sup>${u}</sup>`,[e.MARKS.SUBSCRIPT]:u=>`<sub>${u}</sub>`,[e.MARKS.STRIKETHROUGH]:u=>`<s>${u}</s>`},i=(u,l)=>`<span>type: ${t(u)} id: ${t(l.data.target.sys.id)}</span>`,s=(u,l)=>`<span>type: ${t(u)} urn: ${t(l.data.target.sys.urn)}</span>`;function a(u,l={}){if(!u||!u.content)return"";let O=u;return l.stripEmptyTrailingParagraph&&(O=e.helpers.stripEmptyTrailingParagraphFromDocument(u)),c(O.content,{renderNode:{...n,...l.renderNode},renderMark:{...o,...l.renderMark},preserveWhitespace:l.preserveWhitespace})}function c(u,{renderNode:l,renderMark:O,preserveWhitespace:A}){return u.map(d=>p(d,{renderNode:l,renderMark:O,preserveWhitespace:A})).join("")}function p(u,{renderNode:l,renderMark:O,preserveWhitespace:A}){if(e.helpers.isText(u)){let d=t(u.value);return A&&(d=d.replace(/\n/g,"<br/>").replace(/ {2,}/g,m=>" ".repeat(m.length))),u.marks.length>0?u.marks.reduce((m,y)=>O[y.type]?O[y.type](m):m,d):d}else{const d=m=>c(m,{renderMark:O,renderNode:l,preserveWhitespace:A});return!u.nodeType||!l[u.nodeType]?"":l[u.nodeType](u,d)}}return uo.documentToHtmlString=a,uo}var xh=Ey(),_u={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},Ht={0:8203,1:8204,2:8205,3:65279},Oy={0:String.fromCodePoint(Ht[0]),1:String.fromCodePoint(Ht[1]),2:String.fromCodePoint(Ht[2]),3:String.fromCodePoint(Ht[3])},Sy=new Array(4).fill(String.fromCodePoint(Ht[0])).join(""),ss="\0",gr=Object.fromEntries(Object.entries(Oy).map(e=>[e[1],+e[0]])),us=Object.fromEntries(Object.entries(_u).map(e=>e.reverse())),wy=`${Object.values(_u).map(e=>`\\u{${e.toString(16)}}`).join("")}`,_y=new RegExp(`[${wy}]{4,}`,"gu");function Ay(e){let t=e.match(_y);if(t)return Ry(t[0],!0)[0]}function Ry(e,t=!1){let r=Array.from(e);if(r.length%2===0){if(r.length%4||!e.startsWith(Sy))return Ty(r,t)}
19else throw new Error("Encoded data has invalid length");let n=r.slice(4),o=new Uint8Array(n.length/4);for(let s=0;s<o.length;s++)o[s]=gr[n[s*4]]<<6|gr[n[s*4+1]]<<4|gr[n[s*4+2]]<<2|gr[n[s*4+3]];let i=new TextDecoder().decode(o);if(t){let s=i.indexOf(ss);return s===-1&&(s=i.length),[JSON.parse(i.slice(0,s))]}return i.split(ss).filter(Boolean).map(s=>JSON.parse(s))}function Ty(e,t){var r;let n=[];for(let a=e.length*.5;a--;){let c=`${us[e[a*2].codePointAt(0)]}${us[e[a*2+1].codePointAt(0)]}`;n.unshift(String.fromCharCode(parseInt(c,16)))}let o=[],i=[n.join("")],s=10;for(;i.length;){let a=i.shift();try{if(o.push(JSON.parse(a)),t)return o}catch(c){if(!s--)throw c;let p=+((r=c.message.match(/\sposition\s(\d+)$/))==null?void 0:r[1]);if(!p)throw c;i.unshift(a.substring(0,p),a.substring(p))}}return o}function Ly(e){return Ay(e)}var Ro,cs;function Py(){if(cs)return Ro;cs=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return Ro=function(r,n,o){if(t.call(n)!=="[object Function]")throw new TypeError("iterator must be a function");var i=r.length;if(i===+i)for(var s=0;s<i;s++)n.call(o,r[s],s,r);else for(var a in r)e.call(r,a)&&n.call(o,r[a],a,r)},Ro}var To,ls;function Cy(){if(ls)return To;ls=1;var e=Py();To=t;function t(r,n,o){if(arguments.length===3)return t.set(r,n,o);if(arguments.length===2)return t.get(r,n);var i=t.bind(t,r);for(var s in t)t.hasOwnProperty(s)&&(i[s]=t[s].bind(i,r));return i}return t.get=function(r,n){for(var o=Array.isArray(n)?n:t.parse(n),i=0;i<o.length;++i){var s=o[i];if(!(typeof r=="object"&&s in r))throw new Error("Invalid reference token: "+s);r=r[s]}return r},t.set=function(r,n,o){var i=Array.isArray(n)?n:t.parse(n),s=i[0];if(i.length===0)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var c=i[a];typeof c!="string"&&typeof c!="number"&&(c=String(c)),!(c==="__proto__"||c==="constructor"||c==="prototype")&&(c==="-"&&Array.isArray(r)&&(c=r.length),s=i[a+1],c in r||(s.match(/^(\d+|-)$/)?r[c]=[]:r[c]={}),r=r[c])}return s==="-"&&Array.isArray(r)&&(s=r.length),r[s]=o,this},t.remove=function(r,n){var o=Array.isArray(n)?n:t.parse(n),i=o[o.length-1];if(i===void 0)throw new Error('Invalid JSON pointer for remove: "'+n+'"');var s=t.get(r,o.slice(0,-1));if(Array.isArray(s)){var a=+i;if(i===""&&isNaN(a))throw new Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(s,a,1)}else delete s[i]},t.dict=function(r,n){var o={};return t.walk(r,function(i,s){o[s]=i},n),o},t.walk=function(r,n,o){var i=[];o=o||function(s){var a=Object.prototype.toString.call(s);return a==="[object Object]"||a==="[object Array]"},(function s(a){e(a,function(c,p){i.push(String(p)),o(c)?s(c):n(c,t.compile(i)),i.pop()})})(r)},t.has=function(r,n){try{t.get(r,n)}catch{return!1}return!0},t.escape=function(r){return r.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(r){return r.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(r){if(r==="")return[];if(r.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+r);return r.substring(1).split(/\//).map(t.unescape)},t.compile=function(r){return r.length===0?"":"/"+r.map(t.escape).join("/")},To}Cy();const Iy=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"];Iy.map(e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase()));const Dy="4.9.9",Au={version:Dy};let Ru=!1;function fs(e){Ru=e}const Lo=e=>(...t)=>{Ru&&console[e](...t)},Be={error:Lo("error"),warn:Lo("warn"),log:Lo("log")};function Ny(e,t=500){let r=window.location.href;const n=setInterval(()=>{const o=window.location.href;o!==r&&(r=o,e(o))},t);return()=>clearInterval(n)}const Tu="live-preview-editor",Lu="live-preview-sdk",xy=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function Je(e,t,r){const n={...t,method:e,source:Lu,location:window.location.href,version:Au.version};Be.log("Send message",n),r.forEach(o=>{window.top?.postMessage(n,o)})}function jy(e,t=100){let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}}function By(){try{return window.top?.location.href!==window.location.href}catch{return!0}}function My(){return`${performance.now()}-${Math.random().toString(36).slice(2)}`}function Uy(e){return typeof e.data!="object"||!e.data?!1:"source"in e.data&&e.data.source===Tu}var vr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};
19function ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ar={exports:{}};Ar.exports;var ps;function $y(){return ps||(ps=1,(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",c="[object Array]",p="[object AsyncFunction]",u="[object Boolean]",l="[object Date]",O="[object Error]",A="[object Function]",d="[object GeneratorFunction]",m="[object Map]",y="[object Number]",f="[object Null]",E="[object Object]",g="[object Promise]",N="[object Proxy]",C="[object RegExp]",I="[object Set]",P="[object String]",D="[object Symbol]",w="[object Undefined]",x="[object WeakMap]",b="[object ArrayBuffer]",L="[object DataView]",U="[object Float32Array]",$="[object Float64Array]",H="[object Int8Array]",V="[object Int16Array]",ee="[object Int32Array]",G="[object Uint8Array]",J="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,fe=/^\[object .+?Constructor\]$/,ve=/^(?:0|[1-9]\d*)$/,Q={};Q[U]=Q[$]=Q[H]=Q[V]=Q[ee]=Q[G]=Q[J]=Q[z]=Q[F]=!0,Q[a]=Q[c]=Q[b]=Q[u]=Q[L]=Q[l]=Q[O]=Q[A]=Q[m]=Q[y]=Q[E]=Q[C]=Q[I]=Q[P]=Q[x]=!1;var W=typeof vr=="object"&&vr&&vr.Object===Object&&vr,ae=typeof self=="object"&&self&&self.Object===Object&&self,pe=W||ae||Function("return this")(),de=t&&!t.nodeType&&t,re=de&&!0&&e&&!e.nodeType&&e,se=re&&re.exports===de,X=se&&W.process,T=(function(){try{return X&&X.binding&&X.binding("util")}catch{}})(),j=T&&T.isTypedArray;function k(h,S){for(var B=-1,K=h==null?0:h.length,ye=0,te=[];++B<K;){var me=h[B];S(me,B,h)&&(te[ye++]=me)}return te}function M(h,S){for(var B=-1,K=S.length,ye=h.length;++B<K;)h[ye+B]=S[B];return h}function Y(h,S){for(var B=-1,K=h==null?0:h.length;++B<K;)if(S(h[B],B,h))return!0;return!1}function ce(h,S){for(var B=-1,K=Array(h);++B<h;)K[B]=S(B);return K}function Oe(h){return function(S){return h(S)}}function Ae(h,S){return h.has(S)}function Pe(h,S){return h?.[S]}function Ce(h){var S=-1,B=Array(h.size);return h.forEach(function(K,ye){B[++S]=[ye,K]}),B}function tt(h,S){return function(B){return h(S(B))}}function rt(h){var S=-1,B=Array(h.size);return h.forEach(function(K){B[++S]=K}),B}var Ur=Array.prototype,kr=Function.prototype,ft=Object.prototype,Nt=pe["__core-js_shared__"],nt=kr.toString,Ie=ft.hasOwnProperty,xt=(function(){var h=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""})(),er=ft.toString,$r=RegExp("^"+nt.call(Ie).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=se?pe.Buffer:void 0,Xe=pe.Symbol,_=pe.Uint8Array,R=ft.propertyIsEnumerable,ie=Ur.splice,ne=Xe?Xe.toStringTag:void 0,le=Object.getOwnPropertySymbols,Z=wt?wt.isBuffer:void 0,We=tt(Object.keys,Object),He=At(pe,"DataView"),be=At(pe,"Map"),Me=At(pe,"Promise"),pt=At(pe,"Set"),Ve=At(pe,"WeakMap"),Se=At(Object,"create"),tr=mt(He),rr=mt(be),nr=mt(Me),dt=mt(pt),jt=mt(Ve),yt=Xe?Xe.prototype:void 0,ht=yt?yt.valueOf:void 0;function Ke(h){var S=-1,B=h==null?0:h.length;for(this.clear();++S<B;){var K=h[S];this.set(K[0],K[1])}}function or(){this.__data__=Se?Se(null):{},this.size=0}function ir(h){var S=this.has(h)&&delete this.__data__[h];return this.size-=S?1:0,S}function Bt(h){var S=this.__data__;if(Se){var B=S[h];return B===n?void 0:B}return Ie.call(S,h)?S[h]:void 0}function ar(h){var S=this.__data__;return Se?S[h]!==void 0:Ie.call(S,h)}function Mt(h,S){var B=this.__data__;return this.size+=this.has(h)?0:1,B[h]=Se&&S===void 0?n:S,this}Ke.prototype.clear=or,Ke.prototype.delete=ir,Ke.prototype.get=Bt,Ke.prototype.has=ar,Ke.prototype.set=Mt;function Ue(h){var S=-1,B=h==null?0:h.length;for(this.clear();++S<B;){var K=h[S];this.set(K[0],K[1])}}function Fr(){this.__data__=[],this.size=0}function Ut(h){var S=this.__data__,B=ur(S,h);if(B<0)return!1;var K=S.length-1;return B==K?S.pop():ie.call(S,B,1),--this.size,!0}function ot(h){var S=this.__data__,B=ur(S,h);return B<0?void 0:S[B][1]}function _t(h){return ur(this.__data__,h)>-1}function qr(h,S){var B=this.__data__,K=ur(B,h);return K<0?(++this.size,B.push([h,S])):B[K][1]=S,this}Ue.prototype.clear=Fr,Ue.prototype.delete=Ut,Ue.prototype.get=ot,Ue.prototype.has=_t,Ue.prototype.set=qr;function Ye(h){var S=-1,B=h==null?0:h.length;for(this.clear();++S<B;){var K=h[S];this.set(K[0],K[1])}}function ju(){this.size=0,this.__data__={hash:new Ke,map:new(be||Ue),string:new Ke}}function Bu(h){var S=cr(this,h).delete(h);return this.size-=S?1:0,S}function Mu(h){return cr(this,h).get(h)}function Uu(h){return cr(this,h).has(h)}function ku(h,S){var B=cr(this,h),K=B.size;return B.set(h,S),this.size+=B.size==K?0:1,this}Ye.prototype.clear=ju,Ye.prototype.delete=Bu,Ye.prototype.get=Mu,Ye.prototype.has=Uu,Ye.prototype.set=ku;function sr(h){var S=-1,B=h==null?0:h.length;for(this.__data__=new Ye;++S<B;)this.add(h[S])}function $u(h){return this.__data__.set(h,n),this}function Fu(h){return this.__data__.has(h)}sr.prototype.add=sr.prototype.push=$u,sr.prototype.has=Fu;function it(h){var S=this.__data__=new Ue(h);this.size=S.size}function qu(){this.__data__=new Ue,this.size=0}function Hu(h){var S=this.__data__,B=S.delete(h);return this.size=S.size,B}function Ku(h){return this.__data__.get(h)}function Gu(h){return this.__data__.has(h)}function zu(h,S){var B=this.__data__;if(B instanceof Ue){var K=B.__data__;if(!be||K.length<r-1)return K.push([h,S]),this.size=++B.size,this;B=this.__data__=new Ye(K)}return B.set(h,S),this.size=B.size,this}it.prototype.clear=qu,it.prototype.delete=Hu,it.prototype.get=Ku,it.prototype.has=Gu,it.prototype.set=zu;function Wu(h,S){var B=lr(h),K=!B&&uc(h),ye=!B&&!K&&Hr(h),te=!B&&!K&&!ye&&ui(h),me=B||K||ye||te,
19Ee=me?ce(h.length,String):[],we=Ee.length;for(var he in h)Ie.call(h,he)&&!(me&&(he=="length"||ye&&(he=="offset"||he=="parent")||te&&(he=="buffer"||he=="byteLength"||he=="byteOffset")||nc(he,we)))&&Ee.push(he);return Ee}function ur(h,S){for(var B=h.length;B--;)if(oi(h[B][0],S))return B;return-1}function Vu(h,S,B){var K=S(h);return lr(h)?K:M(K,B(h))}function kt(h){return h==null?h===void 0?w:f:ne&&ne in Object(h)?tc(h):sc(h)}function ei(h){return $t(h)&&kt(h)==a}function ti(h,S,B,K,ye){return h===S?!0:h==null||S==null||!$t(h)&&!$t(S)?h!==h&&S!==S:Yu(h,S,B,K,ti,ye)}function Yu(h,S,B,K,ye,te){var me=lr(h),Ee=lr(S),we=me?c:at(h),he=Ee?c:at(S);we=we==a?E:we,he=he==a?E:he;var Ne=we==E,Ge=he==E,Re=we==he;if(Re&&Hr(h)){if(!Hr(S))return!1;me=!0,Ne=!1}if(Re&&!Ne)return te||(te=new it),me||ui(h)?ri(h,S,B,K,ye,te):Zu(h,S,we,B,K,ye,te);if(!(B&o)){var ke=Ne&&Ie.call(h,"__wrapped__"),$e=Ge&&Ie.call(S,"__wrapped__");if(ke||$e){var st=ke?h.value():h,Ze=$e?S.value():S;return te||(te=new it),ye(st,Ze,B,K,te)}}return Re?(te||(te=new it),ec(h,S,B,K,ye,te)):!1}function Ju(h){if(!si(h)||ic(h))return!1;var S=ii(h)?$r:fe;return S.test(mt(h))}function Qu(h){return $t(h)&&ai(h.length)&&!!Q[kt(h)]}function Xu(h){if(!ac(h))return We(h);var S=[];for(var B in Object(h))Ie.call(h,B)&&B!="constructor"&&S.push(B);return S}function ri(h,S,B,K,ye,te){var me=B&o,Ee=h.length,we=S.length;if(Ee!=we&&!(me&&we>Ee))return!1;var he=te.get(h);if(he&&te.get(S))return he==S;var Ne=-1,Ge=!0,Re=B&i?new sr:void 0;for(te.set(h,S),te.set(S,h);++Ne<Ee;){var ke=h[Ne],$e=S[Ne];if(K)var st=me?K($e,ke,Ne,S,h,te):K(ke,$e,Ne,h,S,te);if(st!==void 0){if(st)continue;Ge=!1;break}if(Re){if(!Y(S,function(Ze,gt){if(!Ae(Re,gt)&&(ke===Ze||ye(ke,Ze,B,K,te)))return Re.push(gt)})){Ge=!1;break}}else if(!(ke===$e||ye(ke,$e,B,K,te))){Ge=!1;break}}return te.delete(h),te.delete(S),Ge}function Zu(h,S,B,K,ye,te,me){switch(B){case L:if(h.byteLength!=S.byteLength||h.byteOffset!=S.byteOffset)return!1;h=h.buffer,S=S.buffer;case b:return!(h.byteLength!=S.byteLength||!te(new _(h),new _(S)));case u:case l:case y:return oi(+h,+S);case O:return h.name==S.name&&h.message==S.message;case C:case P:return h==S+"";case m:var Ee=Ce;case I:var we=K&o;if(Ee||(Ee=rt),h.size!=S.size&&!we)return!1;var he=me.get(h);if(he)return he==S;K|=i,me.set(h,S);var Ne=ri(Ee(h),Ee(S),K,ye,te,me);return me.delete(h),Ne;case D:if(ht)return ht.call(h)==ht.call(S)}return!1}function ec(h,S,B,K,ye,te){var me=B&o,Ee=ni(h),we=Ee.length,he=ni(S),Ne=he.length;if(we!=Ne&&!me)return!1;for(var Ge=we;Ge--;){var Re=Ee[Ge];if(!(me?Re in S:Ie.call(S,Re)))return!1}var ke=te.get(h);if(ke&&te.get(S))return ke==S;var $e=!0;te.set(h,S),te.set(S,h);for(var st=me;++Ge<we;){Re=Ee[Ge];var Ze=h[Re],gt=S[Re];if(K)var ci=me?K(gt,Ze,Re,S,h,te):K(Ze,gt,Re,h,S,te);if(!(ci===void 0?Ze===gt||ye(Ze,gt,B,K,te):ci)){$e=!1;break}st||(st=Re=="constructor")}if($e&&!st){var fr=h.constructor,pr=S.constructor;fr!=pr&&"constructor"in h&&"constructor"in S&&!(typeof fr=="function"&&fr instanceof fr&&typeof pr=="function"&&pr instanceof pr)&&($e=!1)}return te.delete(h),te.delete(S),$e}function ni(h){return Vu(h,fc,rc)}function cr(h,S){var B=h.__data__;return oc(S)?B[typeof S=="string"?"string":"hash"]:B.map}function At(h,S){var B=Pe(h,S);return Ju(B)?B:void 0}function tc(h){var S=Ie.call(h,ne),B=h[ne];try{h[ne]=void 0;var K=!0}catch{}var ye=er.call(h);return K&&(S?h[ne]=B:delete h[ne]),ye}var rc=le?function(h){return h==null?[]:(h=Object(h),k(le(h),function(S){return R.call(h,S)}))}:pc,at=kt;(He&&at(new He(new ArrayBuffer(1)))!=L||be&&at(new be)!=m||Me&&at(Me.resolve())!=g||pt&&at(new pt)!=I||Ve&&at(new Ve)!=x)&&(at=function(h){var S=kt(h),B=S==E?h.constructor:void 0,K=B?mt(B):"";if(K)switch(K){case tr:return L;case rr:return m;case nr:return g;case dt:return I;case jt:return x}return S});function nc(h,S){return S=S??s,!!S&&(typeof h=="number"||ve.test(h))&&h>-1&&h%1==0&&h<S}function oc(h){var S=typeof h;return S=="string"||S=="number"||S=="symbol"||S=="boolean"?h!=="__proto__":h===null}function ic(h){return!!xt&&xt in h}function ac(h){var S=h&&h.constructor,B=typeof S=="function"&&S.prototype||ft;return h===B}function sc(h){return er.call(h)}function mt(h){if(h!=null){try{return nt.call(h)}catch{}try{return h+""}catch{}}return""}function oi(h,S){return h===S||h!==h&&S!==S}var uc=ei((function(){return arguments})())?ei:function(h){return $t(h)&&Ie.call(h,"callee")&&!R.call(h,"callee")},lr=Array.isArray;function cc(h){return h!=null&&ai(h.length)&&!ii(h)}var Hr=Z||dc;function lc(h,S){return ti(h,S)}function ii(h){if(!si(h))return!1;var S=kt(h);return S==A||S==d||S==p||S==N}function ai(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=s}function si(h){var S=typeof h;return h!=null&&(S=="object"||S=="function")}function $t(h){return h!=null&&typeof h=="object"}var ui=j?Oe(j):Qu;function fc(h){return cc(h)?Wu(h):Xu(h)}function pc(){return[]}function dc(){return!1}e.exports=lc})(Ar,Ar.exports)),Ar.exports}var Fy=$y();const qy=ky(Fy);var ue=(e=>(e.FIELD_ID="data-contentful-field-id",e.ENTRY_ID="data-contentful-entry-id",e.ASSET_ID="data-contentful-asset-id",e.LOCALE="data-contentful-locale",e.SPACE="data-contentful-space",e.ENVIRONMENT="data-contentful-environment",e))(ue||{}),ct=(e=>(e.MOUSE_MOVE="MOUSE_MOVE",e.SCROLL_START="SCROLL_START",e.SCROLL_END="SCROLL_END",e.RESIZE_START="RESIZE_START",e.RESIZE_END="RESIZE_END",e.TAGGED_ELEMENTS="TAGGED_ELEMENTS",e.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",e))(ct||{}),Pu={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},Kt={0:8203,1:8204,2:8205,3:65279},Hy={0:String.fromCodePoint(Kt[0]),1:String.fromCodePoint(Kt[1]),2:String.fromCodePoint(Kt[2]),3:String.fromCodePoint(Kt[3])};new Array(4).fill(String.fromCodePoint(Kt[0])).join("");Object.fromEntries(Object.entries(Hy).map(e=>[e[1],+e[0]]));Object.fromEntries(Object.entries(Pu).map(e=>e.reverse()));var Ky=`${Object.values(Pu).map(e=>`\\u{${e.toString(16)}}`).join("")}`,Gy=new RegExp(`[${Ky}]{4,}`,"gu");const zy=e=>{if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=e;return!(!t.hasAttribute(ue.FIELD_ID)||!t.hasAttribute(ue.ENTRY_ID)&&!t.hasAttribute(ue.ASSET_ID))};function Wy(e,t){if(!zy(e))return null;const r={fieldId:e.getAttribute(ue.FIELD_ID),locale:e.getAttribute(ue.LOCALE)??t.locale,environment:e.getAttribute(ue.ENVIRONMENT)??t.environment,space:e.getAttribute(ue.SPACE)??t.space,manuallyTagged:!0};if(!r.fieldId)return Be.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(ue.ENTRY_ID)??e.getAttribute(ue.ASSET_ID),sharedProps:r}),null;const n=e.getAttribute(ue.ENTRY_ID);if(n)return{...r,entryId:n};const o=e.getAttribute(ue.ASSET_ID);return o?{...r,assetId:o}:null}function Cu(e,t){return e.href===t.href}function Vy(e,t){return!(!Cu(e.sourceMap,t.sourceMap)||e.element!==t.element)}function Yy(e){let t=[];return typeof e.matches=="function"&&e.matches("*")&&(t=[e]),[...t,...Array.from(e.querySelectorAll("*:not(script,style,meta,title)"))].map(r=>({node:r,text:Jy(r)})).filter(({text:r})=>!!(r&&r.match(Gy)))}function Jy(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:e.matches("img, video")?e.alt:Array.from(e.childNodes).filter(t=>t.nodeType===Node.TEXT_NODE&&!!t.textContent).map(t=>t.textContent).join("")}function Qy(e,t){for(const r of t)if(r.element===e||r.element.contains(e))return!0;return!1}function Zo({root:e=window.document,options:t}){const r=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${ue.ASSET_ID}][${ue.FIELD_ID}], [${ue.ENTRY_ID}][${ue.FIELD_ID}]`)].map(a=>({element:a,attributes:Wy(a,t)})).filter(({attributes:a})=>a!==null),n=[],o=Yy("body"in e?e.body:e);for(const{node:a,text:c}of o){const p=Ly(c);if(!p||!p.origin.includes("contentful.com")){Be.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from C
19ontentful",{node:a,sourceMap:p});continue}if(!(Qy(a,r)||n.some(u=>u.element.contains(a)&&Cu(u.sourceMap,p)))){if(a.matches("img")){const u=a.closest("figure")||a.closest("picture")||a;n.push({element:u,sourceMap:p});continue}n.push({element:a,sourceMap:p})}}const i=n.filter((a,c)=>n.findIndex(p=>Vy(a,p))===c);for(const{element:a,sourceMap:c}of i){let p=null;if(c.href){const u=Du(c.href);if(!u)continue;if(u.entityType==="Asset")p={fieldId:u.fieldId,locale:u.locale,space:u.space,environment:u.environment,assetId:u.entityId};else if(u.entityType==="Entry")p={fieldId:u.fieldId,locale:u.locale,space:u.space,environment:u.environment,entryId:u.entityId};else{Be.warn("Unknown entityType",{element:a,sourceMap:c});continue}}else if(c.contentful&&rh(c.contentful)){const u=c.contentful;if(!u.entity||!u.field||!u.locale||!u.space||!u.environment){Be.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:a,sourceMap:c});continue}const l={fieldId:u.field,locale:u.locale,space:u.space,environment:u.environment};if(u.entityType==="Asset")l.assetId=u.entity,p=l;else if(u.entityType==="Entry")l.entryId=u.entity,p=l;else{Be.warn("Unknown entityType in contentful data",{element:a,sourceMap:c});continue}}else{Be.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:a,sourceMap:c});continue}r.push({element:a,attributes:p})}const s=r.filter(({attributes:a})=>a?.manuallyTagged===!1||!a?.manuallyTagged).length;return{taggedElements:r,manuallyTaggedCount:r.length-s,automaticallyTaggedCount:s,autoTaggedElements:i}}function Iu({options:e}){return[...new Set(Zo({options:e}).taggedElements.map(t=>t.attributes&&"entryId"in t.attributes?t.attributes.entryId:null).filter(Boolean))]}const Xy=(e,t,r=window.document)=>{const{top:n,right:o,bottom:i,left:s}=t,a=r.elementFromPoint(s+1,n+1),c=r.elementFromPoint(o-1,n+1),p=r.elementFromPoint(s+1,i-1),u=r.elementFromPoint(o-1,i-1),l=O=>O?e===O||e.contains(O):!1;return[l(a),l(c),l(p),l(u)].filter(Boolean).length<2},Zy=(e,t=window.document)=>e.map(r=>({...r,isVisible:r.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:Xy(r.element,r.coordinates,t)})),eh=e=>e.map(({element:t,attributes:r})=>({element:t,coordinates:t.getBoundingClientRect(),attributes:r})),th=(e,t=window.document)=>{const r=eh(e);return Zy(r,t)};function Du(e){try{const t=new URL(e),r=t.searchParams.get("focusedField"),n=t.searchParams.get("focusedLocale"),o=t.pathname.split("/").filter(Boolean),i=o.indexOf("spaces"),s=o.indexOf("environments"),a=i!==-1?o[i+1]:void 0,c=s!==-1?o[s+1]:void 0;let p,u;const l=o.indexOf("entries"),O=o.indexOf("assets");return l!==-1?(p="Entry",u=o[l+1]):O!==-1&&(p="Asset",u=o[O+1]),!p||!u?(console.warn("Unable to determine entityType or entityId from href",{href:e}),null):r?n?!a||!c?(console.warn("Missing space or environment in href path",{href:e}),null):{entityId:u,entityType:p,fieldId:r,locale:n,space:a,environment:c}:(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}function rh(e){return e&&typeof e.entity=="string"&&typeof e.field=="string"&&typeof e.locale=="string"&&typeof e.space=="string"&&typeof e.environment=="string"&&(e.entityType==="Asset"||e.entityType==="Entry")}function nh(e){return xy.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(t=>`${t.name}="${t.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}}class oh{constructor(t){this.options=t,this.intersectionObserver=new IntersectionObserver(r=>{const n=this.taggedElements;for(const o of r)if(o.isIntersecting)for(const i of n)i.element===o.target&&(i.coordinates=o.intersectionRect,i.isVisible=o.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=n,this.sendTaggedElements()},{threshold:.15})}delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;releaseId;intersectionObserver;observersCB=[];cleanupCB=[];init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>
19{this.observersCB.forEach(t=>t()),this.cleanupCB.forEach(t=>t())};receiveMessage=t=>{if(t.method===ct.INSPECTOR_MODE_CHANGED){const{isInspectorActive:r,releaseId:n}=t;this.releaseId=n,r?this.init():this.cleanup()}};observe=t=>{this.intersectionObserver.observe(t);const r=this.addMutationListener(t);this.observersCB.push(r,()=>this.intersectionObserver.unobserve(t))};addScrollListener=()=>{const{targetOrigin:t}=this.options,r=()=>{this.isScrolling||(this.isScrolling=!0,Je(ct.SCROLL_START,{},t)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,Je(ct.SCROLL_END,{},t),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",r,n),()=>window.removeEventListener("scroll",r,n)};addMutationListener=t=>{const r=new MutationObserver(()=>{this.updateElements()});return r.observe(t,{characterData:!0,attributes:!0,attributeFilter:[ue.ENTRY_ID,ue.FIELD_ID,ue.LOCALE,ue.SPACE,ue.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>r.disconnect()};addResizeListener=()=>{const{targetOrigin:t}=this.options,r=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,Je(ct.RESIZE_START,{},t)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,Je(ct.RESIZE_END,{},t),this.updateElements()},this.delay)});return r.observe(document.body),()=>r.disconnect()};addHoverListener=()=>{const t=jy(n=>{let o;for(const i of n){const s=i;if(s.nodeName==="BODY")break;const a=this.taggedElements.find(c=>c.element===s);if(a){o=a;break}}this.hoveredElement=o?.element,this.updateElements()},this.delay),r=n=>{t(n.composedPath())};return window.addEventListener("mouseover",r,{passive:!0}),()=>window.removeEventListener("mouseover",r)};sendTaggedElements=()=>{Je(ct.TAGGED_ELEMENTS,{elements:this.taggedElements.map(t=>({coordinates:t.coordinates,isVisible:!!t.isVisible,attributes:t.attributes,isHovered:this.hoveredElement===t.element,isCoveredByOtherElement:!!t.isCoveredByOtherElement,snapshot:nh(t)})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount,...this.releaseId!==void 0&&{releaseId:this.releaseId}},this.options.targetOrigin)};updateElements=()=>{const{taggedElements:t,manuallyTaggedCount:r,automaticallyTaggedCount:n}=Zo({options:this.options}),o=th(t);qy(o,this.taggedElements)||(this.observersCB.forEach(i=>i()),this.observersCB=[],this.taggedElements=o,t.forEach(({element:i})=>this.observe(i)),this.manuallyTaggedCount=r,this.automaticallyTaggedCount=n)}}const{stringify:ih}=JSON,ah=String,sh="string",uh="object",ch=(e,t)=>t,ds=(e,t,r)=>{const n=ah(t.push(r)-1);return e.set(r,n),n},lh=(e,t,r)=>{const n=ch,o=new Map,i=[],s=[];let a=+ds(o,i,n.call({"":e},"",e)),c=!a;for(;a<i.length;)c=!0,s[a]=ih(i[a++],p,r);return"["+s.join(",")+"]";function p(u,l){if(c)return c=!c,l;const O=n.call(this,u,l);switch(typeof O){case uh:if(O===null)return O;case sh:return o.get(O)||ds(o,i,O)}return O}};var ze=(e=>(e.CONNECTED="CONNECTED",e.DISCONNECTED="DISCONNECTED",e.ERROR="ERROR",e.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",e.URL_CHANGED="URL_CHANGED",e.SUBSCRIBED="SUBSCRIBED",e.UNSUBSCRIBED="UNSUBSCRIBED",e.ENTRY_UPDATED="ENTRY_UPDATED",e.ENTRY_SAVED="ENTRY_SAVED",e.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",e))(ze||{});function Nu(e,t){Je("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}function xu(e,t){Je("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}class fh{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:t,targetOrigin:r}){this.defaultLocale=t,this.sendMessage=(n,o)=>Je(n,o,r)}async receiveMessage(t){if(t.method===ze.ENTRY_UPDATED){const{data:r,subscriptionId:n}=t,o=this.subscriptions.get(n);o?(o.callback(r),o.data=r,this.subscriptions.set(n,o)):Be.error("Received an update for an unknown subscription",{subscriptionId:n,data:r,subscriptions:this.subscriptions})}}subscribe(t){const r=My(),n=t.locale??this.defaultLocale;this.subscriptions.set(r,{...t});const o={locale:n,event:"edit",id:r,config:lh(t)};return this.sendMessage(ze.SUBSCRIBED,o),()=>{this.sendMessage(ze.UNSUBSCRIBED,o),this.subscriptions.delete(r)}}}class ph{locale;options;inspectorModeEnabled;subscription;constructor({locale:t,options:r,inspectorModeEnabled:n}){this.locale=t,this.options=r,this.inspectorModeEnabled=n}subscribe(t){return this.subscription&&Be.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=t,()=>{this.subscription=void 0}}receiveMessage(t){if(t.method===ze.ENTRY_SAVED&&this.subscription){const{entity:r}=t;this.inspectorModeEnabled?Iu({options:this.options}).includes(r.sys.id)&&this.subscription(r):this.subscription(r)}}}const ys=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"];class Pr{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(t){if(typeof t!="object"||!t?.locale)throw new Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");const{debugMode:r,enableInspectorMode:n,enableLiveUpdates:o,locale:i,environment:s,space:a,targetOrigin:c}=t;if(typeof window<"u"){if(!By())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(r&&fs(r),typeof n=="boolean"&&(this.inspectorModeEnabled=n),typeof o=="boolean"&&(this.liveUpdatesEnabled=o),this.locale=i,this.space=a,this.environment=s,this.initTargetOrigin(c),this.initialized)return Be.log("You have already initialized the Live Preview SDK."),Promise.resolve(Pr.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new oh({locale:i,space:a,environment:s,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:t.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new fh({locale:i,targetOrigin:this.targetOrigin}
19),this.saveEvent=new ph({locale:i,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",A=>{if(Uy(A)){if(Be.log("Received message",A.data),A.data.method===ze.DEBUG_MODE_ENABLED){fs(!0);return}this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(A.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(A.data),this.saveEvent?.receiveMessage(A.data))}}),Ny(()=>{Je(ze.URL_CHANGED,{action:ze.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${ue.ENTRY_ID}]`).length},this.targetOrigin)});const{taggedElements:p,manuallyTaggedCount:u,automaticallyTaggedCount:l}=this.inspectorModeEnabled?Zo({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},O=p.length;return Je(ze.CONNECTED,{action:ze.CONNECTED,connected:!0,tags:O,taggedElementCount:O,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:u,automaticallyTaggedElementCount:l,hideCoveredElementOutlines:t.experimental?.hideCoveredElementOutlines,version:Au.version},this.targetOrigin),this.initialized=!0,Promise.resolve(Pr.inspectorMode)}}static initTargetOrigin(t){if(t)this.targetOrigin=Array.isArray(t)?t:[t];else{const r=window.location.ancestorOrigins,n=r?ys.find(o=>r.contains(o)):ys.find(o=>document.referrer.includes(o));if(!n)throw new Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[n]}}static subscribe(t,r){if(!this.liveUpdatesEnabled)return()=>{};const n=typeof t=="string"?t:"edit",o=typeof t=="object"?t:r;if(n==="save"){if(!this.saveEvent)throw new Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(o.callback)}if(!this.liveUpdates)throw new Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(o)}static getProps(t){const{fieldId:r,locale:n,environment:o,space:i}=t;if(!this.inspectorModeEnabled)return null;if(r){const s={...n?{[ue.LOCALE]:n}:{},...o?{[ue.ENVIRONMENT]:o}:{},...i?{[ue.SPACE]:i}:{},[ue.FIELD_ID]:r};if(n&&(s[ue.LOCALE]=n),t.assetId!==void 0)return{...s,[ue.ASSET_ID]:t.assetId};if(t.entryId!==void 0)return{...s,[ue.ENTRY_ID]:t.entryId}}return Be.warn("Missing property for inspector mode",{...t}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(t){const r={locale:this.locale,environment:this.environment,space:this.space};if(t.assetId!==void 0&&t.fieldId){xu({...r,...t},this.targetOrigin);return}if(t.entryId!==void 0&&t.fieldId){Nu({...r,...t},this.targetOrigin);return}Be.error("Please provide field id and entry/asset id to openEntryInEditor.",{...t})}static getEntryList(){return Iu({options:{locale:this.locale,space:this.space,environment:this.environment}})}}const jh=Object.freeze(Object.defineProperty({__proto__:null,ContentfulLivePreview:Pr,InspectorModeEventMethods:ct,LIVE_PREVIEW_EDITOR_SOURCE:Tu,LIVE_PREVIEW_SDK_SOURCE:Lu,LivePreviewPostMessageMethods:ze,openAssetInEditorUtility:xu,openEntryInEditorUtility:Nu,parseAttributesFromHref:Du},Symbol.toStringTag,{value:"Module"}));export{Lt as a,Tp as b,Nh as c,yc as d,Vt as g,jh as i,xh as r};
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.