@apolitical/component-library 1.6.1-beta.0 → 1.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Nd);var Ag=Nd.exports;const ne=jt(Ag),Cg=({element:e="span",showOnFocus:t=!0,children:n,...r})=>D.createElement(e,{...r,className:ne("hidden",{"show-on-focus":t}),children:n}),Je=D.memo(Cg),Rg=({element:e="span",children:t=null,...n})=>D.createElement(e,{...n,"aria-hidden":!0},t),Cc=D.memo(Rg),_r=(e,t)=>{const n=D.useRef(!1);D.useEffect(()=>{n.current?e():n.current=!0},t)};/*!
5
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var a=n.apply(null,i);a&&r.push(a)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Nd);var Ag=Nd.exports;const ne=jt(Ag),Cg=({element:e="span",showOnFocus:t=!0,children:n,...r})=>D.createElement(e,{...r,className:ne("hidden",{"show-on-focus":t}),children:n}),Je=D.memo(Cg),Rg=({element:e="span",children:t=null,...n})=>D.createElement(e,{...n,"aria-hidden":!0},t),Cc=D.memo(Rg),Jr=(e,t)=>{const n=D.useRef(!1);D.useEffect(()=>{n.current?e():n.current=!0},t)};/*!
6
6
  * cookie
7
7
  * Copyright(c) 2012-2014 Roman Shtylman
8
8
  * Copyright(c) 2015 Douglas Christopher Wilson
@@ -22,16 +22,16 @@
22
22
  * This source code is licensed under the MIT license found in the
23
23
  * LICENSE file in the root directory of this source tree.
24
24
  */var pu;function Gg(){return pu||(pu=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,l=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function b(te){return typeof te=="string"||typeof te=="function"||te===r||te===f||te===i||te===o||te===h||te===d||typeof te=="object"&&te!==null&&(te.$$typeof===p||te.$$typeof===l||te.$$typeof===s||te.$$typeof===a||te.$$typeof===c||te.$$typeof===E||te.$$typeof===T||te.$$typeof===_||te.$$typeof===m)}function A(te){if(typeof te=="object"&&te!==null){var Ye=te.$$typeof;switch(Ye){case t:var je=te.type;switch(je){case u:case f:case r:case i:case o:case h:return je;default:var bt=je&&je.$$typeof;switch(bt){case a:case c:case p:case l:case s:return bt;default:return Ye}}case n:return Ye}}}var w=u,N=f,F=a,B=s,G=t,W=c,V=r,H=p,Y=l,oe=n,Q=i,M=o,z=h,Z=!1;function de(te){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),X(te)||A(te)===u}function X(te){return A(te)===f}function K(te){return A(te)===a}function se(te){return A(te)===s}function ue(te){return typeof te=="object"&&te!==null&&te.$$typeof===t}function Fe(te){return A(te)===c}function J(te){return A(te)===r}function re(te){return A(te)===p}function Pe(te){return A(te)===l}function Ae(te){return A(te)===n}function st(te){return A(te)===i}function ut(te){return A(te)===o}function Et(te){return A(te)===h}Re.AsyncMode=w,Re.ConcurrentMode=N,Re.ContextConsumer=F,Re.ContextProvider=B,Re.Element=G,Re.ForwardRef=W,Re.Fragment=V,Re.Lazy=H,Re.Memo=Y,Re.Portal=oe,Re.Profiler=Q,Re.StrictMode=M,Re.Suspense=z,Re.isAsyncMode=de,Re.isConcurrentMode=X,Re.isContextConsumer=K,Re.isContextProvider=se,Re.isElement=ue,Re.isForwardRef=Fe,Re.isFragment=J,Re.isLazy=re,Re.isMemo=Pe,Re.isPortal=Ae,Re.isProfiler=st,Re.isStrictMode=ut,Re.isSuspense=Et,Re.isValidElementType=b,Re.typeOf=A}()),Re}process.env.NODE_ENV==="production"?Xs.exports=qg():Xs.exports=Gg();var Wg=Xs.exports,Md=Wg,Vg={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},zg={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kd={};kd[Md.ForwardRef]=Vg;kd[Md.Memo]=zg;function Yg(){return typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"}function Bd(e){const t=D.useContext(jg);if(!t)throw new Error("Missing <CookiesProvider>");const[n,r]=D.useState(()=>t.getAll());Yg()&&D.useLayoutEffect(()=>{function a(){const u=t.getAll({doNotUpdate:!0});Kg(e||null,u,n)&&r(u)}return t.addChangeListener(a),()=>{t.removeChangeListener(a)}},[t,n]);const o=D.useMemo(()=>t.set.bind(t),[t]),i=D.useMemo(()=>t.remove.bind(t),[t]),s=D.useMemo(()=>t.update.bind(t),[t]);return[n,o,i,s]}function Kg(e,t,n){if(!e)return!0;for(let r of e)if(t[r]!==n[r])return!0;return!1}var Fd={exports:{}},fa={exports:{}},oo={},ao={exports:{}},da,mu;function Ud(){return mu||(mu=1,da=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}}),da}var ha,gu;function Ze(){if(gu)return ha;gu=1;var e=Ud(),t=Object.prototype.toString,n=function(M){return function(z){var Z=t.call(z);return M[Z]||(M[Z]=Z.slice(8,-1).toLowerCase())}}(Object.create(null));function r(M){return M=M.toLowerCase(),function(Z){return n(Z)===M}}function o(M){return Array.isArray(M)}function i(M){return typeof M>"u"}function s(M){return M!==null&&!i(M)&&M.constructor!==null&&!i(M.constructor)&&typeof M.constructor.isBuffer=="function"&&M.constructor.isBuffer(M)}var a=r("ArrayBuffer");function u(M){var z;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?z=ArrayBuffer.isView(M):z=M&&M.buffer&&a(M.buffer),z}function f(M){return typeof M=="string"}function c(M){return typeof M=="number"}function h(M){return M!==null&&typeof M=="object"}function d(M){if(n(M)!=="object")return!1;var z=Object.getPrototypeOf(M);return z===null||z===Object.prototype}var l=r("Date"),p=r("File"),m=r("Blob"),E=r("FileList");function T(M){return t.call(M)==="[object Function]"}function _(M){return h(M)&&T(M.pipe)}function b(M){var z="[object FormData]";return M&&(typeof FormData=="function"&&M instanceof FormData||t.call(M)===z||T(M.toString)&&M.toString()===z)}var A=r("URLSearchParams");function w(M){return M.trim?M.trim():M.replace(/^\s+|\s+$/g,"")}function N(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F(M,z){if(!(M===null||typeof M>"u"))if(typeof M!="object"&&(M=[M]),o(M))for(var Z=0,de=M.length;Z<de;Z++)z.call(null,M[Z],Z,M);else for(var X in M)Object.prototype.hasOwnProperty.call(M,X)&&z.call(null,M[X],X,M)}function B(){var M={};function z(X,K){d(M[K])&&d(X)?M[K]=B(M[K],X):d(X)?M[K]=B({},X):o(X)?M[K]=X.slice():M[K]=X}for(var Z=0,de=arguments.length;Z<de;Z++)F(arguments[Z],z);return M}function G(M,z,Z){return F(z,function(X,K){Z&&typeof X=="function"?M[K]=e(X,Z):M[K]=X}),M}function W(M){return M.charCodeAt(0)===65279&&(M=M.slice(1)),M}function V(M,z,Z,de){M.prototype=Object.create(z.prototype,de),M.prototype.constructor=M,Z&&Object.assign(M.prototype,Z)}function H(M,z,Z){var de,X,K,se={};z=z||{};do{for(de=Object.getOwnPropertyNames(M),X=de.length;X-- >0;)K=de[X],se[K]||(z[K]=M[K],se[K]=!0);M=Object.getPrototypeOf(M)}while(M&&(!Z||Z(M,z))&&M!==Object.prototype);return z}function Y(M,z,Z){M=String(M),(Z===void 0||Z>M.length)&&(Z=M.length),Z-=z.length;var de=M.indexOf(z,Z);return de!==-1&&de===Z}function oe(M){if(!M)return null;var z=M.length;if(i(z))return null;for(var Z=new Array(z);z-- >0;)Z[z]=M[z];return Z}var Q=function(M){return function(z){return M&&z instanceof M}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array));return ha={isArray:o,isArrayBuffer:a,isBuffer:s,isFormData:b,isArrayBufferView:u,isString:f,isNumber:c,isObject:h,isPlainObject:d,isUndefined:i,isDate:l,isFile:p,isBlob:m,isFunction:T,isStream:_,isURLSearchParams:A,isStandardBrowserEnv:N,forEach:F,merge:B,extend:G,trim:w,stripBOM:W,inherits:V,toFlatObject:H,kindOf:n,kindOfTest:r,endsWith:Y,toArray:oe,isTypedArray:Q,isFileList:E},ha}var pa,yu;function Dd(){if(yu)return pa;yu=1;var e=Ze();function t(n){return encodeURIComponent(n).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}return pa=function(r,o,i){if(!o)return r;var s;if(i)s=i(o);else if(e.isURLSearchParams(o))s=o.toString();else{var a=[];e.forEach(o,function(c,h){c===null||typeof c>"u"||(e.isArray(c)?h=h+"[]":c=[c],e.forEach(c,function(l){e.isDate(l)?l=l.toISOString():e.isObject(l)&&(l=JSON.stringify(l)),a.push(t(h)+"="+t(l))}))}),s=a.join("&")}if(s){var u=r.indexOf("#");u!==-1&&(r=r.slice(0,u)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r},pa}var ma,vu;function Qg(){if(vu)return ma;vu=1;var e=Ze();function t(){this.handlers=[]}return t.prototype.use=function(r,o,i){return this.handlers.push({fulfilled:r,rejected:o,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1},t.prototype.eject=function(r){this.handlers[r]&&(this.handlers[r]=null)},t.prototype.forEach=function(r){e.forEach(this.handlers,function(i){i!==null&&r(i)})},ma=t,ma}var ga,_u;function Xg(){if(_u)return ga;_u=1;var e=Ze();return ga=function(n,r){e.forEach(n,function(i,s){s!==r&&s.toUpperCase()===r.toUpperCase()&&(n[r]=i,delete n[s])})},ga}var ya,Eu;function In(){if(Eu)return ya;Eu=1;var e=Ze();function t(o,i,s,a,u){Error.call(this),this.message=o,this.name="AxiosError",i&&(this.code=i),s&&(this.config=s),a&&(this.request=a),u&&(this.response=u)}e.inherits(t,Error,{toJSON:function(){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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var n=t.prototype,r={};return["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(o){r[o]={value:o}}),Object.defineProperties(t,r),Object.defineProperty(n,"isAxiosError",{value:!0}),t.from=function(o,i,s,a,u,f){var c=Object.create(n);return e.toFlatObject(o,c,function(d){return d!==Error.prototype}),t.call(c,o.message,i,s,a,u),c.name=o.name,f&&Object.assign(c,f),c},ya=t,ya}var va,bu;function $d(){return bu||(bu=1,va={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}),va}var _a,wu;function jd(){if(wu)return _a;wu=1;var e=Ze();function t(n,r){r=r||new FormData;var o=[];function i(a){return a===null?"":e.isDate(a)?a.toISOString():e.isArrayBuffer(a)||e.isTypedArray(a)?typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function s(a,u){if(e.isPlainObject(a)||e.isArray(a)){if(o.indexOf(a)!==-1)throw Error("Circular reference detected in "+u);o.push(a),e.forEach(a,function(c,h){if(!e.isUndefined(c)){var d=u?u+"."+h:h,l;if(c&&!u&&typeof c=="object"){if(e.endsWith(h,"{}"))c=JSON.stringify(c);else if(e.endsWith(h,"[]")&&(l=e.toArray(c))){l.forEach(function(p){!e.isUndefined(p)&&r.append(d,i(p))});return}}s(c,d)}}),o.pop()}else r.append(u,i(a))}return s(n),r}return _a=t,_a}var Ea,Su;function Jg(){if(Su)return Ea;Su=1;var e=In();return Ea=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(new e("Request failed with status code "+o.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},Ea}var ba,Tu;function Zg(){if(Tu)return ba;Tu=1;var e=Ze();return ba=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,s,a,u){var f=[];f.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&f.push("expires="+new Date(i).toGMTString()),e.isString(s)&&f.push("path="+s),e.isString(a)&&f.push("domain="+a),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ba}var wa,xu;function ey(){return xu||(xu=1,wa=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),wa}var Sa,Ou;function ty(){return Ou||(Ou=1,Sa=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),Sa}var Ta,Au;function Hd(){if(Au)return Ta;Au=1;var e=ey(),t=ty();return Ta=function(r,o){return r&&!e(o)?t(r,o):o},Ta}var xa,Cu;function ry(){if(Cu)return xa;Cu=1;var e=Ze(),t=["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"];return xa=function(r){var o={},i,s,a;return r&&e.forEach(r.split(`
25
- `),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},xa}var Oa,Ru;function ny(){if(Ru)return Oa;Ru=1;var e=Ze();return Oa=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(a){var u=e.isString(a)?i(a):a;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}(),Oa}var Aa,Nu;function Qo(){if(Nu)return Aa;Nu=1;var e=In(),t=Ze();function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Aa=n,Aa}var Ca,Pu;function iy(){return Pu||(Pu=1,Ca=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ca}var Ra,Iu;function Lu(){if(Iu)return Ra;Iu=1;var e=Ze(),t=Jg(),n=Zg(),r=Dd(),o=Hd(),i=ry(),s=ny(),a=$d(),u=In(),f=Qo(),c=iy();return Ra=function(d){return new Promise(function(p,m){var E=d.data,T=d.headers,_=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var N=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(N+":"+F)}var B=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(B,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function G(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!_||_==="text"||_==="json"?w.responseText:w.response,oe={data:Y,status:w.status,statusText:w.statusText,headers:H,config:d,request:w};t(function(M){p(M),A()},function(M){m(M),A()},oe),w=null}}if("onloadend"in w?w.onloadend=G:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(G)},w.onabort=function(){w&&(m(new u("Request aborted",u.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new u("Network Error",u.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",oe=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new u(Y,oe.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var W=(d.withCredentials||s(B))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;W&&(T[d.xsrfHeaderName]=W)}"setRequestHeader"in w&&e.forEach(T,function(Y,oe){typeof E>"u"&&oe.toLowerCase()==="content-type"?delete T[oe]:w.setRequestHeader(oe,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),_&&_!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new f:H),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),E||(E=null);var V=c(B);if(V&&["http","https","file"].indexOf(V)===-1){m(new u("Unsupported protocol "+V+":",u.ERR_BAD_REQUEST,d));return}w.send(E)})},Ra}var Na,Mu;function oy(){return Mu||(Mu=1,Na=null),Na}var Pa,ku;function Rc(){if(ku)return Pa;ku=1;var e=Ze(),t=Xg(),n=In(),r=$d(),o=jd(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(c,h){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=h)}function a(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Lu()),c}function u(c,h,d){if(e.isString(c))try{return(h||JSON.parse)(c),e.trim(c)}catch(l){if(l.name!=="SyntaxError")throw l}return(d||JSON.stringify)(c)}var f={transitional:r,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var l=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||l&&p==="multipart/form-data"){var E=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,E&&new E)}else if(l||p==="application/json")return s(d,"application/json"),u(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,l=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!l&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(E){if(m)throw E.name==="SyntaxError"?n.from(E,n.ERR_BAD_RESPONSE,this,null,this.response):E}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oy()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Pa=f,Pa}var Ia,Bu;function ay(){if(Bu)return Ia;Bu=1;var e=Ze(),t=Rc();return Ia=function(r,o,i){var s=this||t;return e.forEach(i,function(u){r=u.call(s,r,o)}),r},Ia}var La,Fu;function qd(){return Fu||(Fu=1,La=function(t){return!!(t&&t.__CANCEL__)}),La}var Ma,Uu;function sy(){if(Uu)return Ma;Uu=1;var e=Ze(),t=ay(),n=qd(),r=Rc(),o=Qo();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ma=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete a.headers[c]});var u=a.adapter||r.adapter;return u(a).then(function(c){return i(a),c.data=t.call(a,c.data,c.headers,a.transformResponse),c},function(c){return n(c)||(i(a),c&&c.response&&(c.response.data=t.call(a,c.response.data,c.response.headers,a.transformResponse))),Promise.reject(c)})},Ma}var ka,Du;function Gd(){if(Du)return ka;Du=1;var e=Ze();return ka=function(n,r){r=r||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(n[h],r[h])}function a(h){if(!e.isUndefined(r[h]))return i(void 0,r[h])}function u(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(void 0,r[h])}function f(h){if(h in r)return i(n[h],r[h]);if(h in n)return i(void 0,n[h])}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return e.forEach(Object.keys(n).concat(Object.keys(r)),function(d){var l=c[d]||s,p=l(d);e.isUndefined(p)&&l!==f||(o[d]=p)}),o},ka}var Ba,$u;function Wd(){return $u||($u=1,Ba={version:"0.27.2"}),Ba}var Fa,ju;function cy(){if(ju)return Fa;ju=1;var e=Wd().version,t=In(),n={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){n[i]=function(u){return typeof u===i||"a"+(s<1?"n ":" ")+i}});var r={};n.transitional=function(s,a,u){function f(c,h){return"[Axios v"+e+"] Transitional option '"+c+"'"+h+(u?". "+u:"")}return function(c,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!r[h]&&(r[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(c,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(i),f=u.length;f-- >0;){var c=u[f],h=s[c];if(h){var d=i[c],l=d===void 0||h(d,c,i);if(l!==!0)throw new t("option "+c+" must be "+l,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Fa={assertOptions:o,validators:n},Fa}var Ua,Hu;function uy(){if(Hu)return Ua;Hu=1;var e=Ze(),t=Dd(),n=Qg(),r=sy(),o=Gd(),i=Hd(),s=cy(),a=s.validators;function u(f){this.defaults=f,this.interceptors={request:new n,response:new n}}return u.prototype.request=function(c,h){typeof c=="string"?(h=h||{},h.url=c):h=c||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var l=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(h)===!1||(p=p&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var E;if(!p){var T=[r,void 0];for(Array.prototype.unshift.apply(T,l),T=T.concat(m),E=Promise.resolve(h);T.length;)E=E.then(T.shift(),T.shift());return E}for(var _=h;l.length;){var b=l.shift(),A=l.shift();try{_=b(_)}catch(w){A(w);break}}try{E=r(_)}catch(w){return Promise.reject(w)}for(;m.length;)E=E.then(m.shift(),m.shift());return E},u.prototype.getUri=function(c){c=o(this.defaults,c);var h=i(c.baseURL,c.url);return t(h,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){u.prototype[c]=function(h,d){return this.request(o(d||{},{method:c,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function h(d){return function(p,m,E){return this.request(o(E||{},{method:c,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}u.prototype[c]=h(),u.prototype[c+"Form"]=h(!0)}),Ua=u,Ua}var Da,qu;function ly(){if(qu)return Da;qu=1;var e=Qo();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(u){o.subscribe(u),s=u}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s){o.reason||(o.reason=new e(s),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(s){r=s});return{token:o,cancel:r}},Da=t,Da}var $a,Gu;function fy(){return Gu||(Gu=1,$a=function(t){return function(r){return t.apply(null,r)}}),$a}var ja,Wu;function dy(){if(Wu)return ja;Wu=1;var e=Ze();return ja=function(n){return e.isObject(n)&&n.isAxiosError===!0},ja}var Vu;function hy(){if(Vu)return ao.exports;Vu=1;var e=Ze(),t=Ud(),n=uy(),r=Gd(),o=Rc();function i(a){var u=new n(a),f=t(n.prototype.request,u);return e.extend(f,n.prototype,u),e.extend(f,u),f.create=function(h){return i(r(a,h))},f}var s=i(o);return s.Axios=n,s.CanceledError=Qo(),s.CancelToken=ly(),s.isCancel=qd(),s.VERSION=Wd().version,s.toFormData=jd(),s.AxiosError=In(),s.Cancel=s.CanceledError,s.all=function(u){return Promise.all(u)},s.spread=fy(),s.isAxiosError=dy(),ao.exports=s,ao.exports.default=s,ao.exports}var Ha,zu;function Vd(){return zu||(zu=1,Ha=hy()),Ha}var py=Function.prototype.toString,qa=Object.create,my=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,Yu=Object.getOwnPropertyNames,Nc=Object.getOwnPropertySymbols,yy=Object.getPrototypeOf,zd=Object.prototype,vy=zd.hasOwnProperty,_y=zd.propertyIsEnumerable,Yd=typeof Nc=="function",Ey=typeof WeakMap=="function",by=function(){if(Ey)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),Kd=function(e,t){var n=e.__proto__||yy(e);if(!n)return qa(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:qa(n);if(~py.call(r).indexOf("[native code]"))try{return new r}catch{}return qa(n)},wy=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i in e)vy.call(e,i)&&(o[i]=n(e[i],r));if(Yd)for(var s=Nc(e),a=0,u=s.length,f=void 0;a<u;++a)f=s[a],_y.call(e,f)&&(o[f]=n(e[f],r));return o},Ku=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i=Yd?Yu(e).concat(Nc(e)):Yu(e),s=0,a=i.length,u=void 0,f=void 0;s<a;++s)if(u=i[s],u!=="callee"&&u!=="caller")if(f=gy(e,u),f){!f.get&&!f.set&&(f.value=n(e[u],r));try{my(o,u,f)}catch{o[u]=f.value}}else o[u]=n(e[u],r);return o},Sy=function(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},Ty=Array.isArray,xy=Object.getPrototypeOf,Oy=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function Er(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||Oy,o=n?Ku:wy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var u=s.__proto__||xy(s),f=u&&u.constructor;if(!f||f===r.Object)return o(s,r,i,a);var c;if(Ty(s)){if(n)return Ku(s,r,i,a);c=new f,a.set(s,c);for(var h=0,d=s.length;h<d;++h)c[h]=i(s[h],a);return c}if(s instanceof r.Date)return new f(s.getTime());if(s instanceof r.RegExp)return c=new f(s.source,s.flags||Sy(s)),c.lastIndex=s.lastIndex,c;if(r.Map&&s instanceof r.Map)return c=new f,a.set(s,c),s.forEach(function(l,p){c.set(p,i(l,a))}),c;if(r.Set&&s instanceof r.Set)return c=new f,a.set(s,c),s.forEach(function(l){c.add(i(l,a))}),c;if(r.Blob&&s instanceof r.Blob)return s.slice(0,s.size,s.type);if(r.Buffer&&r.Buffer.isBuffer(s))return c=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,c),s.copy(c),c;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(s))return c=new f(s.buffer.slice(0)),a.set(s,c),c;if(s instanceof r.ArrayBuffer)return c=s.slice(0),a.set(s,c),c}return typeof s.then=="function"||s instanceof Error||r.WeakMap&&s instanceof r.WeakMap||r.WeakSet&&s instanceof r.WeakSet?s:o(s,r,i,a)};return i(e,by())}Er.default=Er;Er.strict=function(t,n){return Er(t,{isStrict:!0,realm:n?n.realm:void 0})};var Ay=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Qu=typeof Symbol<"u"&&Symbol,Cy=Ay,Ry=function(){return typeof Qu!="function"||typeof Symbol!="function"||typeof Qu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Cy()},Xu={foo:{}},Ny=Object,Py=function(){return{__proto__:Xu}.foo===Xu.foo&&!({__proto__:null}instanceof Ny)},Iy="Function.prototype.bind called on incompatible ",Ga=Array.prototype.slice,Ly=Object.prototype.toString,My="[object Function]",ky=function(t){var n=this;if(typeof n!="function"||Ly.call(n)!==My)throw new TypeError(Iy+n);for(var r=Ga.call(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,r.concat(Ga.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(Ga.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],u=0;u<s;u++)a.push("$"+u);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},By=ky,Pc=Function.prototype.bind||By,Fy=Pc,Uy=Fy.call(Function.call,Object.prototype.hasOwnProperty),ge,An=SyntaxError,Qd=Function,On=TypeError,Wa=function(e){try{return Qd('"use strict"; return ('+e+").constructor;")()}catch{}},Xr=Object.getOwnPropertyDescriptor;if(Xr)try{Xr({},"")}catch{Xr=null}var Va=function(){throw new On},Dy=Xr?function(){try{return arguments.callee,Va}catch{try{return Xr(arguments,"callee").get}catch{return Va}}}():Va,En=Ry(),$y=Py(),ze=Object.getPrototypeOf||($y?function(e){return e.__proto__}:null),Sn={},jy=typeof Uint8Array>"u"||!ze?ge:ze(Uint8Array),Jr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":En&&ze?ze([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":Sn,"%AsyncGenerator%":Sn,"%AsyncGeneratorFunction%":Sn,"%AsyncIteratorPrototype%":Sn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":Qd,"%GeneratorFunction%":Sn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":En&&ze?ze(ze([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!En||!ze?ge:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!En||!ze?ge:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":En&&ze?ze(""[Symbol.iterator]()):ge,"%Symbol%":En?Symbol:ge,"%SyntaxError%":An,"%ThrowTypeError%":Dy,"%TypedArray%":jy,"%TypeError%":On,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(ze)try{null.error}catch(e){var Hy=ze(ze(e));Jr["%Error.prototype%"]=Hy}var qy=function e(t){var n;if(t==="%AsyncFunction%")n=Wa("async function () {}");else if(t==="%GeneratorFunction%")n=Wa("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Wa("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ze&&(n=ze(o.prototype))}return Jr[t]=n,n},Ju={"%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"]},Ki=Pc,Bo=Uy,Gy=Ki.call(Function.call,Array.prototype.concat),Wy=Ki.call(Function.apply,Array.prototype.splice),Zu=Ki.call(Function.call,String.prototype.replace),Fo=Ki.call(Function.call,String.prototype.slice),Vy=Ki.call(Function.call,RegExp.prototype.exec),zy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yy=/\\(\\)?/g,Ky=function(t){var n=Fo(t,0,1),r=Fo(t,-1);if(n==="%"&&r!=="%")throw new An("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new An("invalid intrinsic syntax, expected opening `%`");var o=[];return Zu(t,zy,function(i,s,a,u){o[o.length]=a?Zu(u,Yy,"$1"):s||i}),o},Qy=function(t,n){var r=t,o;if(Bo(Ju,r)&&(o=Ju[r],r="%"+o[0]+"%"),Bo(Jr,r)){var i=Jr[r];if(i===Sn&&(i=qy(r)),typeof i>"u"&&!n)throw new On("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new An("intrinsic "+t+" does not exist!")},Ic=function(t,n){if(typeof t!="string"||t.length===0)throw new On("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new On('"allowMissing" argument must be a boolean');if(Vy(/^%?[^%]*%?$/,t)===null)throw new An("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ky(t),o=r.length>0?r[0]:"",i=Qy("%"+o+"%",n),s=i.name,a=i.value,u=!1,f=i.alias;f&&(o=f[0],Wy(r,Gy([0,1],f)));for(var c=1,h=!0;c<r.length;c+=1){var d=r[c],l=Fo(d,0,1),p=Fo(d,-1);if((l==='"'||l==="'"||l==="`"||p==='"'||p==="'"||p==="`")&&l!==p)throw new An("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(u=!0),o+="."+d,s="%"+o+"%",Bo(Jr,s))a=Jr[s];else if(a!=null){if(!(d in a)){if(!n)throw new On("base intrinsic for "+t+" exists, but the property is not available.");return}if(Xr&&c+1>=r.length){var m=Xr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=Bo(a,d),a=a[d];h&&!u&&(Jr[s]=a)}}return a},Xd={exports:{}};(function(e){var t=Pc,n=Ic,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var d=i(t,o,arguments);if(s&&a){var l=s(d,"length");l.configurable&&a(d,"length",{value:1+u(0,h.length-(arguments.length-1))})}return d};var f=function(){return i(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(Xd);var Xy=Xd.exports,Jd=Ic,Zd=Xy,Jy=Zd(Jd("String.prototype.indexOf")),Zy=function(t,n){var r=Jd(t,!!n);return typeof r=="function"&&Jy(t,".prototype.")>-1?Zd(r):r};const ev={},tv=Object.freeze(Object.defineProperty({__proto__:null,default:ev},Symbol.toStringTag,{value:"Module"})),rv=Yi(tv);var Lc=typeof Map=="function"&&Map.prototype,za=Object.getOwnPropertyDescriptor&&Lc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Uo=Lc&&za&&typeof za.get=="function"?za.get:null,el=Lc&&Map.prototype.forEach,Mc=typeof Set=="function"&&Set.prototype,Ya=Object.getOwnPropertyDescriptor&&Mc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Do=Mc&&Ya&&typeof Ya.get=="function"?Ya.get:null,tl=Mc&&Set.prototype.forEach,nv=typeof WeakMap=="function"&&WeakMap.prototype,$i=nv?WeakMap.prototype.has:null,iv=typeof WeakSet=="function"&&WeakSet.prototype,ji=iv?WeakSet.prototype.has:null,ov=typeof WeakRef=="function"&&WeakRef.prototype,rl=ov?WeakRef.prototype.deref:null,av=Boolean.prototype.valueOf,sv=Object.prototype.toString,cv=Function.prototype.toString,uv=String.prototype.match,kc=String.prototype.slice,yr=String.prototype.replace,lv=String.prototype.toUpperCase,nl=String.prototype.toLowerCase,eh=RegExp.prototype.test,il=Array.prototype.concat,Ut=Array.prototype.join,fv=Array.prototype.slice,ol=Math.floor,Js=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ka=Object.getOwnPropertySymbols,Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Cn||"symbol")?Symbol.toStringTag:null,th=Object.prototype.propertyIsEnumerable,al=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function sl(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||eh.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-ol(-e):ol(e);if(r!==e){var o=String(r),i=kc.call(t,o.length+1);return yr.call(o,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(t,n,"$&_")}var ec=rv,cl=ec.custom,ul=nh(cl)?cl:null,dv=function e(t,n,r,o){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=gr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return oh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?sl(t,u):u}if(typeof t=="bigint"){var f=String(t)+"n";return a?sl(t,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return tc(t)?"[Array]":"[Object]";var h=Nv(i,r);if(typeof o>"u")o=[];else if(ih(o,t)>=0)return"[Circular]";function d(Y,oe,Q){if(oe&&(o=fv.call(o),o.push(oe)),Q){var M={depth:i.depth};return gr(i,"quoteStyle")&&(M.quoteStyle=i.quoteStyle),e(Y,M,r+1,o)}return e(Y,i,r+1,o)}if(typeof t=="function"&&!ll(t)){var l=bv(t),p=so(t,d);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(nh(t)){var m=Cn?yr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zs.call(t);return typeof t=="object"&&!Cn?hi(m):m}if(Av(t)){for(var E="<"+nl.call(String(t.nodeName)),T=t.attributes||[],_=0;_<T.length;_++)E+=" "+T[_].name+"="+rh(hv(T[_].value),"double",i);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+nl.call(String(t.nodeName))+">",E}if(tc(t)){if(t.length===0)return"[]";var b=so(t,d);return h&&!Rv(b)?"["+rc(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(mv(t)){var A=so(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!th.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(il.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(ul&&typeof t[ul]=="function"&&ec)return ec(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wv(t)){var w=[];return el&&el.call(t,function(Y,oe){w.push(d(oe,t,!0)+" => "+d(Y,t))}),fl("Map",Uo.call(t),w,h)}if(xv(t)){var N=[];return tl&&tl.call(t,function(Y){N.push(d(Y,t))}),fl("Set",Do.call(t),N,h)}if(Sv(t))return Qa("WeakMap");if(Ov(t))return Qa("WeakSet");if(Tv(t))return Qa("WeakRef");if(yv(t))return hi(d(Number(t)));if(_v(t))return hi(d(Js.call(t)));if(vv(t))return hi(av.call(t));if(gv(t))return hi(d(String(t)));if(!pv(t)&&!ll(t)){var F=so(t,d),B=al?al(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",W=!B&&rt&&Object(t)===t&&rt in t?kc.call(wr(t),8,-1):G?"Object":"",V=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=V+(W||G?"["+Ut.call(il.call([],W||[],G||[]),": ")+"] ":"");return F.length===0?H+"{}":h?H+"{"+rc(F,h)+"}":H+"{ "+Ut.call(F,", ")+" }"}return String(t)};function rh(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function hv(e){return yr.call(String(e),/"/g,"&quot;")}function tc(e){return wr(e)==="[object Array]"&&(!rt||!(typeof e=="object"&&rt in e))}function pv(e){return wr(e)==="[object Date]"&&(!rt||!(typeof e=="object"&&rt in e))}function ll(e){return wr(e)==="[object RegExp]"&&(!rt||!(typeof e=="object"&&rt in e))}function mv(e){return wr(e)==="[object Error]"&&(!rt||!(typeof e=="object"&&rt in e))}function gv(e){return wr(e)==="[object String]"&&(!rt||!(typeof e=="object"&&rt in e))}function yv(e){return wr(e)==="[object Number]"&&(!rt||!(typeof e=="object"&&rt in e))}function vv(e){return wr(e)==="[object Boolean]"&&(!rt||!(typeof e=="object"&&rt in e))}function nh(e){if(Cn)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Zs)return!1;try{return Zs.call(e),!0}catch{}return!1}function _v(e){if(!e||typeof e!="object"||!Js)return!1;try{return Js.call(e),!0}catch{}return!1}var Ev=Object.prototype.hasOwnProperty||function(e){return e in this};function gr(e,t){return Ev.call(e,t)}function wr(e){return sv.call(e)}function bv(e){if(e.name)return e.name;var t=uv.call(cv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ih(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function wv(e){if(!Uo||!e||typeof e!="object")return!1;try{Uo.call(e);try{Do.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Sv(e){if(!$i||!e||typeof e!="object")return!1;try{$i.call(e,$i);try{ji.call(e,ji)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Tv(e){if(!rl||!e||typeof e!="object")return!1;try{return rl.call(e),!0}catch{}return!1}function xv(e){if(!Do||!e||typeof e!="object")return!1;try{Do.call(e);try{Uo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ov(e){if(!ji||!e||typeof e!="object")return!1;try{ji.call(e,ji);try{$i.call(e,$i)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Av(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function oh(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return oh(kc.call(e,0,t.maxStringLength),t)+r}var o=yr.call(yr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Cv);return rh(o,"single",t)}function Cv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+lv.call(t.toString(16))}function hi(e){return"Object("+e+")"}function Qa(e){return e+" { ? }"}function fl(e,t,n,r){var o=r?rc(n,r):Ut.call(n,", ");return e+" ("+t+") {"+o+"}"}function Rv(e){for(var t=0;t<e.length;t++)if(ih(e[t],`
25
+ `),function(f){if(a=f.indexOf(":"),i=e.trim(f.substr(0,a)).toLowerCase(),s=e.trim(f.substr(a+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([s]):o[i]=o[i]?o[i]+", "+s:s}}),o},xa}var Oa,Ru;function ny(){if(Ru)return Oa;Ru=1;var e=Ze();return Oa=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(a){var u=e.isString(a)?i(a):a;return u.protocol===o.protocol&&u.host===o.host}}():function(){return function(){return!0}}(),Oa}var Aa,Nu;function Qo(){if(Nu)return Aa;Nu=1;var e=In(),t=Ze();function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),Aa=n,Aa}var Ca,Pu;function iy(){return Pu||(Pu=1,Ca=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),Ca}var Ra,Iu;function Lu(){if(Iu)return Ra;Iu=1;var e=Ze(),t=Jg(),n=Zg(),r=Dd(),o=Hd(),i=ry(),s=ny(),a=$d(),u=In(),f=Qo(),c=iy();return Ra=function(d){return new Promise(function(p,m){var E=d.data,T=d.headers,_=d.responseType,b;function A(){d.cancelToken&&d.cancelToken.unsubscribe(b),d.signal&&d.signal.removeEventListener("abort",b)}e.isFormData(E)&&e.isStandardBrowserEnv()&&delete T["Content-Type"];var w=new XMLHttpRequest;if(d.auth){var N=d.auth.username||"",F=d.auth.password?unescape(encodeURIComponent(d.auth.password)):"";T.Authorization="Basic "+btoa(N+":"+F)}var B=o(d.baseURL,d.url);w.open(d.method.toUpperCase(),r(B,d.params,d.paramsSerializer),!0),w.timeout=d.timeout;function G(){if(w){var H="getAllResponseHeaders"in w?i(w.getAllResponseHeaders()):null,Y=!_||_==="text"||_==="json"?w.responseText:w.response,oe={data:Y,status:w.status,statusText:w.statusText,headers:H,config:d,request:w};t(function(M){p(M),A()},function(M){m(M),A()},oe),w=null}}if("onloadend"in w?w.onloadend=G:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(G)},w.onabort=function(){w&&(m(new u("Request aborted",u.ECONNABORTED,d,w)),w=null)},w.onerror=function(){m(new u("Network Error",u.ERR_NETWORK,d,w,w)),w=null},w.ontimeout=function(){var Y=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",oe=d.transitional||a;d.timeoutErrorMessage&&(Y=d.timeoutErrorMessage),m(new u(Y,oe.clarifyTimeoutError?u.ETIMEDOUT:u.ECONNABORTED,d,w)),w=null},e.isStandardBrowserEnv()){var W=(d.withCredentials||s(B))&&d.xsrfCookieName?n.read(d.xsrfCookieName):void 0;W&&(T[d.xsrfHeaderName]=W)}"setRequestHeader"in w&&e.forEach(T,function(Y,oe){typeof E>"u"&&oe.toLowerCase()==="content-type"?delete T[oe]:w.setRequestHeader(oe,Y)}),e.isUndefined(d.withCredentials)||(w.withCredentials=!!d.withCredentials),_&&_!=="json"&&(w.responseType=d.responseType),typeof d.onDownloadProgress=="function"&&w.addEventListener("progress",d.onDownloadProgress),typeof d.onUploadProgress=="function"&&w.upload&&w.upload.addEventListener("progress",d.onUploadProgress),(d.cancelToken||d.signal)&&(b=function(H){w&&(m(!H||H&&H.type?new f:H),w.abort(),w=null)},d.cancelToken&&d.cancelToken.subscribe(b),d.signal&&(d.signal.aborted?b():d.signal.addEventListener("abort",b))),E||(E=null);var V=c(B);if(V&&["http","https","file"].indexOf(V)===-1){m(new u("Unsupported protocol "+V+":",u.ERR_BAD_REQUEST,d));return}w.send(E)})},Ra}var Na,Mu;function oy(){return Mu||(Mu=1,Na=null),Na}var Pa,ku;function Rc(){if(ku)return Pa;ku=1;var e=Ze(),t=Xg(),n=In(),r=$d(),o=jd(),i={"Content-Type":"application/x-www-form-urlencoded"};function s(c,h){!e.isUndefined(c)&&e.isUndefined(c["Content-Type"])&&(c["Content-Type"]=h)}function a(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=Lu()),c}function u(c,h,d){if(e.isString(c))try{return(h||JSON.parse)(c),e.trim(c)}catch(l){if(l.name!=="SyntaxError")throw l}return(d||JSON.stringify)(c)}var f={transitional:r,adapter:a(),transformRequest:[function(h,d){if(t(d,"Accept"),t(d,"Content-Type"),e.isFormData(h)||e.isArrayBuffer(h)||e.isBuffer(h)||e.isStream(h)||e.isFile(h)||e.isBlob(h))return h;if(e.isArrayBufferView(h))return h.buffer;if(e.isURLSearchParams(h))return s(d,"application/x-www-form-urlencoded;charset=utf-8"),h.toString();var l=e.isObject(h),p=d&&d["Content-Type"],m;if((m=e.isFileList(h))||l&&p==="multipart/form-data"){var E=this.env&&this.env.FormData;return o(m?{"files[]":h}:h,E&&new E)}else if(l||p==="application/json")return s(d,"application/json"),u(h);return h}],transformResponse:[function(h){var d=this.transitional||f.transitional,l=d&&d.silentJSONParsing,p=d&&d.forcedJSONParsing,m=!l&&this.responseType==="json";if(m||p&&e.isString(h)&&h.length)try{return JSON.parse(h)}catch(E){if(m)throw E.name==="SyntaxError"?n.from(E,n.ERR_BAD_RESPONSE,this,null,this.response):E}return h}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:oy()},validateStatus:function(h){return h>=200&&h<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(h){f.headers[h]={}}),e.forEach(["post","put","patch"],function(h){f.headers[h]=e.merge(i)}),Pa=f,Pa}var Ia,Bu;function ay(){if(Bu)return Ia;Bu=1;var e=Ze(),t=Rc();return Ia=function(r,o,i){var s=this||t;return e.forEach(i,function(u){r=u.call(s,r,o)}),r},Ia}var La,Fu;function qd(){return Fu||(Fu=1,La=function(t){return!!(t&&t.__CANCEL__)}),La}var Ma,Uu;function sy(){if(Uu)return Ma;Uu=1;var e=Ze(),t=ay(),n=qd(),r=Rc(),o=Qo();function i(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new o}return Ma=function(a){i(a),a.headers=a.headers||{},a.data=t.call(a,a.data,a.headers,a.transformRequest),a.headers=e.merge(a.headers.common||{},a.headers[a.method]||{},a.headers),e.forEach(["delete","get","head","post","put","patch","common"],function(c){delete a.headers[c]});var u=a.adapter||r.adapter;return u(a).then(function(c){return i(a),c.data=t.call(a,c.data,c.headers,a.transformResponse),c},function(c){return n(c)||(i(a),c&&c.response&&(c.response.data=t.call(a,c.response.data,c.response.headers,a.transformResponse))),Promise.reject(c)})},Ma}var ka,Du;function Gd(){if(Du)return ka;Du=1;var e=Ze();return ka=function(n,r){r=r||{};var o={};function i(h,d){return e.isPlainObject(h)&&e.isPlainObject(d)?e.merge(h,d):e.isPlainObject(d)?e.merge({},d):e.isArray(d)?d.slice():d}function s(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(n[h],r[h])}function a(h){if(!e.isUndefined(r[h]))return i(void 0,r[h])}function u(h){if(e.isUndefined(r[h])){if(!e.isUndefined(n[h]))return i(void 0,n[h])}else return i(void 0,r[h])}function f(h){if(h in r)return i(n[h],r[h]);if(h in n)return i(void 0,n[h])}var c={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f};return e.forEach(Object.keys(n).concat(Object.keys(r)),function(d){var l=c[d]||s,p=l(d);e.isUndefined(p)&&l!==f||(o[d]=p)}),o},ka}var Ba,$u;function Wd(){return $u||($u=1,Ba={version:"0.27.2"}),Ba}var Fa,ju;function cy(){if(ju)return Fa;ju=1;var e=Wd().version,t=In(),n={};["object","boolean","number","function","string","symbol"].forEach(function(i,s){n[i]=function(u){return typeof u===i||"a"+(s<1?"n ":" ")+i}});var r={};n.transitional=function(s,a,u){function f(c,h){return"[Axios v"+e+"] Transitional option '"+c+"'"+h+(u?". "+u:"")}return function(c,h,d){if(s===!1)throw new t(f(h," has been removed"+(a?" in "+a:"")),t.ERR_DEPRECATED);return a&&!r[h]&&(r[h]=!0,console.warn(f(h," has been deprecated since v"+a+" and will be removed in the near future"))),s?s(c,h,d):!0}};function o(i,s,a){if(typeof i!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var u=Object.keys(i),f=u.length;f-- >0;){var c=u[f],h=s[c];if(h){var d=i[c],l=d===void 0||h(d,c,i);if(l!==!0)throw new t("option "+c+" must be "+l,t.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new t("Unknown option "+c,t.ERR_BAD_OPTION)}}return Fa={assertOptions:o,validators:n},Fa}var Ua,Hu;function uy(){if(Hu)return Ua;Hu=1;var e=Ze(),t=Dd(),n=Qg(),r=sy(),o=Gd(),i=Hd(),s=cy(),a=s.validators;function u(f){this.defaults=f,this.interceptors={request:new n,response:new n}}return u.prototype.request=function(c,h){typeof c=="string"?(h=h||{},h.url=c):h=c||{},h=o(this.defaults,h),h.method?h.method=h.method.toLowerCase():this.defaults.method?h.method=this.defaults.method.toLowerCase():h.method="get";var d=h.transitional;d!==void 0&&s.assertOptions(d,{silentJSONParsing:a.transitional(a.boolean),forcedJSONParsing:a.transitional(a.boolean),clarifyTimeoutError:a.transitional(a.boolean)},!1);var l=[],p=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(h)===!1||(p=p&&N.synchronous,l.unshift(N.fulfilled,N.rejected))});var m=[];this.interceptors.response.forEach(function(N){m.push(N.fulfilled,N.rejected)});var E;if(!p){var T=[r,void 0];for(Array.prototype.unshift.apply(T,l),T=T.concat(m),E=Promise.resolve(h);T.length;)E=E.then(T.shift(),T.shift());return E}for(var _=h;l.length;){var b=l.shift(),A=l.shift();try{_=b(_)}catch(w){A(w);break}}try{E=r(_)}catch(w){return Promise.reject(w)}for(;m.length;)E=E.then(m.shift(),m.shift());return E},u.prototype.getUri=function(c){c=o(this.defaults,c);var h=i(c.baseURL,c.url);return t(h,c.params,c.paramsSerializer)},e.forEach(["delete","get","head","options"],function(c){u.prototype[c]=function(h,d){return this.request(o(d||{},{method:c,url:h,data:(d||{}).data}))}}),e.forEach(["post","put","patch"],function(c){function h(d){return function(p,m,E){return this.request(o(E||{},{method:c,headers:d?{"Content-Type":"multipart/form-data"}:{},url:p,data:m}))}}u.prototype[c]=h(),u.prototype[c+"Form"]=h(!0)}),Ua=u,Ua}var Da,qu;function ly(){if(qu)return Da;qu=1;var e=Qo();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var o=this;this.promise.then(function(i){if(o._listeners){var s,a=o._listeners.length;for(s=0;s<a;s++)o._listeners[s](i);o._listeners=null}}),this.promise.then=function(i){var s,a=new Promise(function(u){o.subscribe(u),s=u}).then(i);return a.cancel=function(){o.unsubscribe(s)},a},n(function(s){o.reason||(o.reason=new e(s),r(o.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var o=this._listeners.indexOf(r);o!==-1&&this._listeners.splice(o,1)}},t.source=function(){var r,o=new t(function(s){r=s});return{token:o,cancel:r}},Da=t,Da}var $a,Gu;function fy(){return Gu||(Gu=1,$a=function(t){return function(r){return t.apply(null,r)}}),$a}var ja,Wu;function dy(){if(Wu)return ja;Wu=1;var e=Ze();return ja=function(n){return e.isObject(n)&&n.isAxiosError===!0},ja}var Vu;function hy(){if(Vu)return ao.exports;Vu=1;var e=Ze(),t=Ud(),n=uy(),r=Gd(),o=Rc();function i(a){var u=new n(a),f=t(n.prototype.request,u);return e.extend(f,n.prototype,u),e.extend(f,u),f.create=function(h){return i(r(a,h))},f}var s=i(o);return s.Axios=n,s.CanceledError=Qo(),s.CancelToken=ly(),s.isCancel=qd(),s.VERSION=Wd().version,s.toFormData=jd(),s.AxiosError=In(),s.Cancel=s.CanceledError,s.all=function(u){return Promise.all(u)},s.spread=fy(),s.isAxiosError=dy(),ao.exports=s,ao.exports.default=s,ao.exports}var Ha,zu;function Vd(){return zu||(zu=1,Ha=hy()),Ha}var py=Function.prototype.toString,qa=Object.create,my=Object.defineProperty,gy=Object.getOwnPropertyDescriptor,Yu=Object.getOwnPropertyNames,Nc=Object.getOwnPropertySymbols,yy=Object.getPrototypeOf,zd=Object.prototype,vy=zd.hasOwnProperty,_y=zd.propertyIsEnumerable,Yd=typeof Nc=="function",Ey=typeof WeakMap=="function",by=function(){if(Ey)return function(){return new WeakMap};var e=function(){function t(){this._keys=[],this._values=[]}return t.prototype.has=function(n){return!!~this._keys.indexOf(n)},t.prototype.get=function(n){return this._values[this._keys.indexOf(n)]},t.prototype.set=function(n,r){this._keys.push(n),this._values.push(r)},t}();return function(){return new e}}(),Kd=function(e,t){var n=e.__proto__||yy(e);if(!n)return qa(null);var r=n.constructor;if(r===t.Object)return n===t.Object.prototype?{}:qa(n);if(~py.call(r).indexOf("[native code]"))try{return new r}catch{}return qa(n)},wy=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i in e)vy.call(e,i)&&(o[i]=n(e[i],r));if(Yd)for(var s=Nc(e),a=0,u=s.length,f=void 0;a<u;++a)f=s[a],_y.call(e,f)&&(o[f]=n(e[f],r));return o},Ku=function(e,t,n,r){var o=Kd(e,t);r.set(e,o);for(var i=Yd?Yu(e).concat(Nc(e)):Yu(e),s=0,a=i.length,u=void 0,f=void 0;s<a;++s)if(u=i[s],u!=="callee"&&u!=="caller")if(f=gy(e,u),f){!f.get&&!f.set&&(f.value=n(e[u],r));try{my(o,u,f)}catch{o[u]=f.value}}else o[u]=n(e[u],r);return o},Sy=function(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},Ty=Array.isArray,xy=Object.getPrototypeOf,Oy=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function _r(e,t){var n=!!(t&&t.isStrict),r=t&&t.realm||Oy,o=n?Ku:wy,i=function(s,a){if(!s||typeof s!="object")return s;if(a.has(s))return a.get(s);var u=s.__proto__||xy(s),f=u&&u.constructor;if(!f||f===r.Object)return o(s,r,i,a);var c;if(Ty(s)){if(n)return Ku(s,r,i,a);c=new f,a.set(s,c);for(var h=0,d=s.length;h<d;++h)c[h]=i(s[h],a);return c}if(s instanceof r.Date)return new f(s.getTime());if(s instanceof r.RegExp)return c=new f(s.source,s.flags||Sy(s)),c.lastIndex=s.lastIndex,c;if(r.Map&&s instanceof r.Map)return c=new f,a.set(s,c),s.forEach(function(l,p){c.set(p,i(l,a))}),c;if(r.Set&&s instanceof r.Set)return c=new f,a.set(s,c),s.forEach(function(l){c.add(i(l,a))}),c;if(r.Blob&&s instanceof r.Blob)return s.slice(0,s.size,s.type);if(r.Buffer&&r.Buffer.isBuffer(s))return c=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(s.length):new f(s.length),a.set(s,c),s.copy(c),c;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(s))return c=new f(s.buffer.slice(0)),a.set(s,c),c;if(s instanceof r.ArrayBuffer)return c=s.slice(0),a.set(s,c),c}return typeof s.then=="function"||s instanceof Error||r.WeakMap&&s instanceof r.WeakMap||r.WeakSet&&s instanceof r.WeakSet?s:o(s,r,i,a)};return i(e,by())}_r.default=_r;_r.strict=function(t,n){return _r(t,{isStrict:!0,realm:n?n.realm:void 0})};var Ay=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var o=42;t[n]=o;for(n 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 i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==o||s.enumerable!==!0)return!1}return!0},Qu=typeof Symbol<"u"&&Symbol,Cy=Ay,Ry=function(){return typeof Qu!="function"||typeof Symbol!="function"||typeof Qu("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Cy()},Xu={foo:{}},Ny=Object,Py=function(){return{__proto__:Xu}.foo===Xu.foo&&!({__proto__:null}instanceof Ny)},Iy="Function.prototype.bind called on incompatible ",Ga=Array.prototype.slice,Ly=Object.prototype.toString,My="[object Function]",ky=function(t){var n=this;if(typeof n!="function"||Ly.call(n)!==My)throw new TypeError(Iy+n);for(var r=Ga.call(arguments,1),o,i=function(){if(this instanceof o){var c=n.apply(this,r.concat(Ga.call(arguments)));return Object(c)===c?c:this}else return n.apply(t,r.concat(Ga.call(arguments)))},s=Math.max(0,n.length-r.length),a=[],u=0;u<s;u++)a.push("$"+u);if(o=Function("binder","return function ("+a.join(",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var f=function(){};f.prototype=n.prototype,o.prototype=new f,f.prototype=null}return o},By=ky,Pc=Function.prototype.bind||By,Fy=Pc,Uy=Fy.call(Function.call,Object.prototype.hasOwnProperty),ge,An=SyntaxError,Qd=Function,On=TypeError,Wa=function(e){try{return Qd('"use strict"; return ('+e+").constructor;")()}catch{}},Qr=Object.getOwnPropertyDescriptor;if(Qr)try{Qr({},"")}catch{Qr=null}var Va=function(){throw new On},Dy=Qr?function(){try{return arguments.callee,Va}catch{try{return Qr(arguments,"callee").get}catch{return Va}}}():Va,En=Ry(),$y=Py(),ze=Object.getPrototypeOf||($y?function(e){return e.__proto__}:null),Sn={},jy=typeof Uint8Array>"u"||!ze?ge:ze(Uint8Array),Xr={"%AggregateError%":typeof AggregateError>"u"?ge:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ge:ArrayBuffer,"%ArrayIteratorPrototype%":En&&ze?ze([][Symbol.iterator]()):ge,"%AsyncFromSyncIteratorPrototype%":ge,"%AsyncFunction%":Sn,"%AsyncGenerator%":Sn,"%AsyncGeneratorFunction%":Sn,"%AsyncIteratorPrototype%":Sn,"%Atomics%":typeof Atomics>"u"?ge:Atomics,"%BigInt%":typeof BigInt>"u"?ge:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ge:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ge:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ge:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?ge:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ge:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ge:FinalizationRegistry,"%Function%":Qd,"%GeneratorFunction%":Sn,"%Int8Array%":typeof Int8Array>"u"?ge:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ge:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ge:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":En&&ze?ze(ze([][Symbol.iterator]())):ge,"%JSON%":typeof JSON=="object"?JSON:ge,"%Map%":typeof Map>"u"?ge:Map,"%MapIteratorPrototype%":typeof Map>"u"||!En||!ze?ge:ze(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ge:Promise,"%Proxy%":typeof Proxy>"u"?ge:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?ge:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ge:Set,"%SetIteratorPrototype%":typeof Set>"u"||!En||!ze?ge:ze(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ge:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":En&&ze?ze(""[Symbol.iterator]()):ge,"%Symbol%":En?Symbol:ge,"%SyntaxError%":An,"%ThrowTypeError%":Dy,"%TypedArray%":jy,"%TypeError%":On,"%Uint8Array%":typeof Uint8Array>"u"?ge:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ge:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ge:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ge:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?ge:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ge:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ge:WeakSet};if(ze)try{null.error}catch(e){var Hy=ze(ze(e));Xr["%Error.prototype%"]=Hy}var qy=function e(t){var n;if(t==="%AsyncFunction%")n=Wa("async function () {}");else if(t==="%GeneratorFunction%")n=Wa("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Wa("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&ze&&(n=ze(o.prototype))}return Xr[t]=n,n},Ju={"%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"]},Ki=Pc,Bo=Uy,Gy=Ki.call(Function.call,Array.prototype.concat),Wy=Ki.call(Function.apply,Array.prototype.splice),Zu=Ki.call(Function.call,String.prototype.replace),Fo=Ki.call(Function.call,String.prototype.slice),Vy=Ki.call(Function.call,RegExp.prototype.exec),zy=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yy=/\\(\\)?/g,Ky=function(t){var n=Fo(t,0,1),r=Fo(t,-1);if(n==="%"&&r!=="%")throw new An("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new An("invalid intrinsic syntax, expected opening `%`");var o=[];return Zu(t,zy,function(i,s,a,u){o[o.length]=a?Zu(u,Yy,"$1"):s||i}),o},Qy=function(t,n){var r=t,o;if(Bo(Ju,r)&&(o=Ju[r],r="%"+o[0]+"%"),Bo(Xr,r)){var i=Xr[r];if(i===Sn&&(i=qy(r)),typeof i>"u"&&!n)throw new On("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new An("intrinsic "+t+" does not exist!")},Ic=function(t,n){if(typeof t!="string"||t.length===0)throw new On("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new On('"allowMissing" argument must be a boolean');if(Vy(/^%?[^%]*%?$/,t)===null)throw new An("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Ky(t),o=r.length>0?r[0]:"",i=Qy("%"+o+"%",n),s=i.name,a=i.value,u=!1,f=i.alias;f&&(o=f[0],Wy(r,Gy([0,1],f)));for(var c=1,h=!0;c<r.length;c+=1){var d=r[c],l=Fo(d,0,1),p=Fo(d,-1);if((l==='"'||l==="'"||l==="`"||p==='"'||p==="'"||p==="`")&&l!==p)throw new An("property names with quotes must have matching quotes");if((d==="constructor"||!h)&&(u=!0),o+="."+d,s="%"+o+"%",Bo(Xr,s))a=Xr[s];else if(a!=null){if(!(d in a)){if(!n)throw new On("base intrinsic for "+t+" exists, but the property is not available.");return}if(Qr&&c+1>=r.length){var m=Qr(a,d);h=!!m,h&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[d]}else h=Bo(a,d),a=a[d];h&&!u&&(Xr[s]=a)}}return a},Xd={exports:{}};(function(e){var t=Pc,n=Ic,r=n("%Function.prototype.apply%"),o=n("%Function.prototype.call%"),i=n("%Reflect.apply%",!0)||t.call(o,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),u=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var d=i(t,o,arguments);if(s&&a){var l=s(d,"length");l.configurable&&a(d,"length",{value:1+u(0,h.length-(arguments.length-1))})}return d};var f=function(){return i(t,r,arguments)};a?a(e.exports,"apply",{value:f}):e.exports.apply=f})(Xd);var Xy=Xd.exports,Jd=Ic,Zd=Xy,Jy=Zd(Jd("String.prototype.indexOf")),Zy=function(t,n){var r=Jd(t,!!n);return typeof r=="function"&&Jy(t,".prototype.")>-1?Zd(r):r};const ev={},tv=Object.freeze(Object.defineProperty({__proto__:null,default:ev},Symbol.toStringTag,{value:"Module"})),rv=Yi(tv);var Lc=typeof Map=="function"&&Map.prototype,za=Object.getOwnPropertyDescriptor&&Lc?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Uo=Lc&&za&&typeof za.get=="function"?za.get:null,el=Lc&&Map.prototype.forEach,Mc=typeof Set=="function"&&Set.prototype,Ya=Object.getOwnPropertyDescriptor&&Mc?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Do=Mc&&Ya&&typeof Ya.get=="function"?Ya.get:null,tl=Mc&&Set.prototype.forEach,nv=typeof WeakMap=="function"&&WeakMap.prototype,$i=nv?WeakMap.prototype.has:null,iv=typeof WeakSet=="function"&&WeakSet.prototype,ji=iv?WeakSet.prototype.has:null,ov=typeof WeakRef=="function"&&WeakRef.prototype,rl=ov?WeakRef.prototype.deref:null,av=Boolean.prototype.valueOf,sv=Object.prototype.toString,cv=Function.prototype.toString,uv=String.prototype.match,kc=String.prototype.slice,yr=String.prototype.replace,lv=String.prototype.toUpperCase,nl=String.prototype.toLowerCase,eh=RegExp.prototype.test,il=Array.prototype.concat,Ut=Array.prototype.join,fv=Array.prototype.slice,ol=Math.floor,Js=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ka=Object.getOwnPropertySymbols,Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Cn=typeof Symbol=="function"&&typeof Symbol.iterator=="object",rt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Cn||"symbol")?Symbol.toStringTag:null,th=Object.prototype.propertyIsEnumerable,al=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function sl(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||eh.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-ol(-e):ol(e);if(r!==e){var o=String(r),i=kc.call(t,o.length+1);return yr.call(o,n,"$&_")+"."+yr.call(yr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return yr.call(t,n,"$&_")}var ec=rv,cl=ec.custom,ul=nh(cl)?cl:null,dv=function e(t,n,r,o){var i=n||{};if(gr(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(gr(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=gr(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(gr(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(gr(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return oh(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var u=String(t);return a?sl(t,u):u}if(typeof t=="bigint"){var f=String(t)+"n";return a?sl(t,f):f}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return tc(t)?"[Array]":"[Object]";var h=Nv(i,r);if(typeof o>"u")o=[];else if(ih(o,t)>=0)return"[Circular]";function d(Y,oe,Q){if(oe&&(o=fv.call(o),o.push(oe)),Q){var M={depth:i.depth};return gr(i,"quoteStyle")&&(M.quoteStyle=i.quoteStyle),e(Y,M,r+1,o)}return e(Y,i,r+1,o)}if(typeof t=="function"&&!ll(t)){var l=bv(t),p=so(t,d);return"[Function"+(l?": "+l:" (anonymous)")+"]"+(p.length>0?" { "+Ut.call(p,", ")+" }":"")}if(nh(t)){var m=Cn?yr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Zs.call(t);return typeof t=="object"&&!Cn?hi(m):m}if(Av(t)){for(var E="<"+nl.call(String(t.nodeName)),T=t.attributes||[],_=0;_<T.length;_++)E+=" "+T[_].name+"="+rh(hv(T[_].value),"double",i);return E+=">",t.childNodes&&t.childNodes.length&&(E+="..."),E+="</"+nl.call(String(t.nodeName))+">",E}if(tc(t)){if(t.length===0)return"[]";var b=so(t,d);return h&&!Rv(b)?"["+rc(b,h)+"]":"[ "+Ut.call(b,", ")+" ]"}if(mv(t)){var A=so(t,d);return!("cause"in Error.prototype)&&"cause"in t&&!th.call(t,"cause")?"{ ["+String(t)+"] "+Ut.call(il.call("[cause]: "+d(t.cause),A),", ")+" }":A.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Ut.call(A,", ")+" }"}if(typeof t=="object"&&s){if(ul&&typeof t[ul]=="function"&&ec)return ec(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(wv(t)){var w=[];return el&&el.call(t,function(Y,oe){w.push(d(oe,t,!0)+" => "+d(Y,t))}),fl("Map",Uo.call(t),w,h)}if(xv(t)){var N=[];return tl&&tl.call(t,function(Y){N.push(d(Y,t))}),fl("Set",Do.call(t),N,h)}if(Sv(t))return Qa("WeakMap");if(Ov(t))return Qa("WeakSet");if(Tv(t))return Qa("WeakRef");if(yv(t))return hi(d(Number(t)));if(_v(t))return hi(d(Js.call(t)));if(vv(t))return hi(av.call(t));if(gv(t))return hi(d(String(t)));if(!pv(t)&&!ll(t)){var F=so(t,d),B=al?al(t)===Object.prototype:t instanceof Object||t.constructor===Object,G=t instanceof Object?"":"null prototype",W=!B&&rt&&Object(t)===t&&rt in t?kc.call(br(t),8,-1):G?"Object":"",V=B||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",H=V+(W||G?"["+Ut.call(il.call([],W||[],G||[]),": ")+"] ":"");return F.length===0?H+"{}":h?H+"{"+rc(F,h)+"}":H+"{ "+Ut.call(F,", ")+" }"}return String(t)};function rh(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function hv(e){return yr.call(String(e),/"/g,"&quot;")}function tc(e){return br(e)==="[object Array]"&&(!rt||!(typeof e=="object"&&rt in e))}function pv(e){return br(e)==="[object Date]"&&(!rt||!(typeof e=="object"&&rt in e))}function ll(e){return br(e)==="[object RegExp]"&&(!rt||!(typeof e=="object"&&rt in e))}function mv(e){return br(e)==="[object Error]"&&(!rt||!(typeof e=="object"&&rt in e))}function gv(e){return br(e)==="[object String]"&&(!rt||!(typeof e=="object"&&rt in e))}function yv(e){return br(e)==="[object Number]"&&(!rt||!(typeof e=="object"&&rt in e))}function vv(e){return br(e)==="[object Boolean]"&&(!rt||!(typeof e=="object"&&rt in e))}function nh(e){if(Cn)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Zs)return!1;try{return Zs.call(e),!0}catch{}return!1}function _v(e){if(!e||typeof e!="object"||!Js)return!1;try{return Js.call(e),!0}catch{}return!1}var Ev=Object.prototype.hasOwnProperty||function(e){return e in this};function gr(e,t){return Ev.call(e,t)}function br(e){return sv.call(e)}function bv(e){if(e.name)return e.name;var t=uv.call(cv.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function ih(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function wv(e){if(!Uo||!e||typeof e!="object")return!1;try{Uo.call(e);try{Do.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Sv(e){if(!$i||!e||typeof e!="object")return!1;try{$i.call(e,$i);try{ji.call(e,ji)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Tv(e){if(!rl||!e||typeof e!="object")return!1;try{return rl.call(e),!0}catch{}return!1}function xv(e){if(!Do||!e||typeof e!="object")return!1;try{Do.call(e);try{Uo.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Ov(e){if(!ji||!e||typeof e!="object")return!1;try{ji.call(e,ji);try{$i.call(e,$i)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Av(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function oh(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return oh(kc.call(e,0,t.maxStringLength),t)+r}var o=yr.call(yr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Cv);return rh(o,"single",t)}function Cv(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+lv.call(t.toString(16))}function hi(e){return"Object("+e+")"}function Qa(e){return e+" { ? }"}function fl(e,t,n,r){var o=r?rc(n,r):Ut.call(n,", ");return e+" ("+t+") {"+o+"}"}function Rv(e){for(var t=0;t<e.length;t++)if(ih(e[t],`
26
26
  `)>=0)return!1;return!0}function Nv(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Ut.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Ut.call(Array(t+1),n)}}function rc(e,t){if(e.length===0)return"";var n=`
27
27
  `+t.prev+t.base;return n+Ut.call(e,","+n)+`
28
- `+t.prev}function so(e,t){var n=tc(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=gr(e,o)?t(e[o],e):""}var i=typeof Ka=="function"?Ka(e):[],s;if(Cn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in e)gr(e,u)&&(n&&String(Number(u))===u&&u<e.length||Cn&&s["$"+u]instanceof Symbol||(eh.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof Ka=="function")for(var f=0;f<i.length;f++)th.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Bc=Ic,Ln=Zy,Pv=dv,Iv=Bc("%TypeError%"),co=Bc("%WeakMap%",!0),uo=Bc("%Map%",!0),Lv=Ln("WeakMap.prototype.get",!0),Mv=Ln("WeakMap.prototype.set",!0),kv=Ln("WeakMap.prototype.has",!0),Bv=Ln("Map.prototype.get",!0),Fv=Ln("Map.prototype.set",!0),Uv=Ln("Map.prototype.has",!0),Fc=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Dv=function(e,t){var n=Fc(e,t);return n&&n.value},$v=function(e,t,n){var r=Fc(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jv=function(e,t){return!!Fc(e,t)},Hv=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new Iv("Side channel does not contain "+Pv(i))},get:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Lv(t,i)}else if(uo){if(n)return Bv(n,i)}else if(r)return Dv(r,i)},has:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return kv(t,i)}else if(uo){if(n)return Uv(n,i)}else if(r)return jv(r,i);return!1},set:function(i,s){co&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new co),Mv(t,i,s)):uo?(n||(n=new uo),Fv(n,i,s)):(r||(r={key:{},next:null}),$v(r,i,s))}};return o},qv=String.prototype.replace,Gv=/%20/g,Xa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Uc={default:Xa.RFC3986,formatters:{RFC1738:function(e){return qv.call(e,Gv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xa.RFC1738,RFC3986:Xa.RFC3986},Wv=Uc,Ja=Object.prototype.hasOwnProperty,Kr=Array.isArray,kt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Vv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Kr(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},ah=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},zv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Kr(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ja.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Kr(t)&&!Kr(n)&&(o=ah(t,r)),Kr(t)&&Kr(n)?(n.forEach(function(i,s){if(Ja.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var a=n[s];return Ja.call(i,s)?i[s]=e(i[s],a,r):i[s]=a,i},o)},Yv=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Kv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Qv=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var f=s.charCodeAt(u);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Wv.RFC1738&&(f===40||f===41)){a+=s.charAt(u);continue}if(f<128){a=a+kt[f];continue}if(f<2048){a=a+(kt[192|f>>6]+kt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(kt[224|f>>12]+kt[128|f>>6&63]+kt[128|f&63]);continue}u+=1,f=65536+((f&1023)<<10|s.charCodeAt(u)&1023),a+=kt[240|f>>18]+kt[128|f>>12&63]+kt[128|f>>6&63]+kt[128|f&63]}return a},Xv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var f=a[u],c=s[f];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:f}),r.push(c))}return Vv(n),t},Jv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Zv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},e0=function(t,n){return[].concat(t,n)},t0=function(t,n){if(Kr(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},sh={arrayToObject:ah,assign:Yv,combine:e0,compact:Xv,decode:Kv,encode:Qv,isBuffer:Zv,isRegExp:Jv,maybeMap:t0,merge:zv},ch=Hv,Lo=sh,Hi=Uc,r0=Object.prototype.hasOwnProperty,dl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},nr=Array.isArray,n0=Array.prototype.push,uh=function(e,t){n0.apply(e,nr(t)?t:[t])},i0=Date.prototype.toISOString,hl=Hi.default,tt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Lo.encode,encodeValuesOnly:!1,format:hl,formatter:Hi.formatters[hl],indices:!1,serializeDate:function(t){return i0.call(t)},skipNulls:!1,strictNullHandling:!1},o0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Za={},a0=function e(t,n,r,o,i,s,a,u,f,c,h,d,l,p,m,E){for(var T=t,_=E,b=0,A=!1;(_=_.get(Za))!==void 0&&!A;){var w=_.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof _.get(Za)>"u"&&(b=0)}if(typeof u=="function"?T=u(n,T):T instanceof Date?T=h(T):r==="comma"&&nr(T)&&(T=Lo.maybeMap(T,function(M){return M instanceof Date?h(M):M})),T===null){if(i)return a&&!p?a(n,tt.encoder,m,"key",d):n;T=""}if(o0(T)||Lo.isBuffer(T)){if(a){var N=p?n:a(n,tt.encoder,m,"key",d);return[l(N)+"="+l(a(T,tt.encoder,m,"value",d))]}return[l(n)+"="+l(String(T))]}var F=[];if(typeof T>"u")return F;var B;if(r==="comma"&&nr(T))p&&a&&(T=Lo.maybeMap(T,a)),B=[{value:T.length>0?T.join(",")||null:void 0}];else if(nr(u))B=u;else{var G=Object.keys(T);B=f?G.sort(f):G}for(var W=o&&nr(T)&&T.length===1?n+"[]":n,V=0;V<B.length;++V){var H=B[V],Y=typeof H=="object"&&typeof H.value<"u"?H.value:T[H];if(!(s&&Y===null)){var oe=nr(T)?typeof r=="function"?r(W,H):W:W+(c?"."+H:"["+H+"]");E.set(t,b);var Q=ch();Q.set(Za,E),uh(F,e(Y,oe,r,o,i,s,r==="comma"&&p&&nr(T)?null:a,u,f,c,h,d,l,p,m,Q))}}return F},s0=function(t){if(!t)return tt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||tt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Hi.default;if(typeof t.format<"u"){if(!r0.call(Hi.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Hi.formatters[r],i=tt.filter;return(typeof t.filter=="function"||nr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:tt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?tt.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:tt.charsetSentinel,delimiter:typeof t.delimiter>"u"?tt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:tt.encode,encoder:typeof t.encoder=="function"?t.encoder:tt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:tt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:tt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:tt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:tt.strictNullHandling}},c0=function(e,t){var n=e,r=s0(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):nr(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in dl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var u=dl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=u==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=ch(),h=0;h<o.length;++h){var d=o[h];r.skipNulls&&n[d]===null||uh(s,a0(n[d],d,u,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var l=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""},Rn=sh,nc=Object.prototype.hasOwnProperty,u0=Array.isArray,Ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Rn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l0=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},lh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f0="utf8=%26%2310003%3B",d0="utf8=%E2%9C%93",h0=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,u,f=n.charset;if(n.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===d0?f="utf-8":s[u]===f0&&(f="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var c=s[u],h=c.indexOf("]="),d=h===-1?c.indexOf("="):h+1,l,p;d===-1?(l=n.decoder(c,Ve.decoder,f,"key"),p=n.strictNullHandling?null:""):(l=n.decoder(c.slice(0,d),Ve.decoder,f,"key"),p=Rn.maybeMap(lh(c.slice(d+1),n),function(m){return n.decoder(m,Ve.decoder,f,"value")})),p&&n.interpretNumericEntities&&f==="iso-8859-1"&&(p=l0(p)),c.indexOf("[]=")>-1&&(p=u0(p)?[p]:p),nc.call(r,l)?r[l]=Rn.combine(r[l],p):r[l]=p}return r},p0=function(e,t,n,r){for(var o=r?t:lh(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(u,10);!n.parseArrays&&u===""?s={0:o}:!isNaN(f)&&a!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},m0=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=r.depth>0&&s.exec(i),f=u?i.slice(0,u.index):i,c=[];if(f){if(!r.plainObjects&&nc.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var h=0;r.depth>0&&(u=a.exec(i))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&nc.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),p0(c,n,r,o)}},g0=function(t){if(!t)return Ve;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Ve.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ve.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ve.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ve.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ve.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ve.comma,decoder:typeof t.decoder=="function"?t.decoder:Ve.decoder,delimiter:typeof t.delimiter=="string"||Rn.isRegExp(t.delimiter)?t.delimiter:Ve.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ve.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ve.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ve.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ve.strictNullHandling}},y0=function(e,t){var n=g0(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?h0(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],u=m0(a,r[a],n,typeof e=="string");o=Rn.merge(o,u,n)}return n.allowSparse===!0?o:Rn.compact(o)},v0=c0,_0=y0,E0=Uc,b0={formats:E0,parse:_0,stringify:v0};const w0=jt(b0);var S0="[object String]",T0=Object.prototype,x0=T0.toString,O0=Array.isArray;function A0(e){return!!e&&typeof e=="object"}function C0(e){return typeof e=="string"||!O0(e)&&A0(e)&&x0.call(e)==S0}var R0=C0;const pl=jt(R0);var Dc={exports:{}};class fh extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const N0=({limit:e,interval:t,strict: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 r=new Map;let o=0,i=0;function s(){const c=Date.now();return c-o>t?(i=1,o=c,0):(i<e?i++:(o+=t,i=1),o-c)}const a=[];function u(){const c=Date.now();if(a.length<e)return a.push(c),0;const h=a.shift()+t;return c>=h?(a.push(c),0):(a.push(h),h-c)}const f=n?u:s;return c=>{const h=function(...d){if(!h.isEnabled)return(async()=>c.apply(this,d))();let l;return new Promise((p,m)=>{l=setTimeout(()=>{p(c.apply(this,d)),r.delete(l)},f()),r.set(l,m)})};return h.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new fh);r.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Dc.exports=N0;Dc.exports.AbortError=fh;var P0=Dc.exports;const I0=jt(P0);var L0="[object Object]";function M0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function k0(e,t){return function(n){return e(t(n))}}var B0=Function.prototype,dh=Object.prototype,hh=B0.toString,F0=dh.hasOwnProperty,U0=hh.call(Object),D0=dh.toString,$0=k0(Object.getPrototypeOf,Object);function j0(e){return!!e&&typeof e=="object"}function H0(e){if(!j0(e)||D0.call(e)!=L0||M0(e))return!1;var t=$0(e);if(t===null)return!0;var n=F0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hh.call(n)==U0}var q0=H0;const lo=jt(q0);function G0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],u=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(c){f=!0,o=c}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(r){W0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}function oc(){oc=function(o,i){return new n(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),$o(a,n.prototype)}function r(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,u){var f=s[u];if(typeof f=="number")a[u]=o[f];else{for(var c=0;o[f[c]]===void 0&&c+1<f.length;)c++;a[u]=o[f[c]]}return a},Object.create(null))}return V0(n,RegExp),n.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(u,f){var c=s[f];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,a)),i.apply(this,u)})}return e[Symbol.replace].call(this,o,i)},oc.apply(this,arguments)}function W0(e,t,n){return t=J0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$o(e,t)}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$o(e,t)}function z0(e,t){return Y0(e)||G0(e,t)||ph(e,t)||K0()}function Y0(e){if(Array.isArray(e))return e}function ph(e,t){if(e){if(typeof e=="string")return gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gl(e,t)}}function gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ `+t.prev}function so(e,t){var n=tc(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=gr(e,o)?t(e[o],e):""}var i=typeof Ka=="function"?Ka(e):[],s;if(Cn){s={};for(var a=0;a<i.length;a++)s["$"+i[a]]=i[a]}for(var u in e)gr(e,u)&&(n&&String(Number(u))===u&&u<e.length||Cn&&s["$"+u]instanceof Symbol||(eh.call(/[^\w$]/,u)?r.push(t(u,e)+": "+t(e[u],e)):r.push(u+": "+t(e[u],e))));if(typeof Ka=="function")for(var f=0;f<i.length;f++)th.call(e,i[f])&&r.push("["+t(i[f])+"]: "+t(e[i[f]],e));return r}var Bc=Ic,Ln=Zy,Pv=dv,Iv=Bc("%TypeError%"),co=Bc("%WeakMap%",!0),uo=Bc("%Map%",!0),Lv=Ln("WeakMap.prototype.get",!0),Mv=Ln("WeakMap.prototype.set",!0),kv=Ln("WeakMap.prototype.has",!0),Bv=Ln("Map.prototype.get",!0),Fv=Ln("Map.prototype.set",!0),Uv=Ln("Map.prototype.has",!0),Fc=function(e,t){for(var n=e,r;(r=n.next)!==null;n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},Dv=function(e,t){var n=Fc(e,t);return n&&n.value},$v=function(e,t,n){var r=Fc(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}},jv=function(e,t){return!!Fc(e,t)},Hv=function(){var t,n,r,o={assert:function(i){if(!o.has(i))throw new Iv("Side channel does not contain "+Pv(i))},get:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return Lv(t,i)}else if(uo){if(n)return Bv(n,i)}else if(r)return Dv(r,i)},has:function(i){if(co&&i&&(typeof i=="object"||typeof i=="function")){if(t)return kv(t,i)}else if(uo){if(n)return Uv(n,i)}else if(r)return jv(r,i);return!1},set:function(i,s){co&&i&&(typeof i=="object"||typeof i=="function")?(t||(t=new co),Mv(t,i,s)):uo?(n||(n=new uo),Fv(n,i,s)):(r||(r={key:{},next:null}),$v(r,i,s))}};return o},qv=String.prototype.replace,Gv=/%20/g,Xa={RFC1738:"RFC1738",RFC3986:"RFC3986"},Uc={default:Xa.RFC3986,formatters:{RFC1738:function(e){return qv.call(e,Gv,"+")},RFC3986:function(e){return String(e)}},RFC1738:Xa.RFC1738,RFC3986:Xa.RFC3986},Wv=Uc,Ja=Object.prototype.hasOwnProperty,Yr=Array.isArray,kt=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Vv=function(t){for(;t.length>1;){var n=t.pop(),r=n.obj[n.prop];if(Yr(r)){for(var o=[],i=0;i<r.length;++i)typeof r[i]<"u"&&o.push(r[i]);n.obj[n.prop]=o}}},ah=function(t,n){for(var r=n&&n.plainObjects?Object.create(null):{},o=0;o<t.length;++o)typeof t[o]<"u"&&(r[o]=t[o]);return r},zv=function e(t,n,r){if(!n)return t;if(typeof n!="object"){if(Yr(t))t.push(n);else if(t&&typeof t=="object")(r&&(r.plainObjects||r.allowPrototypes)||!Ja.call(Object.prototype,n))&&(t[n]=!0);else return[t,n];return t}if(!t||typeof t!="object")return[t].concat(n);var o=t;return Yr(t)&&!Yr(n)&&(o=ah(t,r)),Yr(t)&&Yr(n)?(n.forEach(function(i,s){if(Ja.call(t,s)){var a=t[s];a&&typeof a=="object"&&i&&typeof i=="object"?t[s]=e(a,i,r):t.push(i)}else t[s]=i}),t):Object.keys(n).reduce(function(i,s){var a=n[s];return Ja.call(i,s)?i[s]=e(i[s],a,r):i[s]=a,i},o)},Yv=function(t,n){return Object.keys(n).reduce(function(r,o){return r[o]=n[o],r},t)},Kv=function(e,t,n){var r=e.replace(/\+/g," ");if(n==="iso-8859-1")return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch{return r}},Qv=function(t,n,r,o,i){if(t.length===0)return t;var s=t;if(typeof t=="symbol"?s=Symbol.prototype.toString.call(t):typeof t!="string"&&(s=String(t)),r==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(c){return"%26%23"+parseInt(c.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;++u){var f=s.charCodeAt(u);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===Wv.RFC1738&&(f===40||f===41)){a+=s.charAt(u);continue}if(f<128){a=a+kt[f];continue}if(f<2048){a=a+(kt[192|f>>6]+kt[128|f&63]);continue}if(f<55296||f>=57344){a=a+(kt[224|f>>12]+kt[128|f>>6&63]+kt[128|f&63]);continue}u+=1,f=65536+((f&1023)<<10|s.charCodeAt(u)&1023),a+=kt[240|f>>18]+kt[128|f>>12&63]+kt[128|f>>6&63]+kt[128|f&63]}return a},Xv=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],o=0;o<n.length;++o)for(var i=n[o],s=i.obj[i.prop],a=Object.keys(s),u=0;u<a.length;++u){var f=a[u],c=s[f];typeof c=="object"&&c!==null&&r.indexOf(c)===-1&&(n.push({obj:s,prop:f}),r.push(c))}return Vv(n),t},Jv=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Zv=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},e0=function(t,n){return[].concat(t,n)},t0=function(t,n){if(Yr(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(n(t[o]));return r}return n(t)},sh={arrayToObject:ah,assign:Yv,combine:e0,compact:Xv,decode:Kv,encode:Qv,isBuffer:Zv,isRegExp:Jv,maybeMap:t0,merge:zv},ch=Hv,Lo=sh,Hi=Uc,r0=Object.prototype.hasOwnProperty,dl={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,n){return t+"["+n+"]"},repeat:function(t){return t}},nr=Array.isArray,n0=Array.prototype.push,uh=function(e,t){n0.apply(e,nr(t)?t:[t])},i0=Date.prototype.toISOString,hl=Hi.default,tt={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Lo.encode,encodeValuesOnly:!1,format:hl,formatter:Hi.formatters[hl],indices:!1,serializeDate:function(t){return i0.call(t)},skipNulls:!1,strictNullHandling:!1},o0=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Za={},a0=function e(t,n,r,o,i,s,a,u,f,c,h,d,l,p,m,E){for(var T=t,_=E,b=0,A=!1;(_=_.get(Za))!==void 0&&!A;){var w=_.get(t);if(b+=1,typeof w<"u"){if(w===b)throw new RangeError("Cyclic object value");A=!0}typeof _.get(Za)>"u"&&(b=0)}if(typeof u=="function"?T=u(n,T):T instanceof Date?T=h(T):r==="comma"&&nr(T)&&(T=Lo.maybeMap(T,function(M){return M instanceof Date?h(M):M})),T===null){if(i)return a&&!p?a(n,tt.encoder,m,"key",d):n;T=""}if(o0(T)||Lo.isBuffer(T)){if(a){var N=p?n:a(n,tt.encoder,m,"key",d);return[l(N)+"="+l(a(T,tt.encoder,m,"value",d))]}return[l(n)+"="+l(String(T))]}var F=[];if(typeof T>"u")return F;var B;if(r==="comma"&&nr(T))p&&a&&(T=Lo.maybeMap(T,a)),B=[{value:T.length>0?T.join(",")||null:void 0}];else if(nr(u))B=u;else{var G=Object.keys(T);B=f?G.sort(f):G}for(var W=o&&nr(T)&&T.length===1?n+"[]":n,V=0;V<B.length;++V){var H=B[V],Y=typeof H=="object"&&typeof H.value<"u"?H.value:T[H];if(!(s&&Y===null)){var oe=nr(T)?typeof r=="function"?r(W,H):W:W+(c?"."+H:"["+H+"]");E.set(t,b);var Q=ch();Q.set(Za,E),uh(F,e(Y,oe,r,o,i,s,r==="comma"&&p&&nr(T)?null:a,u,f,c,h,d,l,p,m,Q))}}return F},s0=function(t){if(!t)return tt;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var n=t.charset||tt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=Hi.default;if(typeof t.format<"u"){if(!r0.call(Hi.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o=Hi.formatters[r],i=tt.filter;return(typeof t.filter=="function"||nr(t.filter))&&(i=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:tt.addQueryPrefix,allowDots:typeof t.allowDots>"u"?tt.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:tt.charsetSentinel,delimiter:typeof t.delimiter>"u"?tt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:tt.encode,encoder:typeof t.encoder=="function"?t.encoder:tt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:tt.encodeValuesOnly,filter:i,format:r,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:tt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:tt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:tt.strictNullHandling}},c0=function(e,t){var n=e,r=s0(t),o,i;typeof r.filter=="function"?(i=r.filter,n=i("",n)):nr(r.filter)&&(i=r.filter,o=i);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in dl?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var u=dl[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=u==="comma"&&t&&t.commaRoundTrip;o||(o=Object.keys(n)),r.sort&&o.sort(r.sort);for(var c=ch(),h=0;h<o.length;++h){var d=o[h];r.skipNulls&&n[d]===null||uh(s,a0(n[d],d,u,f,r.strictNullHandling,r.skipNulls,r.encode?r.encoder:null,r.filter,r.sort,r.allowDots,r.serializeDate,r.format,r.formatter,r.encodeValuesOnly,r.charset,c))}var l=s.join(r.delimiter),p=r.addQueryPrefix===!0?"?":"";return r.charsetSentinel&&(r.charset==="iso-8859-1"?p+="utf8=%26%2310003%3B&":p+="utf8=%E2%9C%93&"),l.length>0?p+l:""},Rn=sh,nc=Object.prototype.hasOwnProperty,u0=Array.isArray,Ve={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Rn.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l0=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},lh=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f0="utf8=%26%2310003%3B",d0="utf8=%E2%9C%93",h0=function(t,n){var r={__proto__:null},o=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,i=n.parameterLimit===1/0?void 0:n.parameterLimit,s=o.split(n.delimiter,i),a=-1,u,f=n.charset;if(n.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===d0?f="utf-8":s[u]===f0&&(f="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var c=s[u],h=c.indexOf("]="),d=h===-1?c.indexOf("="):h+1,l,p;d===-1?(l=n.decoder(c,Ve.decoder,f,"key"),p=n.strictNullHandling?null:""):(l=n.decoder(c.slice(0,d),Ve.decoder,f,"key"),p=Rn.maybeMap(lh(c.slice(d+1),n),function(m){return n.decoder(m,Ve.decoder,f,"value")})),p&&n.interpretNumericEntities&&f==="iso-8859-1"&&(p=l0(p)),c.indexOf("[]=")>-1&&(p=u0(p)?[p]:p),nc.call(r,l)?r[l]=Rn.combine(r[l],p):r[l]=p}return r},p0=function(e,t,n,r){for(var o=r?t:lh(t,n),i=e.length-1;i>=0;--i){var s,a=e[i];if(a==="[]"&&n.parseArrays)s=[].concat(o);else{s=n.plainObjects?Object.create(null):{};var u=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,f=parseInt(u,10);!n.parseArrays&&u===""?s={0:o}:!isNaN(f)&&a!==u&&String(f)===u&&f>=0&&n.parseArrays&&f<=n.arrayLimit?(s=[],s[f]=o):u!=="__proto__"&&(s[u]=o)}o=s}return o},m0=function(t,n,r,o){if(t){var i=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,u=r.depth>0&&s.exec(i),f=u?i.slice(0,u.index):i,c=[];if(f){if(!r.plainObjects&&nc.call(Object.prototype,f)&&!r.allowPrototypes)return;c.push(f)}for(var h=0;r.depth>0&&(u=a.exec(i))!==null&&h<r.depth;){if(h+=1,!r.plainObjects&&nc.call(Object.prototype,u[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(u[1])}return u&&c.push("["+i.slice(u.index)+"]"),p0(c,n,r,o)}},g0=function(t){if(!t)return Ve;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=typeof t.charset>"u"?Ve.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ve.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ve.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ve.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ve.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ve.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ve.comma,decoder:typeof t.decoder=="function"?t.decoder:Ve.decoder,delimiter:typeof t.delimiter=="string"||Rn.isRegExp(t.delimiter)?t.delimiter:Ve.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ve.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ve.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ve.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ve.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ve.strictNullHandling}},y0=function(e,t){var n=g0(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?h0(e,n):e,o=n.plainObjects?Object.create(null):{},i=Object.keys(r),s=0;s<i.length;++s){var a=i[s],u=m0(a,r[a],n,typeof e=="string");o=Rn.merge(o,u,n)}return n.allowSparse===!0?o:Rn.compact(o)},v0=c0,_0=y0,E0=Uc,b0={formats:E0,parse:_0,stringify:v0};const w0=jt(b0);var S0="[object String]",T0=Object.prototype,x0=T0.toString,O0=Array.isArray;function A0(e){return!!e&&typeof e=="object"}function C0(e){return typeof e=="string"||!O0(e)&&A0(e)&&x0.call(e)==S0}var R0=C0;const pl=jt(R0);var Dc={exports:{}};class fh extends Error{constructor(){super("Throttled function aborted"),this.name="AbortError"}}const N0=({limit:e,interval:t,strict: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 r=new Map;let o=0,i=0;function s(){const c=Date.now();return c-o>t?(i=1,o=c,0):(i<e?i++:(o+=t,i=1),o-c)}const a=[];function u(){const c=Date.now();if(a.length<e)return a.push(c),0;const h=a.shift()+t;return c>=h?(a.push(c),0):(a.push(h),h-c)}const f=n?u:s;return c=>{const h=function(...d){if(!h.isEnabled)return(async()=>c.apply(this,d))();let l;return new Promise((p,m)=>{l=setTimeout(()=>{p(c.apply(this,d)),r.delete(l)},f()),r.set(l,m)})};return h.abort=()=>{for(const d of r.keys())clearTimeout(d),r.get(d)(new fh);r.clear(),a.splice(0,a.length)},h.isEnabled=!0,h}};Dc.exports=N0;Dc.exports.AbortError=fh;var P0=Dc.exports;const I0=jt(P0);var L0="[object Object]";function M0(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function k0(e,t){return function(n){return e(t(n))}}var B0=Function.prototype,dh=Object.prototype,hh=B0.toString,F0=dh.hasOwnProperty,U0=hh.call(Object),D0=dh.toString,$0=k0(Object.getPrototypeOf,Object);function j0(e){return!!e&&typeof e=="object"}function H0(e){if(!j0(e)||D0.call(e)!=L0||M0(e))return!1;var t=$0(e);if(t===null)return!0;var n=F0.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hh.call(n)==U0}var q0=H0;const lo=jt(q0);function G0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],u=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);u=!0);}catch(c){f=!0,o=c}finally{try{if(!u&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw o}}return a}}function ml(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ml(Object(n),!0).forEach(function(r){W0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ml(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ic(e){"@babel/helpers - typeof";return ic=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},ic(e)}function oc(){oc=function(o,i){return new n(o,void 0,i)};var e=RegExp.prototype,t=new WeakMap;function n(o,i,s){var a=new RegExp(o,i);return t.set(a,s||t.get(o)),$o(a,n.prototype)}function r(o,i){var s=t.get(i);return Object.keys(s).reduce(function(a,u){var f=s[u];if(typeof f=="number")a[u]=o[f];else{for(var c=0;o[f[c]]===void 0&&c+1<f.length;)c++;a[u]=o[f[c]]}return a},Object.create(null))}return V0(n,RegExp),n.prototype.exec=function(o){var i=e.exec.call(this,o);if(i){i.groups=r(i,this);var s=i.indices;s&&(s.groups=r(s,this))}return i},n.prototype[Symbol.replace]=function(o,i){if(typeof i=="string"){var s=t.get(this);return e[Symbol.replace].call(this,o,i.replace(/\$<([^>]+)>/g,function(u,f){var c=s[f];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof i=="function"){var a=this;return e[Symbol.replace].call(this,o,function(){var u=arguments;return typeof u[u.length-1]!="object"&&(u=[].slice.call(u)).push(r(u,a)),i.apply(this,u)})}return e[Symbol.replace].call(this,o,i)},oc.apply(this,arguments)}function W0(e,t,n){return t=J0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$o(e,t)}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},$o(e,t)}function z0(e,t){return Y0(e)||G0(e,t)||ph(e,t)||K0()}function Y0(e){if(Array.isArray(e))return e}function ph(e,t){if(e){if(typeof e=="string")return gl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gl(e,t)}}function gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
29
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ph(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function X0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J0(e){var t=X0(e,"string");return typeof t=="symbol"?t:String(t)}function Z0(){return typeof process<"u"&&!process.browser}function e_(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function t_(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function r_(){return window}function ac(){}var sc=oc(/(\d+)(%)/,{value:1});function es(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(sc.test(e)){var r,o=(r=e.match(sc))===null||r===void 0?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(t*i)}}return Math.min(30,Math.max(1,n))}function yl(e,t){return t("info","Throttle request to ".concat(e,"/s")),I0({limit:e,interval:1e3,strict:!1})}var n_=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?ac:n,o=pl(t)?es(t):es("auto",t),i=yl(o,r),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),u=e.interceptors.response.use(function(f){if(!s&&pl(t)&&(t==="auto"||sc.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=es(t,c);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=yl(h,r),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(u)}},i_=function(t){return new Promise(function(n){setTimeout(n,t)})},o_=function(t){return Math.pow(Math.SQRT2,t)};function a_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=r===void 0?ac:r,i=n.requestLogger,s=i===void 0?ac:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var u=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var c=f.attempts||1;if(c>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=o_(c);return u?u.status>=500&&u.status<600?h="Server ".concat(u.status):u.status===429&&(h="Rate limit",u.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=u.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=c+1,delete f.httpAgent,delete f.httpsAgent,i_(d).then(function(){return e(f)})):Promise.reject(a)})}function s_(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=Tn(Tn({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var c_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function mh(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(m,E){if(m==="error"&&E){var T=[E.name,E.message].filter(function(_){return _}).join(" - ");console.error("[error] ".concat(T)),console.error(E);return}console.log("[".concat(m,"] ").concat(E))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},r=Tn(Tn({},n),t);if(!r.accessToken){var o=new TypeError("Expected parameter accessToken");throw r.logHandler("error",o),o}var i=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",a=r.defaultHostname,u=r.insecure?80:443;if(r.host&&c_.test(r.host)){var f=r.host.split(":");if(f.length===2){var c=z0(f,2);a=c[0],u=c[1]}else a=f[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(u).concat(r.basePath,"/spaces/").concat(s);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:h,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:w0.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},l=e.create(d);return l.httpClientParams=t,l.cloneWithNewParams=function(p){return mh(e,Tn(Tn({},Er(t)),p))},r.onBeforeRequest&&l.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&s_(l,r.accessToken),r.throttle&&n_(l,r.throttle),a_(l,r.retryLimit),r.onError&&l.interceptors.response.use(function(p){return p},r.onError),l}function u_(e){var t=e.query,n={};return delete t.resolveLinks,n.params=Er(t),n}function l_(e,t){if(!(t in e)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(t,` missing from:
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,a;return{s:function(){n=n.call(e)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,a=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function X0(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function J0(e){var t=X0(e,"string");return typeof t=="symbol"?t:String(t)}function Z0(){return typeof process<"u"&&!process.browser}function e_(){return typeof window<"u"&&"navigator"in window&&"product"in window.navigator&&window.navigator.product==="ReactNative"}function t_(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function r_(){return window}function ac(){}var sc=oc(/(\d+)(%)/,{value:1});function es(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:7,n=t;if(sc.test(e)){var r,o=(r=e.match(sc))===null||r===void 0?void 0:r.groups;if(o&&o.value){var i=parseInt(o.value)/100;n=Math.round(t*i)}}return Math.min(30,Math.max(1,n))}function yl(e,t){return t("info","Throttle request to ".concat(e,"/s")),I0({limit:e,interval:1e3,strict:!1})}var n_=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto",n=e.defaults.logHandler,r=n===void 0?ac:n,o=pl(t)?es(t):es("auto",t),i=yl(o,r),s=!1,a=e.interceptors.request.use(function(f){return i(function(){return f})()},function(f){return Promise.reject(f)}),u=e.interceptors.response.use(function(f){if(!s&&pl(t)&&(t==="auto"||sc.test(t))&&f.headers&&f.headers["x-contentful-ratelimit-second-limit"]){var c=parseInt(f.headers["x-contentful-ratelimit-second-limit"]),h=es(t,c);h!==o&&(a&&e.interceptors.request.eject(a),o=h,i=yl(h,r),a=e.interceptors.request.use(function(d){return i(function(){return d})()},function(d){return Promise.reject(d)})),s=!0}return f},function(f){return Promise.reject(f)});return function(){e.interceptors.request.eject(a),e.interceptors.response.eject(u)}},i_=function(t){return new Promise(function(n){setTimeout(n,t)})},o_=function(t){return Math.pow(Math.SQRT2,t)};function a_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=r===void 0?ac:r,i=n.requestLogger,s=i===void 0?ac:i;e.interceptors.request.use(function(a){return s(a),a},function(a){return s(a),Promise.reject(a)}),e.interceptors.response.use(function(a){return o(a),a},function(a){var u=a.response,f=a.config;if(o(a),!f||!e.defaults.retryOnError)return Promise.reject(a);var c=f.attempts||1;if(c>t)return a.attempts=f.attempts,Promise.reject(a);var h=null,d=o_(c);return u?u.status>=500&&u.status<600?h="Server ".concat(u.status):u.status===429&&(h="Rate limit",u.headers&&a.response.headers["x-contentful-ratelimit-reset"]&&(d=u.headers["x-contentful-ratelimit-reset"])):h="Connection",h?(d=Math.floor(d*1e3+Math.random()*200+500),e.defaults.logHandler("warning","".concat(h," error occurred. Waiting for ").concat(d," ms before retrying...")),f.attempts=c+1,delete f.httpAgent,delete f.httpsAgent,i_(d).then(function(){return e(f)})):Promise.reject(a)})}function s_(e,t){e.interceptors.request.use(function(n){return t().then(function(r){return n.headers=Tn(Tn({},n.headers),{},{Authorization:"Bearer ".concat(r)}),n})})}var c_=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/;function mh(e,t){var n={insecure:!1,retryOnError:!0,logHandler:function(m,E){if(m==="error"&&E){var T=[E.name,E.message].filter(function(_){return _}).join(" - ");console.error("[error] ".concat(T)),console.error(E);return}console.log("[".concat(m,"] ").concat(E))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,throttle:0,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824,maxBodyLength:1073741824},r=Tn(Tn({},n),t);if(!r.accessToken){var o=new TypeError("Expected parameter accessToken");throw r.logHandler("error",o),o}var i=r.insecure?"http":"https",s=r.space?"".concat(r.space,"/"):"",a=r.defaultHostname,u=r.insecure?80:443;if(r.host&&c_.test(r.host)){var f=r.host.split(":");if(f.length===2){var c=z0(f,2);a=c[0],u=c[1]}else a=f[0]}r.basePath&&(r.basePath="/".concat(r.basePath.split("/").filter(Boolean).join("/")));var h=t.baseURL||"".concat(i,"://").concat(a,":").concat(u).concat(r.basePath,"/spaces/").concat(s);!r.headers.Authorization&&typeof r.accessToken!="function"&&(r.headers.Authorization="Bearer "+r.accessToken);var d={baseURL:h,headers:r.headers,httpAgent:r.httpAgent,httpsAgent:r.httpsAgent,paramsSerializer:w0.stringify,proxy:r.proxy,timeout:r.timeout,adapter:r.adapter,maxContentLength:r.maxContentLength,maxBodyLength:r.maxBodyLength,logHandler:r.logHandler,responseLogger:r.responseLogger,requestLogger:r.requestLogger,retryOnError:r.retryOnError},l=e.create(d);return l.httpClientParams=t,l.cloneWithNewParams=function(p){return mh(e,Tn(Tn({},_r(t)),p))},r.onBeforeRequest&&l.interceptors.request.use(r.onBeforeRequest),typeof r.accessToken=="function"&&s_(l,r.accessToken),r.throttle&&n_(l,r.throttle),a_(l,r.retryLimit),r.onError&&l.interceptors.response.use(function(p){return p},r.onError),l}function u_(e){var t=e.query,n={};return delete t.resolveLinks,n.params=_r(t),n}function l_(e,t){if(!(t in e)){var n=new Error;throw n.name="PropertyMissing",n.message="Required property ".concat(t,` missing from:
31
31
 
32
32
  `).concat(JSON.stringify(e),`
33
33
 
34
- `),n}return!0}function gh(e){var t=Object.getOwnPropertyNames(e),n=Q0(t),r;try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e[o];i&&ic(i)==="object"&&gh(i)}}catch(s){n.e(s)}finally{n.f()}return Object.freeze(e)}function f_(e){return gh(e.sys||{}),e}function vl(){var e=r_();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":i.indexOf(n)!==-1?"iOS":o.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function d_(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function h_(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{e_()?(i=vl(),o.push("platform ReactNative")):Z0()?(i=d_(),o.push("platform node.js/".concat(t_()))):(i=vl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function p_(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Er(this)}})}function m_(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!lo(n)||!lo(t))throw e;var i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};lo(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&lo(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(r=i.sys.id));var a=new Error;a.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var u;a.message=(u=s==null?void 0:s.message)!==null&&u!==void 0?u:""}throw a}const g_=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:mh,createRequestConfig:u_,enforceObjPath:l_,errorHandler:m_,freezeSys:f_,getUserAgentHeader:h_,toPlainObject:p_},Symbol.toStringTag,{value:"Module"})),Ht=Yi(g_);var fo={},pi={},ho={},_l;function y_(){if(_l)return ho;_l=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.wrapSpace=t;var e=Ht;function t(n){return(0,e.freezeSys)((0,e.toPlainObject)(n))}return ho}var mi={},ts={exports:{}},El;function Mn(){return El||(El=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){var n=Function.prototype.toString,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,f=Object.prototype,c=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",l=typeof WeakMap=="function",p=function(){if(l)return function(){return new WeakMap};var F=function(){function B(){this._keys=[],this._values=[]}return B.prototype.has=function(G){return!!~this._keys.indexOf(G)},B.prototype.get=function(G){return this._values[this._keys.indexOf(G)]},B.prototype.set=function(G,W){this._keys.push(G),this._values.push(W)},B}();return function(){return new F}}(),m=function(F,B){var G=F.__proto__||u(F);if(!G)return r(null);var W=G.constructor;if(W===B.Object)return G===B.Object.prototype?{}:r(G);if(~n.call(W).indexOf("[native code]"))try{return new W}catch{}return r(G)},E=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H in F)c.call(F,H)&&(V[H]=G(F[H],W));if(d)for(var Y=a(F),oe=0,Q=Y.length,M=void 0;oe<Q;++oe)M=Y[oe],h.call(F,M)&&(V[M]=G(F[M],W));return V},T=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H=d?s(F).concat(a(F)):s(F),Y=0,oe=H.length,Q=void 0,M=void 0;Y<oe;++Y)if(Q=H[Y],Q!=="callee"&&Q!=="caller")if(M=i(F,Q),M){!M.get&&!M.set&&(M.value=G(F[Q],W));try{o(V,Q,M)}catch{V[Q]=M.value}}else V[Q]=G(F[Q],W);return V},_=function(F){var B="";return F.global&&(B+="g"),F.ignoreCase&&(B+="i"),F.multiline&&(B+="m"),F.unicode&&(B+="u"),F.sticky&&(B+="y"),B},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ce<"u"?ce:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(F,B){var G=!!(B&&B.isStrict),W=B&&B.realm||w,V=G?T:E,H=function(Y,oe){if(!Y||typeof Y!="object")return Y;if(oe.has(Y))return oe.get(Y);var Q=Y.__proto__||A(Y),M=Q&&Q.constructor;if(!M||M===W.Object)return V(Y,W,H,oe);var z;if(b(Y)){if(G)return T(Y,W,H,oe);z=new M,oe.set(Y,z);for(var Z=0,de=Y.length;Z<de;++Z)z[Z]=H(Y[Z],oe);return z}if(Y instanceof W.Date)return new M(Y.getTime());if(Y instanceof W.RegExp)return z=new M(Y.source,Y.flags||_(Y)),z.lastIndex=Y.lastIndex,z;if(W.Map&&Y instanceof W.Map)return z=new M,oe.set(Y,z),Y.forEach(function(X,K){z.set(K,H(X,oe))}),z;if(W.Set&&Y instanceof W.Set)return z=new M,oe.set(Y,z),Y.forEach(function(X){z.add(H(X,oe))}),z;if(W.Blob&&Y instanceof W.Blob)return Y.slice(0,Y.size,Y.type);if(W.Buffer&&W.Buffer.isBuffer(Y))return z=W.Buffer.allocUnsafe?W.Buffer.allocUnsafe(Y.length):new M(Y.length),oe.set(Y,z),Y.copy(z),z;if(W.ArrayBuffer){if(W.ArrayBuffer.isView(Y))return z=new M(Y.buffer.slice(0)),oe.set(Y,z),z;if(Y instanceof W.ArrayBuffer)return z=Y.slice(0),oe.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||W.WeakMap&&Y instanceof W.WeakMap||W.WeakSet&&Y instanceof W.WeakSet?Y:V(Y,W,H,oe)};return H(F,p())}return N.default=N,N.strict=function(B,G){return N(B,{isStrict:!0,realm:G?G.realm:void 0})},N})}(ts)),ts.exports}var po={},mo={exports:{}},bl;function v_(){return bl||(bl=1,function(e,t){t=e.exports=n,t.getSerialize=r;function n(o,i,s,a){return JSON.stringify(o,r(i,a),s)}function r(o,i){var s=[],a=[];return i==null&&(i=function(u,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(u,f){if(s.length>0){var c=s.indexOf(this);~c?s.splice(c+1):s.push(this),~c?a.splice(c,1/0,u):a.push(u),~s.indexOf(f)&&(f=i.call(this,u,f))}else s.push(f);return o==null?f:o.call(this,u,f)}}}(mo,mo.exports)),mo.exports}var wl;function yh(){if(wl)return po;wl=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=n;var e=t(v_());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return po}var __=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_=function(){function e(t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),u;!(o=(u=a.next()).done)&&(r.push(u.value),!(n&&r.length===n));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function gi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var Gi={},b_=function(t){return t&&t.sys&&t.sys.type==="Link"},w_=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},S_=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},Sl=function(t,n){var r=n.entryId,o=n.linkType,i=n.spaceId,s=n.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+r):t.get(o+"!"+r)},T_=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),o=E_(r,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,u=o[3];return{spaceId:i,environmentId:a,entryId:u}}},x_=function(t,n){var r=n.sys,o=r.type,i=r.linkType;if(o==="ResourceLink"){var s=n.sys.urn,a=T_(s),u=a.spaceId,f=a.environmentId,c=a.entryId,h=i.split(":")[1];return Sl(t,{linkType:h,entryId:c,spaceId:u,environmentId:f})||Gi}var d=n.sys.id;return Sl(t,{linkType:i,entryId:d})||Gi},O_=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==Gi});for(var n in t)t[n]===Gi&&delete t[n];return t},A_=function e(t,n,r,o){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":__(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],n,r,o));o&&(t=O_(t))}return t},C_=function(t,n,r){var o=x_(t,n);return o===Gi?r?o:n:o},R_=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(o){return n.indexOf(o)!==-1});return r.reduce(function(o,i){return o[i]=t[i],o},{})},N_=function(t,n){if(n=n||{},!t.items)return[];var r=Er(t),o=Object.keys(r.includes||{}).reduce(function(a,u){return[].concat(gi(a),gi(t.includes[u]))},[]),i=[].concat(gi(r.items),gi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,u){var f=S_(u.sys).map(function(c){return[c,u]});return a.push.apply(a,gi(f)),a},[]));return i.forEach(function(a){var u=R_(a,n.itemEntryPoints);Object.assign(a,A_(u,function(f){return b_(f)||w_(f)},function(f){return C_(s,f,n.removeUnresolved)},n.removeUnresolved))}),r.items};const P_=Object.freeze(Object.defineProperty({__proto__:null,default:N_},Symbol.toStringTag,{value:"Module"})),vh=Yi(P_);var Tl;function I_(){if(Tl)return mi;Tl=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.wrapEntry=i,mi.wrapEntryCollection=s;var e=o(Mn()),t=Ht,n=o(yh()),r=o(vh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,u){let{resolveLinks:f,removeUnresolved:c}=u;const h=(0,n.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,r.default)(h,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return mi}var yi={},xl;function L_(){if(xl)return yi;xl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapAsset=r,yi.wrapAssetCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return yi}var go={},Ol;function M_(){if(Ol)return go;Ol=1,Object.defineProperty(go,"__esModule",{value:!0}),go.wrapAssetKey=r;var e=n(Mn()),t=Ht;function n(o){return o&&o.__esModule?o:{default:o}}function r(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return go}var vi={},Al;function k_(){if(Al)return vi;Al=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.wrapContentType=r,vi.wrapContentTypeCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return vi}var _i={},Cl;function B_(){if(Cl)return _i;Cl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.wrapLocale=r,_i.wrapLocaleCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return _i}var Ei={},Rl;function F_(){if(Rl)return Ei;Rl=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.wrapTag=r,Ei.wrapTagCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Ei}var Nl;function U_(){if(Nl)return pi;Nl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=void 0;var e=u(y_()),t=u(I_()),n=u(L_()),r=u(M_()),o=u(k_()),i=u(B_()),s=u(F_());function a(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(l){return l?d:h})(c)}function u(c,h){if(!h&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(h);if(d&&d.has(c))return d.get(c);var l={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var E=p?Object.getOwnPropertyDescriptor(c,m):null;E&&(E.get||E.set)?Object.defineProperty(l,m,E):l[m]=c[m]}return l.default=c,d&&d.set(c,l),l}var f={space:e,entry:t,asset:n,assetKey:r,contentType:o,locale:i,tag:s};return pi.default=f,pi}var yo={},Pl;function D_(){if(Pl)return yo;Pl=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=a;var e=Ht,t=r(vh),n=r(yh());function r(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function i(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?o(Object(l),!0).forEach(function(p){s(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function s(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}async function a(h,d){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:E,paginate:T}=i(i({},p),l),b=await f(h,[],d,{paginate:T});m&&(b.items=(0,t.default)(b,{removeUnresolved:E,itemEntryPoints:["fields"]}));const A=u(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(A)))}function u(h){const d=l=>(p,m)=>(m.sys.type===l&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,l,p){let{paginate:m}=p;l.nextSyncToken&&(l.sync_token=l.nextSyncToken,delete l.nextSyncToken),l.nextPageToken&&(l.sync_token=l.nextPageToken,delete l.nextPageToken),l.sync_token&&(delete l.initial,delete l.type,delete l.content_type,delete l.limit);const T=(await h.get("sync",(0,e.createRequestConfig)({query:l}))).data||{};return d=d.concat(T.items||[]),T.nextPageUrl?m?(delete l.initial,l.sync_token=c(T.nextPageUrl),f(h,d,l,{paginate:m})):{items:d,nextPageToken:c(T.nextPageUrl)}:T.nextSyncUrl?{items:d,nextSyncToken:c(T.nextSyncUrl)}:{items:[]}}function c(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return yo}var vo={},Il;function $_(){if(Il)return vo;Il=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=r;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(o,u).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){n(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function n(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function r(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return vo}var bn={},Ll;function j_(){if(Ll)return bn;Ll=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.ValidationError=void 0,bn.default=t;class e extends Error{constructor(r,o){super(`Invalid "${r}" provided, `+o),this.name="ValidationError"}}bn.ValidationError=e;function t(n,r,o){if(o=o||{},typeof r!="number")throw new e(n,`only numeric values are allowed for timestamps, provided type was "${typeof r}"`);if(o.maximum&&r>o.maximum)throw new e(n,`value (${r}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&r<o.now)throw new e(n,`value (${r}) cannot be in the past, current time was ${o.now}`)}return bn}var Ml;function H_(){if(Ml)return fo;Ml=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=c;var e=Ht,t=i(U_()),n=i(D_()),r=i($_()),o=i(j_());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function a(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?s(Object(l),!0).forEach(function(p){u(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):s(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function u(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}const f=48*60*60;function c(h){let{http:d,getGlobalOptions:l}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:E}=t.default.contentType,{wrapEntry:T,wrapEntryCollection:_}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:B}=t.default.locale,G=J=>{const re=new Error("The resource could not be found.");return re.sys={type:"Error",id:"NotFound"},re.details={type:"Entry",id:J,environment:l().environment,space:l().space},re};async function W(){Fe(d);try{const J=await d.get("/");return p(J.data)}catch(J){(0,e.errorHandler)(J)}}async function V(J){ue(d);try{const re=await d.get(`content_types/${J}`);return m(re.data)}catch(re){(0,e.errorHandler)(re)}}async function H(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("content_types",(0,e.createRequestConfig)({query:J}));return E(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Y(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw G(J);try{const Pe=await this.getEntries(a({"sys.id":J},re));if(Pe.items.length>0)return T(Pe.items[0]);throw G(J)}catch(Pe){(0,e.errorHandler)(Pe)}}async function oe(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);const{resolveLinks:re,removeUnresolved:Pe}=l(J);J=(0,r.default)(J);try{const Ae=await d.get("entries",(0,e.createRequestConfig)({query:J}));return _(Ae.data,{resolveLinks:re,removeUnresolved:Pe})}catch(Ae){(0,e.errorHandler)(Ae)}}async function Q(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ue(d),re=(0,r.default)(re);try{const Pe=await d.get(`assets/${J}`,(0,e.createRequestConfig)({query:re}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function M(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("assets",(0,e.createRequestConfig)({query:J}));return A(re.data)}catch(re){(0,e.errorHandler)(re)}}async function z(J){ue(d);try{const re=await d.get(`tags/${J}`);return w(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Z(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("tags",(0,e.createRequestConfig)({query:J}));return N(re.data)}catch(re){(0,e.errorHandler)(re)}}async function de(J){ue(d);try{const re=Math.floor(Date.now()/1e3),Pe=re+f;(0,o.default)("expiresAt",J,{maximum:Pe,now:re});const Ae={expiresAt:J},st=await d.post("asset_keys",Ae);return F(st.data)}catch(re){(0,e.errorHandler)(re)}}async function X(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("locales",(0,e.createRequestConfig)({query:J}));return B(re.data)}catch(re){(0,e.errorHandler)(re)}}async function K(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:Ae}=l(J);return ue(d),(0,n.default)(d,J,a({resolveLinks:Pe,removeUnresolved:Ae},re))}function se(J){const{resolveLinks:re,removeUnresolved:Pe}=l({});return _(J,{resolveLinks:re,removeUnresolved:Pe})}function ue(J){J.defaults.baseURL=l().environmentBaseUrl}function Fe(J){J.defaults.baseURL=l().spaceBaseUrl}return{getSpace:W,getContentType:V,getContentTypes:H,getEntry:Y,getEntries:oe,getAsset:Q,getAssets:M,getTag:z,getTags:Z,createAssetKey:de,getLocales:X,parseEntries:se,sync:K}}return fo}var _o={},kl;function q_(){if(kl)return _o;kl=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=e;function e(t){return function(r){return Object.assign({},t,r)}}return _o}var Bl;function G_(){if(Bl)return oo;Bl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.createClient=u;var e=o(Vd()),t=Ht,n=o(H_()),r=o(q_());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(l){return Object.getOwnPropertyDescriptor(f,l).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function u(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const l=(0,t.createHttpClient)(e.default,h),p=(0,r.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:l.defaults.baseURL,environmentBaseUrl:`${l.defaults.baseURL}environments/${h.environment}`});return l.defaults.baseURL=p().environmentBaseUrl,(0,n.default)({http:l,getGlobalOptions:p})}return oo}var rs={},ns,Fl;function W_(){return Fl||(Fl=1,ns=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),ns}var is,Ul;function V_(){if(Ul)return is;Ul=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var u=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],r(u),r(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],u=1;u<a.length;u++)s=r(a,u).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},u=n.exec(s);u;){try{a[u[0]]=decodeURIComponent(u[0])}catch{var f=o(u[0]);f!==u[0]&&(a[u[0]]=f)}u=n.exec(s)}a["%C2"]="�";for(var c=Object.keys(a),h=0;h<c.length;h++){var d=c[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return is=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},is}var os,Dl;function z_(){return Dl||(Dl=1,os=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),os}var as,$l;function Y_(){return $l||($l=1,as=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(n[s]=a)}return n}),as}var jl;function K_(){return jl||(jl=1,function(e){const t=W_(),n=V_(),r=z_(),o=Y_(),i=_=>_==null,s=Symbol("encodeFragmentIdentifier");function a(_){switch(_.arrayFormat){case"index":return b=>(A,w)=>{const N=A.length;return w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[",N,"]"].join("")]:[...A,[c(b,_),"[",c(N,_),"]=",c(w,_)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[]"].join("")]:[...A,[c(b,_),"[]=",c(w,_)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),":list="].join("")]:[...A,[c(b,_),":list=",c(w,_)].join("")];case"comma":case"separator":case"bracket-separator":{const b=_.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,N)=>N===void 0||_.skipNull&&N===null||_.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[c(A,_),b,c(N,_)].join("")]:[[w,c(N,_)].join(_.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,c(b,_)]:[...A,[c(b,_),"=",c(w,_)].join("")]}}function u(_){let b;switch(_.arrayFormat){case"index":return(A,w,N)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){N[A]=w;return}N[A]===void 0&&(N[A]={}),N[A][b[1]]=w};case"bracket":return(A,w,N)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"colon-list-separator":return(A,w,N)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"comma":case"separator":return(A,w,N)=>{const F=typeof w=="string"&&w.includes(_.arrayFormatSeparator),B=typeof w=="string"&&!F&&h(w,_).includes(_.arrayFormatSeparator);w=B?h(w,_):w;const G=F||B?w.split(_.arrayFormatSeparator).map(W=>h(W,_)):w===null?w:h(w,_);N[A]=G};case"bracket-separator":return(A,w,N)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){N[A]=w&&h(w,_);return}const B=w===null?[]:w.split(_.arrayFormatSeparator).map(G=>h(G,_));if(N[A]===void 0){N[A]=B;return}N[A]=[].concat(N[A],B)};default:return(A,w,N)=>{if(N[A]===void 0){N[A]=w;return}N[A]=[].concat(N[A],w)}}}function f(_){if(typeof _!="string"||_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(_,b){return b.encode?b.strict?t(_):encodeURIComponent(_):_}function h(_,b){return b.decode?n(_):_}function d(_){return Array.isArray(_)?_.sort():typeof _=="object"?d(Object.keys(_)).sort((b,A)=>Number(b)-Number(A)).map(b=>_[b]):_}function l(_){const b=_.indexOf("#");return b!==-1&&(_=_.slice(0,b)),_}function p(_){let b="";const A=_.indexOf("#");return A!==-1&&(b=_.slice(A)),b}function m(_){_=l(_);const b=_.indexOf("?");return b===-1?"":_.slice(b+1)}function E(_,b){return b.parseNumbers&&!Number.isNaN(Number(_))&&typeof _=="string"&&_.trim()!==""?_=Number(_):b.parseBooleans&&_!==null&&(_.toLowerCase()==="true"||_.toLowerCase()==="false")&&(_=_.toLowerCase()==="true"),_}function T(_,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=u(b),w=Object.create(null);if(typeof _!="string"||(_=_.trim().replace(/^[?#&]/,""),!_))return w;for(const N of _.split("&")){if(N==="")continue;let[F,B]=r(b.decode?N.replace(/\+/g," "):N,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?B:h(B,b),A(h(F,b),B,w)}for(const N of Object.keys(w)){const F=w[N];if(typeof F=="object"&&F!==null)for(const B of Object.keys(F))F[B]=E(F[B],b);else w[N]=E(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,F)=>{const B=w[F];return B&&typeof B=="object"&&!Array.isArray(B)?N[F]=d(B):N[F]=B,N},Object.create(null))}e.extract=m,e.parse=T,e.stringify=(_,b)=>{if(!_)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=B=>b.skipNull&&i(_[B])||b.skipEmptyString&&_[B]==="",w=a(b),N={};for(const B of Object.keys(_))A(B)||(N[B]=_[B]);const F=Object.keys(N);return b.sort!==!1&&F.sort(b.sort),F.map(B=>{const G=_[B];return G===void 0?"":G===null?c(B,b):Array.isArray(G)?G.length===0&&b.arrayFormat==="bracket-separator"?c(B,b)+"[]":G.reduce(w(B),[]).join("&"):c(B,b)+"="+c(G,b)}).filter(B=>B.length>0).join("&")},e.parseUrl=(_,b)=>{b=Object.assign({decode:!0},b);const[A,w]=r(_,"#");return Object.assign({url:A.split("?")[0]||"",query:T(m(_),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(_,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=l(_.url).split("?")[0]||"",w=e.extract(_.url),N=e.parse(w,{sort:!1}),F=Object.assign(N,_.query);let B=e.stringify(F,b);B&&(B=`?${B}`);let G=p(_.url);return _.fragmentIdentifier&&(G=`#${b[s]?c(_.fragmentIdentifier,b):_.fragmentIdentifier}`),`${A}${B}${G}`},e.pick=(_,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:N,fragmentIdentifier:F}=e.parseUrl(_,A);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:F},A)},e.exclude=(_,b,A)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,F)=>!b(N,F);return e.pick(_,w,A)}}(rs)),rs}var Hl;function Q_(){return Hl||(Hl=1,function(e,t){(function(n,r){e.exports=r(G_(),K_())})(ce,function(n,r){return function(){var o={897:function(u){u.exports=n},48:function(u){u.exports=r}},i={};function s(u){var f=i[u];if(f!==void 0)return f.exports;var c=i[u]={exports:{}};return o[u](c,c.exports,s),c.exports}s.d=function(u,f){for(var c in f)s.o(f,c)&&!s.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:f[c]})},s.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},s.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return oe},getEntry:function(){return Y},setContext:function(){return m}});var u=s(897),f=s(48),c={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:h,SPACE:d,HOSTS:l}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:l.CDN,space:d};const m=({apiKey:Q,environment:M,isPreview:z=!1,location:Z,previewKey:de,space:X=null})=>{p.apiKey=Q,p.previewKey=de,p.environment=(K=>{if(!K)throw new Error("Cannot map environment: Environment not defined");if(!h[K])throw new Error(`Cannot map environment: No mapping found for environment ${K}`);return h[K]})(M),p.isPreview=z||(K=>{let se=!1;if(K&&K.search){const ue=(0,f.parse)(K.search);se=ue.isPreview&&ue.isPreview==="true"}return se})(Z),p.space=X||d},E=(Q=!1)=>{const{apiKey:M,environment:z,isPreview:Z,previewKey:de,space:X}=p;return Z===!0||Q===!0?{accessToken:de,environment:z,host:l.PREVIEW,space:X}:{accessToken:M,environment:z,host:l.CDN,space:X}},T=Q=>typeof Q=="object"&&Q!==null,_=Q=>Array.isArray(Q)&&Q.length,b=Q=>{if(!T(Q))throw new Error("Cannot flatten fields");const{fields:M,sys:z}=Q;if(!M)throw new Error("Cannot flatten fields");let Z={...M};if(T(z)){const{contentType:de,createdAt:X,updatedAt:K}=z;de&&Object.assign(Z,{contentType:de.sys.id}),X&&Object.assign(Z,{createdAt:X}),K&&Object.assign(Z,{updatedAt:K})}return Z},{CONTENTFUL:{LOCALES:A}}=c,w=(Q,M)=>T(Q)&&((z,Z)=>Object.prototype.hasOwnProperty.call(z,Z))(Q,M),N=(Q,M)=>{const z=(Z=>A.SUPPORTED.includes(Z)?Z:A.DEFAULT)(M);return w(Q,z)?Q[z]:w(Q,A.DEFAULT)?Q[A.DEFAULT]:Q},F=Q=>T(Q)&&Q.sys&&Q.sys.type==="Asset",B=(Q,M,z)=>{const{title:Z,file:de}=b(Q);if(!de)throw new Error("Cannot flatten asset");const{contentType:X,fileName:K,url:se,details:ue}=N(de,M);if(!se)throw new Error("Cannot flatten asset");return z?{description:Z||K,height:ue&&ue.image&&ue.image.height,type:X,url:se,width:ue&&ue.image&&ue.image.width}:se},G=Q=>T(Q)&&Q.sys&&Q.sys.type==="Entry",W=(Q,M,z)=>{const Z={},de=((X,K)=>{const se={};for(const[ue,Fe]of Object.entries(X))se[ue]=N(Fe,K);return se})(b(Q),M);for(const[X,K]of Object.entries(de))F(K)?Z[X]=B(K,M,z):G(K)?Z[X]=W(K,M,z):_(K)?Z[X]=K.map(se=>F(se)?B(se,M,z):G(se)?W(se,M,z):se):Z[X]=K;return Z},V=({items:Q})=>{if(!_(Q))throw new Error("Cannot read items");return Q},H=async(Q,M)=>{const z=E(M);return await(await(0,u.createClient)(z)).getEntries(Q)},Y=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?W(se[0],X,K):se[0]})(await H(Q,z),{...Q,...M}),oe=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?((ue,Fe,J)=>ue.map(re=>W(re,Fe,J)))(se,X,K):se})(await H(Q,z),{...Q,...M})}(),a}()})}(fa)),fa.exports}var ss={exports:{}},cs={exports:{}},us={exports:{}},ls={exports:{}},ql;function $c(){return ql||(ql=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],u=["args"],f=["evalOrigin"],c=i.concat(s,a,u,f);function h(m){if(m)for(var E=0;E<c.length;E++)m[c[E]]!==void 0&&this["set"+r(c[E])](m[c[E]])}h.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",E=this.getLineNumber()||"",T=this.getColumnNumber()||"",_=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+E+":"+T+")":"[eval]:"+E+":"+T:_?_+" ("+m+":"+E+":"+T+")":m+":"+E+":"+T}},h.fromString=function(E){var T=E.indexOf("("),_=E.lastIndexOf(")"),b=E.substring(0,T),A=E.substring(T+1,_).split(","),w=E.substring(_+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=N[1],B=N[2],G=N[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:B||void 0,columnNumber:G||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+r(i[d])]=o(i[d]),h.prototype["set"+r(i[d])]=function(m){return function(E){this[m]=!!E}}(i[d]);for(var l=0;l<s.length;l++)h.prototype["get"+r(s[l])]=o(s[l]),h.prototype["set"+r(s[l])]=function(m){return function(E){if(!n(E))throw new TypeError(m+" must be a Number");this[m]=Number(E)}}(s[l]);for(var p=0;p<a.length;p++)h.prototype["get"+r(a[p])]=o(a[p]),h.prototype["set"+r(a[p])]=function(m){return function(E){this[m]=String(E)}}(a[p]);return h})}(ls)),ls.exports}var Gl;function X_(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r($c())})(ce,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(u){if(typeof u.stacktrace<"u"||typeof u["opera#sourceloc"]<"u")return this.parseOpera(u);if(u.stack&&u.stack.match(i))return this.parseV8OrIE(u);if(u.stack)return this.parseFFOrSafari(u);throw new Error("Cannot parse given Error object")},extractLocation:function(u){if(u.indexOf(":")===-1)return[u];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=f.exec(u.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(u){var f=u.stack.split(`
34
+ `),n}return!0}function gh(e){var t=Object.getOwnPropertyNames(e),n=Q0(t),r;try{for(n.s();!(r=n.n()).done;){var o=r.value,i=e[o];i&&ic(i)==="object"&&gh(i)}}catch(s){n.e(s)}finally{n.f()}return Object.freeze(e)}function f_(e){return gh(e.sys||{}),e}function vl(){var e=r_();if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=["Macintosh","MacIntel","MacPPC","Mac68K"],o=["Win32","Win64","Windows","WinCE"],i=["iPhone","iPad","iPod"];return r.indexOf(n)!==-1?"macOS":i.indexOf(n)!==-1?"iOS":o.indexOf(n)!==-1?"Windows":/Android/.test(t)?"Android":/Linux/.test(n)?"Linux":null}function d_(){var e=process.platform||"linux",t=process.version||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}function h_(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{e_()?(i=vl(),o.push("platform ReactNative")):Z0()?(i=d_(),o.push("platform node.js/".concat(t_()))):(i=vl(),o.push("platform browser"))}catch{i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter(function(s){return s!==""}).join("; "),";")}function p_(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return _r(this)}})}function m_(e){var t=e.config,n=e.response,r;if(t&&t.headers&&t.headers.Authorization){var o="...".concat(t.headers.Authorization.toString().substr(-5));t.headers.Authorization="Bearer ".concat(o)}if(!lo(n)||!lo(t))throw e;var i=n==null?void 0:n.data,s={status:n==null?void 0:n.status,statusText:n==null?void 0:n.statusText,message:"",details:{}};lo(t)&&(s.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),i&&lo(i)&&("requestId"in i&&(s.requestId=i.requestId||"UNKNOWN"),"message"in i&&(s.message=i.message||""),"details"in i&&(s.details=i.details||{}),"sys"in i&&"id"in i.sys&&(r=i.sys.id));var a=new Error;a.name=r&&r!=="Unknown"?r:"".concat(n==null?void 0:n.status," ").concat(n==null?void 0:n.statusText);try{a.message=JSON.stringify(s,null," ")}catch{var u;a.message=(u=s==null?void 0:s.message)!==null&&u!==void 0?u:""}throw a}const g_=Object.freeze(Object.defineProperty({__proto__:null,createHttpClient:mh,createRequestConfig:u_,enforceObjPath:l_,errorHandler:m_,freezeSys:f_,getUserAgentHeader:h_,toPlainObject:p_},Symbol.toStringTag,{value:"Module"})),Ht=Yi(g_);var fo={},pi={},ho={},_l;function y_(){if(_l)return ho;_l=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.wrapSpace=t;var e=Ht;function t(n){return(0,e.freezeSys)((0,e.toPlainObject)(n))}return ho}var mi={},ts={exports:{}},El;function Mn(){return El||(El=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){var n=Function.prototype.toString,r=Object.create,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,a=Object.getOwnPropertySymbols,u=Object.getPrototypeOf,f=Object.prototype,c=f.hasOwnProperty,h=f.propertyIsEnumerable,d=typeof a=="function",l=typeof WeakMap=="function",p=function(){if(l)return function(){return new WeakMap};var F=function(){function B(){this._keys=[],this._values=[]}return B.prototype.has=function(G){return!!~this._keys.indexOf(G)},B.prototype.get=function(G){return this._values[this._keys.indexOf(G)]},B.prototype.set=function(G,W){this._keys.push(G),this._values.push(W)},B}();return function(){return new F}}(),m=function(F,B){var G=F.__proto__||u(F);if(!G)return r(null);var W=G.constructor;if(W===B.Object)return G===B.Object.prototype?{}:r(G);if(~n.call(W).indexOf("[native code]"))try{return new W}catch{}return r(G)},E=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H in F)c.call(F,H)&&(V[H]=G(F[H],W));if(d)for(var Y=a(F),oe=0,Q=Y.length,M=void 0;oe<Q;++oe)M=Y[oe],h.call(F,M)&&(V[M]=G(F[M],W));return V},T=function(F,B,G,W){var V=m(F,B);W.set(F,V);for(var H=d?s(F).concat(a(F)):s(F),Y=0,oe=H.length,Q=void 0,M=void 0;Y<oe;++Y)if(Q=H[Y],Q!=="callee"&&Q!=="caller")if(M=i(F,Q),M){!M.get&&!M.set&&(M.value=G(F[Q],W));try{o(V,Q,M)}catch{V[Q]=M.value}}else V[Q]=G(F[Q],W);return V},_=function(F){var B="";return F.global&&(B+="g"),F.ignoreCase&&(B+="i"),F.multiline&&(B+="m"),F.unicode&&(B+="u"),F.sticky&&(B+="y"),B},b=Array.isArray,A=Object.getPrototypeOf,w=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof ce<"u"?ce:(console&&console.error&&console.error('Unable to locate global object, returning "this".'),this)}();function N(F,B){var G=!!(B&&B.isStrict),W=B&&B.realm||w,V=G?T:E,H=function(Y,oe){if(!Y||typeof Y!="object")return Y;if(oe.has(Y))return oe.get(Y);var Q=Y.__proto__||A(Y),M=Q&&Q.constructor;if(!M||M===W.Object)return V(Y,W,H,oe);var z;if(b(Y)){if(G)return T(Y,W,H,oe);z=new M,oe.set(Y,z);for(var Z=0,de=Y.length;Z<de;++Z)z[Z]=H(Y[Z],oe);return z}if(Y instanceof W.Date)return new M(Y.getTime());if(Y instanceof W.RegExp)return z=new M(Y.source,Y.flags||_(Y)),z.lastIndex=Y.lastIndex,z;if(W.Map&&Y instanceof W.Map)return z=new M,oe.set(Y,z),Y.forEach(function(X,K){z.set(K,H(X,oe))}),z;if(W.Set&&Y instanceof W.Set)return z=new M,oe.set(Y,z),Y.forEach(function(X){z.add(H(X,oe))}),z;if(W.Blob&&Y instanceof W.Blob)return Y.slice(0,Y.size,Y.type);if(W.Buffer&&W.Buffer.isBuffer(Y))return z=W.Buffer.allocUnsafe?W.Buffer.allocUnsafe(Y.length):new M(Y.length),oe.set(Y,z),Y.copy(z),z;if(W.ArrayBuffer){if(W.ArrayBuffer.isView(Y))return z=new M(Y.buffer.slice(0)),oe.set(Y,z),z;if(Y instanceof W.ArrayBuffer)return z=Y.slice(0),oe.set(Y,z),z}return typeof Y.then=="function"||Y instanceof Error||W.WeakMap&&Y instanceof W.WeakMap||W.WeakSet&&Y instanceof W.WeakSet?Y:V(Y,W,H,oe)};return H(F,p())}return N.default=N,N.strict=function(B,G){return N(B,{isStrict:!0,realm:G?G.realm:void 0})},N})}(ts)),ts.exports}var po={},mo={exports:{}},bl;function v_(){return bl||(bl=1,function(e,t){t=e.exports=n,t.getSerialize=r;function n(o,i,s,a){return JSON.stringify(o,r(i,a),s)}function r(o,i){var s=[],a=[];return i==null&&(i=function(u,f){return s[0]===f?"[Circular ~]":"[Circular ~."+a.slice(0,s.indexOf(f)).join(".")+"]"}),function(u,f){if(s.length>0){var c=s.indexOf(this);~c?s.splice(c+1):s.push(this),~c?a.splice(c,1/0,u):a.push(u),~s.indexOf(f)&&(f=i.call(this,u,f))}else s.push(f);return o==null?f:o.call(this,u,f)}}}(mo,mo.exports)),mo.exports}var wl;function yh(){if(wl)return po;wl=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=n;var e=t(v_());function t(r){return r&&r.__esModule?r:{default:r}}function n(r){return Object.defineProperty(r,"stringifySafe",{enumerable:!1,configurable:!1,writable:!1,value:function(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,e.default)(this,o,i,(s,a)=>({sys:{type:"Link",linkType:"Entry",id:a.sys.id,circular:!0}}))}})}return po}var __=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E_=function(){function e(t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var a=t[Symbol.iterator](),u;!(o=(u=a.next()).done)&&(r.push(u.value),!(n&&r.length===n));o=!0);}catch(f){i=!0,s=f}finally{try{!o&&a.return&&a.return()}finally{if(i)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function gi(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var Gi={},b_=function(t){return t&&t.sys&&t.sys.type==="Link"},w_=function(t){return t&&t.sys&&t.sys.type==="ResourceLink"},S_=function(t){return t.space&&t.environment?[t.type+"!"+t.id,t.space.sys.id+"!"+t.environment.sys.id+"!"+t.type+"!"+t.id]:[t.type+"!"+t.id]},Sl=function(t,n){var r=n.entryId,o=n.linkType,i=n.spaceId,s=n.environmentId;return i&&s?t.get(i+"!"+s+"!"+o+"!"+r):t.get(o+"!"+r)},T_=function(t){var n=/.*:spaces\/([^/]+)(?:\/environments\/([^/]+))?\/entries\/([^/]+)$/;if(n.test(t)){var r=t.match(n),o=E_(r,4);o[0];var i=o[1],s=o[2],a=s===void 0?"master":s,u=o[3];return{spaceId:i,environmentId:a,entryId:u}}},x_=function(t,n){var r=n.sys,o=r.type,i=r.linkType;if(o==="ResourceLink"){var s=n.sys.urn,a=T_(s),u=a.spaceId,f=a.environmentId,c=a.entryId,h=i.split(":")[1];return Sl(t,{linkType:h,entryId:c,spaceId:u,environmentId:f})||Gi}var d=n.sys.id;return Sl(t,{linkType:i,entryId:d})||Gi},O_=function(t){if(Array.isArray(t))return t.filter(function(r){return r!==Gi});for(var n in t)t[n]===Gi&&delete t[n];return t},A_=function e(t,n,r,o){if(n(t))return r(t);if(t&&(typeof t>"u"?"undefined":__(t))==="object"){for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i],n,r,o));o&&(t=O_(t))}return t},C_=function(t,n,r){var o=x_(t,n);return o===Gi?r?o:n:o},R_=function(t,n){if(!Array.isArray(n))return t;var r=Object.keys(t).filter(function(o){return n.indexOf(o)!==-1});return r.reduce(function(o,i){return o[i]=t[i],o},{})},N_=function(t,n){if(n=n||{},!t.items)return[];var r=_r(t),o=Object.keys(r.includes||{}).reduce(function(a,u){return[].concat(gi(a),gi(t.includes[u]))},[]),i=[].concat(gi(r.items),gi(o)).filter(function(a){return!!a.sys}),s=new Map(i.reduce(function(a,u){var f=S_(u.sys).map(function(c){return[c,u]});return a.push.apply(a,gi(f)),a},[]));return i.forEach(function(a){var u=R_(a,n.itemEntryPoints);Object.assign(a,A_(u,function(f){return b_(f)||w_(f)},function(f){return C_(s,f,n.removeUnresolved)},n.removeUnresolved))}),r.items};const P_=Object.freeze(Object.defineProperty({__proto__:null,default:N_},Symbol.toStringTag,{value:"Module"})),vh=Yi(P_);var Tl;function I_(){if(Tl)return mi;Tl=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.wrapEntry=i,mi.wrapEntryCollection=s;var e=o(Mn()),t=Ht,n=o(yh()),r=o(vh);function o(a){return a&&a.__esModule?a:{default:a}}function i(a){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(a)))}function s(a,u){let{resolveLinks:f,removeUnresolved:c}=u;const h=(0,n.default)((0,t.toPlainObject)((0,e.default)(a)));return f&&(h.items=(0,r.default)(h,{removeUnresolved:c,itemEntryPoints:["fields"]})),(0,t.freezeSys)(h)}return mi}var yi={},xl;function L_(){if(xl)return yi;xl=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.wrapAsset=r,yi.wrapAssetCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return yi}var go={},Ol;function M_(){if(Ol)return go;Ol=1,Object.defineProperty(go,"__esModule",{value:!0}),go.wrapAssetKey=r;var e=n(Mn()),t=Ht;function n(o){return o&&o.__esModule?o:{default:o}}function r(o){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(o)))}return go}var vi={},Al;function k_(){if(Al)return vi;Al=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.wrapContentType=r,vi.wrapContentTypeCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return vi}var _i={},Cl;function B_(){if(Cl)return _i;Cl=1,Object.defineProperty(_i,"__esModule",{value:!0}),_i.wrapLocale=r,_i.wrapLocaleCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return _i}var Ei={},Rl;function F_(){if(Rl)return Ei;Rl=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.wrapTag=r,Ei.wrapTagCollection=o;var e=n(Mn()),t=Ht;function n(i){return i&&i.__esModule?i:{default:i}}function r(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}function o(i){return(0,t.freezeSys)((0,t.toPlainObject)((0,e.default)(i)))}return Ei}var Nl;function U_(){if(Nl)return pi;Nl=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=void 0;var e=u(y_()),t=u(I_()),n=u(L_()),r=u(M_()),o=u(k_()),i=u(B_()),s=u(F_());function a(c){if(typeof WeakMap!="function")return null;var h=new WeakMap,d=new WeakMap;return(a=function(l){return l?d:h})(c)}function u(c,h){if(!h&&c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var d=a(h);if(d&&d.has(c))return d.get(c);var l={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in c)if(m!=="default"&&Object.prototype.hasOwnProperty.call(c,m)){var E=p?Object.getOwnPropertyDescriptor(c,m):null;E&&(E.get||E.set)?Object.defineProperty(l,m,E):l[m]=c[m]}return l.default=c,d&&d.set(c,l),l}var f={space:e,entry:t,asset:n,assetKey:r,contentType:o,locale:i,tag:s};return pi.default=f,pi}var yo={},Pl;function D_(){if(Pl)return yo;Pl=1,Object.defineProperty(yo,"__esModule",{value:!0}),yo.default=a;var e=Ht,t=r(vh),n=r(yh());function r(h){return h&&h.__esModule?h:{default:h}}function o(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function i(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?o(Object(l),!0).forEach(function(p){s(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):o(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function s(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}async function a(h,d){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!d||!d.initial&&!d.nextSyncToken&&!d.nextPageToken)throw new Error("Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing");if(d&&d.content_type&&!d.type)d.type="Entry";else if(d&&d.content_type&&d.type&&d.type!=="Entry")throw new Error("When using the `content_type` filter your `type` parameter cannot be different from `Entry`.");const p={resolveLinks:!0,removeUnresolved:!1,paginate:!0},{resolveLinks:m,removeUnresolved:E,paginate:T}=i(i({},p),l),b=await f(h,[],d,{paginate:T});m&&(b.items=(0,t.default)(b,{removeUnresolved:E,itemEntryPoints:["fields"]}));const A=u(b.items);return b.nextSyncToken&&(A.nextSyncToken=b.nextSyncToken),b.nextPageToken&&(A.nextPageToken=b.nextPageToken),(0,e.freezeSys)((0,n.default)((0,e.toPlainObject)(A)))}function u(h){const d=l=>(p,m)=>(m.sys.type===l&&p.push((0,e.toPlainObject)(m)),p);return{entries:h.reduce(d("Entry"),[]),assets:h.reduce(d("Asset"),[]),deletedEntries:h.reduce(d("DeletedEntry"),[]),deletedAssets:h.reduce(d("DeletedAsset"),[])}}async function f(h,d,l,p){let{paginate:m}=p;l.nextSyncToken&&(l.sync_token=l.nextSyncToken,delete l.nextSyncToken),l.nextPageToken&&(l.sync_token=l.nextPageToken,delete l.nextPageToken),l.sync_token&&(delete l.initial,delete l.type,delete l.content_type,delete l.limit);const T=(await h.get("sync",(0,e.createRequestConfig)({query:l}))).data||{};return d=d.concat(T.items||[]),T.nextPageUrl?m?(delete l.initial,l.sync_token=c(T.nextPageUrl),f(h,d,l,{paginate:m})):{items:d,nextPageToken:c(T.nextPageUrl)}:T.nextSyncUrl?{items:d,nextSyncToken:c(T.nextSyncUrl)}:{items:[]}}function c(h){const d=h.split("?");return d.length>0?d[1].replace("sync_token=",""):""}return yo}var vo={},Il;function $_(){if(Il)return vo;Il=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=r;function e(o,i){var s=Object.keys(o);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(o);i&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(o,u).enumerable})),s.push.apply(s,a)}return s}function t(o){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(a){n(o,a,s[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(a){Object.defineProperty(o,a,Object.getOwnPropertyDescriptor(s,a))})}return o}function n(o,i,s){return i in o?Object.defineProperty(o,i,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[i]=s,o}function r(o){if(!o.select)return o;const i=Array.isArray(o.select)?o.select:o.select.split(","),s=new Set(i);return s.has("sys")?o:(s.add("sys.id"),s.add("sys.type"),t(t({},o),{},{select:[...s].join(",")}))}return vo}var bn={},Ll;function j_(){if(Ll)return bn;Ll=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.ValidationError=void 0,bn.default=t;class e extends Error{constructor(r,o){super(`Invalid "${r}" provided, `+o),this.name="ValidationError"}}bn.ValidationError=e;function t(n,r,o){if(o=o||{},typeof r!="number")throw new e(n,`only numeric values are allowed for timestamps, provided type was "${typeof r}"`);if(o.maximum&&r>o.maximum)throw new e(n,`value (${r}) cannot be further in the future than expected maximum (${o.maximum})`);if(o.now&&r<o.now)throw new e(n,`value (${r}) cannot be in the past, current time was ${o.now}`)}return bn}var Ml;function H_(){if(Ml)return fo;Ml=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.default=c;var e=Ht,t=i(U_()),n=i(D_()),r=i($_()),o=i(j_());function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var l=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);d&&(p=p.filter(function(m){return Object.getOwnPropertyDescriptor(h,m).enumerable})),l.push.apply(l,p)}return l}function a(h){for(var d=1;d<arguments.length;d++){var l=arguments[d]!=null?arguments[d]:{};d%2?s(Object(l),!0).forEach(function(p){u(h,p,l[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(l)):s(Object(l)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(l,p))})}return h}function u(h,d,l){return d in h?Object.defineProperty(h,d,{value:l,enumerable:!0,configurable:!0,writable:!0}):h[d]=l,h}const f=48*60*60;function c(h){let{http:d,getGlobalOptions:l}=h;const{wrapSpace:p}=t.default.space,{wrapContentType:m,wrapContentTypeCollection:E}=t.default.contentType,{wrapEntry:T,wrapEntryCollection:_}=t.default.entry,{wrapAsset:b,wrapAssetCollection:A}=t.default.asset,{wrapTag:w,wrapTagCollection:N}=t.default.tag,{wrapAssetKey:F}=t.default.assetKey,{wrapLocaleCollection:B}=t.default.locale,G=J=>{const re=new Error("The resource could not be found.");return re.sys={type:"Error",id:"NotFound"},re.details={type:"Entry",id:J,environment:l().environment,space:l().space},re};async function W(){Fe(d);try{const J=await d.get("/");return p(J.data)}catch(J){(0,e.errorHandler)(J)}}async function V(J){ue(d);try{const re=await d.get(`content_types/${J}`);return m(re.data)}catch(re){(0,e.errorHandler)(re)}}async function H(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("content_types",(0,e.createRequestConfig)({query:J}));return E(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Y(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw G(J);try{const Pe=await this.getEntries(a({"sys.id":J},re));if(Pe.items.length>0)return T(Pe.items[0]);throw G(J)}catch(Pe){(0,e.errorHandler)(Pe)}}async function oe(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);const{resolveLinks:re,removeUnresolved:Pe}=l(J);J=(0,r.default)(J);try{const Ae=await d.get("entries",(0,e.createRequestConfig)({query:J}));return _(Ae.data,{resolveLinks:re,removeUnresolved:Pe})}catch(Ae){(0,e.errorHandler)(Ae)}}async function Q(J){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ue(d),re=(0,r.default)(re);try{const Pe=await d.get(`assets/${J}`,(0,e.createRequestConfig)({query:re}));return b(Pe.data)}catch(Pe){(0,e.errorHandler)(Pe)}}async function M(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("assets",(0,e.createRequestConfig)({query:J}));return A(re.data)}catch(re){(0,e.errorHandler)(re)}}async function z(J){ue(d);try{const re=await d.get(`tags/${J}`);return w(re.data)}catch(re){(0,e.errorHandler)(re)}}async function Z(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d),J=(0,r.default)(J);try{const re=await d.get("tags",(0,e.createRequestConfig)({query:J}));return N(re.data)}catch(re){(0,e.errorHandler)(re)}}async function de(J){ue(d);try{const re=Math.floor(Date.now()/1e3),Pe=re+f;(0,o.default)("expiresAt",J,{maximum:Pe,now:re});const Ae={expiresAt:J},st=await d.post("asset_keys",Ae);return F(st.data)}catch(re){(0,e.errorHandler)(re)}}async function X(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ue(d);try{const re=await d.get("locales",(0,e.createRequestConfig)({query:J}));return B(re.data)}catch(re){(0,e.errorHandler)(re)}}async function K(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{paginate:!0};const{resolveLinks:Pe,removeUnresolved:Ae}=l(J);return ue(d),(0,n.default)(d,J,a({resolveLinks:Pe,removeUnresolved:Ae},re))}function se(J){const{resolveLinks:re,removeUnresolved:Pe}=l({});return _(J,{resolveLinks:re,removeUnresolved:Pe})}function ue(J){J.defaults.baseURL=l().environmentBaseUrl}function Fe(J){J.defaults.baseURL=l().spaceBaseUrl}return{getSpace:W,getContentType:V,getContentTypes:H,getEntry:Y,getEntries:oe,getAsset:Q,getAssets:M,getTag:z,getTags:Z,createAssetKey:de,getLocales:X,parseEntries:se,sync:K}}return fo}var _o={},kl;function q_(){if(kl)return _o;kl=1,Object.defineProperty(_o,"__esModule",{value:!0}),_o.default=e;function e(t){return function(r){return Object.assign({},t,r)}}return _o}var Bl;function G_(){if(Bl)return oo;Bl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.createClient=u;var e=o(Vd()),t=Ht,n=o(H_()),r=o(q_());function o(f){return f&&f.__esModule?f:{default:f}}function i(f,c){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(f);c&&(d=d.filter(function(l){return Object.getOwnPropertyDescriptor(f,l).enumerable})),h.push.apply(h,d)}return h}function s(f){for(var c=1;c<arguments.length;c++){var h=arguments[c]!=null?arguments[c]:{};c%2?i(Object(h),!0).forEach(function(d){a(f,d,h[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):i(Object(h)).forEach(function(d){Object.defineProperty(f,d,Object.getOwnPropertyDescriptor(h,d))})}return f}function a(f,c,h){return c in f?Object.defineProperty(f,c,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[c]=h,f}function u(f){if(!f.accessToken)throw new TypeError("Expected parameter accessToken");if(!f.space)throw new TypeError("Expected parameter space");const h=s(s({},{resolveLinks:!0,removeUnresolved:!1,defaultHostname:"cdn.contentful.com",environment:"master"}),f),d=(0,t.getUserAgentHeader)("contentful.js/9.1.34",h.application,h.integration);h.headers=s(s({},h.headers),{},{"Content-Type":"application/vnd.contentful.delivery.v1+json","X-Contentful-User-Agent":d});const l=(0,t.createHttpClient)(e.default,h),p=(0,r.default)({resolveLinks:h.resolveLinks,environment:h.environment,removeUnresolved:h.removeUnresolved,spaceBaseUrl:l.defaults.baseURL,environmentBaseUrl:`${l.defaults.baseURL}environments/${h.environment}`});return l.defaults.baseURL=p().environmentBaseUrl,(0,n.default)({http:l,getGlobalOptions:p})}return oo}var rs={},ns,Fl;function W_(){return Fl||(Fl=1,ns=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),ns}var is,Ul;function V_(){if(Ul)return is;Ul=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),n=new RegExp("("+e+")+","gi");function r(s,a){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;a=a||1;var u=s.slice(0,a),f=s.slice(a);return Array.prototype.concat.call([],r(u),r(f))}function o(s){try{return decodeURIComponent(s)}catch{for(var a=s.match(t)||[],u=1;u<a.length;u++)s=r(a,u).join(""),a=s.match(t)||[];return s}}function i(s){for(var a={"%FE%FF":"��","%FF%FE":"��"},u=n.exec(s);u;){try{a[u[0]]=decodeURIComponent(u[0])}catch{var f=o(u[0]);f!==u[0]&&(a[u[0]]=f)}u=n.exec(s)}a["%C2"]="�";for(var c=Object.keys(a),h=0;h<c.length;h++){var d=c[h];s=s.replace(new RegExp(d,"g"),a[d])}return s}return is=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return i(s)}},is}var os,Dl;function z_(){return Dl||(Dl=1,os=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const n=e.indexOf(t);return n===-1?[e]:[e.slice(0,n),e.slice(n+t.length)]}),os}var as,$l;function Y_(){return $l||($l=1,as=function(e,t){for(var n={},r=Object.keys(e),o=Array.isArray(t),i=0;i<r.length;i++){var s=r[i],a=e[s];(o?t.indexOf(s)!==-1:t(s,a,e))&&(n[s]=a)}return n}),as}var jl;function K_(){return jl||(jl=1,function(e){const t=W_(),n=V_(),r=z_(),o=Y_(),i=_=>_==null,s=Symbol("encodeFragmentIdentifier");function a(_){switch(_.arrayFormat){case"index":return b=>(A,w)=>{const N=A.length;return w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[",N,"]"].join("")]:[...A,[c(b,_),"[",c(N,_),"]=",c(w,_)].join("")]};case"bracket":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),"[]"].join("")]:[...A,[c(b,_),"[]=",c(w,_)].join("")];case"colon-list-separator":return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,[c(b,_),":list="].join("")]:[...A,[c(b,_),":list=",c(w,_)].join("")];case"comma":case"separator":case"bracket-separator":{const b=_.arrayFormat==="bracket-separator"?"[]=":"=";return A=>(w,N)=>N===void 0||_.skipNull&&N===null||_.skipEmptyString&&N===""?w:(N=N===null?"":N,w.length===0?[[c(A,_),b,c(N,_)].join("")]:[[w,c(N,_)].join(_.arrayFormatSeparator)])}default:return b=>(A,w)=>w===void 0||_.skipNull&&w===null||_.skipEmptyString&&w===""?A:w===null?[...A,c(b,_)]:[...A,[c(b,_),"=",c(w,_)].join("")]}}function u(_){let b;switch(_.arrayFormat){case"index":return(A,w,N)=>{if(b=/\[(\d*)\]$/.exec(A),A=A.replace(/\[\d*\]$/,""),!b){N[A]=w;return}N[A]===void 0&&(N[A]={}),N[A][b[1]]=w};case"bracket":return(A,w,N)=>{if(b=/(\[\])$/.exec(A),A=A.replace(/\[\]$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"colon-list-separator":return(A,w,N)=>{if(b=/(:list)$/.exec(A),A=A.replace(/:list$/,""),!b){N[A]=w;return}if(N[A]===void 0){N[A]=[w];return}N[A]=[].concat(N[A],w)};case"comma":case"separator":return(A,w,N)=>{const F=typeof w=="string"&&w.includes(_.arrayFormatSeparator),B=typeof w=="string"&&!F&&h(w,_).includes(_.arrayFormatSeparator);w=B?h(w,_):w;const G=F||B?w.split(_.arrayFormatSeparator).map(W=>h(W,_)):w===null?w:h(w,_);N[A]=G};case"bracket-separator":return(A,w,N)=>{const F=/(\[\])$/.test(A);if(A=A.replace(/\[\]$/,""),!F){N[A]=w&&h(w,_);return}const B=w===null?[]:w.split(_.arrayFormatSeparator).map(G=>h(G,_));if(N[A]===void 0){N[A]=B;return}N[A]=[].concat(N[A],B)};default:return(A,w,N)=>{if(N[A]===void 0){N[A]=w;return}N[A]=[].concat(N[A],w)}}}function f(_){if(typeof _!="string"||_.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(_,b){return b.encode?b.strict?t(_):encodeURIComponent(_):_}function h(_,b){return b.decode?n(_):_}function d(_){return Array.isArray(_)?_.sort():typeof _=="object"?d(Object.keys(_)).sort((b,A)=>Number(b)-Number(A)).map(b=>_[b]):_}function l(_){const b=_.indexOf("#");return b!==-1&&(_=_.slice(0,b)),_}function p(_){let b="";const A=_.indexOf("#");return A!==-1&&(b=_.slice(A)),b}function m(_){_=l(_);const b=_.indexOf("?");return b===-1?"":_.slice(b+1)}function E(_,b){return b.parseNumbers&&!Number.isNaN(Number(_))&&typeof _=="string"&&_.trim()!==""?_=Number(_):b.parseBooleans&&_!==null&&(_.toLowerCase()==="true"||_.toLowerCase()==="false")&&(_=_.toLowerCase()==="true"),_}function T(_,b){b=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},b),f(b.arrayFormatSeparator);const A=u(b),w=Object.create(null);if(typeof _!="string"||(_=_.trim().replace(/^[?#&]/,""),!_))return w;for(const N of _.split("&")){if(N==="")continue;let[F,B]=r(b.decode?N.replace(/\+/g," "):N,"=");B=B===void 0?null:["comma","separator","bracket-separator"].includes(b.arrayFormat)?B:h(B,b),A(h(F,b),B,w)}for(const N of Object.keys(w)){const F=w[N];if(typeof F=="object"&&F!==null)for(const B of Object.keys(F))F[B]=E(F[B],b);else w[N]=E(F,b)}return b.sort===!1?w:(b.sort===!0?Object.keys(w).sort():Object.keys(w).sort(b.sort)).reduce((N,F)=>{const B=w[F];return B&&typeof B=="object"&&!Array.isArray(B)?N[F]=d(B):N[F]=B,N},Object.create(null))}e.extract=m,e.parse=T,e.stringify=(_,b)=>{if(!_)return"";b=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},b),f(b.arrayFormatSeparator);const A=B=>b.skipNull&&i(_[B])||b.skipEmptyString&&_[B]==="",w=a(b),N={};for(const B of Object.keys(_))A(B)||(N[B]=_[B]);const F=Object.keys(N);return b.sort!==!1&&F.sort(b.sort),F.map(B=>{const G=_[B];return G===void 0?"":G===null?c(B,b):Array.isArray(G)?G.length===0&&b.arrayFormat==="bracket-separator"?c(B,b)+"[]":G.reduce(w(B),[]).join("&"):c(B,b)+"="+c(G,b)}).filter(B=>B.length>0).join("&")},e.parseUrl=(_,b)=>{b=Object.assign({decode:!0},b);const[A,w]=r(_,"#");return Object.assign({url:A.split("?")[0]||"",query:T(m(_),b)},b&&b.parseFragmentIdentifier&&w?{fragmentIdentifier:h(w,b)}:{})},e.stringifyUrl=(_,b)=>{b=Object.assign({encode:!0,strict:!0,[s]:!0},b);const A=l(_.url).split("?")[0]||"",w=e.extract(_.url),N=e.parse(w,{sort:!1}),F=Object.assign(N,_.query);let B=e.stringify(F,b);B&&(B=`?${B}`);let G=p(_.url);return _.fragmentIdentifier&&(G=`#${b[s]?c(_.fragmentIdentifier,b):_.fragmentIdentifier}`),`${A}${B}${G}`},e.pick=(_,b,A)=>{A=Object.assign({parseFragmentIdentifier:!0,[s]:!1},A);const{url:w,query:N,fragmentIdentifier:F}=e.parseUrl(_,A);return e.stringifyUrl({url:w,query:o(N,b),fragmentIdentifier:F},A)},e.exclude=(_,b,A)=>{const w=Array.isArray(b)?N=>!b.includes(N):(N,F)=>!b(N,F);return e.pick(_,w,A)}}(rs)),rs}var Hl;function Q_(){return Hl||(Hl=1,function(e,t){(function(n,r){e.exports=r(G_(),K_())})(ce,function(n,r){return function(){var o={897:function(u){u.exports=n},48:function(u){u.exports=r}},i={};function s(u){var f=i[u];if(f!==void 0)return f.exports;var c=i[u]={exports:{}};return o[u](c,c.exports,s),c.exports}s.d=function(u,f){for(var c in f)s.o(f,c)&&!s.o(u,c)&&Object.defineProperty(u,c,{enumerable:!0,get:f[c]})},s.o=function(u,f){return Object.prototype.hasOwnProperty.call(u,f)},s.r=function(u){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{getEntries:function(){return oe},getEntry:function(){return Y},setContext:function(){return m}});var u=s(897),f=s(48),c={CONTENTFUL:{ENVIRONMENTS_MAPING:{beta:"beta",rc:"rc",live:"master",local:"beta"},LOCALES:{DEFAULT:"en",SUPPORTED:["en","es","fr","pt"]},SPACE:"txbhe1wabmyx",HOSTS:{CDN:"cdn.contentful.com",PREVIEW:"preview.contentful.com"}}};const{CONTENTFUL:{ENVIRONMENTS_MAPING:h,SPACE:d,HOSTS:l}}=c;let p={apiKey:null,previewKey:null,environment:null,isPreview:!1,host:l.CDN,space:d};const m=({apiKey:Q,environment:M,isPreview:z=!1,location:Z,previewKey:de,space:X=null})=>{p.apiKey=Q,p.previewKey=de,p.environment=(K=>{if(!K)throw new Error("Cannot map environment: Environment not defined");if(!h[K])throw new Error(`Cannot map environment: No mapping found for environment ${K}`);return h[K]})(M),p.isPreview=z||(K=>{let se=!1;if(K&&K.search){const ue=(0,f.parse)(K.search);se=ue.isPreview&&ue.isPreview==="true"}return se})(Z),p.space=X||d},E=(Q=!1)=>{const{apiKey:M,environment:z,isPreview:Z,previewKey:de,space:X}=p;return Z===!0||Q===!0?{accessToken:de,environment:z,host:l.PREVIEW,space:X}:{accessToken:M,environment:z,host:l.CDN,space:X}},T=Q=>typeof Q=="object"&&Q!==null,_=Q=>Array.isArray(Q)&&Q.length,b=Q=>{if(!T(Q))throw new Error("Cannot flatten fields");const{fields:M,sys:z}=Q;if(!M)throw new Error("Cannot flatten fields");let Z={...M};if(T(z)){const{contentType:de,createdAt:X,updatedAt:K}=z;de&&Object.assign(Z,{contentType:de.sys.id}),X&&Object.assign(Z,{createdAt:X}),K&&Object.assign(Z,{updatedAt:K})}return Z},{CONTENTFUL:{LOCALES:A}}=c,w=(Q,M)=>T(Q)&&((z,Z)=>Object.prototype.hasOwnProperty.call(z,Z))(Q,M),N=(Q,M)=>{const z=(Z=>A.SUPPORTED.includes(Z)?Z:A.DEFAULT)(M);return w(Q,z)?Q[z]:w(Q,A.DEFAULT)?Q[A.DEFAULT]:Q},F=Q=>T(Q)&&Q.sys&&Q.sys.type==="Asset",B=(Q,M,z)=>{const{title:Z,file:de}=b(Q);if(!de)throw new Error("Cannot flatten asset");const{contentType:X,fileName:K,url:se,details:ue}=N(de,M);if(!se)throw new Error("Cannot flatten asset");return z?{description:Z||K,height:ue&&ue.image&&ue.image.height,type:X,url:se,width:ue&&ue.image&&ue.image.width}:se},G=Q=>T(Q)&&Q.sys&&Q.sys.type==="Entry",W=(Q,M,z)=>{const Z={},de=((X,K)=>{const se={};for(const[ue,Fe]of Object.entries(X))se[ue]=N(Fe,K);return se})(b(Q),M);for(const[X,K]of Object.entries(de))F(K)?Z[X]=B(K,M,z):G(K)?Z[X]=W(K,M,z):_(K)?Z[X]=K.map(se=>F(se)?B(se,M,z):G(se)?W(se,M,z):se):Z[X]=K;return Z},V=({items:Q})=>{if(!_(Q))throw new Error("Cannot read items");return Q},H=async(Q,M)=>{const z=E(M);return await(await(0,u.createClient)(z)).getEntries(Q)},Y=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?W(se[0],X,K):se[0]})(await H(Q,z),{...Q,...M}),oe=async(Q={},M={},z=!1)=>((Z,{flatten:de=!0,locale:X="en",assetDetails:K=!1})=>{const se=V(Z);return de?((ue,Fe,J)=>ue.map(re=>W(re,Fe,J)))(se,X,K):se})(await H(Q,z),{...Q,...M})}(),a}()})}(fa)),fa.exports}var ss={exports:{}},cs={exports:{}},us={exports:{}},ls={exports:{}},ql;function $c(){return ql||(ql=1,function(e,t){(function(n,r){e.exports=r()})(ce,function(){function n(m){return!isNaN(parseFloat(m))&&isFinite(m)}function r(m){return m.charAt(0).toUpperCase()+m.substring(1)}function o(m){return function(){return this[m]}}var i=["isConstructor","isEval","isNative","isToplevel"],s=["columnNumber","lineNumber"],a=["fileName","functionName","source"],u=["args"],f=["evalOrigin"],c=i.concat(s,a,u,f);function h(m){if(m)for(var E=0;E<c.length;E++)m[c[E]]!==void 0&&this["set"+r(c[E])](m[c[E]])}h.prototype={getArgs:function(){return this.args},setArgs:function(m){if(Object.prototype.toString.call(m)!=="[object Array]")throw new TypeError("Args must be an Array");this.args=m},getEvalOrigin:function(){return this.evalOrigin},setEvalOrigin:function(m){if(m instanceof h)this.evalOrigin=m;else if(m instanceof Object)this.evalOrigin=new h(m);else throw new TypeError("Eval Origin must be an Object or StackFrame")},toString:function(){var m=this.getFileName()||"",E=this.getLineNumber()||"",T=this.getColumnNumber()||"",_=this.getFunctionName()||"";return this.getIsEval()?m?"[eval] ("+m+":"+E+":"+T+")":"[eval]:"+E+":"+T:_?_+" ("+m+":"+E+":"+T+")":m+":"+E+":"+T}},h.fromString=function(E){var T=E.indexOf("("),_=E.lastIndexOf(")"),b=E.substring(0,T),A=E.substring(T+1,_).split(","),w=E.substring(_+1);if(w.indexOf("@")===0)var N=/@(.+?)(?::(\d+))?(?::(\d+))?$/.exec(w,""),F=N[1],B=N[2],G=N[3];return new h({functionName:b,args:A||void 0,fileName:F,lineNumber:B||void 0,columnNumber:G||void 0})};for(var d=0;d<i.length;d++)h.prototype["get"+r(i[d])]=o(i[d]),h.prototype["set"+r(i[d])]=function(m){return function(E){this[m]=!!E}}(i[d]);for(var l=0;l<s.length;l++)h.prototype["get"+r(s[l])]=o(s[l]),h.prototype["set"+r(s[l])]=function(m){return function(E){if(!n(E))throw new TypeError(m+" must be a Number");this[m]=Number(E)}}(s[l]);for(var p=0;p<a.length;p++)h.prototype["get"+r(a[p])]=o(a[p]),h.prototype["set"+r(a[p])]=function(m){return function(E){this[m]=String(E)}}(a[p]);return h})}(ls)),ls.exports}var Gl;function X_(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r($c())})(ce,function(r){var o=/(^|@)\S+:\d+/,i=/^\s*at .*(\S+:\d+|\(native\))/m,s=/^(eval@)?(\[native code])?$/;return{parse:function(u){if(typeof u.stacktrace<"u"||typeof u["opera#sourceloc"]<"u")return this.parseOpera(u);if(u.stack&&u.stack.match(i))return this.parseV8OrIE(u);if(u.stack)return this.parseFFOrSafari(u);throw new Error("Cannot parse given Error object")},extractLocation:function(u){if(u.indexOf(":")===-1)return[u];var f=/(.+?)(?::(\d+))?(?::(\d+))?$/,c=f.exec(u.replace(/[()]/g,""));return[c[1],c[2]||void 0,c[3]||void 0]},parseV8OrIE:function(u){var f=u.stack.split(`
35
35
  `).filter(function(c){return!!c.match(i)},this);return f.map(function(c){c.indexOf("(eval ")>-1&&(c=c.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));var h=c.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,""),d=h.match(/ (\(.+\)$)/);h=d?h.replace(d[0],""):h;var l=this.extractLocation(d?d[1]:h),p=d&&h||void 0,m=["eval","<anonymous>"].indexOf(l[0])>-1?void 0:l[0];return new r({functionName:p,fileName:m,lineNumber:l[1],columnNumber:l[2],source:c})},this)},parseFFOrSafari:function(u){var f=u.stack.split(`
36
36
  `).filter(function(c){return!c.match(s)},this);return f.map(function(c){if(c.indexOf(" > eval")>-1&&(c=c.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),c.indexOf("@")===-1&&c.indexOf(":")===-1)return new r({functionName:c});var h=/((.*".+"[^@]*)?[^@]*)(?:@)/,d=c.match(h),l=d&&d[1]?d[1]:void 0,p=this.extractLocation(c.replace(h,""));return new r({functionName:l,fileName:p[0],lineNumber:p[1],columnNumber:p[2],source:c})},this)},parseOpera:function(u){return!u.stacktrace||u.message.indexOf(`
37
37
  `)>-1&&u.message.split(`
@@ -53,16 +53,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
53
53
  f.parentNode.insertBefore(j,f);
54
54
  })(window,document,'script','`+f+"','"+s+"');",E=this.dataLayer(u,f);return{iframe:p,script:m,dataLayerVar:E}},dataLayer:function(i,s){return`
55
55
  window.`+s+" = window."+s+` || [];
56
- window.`+s+".push("+JSON.stringify(i)+")"}};return _s=r,_s}var Es,af;function fE(){if(af)return Es;af=1;var e=lE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},u=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:u,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,u=a===void 0?{}:a,f=i.dataLayer,c=i.dataLayerName,h=c===void 0?"dataLayer":c,d=i.auth,l=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,E=this.gtm({id:s,events:u,dataLayer:f||void 0,dataLayerName:h,auth:l,preview:m});f&&document.head.appendChild(E.dataScript),document.head.insertBefore(E.script(),document.head.childNodes[0]),document.body.insertBefore(E.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,u=a===void 0?"dataLayer":a;if(window[u])return window[u].push(s);var f=t.default.dataLayer(s,u),c=this.dataScript(f);document.head.insertBefore(c,document.head.childNodes[0])}};return Es=r,Es}var bs,sf;function dE(){if(sf)return bs;sf=1;var e=fE(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return bs=t.default,bs}var cf;function hE(){return cf||(cf=1,function(e,t){(function(n,r){e.exports=r(dE())})(ce,function(n){return function(){var r={273:function(a){a.exports=n}},o={};function i(a){var u=o[a];if(u!==void 0)return u.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,{a:u}),u},i.d=function(a,u){for(var f in u)i.o(u,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return c},setupGTM:function(){return d}});var a=i(273),u=i.n(a);let f=null;const c=({configs:l,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!l)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!l[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:l,environment:p})}`);f=l[p]},h=()=>f,d=()=>{const l=h();u().initialize({gtmId:l.id})}}(),s}()})}(vs)),vs.exports}var Eh=202,bh=502,wh=400,Sh=409,Th=100,xh=201,Oh=417,pE=424,Ah=403,Ch=504,Rh=410,Nh=505,Ph=418,Ih=419,Lh=507,Mh=500,kh=411,Bh=423,Fh=420,Uh=405,Dh=301,$h=302,jh=207,Hh=300,qh=511,Gh=204,Wh=203,Vh=406,zh=404,Yh=501,Kh=304,Qh=200,Xh=206,Jh=402,Zh=308,ep=412,tp=428,rp=102,np=407,ip=431,op=408,ap=413,sp=414,cp=416,up=205,lp=303,fp=503,dp=101,hp=307,pp=429,mp=401,gp=422,yp=415,vp=305;const mE={ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTI_STATUS:jh,MULTIPLE_CHOICES:Hh,NETWORK_AUTHENTICATION_REQUIRED:qh,NO_CONTENT:Gh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,REQUESTED_RANGE_NOT_SATISFIABLE:cp,RESET_CONTENT:up,SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp};var gE={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},yE={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function _p(e){var t=gE[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function Ep(e){var t=yE[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var bp=_p,cc;(function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"})(cc||(cc={}));var uc;(function(e){e.ACCEPTED="Accepted",e.BAD_GATEWAY="Bad Gateway",e.BAD_REQUEST="Bad Request",e.CONFLICT="Conflict",e.CONTINUE="Continue",e.CREATED="Created",e.EXPECTATION_FAILED="Expectation Failed",e.FAILED_DEPENDENCY="Failed Dependency",e.FORBIDDEN="Forbidden",e.GATEWAY_TIMEOUT="Gateway Timeout",e.GONE="Gone",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.IM_A_TEAPOT="I'm a teapot",e.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.LENGTH_REQUIRED="Length Required",e.LOCKED="Locked",e.METHOD_FAILURE="Method Failure",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.MOVED_PERMANENTLY="Moved Permanently",e.MOVED_TEMPORARILY="Moved Temporarily",e.MULTI_STATUS="Multi-Status",e.MULTIPLE_CHOICES="Multiple Choices",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.NO_CONTENT="No Content",e.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",e.NOT_ACCEPTABLE="Not Acceptable",e.NOT_FOUND="Not Found",e.NOT_IMPLEMENTED="Not Implemented",e.NOT_MODIFIED="Not Modified",e.OK="OK",e.PARTIAL_CONTENT="Partial Content",e.PAYMENT_REQUIRED="Payment Required",e.PERMANENT_REDIRECT="Permanent Redirect",e.PRECONDITION_FAILED="Precondition Failed",e.PRECONDITION_REQUIRED="Precondition Required",e.PROCESSING="Processing",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.REQUEST_TIMEOUT="Request Timeout",e.REQUEST_TOO_LONG="Request Entity Too Large",e.REQUEST_URI_TOO_LONG="Request-URI Too Long",e.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",e.RESET_CONTENT="Reset Content",e.SEE_OTHER="See Other",e.SERVICE_UNAVAILABLE="Service Unavailable",e.SWITCHING_PROTOCOLS="Switching Protocols",e.TEMPORARY_REDIRECT="Temporary Redirect",e.TOO_MANY_REQUESTS="Too Many Requests",e.UNAUTHORIZED="Unauthorized",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.USE_PROXY="Use Proxy",e.MISDIRECTED_REQUEST="Misdirected Request"})(uc||(uc={}));var jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jo.apply(this,arguments)};const vE=jo(jo({},mE),{getStatusCode:Ep,getStatusText:bp}),_E=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FAILED_DEPENDENCY:pE,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTIPLE_CHOICES:Hh,MULTI_STATUS:jh,NETWORK_AUTHENTICATION_REQUIRED:qh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,NO_CONTENT:Gh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUESTED_RANGE_NOT_SATISFIABLE:cp,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,RESET_CONTENT:up,get ReasonPhrases(){return uc},SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,get StatusCodes(){return cc},TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp,default:vE,getReasonPhrase:_p,getStatusCode:Ep,getStatusText:bp},Symbol.toStringTag,{value:"Module"})),EE=Yi(_E);var So={exports:{}},wi={},ws={},Si={},Ti={},jr={},xi={},Ss={},Hr={},Xt={},uf;function jc(){if(uf)return Xt;uf=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ERROR_PACKET=Xt.PACKET_TYPES_REVERSE=Xt.PACKET_TYPES=void 0;const e=Object.create(null);Xt.PACKET_TYPES=e,e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Xt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(r=>{t[e[r]]=r});const n={type:"error",data:"parser error"};return Xt.ERROR_PACKET=n,Xt}var lf;function bE(){if(lf)return Hr;lf=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.encodePacket=Hr.encodePacketToBinary=void 0;const e=jc(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",r=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:c},h,d)=>t&&c instanceof Blob?h?d(c):i(c,d):n&&(c instanceof ArrayBuffer||r(c))?h?d(c):i(new Blob([c]),d):d(e.PACKET_TYPES[f]+(c||""));Hr.encodePacket=o;const i=(f,c)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];c("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function u(f,c){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(c);if(n&&(f.data instanceof ArrayBuffer||r(f.data)))return c(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),c(a.encode(h))})}return Hr.encodePacketToBinary=u,Hr}var Oi={},qr={},ff;function wE(){if(ff)return qr;ff=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.decode=qr.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const n=o=>{let i=new Uint8Array(o),s,a=i.length,u="";for(s=0;s<a;s+=3)u+=e[i[s]>>2],u+=e[(i[s]&3)<<4|i[s+1]>>4],u+=e[(i[s+1]&15)<<2|i[s+2]>>6],u+=e[i[s+2]&63];return a%3===2?u=u.substring(0,u.length-1)+"=":a%3===1&&(u=u.substring(0,u.length-2)+"=="),u};qr.encode=n;const r=o=>{let i=o.length*.75,s=o.length,a,u=0,f,c,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const l=new ArrayBuffer(i),p=new Uint8Array(l);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],c=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[u++]=f<<2|c>>4,p[u++]=(c&15)<<4|h>>2,p[u++]=(h&3)<<6|d&63;return l};return qr.decode=r,qr}var df;function SE(){if(df)return Oi;df=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.decodePacket=void 0;const e=jc(),t=wE(),n=typeof ArrayBuffer=="function",r=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const u=s.charAt(0);return u==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[u]?s.length>1?{type:e.PACKET_TYPES_REVERSE[u],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[u]}:e.ERROR_PACKET};Oi.decodePacket=r;const o=(s,a)=>{if(n){const u=(0,t.decode)(s);return i(u,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return Oi}var hf;function Qi(){return hf||(hf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=bE();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=SE();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=jc(),o=String.fromCharCode(30),i=(d,l)=>{const p=d.length,m=new Array(p);let E=0;d.forEach((T,_)=>{(0,t.encodePacket)(T,!1,b=>{m[_]=b,++E===p&&l(m.join(o))})})};e.encodePayload=i;const s=(d,l)=>{const p=d.split(o),m=[];for(let E=0;E<p.length;E++){const T=(0,n.decodePacket)(p[E],l);if(m.push(T),T.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,l){(0,t.encodePacketToBinary)(d,p=>{const m=p.length;let E;if(m<126)E=new Uint8Array(1),new DataView(E.buffer).setUint8(0,m);else if(m<65536){E=new Uint8Array(3);const T=new DataView(E.buffer);T.setUint8(0,126),T.setUint16(1,m)}else{E=new Uint8Array(9);const T=new DataView(E.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(E[0]|=128),l.enqueue(E),l.enqueue(p)})}})}e.createPacketEncoderStream=a;let u;function f(d){return d.reduce((l,p)=>l+p.length,0)}function c(d,l){if(d[0].length===l)return d.shift();const p=new Uint8Array(l);let m=0;for(let E=0;E<l;E++)p[E]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,l){u||(u=new TextDecoder);const p=[];let m=0,E=-1,T=!1;return new TransformStream({transform(_,b){for(p.push(_);;){if(m===0){if(f(p)<1)break;const A=c(p,1);T=(A[0]&128)===128,E=A[0]&127,E<126?m=3:E===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=c(p,2);E=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=c(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}E=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<E)break;const A=c(p,E);b.enqueue((0,n.decodePacket)(T?A:u.decode(A),l)),m=0}if(E===0||E>d){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(Ss)),Ss}function at(e){if(e)return TE(e)}function TE(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};at.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xE=Object.freeze(Object.defineProperty({__proto__:null,Emitter:at},Symbol.toStringTag,{value:"Module"})),kn=Yi(xE);var Jt={},Ai={},pf;function Xo(){return pf||(pf=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.globalThisShim=void 0,Ai.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Ai}var mf;function Xi(){if(mf)return Jt;mf=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.byteLength=Jt.installTimerFunctions=Jt.pick=void 0;const e=Xo();function t(u,...f){return f.reduce((c,h)=>(u.hasOwnProperty(h)&&(c[h]=u[h]),c),{})}Jt.pick=t;const n=e.globalThisShim.setTimeout,r=e.globalThisShim.clearTimeout;function o(u,f){f.useNativeTimers?(u.setTimeoutFn=n.bind(e.globalThisShim),u.clearTimeoutFn=r.bind(e.globalThisShim)):(u.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),u.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Jt.installTimerFunctions=o;const i=1.33;function s(u){return typeof u=="string"?a(u):Math.ceil((u.byteLength||u.size)*i)}Jt.byteLength=s;function a(u){let f=0,c=0;for(let h=0,d=u.length;h<d;h++)f=u.charCodeAt(h),f<128?c+=1:f<2048?c+=2:f<55296||f>=57344?c+=3:(h++,c+=4);return c}return Jt}var To={exports:{}},Ts,gf;function OE(){if(gf)return Ts;gf=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Ts=function(c,h){h=h||{};var d=typeof c;if(d==="string"&&c.length>0)return s(c);if(d==="number"&&isFinite(c))return h.long?u(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(h){var d=parseFloat(h[1]),l=(h[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var h=Math.abs(c);return h>=r?Math.round(c/r)+"d":h>=n?Math.round(c/n)+"h":h>=t?Math.round(c/t)+"m":h>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var h=Math.abs(c);return h>=r?f(c,h,r,"day"):h>=n?f(c,h,n,"hour"):h>=t?f(c,h,t,"minute"):h>=e?f(c,h,e,"second"):c+" ms"}function f(c,h,d,l){var p=h>=d*1.5;return Math.round(c/d)+" "+l+(p?"s":"")}return Ts}var xs,yf;function AE(){if(yf)return xs;yf=1;function e(t){r.debug=r,r.default=r,r.coerce=f,r.disable=s,r.enable=i,r.enabled=a,r.humanize=OE(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function n(h){let d=0;for(let l=0;l<h.length;l++)d=(d<<5)-d+h.charCodeAt(l),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(h){let d,l=null,p,m;function E(...T){if(!E.enabled)return;const _=E,b=Number(new Date),A=b-(d||b);_.diff=A,_.prev=d,_.curr=b,d=b,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let w=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(F,B)=>{if(F==="%%")return"%";w++;const G=r.formatters[B];if(typeof G=="function"){const W=T[w];F=G.call(_,W),T.splice(w,1),w--}return F}),r.formatArgs.call(_,T),(_.log||r.log).apply(_,T)}return E.namespace=h,E.useColors=r.useColors(),E.color=r.selectColor(h),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(h)),m),set:T=>{l=T}}),typeof r.init=="function"&&r.init(E),E}function o(h,d){const l=r(this.namespace+(typeof d>"u"?":":d)+h);return l.log=this.log,l}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d;const l=(typeof h=="string"?h:"").split(/[\s,]+/),p=l.length;for(d=0;d<p;d++)l[d]&&(h=l[d].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...r.names.map(u),...r.skips.map(u).map(d=>"-"+d)].join(",");return r.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,l;for(d=0,l=r.skips.length;d<l;d++)if(r.skips[d].test(h))return!1;for(d=0,l=r.names.length;d<l;d++)if(r.names[d].test(h))return!0;return!1}function u(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return xs=e,xs}var vf;function qt(){return vf||(vf=1,function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;u.splice(1,0,f,"color: inherit");let c=0,h=0;u[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(h=c))}),u.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=AE()(t);const{formatters:a}=e.exports;a.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(To,To.exports)),To.exports}var Gr={},_f;function wp(){if(_f)return Gr;_f=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.decode=Gr.encode=void 0;function e(n){let r="";for(let o in n)n.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return r}Gr.encode=e;function t(n){let r={},o=n.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");r[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return r}return Gr.decode=t,Gr}var Ef;function Jo(){if(Ef)return xi;Ef=1;var e=ce&&ce.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(xi,"__esModule",{value:!0}),xi.Transport=void 0;const t=Qi(),n=kn,r=Xi(),o=e(qt()),i=wp(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(c,h,d){super(c),this.description=h,this.context=d,this.type="TransportError"}}class u extends n.Emitter{constructor(c){super(),this.writable=!1,(0,r.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,h,d){return super.emitReserved("error",new a(c,h,d)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(c){this.readyState==="open"?this.write(c):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const h=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(h)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,h={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_hostname(){const c=this.opts.hostname;return c.indexOf(":")===-1?c:"["+c+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(c){const h=(0,i.encode)(c);return h.length?"?"+h:""}}return xi.Transport=u,xi}var Zt={},bf;function Sp(){if(bf)return Zt;bf=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.yeast=Zt.decode=Zt.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={};let r=0,o=0,i;function s(f){let c="";do c=e[f%t]+c,f=Math.floor(f/t);while(f>0);return c}Zt.encode=s;function a(f){let c=0;for(o=0;o<f.length;o++)c=c*t+n[f.charAt(o)];return c}Zt.decode=a;function u(){const f=s(+new Date);return f!==i?(r=0,i=f):f+"."+s(r++)}for(Zt.yeast=u;o<t;o++)n[e[o]]=o;return Zt}var Wr={},Ci={},wf;function CE(){if(wf)return Ci;wf=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Ci.hasCORS=e,Ci}var Sf;function RE(){if(Sf)return Wr;Sf=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.createCookieJar=Wr.XHR=void 0;const e=CE(),t=Xo();function n(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Wr.XHR=n;function r(){}return Wr.createCookieJar=r,Wr}var Tf;function NE(){if(Tf)return jr;Tf=1;var e=ce&&ce.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(jr,"__esModule",{value:!0}),jr.Request=jr.Polling=void 0;const t=Jo(),n=e(qt()),r=Sp(),o=Qi(),i=RE(),s=kn,a=Xi(),u=Xo(),f=(0,n.default)("engine.io-client:polling");function c(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(E){if(super(E),this.polling=!1,typeof location<"u"){const _=location.protocol==="https:";let b=location.port;b||(b=_?"443":"80"),this.xd=typeof location<"u"&&E.hostname!==location.hostname||b!==E.port}const T=E&&E.forceBase64;this.supportsBinary=h&&!T,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(E){this.readyState="pausing";const T=()=>{f("paused"),this.readyState="paused",E()};if(this.polling||!this.writable){let _=0;this.polling&&(f("we are currently polling - waiting to pause"),_++,this.once("pollComplete",function(){f("pre-pause polling complete"),--_||T()})),this.writable||(f("we are currently writing - waiting to pause"),_++,this.once("drain",function(){f("pre-pause writing complete"),--_||T()}))}else T()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(E){f("polling got data %s",E);const T=_=>{if(this.readyState==="opening"&&_.type==="open"&&this.onOpen(),_.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(_)};(0,o.decodePayload)(E,this.socket.binaryType).forEach(T),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const E=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),E()):(f("transport not open - deferring close"),this.once("open",E))}write(E){this.writable=!1,(0,o.encodePayload)(E,T=>{this.doWrite(T,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const E=this.opts.secure?"https":"http",T=this.query||{};return this.opts.timestampRequests!==!1&&(T[this.opts.timestampParam]=(0,r.yeast)()),!this.supportsBinary&&!T.sid&&(T.b64=1),this.createUri(E,T)}request(E={}){return Object.assign(E,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new l(this.uri(),E)}doWrite(E,T){const _=this.request({method:"POST",data:E});_.on("success",T),_.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const E=this.request();E.on("data",this.onData.bind(this)),E.on("error",(T,_)=>{this.onError("xhr poll error",T,_)}),this.pollXhr=E}}jr.Polling=d;class l extends s.Emitter{constructor(E,T){super(),(0,a.installTimerFunctions)(this,T),this.opts=T,this.method=T.method||"GET",this.uri=E,this.data=T.data!==void 0?T.data:null,this.create()}create(){var E;const T=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");T.xdomain=!!this.opts.xd;const _=this.xhr=new i.XHR(T);try{f("xhr open %s: %s",this.method,this.uri),_.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&_.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(E=this.opts.cookieJar)===null||E===void 0||E.addCookies(_),"withCredentials"in _&&(_.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(_.timeout=this.opts.requestTimeout),_.onreadystatechange=()=>{var b;_.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(_)),_.readyState===4&&(_.status===200||_.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof _.status=="number"?_.status:0)},0))},f("xhr data %s",this.data),_.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=l.requestsCount++,l.requests[this.index]=this)}onError(E){this.emitReserved("error",E,this.xhr),this.cleanup(!0)}cleanup(E){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,E)try{this.xhr.abort()}catch{}typeof document<"u"&&delete l.requests[this.index],this.xhr=null}}onLoad(){const E=this.xhr.responseText;E!==null&&(this.emitReserved("data",E),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(jr.Request=l,l.requestsCount=0,l.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in l.requests)l.requests.hasOwnProperty(m)&&l.requests[m].abort()}return jr}var Ri={},Ct={},xf;function Zo(){if(xf)return Ct;xf=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=Xo();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var Of;function PE(){if(Of)return Ri;Of=1;var e=ce&&ce.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.WS=void 0;const t=Jo(),n=Sp(),r=Xi(),o=Zo(),i=e(qt()),s=Qi(),a=(0,i.default)("engine.io-client:websocket"),u=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,l=u?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!u?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,l)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const l=h[d],p=d===h.length-1;(0,s.encodePacket)(l,this.supportsBinary,m=>{const E={};o.usingBrowserWebSocket||(l.options&&(E.compress=l.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(E.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,E)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,n.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Ri.WS=f,Ri}var Ni={},Af;function IE(){if(Af)return Ni;Af=1;var e=ce&&ce.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.WT=void 0;const t=Jo(),n=Zo(),r=Qi(),i=(0,e(qt()).default)("engine.io-client:webtransport");class s extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{i("transport closed gracefully"),this.onClose()}).catch(u=>{i("transport closed due to %s",u),this.onError("webtransport error",u)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(u=>{const f=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=u.readable.pipeThrough(f).getReader(),h=(0,r.createPacketEncoderStream)();h.readable.pipeTo(u.writable),this.writer=h.writable.getWriter();const d=()=>{c.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(u){this.writable=!1;for(let f=0;f<u.length;f++){const c=u[f],h=f===u.length-1;this.writer.write(c).then(()=>{h&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this.transport)===null||u===void 0||u.close()}}return Ni.WT=s,Ni}var Cf;function Tp(){if(Cf)return Ti;Cf=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.transports=void 0;const e=NE(),t=PE(),n=IE();return Ti.transports={websocket:t.WS,webtransport:n.WT,polling:e.Polling},Ti}var Pi={},Rf;function xp(){if(Rf)return Pi;Rf=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function n(i){const s=i,a=i.indexOf("["),u=i.indexOf("]");a!=-1&&u!=-1&&(i=i.substring(0,a)+i.substring(a,u).replace(/:/g,";")+i.substring(u,i.length));let f=e.exec(i||""),c={},h=14;for(;h--;)c[t[h]]=f[h]||"";return a!=-1&&u!=-1&&(c.source=s,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=r(c,c.path),c.queryKey=o(c,c.query),c}Pi.parse=n;function r(i,s){const a=/\/{2,9}/g,u=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&u.splice(0,1),s.slice(-1)=="/"&&u.splice(u.length-1,1),u}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,f,c){f&&(a[f]=c)}),a}return Pi}var Nf;function LE(){if(Nf)return Si;Nf=1;var e=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.Socket=void 0;const t=Tp(),n=Xi(),r=wp(),o=xp(),i=e(qt()),s=kn,a=Qi(),u=Zo(),f=(0,i.default)("engine.io-client:socket");class c extends s.Emitter{constructor(d,l={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(l=d,d=null),d?(d=(0,o.parse)(d),l.hostname=d.host,l.secure=d.protocol==="https"||d.protocol==="wss",l.port=d.port,d.query&&(l.query=d.query)):l.host&&(l.hostname=(0,o.parse)(l.host).host),(0,n.installTimerFunctions)(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=l.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,r.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(d){f('creating transport "%s"',d);const l=Object.assign({},this.opts.query);l.EIO=a.protocol,l.transport=d,this.id&&(l.sid=this.id);const p=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(l){f("error while creating transport: %s",l),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",l=>this.onClose("transport close",l))}probe(d){f('probing transport "%s"',d);let l=this.createTransport(d),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),l.send([{type:"ping",data:"probe"}]),l.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;c.priorWebsocketSuccess=l.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=l.name,this.emitReserved("upgradeError",F)}}))};function E(){p||(p=!0,w(),l.close(),l=null)}const T=N=>{const F=new Error("probe error: "+N);F.transport=l.name,E(),f('probe transport "%s" failed because of error: %s',d,N),this.emitReserved("upgradeError",F)};function _(){T("transport closed")}function b(){T("socket closed")}function A(N){l&&N.name!==l.name&&(f('"%s" works - aborting "%s"',N.name,l.name),E())}const w=()=>{l.removeListener("open",m),l.removeListener("error",T),l.removeListener("close",_),this.off("close",b),this.off("upgrading",A)};l.once("open",m),l.once("error",T),l.once("close",_),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||l.open()},200):l.open()}onOpen(){if(f("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const l=this.upgrades.length;for(;d<l;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const l=new Error("server error");l.code=d.data,this.onError(l);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(l+=(0,n.byteLength)(m)),p>0&&l>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);l+=2}return f("payload size is %d (max: %d)",l,this.maxPayload),this.writeBuffer}write(d,l,p){return this.sendPacket("message",d,l,p),this}send(d,l,p){return this.sendPacket("message",d,l,p),this}sendPacket(d,l,p,m){if(typeof l=="function"&&(m=l,l=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const E={type:d,data:l,options:p};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),d()},p=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),c.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,l){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",d,l),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const l=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&l.push(d[p]);return l}}return Si.Socket=c,c.protocol=a.protocol,Si}var Pf;function Op(){return Pf||(Pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=LE();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Jo();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=Tp();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Xi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=xp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=Zo();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(ws)),ws}var If;function ME(){if(If)return wi;If=1;var e=ce&&ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(wi,"__esModule",{value:!0}),wi.url=void 0;const t=Op(),r=e(qt()).default("socket.io-client:url");function o(i,s="",a){let u=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(r("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),r("parse %s",i),u=t.parse(i)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const c=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+c+":"+u.port+s,u.href=u.protocol+"://"+c+(a&&a.port===u.port?"":":"+u.port),u}return wi.url=o,wi}var Ii={},Li={},Os={},Vr={},zr={},Lf;function Ap(){if(Lf)return zr;Lf=1,Object.defineProperty(zr,"__esModule",{value:!0}),zr.hasBinary=zr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||r&&a instanceof Blob||o&&a instanceof File}zr.isBinary=i;function s(a,u){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,c=a.length;f<c;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return zr.hasBinary=s,zr}var Mf;function kE(){if(Mf)return Vr;Mf=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.reconstructPacket=Vr.deconstructPacket=void 0;const e=Ap();function t(i){const s=[],a=i.data,u=i;return u.data=n(a,s),u.attachments=s.length,{packet:u,buffers:s}}Vr.deconstructPacket=t;function n(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let u=0;u<i.length;u++)a[u]=n(i[u],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=n(i[u],s));return a}return i}function r(i,s){return i.data=o(i.data,s),delete i.attachments,i}Vr.reconstructPacket=r;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return Vr}var kf;function Hc(){return kf||(kf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=kn,n=kE(),r=Ap(),i=(0,qt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class u{constructor(l){this.replacer=l}encode(l){return i("encoding packet %j",l),(l.type===a.EVENT||l.type===a.ACK)&&(0,r.hasBinary)(l)?this.encodeAsBinary({type:l.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let p=""+l.type;return(l.type===a.BINARY_EVENT||l.type===a.BINARY_ACK)&&(p+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(p+=l.nsp+","),l.id!=null&&(p+=l.id),l.data!=null&&(p+=JSON.stringify(l.data,this.replacer)),i("encoded %j as %s",l,p),p}encodeAsBinary(l){const p=(0,n.deconstructPacket)(l),m=this.encodeAsString(p.packet),E=p.buffers;return E.unshift(m),E}}e.Encoder=u;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class c extends t.Emitter{constructor(l){super(),this.reviver=l}add(l){let p;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(l);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,r.isBinary)(l)||l.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(l),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let p=0;const m={type:Number(l.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const T=p+1;for(;l.charAt(++p)!=="-"&&p!=l.length;);const _=l.substring(T,p);if(_!=Number(_)||l.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(_)}if(l.charAt(p+1)==="/"){const T=p+1;for(;++p&&!(l.charAt(p)===","||p===l.length););m.nsp=l.substring(T,p)}else m.nsp="/";const E=l.charAt(p+1);if(E!==""&&Number(E)==E){const T=p+1;for(;++p;){const _=l.charAt(p);if(_==null||Number(_)!=_){--p;break}if(p===l.length)break}m.id=Number(l.substring(T,p+1))}if(l.charAt(++p)){const T=this.tryParse(l.substr(p));if(c.isPayloadValid(m.type,T))m.data=T;else throw new Error("invalid payload")}return i("decoded %s as %j",l,m),m}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,p){switch(l){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class h{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const p=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Os)),Os}var Mi={},Bf;function Cp(){if(Bf)return Mi;Bf=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.on=void 0;function e(t,n,r){return t.on(n,r),function(){t.off(n,r)}}return Mi.on=e,Mi}var Ff;function Rp(){if(Ff)return Li;Ff=1;var e=ce&&ce.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.Socket=void 0;const t=Hc(),n=Cp(),r=kn,i=e(qt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends r.Emitter{constructor(f,c,h){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=f,this.nsp=c,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[n.on(f,"open",this.onopen.bind(this)),n.on(f,"packet",this.onpacket.bind(this)),n.on(f,"error",this.onerror.bind(this)),n.on(f,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...c){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(c.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const h={type:t.PacketType.EVENT,data:c};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,c){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=c;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),c.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(l),c.apply(this,[null,...p])}}emitWithAck(f,...c){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,l)=>{c.push((p,m)=>h?p?l(p):d(m):d(p)),this.emit(f,...c)})}_addToQueue(f){let c;typeof f[f.length-1]=="function"&&(c=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...l)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),c&&c(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),c&&c(null,...l)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!f){i("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,i("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,c){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,c)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const c=f.data||[];i("emitting event %j",c),f.id!=null&&(i("attaching ack callback to event"),c.push(this.ack(f.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const h of c)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const c=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),c.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const c=this.acks[f.id];typeof c=="function"?(i("calling ack %s with %j",f.id,f.data),c.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,c){i("socket connected with id %s",f),this.id=f,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const c=this._anyListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const c=this._anyOutgoingListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const h of c)h.apply(this,f.data)}}}return Li.Socket=a,Li}var ki={},Uf;function BE(){if(Uf)return ki;Uf=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.Backoff=void 0;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return ki.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},ki}var Df;function FE(){if(Df)return Ii;Df=1;var e=ce&&ce.__createBinding||(Object.create?function(l,p,m,E){E===void 0&&(E=m),Object.defineProperty(l,E,{enumerable:!0,get:function(){return p[m]}})}:function(l,p,m,E){E===void 0&&(E=m),l[E]=p[m]}),t=ce&&ce.__setModuleDefault||(Object.create?function(l,p){Object.defineProperty(l,"default",{enumerable:!0,value:p})}:function(l,p){l.default=p}),n=ce&&ce.__importStar||function(l){if(l&&l.__esModule)return l;var p={};if(l!=null)for(var m in l)m!=="default"&&Object.prototype.hasOwnProperty.call(l,m)&&e(p,l,m);return t(p,l),p},r=ce&&ce.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Manager=void 0;const o=Op(),i=Rp(),s=n(Hc()),a=Cp(),u=BE(),f=kn,h=r(qt()).default("socket.io-client:manager");class d extends f.Emitter{constructor(p,m){var E;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((E=m.randomizationFactor)!==null&&E!==void 0?E:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const T=m.parser||s;this.encoder=new T.Encoder,this.decoder=new T.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,E=this;this._readyState="opening",this.skipReconnect=!1;const T=a.on(m,"open",function(){E.onopen(),p&&p()}),_=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",_);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),T(),_(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(T),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let E=this.nsps[p];return E?this._autoConnect&&!E.active&&E.connect():(E=new i.Socket(this,p,m),this.nsps[p]=E),E}_destroy(p){const m=Object.keys(this.nsps);for(const E of m)if(this.nsps[E].active){h("socket %s is still active, skipping close",E);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let E=0;E<m.length;E++)this.engine.write(m[E],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const E=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(T=>{T?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",T)):(h("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return Ii.Manager=d,Ii}var $f;function UE(){return $f||($f=1,function(e,t){var n=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=ME(),o=FE();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Rp();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=n(qt()).default("socket.io-client"),u={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const l=r.url(h,d.path||"/socket.io"),p=l.source,m=l.id,E=l.path,T=u[m]&&E in u[m].nsps,_=d.forceNew||d["force new connection"]||d.multiplex===!1||T;let b;return _?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(u[m]||(a("new io instance for %s",p),u[m]=new o.Manager(p,d)),b=u[m]),l.query&&!d.query&&(d.query=l.queryKey),b.socket(l.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var c=Hc();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=f}(So,So.exports)),So.exports}var As={},Bi={},jf;function DE(){if(jf)return Bi;jf=1,Bi.byteLength=a,Bi.toByteArray=f,Bi.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(l){var p=l.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");m===-1&&(m=p);var E=m===p?0:4-m%4;return[m,E]}function a(l){var p=s(l),m=p[0],E=p[1];return(m+E)*3/4-E}function u(l,p,m){return(p+m)*3/4-m}function f(l){var p,m=s(l),E=m[0],T=m[1],_=new n(u(l,E,T)),b=0,A=T>0?E-4:E,w;for(w=0;w<A;w+=4)p=t[l.charCodeAt(w)]<<18|t[l.charCodeAt(w+1)]<<12|t[l.charCodeAt(w+2)]<<6|t[l.charCodeAt(w+3)],_[b++]=p>>16&255,_[b++]=p>>8&255,_[b++]=p&255;return T===2&&(p=t[l.charCodeAt(w)]<<2|t[l.charCodeAt(w+1)]>>4,_[b++]=p&255),T===1&&(p=t[l.charCodeAt(w)]<<10|t[l.charCodeAt(w+1)]<<4|t[l.charCodeAt(w+2)]>>2,_[b++]=p>>8&255,_[b++]=p&255),_}function c(l){return e[l>>18&63]+e[l>>12&63]+e[l>>6&63]+e[l&63]}function h(l,p,m){for(var E,T=[],_=p;_<m;_+=3)E=(l[_]<<16&16711680)+(l[_+1]<<8&65280)+(l[_+2]&255),T.push(c(E));return T.join("")}function d(l){for(var p,m=l.length,E=m%3,T=[],_=16383,b=0,A=m-E;b<A;b+=_)T.push(h(l,b,b+_>A?A:b+_));return E===1?(p=l[m-1],T.push(e[p>>2]+e[p<<4&63]+"==")):E===2&&(p=(l[m-2]<<8)+l[m-1],T.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),T.join("")}return Bi}var xo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Hf;function $E(){return Hf||(Hf=1,xo.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,u=(1<<a)-1,f=u>>1,c=-7,h=n?o-1:0,d=n?-1:1,l=e[t+h];for(h+=d,i=l&(1<<-c)-1,l>>=-c,c+=a;c>0;i=i*256+e[t+h],h+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=s*256+e[t+h],h+=d,c-=8);if(i===0)i=1-f;else{if(i===u)return s?NaN:(l?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(l?-1:1)*s*Math.pow(2,i-r)},xo.write=function(e,t,n,r,o,i){var s,a,u,f=i*8-o-1,c=(1<<f)-1,h=c>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=d/u:t+=d*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*u-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+l]=a&255,l+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[n+l]=s&255,l+=p,s/=256,f-=8);e[n+l-p]|=m*128}),xo}/*!
56
+ window.`+s+".push("+JSON.stringify(i)+")"}};return _s=r,_s}var Es,af;function fE(){if(af)return Es;af=1;var e=lE(),t=n(e);function n(o){return o&&o.__esModule?o:{default:o}}var r={dataScript:function(i){var s=document.createElement("script");return s.innerHTML=i,s},gtm:function(i){var s=t.default.tags(i),a=function(){var h=document.createElement("noscript");return h.innerHTML=s.iframe,h},u=function(){var h=document.createElement("script");return h.innerHTML=s.script,h},f=this.dataScript(s.dataLayerVar);return{noScript:a,script:u,dataScript:f}},initialize:function(i){var s=i.gtmId,a=i.events,u=a===void 0?{}:a,f=i.dataLayer,c=i.dataLayerName,h=c===void 0?"dataLayer":c,d=i.auth,l=d===void 0?"":d,p=i.preview,m=p===void 0?"":p,E=this.gtm({id:s,events:u,dataLayer:f||void 0,dataLayerName:h,auth:l,preview:m});f&&document.head.appendChild(E.dataScript),document.head.insertBefore(E.script(),document.head.childNodes[0]),document.body.insertBefore(E.noScript(),document.body.childNodes[0])},dataLayer:function(i){var s=i.dataLayer,a=i.dataLayerName,u=a===void 0?"dataLayer":a;if(window[u])return window[u].push(s);var f=t.default.dataLayer(s,u),c=this.dataScript(f);document.head.insertBefore(c,document.head.childNodes[0])}};return Es=r,Es}var bs,sf;function dE(){if(sf)return bs;sf=1;var e=fE(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return bs=t.default,bs}var cf;function hE(){return cf||(cf=1,function(e,t){(function(n,r){e.exports=r(dE())})(ce,function(n){return function(){var r={273:function(a){a.exports=n}},o={};function i(a){var u=o[a];if(u!==void 0)return u.exports;var f=o[a]={exports:{}};return r[a](f,f.exports,i),f.exports}i.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(u,{a:u}),u},i.d=function(a,u){for(var f in u)i.o(u,f)&&!i.o(a,f)&&Object.defineProperty(a,f,{enumerable:!0,get:u[f]})},i.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return function(){i.r(s),i.d(s,{setContext:function(){return c},setupGTM:function(){return d}});var a=i(273),u=i.n(a);let f=null;const c=({configs:l,environment:p})=>{if(!p)throw new Error("Cannot set context: Environment not defined");if(!l)throw new Error("Cannot set context: REACT_APP_GTM_ID not defined");if(!l[p])throw new Error(`Cannot set context: REACT_APP_GTM_ID not defined for environment - ${JSON.stringify({configs:l,environment:p})}`);f=l[p]},h=()=>f,d=()=>{const l=h();u().initialize({gtmId:l.id})}}(),s}()})}(vs)),vs.exports}var Eh=202,bh=502,wh=400,Sh=409,Th=100,xh=201,Oh=417,pE=424,Ah=403,Ch=504,Rh=410,Nh=505,Ph=418,Ih=419,Lh=507,Mh=500,kh=411,Bh=423,Fh=420,Uh=405,Dh=301,$h=302,jh=207,Hh=300,qh=511,Gh=204,Wh=203,Vh=406,zh=404,Yh=501,Kh=304,Qh=200,Xh=206,Jh=402,Zh=308,ep=412,tp=428,rp=102,np=407,ip=431,op=408,ap=413,sp=414,cp=416,up=205,lp=303,fp=503,dp=101,hp=307,pp=429,mp=401,gp=422,yp=415,vp=305;const mE={ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTI_STATUS:jh,MULTIPLE_CHOICES:Hh,NETWORK_AUTHENTICATION_REQUIRED:qh,NO_CONTENT:Gh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,REQUESTED_RANGE_NOT_SATISFIABLE:cp,RESET_CONTENT:up,SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp};var gE={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"},yE={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421};function _p(e){var t=gE[e.toString()];if(!t)throw new Error("Status code does not exist: "+e);return t}function Ep(e){var t=yE[e];if(!t)throw new Error("Reason phrase does not exist: "+e);return t}var bp=_p,cc;(function(e){e[e.ACCEPTED=202]="ACCEPTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.CONFLICT=409]="CONFLICT",e[e.CONTINUE=100]="CONTINUE",e[e.CREATED=201]="CREATED",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.GONE=410]="GONE",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.LOCKED=423]="LOCKED",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.OK=200]="OK",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.PROCESSING=102]="PROCESSING",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.USE_PROXY=305]="USE_PROXY",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST"})(cc||(cc={}));var uc;(function(e){e.ACCEPTED="Accepted",e.BAD_GATEWAY="Bad Gateway",e.BAD_REQUEST="Bad Request",e.CONFLICT="Conflict",e.CONTINUE="Continue",e.CREATED="Created",e.EXPECTATION_FAILED="Expectation Failed",e.FAILED_DEPENDENCY="Failed Dependency",e.FORBIDDEN="Forbidden",e.GATEWAY_TIMEOUT="Gateway Timeout",e.GONE="Gone",e.HTTP_VERSION_NOT_SUPPORTED="HTTP Version Not Supported",e.IM_A_TEAPOT="I'm a teapot",e.INSUFFICIENT_SPACE_ON_RESOURCE="Insufficient Space on Resource",e.INSUFFICIENT_STORAGE="Insufficient Storage",e.INTERNAL_SERVER_ERROR="Internal Server Error",e.LENGTH_REQUIRED="Length Required",e.LOCKED="Locked",e.METHOD_FAILURE="Method Failure",e.METHOD_NOT_ALLOWED="Method Not Allowed",e.MOVED_PERMANENTLY="Moved Permanently",e.MOVED_TEMPORARILY="Moved Temporarily",e.MULTI_STATUS="Multi-Status",e.MULTIPLE_CHOICES="Multiple Choices",e.NETWORK_AUTHENTICATION_REQUIRED="Network Authentication Required",e.NO_CONTENT="No Content",e.NON_AUTHORITATIVE_INFORMATION="Non Authoritative Information",e.NOT_ACCEPTABLE="Not Acceptable",e.NOT_FOUND="Not Found",e.NOT_IMPLEMENTED="Not Implemented",e.NOT_MODIFIED="Not Modified",e.OK="OK",e.PARTIAL_CONTENT="Partial Content",e.PAYMENT_REQUIRED="Payment Required",e.PERMANENT_REDIRECT="Permanent Redirect",e.PRECONDITION_FAILED="Precondition Failed",e.PRECONDITION_REQUIRED="Precondition Required",e.PROCESSING="Processing",e.PROXY_AUTHENTICATION_REQUIRED="Proxy Authentication Required",e.REQUEST_HEADER_FIELDS_TOO_LARGE="Request Header Fields Too Large",e.REQUEST_TIMEOUT="Request Timeout",e.REQUEST_TOO_LONG="Request Entity Too Large",e.REQUEST_URI_TOO_LONG="Request-URI Too Long",e.REQUESTED_RANGE_NOT_SATISFIABLE="Requested Range Not Satisfiable",e.RESET_CONTENT="Reset Content",e.SEE_OTHER="See Other",e.SERVICE_UNAVAILABLE="Service Unavailable",e.SWITCHING_PROTOCOLS="Switching Protocols",e.TEMPORARY_REDIRECT="Temporary Redirect",e.TOO_MANY_REQUESTS="Too Many Requests",e.UNAUTHORIZED="Unauthorized",e.UNAVAILABLE_FOR_LEGAL_REASONS="Unavailable For Legal Reasons",e.UNPROCESSABLE_ENTITY="Unprocessable Entity",e.UNSUPPORTED_MEDIA_TYPE="Unsupported Media Type",e.USE_PROXY="Use Proxy",e.MISDIRECTED_REQUEST="Misdirected Request"})(uc||(uc={}));var jo=globalThis&&globalThis.__assign||function(){return jo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},jo.apply(this,arguments)};const vE=jo(jo({},mE),{getStatusCode:Ep,getStatusText:bp}),_E=Object.freeze(Object.defineProperty({__proto__:null,ACCEPTED:Eh,BAD_GATEWAY:bh,BAD_REQUEST:wh,CONFLICT:Sh,CONTINUE:Th,CREATED:xh,EXPECTATION_FAILED:Oh,FAILED_DEPENDENCY:pE,FORBIDDEN:Ah,GATEWAY_TIMEOUT:Ch,GONE:Rh,HTTP_VERSION_NOT_SUPPORTED:Nh,IM_A_TEAPOT:Ph,INSUFFICIENT_SPACE_ON_RESOURCE:Ih,INSUFFICIENT_STORAGE:Lh,INTERNAL_SERVER_ERROR:Mh,LENGTH_REQUIRED:kh,LOCKED:Bh,METHOD_FAILURE:Fh,METHOD_NOT_ALLOWED:Uh,MOVED_PERMANENTLY:Dh,MOVED_TEMPORARILY:$h,MULTIPLE_CHOICES:Hh,MULTI_STATUS:jh,NETWORK_AUTHENTICATION_REQUIRED:qh,NON_AUTHORITATIVE_INFORMATION:Wh,NOT_ACCEPTABLE:Vh,NOT_FOUND:zh,NOT_IMPLEMENTED:Yh,NOT_MODIFIED:Kh,NO_CONTENT:Gh,OK:Qh,PARTIAL_CONTENT:Xh,PAYMENT_REQUIRED:Jh,PERMANENT_REDIRECT:Zh,PRECONDITION_FAILED:ep,PRECONDITION_REQUIRED:tp,PROCESSING:rp,PROXY_AUTHENTICATION_REQUIRED:np,REQUESTED_RANGE_NOT_SATISFIABLE:cp,REQUEST_HEADER_FIELDS_TOO_LARGE:ip,REQUEST_TIMEOUT:op,REQUEST_TOO_LONG:ap,REQUEST_URI_TOO_LONG:sp,RESET_CONTENT:up,get ReasonPhrases(){return uc},SEE_OTHER:lp,SERVICE_UNAVAILABLE:fp,SWITCHING_PROTOCOLS:dp,get StatusCodes(){return cc},TEMPORARY_REDIRECT:hp,TOO_MANY_REQUESTS:pp,UNAUTHORIZED:mp,UNPROCESSABLE_ENTITY:gp,UNSUPPORTED_MEDIA_TYPE:yp,USE_PROXY:vp,default:vE,getReasonPhrase:_p,getStatusCode:Ep,getStatusText:bp},Symbol.toStringTag,{value:"Module"})),EE=Yi(_E);var So={exports:{}},wi={},ws={},Si={},Ti={},$r={},xi={},Ss={},jr={},Xt={},uf;function jc(){if(uf)return Xt;uf=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.ERROR_PACKET=Xt.PACKET_TYPES_REVERSE=Xt.PACKET_TYPES=void 0;const e=Object.create(null);Xt.PACKET_TYPES=e,e.open="0",e.close="1",e.ping="2",e.pong="3",e.message="4",e.upgrade="5",e.noop="6";const t=Object.create(null);Xt.PACKET_TYPES_REVERSE=t,Object.keys(e).forEach(r=>{t[e[r]]=r});const n={type:"error",data:"parser error"};return Xt.ERROR_PACKET=n,Xt}var lf;function bE(){if(lf)return jr;lf=1,Object.defineProperty(jr,"__esModule",{value:!0}),jr.encodePacket=jr.encodePacketToBinary=void 0;const e=jc(),t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",n=typeof ArrayBuffer=="function",r=f=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(f):f&&f.buffer instanceof ArrayBuffer,o=({type:f,data:c},h,d)=>t&&c instanceof Blob?h?d(c):i(c,d):n&&(c instanceof ArrayBuffer||r(c))?h?d(c):i(new Blob([c]),d):d(e.PACKET_TYPES[f]+(c||""));jr.encodePacket=o;const i=(f,c)=>{const h=new FileReader;return h.onload=function(){const d=h.result.split(",")[1];c("b"+(d||""))},h.readAsDataURL(f)};function s(f){return f instanceof Uint8Array?f:f instanceof ArrayBuffer?new Uint8Array(f):new Uint8Array(f.buffer,f.byteOffset,f.byteLength)}let a;function u(f,c){if(t&&f.data instanceof Blob)return f.data.arrayBuffer().then(s).then(c);if(n&&(f.data instanceof ArrayBuffer||r(f.data)))return c(s(f.data));o(f,!1,h=>{a||(a=new TextEncoder),c(a.encode(h))})}return jr.encodePacketToBinary=u,jr}var Oi={},Hr={},ff;function wE(){if(ff)return Hr;ff=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.decode=Hr.encode=void 0;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let o=0;o<e.length;o++)t[e.charCodeAt(o)]=o;const n=o=>{let i=new Uint8Array(o),s,a=i.length,u="";for(s=0;s<a;s+=3)u+=e[i[s]>>2],u+=e[(i[s]&3)<<4|i[s+1]>>4],u+=e[(i[s+1]&15)<<2|i[s+2]>>6],u+=e[i[s+2]&63];return a%3===2?u=u.substring(0,u.length-1)+"=":a%3===1&&(u=u.substring(0,u.length-2)+"=="),u};Hr.encode=n;const r=o=>{let i=o.length*.75,s=o.length,a,u=0,f,c,h,d;o[o.length-1]==="="&&(i--,o[o.length-2]==="="&&i--);const l=new ArrayBuffer(i),p=new Uint8Array(l);for(a=0;a<s;a+=4)f=t[o.charCodeAt(a)],c=t[o.charCodeAt(a+1)],h=t[o.charCodeAt(a+2)],d=t[o.charCodeAt(a+3)],p[u++]=f<<2|c>>4,p[u++]=(c&15)<<4|h>>2,p[u++]=(h&3)<<6|d&63;return l};return Hr.decode=r,Hr}var df;function SE(){if(df)return Oi;df=1,Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.decodePacket=void 0;const e=jc(),t=wE(),n=typeof ArrayBuffer=="function",r=(s,a)=>{if(typeof s!="string")return{type:"message",data:i(s,a)};const u=s.charAt(0);return u==="b"?{type:"message",data:o(s.substring(1),a)}:e.PACKET_TYPES_REVERSE[u]?s.length>1?{type:e.PACKET_TYPES_REVERSE[u],data:s.substring(1)}:{type:e.PACKET_TYPES_REVERSE[u]}:e.ERROR_PACKET};Oi.decodePacket=r;const o=(s,a)=>{if(n){const u=(0,t.decode)(s);return i(u,a)}else return{base64:!0,data:s}},i=(s,a)=>{switch(a){case"blob":return s instanceof Blob?s:new Blob([s]);case"arraybuffer":default:return s instanceof ArrayBuffer?s:s.buffer}};return Oi}var hf;function Qi(){return hf||(hf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodePayload=e.decodePacket=e.encodePayload=e.encodePacket=e.protocol=e.createPacketDecoderStream=e.createPacketEncoderStream=void 0;const t=bE();Object.defineProperty(e,"encodePacket",{enumerable:!0,get:function(){return t.encodePacket}});const n=SE();Object.defineProperty(e,"decodePacket",{enumerable:!0,get:function(){return n.decodePacket}});const r=jc(),o=String.fromCharCode(30),i=(d,l)=>{const p=d.length,m=new Array(p);let E=0;d.forEach((T,_)=>{(0,t.encodePacket)(T,!1,b=>{m[_]=b,++E===p&&l(m.join(o))})})};e.encodePayload=i;const s=(d,l)=>{const p=d.split(o),m=[];for(let E=0;E<p.length;E++){const T=(0,n.decodePacket)(p[E],l);if(m.push(T),T.type==="error")break}return m};e.decodePayload=s;function a(){return new TransformStream({transform(d,l){(0,t.encodePacketToBinary)(d,p=>{const m=p.length;let E;if(m<126)E=new Uint8Array(1),new DataView(E.buffer).setUint8(0,m);else if(m<65536){E=new Uint8Array(3);const T=new DataView(E.buffer);T.setUint8(0,126),T.setUint16(1,m)}else{E=new Uint8Array(9);const T=new DataView(E.buffer);T.setUint8(0,127),T.setBigUint64(1,BigInt(m))}d.data&&typeof d.data!="string"&&(E[0]|=128),l.enqueue(E),l.enqueue(p)})}})}e.createPacketEncoderStream=a;let u;function f(d){return d.reduce((l,p)=>l+p.length,0)}function c(d,l){if(d[0].length===l)return d.shift();const p=new Uint8Array(l);let m=0;for(let E=0;E<l;E++)p[E]=d[0][m++],m===d[0].length&&(d.shift(),m=0);return d.length&&m<d[0].length&&(d[0]=d[0].slice(m)),p}function h(d,l){u||(u=new TextDecoder);const p=[];let m=0,E=-1,T=!1;return new TransformStream({transform(_,b){for(p.push(_);;){if(m===0){if(f(p)<1)break;const A=c(p,1);T=(A[0]&128)===128,E=A[0]&127,E<126?m=3:E===126?m=1:m=2}else if(m===1){if(f(p)<2)break;const A=c(p,2);E=new DataView(A.buffer,A.byteOffset,A.length).getUint16(0),m=3}else if(m===2){if(f(p)<8)break;const A=c(p,8),w=new DataView(A.buffer,A.byteOffset,A.length),N=w.getUint32(0);if(N>Math.pow(2,53-32)-1){b.enqueue(r.ERROR_PACKET);break}E=N*Math.pow(2,32)+w.getUint32(4),m=3}else{if(f(p)<E)break;const A=c(p,E);b.enqueue((0,n.decodePacket)(T?A:u.decode(A),l)),m=0}if(E===0||E>d){b.enqueue(r.ERROR_PACKET);break}}}})}e.createPacketDecoderStream=h,e.protocol=4}(Ss)),Ss}function at(e){if(e)return TE(e)}function TE(e){for(var t in at.prototype)e[t]=at.prototype[t];return e}at.prototype.on=at.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};at.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};at.prototype.off=at.prototype.removeListener=at.prototype.removeAllListeners=at.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,o=0;o<n.length;o++)if(r=n[o],r===t||r.fn===t){n.splice(o,1);break}return n.length===0&&delete this._callbacks["$"+e],this};at.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,t)}return this};at.prototype.emitReserved=at.prototype.emit;at.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};at.prototype.hasListeners=function(e){return!!this.listeners(e).length};const xE=Object.freeze(Object.defineProperty({__proto__:null,Emitter:at},Symbol.toStringTag,{value:"Module"})),kn=Yi(xE);var Jt={},Ai={},pf;function Xo(){return pf||(pf=1,Object.defineProperty(Ai,"__esModule",{value:!0}),Ai.globalThisShim=void 0,Ai.globalThisShim=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())()),Ai}var mf;function Xi(){if(mf)return Jt;mf=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.byteLength=Jt.installTimerFunctions=Jt.pick=void 0;const e=Xo();function t(u,...f){return f.reduce((c,h)=>(u.hasOwnProperty(h)&&(c[h]=u[h]),c),{})}Jt.pick=t;const n=e.globalThisShim.setTimeout,r=e.globalThisShim.clearTimeout;function o(u,f){f.useNativeTimers?(u.setTimeoutFn=n.bind(e.globalThisShim),u.clearTimeoutFn=r.bind(e.globalThisShim)):(u.setTimeoutFn=e.globalThisShim.setTimeout.bind(e.globalThisShim),u.clearTimeoutFn=e.globalThisShim.clearTimeout.bind(e.globalThisShim))}Jt.installTimerFunctions=o;const i=1.33;function s(u){return typeof u=="string"?a(u):Math.ceil((u.byteLength||u.size)*i)}Jt.byteLength=s;function a(u){let f=0,c=0;for(let h=0,d=u.length;h<d;h++)f=u.charCodeAt(h),f<128?c+=1:f<2048?c+=2:f<55296||f>=57344?c+=3:(h++,c+=4);return c}return Jt}var To={exports:{}},Ts,gf;function OE(){if(gf)return Ts;gf=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*7,i=r*365.25;Ts=function(c,h){h=h||{};var d=typeof c;if(d==="string"&&c.length>0)return s(c);if(d==="number"&&isFinite(c))return h.long?u(c):a(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function s(c){if(c=String(c),!(c.length>100)){var h=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(c);if(h){var d=parseFloat(h[1]),l=(h[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return d*i;case"weeks":case"week":case"w":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(c){var h=Math.abs(c);return h>=r?Math.round(c/r)+"d":h>=n?Math.round(c/n)+"h":h>=t?Math.round(c/t)+"m":h>=e?Math.round(c/e)+"s":c+"ms"}function u(c){var h=Math.abs(c);return h>=r?f(c,h,r,"day"):h>=n?f(c,h,n,"hour"):h>=t?f(c,h,t,"minute"):h>=e?f(c,h,e,"second"):c+" ms"}function f(c,h,d,l){var p=h>=d*1.5;return Math.round(c/d)+" "+l+(p?"s":"")}return Ts}var xs,yf;function AE(){if(yf)return xs;yf=1;function e(t){r.debug=r,r.default=r,r.coerce=f,r.disable=s,r.enable=i,r.enabled=a,r.humanize=OE(),r.destroy=c,Object.keys(t).forEach(h=>{r[h]=t[h]}),r.names=[],r.skips=[],r.formatters={};function n(h){let d=0;for(let l=0;l<h.length;l++)d=(d<<5)-d+h.charCodeAt(l),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=n;function r(h){let d,l=null,p,m;function E(...T){if(!E.enabled)return;const _=E,b=Number(new Date),A=b-(d||b);_.diff=A,_.prev=d,_.curr=b,d=b,T[0]=r.coerce(T[0]),typeof T[0]!="string"&&T.unshift("%O");let w=0;T[0]=T[0].replace(/%([a-zA-Z%])/g,(F,B)=>{if(F==="%%")return"%";w++;const G=r.formatters[B];if(typeof G=="function"){const W=T[w];F=G.call(_,W),T.splice(w,1),w--}return F}),r.formatArgs.call(_,T),(_.log||r.log).apply(_,T)}return E.namespace=h,E.useColors=r.useColors(),E.color=r.selectColor(h),E.extend=o,E.destroy=r.destroy,Object.defineProperty(E,"enabled",{enumerable:!0,configurable:!1,get:()=>l!==null?l:(p!==r.namespaces&&(p=r.namespaces,m=r.enabled(h)),m),set:T=>{l=T}}),typeof r.init=="function"&&r.init(E),E}function o(h,d){const l=r(this.namespace+(typeof d>"u"?":":d)+h);return l.log=this.log,l}function i(h){r.save(h),r.namespaces=h,r.names=[],r.skips=[];let d;const l=(typeof h=="string"?h:"").split(/[\s,]+/),p=l.length;for(d=0;d<p;d++)l[d]&&(h=l[d].replace(/\*/g,".*?"),h[0]==="-"?r.skips.push(new RegExp("^"+h.slice(1)+"$")):r.names.push(new RegExp("^"+h+"$")))}function s(){const h=[...r.names.map(u),...r.skips.map(u).map(d=>"-"+d)].join(",");return r.enable(""),h}function a(h){if(h[h.length-1]==="*")return!0;let d,l;for(d=0,l=r.skips.length;d<l;d++)if(r.skips[d].test(h))return!1;for(d=0,l=r.names.length;d<l;d++)if(r.names[d].test(h))return!0;return!1}function u(h){return h.toString().substring(2,h.toString().length-2).replace(/\.\*\?$/,"*")}function f(h){return h instanceof Error?h.stack||h.message:h}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}return xs=e,xs}var vf;function qt(){return vf||(vf=1,function(e,t){t.formatArgs=r,t.save=o,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const f="color: "+this.color;u.splice(1,0,f,"color: inherit");let c=0,h=0;u[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(c++,d==="%c"&&(h=c))}),u.splice(h,0,f)}t.log=console.debug||console.log||(()=>{});function o(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=AE()(t);const{formatters:a}=e.exports;a.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}}}(To,To.exports)),To.exports}var qr={},_f;function wp(){if(_f)return qr;_f=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.decode=qr.encode=void 0;function e(n){let r="";for(let o in n)n.hasOwnProperty(o)&&(r.length&&(r+="&"),r+=encodeURIComponent(o)+"="+encodeURIComponent(n[o]));return r}qr.encode=e;function t(n){let r={},o=n.split("&");for(let i=0,s=o.length;i<s;i++){let a=o[i].split("=");r[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return r}return qr.decode=t,qr}var Ef;function Jo(){if(Ef)return xi;Ef=1;var e=ce&&ce.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(xi,"__esModule",{value:!0}),xi.Transport=void 0;const t=Qi(),n=kn,r=Xi(),o=e(qt()),i=wp(),s=(0,o.default)("engine.io-client:transport");class a extends Error{constructor(c,h,d){super(c),this.description=h,this.context=d,this.type="TransportError"}}class u extends n.Emitter{constructor(c){super(),this.writable=!1,(0,r.installTimerFunctions)(this,c),this.opts=c,this.query=c.query,this.socket=c.socket}onError(c,h,d){return super.emitReserved("error",new a(c,h,d)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(c){this.readyState==="open"?this.write(c):s("transport is not open, discarding packets")}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(c){const h=(0,t.decodePacket)(c,this.socket.binaryType);this.onPacket(h)}onPacket(c){super.emitReserved("packet",c)}onClose(c){this.readyState="closed",super.emitReserved("close",c)}pause(c){}createUri(c,h={}){return c+"://"+this._hostname()+this._port()+this.opts.path+this._query(h)}_hostname(){const c=this.opts.hostname;return c.indexOf(":")===-1?c:"["+c+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(c){const h=(0,i.encode)(c);return h.length?"?"+h:""}}return xi.Transport=u,xi}var Zt={},bf;function Sp(){if(bf)return Zt;bf=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.yeast=Zt.decode=Zt.encode=void 0;const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={};let r=0,o=0,i;function s(f){let c="";do c=e[f%t]+c,f=Math.floor(f/t);while(f>0);return c}Zt.encode=s;function a(f){let c=0;for(o=0;o<f.length;o++)c=c*t+n[f.charAt(o)];return c}Zt.decode=a;function u(){const f=s(+new Date);return f!==i?(r=0,i=f):f+"."+s(r++)}for(Zt.yeast=u;o<t;o++)n[e[o]]=o;return Zt}var Gr={},Ci={},wf;function CE(){if(wf)return Ci;wf=1,Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.hasCORS=void 0;let e=!1;try{e=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}return Ci.hasCORS=e,Ci}var Sf;function RE(){if(Sf)return Gr;Sf=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.createCookieJar=Gr.XHR=void 0;const e=CE(),t=Xo();function n(o){const i=o.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||e.hasCORS))return new XMLHttpRequest}catch{}if(!i)try{return new t.globalThisShim[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}Gr.XHR=n;function r(){}return Gr.createCookieJar=r,Gr}var Tf;function NE(){if(Tf)return $r;Tf=1;var e=ce&&ce.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty($r,"__esModule",{value:!0}),$r.Request=$r.Polling=void 0;const t=Jo(),n=e(qt()),r=Sp(),o=Qi(),i=RE(),s=kn,a=Xi(),u=Xo(),f=(0,n.default)("engine.io-client:polling");function c(){}const h=function(){return new i.XHR({xdomain:!1}).responseType!=null}();class d extends t.Transport{constructor(E){if(super(E),this.polling=!1,typeof location<"u"){const _=location.protocol==="https:";let b=location.port;b||(b=_?"443":"80"),this.xd=typeof location<"u"&&E.hostname!==location.hostname||b!==E.port}const T=E&&E.forceBase64;this.supportsBinary=h&&!T,this.opts.withCredentials&&(this.cookieJar=(0,i.createCookieJar)())}get name(){return"polling"}doOpen(){this.poll()}pause(E){this.readyState="pausing";const T=()=>{f("paused"),this.readyState="paused",E()};if(this.polling||!this.writable){let _=0;this.polling&&(f("we are currently polling - waiting to pause"),_++,this.once("pollComplete",function(){f("pre-pause polling complete"),--_||T()})),this.writable||(f("we are currently writing - waiting to pause"),_++,this.once("drain",function(){f("pre-pause writing complete"),--_||T()}))}else T()}poll(){f("polling"),this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(E){f("polling got data %s",E);const T=_=>{if(this.readyState==="opening"&&_.type==="open"&&this.onOpen(),_.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(_)};(0,o.decodePayload)(E,this.socket.binaryType).forEach(T),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"?this.poll():f('ignoring poll - transport state "%s"',this.readyState))}doClose(){const E=()=>{f("writing close packet"),this.write([{type:"close"}])};this.readyState==="open"?(f("transport open - closing"),E()):(f("transport not open - deferring close"),this.once("open",E))}write(E){this.writable=!1,(0,o.encodePayload)(E,T=>{this.doWrite(T,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const E=this.opts.secure?"https":"http",T=this.query||{};return this.opts.timestampRequests!==!1&&(T[this.opts.timestampParam]=(0,r.yeast)()),!this.supportsBinary&&!T.sid&&(T.b64=1),this.createUri(E,T)}request(E={}){return Object.assign(E,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new l(this.uri(),E)}doWrite(E,T){const _=this.request({method:"POST",data:E});_.on("success",T),_.on("error",(b,A)=>{this.onError("xhr post error",b,A)})}doPoll(){f("xhr poll");const E=this.request();E.on("data",this.onData.bind(this)),E.on("error",(T,_)=>{this.onError("xhr poll error",T,_)}),this.pollXhr=E}}$r.Polling=d;class l extends s.Emitter{constructor(E,T){super(),(0,a.installTimerFunctions)(this,T),this.opts=T,this.method=T.method||"GET",this.uri=E,this.data=T.data!==void 0?T.data:null,this.create()}create(){var E;const T=(0,a.pick)(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");T.xdomain=!!this.opts.xd;const _=this.xhr=new i.XHR(T);try{f("xhr open %s: %s",this.method,this.uri),_.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){_.setDisableHeaderCheck&&_.setDisableHeaderCheck(!0);for(let b in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(b)&&_.setRequestHeader(b,this.opts.extraHeaders[b])}}catch{}if(this.method==="POST")try{_.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{_.setRequestHeader("Accept","*/*")}catch{}(E=this.opts.cookieJar)===null||E===void 0||E.addCookies(_),"withCredentials"in _&&(_.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(_.timeout=this.opts.requestTimeout),_.onreadystatechange=()=>{var b;_.readyState===3&&((b=this.opts.cookieJar)===null||b===void 0||b.parseCookies(_)),_.readyState===4&&(_.status===200||_.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof _.status=="number"?_.status:0)},0))},f("xhr data %s",this.data),_.send(this.data)}catch(b){this.setTimeoutFn(()=>{this.onError(b)},0);return}typeof document<"u"&&(this.index=l.requestsCount++,l.requests[this.index]=this)}onError(E){this.emitReserved("error",E,this.xhr),this.cleanup(!0)}cleanup(E){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=c,E)try{this.xhr.abort()}catch{}typeof document<"u"&&delete l.requests[this.index],this.xhr=null}}onLoad(){const E=this.xhr.responseText;E!==null&&(this.emitReserved("data",E),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if($r.Request=l,l.requestsCount=0,l.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",p);else if(typeof addEventListener=="function"){const m="onpagehide"in u.globalThisShim?"pagehide":"unload";addEventListener(m,p,!1)}}function p(){for(let m in l.requests)l.requests.hasOwnProperty(m)&&l.requests[m].abort()}return $r}var Ri={},Ct={},xf;function Zo(){if(xf)return Ct;xf=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.defaultBinaryType=Ct.usingBrowserWebSocket=Ct.WebSocket=Ct.nextTick=void 0;const e=Xo();return Ct.nextTick=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?n=>Promise.resolve().then(n):(n,r)=>r(n,0))(),Ct.WebSocket=e.globalThisShim.WebSocket||e.globalThisShim.MozWebSocket,Ct.usingBrowserWebSocket=!0,Ct.defaultBinaryType="arraybuffer",Ct}var Of;function PE(){if(Of)return Ri;Of=1;var e=ce&&ce.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.WS=void 0;const t=Jo(),n=Sp(),r=Xi(),o=Zo(),i=e(qt()),s=Qi(),a=(0,i.default)("engine.io-client:websocket"),u=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class f extends t.Transport{constructor(h){super(h),this.supportsBinary=!h.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const h=this.uri(),d=this.opts.protocols,l=u?{}:(0,r.pick)(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(l.headers=this.opts.extraHeaders);try{this.ws=o.usingBrowserWebSocket&&!u?d?new o.WebSocket(h,d):new o.WebSocket(h):new o.WebSocket(h,d,l)}catch(p){return this.emitReserved("error",p)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=h=>this.onClose({description:"websocket connection closed",context:h}),this.ws.onmessage=h=>this.onData(h.data),this.ws.onerror=h=>this.onError("websocket error",h)}write(h){this.writable=!1;for(let d=0;d<h.length;d++){const l=h[d],p=d===h.length-1;(0,s.encodePacket)(l,this.supportsBinary,m=>{const E={};o.usingBrowserWebSocket||(l.options&&(E.compress=l.options.compress),this.opts.perMessageDeflate&&(typeof m=="string"?Buffer.byteLength(m):m.length)<this.opts.perMessageDeflate.threshold&&(E.compress=!1));try{o.usingBrowserWebSocket?this.ws.send(m):this.ws.send(m,E)}catch{a("websocket closed before onclose event")}p&&(0,o.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const h=this.opts.secure?"wss":"ws",d=this.query||{};return this.opts.timestampRequests&&(d[this.opts.timestampParam]=(0,n.yeast)()),this.supportsBinary||(d.b64=1),this.createUri(h,d)}check(){return!!o.WebSocket}}return Ri.WS=f,Ri}var Ni={},Af;function IE(){if(Af)return Ni;Af=1;var e=ce&&ce.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.WT=void 0;const t=Jo(),n=Zo(),r=Qi(),i=(0,e(qt()).default)("engine.io-client:webtransport");class s extends t.Transport{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{i("transport closed gracefully"),this.onClose()}).catch(u=>{i("transport closed due to %s",u),this.onError("webtransport error",u)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(u=>{const f=(0,r.createPacketDecoderStream)(Number.MAX_SAFE_INTEGER,this.socket.binaryType),c=u.readable.pipeThrough(f).getReader(),h=(0,r.createPacketEncoderStream)();h.readable.pipeTo(u.writable),this.writer=h.writable.getWriter();const d=()=>{c.read().then(({done:p,value:m})=>{if(p){i("session is closed");return}i("received chunk: %o",m),this.onPacket(m),d()}).catch(p=>{i("an error occurred while reading: %s",p)})};d();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(u){this.writable=!1;for(let f=0;f<u.length;f++){const c=u[f],h=f===u.length-1;this.writer.write(c).then(()=>{h&&(0,n.nextTick)(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var u;(u=this.transport)===null||u===void 0||u.close()}}return Ni.WT=s,Ni}var Cf;function Tp(){if(Cf)return Ti;Cf=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.transports=void 0;const e=NE(),t=PE(),n=IE();return Ti.transports={websocket:t.WS,webtransport:n.WT,polling:e.Polling},Ti}var Pi={},Rf;function xp(){if(Rf)return Pi;Rf=1,Object.defineProperty(Pi,"__esModule",{value:!0}),Pi.parse=void 0;const e=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function n(i){const s=i,a=i.indexOf("["),u=i.indexOf("]");a!=-1&&u!=-1&&(i=i.substring(0,a)+i.substring(a,u).replace(/:/g,";")+i.substring(u,i.length));let f=e.exec(i||""),c={},h=14;for(;h--;)c[t[h]]=f[h]||"";return a!=-1&&u!=-1&&(c.source=s,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=r(c,c.path),c.queryKey=o(c,c.query),c}Pi.parse=n;function r(i,s){const a=/\/{2,9}/g,u=s.replace(a,"/").split("/");return(s.slice(0,1)=="/"||s.length===0)&&u.splice(0,1),s.slice(-1)=="/"&&u.splice(u.length-1,1),u}function o(i,s){const a={};return s.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(u,f,c){f&&(a[f]=c)}),a}return Pi}var Nf;function LE(){if(Nf)return Si;Nf=1;var e=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Si,"__esModule",{value:!0}),Si.Socket=void 0;const t=Tp(),n=Xi(),r=wp(),o=xp(),i=e(qt()),s=kn,a=Qi(),u=Zo(),f=(0,i.default)("engine.io-client:socket");class c extends s.Emitter{constructor(d,l={}){super(),this.binaryType=u.defaultBinaryType,this.writeBuffer=[],d&&typeof d=="object"&&(l=d,d=null),d?(d=(0,o.parse)(d),l.hostname=d.host,l.secure=d.protocol==="https"||d.protocol==="wss",l.port=d.port,d.query&&(l.query=d.query)):l.host&&(l.hostname=(0,o.parse)(l.host).host),(0,n.installTimerFunctions)(this,l),this.secure=l.secure!=null?l.secure:typeof location<"u"&&location.protocol==="https:",l.hostname&&!l.port&&(l.port=this.secure?"443":"80"),this.hostname=l.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=l.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=l.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},l),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=(0,r.decode)(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(d){f('creating transport "%s"',d);const l=Object.assign({},this.opts.query);l.EIO=a.protocol,l.transport=d,this.id&&(l.sid=this.id);const p=Object.assign({},this.opts,{query:l,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[d]);return f("options: %j",p),new t.transports[d](p)}open(){let d;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)d="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else d=this.transports[0];this.readyState="opening";try{d=this.createTransport(d)}catch(l){f("error while creating transport: %s",l),this.transports.shift(),this.open();return}d.open(),this.setTransport(d)}setTransport(d){f("setting transport %s",d.name),this.transport&&(f("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=d,d.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",l=>this.onClose("transport close",l))}probe(d){f('probing transport "%s"',d);let l=this.createTransport(d),p=!1;c.priorWebsocketSuccess=!1;const m=()=>{p||(f('probe transport "%s" opened',d),l.send([{type:"ping",data:"probe"}]),l.once("packet",N=>{if(!p)if(N.type==="pong"&&N.data==="probe"){if(f('probe transport "%s" pong',d),this.upgrading=!0,this.emitReserved("upgrading",l),!l)return;c.priorWebsocketSuccess=l.name==="websocket",f('pausing current transport "%s"',this.transport.name),this.transport.pause(()=>{p||this.readyState!=="closed"&&(f("changing transport and sending upgrade packet"),w(),this.setTransport(l),l.send([{type:"upgrade"}]),this.emitReserved("upgrade",l),l=null,this.upgrading=!1,this.flush())})}else{f('probe transport "%s" failed',d);const F=new Error("probe error");F.transport=l.name,this.emitReserved("upgradeError",F)}}))};function E(){p||(p=!0,w(),l.close(),l=null)}const T=N=>{const F=new Error("probe error: "+N);F.transport=l.name,E(),f('probe transport "%s" failed because of error: %s',d,N),this.emitReserved("upgradeError",F)};function _(){T("transport closed")}function b(){T("socket closed")}function A(N){l&&N.name!==l.name&&(f('"%s" works - aborting "%s"',N.name,l.name),E())}const w=()=>{l.removeListener("open",m),l.removeListener("error",T),l.removeListener("close",_),this.off("close",b),this.off("upgrading",A)};l.once("open",m),l.once("error",T),l.once("close",_),this.once("close",b),this.once("upgrading",A),this.upgrades.indexOf("webtransport")!==-1&&d!=="webtransport"?this.setTimeoutFn(()=>{p||l.open()},200):l.open()}onOpen(){if(f("socket open"),this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){f("starting upgrade probes");let d=0;const l=this.upgrades.length;for(;d<l;d++)this.probe(this.upgrades[d])}}onPacket(d){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(f('socket receive: type "%s", data "%s"',d.type,d.data),this.emitReserved("packet",d),this.emitReserved("heartbeat"),this.resetPingTimeout(),d.type){case"open":this.onHandshake(JSON.parse(d.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const l=new Error("server error");l.code=d.data,this.onError(l);break;case"message":this.emitReserved("data",d.data),this.emitReserved("message",d.data);break}else f('packet received with socket readyState "%s"',this.readyState)}onHandshake(d){this.emitReserved("handshake",d),this.id=d.sid,this.transport.query.sid=d.sid,this.upgrades=this.filterUpgrades(d.upgrades),this.pingInterval=d.pingInterval,this.pingTimeout=d.pingTimeout,this.maxPayload=d.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const d=this.getWritablePackets();f("flushing %d packets in socket",d.length),this.transport.send(d),this.prevBufferLen=d.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let l=1;for(let p=0;p<this.writeBuffer.length;p++){const m=this.writeBuffer[p].data;if(m&&(l+=(0,n.byteLength)(m)),p>0&&l>this.maxPayload)return f("only send %d out of %d packets",p,this.writeBuffer.length),this.writeBuffer.slice(0,p);l+=2}return f("payload size is %d (max: %d)",l,this.maxPayload),this.writeBuffer}write(d,l,p){return this.sendPacket("message",d,l,p),this}send(d,l,p){return this.sendPacket("message",d,l,p),this}sendPacket(d,l,p,m){if(typeof l=="function"&&(m=l,l=void 0),typeof p=="function"&&(m=p,p=null),this.readyState==="closing"||this.readyState==="closed")return;p=p||{},p.compress=p.compress!==!1;const E={type:d,data:l,options:p};this.emitReserved("packetCreate",E),this.writeBuffer.push(E),m&&this.once("flush",m),this.flush()}close(){const d=()=>{this.onClose("forced close"),f("socket closing - telling transport to close"),this.transport.close()},l=()=>{this.off("upgrade",l),this.off("upgradeError",l),d()},p=()=>{this.once("upgrade",l),this.once("upgradeError",l)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?p():d()}):this.upgrading?p():d()),this}onError(d){f("socket error %j",d),c.priorWebsocketSuccess=!1,this.emitReserved("error",d),this.onClose("transport error",d)}onClose(d,l){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(f('socket close with reason: "%s"',d),this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",d,l),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(d){const l=[];let p=0;const m=d.length;for(;p<m;p++)~this.transports.indexOf(d[p])&&l.push(d[p]);return l}}return Si.Socket=c,c.protocol=a.protocol,Si}var Pf;function Op(){return Pf||(Pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nextTick=e.parse=e.installTimerFunctions=e.transports=e.Transport=e.protocol=e.Socket=void 0;const t=LE();Object.defineProperty(e,"Socket",{enumerable:!0,get:function(){return t.Socket}}),e.protocol=t.Socket.protocol;var n=Jo();Object.defineProperty(e,"Transport",{enumerable:!0,get:function(){return n.Transport}});var r=Tp();Object.defineProperty(e,"transports",{enumerable:!0,get:function(){return r.transports}});var o=Xi();Object.defineProperty(e,"installTimerFunctions",{enumerable:!0,get:function(){return o.installTimerFunctions}});var i=xp();Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return i.parse}});var s=Zo();Object.defineProperty(e,"nextTick",{enumerable:!0,get:function(){return s.nextTick}})}(ws)),ws}var If;function ME(){if(If)return wi;If=1;var e=ce&&ce.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(wi,"__esModule",{value:!0}),wi.url=void 0;const t=Op(),r=e(qt()).default("socket.io-client:url");function o(i,s="",a){let u=i;a=a||typeof location<"u"&&location,i==null&&(i=a.protocol+"//"+a.host),typeof i=="string"&&(i.charAt(0)==="/"&&(i.charAt(1)==="/"?i=a.protocol+i:i=a.host+i),/^(https?|wss?):\/\//.test(i)||(r("protocol-less url %s",i),typeof a<"u"?i=a.protocol+"//"+i:i="https://"+i),r("parse %s",i),u=t.parse(i)),u.port||(/^(http|ws)$/.test(u.protocol)?u.port="80":/^(http|ws)s$/.test(u.protocol)&&(u.port="443")),u.path=u.path||"/";const c=u.host.indexOf(":")!==-1?"["+u.host+"]":u.host;return u.id=u.protocol+"://"+c+":"+u.port+s,u.href=u.protocol+"://"+c+(a&&a.port===u.port?"":":"+u.port),u}return wi.url=o,wi}var Ii={},Li={},Os={},Wr={},Vr={},Lf;function Ap(){if(Lf)return Vr;Lf=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.hasBinary=Vr.isBinary=void 0;const e=typeof ArrayBuffer=="function",t=a=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(a):a.buffer instanceof ArrayBuffer,n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob<"u"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File<"u"&&n.call(File)==="[object FileConstructor]";function i(a){return e&&(a instanceof ArrayBuffer||t(a))||r&&a instanceof Blob||o&&a instanceof File}Vr.isBinary=i;function s(a,u){if(!a||typeof a!="object")return!1;if(Array.isArray(a)){for(let f=0,c=a.length;f<c;f++)if(s(a[f]))return!0;return!1}if(i(a))return!0;if(a.toJSON&&typeof a.toJSON=="function"&&arguments.length===1)return s(a.toJSON(),!0);for(const f in a)if(Object.prototype.hasOwnProperty.call(a,f)&&s(a[f]))return!0;return!1}return Vr.hasBinary=s,Vr}var Mf;function kE(){if(Mf)return Wr;Mf=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.reconstructPacket=Wr.deconstructPacket=void 0;const e=Ap();function t(i){const s=[],a=i.data,u=i;return u.data=n(a,s),u.attachments=s.length,{packet:u,buffers:s}}Wr.deconstructPacket=t;function n(i,s){if(!i)return i;if((0,e.isBinary)(i)){const a={_placeholder:!0,num:s.length};return s.push(i),a}else if(Array.isArray(i)){const a=new Array(i.length);for(let u=0;u<i.length;u++)a[u]=n(i[u],s);return a}else if(typeof i=="object"&&!(i instanceof Date)){const a={};for(const u in i)Object.prototype.hasOwnProperty.call(i,u)&&(a[u]=n(i[u],s));return a}return i}function r(i,s){return i.data=o(i.data,s),delete i.attachments,i}Wr.reconstructPacket=r;function o(i,s){if(!i)return i;if(i&&i._placeholder===!0){if(typeof i.num=="number"&&i.num>=0&&i.num<s.length)return s[i.num];throw new Error("illegal attachments")}else if(Array.isArray(i))for(let a=0;a<i.length;a++)i[a]=o(i[a],s);else if(typeof i=="object")for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a]=o(i[a],s));return i}return Wr}var kf;function Hc(){return kf||(kf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Decoder=e.Encoder=e.PacketType=e.protocol=void 0;const t=kn,n=kE(),r=Ap(),i=(0,qt().default)("socket.io-parser"),s=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];e.protocol=5;var a;(function(d){d[d.CONNECT=0]="CONNECT",d[d.DISCONNECT=1]="DISCONNECT",d[d.EVENT=2]="EVENT",d[d.ACK=3]="ACK",d[d.CONNECT_ERROR=4]="CONNECT_ERROR",d[d.BINARY_EVENT=5]="BINARY_EVENT",d[d.BINARY_ACK=6]="BINARY_ACK"})(a=e.PacketType||(e.PacketType={}));class u{constructor(l){this.replacer=l}encode(l){return i("encoding packet %j",l),(l.type===a.EVENT||l.type===a.ACK)&&(0,r.hasBinary)(l)?this.encodeAsBinary({type:l.type===a.EVENT?a.BINARY_EVENT:a.BINARY_ACK,nsp:l.nsp,data:l.data,id:l.id}):[this.encodeAsString(l)]}encodeAsString(l){let p=""+l.type;return(l.type===a.BINARY_EVENT||l.type===a.BINARY_ACK)&&(p+=l.attachments+"-"),l.nsp&&l.nsp!=="/"&&(p+=l.nsp+","),l.id!=null&&(p+=l.id),l.data!=null&&(p+=JSON.stringify(l.data,this.replacer)),i("encoded %j as %s",l,p),p}encodeAsBinary(l){const p=(0,n.deconstructPacket)(l),m=this.encodeAsString(p.packet),E=p.buffers;return E.unshift(m),E}}e.Encoder=u;function f(d){return Object.prototype.toString.call(d)==="[object Object]"}class c extends t.Emitter{constructor(l){super(),this.reviver=l}add(l){let p;if(typeof l=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");p=this.decodeString(l);const m=p.type===a.BINARY_EVENT;m||p.type===a.BINARY_ACK?(p.type=m?a.EVENT:a.ACK,this.reconstructor=new h(p),p.attachments===0&&super.emitReserved("decoded",p)):super.emitReserved("decoded",p)}else if((0,r.isBinary)(l)||l.base64)if(this.reconstructor)p=this.reconstructor.takeBinaryData(l),p&&(this.reconstructor=null,super.emitReserved("decoded",p));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+l)}decodeString(l){let p=0;const m={type:Number(l.charAt(0))};if(a[m.type]===void 0)throw new Error("unknown packet type "+m.type);if(m.type===a.BINARY_EVENT||m.type===a.BINARY_ACK){const T=p+1;for(;l.charAt(++p)!=="-"&&p!=l.length;);const _=l.substring(T,p);if(_!=Number(_)||l.charAt(p)!=="-")throw new Error("Illegal attachments");m.attachments=Number(_)}if(l.charAt(p+1)==="/"){const T=p+1;for(;++p&&!(l.charAt(p)===","||p===l.length););m.nsp=l.substring(T,p)}else m.nsp="/";const E=l.charAt(p+1);if(E!==""&&Number(E)==E){const T=p+1;for(;++p;){const _=l.charAt(p);if(_==null||Number(_)!=_){--p;break}if(p===l.length)break}m.id=Number(l.substring(T,p+1))}if(l.charAt(++p)){const T=this.tryParse(l.substr(p));if(c.isPayloadValid(m.type,T))m.data=T;else throw new Error("invalid payload")}return i("decoded %s as %j",l,m),m}tryParse(l){try{return JSON.parse(l,this.reviver)}catch{return!1}}static isPayloadValid(l,p){switch(l){case a.CONNECT:return f(p);case a.DISCONNECT:return p===void 0;case a.CONNECT_ERROR:return typeof p=="string"||f(p);case a.EVENT:case a.BINARY_EVENT:return Array.isArray(p)&&(typeof p[0]=="number"||typeof p[0]=="string"&&s.indexOf(p[0])===-1);case a.ACK:case a.BINARY_ACK:return Array.isArray(p)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}e.Decoder=c;class h{constructor(l){this.packet=l,this.buffers=[],this.reconPack=l}takeBinaryData(l){if(this.buffers.push(l),this.buffers.length===this.reconPack.attachments){const p=(0,n.reconstructPacket)(this.reconPack,this.buffers);return this.finishedReconstruction(),p}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}}(Os)),Os}var Mi={},Bf;function Cp(){if(Bf)return Mi;Bf=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.on=void 0;function e(t,n,r){return t.on(n,r),function(){t.off(n,r)}}return Mi.on=e,Mi}var Ff;function Rp(){if(Ff)return Li;Ff=1;var e=ce&&ce.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Li,"__esModule",{value:!0}),Li.Socket=void 0;const t=Hc(),n=Cp(),r=kn,i=e(qt()).default("socket.io-client:socket"),s=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class a extends r.Emitter{constructor(f,c,h){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=f,this.nsp=c,h&&h.auth&&(this.auth=h.auth),this._opts=Object.assign({},h),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const f=this.io;this.subs=[n.on(f,"open",this.onopen.bind(this)),n.on(f,"packet",this.onpacket.bind(this)),n.on(f,"error",this.onerror.bind(this)),n.on(f,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...f){return f.unshift("message"),this.emit.apply(this,f),this}emit(f,...c){if(s.hasOwnProperty(f))throw new Error('"'+f.toString()+'" is a reserved event name');if(c.unshift(f),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(c),this;const h={type:t.PacketType.EVENT,data:c};if(h.options={},h.options.compress=this.flags.compress!==!1,typeof c[c.length-1]=="function"){const p=this.ids++;i("emitting packet with ack id %d",p);const m=c.pop();this._registerAckCallback(p,m),h.id=p}const d=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!d||!this.connected)?i("discard packet as the transport is not currently writable"):this.connected?(this.notifyOutgoingListeners(h),this.packet(h)):this.sendBuffer.push(h),this.flags={},this}_registerAckCallback(f,c){var h;const d=(h=this.flags.timeout)!==null&&h!==void 0?h:this._opts.ackTimeout;if(d===void 0){this.acks[f]=c;return}const l=this.io.setTimeoutFn(()=>{delete this.acks[f];for(let p=0;p<this.sendBuffer.length;p++)this.sendBuffer[p].id===f&&(i("removing packet with ack id %d from the buffer",f),this.sendBuffer.splice(p,1));i("event with ack id %d has timed out after %d ms",f,d),c.call(this,new Error("operation has timed out"))},d);this.acks[f]=(...p)=>{this.io.clearTimeoutFn(l),c.apply(this,[null,...p])}}emitWithAck(f,...c){const h=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((d,l)=>{c.push((p,m)=>h?p?l(p):d(m):d(p)),this.emit(f,...c)})}_addToQueue(f){let c;typeof f[f.length-1]=="function"&&(c=f.pop());const h={id:this._queueSeq++,tryCount:0,pending:!1,args:f,flags:Object.assign({fromQueue:!0},this.flags)};f.push((d,...l)=>h!==this._queue[0]?void 0:(d!==null?h.tryCount>this._opts.retries&&(i("packet [%d] is discarded after %d tries",h.id,h.tryCount),this._queue.shift(),c&&c(d)):(i("packet [%d] was successfully sent",h.id),this._queue.shift(),c&&c(null,...l)),h.pending=!1,this._drainQueue())),this._queue.push(h),this._drainQueue()}_drainQueue(f=!1){if(i("draining queue"),!this.connected||this._queue.length===0)return;const c=this._queue[0];if(c.pending&&!f){i("packet [%d] has already been sent and is waiting for an ack",c.id);return}c.pending=!0,c.tryCount++,i("sending packet [%d] (try n°%d)",c.id,c.tryCount),this.flags=c.flags,this.emit.apply(this,c.args)}packet(f){f.nsp=this.nsp,this.io._packet(f)}onopen(){i("transport is open - connecting"),typeof this.auth=="function"?this.auth(f=>{this._sendConnectPacket(f)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(f){this.packet({type:t.PacketType.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},f):f})}onerror(f){this.connected||this.emitReserved("connect_error",f)}onclose(f,c){i("close (%s)",f),this.connected=!1,delete this.id,this.emitReserved("disconnect",f,c)}onpacket(f){if(f.nsp===this.nsp)switch(f.type){case t.PacketType.CONNECT:f.data&&f.data.sid?this.onconnect(f.data.sid,f.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case t.PacketType.EVENT:case t.PacketType.BINARY_EVENT:this.onevent(f);break;case t.PacketType.ACK:case t.PacketType.BINARY_ACK:this.onack(f);break;case t.PacketType.DISCONNECT:this.ondisconnect();break;case t.PacketType.CONNECT_ERROR:this.destroy();const h=new Error(f.data.message);h.data=f.data.data,this.emitReserved("connect_error",h);break}}onevent(f){const c=f.data||[];i("emitting event %j",c),f.id!=null&&(i("attaching ack callback to event"),c.push(this.ack(f.id))),this.connected?this.emitEvent(c):this.receiveBuffer.push(Object.freeze(c))}emitEvent(f){if(this._anyListeners&&this._anyListeners.length){const c=this._anyListeners.slice();for(const h of c)h.apply(this,f)}super.emit.apply(this,f),this._pid&&f.length&&typeof f[f.length-1]=="string"&&(this._lastOffset=f[f.length-1])}ack(f){const c=this;let h=!1;return function(...d){h||(h=!0,i("sending ack %j",d),c.packet({type:t.PacketType.ACK,id:f,data:d}))}}onack(f){const c=this.acks[f.id];typeof c=="function"?(i("calling ack %s with %j",f.id,f.data),c.apply(this,f.data),delete this.acks[f.id]):i("bad ack %s",f.id)}onconnect(f,c){i("socket connected with id %s",f),this.id=f,this.recovered=c&&this._pid===c,this._pid=c,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(f=>this.emitEvent(f)),this.receiveBuffer=[],this.sendBuffer.forEach(f=>{this.notifyOutgoingListeners(f),this.packet(f)}),this.sendBuffer=[]}ondisconnect(){i("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(f=>f()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&(i("performing disconnect (%s)",this.nsp),this.packet({type:t.PacketType.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(f){return this.flags.compress=f,this}get volatile(){return this.flags.volatile=!0,this}timeout(f){return this.flags.timeout=f,this}onAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(f),this}prependAny(f){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(f),this}offAny(f){if(!this._anyListeners)return this;if(f){const c=this._anyListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(f),this}prependAnyOutgoing(f){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(f),this}offAnyOutgoing(f){if(!this._anyOutgoingListeners)return this;if(f){const c=this._anyOutgoingListeners;for(let h=0;h<c.length;h++)if(f===c[h])return c.splice(h,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(f){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const c=this._anyOutgoingListeners.slice();for(const h of c)h.apply(this,f.data)}}}return Li.Socket=a,Li}var ki={},Uf;function BE(){if(Uf)return ki;Uf=1,Object.defineProperty(ki,"__esModule",{value:!0}),ki.Backoff=void 0;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return ki.Backoff=e,e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},ki}var Df;function FE(){if(Df)return Ii;Df=1;var e=ce&&ce.__createBinding||(Object.create?function(l,p,m,E){E===void 0&&(E=m),Object.defineProperty(l,E,{enumerable:!0,get:function(){return p[m]}})}:function(l,p,m,E){E===void 0&&(E=m),l[E]=p[m]}),t=ce&&ce.__setModuleDefault||(Object.create?function(l,p){Object.defineProperty(l,"default",{enumerable:!0,value:p})}:function(l,p){l.default=p}),n=ce&&ce.__importStar||function(l){if(l&&l.__esModule)return l;var p={};if(l!=null)for(var m in l)m!=="default"&&Object.prototype.hasOwnProperty.call(l,m)&&e(p,l,m);return t(p,l),p},r=ce&&ce.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.Manager=void 0;const o=Op(),i=Rp(),s=n(Hc()),a=Cp(),u=BE(),f=kn,h=r(qt()).default("socket.io-client:manager");class d extends f.Emitter{constructor(p,m){var E;super(),this.nsps={},this.subs=[],p&&typeof p=="object"&&(m=p,p=void 0),m=m||{},m.path=m.path||"/socket.io",this.opts=m,o.installTimerFunctions(this,m),this.reconnection(m.reconnection!==!1),this.reconnectionAttempts(m.reconnectionAttempts||1/0),this.reconnectionDelay(m.reconnectionDelay||1e3),this.reconnectionDelayMax(m.reconnectionDelayMax||5e3),this.randomizationFactor((E=m.randomizationFactor)!==null&&E!==void 0?E:.5),this.backoff=new u.Backoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(m.timeout==null?2e4:m.timeout),this._readyState="closed",this.uri=p;const T=m.parser||s;this.encoder=new T.Encoder,this.decoder=new T.Decoder,this._autoConnect=m.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(p){return arguments.length?(this._reconnection=!!p,this):this._reconnection}reconnectionAttempts(p){return p===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=p,this)}reconnectionDelay(p){var m;return p===void 0?this._reconnectionDelay:(this._reconnectionDelay=p,(m=this.backoff)===null||m===void 0||m.setMin(p),this)}randomizationFactor(p){var m;return p===void 0?this._randomizationFactor:(this._randomizationFactor=p,(m=this.backoff)===null||m===void 0||m.setJitter(p),this)}reconnectionDelayMax(p){var m;return p===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=p,(m=this.backoff)===null||m===void 0||m.setMax(p),this)}timeout(p){return arguments.length?(this._timeout=p,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(p){if(h("readyState %s",this._readyState),~this._readyState.indexOf("open"))return this;h("opening %s",this.uri),this.engine=new o.Socket(this.uri,this.opts);const m=this.engine,E=this;this._readyState="opening",this.skipReconnect=!1;const T=a.on(m,"open",function(){E.onopen(),p&&p()}),_=A=>{h("error"),this.cleanup(),this._readyState="closed",this.emitReserved("error",A),p?p(A):this.maybeReconnectOnOpen()},b=a.on(m,"error",_);if(this._timeout!==!1){const A=this._timeout;h("connect attempt will timeout after %d",A);const w=this.setTimeoutFn(()=>{h("connect attempt timed out after %d",A),T(),_(new Error("timeout")),m.close()},A);this.opts.autoUnref&&w.unref(),this.subs.push(()=>{this.clearTimeoutFn(w)})}return this.subs.push(T),this.subs.push(b),this}connect(p){return this.open(p)}onopen(){h("open"),this.cleanup(),this._readyState="open",this.emitReserved("open");const p=this.engine;this.subs.push(a.on(p,"ping",this.onping.bind(this)),a.on(p,"data",this.ondata.bind(this)),a.on(p,"error",this.onerror.bind(this)),a.on(p,"close",this.onclose.bind(this)),a.on(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(p){try{this.decoder.add(p)}catch(m){this.onclose("parse error",m)}}ondecoded(p){o.nextTick(()=>{this.emitReserved("packet",p)},this.setTimeoutFn)}onerror(p){h("error",p),this.emitReserved("error",p)}socket(p,m){let E=this.nsps[p];return E?this._autoConnect&&!E.active&&E.connect():(E=new i.Socket(this,p,m),this.nsps[p]=E),E}_destroy(p){const m=Object.keys(this.nsps);for(const E of m)if(this.nsps[E].active){h("socket %s is still active, skipping close",E);return}this._close()}_packet(p){h("writing packet %j",p);const m=this.encoder.encode(p);for(let E=0;E<m.length;E++)this.engine.write(m[E],p.options)}cleanup(){h("cleanup"),this.subs.forEach(p=>p()),this.subs.length=0,this.decoder.destroy()}_close(){h("disconnect"),this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(p,m){h("closed due to %s",p),this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",p,m),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const p=this;if(this.backoff.attempts>=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const m=this.backoff.duration();h("will wait %dms before reconnect attempt",m),this._reconnecting=!0;const E=this.setTimeoutFn(()=>{p.skipReconnect||(h("attempting reconnect"),this.emitReserved("reconnect_attempt",p.backoff.attempts),!p.skipReconnect&&p.open(T=>{T?(h("reconnect attempt error"),p._reconnecting=!1,p.reconnect(),this.emitReserved("reconnect_error",T)):(h("reconnect success"),p.onreconnect())}))},m);this.opts.autoUnref&&E.unref(),this.subs.push(()=>{this.clearTimeoutFn(E)})}}onreconnect(){const p=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",p)}}return Ii.Manager=d,Ii}var $f;function UE(){return $f||($f=1,function(e,t){var n=ce&&ce.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.connect=t.io=t.Socket=t.Manager=t.protocol=void 0;const r=ME(),o=FE();Object.defineProperty(t,"Manager",{enumerable:!0,get:function(){return o.Manager}});const i=Rp();Object.defineProperty(t,"Socket",{enumerable:!0,get:function(){return i.Socket}});const a=n(qt()).default("socket.io-client"),u={};function f(h,d){typeof h=="object"&&(d=h,h=void 0),d=d||{};const l=r.url(h,d.path||"/socket.io"),p=l.source,m=l.id,E=l.path,T=u[m]&&E in u[m].nsps,_=d.forceNew||d["force new connection"]||d.multiplex===!1||T;let b;return _?(a("ignoring socket cache for %s",p),b=new o.Manager(p,d)):(u[m]||(a("new io instance for %s",p),u[m]=new o.Manager(p,d)),b=u[m]),l.query&&!d.query&&(d.query=l.queryKey),b.socket(l.path,d)}t.io=f,t.connect=f,t.default=f,Object.assign(f,{Manager:o.Manager,Socket:i.Socket,io:f,connect:f});var c=Hc();Object.defineProperty(t,"protocol",{enumerable:!0,get:function(){return c.protocol}}),e.exports=f}(So,So.exports)),So.exports}var As={},Bi={},jf;function DE(){if(jf)return Bi;jf=1,Bi.byteLength=a,Bi.toByteArray=f,Bi.fromByteArray=d;for(var e=[],t=[],n=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,i=r.length;o<i;++o)e[o]=r[o],t[r.charCodeAt(o)]=o;t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63;function s(l){var p=l.length;if(p%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var m=l.indexOf("=");m===-1&&(m=p);var E=m===p?0:4-m%4;return[m,E]}function a(l){var p=s(l),m=p[0],E=p[1];return(m+E)*3/4-E}function u(l,p,m){return(p+m)*3/4-m}function f(l){var p,m=s(l),E=m[0],T=m[1],_=new n(u(l,E,T)),b=0,A=T>0?E-4:E,w;for(w=0;w<A;w+=4)p=t[l.charCodeAt(w)]<<18|t[l.charCodeAt(w+1)]<<12|t[l.charCodeAt(w+2)]<<6|t[l.charCodeAt(w+3)],_[b++]=p>>16&255,_[b++]=p>>8&255,_[b++]=p&255;return T===2&&(p=t[l.charCodeAt(w)]<<2|t[l.charCodeAt(w+1)]>>4,_[b++]=p&255),T===1&&(p=t[l.charCodeAt(w)]<<10|t[l.charCodeAt(w+1)]<<4|t[l.charCodeAt(w+2)]>>2,_[b++]=p>>8&255,_[b++]=p&255),_}function c(l){return e[l>>18&63]+e[l>>12&63]+e[l>>6&63]+e[l&63]}function h(l,p,m){for(var E,T=[],_=p;_<m;_+=3)E=(l[_]<<16&16711680)+(l[_+1]<<8&65280)+(l[_+2]&255),T.push(c(E));return T.join("")}function d(l){for(var p,m=l.length,E=m%3,T=[],_=16383,b=0,A=m-E;b<A;b+=_)T.push(h(l,b,b+_>A?A:b+_));return E===1?(p=l[m-1],T.push(e[p>>2]+e[p<<4&63]+"==")):E===2&&(p=(l[m-2]<<8)+l[m-1],T.push(e[p>>10]+e[p>>4&63]+e[p<<2&63]+"=")),T.join("")}return Bi}var xo={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var Hf;function $E(){return Hf||(Hf=1,xo.read=function(e,t,n,r,o){var i,s,a=o*8-r-1,u=(1<<a)-1,f=u>>1,c=-7,h=n?o-1:0,d=n?-1:1,l=e[t+h];for(h+=d,i=l&(1<<-c)-1,l>>=-c,c+=a;c>0;i=i*256+e[t+h],h+=d,c-=8);for(s=i&(1<<-c)-1,i>>=-c,c+=r;c>0;s=s*256+e[t+h],h+=d,c-=8);if(i===0)i=1-f;else{if(i===u)return s?NaN:(l?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-f}return(l?-1:1)*s*Math.pow(2,i-r)},xo.write=function(e,t,n,r,o,i){var s,a,u,f=i*8-o-1,c=(1<<f)-1,h=c>>1,d=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,l=r?0:i-1,p=r?1:-1,m=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+h>=1?t+=d/u:t+=d*Math.pow(2,1-h),t*u>=2&&(s++,u/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(t*u-1)*Math.pow(2,o),s=s+h):(a=t*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;e[n+l]=a&255,l+=p,a/=256,o-=8);for(s=s<<o|a,f+=o;f>0;e[n+l]=s&255,l+=p,s/=256,f-=8);e[n+l-p]|=m*128}),xo}/*!
57
57
  * The buffer module from node.js, for the browser.
58
58
  *
59
59
  * @author Feross Aboukhadijeh <https://feross.org>
60
60
  * @license MIT
61
- */var qf;function jE(){return qf||(qf=1,function(e){const t=DE(),n=$E(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,v){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(S)}return u(S,g,v)}a.poolSize=8192;function u(S,g,v){if(typeof S=="string")return d(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(He(S,ArrayBuffer)||S&&He(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(S,SharedArrayBuffer)||S&&He(S.buffer,SharedArrayBuffer)))return m(S,g,v);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=S.valueOf&&S.valueOf();if(C!=null&&C!==S)return a.from(C,g,v);const P=E(S);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,v){return u(S,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,g,v){return f(S),S<=0?s(S):g!==void 0?typeof v=="string"?s(S).fill(g,v):s(S).fill(g):s(S)}a.alloc=function(S,g,v){return c(S,g,v)};function h(S){return f(S),s(S<0?0:T(S)|0)}a.allocUnsafe=function(S){return h(S)},a.allocUnsafeSlow=function(S){return h(S)};function d(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(S,g)|0;let C=s(v);const P=C.write(S,g);return P!==v&&(C=C.slice(0,P)),C}function l(S){const g=S.length<0?0:T(S.length)|0,v=s(g);for(let C=0;C<g;C+=1)v[C]=S[C]&255;return v}function p(S){if(He(S,Uint8Array)){const g=new Uint8Array(S);return m(g.buffer,g.byteOffset,g.byteLength)}return l(S)}function m(S,g,v){if(g<0||S.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&v===void 0?C=new Uint8Array(S):v===void 0?C=new Uint8Array(S,g):C=new Uint8Array(S,g,v),Object.setPrototypeOf(C,a.prototype),C}function E(S){if(a.isBuffer(S)){const g=T(S.length)|0,v=s(g);return v.length===0||S.copy(v,0,0,g),v}if(S.length!==void 0)return typeof S.length!="number"||St(S.length)?s(0):l(S);if(S.type==="Buffer"&&Array.isArray(S.data))return l(S.data)}function T(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),He(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,P=v.length;for(let U=0,q=Math.min(C,P);U<q;++U)if(g[U]!==v[U]){C=g[U],P=v[U];break}return C<P?-1:P<C?1:0},a.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const P=a.allocUnsafe(v);let U=0;for(C=0;C<g.length;++C){let q=g[C];if(He(q,Uint8Array))U+q.length>P.length?(a.isBuffer(q)||(q=a.from(q)),q.copy(P,U)):Uint8Array.prototype.set.call(P,q,U);else if(a.isBuffer(q))q.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=q.length}return P};function b(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||He(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const v=S.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let P=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(S).length;default:if(P)return C?-1:Rt(S).length;g=(""+g).toLowerCase(),P=!0}}a.byteLength=b;function A(S,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return de(this,g,v);case"utf8":case"utf-8":return oe(this,g,v);case"ascii":return z(this,g,v);case"latin1":case"binary":return Z(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function w(S,g,v){const C=S[g];S[g]=S[v],S[v]=C}a.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)w(this,v,v+1);return this},a.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?oe(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(g,v,C,P,U){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),v<0||C>g.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&v>=C)return 0;if(P>=U)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,P>>>=0,U>>>=0,this===g)return 0;let q=U-P,le=C-v;const we=Math.min(q,le),Se=this.slice(P,U),Te=g.slice(v,C);for(let he=0;he<we;++he)if(Se[he]!==Te[he]){q=Se[he],le=Te[he];break}return q<le?-1:le<q?1:0};function N(S,g,v,C,P){if(S.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=P?0:S.length-1),v<0&&(v=S.length+v),v>=S.length){if(P)return-1;v=S.length-1}else if(v<0)if(P)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,C)),a.isBuffer(g))return g.length===0?-1:F(S,g,v,C,P);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(S,g,v):Uint8Array.prototype.lastIndexOf.call(S,g,v):F(S,[g],v,C,P);throw new TypeError("val must be string, number or Buffer")}function F(S,g,v,C,P){let U=1,q=S.length,le=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(S.length<2||g.length<2)return-1;U=2,q/=2,le/=2,v/=2}function we(Te,he){return U===1?Te[he]:Te.readUInt16BE(he*U)}let Se;if(P){let Te=-1;for(Se=v;Se<q;Se++)if(we(S,Se)===we(g,Te===-1?0:Se-Te)){if(Te===-1&&(Te=Se),Se-Te+1===le)return Te*U}else Te!==-1&&(Se-=Se-Te),Te=-1}else for(v+le>q&&(v=q-le),Se=v;Se>=0;Se--){let Te=!0;for(let he=0;he<le;he++)if(we(S,Se+he)!==we(g,he)){Te=!1;break}if(Te)return Se}return-1}a.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},a.prototype.indexOf=function(g,v,C){return N(this,g,v,C,!0)},a.prototype.lastIndexOf=function(g,v,C){return N(this,g,v,C,!1)};function B(S,g,v,C){v=Number(v)||0;const P=S.length-v;C?(C=Number(C),C>P&&(C=P)):C=P;const U=g.length;C>U/2&&(C=U/2);let q;for(q=0;q<C;++q){const le=parseInt(g.substr(q*2,2),16);if(St(le))return q;S[v+q]=le}return q}function G(S,g,v,C){return gt(Rt(g,S.length-v),S,v,C)}function W(S,g,v,C){return gt(mt(g),S,v,C)}function V(S,g,v,C){return gt(wt(g),S,v,C)}function H(S,g,v,C){return gt(Tr(g,S.length-v),S,v,C)}a.prototype.write=function(g,v,C,P){if(v===void 0)P="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")P=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,P===void 0&&(P="utf8")):(P=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-v;if((C===void 0||C>U)&&(C=U),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let q=!1;for(;;)switch(P){case"hex":return B(this,g,v,C);case"utf8":case"utf-8":return G(this,g,v,C);case"ascii":case"latin1":case"binary":return W(this,g,v,C);case"base64":return V(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,v,C);default:if(q)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(S,g,v){return g===0&&v===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,v))}function oe(S,g,v){v=Math.min(S.length,v);const C=[];let P=g;for(;P<v;){const U=S[P];let q=null,le=U>239?4:U>223?3:U>191?2:1;if(P+le<=v){let we,Se,Te,he;switch(le){case 1:U<128&&(q=U);break;case 2:we=S[P+1],(we&192)===128&&(he=(U&31)<<6|we&63,he>127&&(q=he));break;case 3:we=S[P+1],Se=S[P+2],(we&192)===128&&(Se&192)===128&&(he=(U&15)<<12|(we&63)<<6|Se&63,he>2047&&(he<55296||he>57343)&&(q=he));break;case 4:we=S[P+1],Se=S[P+2],Te=S[P+3],(we&192)===128&&(Se&192)===128&&(Te&192)===128&&(he=(U&15)<<18|(we&63)<<12|(Se&63)<<6|Te&63,he>65535&&he<1114112&&(q=he))}}q===null?(q=65533,le=1):q>65535&&(q-=65536,C.push(q>>>10&1023|55296),q=56320|q&1023),C.push(q),P+=le}return M(C)}const Q=4096;function M(S){const g=S.length;if(g<=Q)return String.fromCharCode.apply(String,S);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,S.slice(C,C+=Q));return v}function z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]&127);return C}function Z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]);return C}function de(S,g,v){const C=S.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let P="";for(let U=g;U<v;++U)P+=nt[S[U]];return P}function X(S,g,v){const C=S.slice(g,v);let P="";for(let U=0;U<C.length-1;U+=2)P+=String.fromCharCode(C[U]+C[U+1]*256);return P}a.prototype.slice=function(g,v){const C=this.length;g=~~g,v=v===void 0?C:~~v,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),v<g&&(v=g);const P=this.subarray(g,v);return Object.setPrototypeOf(P,a.prototype),P};function K(S,g,v){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g+--v],U=1;for(;v>0&&(U*=256);)P+=this[g+--v]*U;return P},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,U=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(P)+(BigInt(U)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],U=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(P)<<BigInt(32))+BigInt(U)}),a.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*v)),P},a.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=v,U=1,q=this[g+--P];for(;P>0&&(U*=256);)q+=this[g+--P]*U;return U*=128,q>=U&&(q-=Math.pow(2,8*v)),q},a.prototype.readInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(P)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(P)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!1,52,8)};function se(S,g,v,C,P,U){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>P||g<U)throw new RangeError('"value" argument is out of bounds');if(v+C>S.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=1,q=0;for(this[v]=g&255;++q<C&&(U*=256);)this[v+q]=g/U&255;return v+C},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=C-1,q=1;for(this[v+U]=g&255;--U>=0&&(q*=256);)this[v+U]=g/q&255;return v+C},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function ue(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,v}function Fe(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v+7]=U,U=U>>8,S[v+6]=U,U=U>>8,S[v+5]=U,U=U>>8,S[v+4]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v+3]=q,q=q>>8,S[v+2]=q,q=q>>8,S[v+1]=q,q=q>>8,S[v]=q,v+8}a.prototype.writeBigUInt64LE=Ke(function(g,v=0){return ue(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ke(function(g,v=0){return Fe(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=0,q=1,le=0;for(this[v]=g&255;++U<C&&(q*=256);)g<0&&le===0&&this[v+U-1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=C-1,q=1,le=0;for(this[v+U]=g&255;--U>=0&&(q*=256);)g<0&&le===0&&this[v+U+1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ke(function(g,v=0){return ue(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ke(function(g,v=0){return Fe(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(S,g,v,C,P,U){if(v+C>S.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function re(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,4),n.write(S,g,v,C,23,4),v+4}a.prototype.writeFloatLE=function(g,v,C){return re(this,g,v,!0,C)},a.prototype.writeFloatBE=function(g,v,C){return re(this,g,v,!1,C)};function Pe(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,8),n.write(S,g,v,C,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,C){return Pe(this,g,v,!0,C)},a.prototype.writeDoubleBE=function(g,v,C){return Pe(this,g,v,!1,C)},a.prototype.copy=function(g,v,C,P){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!P&&P!==0&&(P=this.length),v>=g.length&&(v=g.length),v||(v=0),P>0&&P<C&&(P=C),P===C||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),g.length-v<P-C&&(P=g.length-v+C);const U=P-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,P):Uint8Array.prototype.set.call(g,this.subarray(C,P),v),U},a.prototype.fill=function(g,v,C,P){if(typeof g=="string"){if(typeof v=="string"?(P=v,v=0,C=this.length):typeof C=="string"&&(P=C,C=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(g.length===1){const q=g.charCodeAt(0);(P==="utf8"&&q<128||P==="latin1")&&(g=q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<C)throw new RangeError("Out of range index");if(C<=v)return this;v=v>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let U;if(typeof g=="number")for(U=v;U<C;++U)this[U]=g;else{const q=a.isBuffer(g)?g:a.from(g,P),le=q.length;if(le===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(U=0;U<C-v;++U)this[U+v]=q[U%le]}return this};const Ae={};function st(S,g,v){Ae[S]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(S,g){return`The "${S}" argument must be of type number. Received type ${typeof g}`},TypeError),st("ERR_OUT_OF_RANGE",function(S,g,v){let C=`The value of "${S}" is out of range.`,P=v;return Number.isInteger(v)&&Math.abs(v)>2**32?P=ut(String(v)):typeof v=="bigint"&&(P=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(P=ut(P)),P+="n"),C+=` It must be ${g}. Received ${P}`,C},RangeError);function ut(S){let g="",v=S.length;const C=S[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${S.slice(v-3,v)}${g}`;return`${S.slice(0,v)}${g}`}function Et(S,g,v){Ye(g,"offset"),(S[g]===void 0||S[g+v]===void 0)&&je(g,S.length-(v+1))}function te(S,g,v,C,P,U){if(S>v||S<g){const q=typeof g=="bigint"?"n":"";let le;throw U>3?g===0||g===BigInt(0)?le=`>= 0${q} and < 2${q} ** ${(U+1)*8}${q}`:le=`>= -(2${q} ** ${(U+1)*8-1}${q}) and < 2 ** ${(U+1)*8-1}${q}`:le=`>= ${g}${q} and <= ${v}${q}`,new Ae.ERR_OUT_OF_RANGE("value",le,S)}Et(C,P,U)}function Ye(S,g){if(typeof S!="number")throw new Ae.ERR_INVALID_ARG_TYPE(g,"number",S)}function je(S,g,v){throw Math.floor(S)!==S?(Ye(S,v),new Ae.ERR_OUT_OF_RANGE(v||"offset","an integer",S)):g<0?new Ae.ERR_BUFFER_OUT_OF_BOUNDS:new Ae.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,S)}const bt=/[^+/0-9A-Za-z-_]/g;function Gt(S){if(S=S.split("=")[0],S=S.trim().replace(bt,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function Rt(S,g){g=g||1/0;let v;const C=S.length;let P=null;const U=[];for(let q=0;q<C;++q){if(v=S.charCodeAt(q),v>55295&&v<57344){if(!P){if(v>56319){(g-=3)>-1&&U.push(239,191,189);continue}else if(q+1===C){(g-=3)>-1&&U.push(239,191,189);continue}P=v;continue}if(v<56320){(g-=3)>-1&&U.push(239,191,189),P=v;continue}v=(P-55296<<10|v-56320)+65536}else P&&(g-=3)>-1&&U.push(239,191,189);if(P=null,v<128){if((g-=1)<0)break;U.push(v)}else if(v<2048){if((g-=2)<0)break;U.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;U.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;U.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return U}function mt(S){const g=[];for(let v=0;v<S.length;++v)g.push(S.charCodeAt(v)&255);return g}function Tr(S,g){let v,C,P;const U=[];for(let q=0;q<S.length&&!((g-=2)<0);++q)v=S.charCodeAt(q),C=v>>8,P=v%256,U.push(P),U.push(C);return U}function wt(S){return t.toByteArray(Gt(S))}function gt(S,g,v,C){let P;for(P=0;P<C&&!(P+v>=g.length||P>=S.length);++P)g[P+v]=S[P];return P}function He(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function St(S){return S!==S}const nt=function(){const S="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let P=0;P<16;++P)g[C+P]=S[v]+S[P]}return g}();function Ke(S){return typeof BigInt>"u"?xr:S}function xr(){throw new Error("BigInt not supported")}}(As)),As}(function(e,t){(function(n,r){e.exports=r(Q_(),cE(),hE(),Vd(),EE,UE(),jE())})(ce,function(n,r,o,i,s,a,u){return function(){var f={809:function(l){l.exports=n},30:function(l){l.exports=r},36:function(l){l.exports=o},300:function(l){l.exports=i},408:function(l){l.exports=u},25:function(l){l.exports=s},130:function(l){l.exports=a}},c={};function h(l){var p=c[l];if(p!==void 0)return p.exports;var m=c[l]={exports:{}};return f[l](m,m.exports,h),m.exports}h.n=function(l){var p=l&&l.__esModule?function(){return l.default}:function(){return l};return h.d(p,{a:p}),p},h.d=function(l,p){for(var m in p)h.o(p,m)&&!h.o(l,m)&&Object.defineProperty(l,m,{enumerable:!0,get:p[m]})},h.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)},h.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return M},auth:function(){return K},buildAnswer:function(){return bg},buildCarouselCard:function(){return Eg},buildQuestion:function(){return Be},carouselCards:function(){return _n},contentInteraction:function(){return Ke},decodeBase64:function(){return Sg},default:function(){return Tg},editorialPages:function(){return j},features:function(){return v},getEntries:function(){return l.getEntries},getEntry:function(){return l.getEntry},management:function(){return Ar},payments:function(){return Nr},people:function(){return Pt},peopleEngagement:function(){return fr},qaQuestions:function(){return Xe},reportError:function(){return p.reportError},search:function(){return yn}});var l=h(809),p=h(30),m=h(36),E={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:T,LOCALHOST:_,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=E,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:B}}=E;let G={emailIds:{}};var W=h(300),V=h.n(W);const H=async I=>{try{const{message:k,response:L,request:$}=I;let ee=k;return L?ee+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:$&&(ee+=" - The request was made but no response was received"),console.warn(ee),await(0,p.reportError)(new Error(ee)),ee}catch(k){return console.warn(`Cannot handle error: ${k.message}`),k.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:oe,CERTIFICATES:Q}}}}=E;var M={certificates:{create:async(I,k)=>{let L=[];try{const{data:$}=await V().post(`${Y}${oe}/${I}${Q}`,k);$&&(L=$)}catch($){await H($)}return L}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:Z,USERS:de}}},USERS:{MYSELF:X}}=E;var K={userPassword:{update:async I=>{let k=null;try{k=await V().put(`${z}${de}/${X}${Z}`,I)}catch(L){k={message:(((L||{}).response||{}).data||{}).message},await H(L)}return k}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{ANSWERS:ue,QUESTIONS:Fe,LIKES:J}}}}=E,re=`${se}${Fe}`;var Pe={create:async({questionSlug:I},k)=>{try{await V().post(`${re}/${encodeURIComponent(I)}${ue}`,k)}catch(L){const $=await H(L);throw new Error($)}},remove:async({questionSlug:I,answerSlug:k})=>{try{await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`)}catch(L){const $=await H(L);throw new Error($)}},update:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().put(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`,L)}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`,L)}catch($){const ee=await H($);throw new Error(ee)}},unlike:async({questionSlug:I,answerSlug:k})=>{try{return await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ae,ENDPOINTS:{QUESTIONS:st}}}}=E,ut=`${Ae}${st}`;var Et={create:async I=>{try{return await V().post(ut,I)}catch(k){const L=await H(k);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await V().delete(`${ut}/${encodeURIComponent(I)}`)}catch(k){const L=await H(k);throw new Error(L)}},update:async({questionSlug:I},k)=>{try{return await V().put(`${ut}/${encodeURIComponent(I)}`,k)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:te,ENDPOINTS:{REPLIES:Ye,ANSWERS:je,QUESTIONS:bt,LIKES:Gt}}}}=E,Rt=`${te}${bt}`,mt=({questionSlug:I,answerSlug:k,replySlug:L},$=!1)=>{let ee=`${Rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(k)}${Ye}`;return L&&(ee=`${ee}/${encodeURIComponent(L)}`,$&&(ee=`${ee}${Gt}`)),ee};var Tr={create:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(mt({questionSlug:I,answerSlug:k}),L)}catch($){const ee=await H($);throw new Error(ee)}},update:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{return await V().put(mt({questionSlug:I,answerSlug:k,replySlug:L}),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},remove:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L}))}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{await V().post(mt({questionSlug:I,answerSlug:k,replySlug:L},!0),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},unlike:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L},!0))}catch($){const ee=await H($);throw new Error(ee)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:He,LIKES:St}}}}=E,nt=`${wt}${gt}`;var Ke={answers:Pe,questions:Et,replies:Tr,likes:{create:async(I,k)=>{try{return await V().post(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}},remove:async(I,k)=>{try{return await V().delete(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}}}};const{APIS:{FEATURES_API:{BASE_URL:xr,ENDPOINTS:{FLAGS:S}}}}=E,g=`${xr}${S}`;var v={flags:{read:async I=>{let k=null;try{const{data:L}=await V().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(k=L)}catch(L){await H(L)}return k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:P}}}}=E;var U={create:async I=>{try{await V().post(`${C}${P}`,I)}catch(k){throw await H(k),k}},read:async I=>{let k=null;try{({data:k}=await V().get(`${C}${P}/${encodeURIComponent(I)}`))}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${C}${P}/${encodeURIComponent(I)}`,k)}catch(L){throw await H(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:le}}}}=E;var we={create:async I=>{try{await V().post(`${q}${le}`,I)}catch(k){throw await H(k),k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Se,ENDPOINTS:{EVENT_REGISTRATIONS:Te}}}}=E;var he={create:async I=>{try{await V().post(`${Se}${Te}`,I)}catch(k){const L=await H(k);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:lt,ENDPOINTS:{LOGINS:ar,LOGIN_PASSWORDLESS:Or}}}}=E,Wt=`${lt}${ar}`;var Ar={accounts:U,bulkEnrolments:we,eventRegistrations:he,passwordless:{update:async I=>{try{await V().put(`${Wt}/${encodeURIComponent(I)}${Or}`)}catch(k){throw await H(k),k}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Cr}}}}=E,Rr=`${Vt}${Cr}`;var Nr={products:{list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Rr,L);$&&$.length&&(k=$)}catch($){await H($)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{BULK_ENROLMENTS:an}}}}=E;var Tt={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Nt}${an}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}},Dn=h(25);const{OK:$n,MULTIPLE_CHOICES:jn,NOT_FOUND:sn,FORBIDDEN:Pr}=Dn.StatusCodes,Ue=I=>I>=$n&&I<jn||I===Pr||I===sn,{APIS:{PEOPLE_API:{BASE_URL_V2:Ir,ENDPOINTS:{USERS:Lr}}}}=E,zt=async I=>{let k=null;try{const{data:L}=await V().get(`${Ir}${Lr}/${encodeURIComponent(I)}`,{validateStatus:Ue});L&&L.id&&(k=L)}catch(L){await H(L)}return k},cn=async I=>{let k=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(ee=>`ids=${encodeURIComponent(ee)}`).join("&"),$=await V().get(`${Ir}${Lr}?${L}`,{validateStatus:Ue});$&&$.length&&(k=$)}catch(L){await H(L)}return k};var Hn={read:zt,update:async(I,k)=>{let L=!1;try{const{data:$}=await V().put(`${Ir}${Lr}/${encodeURIComponent(I)}`,k);L=!(!$||!$.id)}catch($){await H($)}return L},list:cn};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:qn,USER_LIKES:Gn}}},USERS:{MYSELF:Wn}}=E,Vn=`${qe}${qn}/${Wn}${Gn}`,Mr=async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Vn,L);$&&$.length&&(k=$)}catch($){await H($)}return k};var et={list:Mr},zn={authors:{readQuestionAuthors:async(I,k,L)=>{try{if(I.author=await zt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((ee,xe)=>new Date(xe.updatedAt)-new Date(ee.updatedAt)),I.totalAnswers=I.answers.length;let $=I.answers;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.answers.slice(ee,ee+L.limit)}for(let ee of $){ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Mr({contentType:E.CONTENTFUL.ANSWERS.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}I.answers=$}else I.answers||(I.answers=[]);return I}catch($){throw await H($),new Error(`Cannot read authors for question: ${$.message}`)}},readAuthors:async(I=[])=>{let k=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await zt(I[0]);L&&k.push(L)}else if(I&&I.length>1){const L=await cn(I);L&&L.length>0&&(k=L)}}catch(L){throw await H(L),new Error(`Cannot read authors: ${L.message}`)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL:Yn,ENDPOINTS:{REGISTRATIONS:Kn}}}}=E;var Qn={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Yn}${Kn}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Xn,ENDPOINTS:{USERS:sr,USER_COURSES:un}}},USERS:{MYSELF:cr}}=E,ct=`${Xn}${sr}/${cr}${un}`;var kr={create:async I=>{try{await V().post(ct,I)}catch(k){await H(k)}},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ct,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${ct}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Jn,ENDPOINTS:{USERS:Zn,USER_EVENTS:ei}}},USERS:{MYSELF:ti}}=E,ri=`${Jn}${Zn}/${ti}${ei}`;var ur={list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ri,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Br,ENDPOINTS:{USERS:Yt,USER_LESSONS:ln}}},USERS:{MYSELF:fn}}=E,dn=`${Br}${Yt}/${fn}${ln}`;var ni={create:async I=>{let k=null;try{k=await V().post(dn,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(dn,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ii,ENDPOINTS:{USERS:oi,USER_PRODUCTS:Fr}}},USERS:{MYSELF:ai}}=E,Ur=`${ii}${oi}/${ai}${Fr}`;var Kt={create:async I=>{let k=null;try{k=await V().post(Ur,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Ur,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${Ur}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ft,ENDPOINTS:{USERS:xt,USER_RATINGS:Ot}}},USERS:{MYSELF:si}}=E,dt=`${ft}${xt}/${si}${Ot}`;var Pt={bulkEnrolments:Tt,handlers:zn,registrations:Qn,users:Hn,userCourses:kr,userEvents:ur,userLessons:ni,userLikes:et,userProducts:Kt,userRatings:{create:async I=>{let k=null;try{const{data:L}=await V().post(dt,I);L!=null&&L.id&&(k=L)}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${dt}/${I}`,k)}catch(L){await H(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ci,ENDPOINTS:{ENQUIRY_EMAILS:ui}}}}=E;var li={create:async I=>{let k=null;try{const{data:L}=await V().post(`${ci}${ui}`,I);L&&(k=L)}catch(L){await H(L)}return k}},hn={forms:{sendEnquiryEmails:async I=>{let k=null;try{const{emailIds:L}=G;k=await fr.emails.create({...L,...I})}catch(L){await H(L)}return k}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Qe,ENDPOINTS:{USERS:pn,USER_PROPERTIES:mn}}},USERS:{MYSELF:lr}}=E;var fr={emails:li,handlers:hn,userProperties:{update:async(I,k)=>{try{await V().put(`${Qe}${pn}/${lr}${mn}/${I}`,k)}catch(L){await H(L)}}}},dr=h(130);const{APIS:{SEARCH_API:{BASE_URL:fi,ENDPOINTS:{SEARCH:gn}}}}=E,Dr=`${fi}${gn}`;var yn={ask:async I=>{try{let k=null;const{data:L}=await V().get(Dr,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(k=L),k}catch(k){const L=await H(k);throw new Error(L)}},stream:(I,k,L)=>{const $=(0,dr.io)(void 0,{path:"/api/search-api/web-sockets"});function ee(){$.emit("search",{question:I})}function xe(ke){L(ke),Ie(),$.disconnect()}function Ie(){$.off("connect",ee),$.off("update",k),$.off("result",xe)}return $.on("connect",ee),$.on("update",k),$.on("result",xe),Ie}};const{CONTENTFUL:yt}=E,{CARD_TYPES:$r}=yt.CAROUSELS;var _n={read:async(I,k)=>{try{if(!k||!k.sys||!k.sys.id)throw new Error("Invalid link to card");if(!I||!$r[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:$}=$r[I];return await(0,l.getEntry)({content_type:I,"sys.id":k.sys.id,include:L,select:$},{assetDetails:!0})}catch(L){throw await H(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:di}=E,{INCLUDE:y,SELECT:x,TYPE:R}=di.EDITORIAL_PAGES;var j={read:async I=>{try{return await(0,l.getEntry)({content_type:R,"fields.slug":I,include:y,select:x})}catch(k){throw await H(k),new Error(`Cannot read editorial page: ${k.message}`)}}};const{CONTENTFUL:fe}=E,{TYPE:ae,ORDER:pe,SELECT:me,SKIP:Me,LIMIT:be,INCLUDE:Ge}=fe.QUESTIONS;var Xe={read:async I=>{try{return await(0,l.getEntry)({content_type:ae,"fields.slug":I,include:2,select:me})}catch(k){throw await H(k),new Error(`Cannot read question: ${k.message}`)}},list:async(I={})=>{try{return await(0,l.getEntries)({content_type:ae,include:Ge,limit:be,order:pe,select:me,skip:Me,...I})}catch(k){throw await H(k),new Error(`Cannot list questions: ${k.message}`)}}},Be=async(I,k,L={ignoreAnswersAuthors:!1})=>{try{let $={};return $=await Xe.read(I),$=await Pt.handlers.authors.readQuestionAuthors($,k,L),$}catch($){throw await H($),new Error(`Cannot build question: ${$.message}`)}};const{ARTICLES:{TYPE:We},COURSES:{TYPE:$e},EVENTS:{TYPE:It},LISTS:{TYPE:At},QUESTIONS:{TYPE:Qt},LEARNING_HUB:{TYPE:ro}}=E.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,hr={[We]:async I=>{const{authorIds:k,authorTag:L,image:$,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}=I,ht=await Pt.handlers.authors.readAuthors(k),Mt=ht&&ht.length?ht:L?[L]:null;return{banner:Lt($),contributors:Mt,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}},[$e]:async(I,k)=>{const{banner:L,freeCourse:$,partnershipDetails:ee,slug:xe,title:Ie,registered:ke}=I,ht={banner:Lt(L),slug:xe,title:Ie,pill:$?"free":"premium",registered:!!ke};if(ee){const{partners:Mt}=ee;ht.partner=Mt&&Mt.length&&ee.partners[0]}if(ke===void 0&&k){const[Mt]=await Pt.userProducts.list({courseSlug:xe,isEnrolled:!0,scope:"active"});ht.registered=!!Mt}return ht},[It]:async(I,k)=>{const{bannerImage:L,defaultStartDate:$,isEventOngoing:ee,slug:xe,speakers:Ie,title:ke,registered:ht}=I,Mt=new Date($),xg=!!Mt&&Mt<new Date;if(Ie&&Ie.length)for(const no of Ie)no.image=(ua=no.image)&&ua.url?`${ua.url}?w=100&h=100&fit=thumb&f=center`:null;var ua;const fu={banner:Lt(L),dateHasPassed:xg,title:ke,slug:xe,isOngoingEvent:ee,contributors:Ie,startDate:Mt,registered:!!ht};if(ht===void 0&&k){const[no]=await Pt.userEvents.list({eventSlug:xe});fu.registered=!!no}return fu},[At]:async I=>{const{hero:k,slug:L,title:$}=I;return{banner:Lt(k),slug:L,title:$}},[Qt]:async I=>{const{answers:k,authorId:L,createdAt:$,slug:ee,title:xe}=I;let Ie=null;if(L){const ke=await Pt.users.read(L);ke&&(Ie=ke)}return{answers:k&&k.length?k.length:0,contributors:Ie?[Ie]:[],createdAt:$,slug:ee,title:xe}},[ro]:I=>{const{bannerSection:k,customLabel:L,slug:$,title:ee}=I;return{banner:Lt(k.image),slug:$,title:ee,customLabel:L}},people:I=>{const{id:k,name:L,jobTitle:$,location:ee,image:xe}=I;return{profile:xe,slug:k,title:L,text:$,secondaryText:ee}}};var Eg=async({contentType:I,...k}={},L)=>{try{if(!hr[I])throw new Error("Content type not supported");if(typeof hr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&k.sys&&k.sys.type&&k.sys.type==="Link"&&(k=await _n.read(I,k)),{contentType:I,...await hr[I](k,L)}}catch($){throw await H($),new Error(`Cannot build carousel card: ${$.message}`)}},bg=async(I,k,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((ee,xe)=>new Date(ee.createdAt)-new Date(xe.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let $=I.replies;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.replies.slice(ee,ee+L.limit)}for(const ee of $){if(ee.authorId===I.authorId){ee.author=I.author,ee.userLiked=!1;continue}ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Mr({contentType:E.CONTENTFUL.REPLIES.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}return I.replies=$,I}catch($){throw await H($),new Error(`Cannot build replies for answer: ${$.message}`)}},wg=h(408);const Sg=I=>I&&wg.Buffer.from(I,"base64").toString("ascii");function Tg({contentContext:I=null,errorsContext:k=null,gtmContext:L=null,origin:$}){try{const ee=(xe=>{let Ie=null;xe?Ie=xe:typeof window<"u"&&(Ie=window.origin||window.location.origin),Ie||new Error("Cannot select environment: Website not defined");let ke=null;const ht=Ie.match(b);return ht?ke=ht[1].split(A)[0]:Ie===T?ke=w:Ie.includes(_)&&(ke=N),ke||new Error(`Cannot select environment: No rule for website ${Ie}`),ke})($);return I&&(0,l.setContext)(Object.assign({},I,{environment:ee})),k&&(0,p.setContext)(Object.assign({},k,{environment:ee})),L&&((0,m.setContext)(Object.assign({},L,{environment:ee})),(0,m.setupGTM)()),(({environment:xe})=>{const Ie=(ke=>{if(!ke)throw new Error("Cannot map environment: Environment not defined");if(!F[ke])throw new Error(`Cannot map environment: No mapping found for environment ${ke}`);return F[ke]})(xe);G.emailIds=B[Ie]})(Object.assign({},{environment:ee})),ee}catch(ee){console.warn(`Cannot load SDK: ${ee.message}`)}}}(),d}()})})(Fd);var HE=Fd.exports;const Fi={Off:"off",On:"on",Cookie:"cookie"},qE=e=>{const[t]=Bd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),[s,a]=D.useState(Fi.Off);return D.useEffect(()=>{e&&HE.features.flags.read(e).then(u=>{a(u.featureState),r(null)}).catch(u=>{a(Fi.Off),r(u)})},[e]),D.useEffect(()=>{switch(s){case Fi.Off:i(!1);break;case Fi.On:i(!0);break;case Fi.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:n}};function GE(e,t,n){var r=this,o=D.useRef(null),i=D.useRef(0),s=D.useRef(null),a=D.useRef([]),u=D.useRef(),f=D.useRef(),c=D.useRef(e),h=D.useRef(!0);D.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var l=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,m="maxWait"in n,E=m?Math.max(+n.maxWait||0,t):null;D.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var T=D.useMemo(function(){var _=function(B){var G=a.current,W=u.current;return a.current=u.current=null,i.current=B,f.current=c.current.apply(W,G)},b=function(B,G){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(B):setTimeout(B,G)},A=function(B){if(!h.current)return!1;var G=B-o.current;return!o.current||G>=t||G<0||m&&B-i.current>=E},w=function(B){return s.current=null,p&&a.current?_(B):(a.current=u.current=null,f.current)},N=function B(){var G=Date.now();if(A(G))return w(G);if(h.current){var W=t-(G-o.current),V=m?Math.min(W,E-(G-i.current)):W;b(B,V)}},F=function(){var B=Date.now(),G=A(B);if(a.current=[].slice.call(arguments),u.current=r,o.current=B,G){if(!s.current&&h.current)return i.current=o.current,b(N,t),l?_(o.current):f.current;if(m)return b(N,t),_(o.current)}return s.current||b(N,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=u.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[l,m,t,E,p,d]);return T}function Np(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return GE(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Cs;const Ji=(e=!0,t=!1)=>{if(!e)return;const[n,r]=D.useState(0)||[!1,()=>{}];D.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(Cs),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{r(o())},s=Np(()=>{o()!==n&&(t&&(clearTimeout(Cs),document.body.classList.add("is-resizing"),Cs=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return n},Pp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[o,i]=D.useState({current:0,past:0})||[!1,()=>{}],[s,a]=D.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];D.useEffect(()=>(u(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const u=()=>{const c=window.scrollY,h=o.current,d=c-h,l=d>0?"down":"up";if(i({current:c,past:h}),l==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(n(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(r(),a({scrollUp:!0,scrollDown:!1}))},f=Np(()=>{u()},250);return o},WE=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const n=D.useRef(!1);_r(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=window.location.hash.replace("#",""),o=document.getElementById(r);o&&(o.scrollIntoView(t?{behavior:"smooth"}:null),n.current=!0)}},e)};var Ho={exports:{}};Ho.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Function]",h="[object GeneratorFunction]",d="[object Map]",l="[object Number]",p="[object Object]",m="[object Promise]",E="[object RegExp]",T="[object Set]",_="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",G="[object Int8Array]",W="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",oe="[object Uint16Array]",Q="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Z=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,X={};X[i]=X[s]=X[w]=X[N]=X[a]=X[u]=X[F]=X[B]=X[G]=X[W]=X[V]=X[d]=X[l]=X[p]=X[E]=X[T]=X[_]=X[b]=X[H]=X[Y]=X[oe]=X[Q]=!0,X[f]=X[c]=X[A]=!1;var K=typeof ce=="object"&&ce&&ce.Object===Object&&ce,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=K||se||Function("return this")(),Fe=t&&!t.nodeType&&t,J=Fe&&!0&&e&&!e.nodeType&&e,re=J&&J.exports===Fe;function Pe(y,x){return y.set(x[0],x[1]),y}function Ae(y,x){return y.add(x),y}function st(y,x){for(var R=-1,j=y?y.length:0;++R<j&&x(y[R],R,y)!==!1;);return y}function ut(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Et(y,x,R,j){var fe=-1,ae=y?y.length:0;for(j&&ae&&(R=y[++fe]);++fe<ae;)R=x(R,y[fe],fe,y);return R}function te(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Ye(y,x){return y==null?void 0:y[x]}function je(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function bt(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function Gt(y,x){return function(R){return y(x(R))}}function Rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var mt=Array.prototype,Tr=Function.prototype,wt=Object.prototype,gt=ue["__core-js_shared__"],He=function(){var y=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=Tr.toString,nt=wt.hasOwnProperty,Ke=wt.toString,xr=RegExp("^"+St.call(nt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=re?ue.Buffer:void 0,g=ue.Symbol,v=ue.Uint8Array,C=Gt(Object.getPrototypeOf,Object),P=Object.create,U=wt.propertyIsEnumerable,q=mt.splice,le=Object.getOwnPropertySymbols,we=S?S.isBuffer:void 0,Se=Gt(Object.keys,Object),Te=ft(ue,"DataView"),he=ft(ue,"Map"),lt=ft(ue,"Promise"),ar=ft(ue,"Set"),Or=ft(ue,"WeakMap"),Wt=ft(Object,"create"),Ar=Qe(Te),Vt=Qe(he),Cr=Qe(lt),Rr=Qe(ar),Nr=Qe(Or),Nt=g?g.prototype:void 0,an=Nt?Nt.valueOf:void 0;function Tt(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Dn(){this.__data__=Wt?Wt(null):{}}function $n(y){return this.has(y)&&delete this.__data__[y]}function jn(y){var x=this.__data__;if(Wt){var R=x[y];return R===r?void 0:R}return nt.call(x,y)?x[y]:void 0}function sn(y){var x=this.__data__;return Wt?x[y]!==void 0:nt.call(x,y)}function Pr(y,x){var R=this.__data__;return R[y]=Wt&&x===void 0?r:x,this}Tt.prototype.clear=Dn,Tt.prototype.delete=$n,Tt.prototype.get=jn,Tt.prototype.has=sn,Tt.prototype.set=Pr;function Ue(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Ir(){this.__data__=[]}function Lr(y){var x=this.__data__,R=cr(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():q.call(x,R,1),!0}function zt(y){var x=this.__data__,R=cr(x,y);return R<0?void 0:x[R][1]}function cn(y){return cr(this.__data__,y)>-1}function Hn(y,x){var R=this.__data__,j=cr(R,y);return j<0?R.push([y,x]):R[j][1]=x,this}Ue.prototype.clear=Ir,Ue.prototype.delete=Lr,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__={hash:new Tt,map:new(he||Ue),string:new Tt}}function Gn(y){return Kt(this,y).delete(y)}function Wn(y){return Kt(this,y).get(y)}function Vn(y){return Kt(this,y).has(y)}function Mr(y,x){return Kt(this,y).set(y,x),this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Mr;function et(y){this.__data__=new Ue(y)}function zn(){this.__data__=new Ue}function Yn(y){return this.__data__.delete(y)}function Kn(y){return this.__data__.get(y)}function Qn(y){return this.__data__.has(y)}function Xn(y,x){var R=this.__data__;if(R instanceof Ue){var j=R.__data__;if(!he||j.length<n-1)return j.push([y,x]),this;R=this.__data__=new qe(j)}return R.set(y,x),this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y,x){var R=fr(y)||lr(y)?te(y.length,String):[],j=R.length,fe=!!j;for(var ae in y)(x||nt.call(y,ae))&&!(fe&&(ae=="length"||ci(ae,j)))&&R.push(ae);return R}function un(y,x,R){var j=y[x];(!(nt.call(y,x)&&mn(j,R))||R===void 0&&!(x in y))&&(y[x]=R)}function cr(y,x){for(var R=y.length;R--;)if(mn(y[R][0],x))return R;return-1}function ct(y,x){return y&&Fr(x,vn(x),y)}function kr(y,x,R,j,fe,ae,pe){var me;if(j&&(me=ae?j(y,fe,ae,pe):j(y)),me!==void 0)return me;if(!yt(y))return y;var Me=fr(y);if(Me){if(me=si(y),!x)return oi(y,me)}else{var be=Ot(y),Ge=be==c||be==h;if(gn(y))return ur(y,x);if(be==p||be==i||Ge&&!ae){if(je(y))return ae?y:{};if(me=dt(Ge?{}:y),!x)return ai(y,ct(me,y))}else{if(!X[be])return ae?y:{};me=Pt(y,be,kr,x)}}pe||(pe=new et);var Xe=pe.get(y);if(Xe)return Xe;if(pe.set(y,me),!Me)var Be=R?Ur(y):vn(y);return st(Be||y,function(We,$e){Be&&($e=We,We=y[$e]),un(me,$e,kr(We,x,R,j,$e,y,pe))}),me}function Jn(y){return yt(y)?P(y):{}}function Zn(y,x,R){var j=x(y);return fr(y)?j:ut(j,R(y))}function ei(y){return Ke.call(y)}function ti(y){if(!yt(y)||li(y))return!1;var x=Dr(y)||je(y)?xr:Z;return x.test(Qe(y))}function ri(y){if(!hn(y))return Se(y);var x=[];for(var R in Object(y))nt.call(y,R)&&R!="constructor"&&x.push(R);return x}function ur(y,x){if(x)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function Br(y){var x=new y.constructor(y.byteLength);return new v(x).set(new v(y)),x}function Yt(y,x){var R=x?Br(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function ln(y,x,R){var j=x?R(bt(y),!0):bt(y);return Et(j,Pe,new y.constructor)}function fn(y){var x=new y.constructor(y.source,z.exec(y));return x.lastIndex=y.lastIndex,x}function dn(y,x,R){var j=x?R(Rt(y),!0):Rt(y);return Et(j,Ae,new y.constructor)}function ni(y){return an?Object(an.call(y)):{}}function ii(y,x){var R=x?Br(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function oi(y,x){var R=-1,j=y.length;for(x||(x=Array(j));++R<j;)x[R]=y[R];return x}function Fr(y,x,R,j){R||(R={});for(var fe=-1,ae=x.length;++fe<ae;){var pe=x[fe],me=j?j(R[pe],y[pe],pe,R,y):void 0;un(R,pe,me===void 0?y[pe]:me)}return R}function ai(y,x){return Fr(y,xt(y),x)}function Ur(y){return Zn(y,vn,xt)}function Kt(y,x){var R=y.__data__;return ui(x)?R[typeof x=="string"?"string":"hash"]:R.map}function ft(y,x){var R=Ye(y,x);return ti(R)?R:void 0}var xt=le?Gt(le,Object):_n,Ot=ei;(Te&&Ot(new Te(new ArrayBuffer(1)))!=N||he&&Ot(new he)!=d||lt&&Ot(lt.resolve())!=m||ar&&Ot(new ar)!=T||Or&&Ot(new Or)!=A)&&(Ot=function(y){var x=Ke.call(y),R=x==p?y.constructor:void 0,j=R?Qe(R):void 0;if(j)switch(j){case Ar:return N;case Vt:return d;case Cr:return m;case Rr:return T;case Nr:return A}return x});function si(y){var x=y.length,R=y.constructor(x);return x&&typeof y[0]=="string"&&nt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function dt(y){return typeof y.constructor=="function"&&!hn(y)?Jn(C(y)):{}}function Pt(y,x,R,j){var fe=y.constructor;switch(x){case w:return Br(y);case a:case u:return new fe(+y);case N:return Yt(y,j);case F:case B:case G:case W:case V:case H:case Y:case oe:case Q:return ii(y,j);case d:return ln(y,j,R);case l:case _:return new fe(y);case E:return fn(y);case T:return dn(y,j,R);case b:return ni(y)}}function ci(y,x){return x=x??o,!!x&&(typeof y=="number"||de.test(y))&&y>-1&&y%1==0&&y<x}function ui(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function li(y){return!!He&&He in y}function hn(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||wt;return y===R}function Qe(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y){return kr(y,!0,!0)}function mn(y,x){return y===x||y!==y&&x!==x}function lr(y){return fi(y)&&nt.call(y,"callee")&&(!U.call(y,"callee")||Ke.call(y)==i)}var fr=Array.isArray;function dr(y){return y!=null&&yn(y.length)&&!Dr(y)}function fi(y){return $r(y)&&dr(y)}var gn=we||di;function Dr(y){var x=yt(y)?Ke.call(y):"";return x==c||x==h}function yn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function $r(y){return!!y&&typeof y=="object"}function vn(y){return dr(y)?sr(y):ri(y)}function _n(){return[]}function di(){return!1}e.exports=pn})(Ho,Ho.exports);var VE=Ho.exports;const zE=jt(VE);var YE="Expected a function",Ip="__lodash_hash_undefined__",Lp=1/0,KE=9007199254740991,QE="[object Function]",XE="[object GeneratorFunction]",JE="[object Symbol]",ZE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eb=/^\w*$/,tb=/^\./,rb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nb=/[\\^$.*+?()[\]{}|]/g,ib=/\\(\\)?/g,ob=/^\[object .+?Constructor\]$/,ab=/^(?:0|[1-9]\d*)$/,sb=typeof ce=="object"&&ce&&ce.Object===Object&&ce,cb=typeof self=="object"&&self&&self.Object===Object&&self,qc=sb||cb||Function("return this")();function ub(e,t){return e==null?void 0:e[t]}function lb(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var fb=Array.prototype,db=Function.prototype,Mp=Object.prototype,Rs=qc["__core-js_shared__"],Gf=function(){var e=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kp=db.toString,ea=Mp.hasOwnProperty,Bp=Mp.toString,hb=RegExp("^"+kp.call(ea).replace(nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wf=qc.Symbol,pb=fb.splice,mb=Fp(qc,"Map"),Wi=Fp(Object,"create"),Vf=Wf?Wf.prototype:void 0,zf=Vf?Vf.toString:void 0;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function gb(){this.__data__=Wi?Wi(null):{}}function yb(e){return this.has(e)&&delete this.__data__[e]}function vb(e){var t=this.__data__;if(Wi){var n=t[e];return n===Ip?void 0:n}return ea.call(t,e)?t[e]:void 0}function _b(e){var t=this.__data__;return Wi?t[e]!==void 0:ea.call(t,e)}function Eb(e,t){var n=this.__data__;return n[e]=Wi&&t===void 0?Ip:t,this}Zr.prototype.clear=gb;Zr.prototype.delete=yb;Zr.prototype.get=vb;Zr.prototype.has=_b;Zr.prototype.set=Eb;function Bn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function bb(){this.__data__=[]}function wb(e){var t=this.__data__,n=ta(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pb.call(t,n,1),!0}function Sb(e){var t=this.__data__,n=ta(t,e);return n<0?void 0:t[n][1]}function Tb(e){return ta(this.__data__,e)>-1}function xb(e,t){var n=this.__data__,r=ta(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Bn.prototype.clear=bb;Bn.prototype.delete=wb;Bn.prototype.get=Sb;Bn.prototype.has=Tb;Bn.prototype.set=xb;function rn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ob(){this.__data__={hash:new Zr,map:new(mb||Bn),string:new Zr}}function Ab(e){return ra(this,e).delete(e)}function Cb(e){return ra(this,e).get(e)}function Rb(e){return ra(this,e).has(e)}function Nb(e,t){return ra(this,e).set(e,t),this}rn.prototype.clear=Ob;rn.prototype.delete=Ab;rn.prototype.get=Cb;rn.prototype.has=Rb;rn.prototype.set=Nb;function Pb(e,t,n){var r=e[t];(!(ea.call(e,t)&&Up(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ta(e,t){for(var n=e.length;n--;)if(Up(e[n][0],t))return n;return-1}function Ib(e){if(!qo(e)||Db(e))return!1;var t=qb(e)||lb(e)?hb:ob;return t.test(Hb(e))}function Lb(e,t,n,r){if(!qo(e))return e;t=Fb(t,e)?[t]:kb(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var u=jb(t[o]),f=n;if(o!=s){var c=a[u];f=r?r(c,u,a):void 0,f===void 0&&(f=qo(c)?c:Bb(t[o+1])?[]:{})}Pb(a,u,f),a=a[u]}return e}function Mb(e){if(typeof e=="string")return e;if(Wc(e))return zf?zf.call(e):"";var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function kb(e){return Dp(e)?e:$b(e)}function ra(e,t){var n=e.__data__;return Ub(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fp(e,t){var n=ub(e,t);return Ib(n)?n:void 0}function Bb(e,t){return t=t??KE,!!t&&(typeof e=="number"||ab.test(e))&&e>-1&&e%1==0&&e<t}function Fb(e,t){if(Dp(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Wc(e)?!0:eb.test(e)||!ZE.test(e)||t!=null&&e in Object(t)}function Ub(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Db(e){return!!Gf&&Gf in e}var $b=Gc(function(e){e=Wb(e);var t=[];return tb.test(e)&&t.push(""),e.replace(rb,function(n,r,o,i){t.push(o?i.replace(ib,"$1"):r||n)}),t});function jb(e){if(typeof e=="string"||Wc(e))return e;var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function Hb(e){if(e!=null){try{return kp.call(e)}catch{}try{return e+""}catch{}}return""}function Gc(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(YE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Gc.Cache||rn),n}Gc.Cache=rn;function Up(e,t){return e===t||e!==e&&t!==t}var Dp=Array.isArray;function qb(e){var t=qo(e)?Bp.call(e):"";return t==QE||t==XE}function qo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Gb(e){return!!e&&typeof e=="object"}function Wc(e){return typeof e=="symbol"||Gb(e)&&Bp.call(e)==JE}function Wb(e){return e==null?"":Mb(e)}function Vb(e,t,n){return e==null?e:Lb(e,t,n)}var zb=Vb;const Yb=jt(zb),Kb=(e,t)=>{Array.isArray(t)||(t=[t]);const n=zE(e);return t.forEach(({type:r,value:o})=>{Yb(n,r,o)}),n},$p=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},jp=(e,t,n)=>{let r=n.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)r=n[i];else if(e<i)break}return r},Qb=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Xb=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const u=Math.floor(a/7);return u<=52?{path:"weeks",number:u}:{path:"years",number:Math.floor(a/365)}},Jb=e=>new Promise(t=>setTimeout(t,e)),Vc={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
61
+ */var qf;function jE(){return qf||(qf=1,function(e){const t=DE(),n=$E(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=a,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const S=new Uint8Array(1),g={foo:function(){return 42}};return Object.setPrototypeOf(g,Uint8Array.prototype),Object.setPrototypeOf(S,g),S.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(S){if(S>o)throw new RangeError('The value "'+S+'" is invalid for option "size"');const g=new Uint8Array(S);return Object.setPrototypeOf(g,a.prototype),g}function a(S,g,v){if(typeof S=="number"){if(typeof g=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(S)}return u(S,g,v)}a.poolSize=8192;function u(S,g,v){if(typeof S=="string")return d(S,g);if(ArrayBuffer.isView(S))return p(S);if(S==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S);if(He(S,ArrayBuffer)||S&&He(S.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(He(S,SharedArrayBuffer)||S&&He(S.buffer,SharedArrayBuffer)))return m(S,g,v);if(typeof S=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const C=S.valueOf&&S.valueOf();if(C!=null&&C!==S)return a.from(C,g,v);const P=E(S);if(P)return P;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof S[Symbol.toPrimitive]=="function")return a.from(S[Symbol.toPrimitive]("string"),g,v);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof S)}a.from=function(S,g,v){return u(S,g,v)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function f(S){if(typeof S!="number")throw new TypeError('"size" argument must be of type number');if(S<0)throw new RangeError('The value "'+S+'" is invalid for option "size"')}function c(S,g,v){return f(S),S<=0?s(S):g!==void 0?typeof v=="string"?s(S).fill(g,v):s(S).fill(g):s(S)}a.alloc=function(S,g,v){return c(S,g,v)};function h(S){return f(S),s(S<0?0:T(S)|0)}a.allocUnsafe=function(S){return h(S)},a.allocUnsafeSlow=function(S){return h(S)};function d(S,g){if((typeof g!="string"||g==="")&&(g="utf8"),!a.isEncoding(g))throw new TypeError("Unknown encoding: "+g);const v=b(S,g)|0;let C=s(v);const P=C.write(S,g);return P!==v&&(C=C.slice(0,P)),C}function l(S){const g=S.length<0?0:T(S.length)|0,v=s(g);for(let C=0;C<g;C+=1)v[C]=S[C]&255;return v}function p(S){if(He(S,Uint8Array)){const g=new Uint8Array(S);return m(g.buffer,g.byteOffset,g.byteLength)}return l(S)}function m(S,g,v){if(g<0||S.byteLength<g)throw new RangeError('"offset" is outside of buffer bounds');if(S.byteLength<g+(v||0))throw new RangeError('"length" is outside of buffer bounds');let C;return g===void 0&&v===void 0?C=new Uint8Array(S):v===void 0?C=new Uint8Array(S,g):C=new Uint8Array(S,g,v),Object.setPrototypeOf(C,a.prototype),C}function E(S){if(a.isBuffer(S)){const g=T(S.length)|0,v=s(g);return v.length===0||S.copy(v,0,0,g),v}if(S.length!==void 0)return typeof S.length!="number"||St(S.length)?s(0):l(S);if(S.type==="Buffer"&&Array.isArray(S.data))return l(S.data)}function T(S){if(S>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return S|0}function _(S){return+S!=S&&(S=0),a.alloc(+S)}a.isBuffer=function(g){return g!=null&&g._isBuffer===!0&&g!==a.prototype},a.compare=function(g,v){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),He(v,Uint8Array)&&(v=a.from(v,v.offset,v.byteLength)),!a.isBuffer(g)||!a.isBuffer(v))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(g===v)return 0;let C=g.length,P=v.length;for(let U=0,q=Math.min(C,P);U<q;++U)if(g[U]!==v[U]){C=g[U],P=v[U];break}return C<P?-1:P<C?1:0},a.isEncoding=function(g){switch(String(g).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(g,v){if(!Array.isArray(g))throw new TypeError('"list" argument must be an Array of Buffers');if(g.length===0)return a.alloc(0);let C;if(v===void 0)for(v=0,C=0;C<g.length;++C)v+=g[C].length;const P=a.allocUnsafe(v);let U=0;for(C=0;C<g.length;++C){let q=g[C];if(He(q,Uint8Array))U+q.length>P.length?(a.isBuffer(q)||(q=a.from(q)),q.copy(P,U)):Uint8Array.prototype.set.call(P,q,U);else if(a.isBuffer(q))q.copy(P,U);else throw new TypeError('"list" argument must be an Array of Buffers');U+=q.length}return P};function b(S,g){if(a.isBuffer(S))return S.length;if(ArrayBuffer.isView(S)||He(S,ArrayBuffer))return S.byteLength;if(typeof S!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof S);const v=S.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&v===0)return 0;let P=!1;for(;;)switch(g){case"ascii":case"latin1":case"binary":return v;case"utf8":case"utf-8":return Rt(S).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return v*2;case"hex":return v>>>1;case"base64":return wt(S).length;default:if(P)return C?-1:Rt(S).length;g=(""+g).toLowerCase(),P=!0}}a.byteLength=b;function A(S,g,v){let C=!1;if((g===void 0||g<0)&&(g=0),g>this.length||((v===void 0||v>this.length)&&(v=this.length),v<=0)||(v>>>=0,g>>>=0,v<=g))return"";for(S||(S="utf8");;)switch(S){case"hex":return de(this,g,v);case"utf8":case"utf-8":return oe(this,g,v);case"ascii":return z(this,g,v);case"latin1":case"binary":return Z(this,g,v);case"base64":return Y(this,g,v);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,g,v);default:if(C)throw new TypeError("Unknown encoding: "+S);S=(S+"").toLowerCase(),C=!0}}a.prototype._isBuffer=!0;function w(S,g,v){const C=S[g];S[g]=S[v],S[v]=C}a.prototype.swap16=function(){const g=this.length;if(g%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let v=0;v<g;v+=2)w(this,v,v+1);return this},a.prototype.swap32=function(){const g=this.length;if(g%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let v=0;v<g;v+=4)w(this,v,v+3),w(this,v+1,v+2);return this},a.prototype.swap64=function(){const g=this.length;if(g%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let v=0;v<g;v+=8)w(this,v,v+7),w(this,v+1,v+6),w(this,v+2,v+5),w(this,v+3,v+4);return this},a.prototype.toString=function(){const g=this.length;return g===0?"":arguments.length===0?oe(this,0,g):A.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(g){if(!a.isBuffer(g))throw new TypeError("Argument must be a Buffer");return this===g?!0:a.compare(this,g)===0},a.prototype.inspect=function(){let g="";const v=e.INSPECT_MAX_BYTES;return g=this.toString("hex",0,v).replace(/(.{2})/g,"$1 ").trim(),this.length>v&&(g+=" ... "),"<Buffer "+g+">"},r&&(a.prototype[r]=a.prototype.inspect),a.prototype.compare=function(g,v,C,P,U){if(He(g,Uint8Array)&&(g=a.from(g,g.offset,g.byteLength)),!a.isBuffer(g))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof g);if(v===void 0&&(v=0),C===void 0&&(C=g?g.length:0),P===void 0&&(P=0),U===void 0&&(U=this.length),v<0||C>g.length||P<0||U>this.length)throw new RangeError("out of range index");if(P>=U&&v>=C)return 0;if(P>=U)return-1;if(v>=C)return 1;if(v>>>=0,C>>>=0,P>>>=0,U>>>=0,this===g)return 0;let q=U-P,le=C-v;const we=Math.min(q,le),Se=this.slice(P,U),Te=g.slice(v,C);for(let he=0;he<we;++he)if(Se[he]!==Te[he]){q=Se[he],le=Te[he];break}return q<le?-1:le<q?1:0};function N(S,g,v,C,P){if(S.length===0)return-1;if(typeof v=="string"?(C=v,v=0):v>2147483647?v=2147483647:v<-2147483648&&(v=-2147483648),v=+v,St(v)&&(v=P?0:S.length-1),v<0&&(v=S.length+v),v>=S.length){if(P)return-1;v=S.length-1}else if(v<0)if(P)v=0;else return-1;if(typeof g=="string"&&(g=a.from(g,C)),a.isBuffer(g))return g.length===0?-1:F(S,g,v,C,P);if(typeof g=="number")return g=g&255,typeof Uint8Array.prototype.indexOf=="function"?P?Uint8Array.prototype.indexOf.call(S,g,v):Uint8Array.prototype.lastIndexOf.call(S,g,v):F(S,[g],v,C,P);throw new TypeError("val must be string, number or Buffer")}function F(S,g,v,C,P){let U=1,q=S.length,le=g.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(S.length<2||g.length<2)return-1;U=2,q/=2,le/=2,v/=2}function we(Te,he){return U===1?Te[he]:Te.readUInt16BE(he*U)}let Se;if(P){let Te=-1;for(Se=v;Se<q;Se++)if(we(S,Se)===we(g,Te===-1?0:Se-Te)){if(Te===-1&&(Te=Se),Se-Te+1===le)return Te*U}else Te!==-1&&(Se-=Se-Te),Te=-1}else for(v+le>q&&(v=q-le),Se=v;Se>=0;Se--){let Te=!0;for(let he=0;he<le;he++)if(we(S,Se+he)!==we(g,he)){Te=!1;break}if(Te)return Se}return-1}a.prototype.includes=function(g,v,C){return this.indexOf(g,v,C)!==-1},a.prototype.indexOf=function(g,v,C){return N(this,g,v,C,!0)},a.prototype.lastIndexOf=function(g,v,C){return N(this,g,v,C,!1)};function B(S,g,v,C){v=Number(v)||0;const P=S.length-v;C?(C=Number(C),C>P&&(C=P)):C=P;const U=g.length;C>U/2&&(C=U/2);let q;for(q=0;q<C;++q){const le=parseInt(g.substr(q*2,2),16);if(St(le))return q;S[v+q]=le}return q}function G(S,g,v,C){return gt(Rt(g,S.length-v),S,v,C)}function W(S,g,v,C){return gt(mt(g),S,v,C)}function V(S,g,v,C){return gt(wt(g),S,v,C)}function H(S,g,v,C){return gt(Sr(g,S.length-v),S,v,C)}a.prototype.write=function(g,v,C,P){if(v===void 0)P="utf8",C=this.length,v=0;else if(C===void 0&&typeof v=="string")P=v,C=this.length,v=0;else if(isFinite(v))v=v>>>0,isFinite(C)?(C=C>>>0,P===void 0&&(P="utf8")):(P=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const U=this.length-v;if((C===void 0||C>U)&&(C=U),g.length>0&&(C<0||v<0)||v>this.length)throw new RangeError("Attempt to write outside buffer bounds");P||(P="utf8");let q=!1;for(;;)switch(P){case"hex":return B(this,g,v,C);case"utf8":case"utf-8":return G(this,g,v,C);case"ascii":case"latin1":case"binary":return W(this,g,v,C);case"base64":return V(this,g,v,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return H(this,g,v,C);default:if(q)throw new TypeError("Unknown encoding: "+P);P=(""+P).toLowerCase(),q=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Y(S,g,v){return g===0&&v===S.length?t.fromByteArray(S):t.fromByteArray(S.slice(g,v))}function oe(S,g,v){v=Math.min(S.length,v);const C=[];let P=g;for(;P<v;){const U=S[P];let q=null,le=U>239?4:U>223?3:U>191?2:1;if(P+le<=v){let we,Se,Te,he;switch(le){case 1:U<128&&(q=U);break;case 2:we=S[P+1],(we&192)===128&&(he=(U&31)<<6|we&63,he>127&&(q=he));break;case 3:we=S[P+1],Se=S[P+2],(we&192)===128&&(Se&192)===128&&(he=(U&15)<<12|(we&63)<<6|Se&63,he>2047&&(he<55296||he>57343)&&(q=he));break;case 4:we=S[P+1],Se=S[P+2],Te=S[P+3],(we&192)===128&&(Se&192)===128&&(Te&192)===128&&(he=(U&15)<<18|(we&63)<<12|(Se&63)<<6|Te&63,he>65535&&he<1114112&&(q=he))}}q===null?(q=65533,le=1):q>65535&&(q-=65536,C.push(q>>>10&1023|55296),q=56320|q&1023),C.push(q),P+=le}return M(C)}const Q=4096;function M(S){const g=S.length;if(g<=Q)return String.fromCharCode.apply(String,S);let v="",C=0;for(;C<g;)v+=String.fromCharCode.apply(String,S.slice(C,C+=Q));return v}function z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]&127);return C}function Z(S,g,v){let C="";v=Math.min(S.length,v);for(let P=g;P<v;++P)C+=String.fromCharCode(S[P]);return C}function de(S,g,v){const C=S.length;(!g||g<0)&&(g=0),(!v||v<0||v>C)&&(v=C);let P="";for(let U=g;U<v;++U)P+=nt[S[U]];return P}function X(S,g,v){const C=S.slice(g,v);let P="";for(let U=0;U<C.length-1;U+=2)P+=String.fromCharCode(C[U]+C[U+1]*256);return P}a.prototype.slice=function(g,v){const C=this.length;g=~~g,v=v===void 0?C:~~v,g<0?(g+=C,g<0&&(g=0)):g>C&&(g=C),v<0?(v+=C,v<0&&(v=0)):v>C&&(v=C),v<g&&(v=g);const P=this.subarray(g,v);return Object.setPrototypeOf(P,a.prototype),P};function K(S,g,v){if(S%1!==0||S<0)throw new RangeError("offset is not uint");if(S+g>v)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return P},a.prototype.readUintBE=a.prototype.readUIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g+--v],U=1;for(;v>0&&(U*=256);)P+=this[g+--v]*U;return P},a.prototype.readUint8=a.prototype.readUInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]|this[g+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(g,v){return g=g>>>0,v||K(g,2,this.length),this[g]<<8|this[g+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),(this[g]|this[g+1]<<8|this[g+2]<<16)+this[g+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]*16777216+(this[g+1]<<16|this[g+2]<<8|this[g+3])},a.prototype.readBigUInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24,U=this[++g]+this[++g]*2**8+this[++g]*2**16+C*2**24;return BigInt(P)+(BigInt(U)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=v*2**24+this[++g]*2**16+this[++g]*2**8+this[++g],U=this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C;return(BigInt(P)<<BigInt(32))+BigInt(U)}),a.prototype.readIntLE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=this[g],U=1,q=0;for(;++q<v&&(U*=256);)P+=this[g+q]*U;return U*=128,P>=U&&(P-=Math.pow(2,8*v)),P},a.prototype.readIntBE=function(g,v,C){g=g>>>0,v=v>>>0,C||K(g,v,this.length);let P=v,U=1,q=this[g+--P];for(;P>0&&(U*=256);)q+=this[g+--P]*U;return U*=128,q>=U&&(q-=Math.pow(2,8*v)),q},a.prototype.readInt8=function(g,v){return g=g>>>0,v||K(g,1,this.length),this[g]&128?(255-this[g]+1)*-1:this[g]},a.prototype.readInt16LE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g]|this[g+1]<<8;return C&32768?C|4294901760:C},a.prototype.readInt16BE=function(g,v){g=g>>>0,v||K(g,2,this.length);const C=this[g+1]|this[g]<<8;return C&32768?C|4294901760:C},a.prototype.readInt32LE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]|this[g+1]<<8|this[g+2]<<16|this[g+3]<<24},a.prototype.readInt32BE=function(g,v){return g=g>>>0,v||K(g,4,this.length),this[g]<<24|this[g+1]<<16|this[g+2]<<8|this[g+3]},a.prototype.readBigInt64LE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=this[g+4]+this[g+5]*2**8+this[g+6]*2**16+(C<<24);return(BigInt(P)<<BigInt(32))+BigInt(v+this[++g]*2**8+this[++g]*2**16+this[++g]*2**24)}),a.prototype.readBigInt64BE=Ke(function(g){g=g>>>0,Ye(g,"offset");const v=this[g],C=this[g+7];(v===void 0||C===void 0)&&je(g,this.length-8);const P=(v<<24)+this[++g]*2**16+this[++g]*2**8+this[++g];return(BigInt(P)<<BigInt(32))+BigInt(this[++g]*2**24+this[++g]*2**16+this[++g]*2**8+C)}),a.prototype.readFloatLE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!0,23,4)},a.prototype.readFloatBE=function(g,v){return g=g>>>0,v||K(g,4,this.length),n.read(this,g,!1,23,4)},a.prototype.readDoubleLE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!0,52,8)},a.prototype.readDoubleBE=function(g,v){return g=g>>>0,v||K(g,8,this.length),n.read(this,g,!1,52,8)};function se(S,g,v,C,P,U){if(!a.isBuffer(S))throw new TypeError('"buffer" argument must be a Buffer instance');if(g>P||g<U)throw new RangeError('"value" argument is out of bounds');if(v+C>S.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=1,q=0;for(this[v]=g&255;++q<C&&(U*=256);)this[v+q]=g/U&255;return v+C},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,C=C>>>0,!P){const le=Math.pow(2,8*C)-1;se(this,g,v,C,le,0)}let U=C-1,q=1;for(this[v+U]=g&255;--U>=0&&(q*=256);)this[v+U]=g/q&255;return v+C},a.prototype.writeUint8=a.prototype.writeUInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,255,0),this[v]=g&255,v+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,65535,0),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v+3]=g>>>24,this[v+2]=g>>>16,this[v+1]=g>>>8,this[v]=g&255,v+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,4294967295,0),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4};function ue(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U,U=U>>8,S[v++]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,q=q>>8,S[v++]=q,v}function Fe(S,g,v,C,P){te(g,C,P,S,v,7);let U=Number(g&BigInt(4294967295));S[v+7]=U,U=U>>8,S[v+6]=U,U=U>>8,S[v+5]=U,U=U>>8,S[v+4]=U;let q=Number(g>>BigInt(32)&BigInt(4294967295));return S[v+3]=q,q=q>>8,S[v+2]=q,q=q>>8,S[v+1]=q,q=q>>8,S[v]=q,v+8}a.prototype.writeBigUInt64LE=Ke(function(g,v=0){return ue(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ke(function(g,v=0){return Fe(this,g,v,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=0,q=1,le=0;for(this[v]=g&255;++U<C&&(q*=256);)g<0&&le===0&&this[v+U-1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeIntBE=function(g,v,C,P){if(g=+g,v=v>>>0,!P){const we=Math.pow(2,8*C-1);se(this,g,v,C,we-1,-we)}let U=C-1,q=1,le=0;for(this[v+U]=g&255;--U>=0&&(q*=256);)g<0&&le===0&&this[v+U+1]!==0&&(le=1),this[v+U]=(g/q>>0)-le&255;return v+C},a.prototype.writeInt8=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,1,127,-128),g<0&&(g=255+g+1),this[v]=g&255,v+1},a.prototype.writeInt16LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g&255,this[v+1]=g>>>8,v+2},a.prototype.writeInt16BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,2,32767,-32768),this[v]=g>>>8,this[v+1]=g&255,v+2},a.prototype.writeInt32LE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),this[v]=g&255,this[v+1]=g>>>8,this[v+2]=g>>>16,this[v+3]=g>>>24,v+4},a.prototype.writeInt32BE=function(g,v,C){return g=+g,v=v>>>0,C||se(this,g,v,4,2147483647,-2147483648),g<0&&(g=4294967295+g+1),this[v]=g>>>24,this[v+1]=g>>>16,this[v+2]=g>>>8,this[v+3]=g&255,v+4},a.prototype.writeBigInt64LE=Ke(function(g,v=0){return ue(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ke(function(g,v=0){return Fe(this,g,v,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function J(S,g,v,C,P,U){if(v+C>S.length)throw new RangeError("Index out of range");if(v<0)throw new RangeError("Index out of range")}function re(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,4),n.write(S,g,v,C,23,4),v+4}a.prototype.writeFloatLE=function(g,v,C){return re(this,g,v,!0,C)},a.prototype.writeFloatBE=function(g,v,C){return re(this,g,v,!1,C)};function Pe(S,g,v,C,P){return g=+g,v=v>>>0,P||J(S,g,v,8),n.write(S,g,v,C,52,8),v+8}a.prototype.writeDoubleLE=function(g,v,C){return Pe(this,g,v,!0,C)},a.prototype.writeDoubleBE=function(g,v,C){return Pe(this,g,v,!1,C)},a.prototype.copy=function(g,v,C,P){if(!a.isBuffer(g))throw new TypeError("argument should be a Buffer");if(C||(C=0),!P&&P!==0&&(P=this.length),v>=g.length&&(v=g.length),v||(v=0),P>0&&P<C&&(P=C),P===C||g.length===0||this.length===0)return 0;if(v<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("sourceEnd out of bounds");P>this.length&&(P=this.length),g.length-v<P-C&&(P=g.length-v+C);const U=P-C;return this===g&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(v,C,P):Uint8Array.prototype.set.call(g,this.subarray(C,P),v),U},a.prototype.fill=function(g,v,C,P){if(typeof g=="string"){if(typeof v=="string"?(P=v,v=0,C=this.length):typeof C=="string"&&(P=C,C=this.length),P!==void 0&&typeof P!="string")throw new TypeError("encoding must be a string");if(typeof P=="string"&&!a.isEncoding(P))throw new TypeError("Unknown encoding: "+P);if(g.length===1){const q=g.charCodeAt(0);(P==="utf8"&&q<128||P==="latin1")&&(g=q)}}else typeof g=="number"?g=g&255:typeof g=="boolean"&&(g=Number(g));if(v<0||this.length<v||this.length<C)throw new RangeError("Out of range index");if(C<=v)return this;v=v>>>0,C=C===void 0?this.length:C>>>0,g||(g=0);let U;if(typeof g=="number")for(U=v;U<C;++U)this[U]=g;else{const q=a.isBuffer(g)?g:a.from(g,P),le=q.length;if(le===0)throw new TypeError('The value "'+g+'" is invalid for argument "value"');for(U=0;U<C-v;++U)this[U+v]=q[U%le]}return this};const Ae={};function st(S,g,v){Ae[S]=class extends v{constructor(){super(),Object.defineProperty(this,"message",{value:g.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${S}]`,this.stack,delete this.name}get code(){return S}set code(P){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:P,writable:!0})}toString(){return`${this.name} [${S}]: ${this.message}`}}}st("ERR_BUFFER_OUT_OF_BOUNDS",function(S){return S?`${S} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),st("ERR_INVALID_ARG_TYPE",function(S,g){return`The "${S}" argument must be of type number. Received type ${typeof g}`},TypeError),st("ERR_OUT_OF_RANGE",function(S,g,v){let C=`The value of "${S}" is out of range.`,P=v;return Number.isInteger(v)&&Math.abs(v)>2**32?P=ut(String(v)):typeof v=="bigint"&&(P=String(v),(v>BigInt(2)**BigInt(32)||v<-(BigInt(2)**BigInt(32)))&&(P=ut(P)),P+="n"),C+=` It must be ${g}. Received ${P}`,C},RangeError);function ut(S){let g="",v=S.length;const C=S[0]==="-"?1:0;for(;v>=C+4;v-=3)g=`_${S.slice(v-3,v)}${g}`;return`${S.slice(0,v)}${g}`}function Et(S,g,v){Ye(g,"offset"),(S[g]===void 0||S[g+v]===void 0)&&je(g,S.length-(v+1))}function te(S,g,v,C,P,U){if(S>v||S<g){const q=typeof g=="bigint"?"n":"";let le;throw U>3?g===0||g===BigInt(0)?le=`>= 0${q} and < 2${q} ** ${(U+1)*8}${q}`:le=`>= -(2${q} ** ${(U+1)*8-1}${q}) and < 2 ** ${(U+1)*8-1}${q}`:le=`>= ${g}${q} and <= ${v}${q}`,new Ae.ERR_OUT_OF_RANGE("value",le,S)}Et(C,P,U)}function Ye(S,g){if(typeof S!="number")throw new Ae.ERR_INVALID_ARG_TYPE(g,"number",S)}function je(S,g,v){throw Math.floor(S)!==S?(Ye(S,v),new Ae.ERR_OUT_OF_RANGE(v||"offset","an integer",S)):g<0?new Ae.ERR_BUFFER_OUT_OF_BOUNDS:new Ae.ERR_OUT_OF_RANGE(v||"offset",`>= ${v?1:0} and <= ${g}`,S)}const bt=/[^+/0-9A-Za-z-_]/g;function Gt(S){if(S=S.split("=")[0],S=S.trim().replace(bt,""),S.length<2)return"";for(;S.length%4!==0;)S=S+"=";return S}function Rt(S,g){g=g||1/0;let v;const C=S.length;let P=null;const U=[];for(let q=0;q<C;++q){if(v=S.charCodeAt(q),v>55295&&v<57344){if(!P){if(v>56319){(g-=3)>-1&&U.push(239,191,189);continue}else if(q+1===C){(g-=3)>-1&&U.push(239,191,189);continue}P=v;continue}if(v<56320){(g-=3)>-1&&U.push(239,191,189),P=v;continue}v=(P-55296<<10|v-56320)+65536}else P&&(g-=3)>-1&&U.push(239,191,189);if(P=null,v<128){if((g-=1)<0)break;U.push(v)}else if(v<2048){if((g-=2)<0)break;U.push(v>>6|192,v&63|128)}else if(v<65536){if((g-=3)<0)break;U.push(v>>12|224,v>>6&63|128,v&63|128)}else if(v<1114112){if((g-=4)<0)break;U.push(v>>18|240,v>>12&63|128,v>>6&63|128,v&63|128)}else throw new Error("Invalid code point")}return U}function mt(S){const g=[];for(let v=0;v<S.length;++v)g.push(S.charCodeAt(v)&255);return g}function Sr(S,g){let v,C,P;const U=[];for(let q=0;q<S.length&&!((g-=2)<0);++q)v=S.charCodeAt(q),C=v>>8,P=v%256,U.push(P),U.push(C);return U}function wt(S){return t.toByteArray(Gt(S))}function gt(S,g,v,C){let P;for(P=0;P<C&&!(P+v>=g.length||P>=S.length);++P)g[P+v]=S[P];return P}function He(S,g){return S instanceof g||S!=null&&S.constructor!=null&&S.constructor.name!=null&&S.constructor.name===g.name}function St(S){return S!==S}const nt=function(){const S="0123456789abcdef",g=new Array(256);for(let v=0;v<16;++v){const C=v*16;for(let P=0;P<16;++P)g[C+P]=S[v]+S[P]}return g}();function Ke(S){return typeof BigInt>"u"?Tr:S}function Tr(){throw new Error("BigInt not supported")}}(As)),As}(function(e,t){(function(n,r){e.exports=r(Q_(),cE(),hE(),Vd(),EE,UE(),jE())})(ce,function(n,r,o,i,s,a,u){return function(){var f={809:function(l){l.exports=n},30:function(l){l.exports=r},36:function(l){l.exports=o},300:function(l){l.exports=i},408:function(l){l.exports=u},25:function(l){l.exports=s},130:function(l){l.exports=a}},c={};function h(l){var p=c[l];if(p!==void 0)return p.exports;var m=c[l]={exports:{}};return f[l](m,m.exports,h),m.exports}h.n=function(l){var p=l&&l.__esModule?function(){return l.default}:function(){return l};return h.d(p,{a:p}),p},h.d=function(l,p){for(var m in p)h.o(p,m)&&!h.o(l,m)&&Object.defineProperty(l,m,{enumerable:!0,get:p[m]})},h.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)},h.r=function(l){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var d={};return function(){h.r(d),h.d(d,{assets:function(){return M},auth:function(){return K},buildAnswer:function(){return bg},buildCarouselCard:function(){return Eg},buildQuestion:function(){return Be},carouselCards:function(){return _n},contentInteraction:function(){return Ke},decodeBase64:function(){return Sg},default:function(){return Tg},editorialPages:function(){return j},features:function(){return v},getEntries:function(){return l.getEntries},getEntry:function(){return l.getEntry},management:function(){return Or},payments:function(){return Rr},people:function(){return Pt},peopleEngagement:function(){return fr},qaQuestions:function(){return Xe},reportError:function(){return p.reportError},search:function(){return yn}});var l=h(809),p=h(30),m=h(36),E={APOLITICAL:{WEBSITES:{LIVE:"https://apolitical.co",LOCALHOST:"localhost",STAGING:/https:\/\/([\w|\d|-]+)\.apolitical\.co/i,STAGING_SPLITTER:"-"},ENVIRONMENTS:{PRODUCTION:"live",LOCAL:"local"}},APIS:{ASSETS_API:{BASE_URL:"/api/assets-api",ENDPOINTS:{USERS:"/users",CERTIFICATES:"/certificates"}},AUTH_API:{BASE_URL:"/api/auth-api",ENDPOINTS:{USER_PASSWORD:"/password",USERS:"/users"}},CONTENT_INTERACTION_API:{BASE_URL:"/api/content-interaction-api",ENDPOINTS:{QUESTIONS:"/questions",ANSWERS:"/answers",REPLIES:"/replies",LIKES:"/likes"}},FEATURES_API:{BASE_URL:"/api/features-api",ENDPOINTS:{FLAGS:"/features"}},MANAGEMENT_API:{BASE_URL:"/api/management-api",ENDPOINTS:{ACCOUNTS:"/accounts",EVENT_REGISTRATIONS:"/event-registrations",LOGINS:"/logins",LOGIN_PASSWORDLESS:"/passwordless",BULK_ENROLMENTS:"/bulk-enrolments"}},PAYMENTS_API:{BASE_URL:"/api/payments-api",BASE_URL_V2:"/api/payments-api/v2",ENDPOINTS:{PRODUCTS:"/products"}},PEOPLE_API:{BASE_URL:"/api/people-api",BASE_URL_V2:"/api/people-api/v2",ENDPOINTS:{BULK_ENROLMENTS:"/bulk-enrolments",REGISTRATIONS:"/registrations",USERS:"/users",USER_ANSWERS:"/answers",USER_COURSES:"/courses",USER_EVENTS:"/events",USER_LIKES:"/likes",USER_LESSONS:"/lessons",USER_PRODUCTS:"/products",USER_RATINGS:"/ratings",USER_SUBSCRIPTIONS:"/subscriptions"}},PEOPLE_ENGAGEMENT_API:{BASE_URL:"/api/people-engagement-api",ENDPOINTS:{ENQUIRY_EMAILS:"/enquiry-emails",USERS:"/users",USER_PROPERTIES:"/properties"}},SEARCH_API:{BASE_URL:"/api/search-api",ENDPOINTS:{SEARCH:"/search"}}},CONTENTFUL:{ARTICLES:{TYPE:"solutionArticle"},CAROUSELS:{CARD_TYPES:{solutionArticle:{INCLUDE:1,SELECT:"fields.authorIds,fields.authorTag,fields.image,fields.publishedDate,fields.readingTime,fields.slug,fields.title"},microcourse:{INCLUDE:2,SELECT:"fields.banner,fields.freeCourse,fields.partnershipDetails,fields.slug,fields.title"},event:{INCLUDE:1,SELECT:"fields.bannerImage,fields.defaultStartDate,fields.slug,fields.speakers,fields.title,fields.isEventOngoing"},listPage:{INCLUDE:1,SELECT:"fields.hero,fields.slug,fields.title"},qaQuestion:{INCLUDE:0,SELECT:"fields.answers,fields.authorId,fields.slug,fields.title,sys.createdAt,fields.projectNames"},learningHub:{INCLUDE:1,SELECT:"fields.bannerSection,fields.customLabel,fields.slug,fields.title"}}},COURSES:{TYPE:"microcourse"},EDITORIAL_PAGES:{INCLUDE:1,SELECT:"fields.carousels,fields.slug",TYPE:"editorialPage"},EVENTS:{TYPE:"event"},LISTS:{TYPE:"listPage"},QUESTIONS:{TYPE:"qaQuestion",INCLUDE:1,LIMIT:10,ORDER:"-sys.createdAt",SELECT:"sys.createdAt,sys.updatedAt,fields.title,fields.slug,fields.authorId,fields.answers,fields.isEdited,fields.projectNames",SKIP:0},ANSWERS:{TYPE:"qaAnswer"},REPLIES:{TYPE:"reply"},LEARNING_HUB:{TYPE:"learningHub"}},HUBSPOT:{ENVIRONMENTS_MAPPING:{local:"SANDBOX",beta:"SANDBOX",rc:"SANDBOX",live:"LIVE"},EMAIL_IDS:{SANDBOX:{internalEmailId:49099078634,externalEmailId:55196526554},LIVE:{internalEmailId:55233583049,externalEmailId:55231159239}}},USERS:{MYSELF:"me"}};const{APOLITICAL:{WEBSITES:{LIVE:T,LOCALHOST:_,STAGING:b,STAGING_SPLITTER:A},ENVIRONMENTS:{PRODUCTION:w,LOCAL:N}}}=E,{HUBSPOT:{ENVIRONMENTS_MAPPING:F,EMAIL_IDS:B}}=E;let G={emailIds:{}};var W=h(300),V=h.n(W);const H=async I=>{try{const{message:k,response:L,request:$}=I;let ee=k;return L?ee+=` - The request was made and the server responded with ${JSON.stringify({status:L.status,data:L.data})}`:$&&(ee+=" - The request was made but no response was received"),console.warn(ee),await(0,p.reportError)(new Error(ee)),ee}catch(k){return console.warn(`Cannot handle error: ${k.message}`),k.message}},{APIS:{ASSETS_API:{BASE_URL:Y,ENDPOINTS:{USERS:oe,CERTIFICATES:Q}}}}=E;var M={certificates:{create:async(I,k)=>{let L=[];try{const{data:$}=await V().post(`${Y}${oe}/${I}${Q}`,k);$&&(L=$)}catch($){await H($)}return L}}};const{APIS:{AUTH_API:{BASE_URL:z,ENDPOINTS:{USER_PASSWORD:Z,USERS:de}}},USERS:{MYSELF:X}}=E;var K={userPassword:{update:async I=>{let k=null;try{k=await V().put(`${z}${de}/${X}${Z}`,I)}catch(L){k={message:(((L||{}).response||{}).data||{}).message},await H(L)}return k}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:se,ENDPOINTS:{ANSWERS:ue,QUESTIONS:Fe,LIKES:J}}}}=E,re=`${se}${Fe}`;var Pe={create:async({questionSlug:I},k)=>{try{await V().post(`${re}/${encodeURIComponent(I)}${ue}`,k)}catch(L){const $=await H(L);throw new Error($)}},remove:async({questionSlug:I,answerSlug:k})=>{try{await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`)}catch(L){const $=await H(L);throw new Error($)}},update:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().put(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}`,L)}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`,L)}catch($){const ee=await H($);throw new Error(ee)}},unlike:async({questionSlug:I,answerSlug:k})=>{try{return await V().delete(`${re}/${encodeURIComponent(I)}${ue}/${encodeURIComponent(k)}${J}`)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:Ae,ENDPOINTS:{QUESTIONS:st}}}}=E,ut=`${Ae}${st}`;var Et={create:async I=>{try{return await V().post(ut,I)}catch(k){const L=await H(k);throw new Error(L)}},remove:async({questionSlug:I})=>{try{await V().delete(`${ut}/${encodeURIComponent(I)}`)}catch(k){const L=await H(k);throw new Error(L)}},update:async({questionSlug:I},k)=>{try{return await V().put(`${ut}/${encodeURIComponent(I)}`,k)}catch(L){const $=await H(L);throw new Error($)}}};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:te,ENDPOINTS:{REPLIES:Ye,ANSWERS:je,QUESTIONS:bt,LIKES:Gt}}}}=E,Rt=`${te}${bt}`,mt=({questionSlug:I,answerSlug:k,replySlug:L},$=!1)=>{let ee=`${Rt}/${encodeURIComponent(I)}${je}/${encodeURIComponent(k)}${Ye}`;return L&&(ee=`${ee}/${encodeURIComponent(L)}`,$&&(ee=`${ee}${Gt}`)),ee};var Sr={create:async({questionSlug:I,answerSlug:k},L)=>{try{return await V().post(mt({questionSlug:I,answerSlug:k}),L)}catch($){const ee=await H($);throw new Error(ee)}},update:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{return await V().put(mt({questionSlug:I,answerSlug:k,replySlug:L}),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},remove:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L}))}catch($){const ee=await H($);throw new Error(ee)}},like:async({questionSlug:I,answerSlug:k,replySlug:L},$)=>{try{await V().post(mt({questionSlug:I,answerSlug:k,replySlug:L},!0),$)}catch(ee){const xe=await H(ee);throw new Error(xe)}},unlike:async({questionSlug:I,answerSlug:k,replySlug:L})=>{try{await V().delete(mt({questionSlug:I,answerSlug:k,replySlug:L},!0))}catch($){const ee=await H($);throw new Error(ee)}},getReplyUrl:mt};const{APIS:{CONTENT_INTERACTION_API:{BASE_URL:wt,ENDPOINTS:{QUESTIONS:gt,ANSWERS:He,LIKES:St}}}}=E,nt=`${wt}${gt}`;var Ke={answers:Pe,questions:Et,replies:Sr,likes:{create:async(I,k)=>{try{return await V().post(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}},remove:async(I,k)=>{try{return await V().delete(`${nt}/${encodeURIComponent(I)}${He}/${encodeURIComponent(k)}${St}`)}catch(L){const $=await H(L);throw new Error($)}}}};const{APIS:{FEATURES_API:{BASE_URL:Tr,ENDPOINTS:{FLAGS:S}}}}=E,g=`${Tr}${S}`;var v={flags:{read:async I=>{let k=null;try{const{data:L}=await V().get(`${g}/${encodeURIComponent(I)}`);L!=null&&L.name&&(L!=null&&L.featureState)&&(k=L)}catch(L){await H(L)}return k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:C,ENDPOINTS:{ACCOUNTS:P}}}}=E;var U={create:async I=>{try{await V().post(`${C}${P}`,I)}catch(k){throw await H(k),k}},read:async I=>{let k=null;try{({data:k}=await V().get(`${C}${P}/${encodeURIComponent(I)}`))}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${C}${P}/${encodeURIComponent(I)}`,k)}catch(L){throw await H(L),L}}};const{APIS:{MANAGEMENT_API:{BASE_URL:q,ENDPOINTS:{BULK_ENROLMENTS:le}}}}=E;var we={create:async I=>{try{await V().post(`${q}${le}`,I)}catch(k){throw await H(k),k}}};const{APIS:{MANAGEMENT_API:{BASE_URL:Se,ENDPOINTS:{EVENT_REGISTRATIONS:Te}}}}=E;var he={create:async I=>{try{await V().post(`${Se}${Te}`,I)}catch(k){const L=await H(k);throw new Error(L)}}};const{APIS:{MANAGEMENT_API:{BASE_URL:lt,ENDPOINTS:{LOGINS:ar,LOGIN_PASSWORDLESS:xr}}}}=E,Wt=`${lt}${ar}`;var Or={accounts:U,bulkEnrolments:we,eventRegistrations:he,passwordless:{update:async I=>{try{await V().put(`${Wt}/${encodeURIComponent(I)}${xr}`)}catch(k){throw await H(k),k}}}};const{APIS:{PAYMENTS_API:{BASE_URL_V2:Vt,ENDPOINTS:{PRODUCTS:Ar}}}}=E,Cr=`${Vt}${Ar}`;var Rr={products:{list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Cr,L);$&&$.length&&(k=$)}catch($){await H($)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Nt,ENDPOINTS:{BULK_ENROLMENTS:an}}}}=E;var Tt={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Nt}${an}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}},Dn=h(25);const{OK:$n,MULTIPLE_CHOICES:jn,NOT_FOUND:sn,FORBIDDEN:Nr}=Dn.StatusCodes,Ue=I=>I>=$n&&I<jn||I===Nr||I===sn,{APIS:{PEOPLE_API:{BASE_URL_V2:Pr,ENDPOINTS:{USERS:Ir}}}}=E,zt=async I=>{let k=null;try{const{data:L}=await V().get(`${Pr}${Ir}/${encodeURIComponent(I)}`,{validateStatus:Ue});L&&L.id&&(k=L)}catch(L){await H(L)}return k},cn=async I=>{let k=[];try{if(I&&I.length<2)throw new Error("users list method requires at least two ids");const L=I.map(ee=>`ids=${encodeURIComponent(ee)}`).join("&"),$=await V().get(`${Pr}${Ir}?${L}`,{validateStatus:Ue});$&&$.length&&(k=$)}catch(L){await H(L)}return k};var Hn={read:zt,update:async(I,k)=>{let L=!1;try{const{data:$}=await V().put(`${Pr}${Ir}/${encodeURIComponent(I)}`,k);L=!(!$||!$.id)}catch($){await H($)}return L},list:cn};const{APIS:{PEOPLE_API:{BASE_URL_V2:qe,ENDPOINTS:{USERS:qn,USER_LIKES:Gn}}},USERS:{MYSELF:Wn}}=E,Vn=`${qe}${qn}/${Wn}${Gn}`,Lr=async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Vn,L);$&&$.length&&(k=$)}catch($){await H($)}return k};var et={list:Lr},zn={authors:{readQuestionAuthors:async(I,k,L)=>{try{if(I.author=await zt(I.authorId),I.answers&&I.answers.length&&!L.ignoreAnswersAuthors){I.answers.sort((ee,xe)=>new Date(xe.updatedAt)-new Date(ee.updatedAt)),I.totalAnswers=I.answers.length;let $=I.answers;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.answers.slice(ee,ee+L.limit)}for(let ee of $){ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.ANSWERS.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}I.answers=$}else I.answers||(I.answers=[]);return I}catch($){throw await H($),new Error(`Cannot read authors for question: ${$.message}`)}},readAuthors:async(I=[])=>{let k=[];try{if(Array.isArray(I)===!1)throw new Error("authorIds is not an array!");if(I&&I.length===1){const L=await zt(I[0]);L&&k.push(L)}else if(I&&I.length>1){const L=await cn(I);L&&L.length>0&&(k=L)}}catch(L){throw await H(L),new Error(`Cannot read authors: ${L.message}`)}return k}}};const{APIS:{PEOPLE_API:{BASE_URL:Yn,ENDPOINTS:{REGISTRATIONS:Kn}}}}=E;var Qn={list:async I=>{let k=[];try{const{data:L}=await V().get(`${Yn}${Kn}`,{params:I});L&&L.length&&(k=L)}catch(L){await H(L)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Xn,ENDPOINTS:{USERS:sr,USER_COURSES:un}}},USERS:{MYSELF:cr}}=E,ct=`${Xn}${sr}/${cr}${un}`;var Mr={create:async I=>{try{await V().post(ct,I)}catch(k){await H(k)}},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ct,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${ct}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:Jn,ENDPOINTS:{USERS:Zn,USER_EVENTS:ei}}},USERS:{MYSELF:ti}}=E,ri=`${Jn}${Zn}/${ti}${ei}`;var ur={list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(ri,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:kr,ENDPOINTS:{USERS:Yt,USER_LESSONS:ln}}},USERS:{MYSELF:fn}}=E,dn=`${kr}${Yt}/${fn}${ln}`;var ni={create:async I=>{let k=null;try{k=await V().post(dn,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(dn,L);$&&$.length&&(k=$)}catch($){await H($)}return k}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ii,ENDPOINTS:{USERS:oi,USER_PRODUCTS:Br}}},USERS:{MYSELF:ai}}=E,Fr=`${ii}${oi}/${ai}${Br}`;var Kt={create:async I=>{let k=null;try{k=await V().post(Fr,I)}catch(L){await H(L)}return k},list:async I=>{let k=[],L=I?{params:I}:{params:{}};try{const{data:$}=await V().get(Fr,L);$&&$.length&&(k=$)}catch($){await H($)}return k},update:async(I,k)=>{try{await V().put(`${Fr}/${I}`,k)}catch(L){await H(L)}}};const{APIS:{PEOPLE_API:{BASE_URL_V2:ft,ENDPOINTS:{USERS:xt,USER_RATINGS:Ot}}},USERS:{MYSELF:si}}=E,dt=`${ft}${xt}/${si}${Ot}`;var Pt={bulkEnrolments:Tt,handlers:zn,registrations:Qn,users:Hn,userCourses:Mr,userEvents:ur,userLessons:ni,userLikes:et,userProducts:Kt,userRatings:{create:async I=>{let k=null;try{const{data:L}=await V().post(dt,I);L!=null&&L.id&&(k=L)}catch(L){await H(L)}return k},update:async(I,k)=>{try{await V().put(`${dt}/${I}`,k)}catch(L){await H(L)}}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:ci,ENDPOINTS:{ENQUIRY_EMAILS:ui}}}}=E;var li={create:async I=>{let k=null;try{const{data:L}=await V().post(`${ci}${ui}`,I);L&&(k=L)}catch(L){await H(L)}return k}},hn={forms:{sendEnquiryEmails:async I=>{let k=null;try{const{emailIds:L}=G;k=await fr.emails.create({...L,...I})}catch(L){await H(L)}return k}}};const{APIS:{PEOPLE_ENGAGEMENT_API:{BASE_URL:Qe,ENDPOINTS:{USERS:pn,USER_PROPERTIES:mn}}},USERS:{MYSELF:lr}}=E;var fr={emails:li,handlers:hn,userProperties:{update:async(I,k)=>{try{await V().put(`${Qe}${pn}/${lr}${mn}/${I}`,k)}catch(L){await H(L)}}}},dr=h(130);const{APIS:{SEARCH_API:{BASE_URL:fi,ENDPOINTS:{SEARCH:gn}}}}=E,Ur=`${fi}${gn}`;var yn={ask:async I=>{try{let k=null;const{data:L}=await V().get(Ur,{params:{question:I}});return L!=null&&L.answer&&(L!=null&&L.references)&&(L!=null&&L.version)&&(k=L),k}catch(k){const L=await H(k);throw new Error(L)}},stream:(I,k,L)=>{const $=(0,dr.io)(void 0,{path:"/api/search-api/web-sockets"});function ee(){$.emit("search",{question:I})}function xe(ke){L(ke),Ie(),$.disconnect()}function Ie(){$.off("connect",ee),$.off("update",k),$.off("result",xe)}return $.on("connect",ee),$.on("update",k),$.on("result",xe),Ie}};const{CONTENTFUL:yt}=E,{CARD_TYPES:Dr}=yt.CAROUSELS;var _n={read:async(I,k)=>{try{if(!k||!k.sys||!k.sys.id)throw new Error("Invalid link to card");if(!I||!Dr[I])throw new Error("Unsupported card content type");const{INCLUDE:L,SELECT:$}=Dr[I];return await(0,l.getEntry)({content_type:I,"sys.id":k.sys.id,include:L,select:$},{assetDetails:!0})}catch(L){throw await H(L),new Error(`Cannot read carousel card: ${L.message}`)}}};const{CONTENTFUL:di}=E,{INCLUDE:y,SELECT:x,TYPE:R}=di.EDITORIAL_PAGES;var j={read:async I=>{try{return await(0,l.getEntry)({content_type:R,"fields.slug":I,include:y,select:x})}catch(k){throw await H(k),new Error(`Cannot read editorial page: ${k.message}`)}}};const{CONTENTFUL:fe}=E,{TYPE:ae,ORDER:pe,SELECT:me,SKIP:Me,LIMIT:be,INCLUDE:Ge}=fe.QUESTIONS;var Xe={read:async I=>{try{return await(0,l.getEntry)({content_type:ae,"fields.slug":I,include:2,select:me})}catch(k){throw await H(k),new Error(`Cannot read question: ${k.message}`)}},list:async(I={})=>{try{return await(0,l.getEntries)({content_type:ae,include:Ge,limit:be,order:pe,select:me,skip:Me,...I})}catch(k){throw await H(k),new Error(`Cannot list questions: ${k.message}`)}}},Be=async(I,k,L={ignoreAnswersAuthors:!1})=>{try{let $={};return $=await Xe.read(I),$=await Pt.handlers.authors.readQuestionAuthors($,k,L),$}catch($){throw await H($),new Error(`Cannot build question: ${$.message}`)}};const{ARTICLES:{TYPE:We},COURSES:{TYPE:$e},EVENTS:{TYPE:It},LISTS:{TYPE:At},QUESTIONS:{TYPE:Qt},LEARNING_HUB:{TYPE:ro}}=E.CONTENTFUL,Lt=I=>I&&I.url?(Object.assign(I,{aspect:"responsiveCard",query:"q=90&fit=fill"}),I):null,hr={[We]:async I=>{const{authorIds:k,authorTag:L,image:$,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}=I,ht=await Pt.handlers.authors.readAuthors(k),Mt=ht&&ht.length?ht:L?[L]:null;return{banner:Lt($),contributors:Mt,publishedDate:ee,readingTime:xe,slug:Ie,title:ke}},[$e]:async(I,k)=>{const{banner:L,freeCourse:$,partnershipDetails:ee,slug:xe,title:Ie,registered:ke}=I,ht={banner:Lt(L),slug:xe,title:Ie,pill:$?"free":"premium",registered:!!ke};if(ee){const{partners:Mt}=ee;ht.partner=Mt&&Mt.length&&ee.partners[0]}if(ke===void 0&&k){const[Mt]=await Pt.userProducts.list({courseSlug:xe,isEnrolled:!0,scope:"active"});ht.registered=!!Mt}return ht},[It]:async(I,k)=>{const{bannerImage:L,defaultStartDate:$,isEventOngoing:ee,slug:xe,speakers:Ie,title:ke,registered:ht}=I,Mt=new Date($),xg=!!Mt&&Mt<new Date;if(Ie&&Ie.length)for(const no of Ie)no.image=(ua=no.image)&&ua.url?`${ua.url}?w=100&h=100&fit=thumb&f=center`:null;var ua;const fu={banner:Lt(L),dateHasPassed:xg,title:ke,slug:xe,isOngoingEvent:ee,contributors:Ie,startDate:Mt,registered:!!ht};if(ht===void 0&&k){const[no]=await Pt.userEvents.list({eventSlug:xe});fu.registered=!!no}return fu},[At]:async I=>{const{hero:k,slug:L,title:$}=I;return{banner:Lt(k),slug:L,title:$}},[Qt]:async I=>{const{answers:k,authorId:L,createdAt:$,slug:ee,title:xe}=I;let Ie=null;if(L){const ke=await Pt.users.read(L);ke&&(Ie=ke)}return{answers:k&&k.length?k.length:0,contributors:Ie?[Ie]:[],createdAt:$,slug:ee,title:xe}},[ro]:I=>{const{bannerSection:k,customLabel:L,slug:$,title:ee}=I;return{banner:Lt(k.image),slug:$,title:ee,customLabel:L}},people:I=>{const{id:k,name:L,jobTitle:$,location:ee,image:xe}=I;return{profile:xe,slug:k,title:L,text:$,secondaryText:ee}}};var Eg=async({contentType:I,...k}={},L)=>{try{if(!hr[I])throw new Error("Content type not supported");if(typeof hr[I]!="function")throw new Error("No builder function for content type");return I!=="people"&&k.sys&&k.sys.type&&k.sys.type==="Link"&&(k=await _n.read(I,k)),{contentType:I,...await hr[I](k,L)}}catch($){throw await H($),new Error(`Cannot build carousel card: ${$.message}`)}},bg=async(I,k,L={})=>{try{if(!I.replies||I.replies.length===0)return I.replies=[],I;I.replies.sort((ee,xe)=>new Date(ee.createdAt)-new Date(xe.createdAt)),I.totalReplies=I.totalReplies||I.replies.length;let $=I.replies;if(L.limit&&L.pageNumber){const ee=L.limit*(L.pageNumber-1);$=I.replies.slice(ee,ee+L.limit)}for(const ee of $){if(ee.authorId===I.authorId){ee.author=I.author,ee.userLiked=!1;continue}ee.author=ee.authorId&&await zt(ee.authorId)||{};const[xe]=k?await Lr({contentType:E.CONTENTFUL.REPLIES.TYPE,contentSlug:ee.slug}):[null];ee.userLiked=!!xe}return I.replies=$,I}catch($){throw await H($),new Error(`Cannot build replies for answer: ${$.message}`)}},wg=h(408);const Sg=I=>I&&wg.Buffer.from(I,"base64").toString("ascii");function Tg({contentContext:I=null,errorsContext:k=null,gtmContext:L=null,origin:$}){try{const ee=(xe=>{let Ie=null;xe?Ie=xe:typeof window<"u"&&(Ie=window.origin||window.location.origin),Ie||new Error("Cannot select environment: Website not defined");let ke=null;const ht=Ie.match(b);return ht?ke=ht[1].split(A)[0]:Ie===T?ke=w:Ie.includes(_)&&(ke=N),ke||new Error(`Cannot select environment: No rule for website ${Ie}`),ke})($);return I&&(0,l.setContext)(Object.assign({},I,{environment:ee})),k&&(0,p.setContext)(Object.assign({},k,{environment:ee})),L&&((0,m.setContext)(Object.assign({},L,{environment:ee})),(0,m.setupGTM)()),(({environment:xe})=>{const Ie=(ke=>{if(!ke)throw new Error("Cannot map environment: Environment not defined");if(!F[ke])throw new Error(`Cannot map environment: No mapping found for environment ${ke}`);return F[ke]})(xe);G.emailIds=B[Ie]})(Object.assign({},{environment:ee})),ee}catch(ee){console.warn(`Cannot load SDK: ${ee.message}`)}}}(),d}()})})(Fd);var HE=Fd.exports;const Fi={Off:"off",On:"on",Cookie:"cookie"},qE=e=>{const[t]=Bd(),[n,r]=D.useState(null),[o,i]=D.useState(!1),[s,a]=D.useState(Fi.Off);return D.useEffect(()=>{e&&HE.features.flags.read(e).then(u=>{a(u.featureState),r(null)}).catch(u=>{a(Fi.Off),r(u)})},[e]),D.useEffect(()=>{switch(s){case Fi.Off:i(!1);break;case Fi.On:i(!0);break;case Fi.Cookie:i(!!t[`feature-${e}`]);break;default:i(!1)}},[s,t]),{isFeatureActive:o,error:n}};function GE(e,t,n){var r=this,o=D.useRef(null),i=D.useRef(0),s=D.useRef(null),a=D.useRef([]),u=D.useRef(),f=D.useRef(),c=D.useRef(e),h=D.useRef(!0);D.useEffect(function(){c.current=e},[e]);var d=!t&&t!==0&&typeof window<"u";if(typeof e!="function")throw new TypeError("Expected a function");t=+t||0;var l=!!(n=n||{}).leading,p=!("trailing"in n)||!!n.trailing,m="maxWait"in n,E=m?Math.max(+n.maxWait||0,t):null;D.useEffect(function(){return h.current=!0,function(){h.current=!1}},[]);var T=D.useMemo(function(){var _=function(B){var G=a.current,W=u.current;return a.current=u.current=null,i.current=B,f.current=c.current.apply(W,G)},b=function(B,G){d&&cancelAnimationFrame(s.current),s.current=d?requestAnimationFrame(B):setTimeout(B,G)},A=function(B){if(!h.current)return!1;var G=B-o.current;return!o.current||G>=t||G<0||m&&B-i.current>=E},w=function(B){return s.current=null,p&&a.current?_(B):(a.current=u.current=null,f.current)},N=function B(){var G=Date.now();if(A(G))return w(G);if(h.current){var W=t-(G-o.current),V=m?Math.min(W,E-(G-i.current)):W;b(B,V)}},F=function(){var B=Date.now(),G=A(B);if(a.current=[].slice.call(arguments),u.current=r,o.current=B,G){if(!s.current&&h.current)return i.current=o.current,b(N,t),l?_(o.current):f.current;if(m)return b(N,t),_(o.current)}return s.current||b(N,t),f.current};return F.cancel=function(){s.current&&(d?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,a.current=o.current=u.current=s.current=null},F.isPending=function(){return!!s.current},F.flush=function(){return s.current?w(Date.now()):f.current},F},[l,m,t,E,p,d]);return T}function Np(e,t,n){var r=n===void 0?{}:n,o=r.leading,i=r.trailing;return GE(e,t,{maxWait:t,leading:o===void 0||o,trailing:i===void 0||i})}let Cs;const Ji=(e=!0,t=!1)=>{if(!e)return;const[n,r]=D.useState(0)||[!1,()=>{}];D.useEffect(()=>(i(),window.addEventListener("resize",s),()=>{clearTimeout(Cs),s.flush(),window.removeEventListener("resize",s)}),[]);const o=()=>window.innerWidth,i=()=>{r(o())},s=Np(()=>{o()!==n&&(t&&(clearTimeout(Cs),document.body.classList.add("is-resizing"),Cs=setTimeout(()=>{document.body.classList.remove("is-resizing")},550)),i())},500,{leading:!0});return n},Pp=({scrollPosition:e=0,offset:t={down:0,up:10},callbacks:{scrollDown:n=()=>{},scrollUp:r=()=>{}}})=>{if(!window)return;const[o,i]=D.useState({current:0,past:0})||[!1,()=>{}],[s,a]=D.useState({scrollDown:!1,scrollUp:!1})||[!1,()=>{}];D.useEffect(()=>(u(),window.addEventListener("scroll",f),()=>{f.flush(),window.removeEventListener("scroll",f)}),[]);const u=()=>{const c=window.scrollY,h=o.current,d=c-h,l=d>0?"down":"up";if(i({current:c,past:h}),l==="down"){c>=e+t.down&&!s.scrollDown&&(!s.scrollUp||d>t.up)&&(n(),a({scrollUp:!1,scrollDown:!0}));return}Math.abs(d)>=t.up&&!s.scrollUp&&(r(),a({scrollUp:!0,scrollDown:!1}))},f=Np(()=>{u()},250);return o},WE=(e=[],t=!0)=>{e=Array.isArray(e)?e:[e];const n=D.useRef(!1);Jr(()=>{if(window&&window.location&&window.location.hash){if(n.current)return;const r=window.location.hash.replace("#",""),o=document.getElementById(r);o&&(o.scrollIntoView(t?{behavior:"smooth"}:null),n.current=!0)}},e)};var Ho={exports:{}};Ho.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",s="[object Array]",a="[object Boolean]",u="[object Date]",f="[object Error]",c="[object Function]",h="[object GeneratorFunction]",d="[object Map]",l="[object Number]",p="[object Object]",m="[object Promise]",E="[object RegExp]",T="[object Set]",_="[object String]",b="[object Symbol]",A="[object WeakMap]",w="[object ArrayBuffer]",N="[object DataView]",F="[object Float32Array]",B="[object Float64Array]",G="[object Int8Array]",W="[object Int16Array]",V="[object Int32Array]",H="[object Uint8Array]",Y="[object Uint8ClampedArray]",oe="[object Uint16Array]",Q="[object Uint32Array]",M=/[\\^$.*+?()[\]{}|]/g,z=/\w*$/,Z=/^\[object .+?Constructor\]$/,de=/^(?:0|[1-9]\d*)$/,X={};X[i]=X[s]=X[w]=X[N]=X[a]=X[u]=X[F]=X[B]=X[G]=X[W]=X[V]=X[d]=X[l]=X[p]=X[E]=X[T]=X[_]=X[b]=X[H]=X[Y]=X[oe]=X[Q]=!0,X[f]=X[c]=X[A]=!1;var K=typeof ce=="object"&&ce&&ce.Object===Object&&ce,se=typeof self=="object"&&self&&self.Object===Object&&self,ue=K||se||Function("return this")(),Fe=t&&!t.nodeType&&t,J=Fe&&!0&&e&&!e.nodeType&&e,re=J&&J.exports===Fe;function Pe(y,x){return y.set(x[0],x[1]),y}function Ae(y,x){return y.add(x),y}function st(y,x){for(var R=-1,j=y?y.length:0;++R<j&&x(y[R],R,y)!==!1;);return y}function ut(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Et(y,x,R,j){var fe=-1,ae=y?y.length:0;for(j&&ae&&(R=y[++fe]);++fe<ae;)R=x(R,y[fe],fe,y);return R}function te(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Ye(y,x){return y==null?void 0:y[x]}function je(y){var x=!1;if(y!=null&&typeof y.toString!="function")try{x=!!(y+"")}catch{}return x}function bt(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function Gt(y,x){return function(R){return y(x(R))}}function Rt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var mt=Array.prototype,Sr=Function.prototype,wt=Object.prototype,gt=ue["__core-js_shared__"],He=function(){var y=/[^.]+$/.exec(gt&&gt.keys&&gt.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),St=Sr.toString,nt=wt.hasOwnProperty,Ke=wt.toString,Tr=RegExp("^"+St.call(nt).replace(M,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),S=re?ue.Buffer:void 0,g=ue.Symbol,v=ue.Uint8Array,C=Gt(Object.getPrototypeOf,Object),P=Object.create,U=wt.propertyIsEnumerable,q=mt.splice,le=Object.getOwnPropertySymbols,we=S?S.isBuffer:void 0,Se=Gt(Object.keys,Object),Te=ft(ue,"DataView"),he=ft(ue,"Map"),lt=ft(ue,"Promise"),ar=ft(ue,"Set"),xr=ft(ue,"WeakMap"),Wt=ft(Object,"create"),Or=Qe(Te),Vt=Qe(he),Ar=Qe(lt),Cr=Qe(ar),Rr=Qe(xr),Nt=g?g.prototype:void 0,an=Nt?Nt.valueOf:void 0;function Tt(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Dn(){this.__data__=Wt?Wt(null):{}}function $n(y){return this.has(y)&&delete this.__data__[y]}function jn(y){var x=this.__data__;if(Wt){var R=x[y];return R===r?void 0:R}return nt.call(x,y)?x[y]:void 0}function sn(y){var x=this.__data__;return Wt?x[y]!==void 0:nt.call(x,y)}function Nr(y,x){var R=this.__data__;return R[y]=Wt&&x===void 0?r:x,this}Tt.prototype.clear=Dn,Tt.prototype.delete=$n,Tt.prototype.get=jn,Tt.prototype.has=sn,Tt.prototype.set=Nr;function Ue(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=[]}function Ir(y){var x=this.__data__,R=cr(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():q.call(x,R,1),!0}function zt(y){var x=this.__data__,R=cr(x,y);return R<0?void 0:x[R][1]}function cn(y){return cr(this.__data__,y)>-1}function Hn(y,x){var R=this.__data__,j=cr(R,y);return j<0?R.push([y,x]):R[j][1]=x,this}Ue.prototype.clear=Pr,Ue.prototype.delete=Ir,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y?y.length:0;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__={hash:new Tt,map:new(he||Ue),string:new Tt}}function Gn(y){return Kt(this,y).delete(y)}function Wn(y){return Kt(this,y).get(y)}function Vn(y){return Kt(this,y).has(y)}function Lr(y,x){return Kt(this,y).set(y,x),this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Lr;function et(y){this.__data__=new Ue(y)}function zn(){this.__data__=new Ue}function Yn(y){return this.__data__.delete(y)}function Kn(y){return this.__data__.get(y)}function Qn(y){return this.__data__.has(y)}function Xn(y,x){var R=this.__data__;if(R instanceof Ue){var j=R.__data__;if(!he||j.length<n-1)return j.push([y,x]),this;R=this.__data__=new qe(j)}return R.set(y,x),this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y,x){var R=fr(y)||lr(y)?te(y.length,String):[],j=R.length,fe=!!j;for(var ae in y)(x||nt.call(y,ae))&&!(fe&&(ae=="length"||ci(ae,j)))&&R.push(ae);return R}function un(y,x,R){var j=y[x];(!(nt.call(y,x)&&mn(j,R))||R===void 0&&!(x in y))&&(y[x]=R)}function cr(y,x){for(var R=y.length;R--;)if(mn(y[R][0],x))return R;return-1}function ct(y,x){return y&&Br(x,vn(x),y)}function Mr(y,x,R,j,fe,ae,pe){var me;if(j&&(me=ae?j(y,fe,ae,pe):j(y)),me!==void 0)return me;if(!yt(y))return y;var Me=fr(y);if(Me){if(me=si(y),!x)return oi(y,me)}else{var be=Ot(y),Ge=be==c||be==h;if(gn(y))return ur(y,x);if(be==p||be==i||Ge&&!ae){if(je(y))return ae?y:{};if(me=dt(Ge?{}:y),!x)return ai(y,ct(me,y))}else{if(!X[be])return ae?y:{};me=Pt(y,be,Mr,x)}}pe||(pe=new et);var Xe=pe.get(y);if(Xe)return Xe;if(pe.set(y,me),!Me)var Be=R?Fr(y):vn(y);return st(Be||y,function(We,$e){Be&&($e=We,We=y[$e]),un(me,$e,Mr(We,x,R,j,$e,y,pe))}),me}function Jn(y){return yt(y)?P(y):{}}function Zn(y,x,R){var j=x(y);return fr(y)?j:ut(j,R(y))}function ei(y){return Ke.call(y)}function ti(y){if(!yt(y)||li(y))return!1;var x=Ur(y)||je(y)?Tr:Z;return x.test(Qe(y))}function ri(y){if(!hn(y))return Se(y);var x=[];for(var R in Object(y))nt.call(y,R)&&R!="constructor"&&x.push(R);return x}function ur(y,x){if(x)return y.slice();var R=new y.constructor(y.length);return y.copy(R),R}function kr(y){var x=new y.constructor(y.byteLength);return new v(x).set(new v(y)),x}function Yt(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.byteLength)}function ln(y,x,R){var j=x?R(bt(y),!0):bt(y);return Et(j,Pe,new y.constructor)}function fn(y){var x=new y.constructor(y.source,z.exec(y));return x.lastIndex=y.lastIndex,x}function dn(y,x,R){var j=x?R(Rt(y),!0):Rt(y);return Et(j,Ae,new y.constructor)}function ni(y){return an?Object(an.call(y)):{}}function ii(y,x){var R=x?kr(y.buffer):y.buffer;return new y.constructor(R,y.byteOffset,y.length)}function oi(y,x){var R=-1,j=y.length;for(x||(x=Array(j));++R<j;)x[R]=y[R];return x}function Br(y,x,R,j){R||(R={});for(var fe=-1,ae=x.length;++fe<ae;){var pe=x[fe],me=j?j(R[pe],y[pe],pe,R,y):void 0;un(R,pe,me===void 0?y[pe]:me)}return R}function ai(y,x){return Br(y,xt(y),x)}function Fr(y){return Zn(y,vn,xt)}function Kt(y,x){var R=y.__data__;return ui(x)?R[typeof x=="string"?"string":"hash"]:R.map}function ft(y,x){var R=Ye(y,x);return ti(R)?R:void 0}var xt=le?Gt(le,Object):_n,Ot=ei;(Te&&Ot(new Te(new ArrayBuffer(1)))!=N||he&&Ot(new he)!=d||lt&&Ot(lt.resolve())!=m||ar&&Ot(new ar)!=T||xr&&Ot(new xr)!=A)&&(Ot=function(y){var x=Ke.call(y),R=x==p?y.constructor:void 0,j=R?Qe(R):void 0;if(j)switch(j){case Or:return N;case Vt:return d;case Ar:return m;case Cr:return T;case Rr:return A}return x});function si(y){var x=y.length,R=y.constructor(x);return x&&typeof y[0]=="string"&&nt.call(y,"index")&&(R.index=y.index,R.input=y.input),R}function dt(y){return typeof y.constructor=="function"&&!hn(y)?Jn(C(y)):{}}function Pt(y,x,R,j){var fe=y.constructor;switch(x){case w:return kr(y);case a:case u:return new fe(+y);case N:return Yt(y,j);case F:case B:case G:case W:case V:case H:case Y:case oe:case Q:return ii(y,j);case d:return ln(y,j,R);case l:case _:return new fe(y);case E:return fn(y);case T:return dn(y,j,R);case b:return ni(y)}}function ci(y,x){return x=x??o,!!x&&(typeof y=="number"||de.test(y))&&y>-1&&y%1==0&&y<x}function ui(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function li(y){return!!He&&He in y}function hn(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||wt;return y===R}function Qe(y){if(y!=null){try{return St.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y){return Mr(y,!0,!0)}function mn(y,x){return y===x||y!==y&&x!==x}function lr(y){return fi(y)&&nt.call(y,"callee")&&(!U.call(y,"callee")||Ke.call(y)==i)}var fr=Array.isArray;function dr(y){return y!=null&&yn(y.length)&&!Ur(y)}function fi(y){return Dr(y)&&dr(y)}var gn=we||di;function Ur(y){var x=yt(y)?Ke.call(y):"";return x==c||x==h}function yn(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=o}function yt(y){var x=typeof y;return!!y&&(x=="object"||x=="function")}function Dr(y){return!!y&&typeof y=="object"}function vn(y){return dr(y)?sr(y):ri(y)}function _n(){return[]}function di(){return!1}e.exports=pn})(Ho,Ho.exports);var VE=Ho.exports;const zE=jt(VE);var YE="Expected a function",Ip="__lodash_hash_undefined__",Lp=1/0,KE=9007199254740991,QE="[object Function]",XE="[object GeneratorFunction]",JE="[object Symbol]",ZE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,eb=/^\w*$/,tb=/^\./,rb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nb=/[\\^$.*+?()[\]{}|]/g,ib=/\\(\\)?/g,ob=/^\[object .+?Constructor\]$/,ab=/^(?:0|[1-9]\d*)$/,sb=typeof ce=="object"&&ce&&ce.Object===Object&&ce,cb=typeof self=="object"&&self&&self.Object===Object&&self,qc=sb||cb||Function("return this")();function ub(e,t){return e==null?void 0:e[t]}function lb(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var fb=Array.prototype,db=Function.prototype,Mp=Object.prototype,Rs=qc["__core-js_shared__"],Gf=function(){var e=/[^.]+$/.exec(Rs&&Rs.keys&&Rs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kp=db.toString,ea=Mp.hasOwnProperty,Bp=Mp.toString,hb=RegExp("^"+kp.call(ea).replace(nb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wf=qc.Symbol,pb=fb.splice,mb=Fp(qc,"Map"),Wi=Fp(Object,"create"),Vf=Wf?Wf.prototype:void 0,zf=Vf?Vf.toString:void 0;function Zr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function gb(){this.__data__=Wi?Wi(null):{}}function yb(e){return this.has(e)&&delete this.__data__[e]}function vb(e){var t=this.__data__;if(Wi){var n=t[e];return n===Ip?void 0:n}return ea.call(t,e)?t[e]:void 0}function _b(e){var t=this.__data__;return Wi?t[e]!==void 0:ea.call(t,e)}function Eb(e,t){var n=this.__data__;return n[e]=Wi&&t===void 0?Ip:t,this}Zr.prototype.clear=gb;Zr.prototype.delete=yb;Zr.prototype.get=vb;Zr.prototype.has=_b;Zr.prototype.set=Eb;function Bn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function bb(){this.__data__=[]}function wb(e){var t=this.__data__,n=ta(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pb.call(t,n,1),!0}function Sb(e){var t=this.__data__,n=ta(t,e);return n<0?void 0:t[n][1]}function Tb(e){return ta(this.__data__,e)>-1}function xb(e,t){var n=this.__data__,r=ta(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Bn.prototype.clear=bb;Bn.prototype.delete=wb;Bn.prototype.get=Sb;Bn.prototype.has=Tb;Bn.prototype.set=xb;function rn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ob(){this.__data__={hash:new Zr,map:new(mb||Bn),string:new Zr}}function Ab(e){return ra(this,e).delete(e)}function Cb(e){return ra(this,e).get(e)}function Rb(e){return ra(this,e).has(e)}function Nb(e,t){return ra(this,e).set(e,t),this}rn.prototype.clear=Ob;rn.prototype.delete=Ab;rn.prototype.get=Cb;rn.prototype.has=Rb;rn.prototype.set=Nb;function Pb(e,t,n){var r=e[t];(!(ea.call(e,t)&&Up(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function ta(e,t){for(var n=e.length;n--;)if(Up(e[n][0],t))return n;return-1}function Ib(e){if(!qo(e)||Db(e))return!1;var t=qb(e)||lb(e)?hb:ob;return t.test(Hb(e))}function Lb(e,t,n,r){if(!qo(e))return e;t=Fb(t,e)?[t]:kb(t);for(var o=-1,i=t.length,s=i-1,a=e;a!=null&&++o<i;){var u=jb(t[o]),f=n;if(o!=s){var c=a[u];f=r?r(c,u,a):void 0,f===void 0&&(f=qo(c)?c:Bb(t[o+1])?[]:{})}Pb(a,u,f),a=a[u]}return e}function Mb(e){if(typeof e=="string")return e;if(Wc(e))return zf?zf.call(e):"";var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function kb(e){return Dp(e)?e:$b(e)}function ra(e,t){var n=e.__data__;return Ub(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Fp(e,t){var n=ub(e,t);return Ib(n)?n:void 0}function Bb(e,t){return t=t??KE,!!t&&(typeof e=="number"||ab.test(e))&&e>-1&&e%1==0&&e<t}function Fb(e,t){if(Dp(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Wc(e)?!0:eb.test(e)||!ZE.test(e)||t!=null&&e in Object(t)}function Ub(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Db(e){return!!Gf&&Gf in e}var $b=Gc(function(e){e=Wb(e);var t=[];return tb.test(e)&&t.push(""),e.replace(rb,function(n,r,o,i){t.push(o?i.replace(ib,"$1"):r||n)}),t});function jb(e){if(typeof e=="string"||Wc(e))return e;var t=e+"";return t=="0"&&1/e==-Lp?"-0":t}function Hb(e){if(e!=null){try{return kp.call(e)}catch{}try{return e+""}catch{}}return""}function Gc(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(YE);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(Gc.Cache||rn),n}Gc.Cache=rn;function Up(e,t){return e===t||e!==e&&t!==t}var Dp=Array.isArray;function qb(e){var t=qo(e)?Bp.call(e):"";return t==QE||t==XE}function qo(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Gb(e){return!!e&&typeof e=="object"}function Wc(e){return typeof e=="symbol"||Gb(e)&&Bp.call(e)==JE}function Wb(e){return e==null?"":Mb(e)}function Vb(e,t,n){return e==null?e:Lb(e,t,n)}var zb=Vb;const Yb=jt(zb),Kb=(e,t)=>{Array.isArray(t)||(t=[t]);const n=zE(e);return t.forEach(({type:r,value:o})=>{Yb(n,r,o)}),n},$p=e=>{const t=[];return e.forEach(n=>{const r=parseInt(n);isNaN(r)||t.push(r)}),t.sort((n,r)=>n-r)},jp=(e,t,n)=>{let r=n.mobile;for(const o in t){const i=parseInt(String(t[o]));if(e>=i)r=n[i];else if(e<i)break}return r},Qb=(e,t="en")=>new Date(e).toLocaleString(t,{weekday:"long",day:"numeric",month:"short",year:"numeric"}),Xb=e=>{let i;try{i=new Date().getTime()-new Date(e).getTime()}catch{return""}const s=i/36e5,a=Math.floor(i/864e5);if(a<1)return s<1?{path:"now"}:{path:"hours",number:Math.floor(s)};if(a<7)return{path:"days",number:a};const u=Math.floor(a/7);return u<=52?{path:"weeks",number:u}:{path:"years",number:Math.floor(a/365)}},Jb=e=>new Promise(t=>setTimeout(t,e)),Vc={apolitical:"Apolitical",breadcrumbs_label:"Go back to:",breadcrumbs_currentPage:"Current page:",card_bootcamp:"Email boot camp",card_ended:"Ended",card_registered:"Registered",card_answers:"{number, plural, =0 {0 answers} one {# answer} other {# answers}}",card_time_ago:"{time} ago",card_time_read:"{time} min read",card_watch:"Watch recording",card_cta_people:"View profile",collapsibleSection_summary:"Find out more",communityDetails_members:"Members",communityDetails_viewAll:"View all",communityDetails_invite:"Invite colleagues",contactFooter_title:"Contact us",contactFooter_text:"We're always open to new ideas, so please reach out to see how we can collaborate.",contactFooter_phone:"+44 203 608 2241",contactFooter_email:"hello@apolitical.co",contactForm_name:"Name",contactForm_email:"Email address",contactForm_organisation:"Government department or organisation",contactForm_interests:"I'm interested in",contactForm_interests_publishingCourse:"Publishing or creating a course",contactForm_interests_buyingCourse:"Buying courses for my team",contactForm_interests_learningExperience:"Customised learning experiences",contactForm_interests_somethingElse:"Something else",contactForm_message:"Message",cookieBanner_title:"Cookies and your privacy",cookieBanner_text:"We take your trust and privacy very seriously. Apolitical uses safe cookies (small files on your device) to run the site. You can reject non-essential cookies, but some site features may not work without them.",cookieBanner_buttons_settings:"Change my settings",cookieBanner_buttons_reject:"Reject all",cookieBanner_buttons_accept:"Accept all",dates_now:"now",dates_hours:"{number}h",dates_days:"{number}d",dates_weeks:"{number}w",dates_years:"{number}y",discussion_action_answer:"answer",discussion_action_comment:"comment",discussion_action_post:"post",discussion_action_response:"response",discussion_action_reply:"reply",discussion_action_question:"question",discussion_answer_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_answer_likes_like:"Like this answer",discussion_answer_likes_unlike:"Unlike answer",discussion_edited:"Edited",discussion_delete_title:"Delete {action}",discussion_delete_text:"<p>Are you sure you want to delete your {action}?</p><p>This can't be undone.</p>",discussion_delete_cancel:"Cancel",discussion_delete_delete:"Delete",discussion_delete_error:"We are unable to delete your {action} at the moment. Please try again later or contact us if problem persists.",discussion_reply:"Reply",discussion_reply_likes:"{count, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_reply_likes_like:"Like this reply",discussion_reply_likes_unlike:"Unlike reply",discussion_report_subject:"Report a post on Apolitical",discussion_report_body:`I'd like to report the {contentType} <{contentSlug}> at {contentUrl}.
62
62
 
63
63
  Please explain why you're reporting this post. Reasons could include: inappropriate language, harassment, spam, hate speech, false information, among others. Include as much detail as you feel comfortable.
64
64
 
65
- Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},Zb={collapsibleSection_summary:"En savoir plus"},ew=Object.freeze(Object.defineProperty({__proto__:null,en:Vc,fr:Zb},Symbol.toStringTag,{value:"Module"})),rr=(e,t,n,r,o={})=>{let i="";return`${t}_${n}`in Vc?i=e({id:`${t}_${n}`},o):i=e({id:t},{[r]:n,...o}),i},tw=(e,t,n)=>{if(!e||e===0)return"0";t||(t=0),n||(n=["k","m","b","t"]);let r=e.toString();t=Math.pow(10,t);for(let o=n.length-1;o>=0;o--){const i=Math.pow(10,(o+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&o<n.length-1&&(e=1,o++),r=`${e}${n[o]}`;break}}return r},Hp=(e,t)=>D.Children.map(e,n=>D.cloneElement(n,{...t})),rw=e=>e.replace(/\s+/g,"").length>0,De=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:u=!1,screenreaderText:f=!1,children:c=!1,...h})=>{const l=Ji(typeof t=="object");if(typeof t=="object"&&typeof l=="number"){const E=Object.assign({},t),T=$p(Object.keys(E));t=jp(l,T,E)}const p=[];typeof t=="string"&&p.push(t),r&&(p.push("icon"),typeof r=="object"?(p.push(r.icon),r.position?p.push(r.position):p.push("left"),r.hover&&p.push(`hover_${r.hover}`),r.animate&&(p.push("animate"),typeof r.animate=="string"&&p.push(r.animate))):(p.push(r),!r.includes("right")&&!r.includes("left")&&p.push("left"))),n.muted&&p.push("muted"),n.fullWidth&&p.push("full-width");const m={...h,className:ne(e,a,p,{"no-text":!c,disabled:u,button:o}),onClick:E=>{(!o||o[0]==="#")&&s&&(E.preventDefault(),E.stopPropagation()),s&&s(E)},disabled:typeof u=="object"&&"isClickable"in u?!u.isClickable:u};return o&&(i="a",m.href=o),D.createElement(i,m,c||(f?O.jsx(Je,{showOnFocus:!1,children:f}):null))},Zi=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",o=e.map((i,s)=>r==="p"?O.jsx(De,{...i},s):O.jsx("li",{children:O.jsx(De,{...i})},s));return D.createElement(r,{className:ne("button-wrapper",t),...n,children:o})};const Go=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:ne({"has-max-width":e}),style:t})},zc=({href:e,children:t,className:n="",onClick:r,gtmContext:o,gtmType:i,...s})=>{if(e){const a={...s};return r&&(a.onClick=r),o&&(a["data-gtm-event-context"]=o),i&&(a["data-gtm-event-type"]=i),O.jsx("a",{href:e,className:ne("gtm-trackable",n),...a,children:t})}return t},Yf={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},nw=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:o}=e?Yf[e]:Yf.fallback;return{range:t&&t.length>0?t:r,sizes:n||o}},iw=({format:e,height:t,query:n,width:r})=>{let o=`w=${r}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=n?`${o}&${n}`:o,o},Ns=({format:e,range:t,url:n,query:r})=>t.map(({height:o,width:i})=>`${n}?${iw({format:e,height:o,query:r,width:i})} ${i}w`).join(", ");const qp=({image:e,className:t,testId:n})=>{const{description:r,height:o,type:i,query:s,url:a,width:u,loading:f,decoding:c,fetchPriority:h}=e,{range:d,sizes:l}=nw(e),p=Ns({format:"avif",query:s,range:d,url:a}),m=Ns({format:"webp",query:s,range:d,url:a}),E=Ns({format:"",query:s,range:d,url:a});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:l,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:l,"data-testid":"source"}),O.jsx("img",{srcSet:E,sizes:l,src:a,alt:r,loading:f||"lazy",decoding:c||"async",fetchpriority:h||"auto",width:u,height:o,"data-testid":n||"image"})]})};var lc=function(e,t){return lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},lc(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ie.apply(this,arguments)};function Nn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Gp(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ye;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ye||(ye={}));var Le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Le||(Le={}));var Pn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pn||(Pn={}));function Kf(e){return e.type===Le.literal}function ow(e){return e.type===Le.argument}function Wp(e){return e.type===Le.number}function Vp(e){return e.type===Le.date}function zp(e){return e.type===Le.time}function Yp(e){return e.type===Le.select}function Kp(e){return e.type===Le.plural}function aw(e){return e.type===Le.pound}function Qp(e){return e.type===Le.tag}function Xp(e){return!!(e&&typeof e=="object"&&e.type===Pn.number)}function fc(e){return!!(e&&typeof e=="object"&&e.type===Pn.dateTime)}var Jp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sw=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function cw(e){var t={};return e.replace(sw,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var uw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(uw).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var i=o[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),f=0,c=u;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function fw(e){return e.replace(/^(.*?)-/,"")}var Qf=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zp=/^(@+)?(\+|#+)?[rs]?$/g,dw=/(\*)(0+)|(#+)(0+)|(0+)/g,em=/^(0+)$/;function Xf(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zp,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function tm(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function hw(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!em.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Jf(e){var t={},n=tm(e);return n||t}function pw(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=fw(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ie(ie(ie({},t),{notation:"scientific"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(dw,function(u,f,c,h,d,l){if(f)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(l)throw new Error("We currently do not support exact integer digits")}return""});continue}if(em.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Qf.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Qf,function(u,f,c,h,d,l){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&l?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+l.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ie(ie({},t),Xf(i)));continue}if(Zp.test(o.stem)){t=ie(ie({},t),Xf(o.stem));continue}var s=tm(o.stem);s&&(t=ie(ie({},t),s));var a=hw(o.stem);a&&(t=ie(ie({},t),a))}return t}var Oo={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mw(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(i&1),a=i<2?1:3+(i>>1),u="a",f=gw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=f+n}else o==="J"?n+="H":n+=o}return n}function gw(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=Oo[r||""]||Oo[n||""]||Oo["".concat(n,"-001")]||Oo["001"];return o[0]}var Ps,yw=new RegExp("^".concat(Jp.source,"*")),vw=new RegExp("".concat(Jp.source,"*$"));function _e(e,t){return{start:e,end:t}}var _w=!!String.prototype.startsWith,Ew=!!String.fromCodePoint,bw=!!Object.fromEntries,ww=!!String.prototype.codePointAt,Sw=!!String.prototype.trimStart,Tw=!!String.prototype.trimEnd,xw=!!Number.isSafeInteger,Ow=xw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dc=!0;try{var Aw=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dc=((Ps=Aw.exec("a"))===null||Ps===void 0?void 0:Ps[0])==="a"}catch{dc=!1}var Zf=_w?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},hc=Ew?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ed=bw?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var i=o[r],s=i[0],a=i[1];n[s]=a}return n},rm=ww?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Cw=Sw?function(t){return t.trimStart()}:function(t){return t.replace(yw,"")},Rw=Tw?function(t){return t.trimEnd()}:function(t){return t.replace(vw,"")};function nm(e,t){return new RegExp(e,t)}var pc;if(dc){var td=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pc=function(t,n){var r;td.lastIndex=n;var o=td.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else pc=function(t,n){for(var r=[];;){var o=rm(t,n);if(o===void 0||im(o)||Lw(o))break;r.push(o),n+=o>=65536?2:1}return hc.apply(void 0,r)};var Nw=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:_e(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ye.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&mc(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(o,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mc(this.char()))return this.error(ye.INVALID_TAG,_e(a,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,_e(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:_e(r,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,_e(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,_e(r,this.clonePosition()))}else return this.error(ye.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Iw(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var u=_e(r,this.clonePosition());return{val:{type:Le.literal,value:o,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Pw(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return hc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),hc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=pc(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),s=_e(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,_e(s,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Rw(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));var l=_e(c,this.clonePosition());f={style:d,styleLocation:l}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=_e(o,this.clonePosition());if(f&&Zf(f==null?void 0:f.style,"::",0)){var E=Cw(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,f.styleLocation);return h.err?h:{val:{type:Le.number,value:r,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var T=E;this.locale&&(T=mw(E,this.locale));var d={type:Pn.dateTime,pattern:T,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?cw(T):{}},_=a==="date"?Le.date:Le.time;return{val:{type:_,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:r,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(b,ie({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var N=this.tryParsePluralOrSelectOptions(t,a,n,A);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=_e(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:r,options:ed(N.val),location:F},err:null}:{val:{type:Le.plural,value:r,options:ed(N.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,_e(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=lw(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,n)}return{val:{type:Pn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pw(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,s=!1,a=[],u=new Set,f=o.value,c=o.location;;){if(f.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=_e(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(n==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var l=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(l);if(m.err)return m;a.push([f,{value:p.val,location:_e(l,this.clonePosition())}]),u.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,c=i.location}return a.length===0?this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var u=_e(o,this.clonePosition());return i?(s*=r,Ow(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=rm(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Zf(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&im(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function mc(e){return e>=97&&e<=122||e>=65&&e<=90}function Pw(e){return mc(e)||e===47}function Iw(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function im(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Lw(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function gc(e){e.forEach(function(t){if(delete t.location,Yp(t)||Kp(t))for(var n in t.options)delete t.options[n].location,gc(t.options[n].value);else Wp(t)&&Xp(t.style)||(Vp(t)||zp(t))&&fc(t.style)?delete t.style.location:Qp(t)&&gc(t.children)})}function Mw(e,t){t===void 0&&(t={}),t=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Nw(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||gc(n.val),n.val}function Bt(e,t){var n=t&&t.cache?t.cache:$w,r=t&&t.serializer?t.serializer:Dw,o=t&&t.strategy?t.strategy:Bw;return o(e,{cache:n,serializer:r})}function kw(e){return e==null||typeof e=="number"||typeof e=="boolean"}function om(e,t,n,r){var o=kw(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function am(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function Yc(e,t,n,r,o){return n.bind(t,e,r,o)}function Bw(e,t){var n=e.length===1?om:am;return Yc(e,this,n,t.cache.create(),t.serializer)}function Fw(e,t){return Yc(e,this,am,t.cache.create(),t.serializer)}function Uw(e,t){return Yc(e,this,om,t.cache.create(),t.serializer)}var Dw=function(){return JSON.stringify(arguments)};function Kc(){this.cache=Object.create(null)}Kc.prototype.get=function(e){return this.cache[e]};Kc.prototype.set=function(e,t){this.cache[e]=t};var $w={create:function(){return new Kc}},Ft={variadic:Fw,monadic:Uw},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var Sr=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rd=function(e){vt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(Sr),jw=function(e){vt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(Sr),Hw=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(Sr),ot;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ot||(ot={}));function qw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ot.literal||n.type!==ot.literal?t.push(n):r.value+=n.value,t},[])}function sm(e){return typeof e=="function"}function Mo(e,t,n,r,o,i,s){if(e.length===1&&Kf(e[0]))return[{type:ot.literal,value:e[0].value}];for(var a=[],u=0,f=e;u<f.length;u++){var c=f[u];if(Kf(c)){a.push({type:ot.literal,value:c.value});continue}if(aw(c)){typeof i=="number"&&a.push({type:ot.literal,value:n.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(o&&h in o))throw new Hw(h,s);var d=o[h];if(ow(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ot.literal:ot.object,value:d});continue}if(Vp(c)){var l=typeof c.style=="string"?r.date[c.style]:fc(c.style)?c.style.parsedOptions:void 0;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(zp(c)){var l=typeof c.style=="string"?r.time[c.style]:fc(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(Wp(c)){var l=typeof c.style=="string"?r.number[c.style]:Xp(c.style)?c.style.parsedOptions:void 0;l&&l.scale&&(d=d*(l.scale||1)),a.push({type:ot.literal,value:n.getNumberFormat(t,l).format(d)});continue}if(Qp(c)){var p=c.children,m=c.value,E=o[m];if(!sm(E))throw new jw(m,"function",s);var T=Mo(p,t,n,r,o,i),_=E(T.map(function(w){return w.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(w){return{type:typeof w=="string"?ot.literal:ot.object,value:w}}))}if(Yp(c)){var b=c.options[d]||c.options.other;if(!b)throw new rd(c.value,d,Object.keys(c.options),s);a.push.apply(a,Mo(b.value,t,n,r,o));continue}if(Kp(c)){var b=c.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new Sr(`Intl.PluralRules is not available in this environment.
65
+ Thank you for helping to protect the Apolitical community from abusive content.`,discussion_form_title:"Write your {action}",discussion_form_placeholder:"Type your {action} here...",discussion_form_label:"Your {action}",discussion_form_explainer:"Try to make your {action} specific and practical. Be respectful and kind. See our <a>community guidelines</a>",discussion_form_success:"Your {action} has been submitted.",discussion_form_post:"Post",discussion_form_posting:"Posting...",discussion_form_save:"Save",discussion_form_saving:"Saving...",discussion_form_cancel:"Cancel",discussion_form_submitting:"Submitting...",discussion_form_placeholder_post:"Write something...",discussion_form_error:"We are unable to process your {action} right now. Please try again later or contact us if the problem persists",discussion_form_error_tooLong:"Please keep your content to {maxLength, plural, one {1 character} other {# characters}}.",discussion_form_error_tooMany:"You have posted too many times in a row. Please wait and try again.",discussion_form_error_loggedOut:"Please log in to submit your {action}.",discussion_form_error_alreadyExists:"This {action} already exists.",discussion_form_title_question:"Start a conversation",discussion_form_placeholder_question:"Ask your question here",discussion_form_explainer_question:"Unsure what you can post? See our <a>community guidelines</a>.",discussion_likes:"{number, plural, =0 {0 likes} one {# like} other {# likes}}",discussion_likes_short:"{number}",discussion_moreMenu_edit:"Edit",discussion_moreMenu_delete:"Delete",discussion_moreMenu_report:"Report",discussion_comments_screenReader:"See {count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_comments:"{count, plural, =0 {0 comments} one {# comment} other {# comments}}",discussion_responses_answer:"Answers",discussion_responses_comment:"Comments",discussion_responses_title:"{action} ({count})",discussion_responses_empty:"Be the first to respond",discussion_responses_empty_answer:"Be the first to answer this question",discussion_thread_show:"Show {count, plural, =0 {replies} one {# reply} other {# replies}}",discussion_thread_hide:"Hide replies",emailHelperTextBox_fallback_title:"Who can join",emailHelperTextBox_fallback_text:"Apolitical is a private community for public servants and policymakers.",emailHelperTextBox_default_title:"Who can join",emailHelperTextBox_default_text:"Apolitical is a private community for public servants and policymakers. <link>Learn more</link>.",emailHelperTextBox_autoApproved_title:"Email check",emailHelperTextBox_autoApproved_text:"Great! Looks like you are using a **government email domain we recognise.** You will be **auto-approved** once you sign up.",emailHelperTextBox_unrecognisedEmail_title:"Not a recognised government email",emailHelperTextBox_unrecognisedEmail_text:"To confirm you work in government or policy, please add more details below. <link>Learn more</link>.",emailHelperTextBox_pendingApproval_title:"Email is pending approval",emailHelperTextBox_pendingApproval_text:"Looks like this email has been used to sign up to Apolitical before, but <strong>we have not yet approved it.</strong> If you cannot wait to join, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_emailUnverified_title:"Hello again!",emailHelperTextBox_emailUnverified_text:"It looks like you're already an Apolitical member. To access your account, please verify your email address. <link>Click here to get a verification code sent to your email</link>.",emailHelperTextBox_emailAlreadyExists_title:"Email is already registered",emailHelperTextBox_emailAlreadyExists_text:"Looks like this email has been used to sign up to Apolitical before, try <link>logging in</link> instead. If you're still having issues, contact <mail>concierge@apolitical.co</mail>.",emailHelperTextBox_error_verificationFailedToSend_title:"Verification code failed to send",emailHelperTextBox_error_verificationFailedToSend_text:"Error details: <em>{error}</em>{br}<link>Click here to try again</link>.{br}If you continue to have problems, contact us at <mail>concierge@apolitical.co</mail>",emailHelperTextBox_error_noFunction:"Cannot resend verification code.",filters_all:"Show all",filters_disabled:"{name} - no results",footer_platform:"Platform",footer_platform_events:"Events",footer_platform_courses:"Courses",footer_platform_qanda:"Q&A",footer_platform_articles:"Articles",footer_community:"Community",footer_community_support:"Support FAQ",footer_community_post:"Post on Apolitical",footer_community_join:"Who can join",footer_community_guidelines:"Guidelines & values",footer_company:"Company",footer_company_story:"Our story",footer_company_team:"Meet our team",footer_company_careers:"Careers",footer_company_partner:"Partner with us",footer_company_contact:"Get in touch",footer_legal:"Legal",footer_legal_privacy:"Privacy policy",footer_legal_terms:"Terms & conditions",footer_legal_cookie:"Cookie policy",footer_legal_accessibility:"Accessibility statement",footer_legal_dataProtection:"Data protection officer",footer_legal_euDataProtection:"EU data protection officer",footer_contact:"Contact",footer_contact_correspondence:"Correspondence address",footer_contact_correspondence_address:"251 Southwark Bridge Road{br}London, SE1 6FL{br}United Kingdom",footer_contact_registered:"Registered address",footer_contact_registered_address:"20–22 Wenlock Road{br}London, N1 7GU{br}United Kingdom",footer_contact_berlin:"Berlin address",footer_contact_berlin_address:"Torstraße 220{br}10115 Berlin{br}Germany",footer_contact_support:"For platform support",footer_contact_business:"For business inquiries",footer_social_linkedin:"LinkedIn",footer_social_twitter:"Twitter",footer_social_facebook:"Facebook",footer_copyright:"Copyright © {currentYear} Apolitical Group Limited",form_fieldWrapper_required:"required",form_fieldWrapper_characterLimit:"Character limit:",form_error_generalError:"Sorry, something has gone. Please refresh the page and try again.",form_error_required:"Please fill in this required field",form_error_numbers:"Numbers are not allowed in this text field",form_error_email:"Please enter a valid email address",form_error_url:"Please enter a valid URL",form_submit:"Submit",form_submitting:"Submitting form...",form_submitted:"Submitted",header_skip:"Skip to main content",header_search_show:"Show search bar",header_search_hide:"Close search bar",header_menu_show:"Show navigation",header_menu_hide:"Close navigation",header_home_loggedOut:"Home",header_home_loggedIn:"My Home",header_topics:"Topics",header_topics_explore:"Explore",header_topics_explore_events:"Events",header_topics_explore_courses:"Courses","header_topics_explore_q-and-a":"Q&A",header_topics_explore_articles:"Articles",header_topics_topics:"Topics",header_topics_topics_climate:"Climate","header_topics_topics_cities-and-local-government":"Cities and local government","header_topics_topics_digital-and-data":"Digital and data",header_topics_topics_education:"Education","header_topics_topics_equity-justice-and-inclusion":"Equity, justice and inclusion","header_topics_topics_health-and-social-care":"Health and social care",header_topics_topics_innovation:"Innovation","header_topics_topics_leadership-and-skills":"Leadership and skills","header_topics_topics_life-in-government":"Life in government",header_topics_topics_policymaking:"Policymaking","header_topics_topics_transport-and-infrastructure":"Transport and infrastructure","header_topics_topics_work-and-the-economy":"Work and the economy",header_partners:"For partners",header_account:"My account",header_account_show:"Show account menu",header_account_hide:"Close account menu",header_account_profile:"My profile",header_account_settings:"Settings & privacy","header_account_log-out":"Log out",header_buttons_login:"Log in",header_buttons_signup:"Sign up",hideShowTextBox_hide:"View less",hideShowTextBox_show:"View more",joinCommunityButton:"Join community",joinCommunityButton_short:"Join",joinCommunityButton_joining:"Joining...",joinCommunityButton_member:"Member",joinCommunityButton_member_aria:"Leave community",joinCommunityButton_leave:"Leave",joinCommunityButton_leaving:"Leaving...",loadMore_button:"Load more",loadMore_endOfFeed:"You're all caught up",loadMore_error:"We're having trouble loading more content. Please refresh the page or try again later.",loadingBlock_loading:"Loading...",loadingBlock_almostDone:"Almost done...",loadingBlock_complete:"Complete!",markdown_collapsibleSection_summary:"Resources",markdown_skip_video:"Skip past video",markdown_skip_padlet:"Skip past interactive board",markdown_skip_poll:"Skip past poll",markdown_skip:"Skip to next section",markdown_iframe_title:"Course information",markdown_iframe_video:"Video",markdown_iframe_padlet:"Interactive board",markdown_iframe_poll:"Poll",member_apolitical:"Apolitical",member_community:"Community post",membersList:"Members",membersList_admin:"Admin",moreMenu:"See more options",overlay_close:"Close",pageLayout_error:"An error occurred while rendering this page. Please refresh the page or try again later.",passwordRules_intro:"We advise you not to use your name or email in your password.",passwordRules_rule_label:"Password",passwordRules_rule_8Characters:"must be longer than 8 characters",passwordRules_rule_numberSymbol:"must include a number and a symbol",passwordRules_rule_lowercaseUppercase:"must include both lower and upper case characters",passwordRules_notMet:"Your password does not meet this requirement",progressBar:"{number}% loaded",ratings_text:"Rate answer",ratings_stars:"{number} out of {total}",ratings_low:"this is incorrect or confusing",ratings_high:"this is a fantastic answer",ratings_success:"Thank you!",search_label:"Search for:",search_placeholder:"Ask Apolitical",search_clear:"Clear search",search_cta:"Search",signup_title:"Sign up",signup_full_name:"Full name",signup_full_name_placeholder:"Lionel Messi",signup_email_address:"Work email",signup_email_address_placeholder:"lionel.messi@argentina.gov",signup_job_title:"Job title",signup_job_title_placeholder:"e.g. Senior Policy Advisor",signup_organization:"Organisation",signup_organization_placeholder:"e.g. Department of Justice",signup_url:"Link to official government bio / LinkedIn <small>(optional)</small>",signup_url_placeholder:"https://organisation.com/bio",signup_expectation:"What do you want to know<small>Optional, but we will use your response to build the session!</small>",signup_expectation_placeholder:"What do you want to know?",signup_terms:"I accept Apolitical's <terms>Terms of Service</terms>, <privacy>Privacy Policy</privacy> and that I'll get essential emails for my use of Apolitical",signup_error:"We're really sorry, but we've had a problem trying to sign you up. This could be an issue with our system, so we suggest you try again later.",signup_button_join:"Join for free",signup_button_login:"Log in",signup_submitting:"Submitting form...",signup_success_title:"Thank you for applying to join Apolitical!",signup_success_text:"<p>Once we've vetted your application, you'll get a secure login link to help you get started.</p><p>Please note that trust is everything to our community, so you can't login until your identity has been verified.</p>",sharedLinks_copy_text:"Copy link",tags_community:"From the community",tooltip_loading:"Loading..."},Zb={collapsibleSection_summary:"En savoir plus"},ew=Object.freeze(Object.defineProperty({__proto__:null,en:Vc,fr:Zb},Symbol.toStringTag,{value:"Module"})),rr=(e,t,n,r,o={})=>{let i="";return`${t}_${n}`in Vc?i=e({id:`${t}_${n}`},o):i=e({id:t},{[r]:n,...o}),i},tw=(e,t,n)=>{if(!e||e===0)return"0";t||(t=0),n||(n=["k","m","b","t"]);let r=e.toString();t=Math.pow(10,t);for(let o=n.length-1;o>=0;o--){const i=Math.pow(10,(o+1)*3);if(i<=e){e=Math.round(e*t/i)/t,e===1e3&&o<n.length-1&&(e=1,o++),r=`${e}${n[o]}`;break}}return r},Hp=(e,t)=>D.Children.map(e,n=>D.cloneElement(n,{...t})),rw=e=>e.replace(/\s+/g,"").length>0,De=({variant:e="primary",size:t="medium",styling:n={muted:!1,fullWidth:!1},icon:r=!1,href:o=!1,element:i="button",onClick:s=!1,className:a="",disabled:u=!1,screenreaderText:f=!1,children:c=!1,...h})=>{const l=Ji(typeof t=="object");if(typeof t=="object"&&typeof l=="number"){const E=Object.assign({},t),T=$p(Object.keys(E));t=jp(l,T,E)}const p=[];typeof t=="string"&&p.push(t),r&&(p.push("icon"),typeof r=="object"?(p.push(r.icon),r.position?p.push(r.position):p.push("left"),r.hover&&p.push(`hover_${r.hover}`),r.animate&&(p.push("animate"),typeof r.animate=="string"&&p.push(r.animate))):(p.push(r),!r.includes("right")&&!r.includes("left")&&p.push("left"))),n.muted&&p.push("muted"),n.fullWidth&&p.push("full-width");const m={...h,className:ne(e,a,p,{"no-text":!c,disabled:u,button:o}),onClick:E=>{(!o||o[0]==="#")&&s&&(E.preventDefault(),E.stopPropagation()),s&&s(E)},disabled:typeof u=="object"&&"isClickable"in u?!u.isClickable:u};return o&&(i="a",m.href=o),D.createElement(i,m,c||(f?O.jsx(Je,{showOnFocus:!1,children:f}):null))},Zi=({buttons:e,className:t="",...n})=>{const r=e.length>1?"ul":"p",o=e.map((i,s)=>r==="p"?O.jsx(De,{...i},s):O.jsx("li",{children:O.jsx(De,{...i})},s));return D.createElement(r,{className:ne("button-wrapper",t),...n,children:o})};const Go=({maxWidth:e=!1})=>{const t=e?{"--max-width":`${e/16}rem`}:{};return O.jsx("hr",{className:ne({"has-max-width":e}),style:t})},zc=({href:e,children:t,className:n="",onClick:r,gtmContext:o,gtmType:i,...s})=>{if(e){const a={...s};return r&&(a.onClick=r),o&&(a["data-gtm-event-context"]=o),i&&(a["data-gtm-event-type"]=i),O.jsx("a",{href:e,className:ne("gtm-trackable",n),...a,children:t})}return t},Yf={card:{range:[{height:320,width:320},{height:425,width:687},{height:510,width:768}],sizes:"(min-width: 1024px) 720px, 30vw"},responsiveCard:{range:[{height:125,width:200},{height:188,width:300},{height:313,width:500}],sizes:"(min-width: 1024px) 720px, 30vw"},banner:{range:[{height:124,width:425},{height:320,width:768},{height:510,width:1368}],sizes:"(min-width: 1024px) 975px, 50vw"},feed:{range:[{height:270,width:124},{height:320,width:425},{height:425,width:687}],sizes:"(min-width: 1024px) 510px, 20vw"},fallback:{range:[{height:124,width:375},{height:320,width:687},{height:510,width:990}],sizes:"(min-width: 1024px) 885px, 35vw"},thumbnail:{range:[{height:124,width:124},{height:320,width:320},{height:510,width:510}],sizes:"(min-width: 1024px) 453px, 20vw"}},nw=({aspect:e,range:t,sizes:n})=>{const{range:r,sizes:o}=e?Yf[e]:Yf.fallback;return{range:t&&t.length>0?t:r,sizes:n||o}},iw=({format:e,height:t,query:n,width:r})=>{let o=`w=${r}&h=${t}`;return o=e?`${o}&fm=${e}`:o,o=n?`${o}&${n}`:o,o},Ns=({format:e,range:t,url:n,query:r})=>t.map(({height:o,width:i})=>`${n}?${iw({format:e,height:o,query:r,width:i})} ${i}w`).join(", ");const qp=({image:e,className:t,testId:n})=>{const{description:r,height:o,type:i,query:s,url:a,width:u,loading:f,decoding:c,fetchPriority:h}=e,{range:d,sizes:l}=nw(e),p=Ns({format:"avif",query:s,range:d,url:a}),m=Ns({format:"webp",query:s,range:d,url:a}),E=Ns({format:"",query:s,range:d,url:a});return O.jsxs("picture",{className:t,children:[i!=="image/gif"&&O.jsx("source",{type:"image/avif",srcSet:p,sizes:l,"data-testid":"source"}),O.jsx("source",{type:"image/webp",srcSet:m,sizes:l,"data-testid":"source"}),O.jsx("img",{srcSet:E,sizes:l,src:a,alt:r,loading:f||"lazy",decoding:c||"async",fetchpriority:h||"auto",width:u,height:o,"data-testid":n||"image"})]})};var lc=function(e,t){return lc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},lc(e,t)};function vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");lc(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ie=function(){return ie=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ie.apply(this,arguments)};function Nn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Dt(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Gp(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ye;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ye||(ye={}));var Le;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Le||(Le={}));var Pn;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Pn||(Pn={}));function Kf(e){return e.type===Le.literal}function ow(e){return e.type===Le.argument}function Wp(e){return e.type===Le.number}function Vp(e){return e.type===Le.date}function zp(e){return e.type===Le.time}function Yp(e){return e.type===Le.select}function Kp(e){return e.type===Le.plural}function aw(e){return e.type===Le.pound}function Qp(e){return e.type===Le.tag}function Xp(e){return!!(e&&typeof e=="object"&&e.type===Pn.number)}function fc(e){return!!(e&&typeof e=="object"&&e.type===Pn.dateTime)}var Jp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,sw=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function cw(e){var t={};return e.replace(sw,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var uw=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function lw(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(uw).filter(function(d){return d.length>0}),n=[],r=0,o=t;r<o.length;r++){var i=o[r],s=i.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],u=s.slice(1),f=0,c=u;f<c.length;f++){var h=c[f];if(h.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:u})}return n}function fw(e){return e.replace(/^(.*?)-/,"")}var Qf=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zp=/^(@+)?(\+|#+)?[rs]?$/g,dw=/(\*)(0+)|(#+)(0+)|(0+)/g,em=/^(0+)$/;function Xf(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Zp,function(n,r,o){return typeof o!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):o==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),t}function tm(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function hw(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!em.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Jf(e){var t={},n=tm(e);return n||t}function pw(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=fw(o.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ie(ie(ie({},t),{notation:"scientific"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));continue;case"engineering":t=ie(ie(ie({},t),{notation:"engineering"}),o.options.reduce(function(u,f){return ie(ie({},u),Jf(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(dw,function(u,f,c,h,d,l){if(f)t.minimumIntegerDigits=c.length;else{if(h&&d)throw new Error("We currently do not support maximum integer digits");if(l)throw new Error("We currently do not support exact integer digits")}return""});continue}if(em.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Qf.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Qf,function(u,f,c,h,d,l){return c==="*"?t.minimumFractionDigits=f.length:h&&h[0]==="#"?t.maximumFractionDigits=h.length:d&&l?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+l.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var i=o.options[0];i==="w"?t=ie(ie({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=ie(ie({},t),Xf(i)));continue}if(Zp.test(o.stem)){t=ie(ie({},t),Xf(o.stem));continue}var s=tm(o.stem);s&&(t=ie(ie({},t),s));var a=hw(o.stem);a&&(t=ie(ie({},t),a))}return t}var Oo={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","h","K"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TL:["H","hB","hb","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function mw(e,t){for(var n="",r=0;r<e.length;r++){var o=e.charAt(r);if(o==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===o;)i++,r++;var s=1+(i&1),a=i<2?1:3+(i>>1),u="a",f=gw(t);for((f=="H"||f=="k")&&(a=0);a-- >0;)n+=u;for(;s-- >0;)n=f+n}else o==="J"?n+="H":n+=o}return n}function gw(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=Oo[r||""]||Oo[n||""]||Oo["".concat(n,"-001")]||Oo["001"];return o[0]}var Ps,yw=new RegExp("^".concat(Jp.source,"*")),vw=new RegExp("".concat(Jp.source,"*$"));function _e(e,t){return{start:e,end:t}}var _w=!!String.prototype.startsWith,Ew=!!String.fromCodePoint,bw=!!Object.fromEntries,ww=!!String.prototype.codePointAt,Sw=!!String.prototype.trimStart,Tw=!!String.prototype.trimEnd,xw=!!Number.isSafeInteger,Ow=xw?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dc=!0;try{var Aw=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");dc=((Ps=Aw.exec("a"))===null||Ps===void 0?void 0:Ps[0])==="a"}catch{dc=!1}var Zf=_w?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},hc=Ew?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",o=t.length,i=0,s;o>i;){if(s=t[i++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},ed=bw?Object.fromEntries:function(t){for(var n={},r=0,o=t;r<o.length;r++){var i=o[r],s=i[0],a=i[1];n[s]=a}return n},rm=ww?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},Cw=Sw?function(t){return t.trimStart()}:function(t){return t.replace(yw,"")},Rw=Tw?function(t){return t.trimEnd()}:function(t){return t.replace(vw,"")};function nm(e,t){return new RegExp(e,t)}var pc;if(dc){var td=nm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");pc=function(t,n){var r;td.lastIndex=n;var o=td.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else pc=function(t,n){for(var r=[];;){var o=rm(t,n);if(o===void 0||im(o)||Lw(o))break;r.push(o),n+=o>=65536?2:1}return hc.apply(void 0,r)};var Nw=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var s=this.parseArgument(t,r);if(s.err)return s;o.push(s.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),o.push({type:Le.pound,location:_e(a,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(ye.UNMATCHED_CLOSING_TAG,_e(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&mc(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;o.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;o.push(s.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Le.literal,value:"<".concat(o,"/>"),location:_e(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var s=i.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!mc(this.char()))return this.error(ye.INVALID_TAG,_e(a,this.clonePosition()));var u=this.clonePosition(),f=this.parseTagName();return o!==f?this.error(ye.UNMATCHED_CLOSING_TAG,_e(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Le.tag,value:o,children:s,location:_e(r,this.clonePosition())},err:null}:this.error(ye.INVALID_TAG,_e(a,this.clonePosition())))}else return this.error(ye.UNCLOSED_TAG,_e(r,this.clonePosition()))}else return this.error(ye.INVALID_TAG,_e(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Iw(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var s=this.tryParseUnquoted(t,n);if(s){o+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){o+=a;continue}break}var u=_e(r,this.clonePosition());return{val:{type:Le.literal,value:o,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Pw(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return hc.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),hc(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ye.EMPTY_ARGUMENT,_e(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Le.argument,value:o,location:_e(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(ye.MALFORMED_ARGUMENT,_e(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=pc(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),s=_e(t,i);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(a){case"":return this.error(ye.EXPECT_ARGUMENT_TYPE,_e(s,u));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),h=this.parseSimpleArgStyleIfPossible();if(h.err)return h;var d=Rw(h.val);if(d.length===0)return this.error(ye.EXPECT_ARGUMENT_STYLE,_e(this.clonePosition(),this.clonePosition()));var l=_e(c,this.clonePosition());f={style:d,styleLocation:l}}var p=this.tryParseArgumentClose(o);if(p.err)return p;var m=_e(o,this.clonePosition());if(f&&Zf(f==null?void 0:f.style,"::",0)){var E=Cw(f.style.slice(2));if(a==="number"){var h=this.parseNumberSkeletonFromString(E,f.styleLocation);return h.err?h:{val:{type:Le.number,value:r,location:m,style:h.val},err:null}}else{if(E.length===0)return this.error(ye.EXPECT_DATE_TIME_SKELETON,m);var T=E;this.locale&&(T=mw(E,this.locale));var d={type:Pn.dateTime,pattern:T,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?cw(T):{}},_=a==="date"?Le.date:Le.time;return{val:{type:_,value:r,location:m,style:d},err:null}}}return{val:{type:a==="number"?Le.number:a==="date"?Le.date:Le.time,value:r,location:m,style:(i=f==null?void 0:f.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var b=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ye.EXPECT_SELECT_ARGUMENT_OPTIONS,_e(b,ie({},b)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),w=0;if(a!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,_e(this.clonePosition(),this.clonePosition()));this.bumpSpace();var h=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ye.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(h.err)return h;this.bumpSpace(),A=this.parseIdentifierIfPossible(),w=h.val}var N=this.tryParsePluralOrSelectOptions(t,a,n,A);if(N.err)return N;var p=this.tryParseArgumentClose(o);if(p.err)return p;var F=_e(o,this.clonePosition());return a==="select"?{val:{type:Le.select,value:r,options:ed(N.val),location:F},err:null}:{val:{type:Le.plural,value:r,options:ed(N.val),offset:w,pluralType:a==="plural"?"cardinal":"ordinal",location:F},err:null}}default:return this.error(ye.INVALID_ARGUMENT_TYPE,_e(s,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ye.EXPECT_ARGUMENT_CLOSING_BRACE,_e(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ye.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,_e(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=lw(t)}catch{return this.error(ye.INVALID_NUMBER_SKELETON,n)}return{val:{type:Pn.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?pw(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,s=!1,a=[],u=new Set,f=o.value,c=o.location;;){if(f.length===0){var h=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,ye.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=_e(h,this.clonePosition()),f=this.message.slice(h.offset,this.offset())}else break}if(u.has(f))return this.error(n==="select"?ye.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ye.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);f==="other"&&(s=!0),this.bumpSpace();var l=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,_e(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,n,r);if(p.err)return p;var m=this.tryParseArgumentClose(l);if(m.err)return m;a.push([f,{value:p.val,location:_e(l,this.clonePosition())}]),u.add(f),this.bumpSpace(),i=this.parseIdentifierIfPossible(),f=i.value,c=i.location}return a.length===0?this.error(n==="select"?ye.EXPECT_SELECT_ARGUMENT_SELECTOR:ye.EXPECT_PLURAL_ARGUMENT_SELECTOR,_e(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(ye.MISSING_OTHER_CLAUSE,_e(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,s=s*10+(a-48),this.bump();else break}var u=_e(o,this.clonePosition());return i?(s*=r,Ow(s)?{val:s,err:null}:this.error(n,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=rm(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Zf(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&im(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function mc(e){return e>=97&&e<=122||e>=65&&e<=90}function Pw(e){return mc(e)||e===47}function Iw(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function im(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Lw(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function gc(e){e.forEach(function(t){if(delete t.location,Yp(t)||Kp(t))for(var n in t.options)delete t.options[n].location,gc(t.options[n].value);else Wp(t)&&Xp(t.style)||(Vp(t)||zp(t))&&fc(t.style)?delete t.style.location:Qp(t)&&gc(t.children)})}function Mw(e,t){t===void 0&&(t={}),t=ie({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Nw(e,t).parse();if(n.err){var r=SyntaxError(ye[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||gc(n.val),n.val}function Bt(e,t){var n=t&&t.cache?t.cache:$w,r=t&&t.serializer?t.serializer:Dw,o=t&&t.strategy?t.strategy:Bw;return o(e,{cache:n,serializer:r})}function kw(e){return e==null||typeof e=="number"||typeof e=="boolean"}function om(e,t,n,r){var o=kw(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function am(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function Yc(e,t,n,r,o){return n.bind(t,e,r,o)}function Bw(e,t){var n=e.length===1?om:am;return Yc(e,this,n,t.cache.create(),t.serializer)}function Fw(e,t){return Yc(e,this,am,t.cache.create(),t.serializer)}function Uw(e,t){return Yc(e,this,om,t.cache.create(),t.serializer)}var Dw=function(){return JSON.stringify(arguments)};function Kc(){this.cache=Object.create(null)}Kc.prototype.get=function(e){return this.cache[e]};Kc.prototype.set=function(e,t){this.cache[e]=t};var $w={create:function(){return new Kc}},Ft={variadic:Fw,monadic:Uw},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var wr=function(e){vt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rd=function(e){vt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(wr),jw=function(e){vt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(wr),Hw=function(e){vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(wr),ot;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(ot||(ot={}));function qw(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==ot.literal||n.type!==ot.literal?t.push(n):r.value+=n.value,t},[])}function sm(e){return typeof e=="function"}function Mo(e,t,n,r,o,i,s){if(e.length===1&&Kf(e[0]))return[{type:ot.literal,value:e[0].value}];for(var a=[],u=0,f=e;u<f.length;u++){var c=f[u];if(Kf(c)){a.push({type:ot.literal,value:c.value});continue}if(aw(c)){typeof i=="number"&&a.push({type:ot.literal,value:n.getNumberFormat(t).format(i)});continue}var h=c.value;if(!(o&&h in o))throw new Hw(h,s);var d=o[h];if(ow(c)){(!d||typeof d=="string"||typeof d=="number")&&(d=typeof d=="string"||typeof d=="number"?String(d):""),a.push({type:typeof d=="string"?ot.literal:ot.object,value:d});continue}if(Vp(c)){var l=typeof c.style=="string"?r.date[c.style]:fc(c.style)?c.style.parsedOptions:void 0;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(zp(c)){var l=typeof c.style=="string"?r.time[c.style]:fc(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:ot.literal,value:n.getDateTimeFormat(t,l).format(d)});continue}if(Wp(c)){var l=typeof c.style=="string"?r.number[c.style]:Xp(c.style)?c.style.parsedOptions:void 0;l&&l.scale&&(d=d*(l.scale||1)),a.push({type:ot.literal,value:n.getNumberFormat(t,l).format(d)});continue}if(Qp(c)){var p=c.children,m=c.value,E=o[m];if(!sm(E))throw new jw(m,"function",s);var T=Mo(p,t,n,r,o,i),_=E(T.map(function(w){return w.value}));Array.isArray(_)||(_=[_]),a.push.apply(a,_.map(function(w){return{type:typeof w=="string"?ot.literal:ot.object,value:w}}))}if(Yp(c)){var b=c.options[d]||c.options.other;if(!b)throw new rd(c.value,d,Object.keys(c.options),s);a.push.apply(a,Mo(b.value,t,n,r,o));continue}if(Kp(c)){var b=c.options["=".concat(d)];if(!b){if(!Intl.PluralRules)throw new wr(`Intl.PluralRules is not available in this environment.
66
66
  Try polyfilling it using "@formatjs/intl-pluralrules"
67
67
  `,$t.MISSING_INTL_API,s);var A=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[A]||c.options.other}if(!b)throw new rd(c.value,d,Object.keys(c.options),s);a.push.apply(a,Mo(b.value,t,n,r,o,d-(c.offset||0)));continue}}return qw(a)}function Gw(e,t){return t?ie(ie(ie({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ie(ie({},e[r]),t[r]||{}),n},{})):e}function Ww(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=Gw(e[r],t[r]),n},ie({},e)):e}function Is(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Vw(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.number),strategy:Ft.variadic}),getDateTimeFormat:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.dateTime),strategy:Ft.variadic}),getPluralRules:Bt(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Dt([void 0],n,!1)))},{cache:Is(e.pluralRules),strategy:Ft.variadic})}}var cm=function(){function e(t,n,r,o){n===void 0&&(n=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var f=i.formatToParts(u);if(f.length===1)return f[0].value;var c=f.reduce(function(h,d){return!h.length||d.type!==ot.literal||typeof h[h.length-1]!="string"?h.push(d.value):h[h.length-1]+=d.value,h},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(u){return Mo(i.ast,i.locales,i.formatters,i.formats,u,void 0,i.message)},this.resolvedOptions=function(){var u;return{locale:((u=i.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=o||{};s.formatters;var a=Nn(s,["formatters"]);this.ast=e.__parse(t,ie(ie({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ww(e.formats,r),this.formatters=o&&o.formatters||Vw(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Mw,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),en;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(en||(en={}));var eo=function(e){vt(t,e);function t(n,r,o){var i=this,s=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
68
68
  `).concat(s?`
@@ -73,17 +73,17 @@ Locale: `).concat(r,`
73
73
  MessageID: `).concat(o==null?void 0:o.id,`
74
74
  Default Message: `).concat(o==null?void 0:o.defaultMessage,`
75
75
  Description: `).concat(o==null?void 0:o.description,`
76
- `),r,i)||this;return s.descriptor=o,s.locale=r,s}return t}(_t),Kw=function(e){vt(t,e);function t(n,r){var o=e.call(this,en.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(eo);function nn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var Qw=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Xw=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},um={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Qw,onWarn:Xw};function lm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Yr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Jw(e){e===void 0&&(e=lm());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:Yr(e.dateTime),strategy:Ft.variadic}),i=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:Yr(e.number),strategy:Ft.variadic}),s=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,Dt([void 0],u,!1)))},{cache:Yr(e.pluralRules),strategy:Ft.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Bt(function(a,u,f,c){return new cm(a,u,f,ie({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},c||{}))},{cache:Yr(e.message),strategy:Ft.variadic}),getRelativeTimeFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(t.bind.apply(t,Dt([void 0],a,!1)))},{cache:Yr(e.relativeTime),strategy:Ft.variadic}),getPluralRules:s,getListFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(n.bind.apply(n,Dt([void 0],a,!1)))},{cache:Yr(e.list),strategy:Ft.variadic}),getDisplayNames:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(r.bind.apply(r,Dt([void 0],a,!1)))},{cache:Yr(e.displayNames),strategy:Ft.variadic})}}function Qc(e,t,n,r){var o=e&&e[t],i;if(o&&(i=o[n]),i)return i;r(new zw("No ".concat(t," format named: ").concat(n)))}function Ao(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ie({timeZone:t},e[r]),n},{})}function id(e,t){var n=Object.keys(ie(ie({},e),t));return n.reduce(function(r,o){return r[o]=ie(ie({},e[o]||{}),t[o]||{}),r},{})}function od(e,t){if(!t)return e;var n=cm.formats;return ie(ie(ie({},n),e),{date:id(Ao(n.date,t),Ao(e.date||{},t)),time:id(Ao(n.time,t),Ao(e.time||{},t))})}var yc=function(e,t,n,r,o){var i=e.locale,s=e.formats,a=e.messages,u=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,l=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,m=n.defaultMessage;Gp(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(p),T=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(T)&&T.length===1&&T[0].type===Le.literal)return T[0].value;if(!r&&T&&typeof T=="string"&&!l)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ie(ie({},l),r||{}),s=od(s,d),f=od(f,d),!T){if(c===!1&&T==="")return T;if((!m||i&&i.toLowerCase()!==u.toLowerCase())&&h(new Kw(n,i)),m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){return h(new Ls('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),i,n,b)),typeof m=="string"?m:E}return E}try{var _=t.getMessageFormat(T,i,s,ie({formatters:t},o||{}));return _.format(r)}catch(b){h(new Ls('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),i,n,b))}if(m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){h(new Ls('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),i,n,b))}return typeof T=="string"?T:typeof m=="string"?m:E},fm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function na(e,t,n,r){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var u=r.format,f=ie(ie({},a&&{timeZone:a}),u&&Qc(i,t,u,s)),c=nn(r,fm,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ie(ie({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function Zw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).format(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return String(a)}function eS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).format(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return String(a)}function tS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=n[2],a=s===void 0?{}:s,u=e.timeZone,f=e.locale,c=e.onError,h=nn(a,fm,u?{timeZone:u}:{});try{return t(f,h).formatRange(o,i)}catch(d){c(new _t("Error formatting date time range.",e.locale,d))}return String(o)}function rS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return[]}function nS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return[]}var iS=["style","type","fallback","languageDisplay"];function oS(e,t,n,r){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new Sr(`Intl.DisplayNames is not available in this environment.
76
+ `),r,i)||this;return s.descriptor=o,s.locale=r,s}return t}(_t),Kw=function(e){vt(t,e);function t(n,r){var o=e.call(this,en.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var s;return(s=i.value)!==null&&s!==void 0?s:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(eo);function nn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var Qw=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},Xw=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},um={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:Qw,onWarn:Xw};function lm(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function zr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Jw(e){e===void 0&&(e=lm());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.DateTimeFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.dateTime),strategy:Ft.variadic}),i=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.NumberFormat).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.number),strategy:Ft.variadic}),s=Bt(function(){for(var a,u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];return new((a=Intl.PluralRules).bind.apply(a,Dt([void 0],u,!1)))},{cache:zr(e.pluralRules),strategy:Ft.variadic});return{getDateTimeFormat:o,getNumberFormat:i,getMessageFormat:Bt(function(a,u,f,c){return new cm(a,u,f,ie({formatters:{getNumberFormat:i,getDateTimeFormat:o,getPluralRules:s}},c||{}))},{cache:zr(e.message),strategy:Ft.variadic}),getRelativeTimeFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(t.bind.apply(t,Dt([void 0],a,!1)))},{cache:zr(e.relativeTime),strategy:Ft.variadic}),getPluralRules:s,getListFormat:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(n.bind.apply(n,Dt([void 0],a,!1)))},{cache:zr(e.list),strategy:Ft.variadic}),getDisplayNames:Bt(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return new(r.bind.apply(r,Dt([void 0],a,!1)))},{cache:zr(e.displayNames),strategy:Ft.variadic})}}function Qc(e,t,n,r){var o=e&&e[t],i;if(o&&(i=o[n]),i)return i;r(new zw("No ".concat(t," format named: ").concat(n)))}function Ao(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ie({timeZone:t},e[r]),n},{})}function id(e,t){var n=Object.keys(ie(ie({},e),t));return n.reduce(function(r,o){return r[o]=ie(ie({},e[o]||{}),t[o]||{}),r},{})}function od(e,t){if(!t)return e;var n=cm.formats;return ie(ie(ie({},n),e),{date:id(Ao(n.date,t),Ao(e.date||{},t)),time:id(Ao(n.time,t),Ao(e.time||{},t))})}var yc=function(e,t,n,r,o){var i=e.locale,s=e.formats,a=e.messages,u=e.defaultLocale,f=e.defaultFormats,c=e.fallbackOnEmptyString,h=e.onError,d=e.timeZone,l=e.defaultRichTextElements;n===void 0&&(n={id:""});var p=n.id,m=n.defaultMessage;Gp(!!p,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var E=String(p),T=a&&Object.prototype.hasOwnProperty.call(a,E)&&a[E];if(Array.isArray(T)&&T.length===1&&T[0].type===Le.literal)return T[0].value;if(!r&&T&&typeof T=="string"&&!l)return T.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ie(ie({},l),r||{}),s=od(s,d),f=od(f,d),!T){if(c===!1&&T==="")return T;if((!m||i&&i.toLowerCase()!==u.toLowerCase())&&h(new Kw(n,i)),m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){return h(new Ls('Error formatting default message for: "'.concat(E,'", rendering default message verbatim'),i,n,b)),typeof m=="string"?m:E}return E}try{var _=t.getMessageFormat(T,i,s,ie({formatters:t},o||{}));return _.format(r)}catch(b){h(new Ls('Error formatting message: "'.concat(E,'", using ').concat(m?"default message":"id"," as fallback."),i,n,b))}if(m)try{var _=t.getMessageFormat(m,u,f,o);return _.format(r)}catch(b){h(new Ls('Error formatting the default message for: "'.concat(E,'", rendering message verbatim'),i,n,b))}return typeof T=="string"?T:typeof m=="string"?m:E},fm=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function na(e,t,n,r){var o=e.locale,i=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var u=r.format,f=ie(ie({},a&&{timeZone:a}),u&&Qc(i,t,u,s)),c=nn(r,fm,f);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ie(ie({},c),{hour:"numeric",minute:"numeric"})),n(o,c)}function Zw(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).format(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return String(a)}function eS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).format(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return String(a)}function tS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=n[2],a=s===void 0?{}:s,u=e.timeZone,f=e.locale,c=e.onError,h=nn(a,fm,u?{timeZone:u}:{});try{return t(f,h).formatRange(o,i)}catch(d){c(new _t("Error formatting date time range.",e.locale,d))}return String(o)}function rS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"date",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting date.",e.locale,u))}return[]}function nS(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=n[0],i=n[1],s=i===void 0?{}:i,a=typeof o=="string"?new Date(o||0):o;try{return na(e,"time",t,s).formatToParts(a)}catch(u){e.onError(new _t("Error formatting time.",e.locale,u))}return[]}var iS=["style","type","fallback","languageDisplay"];function oS(e,t,n,r){var o=e.locale,i=e.onError,s=Intl.DisplayNames;s||i(new wr(`Intl.DisplayNames is not available in this environment.
77
77
  Try polyfilling it using "@formatjs/intl-displaynames"
78
- `,$t.MISSING_INTL_API));var a=nn(r,iS);try{return t(o,a).of(n)}catch(u){i(new _t("Error formatting display name.",o,u))}}var aS=["type","style"],ad=Date.now();function sS(e){return"".concat(ad,"_").concat(e,"_").concat(ad)}function cS(e,t,n,r){r===void 0&&(r={});var o=dm(e,t,n,r).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function dm(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new Sr(`Intl.ListFormat is not available in this environment.
78
+ `,$t.MISSING_INTL_API));var a=nn(r,iS);try{return t(o,a).of(n)}catch(u){i(new _t("Error formatting display name.",o,u))}}var aS=["type","style"],ad=Date.now();function sS(e){return"".concat(ad,"_").concat(e,"_").concat(ad)}function cS(e,t,n,r){r===void 0&&(r={});var o=dm(e,t,n,r).reduce(function(i,s){var a=s.value;return typeof a!="string"?i.push(a):typeof i[i.length-1]=="string"?i[i.length-1]+=a:i.push(a),i},[]);return o.length===1?o[0]:o.length===0?"":o}function dm(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||i(new wr(`Intl.ListFormat is not available in this environment.
79
79
  Try polyfilling it using "@formatjs/intl-listformat"
80
- `,$t.MISSING_INTL_API));var a=nn(r,aS);try{var u={},f=n.map(function(c,h){if(typeof c=="object"){var d=sS(h);return u[d]=c,d}return String(c)});return t(o,a).formatToParts(f).map(function(c){return c.type==="literal"?c:ie(ie({},c),{value:u[c.value]||c.value})})}catch(c){i(new _t("Error formatting list.",o,c))}return n}var uS=["type"];function lS(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new Sr(`Intl.PluralRules is not available in this environment.
80
+ `,$t.MISSING_INTL_API));var a=nn(r,aS);try{var u={},f=n.map(function(c,h){if(typeof c=="object"){var d=sS(h);return u[d]=c,d}return String(c)});return t(o,a).formatToParts(f).map(function(c){return c.type==="literal"?c:ie(ie({},c),{value:u[c.value]||c.value})})}catch(c){i(new _t("Error formatting list.",o,c))}return n}var uS=["type"];function lS(e,t,n,r){var o=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new wr(`Intl.PluralRules is not available in this environment.
81
81
  Try polyfilling it using "@formatjs/intl-pluralrules"
82
- `,$t.MISSING_INTL_API));var s=nn(r,uS);try{return t(o,s).select(n)}catch(a){i(new _t("Error formatting plural.",o,a))}return"other"}var fS=["numeric","style"];function dS(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Qc(o,"relative",s,i)||{},u=nn(n,fS,a);return t(r,u)}function hS(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new Sr(`Intl.RelativeTimeFormat is not available in this environment.
82
+ `,$t.MISSING_INTL_API));var s=nn(r,uS);try{return t(o,s).select(n)}catch(a){i(new _t("Error formatting plural.",o,a))}return"other"}var fS=["numeric","style"];function dS(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&Qc(o,"relative",s,i)||{},u=nn(n,fS,a);return t(r,u)}function hS(e,t,n,r,o){o===void 0&&(o={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new wr(`Intl.RelativeTimeFormat is not available in this environment.
83
83
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
84
84
  `,$t.MISSING_INTL_API));try{return dS(e,t,o).format(n,r)}catch(s){e.onError(new _t("Error formatting relative time.",e.locale,s))}return String(n)}var pS=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function hm(e,t,n){var r=e.locale,o=e.formats,i=e.onError;n===void 0&&(n={});var s=n.format,a=s&&Qc(o,"number",s,i)||{},u=nn(n,pS,a);return t(r,u)}function mS(e,t,n,r){r===void 0&&(r={});try{return hm(e,t,r).format(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return String(n)}function gS(e,t,n,r){r===void 0&&(r={});try{return hm(e,t,r).formatToParts(n)}catch(o){e.onError(new _t("Error formatting number.",e.locale,o))}return[]}function yS(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function vS(e){e.onWarn&&e.defaultRichTextElements&&yS(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
85
85
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
86
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function _S(e,t){var n=Jw(t),r=ie(ie({},um),e),o=r.locale,i=r.defaultLocale,s=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Yw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),vS(r),ie(ie({},r),{formatters:n,formatNumber:mS.bind(null,r,n.getNumberFormat),formatNumberToParts:gS.bind(null,r,n.getNumberFormat),formatRelativeTime:hS.bind(null,r,n.getRelativeTimeFormat),formatDate:Zw.bind(null,r,n.getDateTimeFormat),formatDateToParts:rS.bind(null,r,n.getDateTimeFormat),formatTime:eS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:tS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:nS.bind(null,r,n.getDateTimeFormat),formatPlural:lS.bind(null,r,n.getPluralRules),formatMessage:yc.bind(null,r,n),$t:yc.bind(null,r,n),formatList:cS.bind(null,r,n.getListFormat),formatListToParts:dm.bind(null,r,n.getListFormat),formatDisplayName:oS.bind(null,r,n.getDisplayNames)})}function pm(e){Gp(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var mm=ie(ie({},um),{textComponent:Oe.Fragment});function ES(e){return function(t){return e(Oe.Children.toArray(t))}}function vc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Xc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Oe.createContext(null)):Oe.createContext(null);Xc.Consumer;var bS=Xc.Provider,wS=bS,SS=Xc;function Ee(){var e=Oe.useContext(SS);return pm(e),e}var _c;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(_c||(_c={}));var Ec;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ec||(Ec={}));function gm(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=typeof o=="string"?new Date(o||0):o,u=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return i(u)};return t.displayName=Ec[e],t}function to(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=r[e](o,s);if(typeof i=="function")return i(a);var u=r.textComponent||Oe.Fragment;return Oe.createElement(u,null,a)};return t.displayName=_c[e],t}function Ms(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function ym(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=sm(r)?ES(r):r,t},{})}var sd=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=ym(r),a=yc.apply(void 0,Dt([e,t,n,s],o,!1));return Array.isArray(a)?Oe.Children.toArray(a):a},bc=function(e,t){var n=e.defaultRichTextElements,r=Nn(e,["defaultRichTextElements"]),o=ym(n),i=_S(ie(ie(ie({},mm),r),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ie(ie({},i),{formatMessage:sd.bind(null,s,i.formatters),$t:sd.bind(null,s,i.formatters)})},TS=function(e){vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=lm(),n.state={cache:n.cache,intl:bc(Ms(n.props),n.cache),prevConfig:Ms(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,i=r.cache,s=Ms(n);return vc(o,s)?null:{intl:bc(s,i),prevConfig:s}},t.prototype.render=function(){return pm(this.state.intl),Oe.createElement(wS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=mm,t}(Oe.PureComponent);function xS(e,t){var n=e.values,r=Nn(e,["values"]),o=t.values,i=Nn(t,["values"]);return vc(o,n)&&vc(r,i)}function vm(e){var t=Ee(),n=t.formatMessage,r=t.textComponent,o=r===void 0?Oe.Fragment:r,i=e.id,s=e.description,a=e.defaultMessage,u=e.values,f=e.children,c=e.tagName,h=c===void 0?o:c,d=e.ignoreTag,l={id:i,description:s,defaultMessage:a},p=n(l,u,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?Oe.createElement(h,null,Oe.Children.toArray(p)):Oe.createElement(Oe.Fragment,null,p)}vm.displayName="FormattedMessage";var _m=Oe.memo(vm,xS);_m.displayName="MemoizedFormattedMessage";const vr=_m;to("formatDate");to("formatTime");to("formatNumber");to("formatList");to("formatDisplayName");gm("formatDate");gm("formatTime");let Ui=!1;const Em=({isOpen:e=!1,isLoading:t=!1,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState("hidden");D.useEffect(()=>{const u=o.current;if(u)return u.addEventListener("transitionend",a),()=>{u.removeEventListener("transitionend",a)}},[]);const a=({propertyName:u})=>{u==="opacity"&&(Ui!==!1&&clearTimeout(Ui),s(f=>f==="opening"?"open":f==="closing"?"closed":f==="closed"?"hidden":f))};return _r(()=>{Ui!==!1&&clearTimeout(Ui);let u="open";e?s("opening"):(s("closing"),u="hidden"),Ui=setTimeout(()=>{s(u)},300)},[e]),O.jsx("aside",{ref:o,className:ne("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?O.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?O.jsx("p",{children:n}):n})};const Jc=({children:e,className:t="",...n})=>O.jsx("section",{className:ne("full-width-section",t),...n,children:e});const OS=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(o=>{r.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),O.jsx(Jc,{className:ne("download-section",n),children:O.jsxs(O.Fragment,{children:[D.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(Zi,{buttons:r})]})})};const AS=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:ne("logos",n),children:[e&&D.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:ne({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:u=!1},f)=>{if(!i||!i.url)return null;const c=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:a?O.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),u&&O.jsx("small",{children:u})]},window.btoa(`${i.url}_${f}`))})})]})};const CS=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],RS=({content:e,image:t,variant:n="default",spacing:r="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},u={};return s.forEach(f=>{if(!e[f]){u[f]=!1;return}if(typeof e[f]=="object"){u[f]=e[f];const{text:c,element:h}=e[f];if(h&&CS.includes(h.toLowerCase()))return;u[f]={text:c,element:a[f]};return}u[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const c=document.getElementById(o.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(Jc,{className:ne("banner-section",n,r,{"has-image":t,"has-extra-spacing":r==="normal"&&u.eyebrow&&u.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(u[f]&&typeof u[f]=="object"){const{text:c,element:h=""}=u[f];return D.createElement(h.toLowerCase(),{key:f,className:f},c)}return null}),i,o&&o.text&&o.link&&O.jsx(De,{variant:t||n==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(qp,{image:{...t,aspect:"banner"}})]})})},NS=D.memo(RS);const PS=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:o})=>!n&&!r?null:O.jsxs("aside",{className:ne("marketing-block",e),children:[n&&O.jsx("p",{className:"title",children:n}),r&&O.jsx("p",{children:r}),t&&O.jsx(De,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var bm={exports:{}};(function(e){(function(t,n){var r="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,u,f){return f.length===a.length||!u.ellipsis||(f+=u.ellipsis),f}function s(a,u,f){var c="",h=!0,d=u,l,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?r:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=c.length,h=o.exec(a),!h||h.index-c.length>=d||o.lastIndex>=u+3e3)return c+=a.substring(c.length,u),i(a,f,c);if(l=h[0],p=h.index,c+=a.substring(c.length,p+l.length),d-=p+l.length,d<=0)break}return i(a,f,c)}e.exports?e.exports=s:t.truncate=s})(String)})(bm);var IS=bm.exports;const wm=jt(IS),Wo="https://storage.googleapis.com/apolitical-assets/",LS="200,000+";const Zc=({label:e=!1,className:t="",children:n})=>{const r=Ee();return O.jsxs("details",{className:ne("collapsible-section",t),children:[O.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:n})]})};function Qr(){return Qr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qr.apply(this,arguments)}const MS=["children","options"],cd=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),ud={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},kS=["style","script"],BS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,FS=/mailto:/i,US=/\n{2,}$/,Sm=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,DS=/^ *> ?/gm,$S=/^ {2,}\n/,jS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Tm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,xm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,qS=/^(?:\n *)*\n/,GS=/\r\n?/g,WS=/^\[\^([^\]]+)](:.*)\n/,VS=/^\[\^([^\]]+)]/,zS=/\f/g,YS=/^\s*?\[(x|\s)\]/,Om=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Am=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Cm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,KS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Rm=/^<!--[\s\S]*?(?:-->)/,QS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XS=/^\{.*\}$/,JS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZS=/^<([^ >]+@[^ >]+)>/,eT=/^<([^ >]+:\/[^ >]+)>/,tT=/-([a-z])?/gi,Nm=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,rT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,nT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oT=/(\[|\])/g,aT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sT=/\t/g,cT=/^ *\| */,uT=/(^ *\||\| *$)/g,lT=/ *$/,fT=/^ *:-+: *$/,dT=/^ *:-+ *$/,hT=/^ *-+: *$/,pT=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,mT=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,gT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,yT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,vT=/^\\([^0-9A-Za-z\s])/,_T=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ET=/^\n+/,bT=/^([ \t]*)/,wT=/\\([^\\])/g,ld=/ *\n+$/,ST=/(?:^|\n)( *)$/,eu="(?:\\d+\\.)",tu="(?:[*+-])";function Pm(e){return"( *)("+(e===1?eu:tu)+") +"}const Im=Pm(1),Lm=Pm(2);function Mm(e){return new RegExp("^"+(e===1?Im:Lm))}const TT=Mm(1),xT=Mm(2);function km(e){return new RegExp("^"+(e===1?Im:Lm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eu:tu)+" )[^\\n]*)*(\\n|$)","gm")}const Bm=km(1),Fm=km(2);function Um(e){const t=e===1?eu:tu;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Dm=Um(1),$m=Um(2);function fd(e,t){const n=t===1,r=n?Dm:$m,o=n?Bm:Fm,i=n?TT:xT;return{t(s,a,u){const f=ST.exec(u);return f&&(a.o||!a._&&!a.u)?r.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,u){const f=n?+s[2]:void 0,c=s[0].replace(US,`
86
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function _S(e,t){var n=Jw(t),r=ie(ie({},um),e),o=r.locale,i=r.defaultLocale,s=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&s?s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&s&&s(new nd('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new Yw('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),vS(r),ie(ie({},r),{formatters:n,formatNumber:mS.bind(null,r,n.getNumberFormat),formatNumberToParts:gS.bind(null,r,n.getNumberFormat),formatRelativeTime:hS.bind(null,r,n.getRelativeTimeFormat),formatDate:Zw.bind(null,r,n.getDateTimeFormat),formatDateToParts:rS.bind(null,r,n.getDateTimeFormat),formatTime:eS.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:tS.bind(null,r,n.getDateTimeFormat),formatTimeToParts:nS.bind(null,r,n.getDateTimeFormat),formatPlural:lS.bind(null,r,n.getPluralRules),formatMessage:yc.bind(null,r,n),$t:yc.bind(null,r,n),formatList:cS.bind(null,r,n.getListFormat),formatListToParts:dm.bind(null,r,n.getListFormat),formatDisplayName:oS.bind(null,r,n.getDisplayNames)})}function pm(e){Gp(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var mm=ie(ie({},um),{textComponent:Oe.Fragment});function ES(e){return function(t){return e(Oe.Children.toArray(t))}}function vc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var s=n[i];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}var Xc=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Oe.createContext(null)):Oe.createContext(null);Xc.Consumer;var bS=Xc.Provider,wS=bS,SS=Xc;function Ee(){var e=Oe.useContext(SS);return pm(e),e}var _c;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(_c||(_c={}));var Ec;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ec||(Ec={}));function gm(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=typeof o=="string"?new Date(o||0):o,u=e==="formatDate"?r.formatDateToParts(a,s):r.formatTimeToParts(a,s);return i(u)};return t.displayName=Ec[e],t}function to(e){var t=function(n){var r=Ee(),o=n.value,i=n.children,s=Nn(n,["value","children"]),a=r[e](o,s);if(typeof i=="function")return i(a);var u=r.textComponent||Oe.Fragment;return Oe.createElement(u,null,a)};return t.displayName=_c[e],t}function Ms(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}function ym(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=sm(r)?ES(r):r,t},{})}var sd=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=ym(r),a=yc.apply(void 0,Dt([e,t,n,s],o,!1));return Array.isArray(a)?Oe.Children.toArray(a):a},bc=function(e,t){var n=e.defaultRichTextElements,r=Nn(e,["defaultRichTextElements"]),o=ym(n),i=_S(ie(ie(ie({},mm),r),{defaultRichTextElements:o}),t),s={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:o};return ie(ie({},i),{formatMessage:sd.bind(null,s,i.formatters),$t:sd.bind(null,s,i.formatters)})},TS=function(e){vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=lm(),n.state={cache:n.cache,intl:bc(Ms(n.props),n.cache),prevConfig:Ms(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var o=r.prevConfig,i=r.cache,s=Ms(n);return vc(o,s)?null:{intl:bc(s,i),prevConfig:s}},t.prototype.render=function(){return pm(this.state.intl),Oe.createElement(wS,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=mm,t}(Oe.PureComponent);function xS(e,t){var n=e.values,r=Nn(e,["values"]),o=t.values,i=Nn(t,["values"]);return vc(o,n)&&vc(r,i)}function vm(e){var t=Ee(),n=t.formatMessage,r=t.textComponent,o=r===void 0?Oe.Fragment:r,i=e.id,s=e.description,a=e.defaultMessage,u=e.values,f=e.children,c=e.tagName,h=c===void 0?o:c,d=e.ignoreTag,l={id:i,description:s,defaultMessage:a},p=n(l,u,{ignoreTag:d});return typeof f=="function"?f(Array.isArray(p)?p:[p]):h?Oe.createElement(h,null,Oe.Children.toArray(p)):Oe.createElement(Oe.Fragment,null,p)}vm.displayName="FormattedMessage";var _m=Oe.memo(vm,xS);_m.displayName="MemoizedFormattedMessage";const vr=_m;to("formatDate");to("formatTime");to("formatNumber");to("formatList");to("formatDisplayName");gm("formatDate");gm("formatTime");let Ui=!1;const Em=({isOpen:e=!1,isLoading:t=!1,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState("hidden");D.useEffect(()=>{const u=o.current;if(u)return u.addEventListener("transitionend",a),()=>{u.removeEventListener("transitionend",a)}},[]);const a=({propertyName:u})=>{u==="opacity"&&(Ui!==!1&&clearTimeout(Ui),s(f=>f==="opening"?"open":f==="closing"?"closed":f==="closed"?"hidden":f))};return Jr(()=>{Ui!==!1&&clearTimeout(Ui);let u="open";e?s("opening"):(s("closing"),u="hidden"),Ui=setTimeout(()=>{s(u)},300)},[e]),O.jsx("aside",{ref:o,className:ne("tooltip text-medium",i,{loading:t}),hidden:i==="hidden",children:t?O.jsx("p",{children:r.formatMessage({id:"tooltip_loading"})}):typeof n=="string"?O.jsx("p",{children:n}):n})};const Jc=({children:e,className:t="",...n})=>O.jsx("section",{className:ne("full-width-section",t),...n,children:e});const OS=({text:e,buttons:t,className:n=""})=>{const r=[];return t.forEach(o=>{r.push({href:o.link,variant:"secondary",size:{mobile:"medium",1024:"large"},className:"gtm-trackable","data-gtm-event-type":"download-click","data-gtm-event-context":o.eventContext||"Download",target:"_blank",children:o.text})}),O.jsx(Jc,{className:ne("download-section",n),children:O.jsxs(O.Fragment,{children:[D.createElement(typeof e=="string"?"h2":e.element,{className:"text"},typeof e=="string"?e:e.text),O.jsx(Zi,{buttons:r})]})})};const AS=({title:e=!1,logos:t=[],className:n=""})=>{const r=t.length;if(r===0)return null;const o={element:typeof e=="object"?e.element:"h2",text:typeof e=="string"?e:typeof e=="object"?e.text:""};return O.jsxs("div",{className:ne("logos",n),children:[e&&D.createElement(o.element,{className:"title"},o.text),O.jsx("ul",{className:ne({"two-col":r===2||r===4,"three-col":r===5||r<=10&&r%3===0}),children:t.map(({logo:i,nameOfBusiness:s,link:a=!1,description:u=!1},f)=>{if(!i||!i.url)return null;const c=O.jsx("img",{src:i.url,width:i.width||"auto",height:i.height||"auto",alt:s});return O.jsxs("li",{children:[O.jsx("p",{className:"img-wrapper",children:a?O.jsx("a",{href:a,target:"_blank",rel:"nofollow noreferrer noopener",children:c}):c}),u&&O.jsx("small",{children:u})]},window.btoa(`${i.url}_${f}`))})})]})};const CS=["small","span","strong","em","p","h1","h2","h3","h4","h5","h6","blockquote","q"],RS=({content:e,image:t,variant:n="default",spacing:r="normal",cta:o,children:i})=>{const s=["eyebrow","title","text"],a={eyebrow:"small",title:"h1",text:"p"},u={};return s.forEach(f=>{if(!e[f]){u[f]=!1;return}if(typeof e[f]=="object"){u[f]=e[f];const{text:c,element:h}=e[f];if(h&&CS.includes(h.toLowerCase()))return;u[f]={text:c,element:a[f]};return}u[f]={text:e[f],element:a[f]}}),o&&o.link&&o.link[0]==="#"&&(o.props||(o.props={}),o.props.onClick=f=>{f.preventDefault(),f.stopPropagation();const c=document.getElementById(o.link.substring(1));c&&c.scrollIntoView({behavior:"smooth"})}),O.jsx(Jc,{className:ne("banner-section",n,r,{"has-image":t,"has-extra-spacing":r==="normal"&&u.eyebrow&&u.title}),children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"content-wrapper",children:[s.map(f=>{if(u[f]&&typeof u[f]=="object"){const{text:c,element:h=""}=u[f];return D.createElement(h.toLowerCase(),{key:f,className:f},c)}return null}),i,o&&o.text&&o.link&&O.jsx(De,{variant:t||n==="light"?"primary":"secondary",size:{mobile:"medium",768:"large"},href:o.link,...o.props,children:o.text})]}),t&&O.jsx(qp,{image:{...t,aspect:"banner"}})]})})},NS=D.memo(RS);const PS=({variant:e="primary",button:t=null,title:n,text:r,gtmContext:o})=>!n&&!r?null:O.jsxs("aside",{className:ne("marketing-block",e),children:[n&&O.jsx("p",{className:"title",children:n}),r&&O.jsx("p",{children:r}),t&&O.jsx(De,{variant:"secondary",size:"medium",href:t.link,className:"gtm-trackable","data-gtm-event-context":o,"data-gtm-event-type":"learn-more-click",children:t.text})]});var bm={exports:{}};(function(e){(function(t,n){var r="…",o=/(((ftp|https?):\/\/)[\-\w@:%_\+.~#?,&\/\/=]+)|((mailto:)?[_.\w-]{1,300}@(.{1,300}\.)[a-zA-Z]{2,3})/g;function i(a,u,f){return f.length===a.length||!u.ellipsis||(f+=u.ellipsis),f}function s(a,u,f){var c="",h=!0,d=u,l,p;if(f=f||{},f.ellipsis=typeof f.ellipsis>"u"?r:f.ellipsis,!a||a.length===0)return"";for(h=!0;h;){if(o.lastIndex=c.length,h=o.exec(a),!h||h.index-c.length>=d||o.lastIndex>=u+3e3)return c+=a.substring(c.length,u),i(a,f,c);if(l=h[0],p=h.index,c+=a.substring(c.length,p+l.length),d-=p+l.length,d<=0)break}return i(a,f,c)}e.exports?e.exports=s:t.truncate=s})(String)})(bm);var IS=bm.exports;const wm=jt(IS),Wo="https://storage.googleapis.com/apolitical-assets/",LS="200,000+";const Zc=({label:e=!1,className:t="",children:n})=>{const r=Ee();return O.jsxs("details",{className:ne("collapsible-section",t),children:[O.jsx("summary",{children:e||r.formatMessage({id:"collapsibleSection_summary"})}),O.jsx("div",{className:"content",children:n})]})};function Kr(){return Kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kr.apply(this,arguments)}const MS=["children","options"],cd=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{for:"htmlFor"}),ud={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},kS=["style","script"],BS=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,FS=/mailto:/i,US=/\n{2,}$/,Sm=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,DS=/^ *> ?/gm,$S=/^ {2,}\n/,jS=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,Tm=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,xm=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,HS=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,qS=/^(?:\n *)*\n/,GS=/\r\n?/g,WS=/^\[\^([^\]]+)](:.*)\n/,VS=/^\[\^([^\]]+)]/,zS=/\f/g,YS=/^\s*?\[(x|\s)\]/,Om=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Am=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Cm=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,wc=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,KS=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Rm=/^<!--[\s\S]*?(?:-->)/,QS=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Sc=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,XS=/^\{.*\}$/,JS=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,ZS=/^<([^ >]+@[^ >]+)>/,eT=/^<([^ >]+:\/[^ >]+)>/,tT=/-([a-z])?/gi,Nm=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,rT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,nT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,iT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,oT=/(\[|\])/g,aT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,sT=/\t/g,cT=/^ *\| */,uT=/(^ *\||\| *$)/g,lT=/ *$/,fT=/^ *:-+: *$/,dT=/^ *:-+ *$/,hT=/^ *-+: *$/,pT=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,mT=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,gT=/^==((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)==/,yT=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,vT=/^\\([^0-9A-Za-z\s])/,_T=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,ET=/^\n+/,bT=/^([ \t]*)/,wT=/\\([^\\])/g,ld=/ *\n+$/,ST=/(?:^|\n)( *)$/,eu="(?:\\d+\\.)",tu="(?:[*+-])";function Pm(e){return"( *)("+(e===1?eu:tu)+") +"}const Im=Pm(1),Lm=Pm(2);function Mm(e){return new RegExp("^"+(e===1?Im:Lm))}const TT=Mm(1),xT=Mm(2);function km(e){return new RegExp("^"+(e===1?Im:Lm)+"[^\\n]*(?:\\n(?!\\1"+(e===1?eu:tu)+" )[^\\n]*)*(\\n|$)","gm")}const Bm=km(1),Fm=km(2);function Um(e){const t=e===1?eu:tu;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Dm=Um(1),$m=Um(2);function fd(e,t){const n=t===1,r=n?Dm:$m,o=n?Bm:Fm,i=n?TT:xT;return{t(s,a,u){const f=ST.exec(u);return f&&(a.o||!a._&&!a.u)?r.exec(s=f[1]+s):null},i:ve.HIGH,l(s,a,u){const f=n?+s[2]:void 0,c=s[0].replace(US,`
87
87
  `).match(o);let h=!1;return{p:c.map(function(d,l){const p=i.exec(d)[0].length,m=new RegExp("^ {1,"+p+"}","gm"),E=d.replace(m,"").replace(i,""),T=l===c.length-1,_=E.indexOf(`
88
88
 
89
89
  `)!==-1||T&&h;h=_;const b=u._,A=u.o;let w;u.o=!0,_?(u._=!1,w=E.replace(ld,`
@@ -92,10 +92,10 @@ For more details see https://formatjs.io/docs/getting-started/message-distributi
92
92
  `).map(function(f){return dd(f,a,u)})}(e[3],t,n);return n._=!1,{S:o,A:i,L:r,type:"table"}}function hd(e,t){return e.S[t]==null?{}:{textAlign:e.S[t]}}function pr(e){return function(t,n){return n._?e.exec(t):null}}function mr(e){return function(t,n){return n._||n.u?e.exec(t):null}}function er(e){return function(t,n){return n._||n.u?null:e.exec(t)}}function Di(e){return function(t){return e.exec(t)}}function IT(e,t,n){if(t._||t.u||n&&!n.endsWith(`
93
93
  `))return null;let r="";e.split(`
94
94
  `).every(i=>!jm.some(s=>s.test(i))&&(r+=i+`
95
- `,i.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function wn(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function pd(e){return e.replace(wT,"$1")}function ko(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function LT(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function MT(e,t,n){return n._=!1,e(t,n)}const ks=(e,t,n)=>({v:ko(t,e[1],n)});function Bs(){return{}}function Fs(){return null}function kT(...e){return e.filter(Boolean).join(" ")}function Us(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var ve;function BT(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||RT,t.namedCodesToUnicode=t.namedCodesToUnicode?Qr({},ud,t.namedCodesToUnicode):ud;const n=t.createElement||Oe.createElement;function r(l,p,...m){const E=Us(t.overrides,`${l}.props`,{});return n(function(T,_){const b=Us(_,T);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Us(_,`${T}.component`,T):T}(l,t.overrides),Qr({},p,E,{className:kT(p==null?void 0:p.className,E.className)||void 0}),...m)}function o(l){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=aT.test(l)===!1);const m=c(f(p?l:`${l.trimEnd().replace(ET,"")}
95
+ `,i.trim()));const o=r.trimEnd();return o==""?null:[r,o]}function wn(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return e}function pd(e){return e.replace(wT,"$1")}function ko(e,t,n){const r=n._||!1,o=n.u||!1;n._=!0,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function LT(e,t,n){const r=n._||!1,o=n.u||!1;n._=!1,n.u=!0;const i=e(t,n);return n._=r,n.u=o,i}function MT(e,t,n){return n._=!1,e(t,n)}const ks=(e,t,n)=>({v:ko(t,e[1],n)});function Bs(){return{}}function Fs(){return null}function kT(...e){return e.filter(Boolean).join(" ")}function Us(e,t,n){let r=e;const o=t.split(".");for(;o.length&&(r=r[o[0]],r!==void 0);)o.shift();return r||n}var ve;function BT(e,t={}){t.overrides=t.overrides||{},t.slugify=t.slugify||RT,t.namedCodesToUnicode=t.namedCodesToUnicode?Kr({},ud,t.namedCodesToUnicode):ud;const n=t.createElement||Oe.createElement;function r(l,p,...m){const E=Us(t.overrides,`${l}.props`,{});return n(function(T,_){const b=Us(_,T);return b?typeof b=="function"||typeof b=="object"&&"render"in b?b:Us(_,`${T}.component`,T):T}(l,t.overrides),Kr({},p,E,{className:kT(p==null?void 0:p.className,E.className)||void 0}),...m)}function o(l){let p=!1;t.forceInline?p=!0:t.forceBlock||(p=aT.test(l)===!1);const m=c(f(p?l:`${l.trimEnd().replace(ET,"")}
96
96
 
97
- `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(p?"span":"div");let T;if(m.length>1||t.forceWrapper)T=m;else{if(m.length===1)return T=m[0],typeof T=="string"?r("span",{key:"outer"},T):T;T=null}return Oe.createElement(E,{key:"outer"},T)}function i(l){const p=l.match(BS);return p?p.reduce(function(m,E,T){const _=E.indexOf("=");if(_!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(QS)===null&&(F=F.replace(tT,function(B,G){return G.toUpperCase()})),F}(E.slice(0,_)).trim(),A=function(F){const B=F[0];return(B==='"'||B==="'")&&F.length>=2&&F[F.length-1]===B?F.slice(1,-1):F}(E.slice(_+1).trim()),w=cd[b]||b,N=m[w]=function(F,B){return F==="style"?B.split(/;\s?/).reduce(function(G,W){const V=W.slice(0,W.indexOf(":"));return G[V.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=W.slice(V.length+1).trim(),G},{}):F==="href"?wn(B):(B.match(XS)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(b,A);typeof N=="string"&&(wc.test(N)||Sc.test(N))&&(m[w]=Oe.cloneElement(o(N.trim()),{key:T}))}else E!=="style"&&(m[cd[E]||E]=!0);return m},{}):null}const s=[],a={},u={blockQuote:{t:er(Sm),i:ve.HIGH,l:(l,p,m)=>({v:p(l[0].replace(DS,""),m)}),h:(l,p,m)=>r("blockquote",{key:m.k},p(l.v,m))},breakLine:{t:Di($S),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("br",{key:m.k})},breakThematic:{t:er(jS),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("hr",{key:m.k})},codeBlock:{t:er(xm),i:ve.MAX,l:l=>({v:l[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(l,p,m)=>r("pre",{key:m.k},r("code",Qr({},l.O,{className:l.M?`lang-${l.M}`:""}),l.v))},codeFenced:{t:er(Tm),i:ve.MAX,l:l=>({O:i(l[3]||""),v:l[4],M:l[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(HS),i:ve.LOW,l:l=>({v:l[2]}),h:(l,p,m)=>r("code",{key:m.k},l.v)},footnote:{t:er(WS),i:ve.MAX,l:l=>(s.push({I:l[2],j:l[1]}),{}),h:Fs},footnoteReference:{t:pr(VS),i:ve.HIGH,l:l=>({v:l[1],B:`#${t.slugify(l[1])}`}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B)},r("sup",{key:m.k},l.v))},gfmTask:{t:pr(YS),i:ve.HIGH,l:l=>({R:l[1].toLowerCase()==="x"}),h:(l,p,m)=>r("input",{checked:l.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:er(t.enforceAtxHeadings?Am:Om),i:ve.HIGH,l:(l,p,m)=>({v:ko(p,l[2],m),T:t.slugify(l[2]),C:l[1].length}),h:(l,p,m)=>r(`h${l.C}`,{id:l.T,key:m.k},p(l.v,m))},headingSetext:{t:er(Cm),i:ve.MAX,l:(l,p,m)=>({v:ko(p,l[1],m),C:l[2]==="="?1:2,type:"heading"})},htmlComment:{t:Di(Rm),i:ve.HIGH,l:()=>({}),h:Fs},image:{t:mr(AT),i:ve.HIGH,l:l=>({D:l[1],B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D||void 0,title:l.F||void 0,src:wn(l.B)})},link:{t:pr(OT),i:ve.LOW,l:(l,p,m)=>({v:LT(p,l[1],m),B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B),title:l.F},p(l.v,m))},linkAngleBraceStyleDetector:{t:pr(eT),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],type:"link"})},linkBareUrlDetector:{t:(l,p)=>p.N?null:pr(JS)(l,p),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pr(ZS),i:ve.MAX,l(l){let p=l[1],m=l[1];return FS.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:fd(r,1),unorderedList:fd(r,2),newlineCoalescer:{t:er(qS),i:ve.LOW,l:Bs,h:()=>`
98
- `},paragraph:{t:IT,i:ve.LOW,l:ks,h:(l,p,m)=>r("p",{key:m.k},p(l.v,m))},ref:{t:pr(rT),i:ve.MAX,l:l=>(a[l[1]]={B:l[2],F:l[4]},{}),h:Fs},refImage:{t:mr(nT),i:ve.MAX,l:l=>({D:l[1]||void 0,P:l[2]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D,src:wn(a[l.P].B),title:a[l.P].F})},refLink:{t:pr(iT),i:ve.MAX,l:(l,p,m)=>({v:p(l[1],m),Z:p(l[0].replace(oT,"\\$1"),m),P:l[2]}),h:(l,p,m)=>a[l.P]?r("a",{key:m.k,href:wn(a[l.P].B),title:a[l.P].F},p(l.v,m)):r("span",{key:m.k},p(l.Z,m))},table:{t:er(Nm),i:ve.HIGH,l:PT,h:(l,p,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,l.L.map(function(E,T){return r("th",{key:T,style:hd(l,T)},p(E,m))}))),r("tbody",null,l.A.map(function(E,T){return r("tr",{key:T},E.map(function(_,b){return r("td",{key:b,style:hd(l,b)},p(_,m))}))})))},tableSeparator:{t:function(l,p){return p.$?(p._=!0,cT.exec(l)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Di(_T),i:ve.MIN,l:l=>({v:l[0].replace(KS,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:l=>l.v},textBolded:{t:mr(pT),i:ve.MED,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("strong",{key:m.k},p(l.v,m))},textEmphasized:{t:mr(mT),i:ve.LOW,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("em",{key:m.k},p(l.v,m))},textEscaped:{t:mr(vT),i:ve.HIGH,l:l=>({v:l[1],type:"text"})},textMarked:{t:mr(gT),i:ve.LOW,l:ks,h:(l,p,m)=>r("mark",{key:m.k},p(l.v,m))},textStrikethroughed:{t:mr(yT),i:ve.LOW,l:ks,h:(l,p,m)=>r("del",{key:m.k},p(l.v,m))}};t.disableParsingRawHTML!==!0&&(u.htmlBlock={t:Di(wc),i:ve.HIGH,l(l,p,m){const[,E]=l[3].match(bT),T=new RegExp(`^${E}`,"gm"),_=l[3].replace(T,""),b=(A=_,CT.some(B=>B.test(A))?MT:ko);var A;const w=l[1].toLowerCase(),N=kS.indexOf(w)!==-1;m.N=m.N||w==="a";const F=N?l[3]:b(p,_,m);return m.N=!1,{O:i(l[2]),v:F,G:N,H:N?w:l[1]}},h:(l,p,m)=>r(l.H,Qr({key:m.k},l.O),l.G?l.v:p(l.v,m))},u.htmlSelfClosing={t:Di(Sc),i:ve.HIGH,l:l=>({O:i(l[2]||""),H:l[1]}),h:(l,p,m)=>r(l.H,Qr({},l.O,{key:m.k}))});const f=function(l){let p=Object.keys(l);function m(E,T){let _=[],b="";for(;E;){let A=0;for(;A<p.length;){const w=p[A],N=l[w],F=N.t(E,T,b);if(F){const B=F[0];E=E.substring(B.length);const G=N.l(F,m,T);G.type==null&&(G.type=w),_.push(G),b=B;break}A++}}return _}return p.sort(function(E,T){let _=l[E].i,b=l[T].i;return _!==b?_-b:E<T?-1:1}),function(E,T){return m(function(_){return _.replace(GS,`
97
+ `,{_:p}));for(;typeof m[m.length-1]=="string"&&!m[m.length-1].trim();)m.pop();if(t.wrapper===null)return m;const E=t.wrapper||(p?"span":"div");let T;if(m.length>1||t.forceWrapper)T=m;else{if(m.length===1)return T=m[0],typeof T=="string"?r("span",{key:"outer"},T):T;T=null}return Oe.createElement(E,{key:"outer"},T)}function i(l){const p=l.match(BS);return p?p.reduce(function(m,E,T){const _=E.indexOf("=");if(_!==-1){const b=function(F){return F.indexOf("-")!==-1&&F.match(QS)===null&&(F=F.replace(tT,function(B,G){return G.toUpperCase()})),F}(E.slice(0,_)).trim(),A=function(F){const B=F[0];return(B==='"'||B==="'")&&F.length>=2&&F[F.length-1]===B?F.slice(1,-1):F}(E.slice(_+1).trim()),w=cd[b]||b,N=m[w]=function(F,B){return F==="style"?B.split(/;\s?/).reduce(function(G,W){const V=W.slice(0,W.indexOf(":"));return G[V.replace(/(-[a-z])/g,H=>H[1].toUpperCase())]=W.slice(V.length+1).trim(),G},{}):F==="href"?wn(B):(B.match(XS)&&(B=B.slice(1,B.length-1)),B==="true"||B!=="false"&&B)}(b,A);typeof N=="string"&&(wc.test(N)||Sc.test(N))&&(m[w]=Oe.cloneElement(o(N.trim()),{key:T}))}else E!=="style"&&(m[cd[E]||E]=!0);return m},{}):null}const s=[],a={},u={blockQuote:{t:er(Sm),i:ve.HIGH,l:(l,p,m)=>({v:p(l[0].replace(DS,""),m)}),h:(l,p,m)=>r("blockquote",{key:m.k},p(l.v,m))},breakLine:{t:Di($S),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("br",{key:m.k})},breakThematic:{t:er(jS),i:ve.HIGH,l:Bs,h:(l,p,m)=>r("hr",{key:m.k})},codeBlock:{t:er(xm),i:ve.MAX,l:l=>({v:l[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),M:void 0}),h:(l,p,m)=>r("pre",{key:m.k},r("code",Kr({},l.O,{className:l.M?`lang-${l.M}`:""}),l.v))},codeFenced:{t:er(Tm),i:ve.MAX,l:l=>({O:i(l[3]||""),v:l[4],M:l[2]||void 0,type:"codeBlock"})},codeInline:{t:mr(HS),i:ve.LOW,l:l=>({v:l[2]}),h:(l,p,m)=>r("code",{key:m.k},l.v)},footnote:{t:er(WS),i:ve.MAX,l:l=>(s.push({I:l[2],j:l[1]}),{}),h:Fs},footnoteReference:{t:pr(VS),i:ve.HIGH,l:l=>({v:l[1],B:`#${t.slugify(l[1])}`}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B)},r("sup",{key:m.k},l.v))},gfmTask:{t:pr(YS),i:ve.HIGH,l:l=>({R:l[1].toLowerCase()==="x"}),h:(l,p,m)=>r("input",{checked:l.R,key:m.k,readOnly:!0,type:"checkbox"})},heading:{t:er(t.enforceAtxHeadings?Am:Om),i:ve.HIGH,l:(l,p,m)=>({v:ko(p,l[2],m),T:t.slugify(l[2]),C:l[1].length}),h:(l,p,m)=>r(`h${l.C}`,{id:l.T,key:m.k},p(l.v,m))},headingSetext:{t:er(Cm),i:ve.MAX,l:(l,p,m)=>({v:ko(p,l[1],m),C:l[2]==="="?1:2,type:"heading"})},htmlComment:{t:Di(Rm),i:ve.HIGH,l:()=>({}),h:Fs},image:{t:mr(AT),i:ve.HIGH,l:l=>({D:l[1],B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D||void 0,title:l.F||void 0,src:wn(l.B)})},link:{t:pr(OT),i:ve.LOW,l:(l,p,m)=>({v:LT(p,l[1],m),B:pd(l[2]),F:l[3]}),h:(l,p,m)=>r("a",{key:m.k,href:wn(l.B),title:l.F},p(l.v,m))},linkAngleBraceStyleDetector:{t:pr(eT),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],type:"link"})},linkBareUrlDetector:{t:(l,p)=>p.N?null:pr(JS)(l,p),i:ve.MAX,l:l=>({v:[{v:l[1],type:"text"}],B:l[1],F:void 0,type:"link"})},linkMailtoDetector:{t:pr(ZS),i:ve.MAX,l(l){let p=l[1],m=l[1];return FS.test(m)||(m="mailto:"+m),{v:[{v:p.replace("mailto:",""),type:"text"}],B:m,type:"link"}}},orderedList:fd(r,1),unorderedList:fd(r,2),newlineCoalescer:{t:er(qS),i:ve.LOW,l:Bs,h:()=>`
98
+ `},paragraph:{t:IT,i:ve.LOW,l:ks,h:(l,p,m)=>r("p",{key:m.k},p(l.v,m))},ref:{t:pr(rT),i:ve.MAX,l:l=>(a[l[1]]={B:l[2],F:l[4]},{}),h:Fs},refImage:{t:mr(nT),i:ve.MAX,l:l=>({D:l[1]||void 0,P:l[2]}),h:(l,p,m)=>r("img",{key:m.k,alt:l.D,src:wn(a[l.P].B),title:a[l.P].F})},refLink:{t:pr(iT),i:ve.MAX,l:(l,p,m)=>({v:p(l[1],m),Z:p(l[0].replace(oT,"\\$1"),m),P:l[2]}),h:(l,p,m)=>a[l.P]?r("a",{key:m.k,href:wn(a[l.P].B),title:a[l.P].F},p(l.v,m)):r("span",{key:m.k},p(l.Z,m))},table:{t:er(Nm),i:ve.HIGH,l:PT,h:(l,p,m)=>r("table",{key:m.k},r("thead",null,r("tr",null,l.L.map(function(E,T){return r("th",{key:T,style:hd(l,T)},p(E,m))}))),r("tbody",null,l.A.map(function(E,T){return r("tr",{key:T},E.map(function(_,b){return r("td",{key:b,style:hd(l,b)},p(_,m))}))})))},tableSeparator:{t:function(l,p){return p.$?(p._=!0,cT.exec(l)):null},i:ve.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:Di(_T),i:ve.MIN,l:l=>({v:l[0].replace(KS,(p,m)=>t.namedCodesToUnicode[m]?t.namedCodesToUnicode[m]:p)}),h:l=>l.v},textBolded:{t:mr(pT),i:ve.MED,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("strong",{key:m.k},p(l.v,m))},textEmphasized:{t:mr(mT),i:ve.LOW,l:(l,p,m)=>({v:p(l[2],m)}),h:(l,p,m)=>r("em",{key:m.k},p(l.v,m))},textEscaped:{t:mr(vT),i:ve.HIGH,l:l=>({v:l[1],type:"text"})},textMarked:{t:mr(gT),i:ve.LOW,l:ks,h:(l,p,m)=>r("mark",{key:m.k},p(l.v,m))},textStrikethroughed:{t:mr(yT),i:ve.LOW,l:ks,h:(l,p,m)=>r("del",{key:m.k},p(l.v,m))}};t.disableParsingRawHTML!==!0&&(u.htmlBlock={t:Di(wc),i:ve.HIGH,l(l,p,m){const[,E]=l[3].match(bT),T=new RegExp(`^${E}`,"gm"),_=l[3].replace(T,""),b=(A=_,CT.some(B=>B.test(A))?MT:ko);var A;const w=l[1].toLowerCase(),N=kS.indexOf(w)!==-1;m.N=m.N||w==="a";const F=N?l[3]:b(p,_,m);return m.N=!1,{O:i(l[2]),v:F,G:N,H:N?w:l[1]}},h:(l,p,m)=>r(l.H,Kr({key:m.k},l.O),l.G?l.v:p(l.v,m))},u.htmlSelfClosing={t:Di(Sc),i:ve.HIGH,l:l=>({O:i(l[2]||""),H:l[1]}),h:(l,p,m)=>r(l.H,Kr({},l.O,{key:m.k}))});const f=function(l){let p=Object.keys(l);function m(E,T){let _=[],b="";for(;E;){let A=0;for(;A<p.length;){const w=p[A],N=l[w],F=N.t(E,T,b);if(F){const B=F[0];E=E.substring(B.length);const G=N.l(F,m,T);G.type==null&&(G.type=w),_.push(G),b=B;break}A++}}return _}return p.sort(function(E,T){let _=l[E].i,b=l[T].i;return _!==b?_-b:E<T?-1:1}),function(E,T){return m(function(_){return _.replace(GS,`
99
99
  `).replace(zS,"").replace(sT," ")}(E),T)}}(u),c=(h=function(l){return function(p,m,E){return l[p.type].h(p,m,E)}}(u),function l(p,m={}){if(Array.isArray(p)){const E=m.k,T=[];let _=!1;for(let b=0;b<p.length;b++){m.k=b;const A=l(p[b],m),w=typeof A=="string";w&&_?T[T.length-1]+=A:A!==null&&T.push(A),_=w}return m.k=E,T}return h(p,l,m)});var h;const d=o(e);return s.length?r("div",null,d,r("footer",{key:"footer"},s.map(function(l){return r("div",{id:t.slugify(l.j),key:l.j},l.j,c(f(l.I,{_:!0})))}))):d}(function(e){e[e.MAX=0]="MAX",e[e.HIGH=1]="HIGH",e[e.MED=2]="MED",e[e.LOW=3]="LOW",e[e.MIN=4]="MIN"})(ve||(ve={}));const ia=e=>{let{children:t,options:n}=e,r=function(o,i){if(o==null)return{};var s,a,u={},f=Object.keys(o);for(a=0;a<f.length;a++)i.indexOf(s=f[a])>=0||(u[s]=o[s]);return u}(e,MS);return Oe.cloneElement(BT(t,n),r)};const or=({variant:e="primary",className:t="",children:n,...r})=>O.jsx("div",{className:ne("highlighted-text-box",e,t),...r,children:n});const Hm=({variant:e="empty",text:t=!1,button:n=!1,className:r=""})=>{let o=n&&!!Object.keys(n).length;const i=typeof n=="object"&&"breakpoints"in n,s=Ji(i);if(i&&typeof n=="object"&&typeof s=="number"){const h=Object.assign({},n.breakpoints),d=$p(Object.keys(h));o=jp(s,d,h)}const{breakpoints:a,text:u="",component:f,...c}=n;return O.jsx(or,{variant:"subtle",className:ne("empty-state-box",e,r),children:O.jsxs(O.Fragment,{children:[t&&O.jsx(ia,{options:{forceBlock:!0},children:t}),o&&typeof n=="object"&&(f||O.jsx(De,{...c,variant:n.variant?n.variant:"secondary",children:u}))]})})};const Tc=({children:e,...t})=>O.jsx("p",{...t,children:e}),qm={q:Tc,blockquote:Tc};for(let e=1;e<=6;e++)qm[`h${e}`]={component:Tc,props:{className:"title"}};const Gm=({type:e="default",className:t="",heading:n=!1,children:r})=>O.jsxs("div",{className:ne("helper-text-box text-small",e,t),children:[n&&O.jsx("p",{className:"title",children:n}),typeof r=="string"?O.jsx(ia,{options:{wrapper:D.Fragment,forceBlock:!0,overrides:qm},children:r}):O.jsx("p",{children:r})]});const FT=({className:e="",show:t=!1,hide:n=!1,text:r,children:o})=>{const i=Ee(),s=D.useRef(null),[a,u]=D.useState(""),[f,c]=D.useState("closed");D.useEffect(()=>{const l=s.current;if(l)return l.addEventListener("transitionend",h),()=>{l.removeEventListener("transitionend",h)}},[]),D.useEffect(()=>{if(!r||typeof r!="string")return;const l=r.split(`
100
100
  `);u(l.length<3?`${r.substring(0,400)}...`:l.slice(0,3).join(`
101
- `))},[r]),D.useEffect(()=>{f==="ready-to-close"&&c("closing")},[f]);const h=({propertyName:l})=>{l==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!r)return null;const d=["opening","open"].includes(f);return O.jsxs(or,{variant:"subtle",className:ne("hide-show-text-box",e),children:[O.jsxs("div",{ref:s,className:ne("content",f),children:[O.jsx(ia,{options:{forceBlock:!0},children:f==="closed"?a:r}),f!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(De,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ne({"rotate-180":d}),onClick:()=>{c(d?"ready-to-close":"opening")},children:d?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},UT=()=>D.Fragment,DT=({children:e})=>O.jsx(or,{variant:"secondary",children:e}),$T=["span","strong","h1","h2","h3","h4","h5","h6","p"],jT=({children:e})=>{const t=Ee();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(D.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of D.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&D.isValidElement(s)){const a=s.type;if($T.includes(a)){for(n=s.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const o=n?n.toString():"";return O.jsx(Zc,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:r.map(i=>i)})},HT=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(or,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(or,{variant:"primary",children:e});case"pink-textbox":return O.jsx(or,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},qT=e=>{const t=Ee(),n=Date.now().toString();let r="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?r="video":o.includes("riddle")||o.includes("sli.do")?r="poll":o.includes("padlet")&&(r="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(Je,{children:O.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),O.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},md=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},GT=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,o=!1;for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&D.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||md(i.props.children[0])==="button")&&(o=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!D.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&md(r)==="button"&&(o=!0);else break}return o?(n={...n,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(De,{variant:"primary",size:"medium",...n,children:r})})):O.jsx("a",{...n,children:r})};const xc=({className:e="",options:t={},children:n})=>{n=n.replace(/^<br\/?>/,"");const r={wrapper:D.Fragment,forceBlock:!0,overrides:{a:GT,CollapsibleSection:Zc,TextBox:or,CaseStudy:DT,style:UT,details:jT,div:HT,iframe:qT}};return O.jsx("div",{className:ne("markdown-text",e),children:O.jsx(ia,{options:{...r,...t},children:n})})};const Wm=({size:e="medium",variant:t="default",className:n="",children:r})=>O.jsx("span",{className:ne("pill",e,t,n),children:r});const Vo=({element:e="p",children:t=null,className:n="",...r})=>D.createElement(e,{...r,className:ne("status-banner text-small",n),"aria-live":"assertive"},t);const WT=({progress:e=0,text:t=!1,className:n=""})=>{const r=Ee(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:ne(`progress-bar section-${o}`,n),style:i,children:O.jsx(Je,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},Vm=D.memo(WT);const Ds="loadingBlock_",VT=({progress:e=0,steps:t=!1,className:n=""})=>{const r=Ee();t||(t={0:{text:r.formatMessage({id:`${Ds}loading`})},75:{text:r.formatMessage({id:`${Ds}almostDone`})},100:{text:r.formatMessage({id:`${Ds}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${Wo}icons/${t[o].icon}.svg)`}:{};return O.jsxs(or,{className:ne("loading-block",n,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(Vm,{progress:e})]})},zT=D.memo(VT);const br=({element:e="div",className:t="",...n})=>O.jsx(Cc,{element:e,className:ne("loading-placeholder",t),...n});const Oc={header:["logo","link","link","search"],sidebar:["text","text","text","text","text"],"cards-section":["subtitle","cards"],cards:["card","card","card","card"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},zm=(e,t)=>e in Oc?O.jsx("div",{className:e,children:Oc[e].map((n,r)=>zm(n,r))},t):O.jsx(br,{className:e},t),Ym=({layout:e="overview-page"})=>O.jsx("div",{className:ne("loading-state",e),children:Oc[e].map((t,n)=>zm(t,n))}),Km=e=>{const t=e&&e.toUpperCase().split(" ");return Array.isArray(t)&&t.length>1&&t[0]!==""?t[1]===""?t[0][0]:t[0][0]+t[t.length-1][0]:e?e.substr(0,1):""},Co=["#5AB6A3","#A2D7AF","#806056","#3962B3"],YT=e=>{const t=Math.ceil(26/Co.length),n=Km(e).toLowerCase();if(n==="")return Co[0];const r=n.charCodeAt(0)-96;for(let o=0;o<Co.length;o++)if(r<=t*(o+1))return Co[o]};const gd=256,oa=({className:e="",src:t="",name:n,alt:r,width:o=gd,height:i=gd,...s})=>{const[a,u]=D.useState(!1),f=D.useRef(null);return D.useEffect(()=>{const c=f.current;if(!c)return;const h=c.getContext("2d");if(!h)return;const d=o,l=i;typeof window<"u"&&window.devicePixelRatio&&(c.width=d*window.devicePixelRatio,c.height=l*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=YT(n),h.fillRect(0,0,d,l),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText(Km(n),d/2,l/1.6)},[n]),O.jsxs("figure",{className:ne("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&O.jsx("img",{src:t,alt:r||n,onError:()=>{u(!0)},width:o,height:i}),(t===""||a)&&O.jsx("canvas",{ref:f})]})},ru=e=>e==="apolitical"?{image:`${Wo}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Wo}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail},KT=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const o=e!=="",i=t!=="",s=n!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let u=`${a}${(o||i)&&s?`, ${n}`:n}`;return u.length>r&&(u=a),u.length>r&&(u=wm(u,r)),u};const aa=({element:e="div",member:t="community",additionalContent:n=!1,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee(),a=ru(t);a.name||(a.name=s.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:u,url:f,image:c}=a,h=KT(a),d=n&&n.createdAt?Xb(n.createdAt):!1,l=n&&n.createdAt?Qb(n.createdAt):"";return D.createElement(e,{className:ne("member text-medium",i),children:O.jsxs(zc,{href:f,gtmType:o,gtmContext:r,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(oa,{name:u,src:c}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:u}),n&&O.jsxs("span",{className:"additional-content",children:[n.createdAt&&d&&O.jsx("span",{className:"date",title:l,"aria-label":l,children:s.formatMessage({id:`dates_${d.path}`},{number:d.number})}),n.didEdit&&O.jsx("em",{children:s.formatMessage({id:"discussion_edited"})})]}),h&&O.jsx("small",{children:h})]})]})})};const yd={small:24,medium:48},Qm=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:o,showGap:i,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:a=2,className:u=""})=>{const f=Ee();return!n||n.length===0?null:D.createElement(e,{className:ne("contributors",u,o,{"has-gap":i}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:n.map((c,h)=>{let d,l="";if(h<a){const{name:p="",image:m=""}=ru(c);if(s)return O.jsx(br,{element:"li",className:"contributor"},h);d=O.jsx(oa,{name:p,src:m,width:yd[o||"medium"],height:yd[o||"medium"]})}else if(h===a){const p=(t||n.length)-a;d=O.jsxs("small",{className:ne({"large-number":p>99}),children:["+",tw(p,0)]}),l="number-left"}return d?O.jsx("li",{className:ne("contributor",l),children:d},h):null})}),r&&O.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?f.formatMessage({id:`member_${n[0]}`}):wm(n[0].name||"",20):null})]})})},QT=({children:e,locale:t,messages:n})=>{const r=t||"en",o={...ew[r],...n||{}};return O.jsx(TS,{locale:r,messages:o,children:e})},Fn=D.createContext(null),XT=({children:e,user:t})=>O.jsx(Fn.Provider,{value:t,children:e});const $s="joinCommunityButton",Xm=({isMember:e=!1,isShort:t=!1,functions:{join:n,leave:r}={join:()=>{},leave:()=>{}}})=>{const o=Ee(),i=D.useContext(Fn),s=i&&typeof i.id=="string",[a,u]=D.useState(e),[f,c]=D.useState(e?"joined":"notJoined");D.useEffect(()=>{f==="joining"?c("joined"):f==="leaving"&&c("notJoined")},[a]);const h={},d={};return a&&f!=="leaving"&&(h["data-hover-text"]=o.formatMessage({id:`${$s}_leave`}),h["aria-label"]=o.formatMessage({id:`${$s}_member_aria`}),d["aria-hidden"]="true"),O.jsx(De,{variant:a?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:a&&f!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async l=>{s&&(l.currentTarget.blur(),a?(c("leaving"),typeof r=="function"&&await r()):(c("joining"),typeof n=="function"&&await n()),u(!a))},className:ne("join-community-button",f,{active:f==="joining"}),disabled:!s,...h,children:O.jsx("span",{className:"text",...d,children:o.formatMessage({id:`${$s}${["joining","leaving"].includes(f)?`_${f}`:a?"_member":t?"_short":""}`})})})};const js="communityDetails_",JT=({isMember:e=!1,slug:t,members:{number:n,data:r}={number:void 0,data:[]},className:o="",...i})=>{const s=Ee(),a=n||(r==null?void 0:r.length)||0;return O.jsxs("div",{className:ne("community-details",o),children:[O.jsx(Go,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[s.formatMessage({id:`${js}members`}),O.jsx("span",{className:"count",children:a})]}),O.jsx("p",{className:"text-small",children:O.jsx("a",{href:`/communities/${t}/members`,children:s.formatMessage({id:`${js}viewAll`})})})]}),O.jsx(Qm,{contributors:{total:n,data:r!=null&&r.length?r.reverse():[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:a===0},cutoff:5})]}),O.jsx(Xm,{isMember:e,...i}),e&&O.jsx(De,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:s.formatMessage({id:`${js}invite`})})]})};const ZT=({breadcrumbs:e,className:t=""})=>{const n=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(Je,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:ne("breadcrumbs text-small",t),children:e.map(({text:r,href:o,current:i=!1},s)=>O.jsxs("li",{children:[i&&O.jsx(Je,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(zc,{href:i?void 0:o,children:r})]},`${window.btoa(r)}_${s}`))})]})};const ex=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:o=""})=>{const i=Ee(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,u]=D.useState(t?["all"]:[]),f=(c,h)=>{let d=[];a.includes(c)?d=a.filter(l=>l!==c):c==="all"?d=["all"]:n?d=[...a.filter(l=>l!=="all"),c]:d=[c],u(l=>(r&&typeof r=="function"&&r({current:d,previous:l}),d)),h&&typeof h=="function"&&h()};return O.jsx("ul",{className:ne("filters",o),children:s.map(({id:c,text:h,disabled:d=!1,callback:l=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),O.jsx("li",{children:O.jsx("button",{className:ne(c,{selected:a.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(c,l)},...p,children:h})},c)})})};const Hs=bc({locale:"en",messages:Vc}),Jm=({page:e=1,length:t=0,limit:n=10,loadNextPage:r=()=>{},icon:o=!1,messages:i={button:Hs.formatMessage({id:"loadMore_button"}),endOfFeed:Hs.formatMessage({id:"loadMore_endOfFeed"}),error:Hs.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[u,f]=D.useState(!1),[c,h]=D.useState(!1);if(t<=0||t<n*e)return null;const d=async l=>{try{await r(l)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return O.jsxs("footer",{className:ne("load-more",s),children:[u&&O.jsx("p",{className:"error",children:i.error}),c?O.jsx("p",{children:i.endOfFeed}):O.jsx(De,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Ro=!1;const Zm=({element:e="div",id:t="more-menu",options:n,className:r=""})=>{const o=Ee(),i=D.useRef(null),[s,a]=D.useState(!1),u=f=>{i.current&&f.target instanceof HTMLElement&&!i.current.contains(f.target)&&a(!1)};return D.useEffect(()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),D.createElement(e,{ref:i,className:ne("more-menu text-medium",r),children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>a(!s),"aria-haspopup":"true","aria-expanded":s,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!s,children:n.map(({href:f,onClick:c,text:h,icon:d,...l},p)=>{const m={...l,onClick:E=>{a(!1),typeof c=="function"&&c(E)},onFocus:()=>{Ro&&(clearTimeout(Ro),Ro=!1)},onBlur:()=>{Ro=setTimeout(()=>{a(!1)},100)}};return f&&(m.href=f),O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",icon:d?{icon:d,position:"left"}:!1,...m,children:h})},`${window.btoa(h)}_${p}`)})})]})})};const nu=({variant:e="default",version:t="default",className:n="",...r})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{className:ne("logo",e,t,n),href:"/home/",...r,children:O.jsx(Je,{children:O.jsx(vr,{id:"apolitical"})})})});const tx={"2-1":901},rx=({layout:e="2-1",hideOnMobile:t=!1,className:n="",children:r})=>{const o=Ji(!0);let i=r;return D.Children.count(r)===1&&(i=D.Children.toArray(r)[0],i.props&&(i=i.props.children)),O.jsx("section",{className:ne("columns",`layout-${e}`,n),children:D.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<tx[e]?null:s)})};const qs="cookieBanner_",Gs=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Ws=new Date(Date.now()+12*30*24*60*60*1e3),eg=()=>{const e=Ee(),[t,n,r]=Bd(Gs),[o,i]=D.useState(!t["apol-cookie-banner"]),s=()=>{Gs.forEach(c=>{n(c,!0,{path:"/",expires:Ws,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{n("apol-cookie-banner",!0,{path:"/",expires:Ws}),Gs.forEach(c=>{if(c==="apol-cookie-banner"){n(c,!0,{path:"/",expires:Ws});return}r(c)}),i(!1)};if(!o)return null;const u=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return u.forEach(c=>{f.push({variant:c.href?"tertiary":"primary",href:c.href,onClick:c.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${c.gtmType}-click`,children:e.formatMessage({id:`${qs}buttons_${c.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${qs}title`})}),O.jsx("p",{children:e.formatMessage({id:`${qs}text`})}),O.jsx(Zi,{buttons:f})]})},ir={platform:{order:["events","courses","qanda","articles"],events:{href:"/events/",gtmType:"events-click"},courses:{href:"/microcourses/",gtmType:"microcourses-click"},qanda:{href:"/questions-answers/",gtmType:"q-and-a-click"},articles:{href:"/solution-articles/",gtmType:"articles-click"}},community:{order:["support","post","join","guidelines"],support:{name:"Support FAQ",href:"/pages/support-faq",gtmType:"support-faq-click"},post:{href:"/pages/post-an-article",gtmType:"post-an-article-click"},join:{href:"/pages/who-can-join-the-community",gtmType:"who-can-join-click"},guidelines:{href:"/pages/values-and-guidelines",gtmType:"guidelines-and-values-click"}},company:{order:["story","team","careers","partner","contact"],story:{href:"/pages/our-story",gtmType:"our-story-click"},team:{href:"/pages/meet-our-team",gtmType:"team-click"},careers:{href:"/pages/careers",gtmType:"careers-click"},partner:{href:"/partnerships/",gtmType:"partner-with-us-click"},contact:{href:"/pages/get-in-touch",gtmType:"contact-click"},child:"legal"},legal:{order:["privacy","terms","cookie","accessibility"],privacy:{href:"https://about.apolitical.co/privacy-policy",gtmType:"privacy-policy-link"},terms:{href:"https://about.apolitical.co/terms-and-conditions",gtmType:"terms-conditions-link"},cookie:{href:"/pages/cookie-policy",gtmType:"cookie-policy-link"},accessibility:{href:"/pages/accessibility-statement",gtmType:"accessibility-link"},text:{order:["dataProtection","euDataProtection"],dataProtection:{email:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",gtmType:"hello-email-click"}}},social:{order:["linkedin","twitter","facebook"],linkedin:{href:"https://www.linkedin.com/company/apolitical"},twitter:{href:"https://twitter.com/apoliticalco"},facebook:{href:"https://www.facebook.com/apoliticalco"}}};const xn="footer_",zo="SiteFooter",vd=({group:e})=>{const t=ir[e].order||[];let n=!1;return"text"in ir[e]&&(n=ir[e].text),O.jsxs(D.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(vr,{id:`${xn}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(r=>{if(["order","child","text"].includes(r))return null;const{href:o,gtmType:i}=ir[e][r],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":i,...s,children:O.jsx(vr,{id:`${xn}${e}_${r}`})})},`${e}_${r}`)})}),typeof n!="boolean"&&"order"in n&&Array.isArray(n.order)&&O.jsx("dl",{className:"text-medium",children:n.order.map(r=>O.jsxs(D.Fragment,{children:[O.jsx("dt",{children:O.jsx(vr,{id:`${xn}${e}_${r}`})}),O.jsxs("dd",{children:[typeof n!="boolean"&&n[r].address&&O.jsx("address",{children:O.jsx(vr,{id:`${xn}${e}_${r}_address`,values:{br:O.jsx("br",{})}})}),typeof n!="boolean"&&n[r].email&&O.jsx("a",{href:`mailto:${n[r].email}`,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":n[r].gtmType,children:n[r].email})]})]},`dl-${e}-${r}`))})]},e)},iu=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Cc,{element:"hr"}),O.jsx(nu,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"logo-homepage-link"}),O.jsx("footer",{children:["platform","community","company","contact"].map(e=>O.jsxs("div",{className:"group",children:[O.jsx(vd,{group:e}),Object.keys(ir[e]).includes("child")&&O.jsx(vd,{group:ir[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(ir.social.order)&&ir.social.order.map(e=>{const t=ir.social[e];return O.jsx("li",{className:e,children:O.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(vr,{id:`${xn}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(vr,{id:`${xn}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const No="emailHelperTextBox_",nx=({type:e,email:t,redirectPath:n,resendVerificationCode:r})=>{const o=Ee(),[i,s]=D.useState({path:`${No}default`,type:"default",link:{},mail:{},error:""}),[a,u]=D.useState(!1),f=D.useCallback(l=>{l.preventDefault(),l.stopPropagation();const p=m=>{s({path:`${No}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>f(E),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof r!="function"){p(o.formatMessage({id:`${No}error_noFunction`}));return}u(!0),r(t).then(()=>{localStorage.setItem("email",t),window.location.href=n||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{u(!1)})},[t,n,r]);D.useEffect(()=>{let l=No,p="default",m={},E={};switch(e){case"gov":l+="autoApproved",p="success";break;case"nonGov":l+="unrecognisedEmail",p="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":l+="pendingApproval",p="error",E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":l+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:T=>f(T),"data-testid":"send-verify-email-click"};break;case"exists":l+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:l+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:l,type:p,link:m,mail:E})},[e]);const c={};return["link","mail"].forEach(l=>{c[l]=Object.keys(i[l]).length?p=>O.jsx("a",{...i[l],children:p}):p=>p}),O.jsx(Gm,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?O.jsxs(O.Fragment,{children:[O.jsx(br,{element:"span"}),O.jsx(br,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...c,strong:l=>O.jsx("strong",{children:l}),em:l=>O.jsx("em",{children:l}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Po="passwordRules_",tg="isMoreThanEightCharacters",rg="includesNumberAndSymbol",ng="includesLowerAndUppercase",ix={[tg]:"8Characters",[rg]:"numberSymbol",[ng]:"lowercaseUppercase"},ox=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const n=Ee();return O.jsxs("aside",{className:ne("password-rules",t),children:[O.jsx("small",{children:n.formatMessage({id:`${Po}intro`})}),O.jsx("ul",{children:[tg,rg,ng].map(r=>O.jsxs("li",{className:ne({matches:e[r]}),children:[O.jsxs(Je,{children:[n.formatMessage({id:`${Po}rule_label`})," "]}),O.jsx("span",{children:n.formatMessage({id:`${Po}rule_${ix[r]}`})}),!e[r]&&O.jsxs(Je,{element:"strong",children:[" "," ",n.formatMessage({id:`${Po}notMet`})]})]},`rule-${r}`))})]})},ax=D.memo(ox);const sx=({text:e={},topRating:t=5,functions:{createRating:n=()=>null,updateRating:r=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Ee(),[u,f]=D.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const T=await n();f(_=>({..._,setUp:!0,id:T&&T.id,disabled:!1}))}catch(T){f(_=>({..._,setUp:!0,disabled:!0})),o(T)}};if(D.useEffect(()=>{s&&!u.setUp&&c()},[s]),!s)return O.jsx(br,{className:"rating-placeholder"});const{id:h,rating:d,disabled:l}=u,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},E=async T=>{if(!(!h||l))try{f(_=>({..._,rating:T,disabled:!0})),await r({id:h,value:T})}catch(_){f(b=>({...b,rating:null})),o(_)}finally{f(_=>({..._,disabled:!1}))}};return O.jsxs("div",{className:ne("rating",i),children:[O.jsx("span",{className:"label",children:m[d?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(T=>{const _=T+1;return O.jsx("li",{className:ne({selected:d&&_<=d}),children:O.jsx(De,{variant:"tertiary",size:"small",icon:{icon:`star${!d||_>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:_,total:t})}${_===1||_===t?` - ${m[_===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),E(_)},disabled:l})},`rating-${_}`)})})]})};const ig=({id:e="search",className:t="",handleToggle:n=!1,defaultValue:r="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=n||{},u=Ee(),f=D.useRef(null);_r(()=>{!n||a||!s||f.current&&f.current.focus()},[s]);const c=h=>{if(h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(f.current.value)}`)};return O.jsx("form",{onSubmit:c,className:ne("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:n?!s:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(Je,{element:"label",htmlFor:e,children:u.formatMessage({id:"search_label"})}),O.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:r,placeholder:u.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&c(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:O.jsx(Je,{children:u.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:c,children:O.jsx(Je,{children:u.formatMessage({id:"search_cta"})})})]})})})};var cx="Expected a function",og="__lodash_hash_undefined__",ag=1/0,ux="[object Function]",lx="[object GeneratorFunction]",fx="[object Symbol]",dx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hx=/^\w*$/,px=/^\./,mx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gx=/[\\^$.*+?()[\]{}|]/g,yx=/\\(\\)?/g,vx=/^\[object .+?Constructor\]$/,_x=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Ex=typeof self=="object"&&self&&self.Object===Object&&self,ou=_x||Ex||Function("return this")();function bx(e,t){return e==null?void 0:e[t]}function wx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Sx=Array.prototype,Tx=Function.prototype,sg=Object.prototype,Vs=ou["__core-js_shared__"],_d=function(){var e=/[^.]+$/.exec(Vs&&Vs.keys&&Vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cg=Tx.toString,au=sg.hasOwnProperty,ug=sg.toString,xx=RegExp("^"+cg.call(au).replace(gx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ed=ou.Symbol,Ox=Sx.splice,Ax=lg(ou,"Map"),Vi=lg(Object,"create"),bd=Ed?Ed.prototype:void 0,wd=bd?bd.toString:void 0;function tn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cx(){this.__data__=Vi?Vi(null):{}}function Rx(e){return this.has(e)&&delete this.__data__[e]}function Nx(e){var t=this.__data__;if(Vi){var n=t[e];return n===og?void 0:n}return au.call(t,e)?t[e]:void 0}function Px(e){var t=this.__data__;return Vi?t[e]!==void 0:au.call(t,e)}function Ix(e,t){var n=this.__data__;return n[e]=Vi&&t===void 0?og:t,this}tn.prototype.clear=Cx;tn.prototype.delete=Rx;tn.prototype.get=Nx;tn.prototype.has=Px;tn.prototype.set=Ix;function Un(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lx(){this.__data__=[]}function Mx(e){var t=this.__data__,n=sa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ox.call(t,n,1),!0}function kx(e){var t=this.__data__,n=sa(t,e);return n<0?void 0:t[n][1]}function Bx(e){return sa(this.__data__,e)>-1}function Fx(e,t){var n=this.__data__,r=sa(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Un.prototype.clear=Lx;Un.prototype.delete=Mx;Un.prototype.get=kx;Un.prototype.has=Bx;Un.prototype.set=Fx;function on(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ux(){this.__data__={hash:new tn,map:new(Ax||Un),string:new tn}}function Dx(e){return ca(this,e).delete(e)}function $x(e){return ca(this,e).get(e)}function jx(e){return ca(this,e).has(e)}function Hx(e,t){return ca(this,e).set(e,t),this}on.prototype.clear=Ux;on.prototype.delete=Dx;on.prototype.get=$x;on.prototype.has=jx;on.prototype.set=Hx;function sa(e,t){for(var n=e.length;n--;)if(Zx(e[n][0],t))return n;return-1}function qx(e,t){t=zx(t,e)?[t]:Vx(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xx(t[n++])];return n&&n==r?e:void 0}function Gx(e){if(!dg(e)||Kx(e))return!1;var t=eO(e)||wx(e)?xx:vx;return t.test(Jx(e))}function Wx(e){if(typeof e=="string")return e;if(cu(e))return wd?wd.call(e):"";var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Vx(e){return fg(e)?e:Qx(e)}function ca(e,t){var n=e.__data__;return Yx(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lg(e,t){var n=bx(e,t);return Gx(n)?n:void 0}function zx(e,t){if(fg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cu(e)?!0:hx.test(e)||!dx.test(e)||t!=null&&e in Object(t)}function Yx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kx(e){return!!_d&&_d in e}var Qx=su(function(e){e=rO(e);var t=[];return px.test(e)&&t.push(""),e.replace(mx,function(n,r,o,i){t.push(o?i.replace(yx,"$1"):r||n)}),t});function Xx(e){if(typeof e=="string"||cu(e))return e;var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Jx(e){if(e!=null){try{return cg.call(e)}catch{}try{return e+""}catch{}}return""}function su(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(cx);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(su.Cache||on),n}su.Cache=on;function Zx(e,t){return e===t||e!==e&&t!==t}var fg=Array.isArray;function eO(e){var t=dg(e)?ug.call(e):"";return t==ux||t==lx}function dg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tO(e){return!!e&&typeof e=="object"}function cu(e){return typeof e=="symbol"||tO(e)&&ug.call(e)==fx}function rO(e){return e==null?"":Wx(e)}function nO(e,t,n){var r=e==null?void 0:qx(e,t);return r===void 0?n:r}var iO=nO;const hg=jt(iO),Ne={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const n={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},r=i=>{const s=`logged${e?"In":"Out"}`;return t>=n[i][s]};let o={};return["navigation","search"].forEach(i=>{o[i]=r(i)}),o},shouldChangeHeaderIsVisible:(e,t,n)=>{Object.values(t).filter(o=>o===!0).length||n([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:n,dispatch:r})=>{if(n[e]===t||e==="account"&&t===!1&&n.navigation===!0)return;const o=Date.now();if(!t&&Ne.handlerCalled[e]&&o-Ne.handlerCalled[e]<500)return;Ne.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(n).forEach(s=>{s===e||n[s]===!1||i.push({type:`menus.${s}`,value:!1})}),r(i)},findFirstChild:(e,t,n=!1)=>{if(!e||!e[0])return!1;for(let r=0;r<=e.length;r++){if(!e[r])continue;if(e[r][t]&&(!n||e[r][t].includes(n)))return e[r];if(!t.includes("."))continue;const o=hg(e[r],t);if(!(typeof o>"u")&&(!n||o[t]&&o[t].includes(n)||o.value&&o.value.includes(n)||o.toString().includes(n)))return e[r]}return e[0].children?Ne.findFirstChild(e[0].children,t,n):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:n,focusElements:r,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=n?"desktop":"default";if(r[e][i]){r[e][i].focus();return}let s,a;switch(e){case"navigation":if(n){const u=Ne.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Ne.findFirstChild(u.children,"href")}else s=Ne.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Ne.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Ne.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:n,isOpen:r})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Ne.timeouts[t]),n(t,!r))},onFocus:({id:e})=>{clearTimeout(Ne.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Ne.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Ne.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},zi={order:["home","topics","partners","account"],home:{href:"/home/",hasVariantText:!0,gtmType:"homepage-click"},topics:{order:["explore","topics"],menuId:"navigation",explore:{order:["events","courses","q-and-a","articles"],events:{href:"/events/",className:"icon events"},courses:{href:"/microcourses/",gtmType:"microcourses-click",className:"icon courses"},"q-and-a":{href:"/questions-answers/",className:"icon q-and-a"},articles:{href:"/solution-articles/",gtmType:"articles-click",className:"icon articles"}},topics:{order:["climate","cities-and-local-government","digital-and-data","education","equity-justice-and-inclusion","health-and-social-care","innovation","leadership-and-skills","life-in-government","policymaking","transport-and-infrastructure","work-and-the-economy"],className:"columns",climate:{href:"/topics/climate/"},"cities-and-local-government":{href:"/topics/cities-and-local-government/"},"digital-and-data":{href:"/topics/digital-and-data/"},education:{href:"/topics/education/"},"equity-justice-and-inclusion":{href:"/topics/equity-justice-and-inclusion/"},"health-and-social-care":{href:"/topics/health-and-social-care/"},innovation:{href:"/topics/innovation/"},"leadership-and-skills":{href:"/topics/leadership-and-skills/"},"life-in-government":{href:"/topics/life-in-government/"},policymaking:{href:"/topics/policymaking/"},"transport-and-infrastructure":{href:"/topics/transport-and-infrastructure/"},"work-and-the-economy":{href:"/topics/work-and-the-economy/"}}},partners:{href:"/partnerships/",onlyShow:"logged-out"},account:{order:["profile","settings","log-out"],className:"account",onlyShow:"logged-in",doTrack:!1,profile:{href:"/profiles/me"},settings:{href:"/profiles/me/manage-account"},"log-out":{href:"/user-onboarding/logout",className:"divider"}},buttons:{order:["login","signup"],login:{href:"/user-onboarding/login"},signup:{href:"/signup/?ref=header-banner",props:{variant:"primary"}}}},Yo=({id:e,isLoggedIn:t=!1,isDesktopVersion:n=!1,menus:r={},callback:o=()=>{},doTrack:i=null})=>{const s=Ee(),a=hg(zi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const u="doTrack"in a,f=i===null?u?a.doTrack:!0:i,c=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let _=a.gtmType||`${e}-click`;if(_.includes(".")){const b=_.split("."),A=b[b.length-2];_=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":_,"data-gtm-event-context":"HeaderButtons"}),c&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const l=a.order&&a.order[0]&&a[a.order[0]],p=l&&a[a.order[0]].order,m=d&&typeof window<"u"&&window.location&&window.location.pathname===a.href;let E={},T={};if(l){const _=a.menuId||e,b={onClick:A=>Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]}),onFocus:()=>Ne.events.onFocus({id:_}),onBlur:()=>Ne.events.onBlur({id:_,callback:o}),onMouseLeave:()=>Ne.events.onBlur({id:_,callback:o}),onMouseEnter:()=>Ne.events.onMouseEnter({id:_,callback:o})};n&&(p&&(E={...b,onKeyPress:A=>{A.key==="Enter"&&Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":r[_],"aria-controls":_}),T={hidden:_ in r?!r[_]:!0}),p||(T={...T,...b})}return O.jsxs("li",{className:ne({[a.className]:a.className,"has-submenu":l,parent:p,active:m}),role:"none",...E,children:[d?D.createElement(c?De:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&O.jsx("ul",{...T,children:a.order.map(_=>{if(!a[_])return null;const b={isLoggedIn:t,isDesktopVersion:n,menus:r,callback:o,doTrack:u?f:null};return a[_].order?O.jsxs("li",{className:ne({[a[_].className]:a[_].className}),children:[s.formatMessage({id:`${h}_${_}`}),O.jsx("ul",{children:a[_].order.map(A=>O.jsx(Yo,{id:`${e}.${_}.${A}`,...b},A))})]},_):O.jsx(Yo,{id:`${e}.${_}`,...b},_)})})]},e)};const oO={height:67,height_desktop:83},uu=()=>{const e=Ee(),t=D.useContext(Fn),n=Ji(!0,!0),r=t&&typeof t.id=="string",o=D.useMemo(()=>Ne.getIsDesktopVersion(r,n),[r,n]),[i,s]=D.useReducer(Kb,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:u,focusElements:f}=i;Pp({scrollPosition:oO[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!0,u,s)},scrollDown:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!1,u,s)}}});const c=(d,l)=>{Ne.handleMenus({id:d,value:l,menus:u,dispatch:s})},h=D.useRef(null);return _r(()=>{u.navigation&&Ne.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.navigation]),_r(()=>{u.account&&Ne.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:ne({"logged-in":r,"logged-out":!r,visible:a}),children:[O.jsx(Je,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(nu,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("navigation",!u.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":u.navigation,"aria-controls":"navigation",children:O.jsx(Je,{children:e.formatMessage({id:`header_menu_${u.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||u.account?!1:!u.navigation,role:"menu","data-showing":!o.navigation&&u.account?"account":"default",children:zi.order.map(d=>O.jsx(Yo,{id:d,isLoggedIn:r,isDesktopVersion:o.navigation,menus:{navigation:u.navigation,account:u.account},callback:c},d))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("search",!u.search)},"aria-haspopup":"true","aria-expanded":u.search,"aria-controls":"search-form",children:O.jsx(Je,{children:e.formatMessage({id:`header_search_${u.search?"hide":"show"}`})})}),O.jsx(ig,{id:"global-search",handleToggle:{searchIsOpen:u.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),r?O.jsxs("button",{className:"account-button",onClick:d=>Ne.events.onClick(d,{id:"account",callback:c,isOpen:u.account}),onMouseEnter:()=>Ne.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Ne.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":u.account,"aria-controls":"navigation",children:[O.jsx(Je,{children:e.formatMessage({id:`header_account_${u.account?"hide":"show"}`})}),O.jsx(oa,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:zi.buttons.order.map(d=>O.jsx(Yo,{id:`buttons.${d}`},d))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:ne("overlay",{open:u.navigation||u.account||!o.search&&u.search})})]})},aO=D.createContext(null),zs={didCatch:!1,error:null};class sO extends D.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zs}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(zs)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&cO(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(zs)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const u={error:s,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(o))a=o;else if(typeof n=="function")a=n(u);else if(r)a=D.createElement(r,u);else throw s}return D.createElement(aO.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function cO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const uO=()=>{const e=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:O.jsx(Hm,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(iu,{})]})},lO=({children:e,reportError:t,showFooter:n=!0,background:r="default",className:o="",locale:i="en"})=>{const s=Hp(e,{locale:i});return O.jsx(sO,{onError:t,fallback:O.jsx(uO,{}),children:O.jsx(D.Suspense,{fallback:O.jsx(Ym,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:ne(o,{[r]:r!=="default"}),children:O.jsxs(Hg,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:s}),n&&O.jsx(iu,{}),O.jsx(eg,{})]})})})})},Sd={default:"tags_",headerTopics:"header_topics_topics_"},Ys={topic:{Climate:"climate",CitiesAndLocalGovernment:"cities-and-local-government",DigitalAndData:"digital-and-data",Education:"education",EquityJusticeAndInclusion:"equity-justice-and-inclusion",HealthAndSocialCare:"health-and-social-care",Innovation:"innovation",LeadershipAndSkills:"leadership-and-skills",LifeInGovernment:"life-in-government",Policymaking:"policymaking",TransportAndInfrastructure:"transport-and-infrastructure",WorkAndTheEconomy:"work-and-the-economy"},"from the community":"community"},fO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Ys.topic[e.replace("topic_","")],e){const t=zi.topics.topics[e].href;return t?{id:e,href:t,text:`${Sd.headerTopics}${e}`}:null}return null}return Ys[e]?(e=Ys[e],{id:e,text:`${Sd.default}${e}`}):null}};const dO=({tags:e=[],color:t="default",forceOneLine:n=!1,canHaveLinks:r=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Ee();if(!e||e.length<1)return null;const u=[];return e.forEach(f=>{if(!f)return;const c=fO.getTagDetails(f);c&&u.push(c)}),u.length<1?null:O.jsx("ul",{className:ne("tags text-small",t,o,{"one-line":n}),children:u.map(f=>{const c=a.formatMessage({id:f.text});return O.jsx("li",{children:f.href&&r?O.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:c}):c},f.id)})})};const hO=({members:{total:e,data:t=[]},pagination:n,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:ne("members-list",i),children:[O.jsxs("h1",{children:[s.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((a,u)=>O.jsxs("li",{children:[O.jsx(aa,{member:a,gtmContext:r,gtmType:o}),a.isAdmin&&O.jsx(Wm,{children:s.formatMessage({id:"membersList_admin"})})]},u))}),n&&O.jsx(Jm,{...n,icon:{icon:"arrow-down",position:"right"},gtmContext:r})]}))},pO={showThread:!1,showForm:!1},lu=D.createContext(pO),mO=({children:e})=>{const[t,n]=D.useState({showThread:!1,showForm:!1});return O.jsx(lu.Provider,{value:{...t,updateConversation:n},children:e})};function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function gO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var yO=D.useLayoutEffect,vO=function(t){var n=Oe.useRef(t);return yO(function(){n.current=t}),n},Td=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_O=function(t,n){var r=D.useRef();return D.useCallback(function(o){t.current=o,r.current&&Td(r.current,null),r.current=n,n&&Td(n,o)},[n])},xd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},EO=function(t){Object.keys(xd).forEach(function(n){t.style.setProperty(n,xd[n],"important")})},Od=EO,it=null,Ad=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function bO(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),it||(it=document.createElement("textarea"),it.setAttribute("tabindex","-1"),it.setAttribute("aria-hidden","true"),Od(it)),it.parentNode===null&&document.body.appendChild(it);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var l=d;it.style[l]=s[l]}),Od(it),it.value=t;var u=Ad(it,e);it.value=t,u=Ad(it,e),it.value="x";var f=it.scrollHeight-o,c=f*n;a==="border-box"&&(c=c+o+i),u=Math.max(c,u);var h=f*r;return a==="border-box"&&(h=h+o+i),u=Math.min(h,u),[u,f]}var Cd=function(){},wO=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},SO=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],TO=!!document.documentElement.currentStyle,xO=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=wO(SO,n),o=r.boxSizing;if(o==="")return null;TO&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},OO=xO;function pg(e,t,n){var r=vO(n);Oe.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var AO=function(t){pg(window,"resize",t)},CO=function(t){pg(document.fonts,"loadingdone",t)},RO=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],NO=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?Cd:s,u=t.onHeightChange,f=u===void 0?Cd:u,c=gO(t,RO),h=c.value!==void 0,d=Oe.useRef(null),l=_O(d,n),p=Oe.useRef(0),m=Oe.useRef(),E=function(){var b=d.current,A=r&&m.current?m.current:OO(b);if(A){m.current=A;var w=bO(A,b.value||b.placeholder||"x",i,o),N=w[0],F=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),f(N,{rowHeight:F}))}},T=function(b){h||E(),a(b)};return Oe.useLayoutEffect(E),AO(E),CO(E),Oe.createElement("textarea",Ac({},c,{onChange:T,ref:l}))},PO=Oe.forwardRef(NO);let Io=null;const pt="discussion_form_",mg=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:n,maxLength:r=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:a="DiscussionForm"})=>{var B,G;const u=Ee(),f=D.useContext(Fn),[c,h]=D.useState(t.isEditing&&t.isEditing.text||""),[d,l]=D.useState(i.error||!1),[p,m]=D.useState(!1),E=D.useRef(null);if(n||(n=E),t.isLoading)return O.jsx(br,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const T=W=>{const V=W.target.value;h(V);let H;!f||!f.id?H=rr(u.formatMessage,`${pt}error_loggedOut`,e.type,"action"):V.length>=r&&(H=`${pt}error_tooLong`),H?l(H):d&&l(!1)};let _=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const W=e.type==="response"?((B=e.slugs)==null?void 0:B.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";W&&(_=`${_}-${W.slice(-15)}`)}const b=async W=>{var H;if(W.preventDefault(),W.stopPropagation(),w)return;Io&&clearTimeout(Io),m("submitting");const V=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await s.create({content:c});break;case"question":Y=await s.create({title:c,authorId:f&&f.id,...(H=s.props)==null?void 0:H.create});break;case"response":Y=await s.create({question:e.slugs.question},{body:c,authorId:f&&f.id,contentPath:V});break;case"reply":Y=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:c,authorId:f&&f.id,contentPath:V});break;default:break}await Jb(1e3),s.callback&&await s.callback(Y),Io=setTimeout(()=>{h(""),m("submitted"),A()},500)}catch(Y){const oe=Y;let Q=`${pt}error`;oe.message.includes("entry already exists")&&(Q=rr(u.formatMessage,`${pt}error_alreadyExists`,e.type,"action")),oe.message.includes("429")?Q=rr(u.formatMessage,`${pt}error_tooMany`,e.type,"action"):oe.message.includes("400")&&(Q=`${pt}error`),l(Q),A()}},A=()=>{Io=setTimeout(()=>{l(!1),m(!1)},5e3)},w=!c||!rw(c),N=p==="submitting",F=[];return(t.isEditing&&!N||i.cancel)&&F.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!f||!f.id||!c),children:u.formatMessage({id:`${pt}cancel`})}),F.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:W=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(E.current&&"value"in E.current?E.current.value:"");return}b(W)},className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!f||!f.id||w||N||t.isEditing&&c===t.isEditing.text,children:u.formatMessage({id:`${pt}${N?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),O.jsxs("form",{id:_,className:ne("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:rr(u.formatMessage,`${pt}title`,e.type,"action")}),O.jsx(aa,{member:f||"community",gtmContext:a,gtmType:"profile-click"}),O.jsx(Je,{element:"label",showOnFocus:!1,htmlFor:`${_}-input`,children:rr(u.formatMessage,`${pt}label`,e.type,"action")}),O.jsx(PO,{ref:n,id:`${_}-input`,name:e.type,placeholder:rr(u.formatMessage,`${pt}placeholder`,e.type,"action"),onChange:T,value:c,maxLength:r,"aria-invalid":!!d,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),O.jsx("small",{children:rr(u.formatMessage,`${pt}explainer`,e.type,"action",{a:W=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"community-guidelines-link",children:W})})}),O.jsx(Zi,{buttons:F}),p==="submitted"&&O.jsx(Vo,{className:"success","data-testid":"success",children:rr(u.formatMessage,`${pt}success`,e.type,"action")}),d&&O.jsx(Vo,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof d=="string"?d.includes(" ")?d:u.formatMessage({id:d},{action:u.formatMessage({id:`discussion_action_${e.type}`}),maxLength:r}):d})]})},IO=({question:e,answer:t,reply:n})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...n&&{replySlug:n}}),LO=(e,t=10)=>!e||e.length===0?[]:e.reverse().slice(0,t);let qi=!1;const Ks=()=>{qi!==!1&&(clearTimeout(qi),qi=!1)},gg=({element:e="div",likes:t=0,peopleWhoLiked:n=!1,isShort:r=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:s=!0,functions:{createLike:a=()=>{},deleteLike:u=()=>{}}={}})=>{const f=Ee();D.useEffect(()=>{l(o)},[o]);const[c,h]=D.useState(t),[d,l]=D.useState(o),[p,m]=D.useState(!1),[E,T]=D.useState(!1),_=D.useMemo(()=>LO(n),[n]),b=window.location.pathname,A=N=>{if(N.preventDefault(),N.stopPropagation(),T(!1),qi)return Ks(),!1;if(Ks(),p||!s)return!1;qi=setTimeout(w,350)},w=async()=>{if(Ks(),p||!s)return!1;let N=d?c-1:c+1;N<0&&(N=0),m(!0),h(N),l(!d);try{if(i&&i.slugs){const F=IO(i.slugs);d?await u(F):await a(F,{contentPath:b})}}catch{h(t),l(o)}finally{m(!1)}};return D.createElement(e,{className:ne("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":d,disabled:!s}),onClick:A,onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:d?"heart":"heart_empty",animate:"bounce"},className:ne({"do-animation":d&&!o}),screenreaderText:s?f.formatMessage({id:`discussion_${i.type}_likes_${d?"unlike":"like"}`}):!1,onClick:A,disabled:!s,"aria-hidden":!s,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),O.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:f.formatMessage({id:`discussion_likes${r?"_short":""}`},{number:c})}),n&&O.jsx(Em,{isOpen:E,isLoading:n.length===0,children:n.length&&O.jsx("ul",{children:_.map(N=>typeof N=="string"||!N.name?null:O.jsx("li",{children:N.name},N.id||window.btoa(N.name)))})})]})})};var Ko={exports:{}};Ko.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",d="[object Error]",l="[object Function]",p="[object GeneratorFunction]",m="[object Map]",E="[object Number]",T="[object Null]",_="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",N="[object Set]",F="[object String]",B="[object Symbol]",G="[object Undefined]",W="[object WeakMap]",V="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",oe="[object Float64Array]",Q="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",Z="[object Uint8Array]",de="[object Uint8ClampedArray]",X="[object Uint16Array]",K="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,J={};J[Y]=J[oe]=J[Q]=J[M]=J[z]=J[Z]=J[de]=J[X]=J[K]=!0,J[a]=J[u]=J[V]=J[c]=J[H]=J[h]=J[d]=J[l]=J[m]=J[E]=J[_]=J[w]=J[N]=J[F]=J[W]=!1;var re=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=re||Pe||Function("return this")(),st=t&&!t.nodeType&&t,ut=st&&!0&&e&&!e.nodeType&&e,Et=ut&&ut.exports===st,te=Et&&re.process,Ye=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),je=Ye&&Ye.isTypedArray;function bt(y,x){for(var R=-1,j=y==null?0:y.length,fe=0,ae=[];++R<j;){var pe=y[R];x(pe,R,y)&&(ae[fe++]=pe)}return ae}function Gt(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Rt(y,x){for(var R=-1,j=y==null?0:y.length;++R<j;)if(x(y[R],R,y))return!0;return!1}function mt(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Tr(y){return function(x){return y(x)}}function wt(y,x){return y.has(x)}function gt(y,x){return y==null?void 0:y[x]}function He(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function St(y,x){return function(R){return y(x(R))}}function nt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var Ke=Array.prototype,xr=Function.prototype,S=Object.prototype,g=Ae["__core-js_shared__"],v=xr.toString,C=S.hasOwnProperty,P=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),U=S.toString,q=RegExp("^"+v.call(C).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Et?Ae.Buffer:void 0,we=Ae.Symbol,Se=Ae.Uint8Array,Te=S.propertyIsEnumerable,he=Ke.splice,lt=we?we.toStringTag:void 0,ar=Object.getOwnPropertySymbols,Or=le?le.isBuffer:void 0,Wt=St(Object.keys,Object),Ar=xt(Ae,"DataView"),Vt=xt(Ae,"Map"),Cr=xt(Ae,"Promise"),Rr=xt(Ae,"Set"),Nr=xt(Ae,"WeakMap"),Nt=xt(Object,"create"),an=Qe(Ar),Tt=Qe(Vt),Dn=Qe(Cr),$n=Qe(Rr),jn=Qe(Nr),sn=we?we.prototype:void 0,Pr=sn?sn.valueOf:void 0;function Ue(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Ir(){this.__data__=Nt?Nt(null):{},this.size=0}function Lr(y){var x=this.has(y)&&delete this.__data__[y];return this.size-=x?1:0,x}function zt(y){var x=this.__data__;if(Nt){var R=x[y];return R===r?void 0:R}return C.call(x,y)?x[y]:void 0}function cn(y){var x=this.__data__;return Nt?x[y]!==void 0:C.call(x,y)}function Hn(y,x){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Nt&&x===void 0?r:x,this}Ue.prototype.clear=Ir,Ue.prototype.delete=Lr,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__=[],this.size=0}function Gn(y){var x=this.__data__,R=ur(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():he.call(x,R,1),--this.size,!0}function Wn(y){var x=this.__data__,R=ur(x,y);return R<0?void 0:x[R][1]}function Vn(y){return ur(this.__data__,y)>-1}function Mr(y,x){var R=this.__data__,j=ur(R,y);return j<0?(++this.size,R.push([y,x])):R[j][1]=x,this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Mr;function et(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function zn(){this.size=0,this.__data__={hash:new Ue,map:new(Vt||qe),string:new Ue}}function Yn(y){var x=ft(this,y).delete(y);return this.size-=x?1:0,x}function Kn(y){return ft(this,y).get(y)}function Qn(y){return ft(this,y).has(y)}function Xn(y,x){var R=ft(this,y),j=R.size;return R.set(y,x),this.size+=R.size==j?0:1,this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y){var x=-1,R=y==null?0:y.length;for(this.__data__=new et;++x<R;)this.add(y[x])}function un(y){return this.__data__.set(y,r),this}function cr(y){return this.__data__.has(y)}sr.prototype.add=sr.prototype.push=un,sr.prototype.has=cr;function ct(y){var x=this.__data__=new qe(y);this.size=x.size}function kr(){this.__data__=new qe,this.size=0}function Jn(y){var x=this.__data__,R=x.delete(y);return this.size=x.size,R}function Zn(y){return this.__data__.get(y)}function ei(y){return this.__data__.has(y)}function ti(y,x){var R=this.__data__;if(R instanceof qe){var j=R.__data__;if(!Vt||j.length<n-1)return j.push([y,x]),this.size=++R.size,this;R=this.__data__=new et(j)}return R.set(y,x),this.size=R.size,this}ct.prototype.clear=kr,ct.prototype.delete=Jn,ct.prototype.get=Zn,ct.prototype.has=ei,ct.prototype.set=ti;function ri(y,x){var R=lr(y),j=!R&&mn(y),fe=!R&&!j&&dr(y),ae=!R&&!j&&!fe&&$r(y),pe=R||j||fe||ae,me=pe?mt(y.length,String):[],Me=me.length;for(var be in y)(x||C.call(y,be))&&!(pe&&(be=="length"||fe&&(be=="offset"||be=="parent")||ae&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Pt(be,Me)))&&me.push(be);return me}function ur(y,x){for(var R=y.length;R--;)if(pn(y[R][0],x))return R;return-1}function Br(y,x,R){var j=x(y);return lr(y)?j:Gt(j,R(y))}function Yt(y){return y==null?y===void 0?G:T:lt&&lt in Object(y)?Ot(y):hn(y)}function ln(y){return yt(y)&&Yt(y)==a}function fn(y,x,R,j,fe){return y===x?!0:y==null||x==null||!yt(y)&&!yt(x)?y!==y&&x!==x:dn(y,x,R,j,fn,fe)}function dn(y,x,R,j,fe,ae){var pe=lr(y),me=lr(x),Me=pe?u:dt(y),be=me?u:dt(x);Me=Me==a?_:Me,be=be==a?_:be;var Ge=Me==_,Xe=be==_,Be=Me==be;if(Be&&dr(y)){if(!dr(x))return!1;pe=!0,Ge=!1}if(Be&&!Ge)return ae||(ae=new ct),pe||$r(y)?Fr(y,x,R,j,fe,ae):ai(y,x,Me,R,j,fe,ae);if(!(R&o)){var We=Ge&&C.call(y,"__wrapped__"),$e=Xe&&C.call(x,"__wrapped__");if(We||$e){var It=We?y.value():y,At=$e?x.value():x;return ae||(ae=new ct),fe(It,At,R,j,ae)}}return Be?(ae||(ae=new ct),Ur(y,x,R,j,fe,ae)):!1}function ni(y){if(!yn(y)||ui(y))return!1;var x=gn(y)?q:ue;return x.test(Qe(y))}function ii(y){return yt(y)&&Dr(y.length)&&!!J[Yt(y)]}function oi(y){if(!li(y))return Wt(y);var x=[];for(var R in Object(y))C.call(y,R)&&R!="constructor"&&x.push(R);return x}function Fr(y,x,R,j,fe,ae){var pe=R&o,me=y.length,Me=x.length;if(me!=Me&&!(pe&&Me>me))return!1;var be=ae.get(y);if(be&&ae.get(x))return be==x;var Ge=-1,Xe=!0,Be=R&i?new sr:void 0;for(ae.set(y,x),ae.set(x,y);++Ge<me;){var We=y[Ge],$e=x[Ge];if(j)var It=pe?j($e,We,Ge,x,y,ae):j(We,$e,Ge,y,x,ae);if(It!==void 0){if(It)continue;Xe=!1;break}if(Be){if(!Rt(x,function(At,Qt){if(!wt(Be,Qt)&&(We===At||fe(We,At,R,j,ae)))return Be.push(Qt)})){Xe=!1;break}}else if(!(We===$e||fe(We,$e,R,j,ae))){Xe=!1;break}}return ae.delete(y),ae.delete(x),Xe}function ai(y,x,R,j,fe,ae,pe){switch(R){case H:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case V:return!(y.byteLength!=x.byteLength||!ae(new Se(y),new Se(x)));case c:case h:case E:return pn(+y,+x);case d:return y.name==x.name&&y.message==x.message;case w:case F:return y==x+"";case m:var me=He;case N:var Me=j&o;if(me||(me=nt),y.size!=x.size&&!Me)return!1;var be=pe.get(y);if(be)return be==x;j|=i,pe.set(y,x);var Ge=Fr(me(y),me(x),j,fe,ae,pe);return pe.delete(y),Ge;case B:if(Pr)return Pr.call(y)==Pr.call(x)}return!1}function Ur(y,x,R,j,fe,ae){var pe=R&o,me=Kt(y),Me=me.length,be=Kt(x),Ge=be.length;if(Me!=Ge&&!pe)return!1;for(var Xe=Me;Xe--;){var Be=me[Xe];if(!(pe?Be in x:C.call(x,Be)))return!1}var We=ae.get(y);if(We&&ae.get(x))return We==x;var $e=!0;ae.set(y,x),ae.set(x,y);for(var It=pe;++Xe<Me;){Be=me[Xe];var At=y[Be],Qt=x[Be];if(j)var ro=pe?j(Qt,At,Be,x,y,ae):j(At,Qt,Be,y,x,ae);if(!(ro===void 0?At===Qt||fe(At,Qt,R,j,ae):ro)){$e=!1;break}It||(It=Be=="constructor")}if($e&&!It){var Lt=y.constructor,hr=x.constructor;Lt!=hr&&"constructor"in y&&"constructor"in x&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof hr=="function"&&hr instanceof hr)&&($e=!1)}return ae.delete(y),ae.delete(x),$e}function Kt(y){return Br(y,vn,si)}function ft(y,x){var R=y.__data__;return ci(x)?R[typeof x=="string"?"string":"hash"]:R.map}function xt(y,x){var R=gt(y,x);return ni(R)?R:void 0}function Ot(y){var x=C.call(y,lt),R=y[lt];try{y[lt]=void 0;var j=!0}catch{}var fe=U.call(y);return j&&(x?y[lt]=R:delete y[lt]),fe}var si=ar?function(y){return y==null?[]:(y=Object(y),bt(ar(y),function(x){return Te.call(y,x)}))}:_n,dt=Yt;(Ar&&dt(new Ar(new ArrayBuffer(1)))!=H||Vt&&dt(new Vt)!=m||Cr&&dt(Cr.resolve())!=b||Rr&&dt(new Rr)!=N||Nr&&dt(new Nr)!=W)&&(dt=function(y){var x=Yt(y),R=x==_?y.constructor:void 0,j=R?Qe(R):"";if(j)switch(j){case an:return H;case Tt:return m;case Dn:return b;case $n:return N;case jn:return W}return x});function Pt(y,x){return x=x??s,!!x&&(typeof y=="number"||Fe.test(y))&&y>-1&&y%1==0&&y<x}function ci(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function ui(y){return!!P&&P in y}function li(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||S;return y===R}function hn(y){return U.call(y)}function Qe(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y,x){return y===x||y!==y&&x!==x}var mn=ln(function(){return arguments}())?ln:function(y){return yt(y)&&C.call(y,"callee")&&!Te.call(y,"callee")},lr=Array.isArray;function fr(y){return y!=null&&Dr(y.length)&&!gn(y)}var dr=Or||di;function fi(y,x){return fn(y,x)}function gn(y){if(!yn(y))return!1;var x=Yt(y);return x==l||x==p||x==f||x==A}function Dr(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function yn(y){var x=typeof y;return y!=null&&(x=="object"||x=="function")}function yt(y){return y!=null&&typeof y=="object"}var $r=je?Tr(je):ii;function vn(y){return fr(y)?ri(y):oi(y)}function _n(){return[]}function di(){return!1}e.exports=fi})(Ko,Ko.exports);var MO=Ko.exports;const kO=jt(MO);const yg=({element:e="section",children:t,className:n,...r})=>D.createElement(e,{className:ne("modal",n),children:typeof t=="string"?O.jsx("p",{children:t}):t,...r});const vg=({id:e="content-overlay",isOpen:t=!1,maxWidth:n,functions:{onOpen:r=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:s,children:a,buttons:u,className:f="",gtmContext:c="Modal"})=>{const h=Ee(),[d,l]=D.useState(t),p=E=>{l(E),E?(r(),document.body.classList.add("has-overlay")):(o(),document.body.classList.remove("has-overlay"))};_r(()=>{p(t)},[t]);const m=n?{"--max-width":`${n/16}rem`}:{};return O.jsx("div",{className:ne("overlay",{open:d}),children:O.jsx(yg,{id:e,className:ne("overlay-modal",f,{"has-max-width":n}),hidden:!d,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:s}),O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":c,screenreaderText:h.formatMessage({id:"overlay_button"})})]}),O.jsx(Go,{}),a,u&&O.jsxs("div",{className:"bottom",children:[O.jsx(Go,{}),O.jsx(Zi,{buttons:u})]}),i&&O.jsx(Vo,{className:"error",children:i})]})})})},_g=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Rd=e=>{const t={};return Object.keys(e).forEach(n=>{t[`${n}Slug`]=e[n]}),t};const tr="discussion_",BO=({element:e="div",content:t,isLoading:n=!1,originalAuthorId:r,functions:{content:{createContent:o,deleteContent:i,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:a,deleteLike:u}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:f}={openComments:()=>{}}},links:c={},className:h,gtmContext:d="DiscussionAnswer",locale:l="en",children:p})=>{const m=Ee(),E=D.useContext(Fn),T=D.useContext(lu),[_,b]=D.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,w]=D.useState(!1),[N,F]=D.useState("");if(D.useEffect(()=>{b({..._,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(br,{className:"discussion-card discussion-post"});const{author:B,canLike:G,createdAt:W,id:V,likes:H=0,userLiked:Y,comments:oe=0}=t,Q=E&&E.id&&typeof B!="string"&&B.id&&B.id===E.id||!1,M=typeof G=="boolean"?G:!Q,z=async K=>{K||(K=""),F("");try{if(!kO(K,_.body)){const se=t.type==="question"?{title:K}:{body:K};await s(Rd(t.slugs),se)}b({body:K,isEditing:!1,didEdit:!0})}catch{F(`${tr}form_error`)}},Z=()=>{T&&T.updateConversation&&T.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const se=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,ue=document.getElementById(se),Fe=document.getElementById(`${se}-input`);Fe&&Fe.focus(),ue&&ue.scrollIntoView({behavior:"smooth"})},0)},de=()=>{try{i(Rd(t.slugs))}catch{F("delete-error")}},X=[{text:m.formatMessage({id:`${tr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${tr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${tr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return Q&&X.push({text:m.formatMessage({id:`${tr}moreMenu_edit`}),onClick:()=>b({..._,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${tr}moreMenu_delete`}),onClick:K=>{K.preventDefault(),K.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`delete-${t.type}-click`,..._g(`delete-${t.slug}-modal`,A)}),D.createElement(e,{className:ne("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:V||t.slug,className:ne("discussion-card",t.type,{editing:_.isEditing,"has-link":c.post&&!_.isEditing}),onClick:K=>{!c.post||_.isEditing||(K.preventDefault(),K.stopPropagation(),window.location.href=c.post)},children:[!_.isEditing&&O.jsx(aa,{member:B,additionalContent:{createdAt:W,didEdit:_.didEdit},className:typeof B!="string"&&B.id===r?"highlighted":"",gtmContext:d,gtmType:"profile-click"}),_.isEditing?O.jsx(mg,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:n,isInWrapper:!0,isEditing:{text:_.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:z,handleCancel:()=>{F(""),b({..._,isEditing:!1})}},gtmContext:`${d}Form`}):c.post?O.jsx("a",{href:c.post,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":"title-click",children:O.jsx(xc,{options:{overrides:{a:null}},children:_.body})}):O.jsx(xc,{options:{wrapper:t.type==="question"?"h1":D.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:_.body}),!_.isEditing&&O.jsxs("ul",{className:ne("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(gg,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:M,functions:{createLike:a,deleteLike:u}}),t.type==="question"&&O.jsxs("li",{className:"action-button",onClick:K=>{K.preventDefault(),K.stopPropagation(),c.comments&&(window.location.href=c.comments),typeof f=="function"&&f()},children:[O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:c.comments?c.comments:!1,onClick:c.comments||typeof f!="function"?!1:f,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${tr}comments_screenReader`},{count:oe})}),O.jsx("span",{children:m.formatMessage({id:`${tr}comments`},{count:oe})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:Z,children:m.formatMessage({id:`${tr}reply`})})}),O.jsx(Zm,{element:"li",id:`more-${t.slug}`,options:X})]})]}),p,O.jsx(vg,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:N==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:de,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(vr,{id:"discussion_delete_text",values:{p:K=>O.jsx("p",{children:K}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Qs="discussion_responses_",FO=({type:e="answer",responses:t=0})=>{const n=Ee();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:n.formatMessage({id:`${Qs}title`},{action:n.formatMessage({id:`${Qs}${e}`}),count:t})}),t===0&&O.jsx("p",{children:rr(n.formatMessage,`${Qs}empty`,e,e)})]})};const UO=({isOpen:e=!1,count:t=0,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState(e),[a,u]=D.useState("closed");D.useEffect(()=>{const d=o.current;if(d)return d.addEventListener("transitionend",f),()=>{d.removeEventListener("transitionend",f)}},[]),_r(()=>{a==="closed"&&!i||u(["opening","open"].includes(a)?"ready-to-close":"opening")},[i]),D.useEffect(()=>{a==="ready-to-close"&&u("closing")},[a]);const f=({propertyName:d})=>{d==="max-height"&&u(l=>l==="opening"?"open":l==="closing"?"closed":l)},c=["opening","open"].includes(a),h=Hp(n,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(De,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{s(!i)},children:r.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:ne("thread",a),hidden:!i,children:h})]})};exports.ASSETS_BUCKET=Wo;exports.BannerSection=NS;exports.Breadcrumbs=ZT;exports.Button=De;exports.ButtonWrapper=Zi;exports.CollapsibleSection=Zc;exports.Columns=rx;exports.CommunityDetails=JT;exports.Contributors=Qm;exports.ConversationContext=lu;exports.CookieBanner=eg;exports.DiscussionConversation=mO;exports.DiscussionForm=mg;exports.DiscussionLikes=gg;exports.DiscussionPost=BO;exports.DiscussionThread=UO;exports.Divider=Go;exports.DownloadSection=OS;exports.EmailHelperTextBox=nx;exports.EmptyStateBox=Hm;exports.Filters=ex;exports.Footer=iu;exports.FullWidthSection=Jc;exports.Header=uu;exports.HelperTextBox=Gm;exports.HiddenFromScreenReaders=Cc;exports.HideShowTextBox=FT;exports.HighlightedTextBox=or;exports.IntlProvider=QT;exports.JoinButton=Xm;exports.Link=zc;exports.LoadMore=Jm;exports.LoadingBlock=zT;exports.LoadingPlaceholder=br;exports.LoadingState=Ym;exports.Logo=nu;exports.LogoSection=AS;exports.MarkdownText=xc;exports.MarketingBox=PS;exports.Member=aa;exports.MembersList=hO;exports.Modal=yg;exports.MoreMenu=Zm;exports.NUMBER_OF_USERS=LS;exports.Overlay=vg;exports.PageLayout=lO;exports.PasswordRules=ax;exports.Pill=Wm;exports.ProfilePicture=oa;exports.ProgressBar=Vm;exports.Rating=sx;exports.ResponsesHeading=FO;exports.ResponsiveImage=qp;exports.SearchForm=ig;exports.StatusBanner=Vo;exports.Tags=dO;exports.Tooltip=Em;exports.UserContext=Fn;exports.UserProvider=XT;exports.VisuallyHidden=Je;exports.addAriaProps=_g;exports.getMember=ru;exports.headerData=zi;exports.useEffectAfterMount=_r;exports.useFeatureFlag=qE;exports.useScreenWidth=Ji;exports.useScrollListener=Pp;exports.useScrollToHash=WE;
101
+ `))},[r]),D.useEffect(()=>{f==="ready-to-close"&&c("closing")},[f]);const h=({propertyName:l})=>{l==="max-height"&&c(p=>p==="opening"?"open":p==="closing"?"closed":p)};if(!r)return null;const d=["opening","open"].includes(f);return O.jsxs(or,{variant:"subtle",className:ne("hide-show-text-box",e),children:[O.jsxs("div",{ref:s,className:ne("content",f),children:[O.jsx(ia,{options:{forceBlock:!0},children:f==="closed"?a:r}),f!=="closed"&&o]}),O.jsx("p",{className:"cta",children:O.jsx(De,{variant:"tertiary",icon:{icon:"navigation_arrow",position:"left",animate:!0},styling:{muted:!0},className:ne({"rotate-180":d}),onClick:()=>{c(d?"ready-to-close":"opening")},children:d?n||i.formatMessage({id:"hideShowTextBox_hide"}):t||i.formatMessage({id:"hideShowTextBox_show"})})})]})},UT=()=>D.Fragment,DT=({children:e})=>O.jsx(or,{variant:"secondary",children:e}),$T=["span","strong","h1","h2","h3","h4","h5","h6","p"],jT=({children:e})=>{const t=Ee();if(!e)return null;let n=t.formatMessage({id:"markdown_collapsibleSection_summary"});const r=[];for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number"))if(D.isValidElement(i)&&i.type==="summary"){if(i.props&&i.props.children){for(const s of D.Children.toArray(i.props.children))if(!(!s||typeof s=="string"||typeof s=="number")&&D.isValidElement(s)){const a=s.type;if($T.includes(a)){for(n=s.props.children;typeof n!="string"&&(Array.isArray(n)&&n[0].props&&n[0].props.children&&n[0].props.children[0]);)n=n[0].props.children[0];break}}}}else r.push(i);const o=n?n.toString():"";return O.jsx(Zc,{label:o,className:["Sources","Resources"].includes(o)?"discrete-links":"",children:r.map(i=>i)})},HT=({children:e,...t})=>{if(t.class)switch(t.class){case"casestudy":return O.jsx(or,{variant:"secondary",children:e});case"general-textbox":case"highlight-box":return O.jsx(or,{variant:"primary",children:e});case"pink-textbox":return O.jsx(or,{variant:"tertiary",children:e});default:return O.jsx("div",{...t,children:e})}return O.jsx("div",{...t,children:e})},qT=e=>{const t=Ee(),n=Date.now().toString();let r="default";const o=e.src;return o.includes("youtube")||o.includes("vimeo")?r="video":o.includes("riddle")||o.includes("sli.do")?r="poll":o.includes("padlet")&&(r="padlet"),O.jsxs(O.Fragment,{children:[O.jsx(Je,{children:O.jsx("a",{href:`#content-after-iframe-${n}`,children:t.formatMessage({id:`markdown_skip${r==="default"?"":`_${r}`}`})})}),O.jsx("iframe",{...e,title:t.formatMessage({id:`markdown_iframe${r==="default"?"":`_${r}`}`})}),O.jsx("span",{id:`content-after-iframe-${n}`,tabIndex:-1})]})},md=e=>{let t="";return e&&typeof e!="string"&&typeof e!="number"&&typeof e!="boolean"&&"type"in e&&(t=e.type),t},GT=({children:e,...t})=>{let n={...t};t.href&&(t.href.includes("http:")||t.href.includes("https:"))&&!t.target&&(n.target="_blank");let r=e,o=!1;for(const i of D.Children.toArray(e))if(!(!i||typeof i=="string"||typeof i=="number")&&D.isValidElement(i)){const s=i.type;if(["button","center","span","strong"].includes(s)&&i.props&&i.props.children&&i.props.children[0])for((s==="button"||md(i.props.children[0])==="button")&&(o=!0),r=i.props.children[0];r&&typeof r!="string"&&!(typeof r=="boolean"||typeof r=="number"||!D.isValidElement(r));)if(r.props&&r.props.children&&r.props.children[0])r=r.props.children[0],r&&md(r)==="button"&&(o=!0);else break}return o?(n={...n,className:"button primary medium"},O.jsx("p",{className:"center",children:O.jsx(De,{variant:"primary",size:"medium",...n,children:r})})):O.jsx("a",{...n,children:r})};const xc=({className:e="",options:t={},children:n})=>{n=n.replace(/^<br\/?>/,"");const r={wrapper:D.Fragment,forceBlock:!0,overrides:{a:GT,CollapsibleSection:Zc,TextBox:or,CaseStudy:DT,style:UT,details:jT,div:HT,iframe:qT}};return O.jsx("div",{className:ne("markdown-text",e),children:O.jsx(ia,{options:{...r,...t},children:n})})};const Wm=({size:e="medium",variant:t="default",className:n="",children:r})=>O.jsx("span",{className:ne("pill",e,t,n),children:r});const Vo=({element:e="p",children:t=null,className:n="",...r})=>D.createElement(e,{...r,className:ne("status-banner text-small",n),"aria-live":"assertive"},t);const WT=({progress:e=0,text:t=!1,className:n=""})=>{const r=Ee(),o=e>75?100:e>50?75:e>25?50:e>5?25:0,i={"--progress":`${e}%`};return O.jsx("span",{className:ne(`progress-bar section-${o}`,n),style:i,children:O.jsx(Je,{children:t?`${e} ${t}`:r.formatMessage({id:"progressBar"},{number:e})})})},Vm=D.memo(WT);const Ds="loadingBlock_",VT=({progress:e=0,steps:t=!1,className:n=""})=>{const r=Ee();t||(t={0:{text:r.formatMessage({id:`${Ds}loading`})},75:{text:r.formatMessage({id:`${Ds}almostDone`})},100:{text:r.formatMessage({id:`${Ds}complete`})}});let o=null;const i=Object.keys(t);for(let a=0;a<i.length&&!(e<parseInt(i[a]));a++)o=i[a];const s=o&&t[o].icon?{"--icon":`url(${Wo}icons/${t[o].icon}.svg)`}:{};return O.jsxs(or,{className:ne("loading-block",n,{"has-icon":o&&t[o].icon}),variant:"subtle",style:s,children:[o&&O.jsx("span",{className:"step",children:t[o].text}),O.jsx(Vm,{progress:e})]})},zT=D.memo(VT);const Er=({element:e="div",className:t="",...n})=>O.jsx(Cc,{element:e,className:ne("loading-placeholder",t),...n});const Oc={header:["logo","link","link","search"],sidebar:["text","text","text","text","text"],"cards-section":["subtitle","cards"],cards:["card","card","card","card"],"overview-page":["header","sidebar","title","text","cards-section","cards-section","footer"]},zm=(e,t)=>e in Oc?O.jsx("div",{className:e,children:Oc[e].map((n,r)=>zm(n,r))},t):O.jsx(Er,{className:e},t),Ym=({layout:e="overview-page"})=>O.jsx("div",{className:ne("loading-state",e),children:Oc[e].map((t,n)=>zm(t,n))}),Km=e=>{const t=e&&e.toUpperCase().split(" ");return Array.isArray(t)&&t.length>1&&t[0]!==""?t[1]===""?t[0][0]:t[0][0]+t[t.length-1][0]:e?e.substr(0,1):""},Co=["#5AB6A3","#A2D7AF","#806056","#3962B3"],YT=e=>{const t=Math.ceil(26/Co.length),n=Km(e).toLowerCase();if(n==="")return Co[0];const r=n.charCodeAt(0)-96;for(let o=0;o<Co.length;o++)if(r<=t*(o+1))return Co[o]};const gd=256,oa=({className:e="",src:t="",name:n,alt:r,width:o=gd,height:i=gd,...s})=>{const[a,u]=D.useState(!1),f=D.useRef(null);return D.useEffect(()=>{const c=f.current;if(!c)return;const h=c.getContext("2d");if(!h)return;const d=o,l=i;typeof window<"u"&&window.devicePixelRatio&&(c.width=d*window.devicePixelRatio,c.height=l*window.devicePixelRatio,h.scale(window.devicePixelRatio,window.devicePixelRatio)),h.fillStyle=YT(n),h.fillRect(0,0,d,l),h.font=`${d/3}px Arial`,h.textAlign="center",h.fillStyle="white",h.fillText(Km(n),d/2,l/1.6)},[n]),O.jsxs("figure",{className:ne("profile-picture",e,{error:a}),...s,children:[t!==""&&!a&&O.jsx("img",{src:t,alt:r||n,onError:()=>{u(!0)},width:o,height:i}),(t===""||a)&&O.jsx("canvas",{ref:f})]})},ru=e=>e==="apolitical"?{image:`${Wo}logos/member_apolitical.svg`}:e==="community"||typeof e=="object"&&!e.name?{image:`${Wo}logos/member_community.svg`}:{name:e.name,role:e.jobTitle||"",organisation:e.organization||"",country:e.location&&e.location.country||"",url:`/profiles/${e.id}`,image:e.image&&e.image.thumbnail},KT=({role:e="",organisation:t="",country:n="",maximumCharacters:r=80})=>{const o=e!=="",i=t!=="",s=n!=="";if(!o&&!i&&!s)return"";const a=`${e}${o&&i?` — ${t}`:t}`;let u=`${a}${(o||i)&&s?`, ${n}`:n}`;return u.length>r&&(u=a),u.length>r&&(u=wm(u,r)),u};const aa=({element:e="div",member:t="community",additionalContent:n=!1,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee(),a=ru(t);a.name||(a.name=s.formatMessage({id:`member_${typeof t=="string"?t:"community"}`}));const{name:u,url:f,image:c}=a,h=KT(a),d=n&&n.createdAt?Xb(n.createdAt):!1,l=n&&n.createdAt?Qb(n.createdAt):"";return D.createElement(e,{className:ne("member text-medium",i),children:O.jsxs(zc,{href:f,gtmType:o,gtmContext:r,onClick:p=>{p==null||p.stopPropagation()},children:[O.jsx(oa,{name:u,src:c}),O.jsxs("p",{className:"details",children:[O.jsx("strong",{children:u}),n&&O.jsxs("span",{className:"additional-content",children:[n.createdAt&&d&&O.jsx("span",{className:"date",title:l,"aria-label":l,children:s.formatMessage({id:`dates_${d.path}`},{number:d.number})}),n.didEdit&&O.jsx("em",{children:s.formatMessage({id:"discussion_edited"})})]}),h&&O.jsx("small",{children:h})]})]})})};const yd={small:24,medium:48},Qm=({element:e="div",contributors:{total:t,data:n}={total:void 0,data:[]},styling:{showText:r,size:o,showGap:i,showPlaceholders:s}={showText:!0,size:"medium",showGap:!0,showPlaceholders:!1},cutoff:a=2,className:u=""})=>{const f=Ee();return!n||n.length===0?null:D.createElement(e,{className:ne("contributors",u,o,{"has-gap":i}),children:O.jsxs(O.Fragment,{children:[O.jsx("ul",{children:n.map((c,h)=>{let d,l="";if(h<a){const{name:p="",image:m=""}=ru(c);if(s)return O.jsx(Er,{element:"li",className:"contributor"},h);d=O.jsx(oa,{name:p,src:m,width:yd[o||"medium"],height:yd[o||"medium"]})}else if(h===a){const p=(t||n.length)-a;d=O.jsxs("small",{className:ne({"large-number":p>99}),children:["+",tw(p,0)]}),l="number-left"}return d?O.jsx("li",{className:ne("contributor",l),children:d},h):null})}),r&&O.jsx("span",{className:"label",children:typeof r=="string"?r:n.length===1?typeof n[0]=="string"?f.formatMessage({id:`member_${n[0]}`}):wm(n[0].name||"",20):null})]})})},QT=({children:e,locale:t,messages:n})=>{const r=t||"en",o={...ew[r],...n||{}};return O.jsx(TS,{locale:r,messages:o,children:e})},Fn=D.createContext(null),XT=({children:e,user:t})=>O.jsx(Fn.Provider,{value:t,children:e});const $s="joinCommunityButton",Xm=({isMember:e=!1,isShort:t=!1,functions:{join:n,leave:r}={join:()=>{},leave:()=>{}}})=>{const o=Ee(),i=D.useContext(Fn),s=i&&typeof i.id=="string",[a,u]=D.useState(e),[f,c]=D.useState(e?"joined":"notJoined");D.useEffect(()=>{f==="joining"?c("joined"):f==="leaving"&&c("notJoined")},[a]);const h={},d={};return a&&f!=="leaving"&&(h["data-hover-text"]=o.formatMessage({id:`${$s}_leave`}),h["aria-label"]=o.formatMessage({id:`${$s}_member_aria`}),d["aria-hidden"]="true"),O.jsx(De,{variant:a?"secondary":"primary",size:"medium",styling:{fullWidth:!0},icon:a&&f!=="leaving"?{icon:"tick",position:"left"}:!1,onClick:async l=>{s&&(l.currentTarget.blur(),a?(c("leaving"),typeof r=="function"&&await r()):(c("joining"),typeof n=="function"&&await n()),u(!a))},className:ne("join-community-button",f,{active:f==="joining"}),disabled:!s,...h,children:O.jsx("span",{className:"text",...d,children:o.formatMessage({id:`${$s}${["joining","leaving"].includes(f)?`_${f}`:a?"_member":t?"_short":""}`})})})};const js="communityDetails_",JT=({isMember:e=!1,slug:t,members:{number:n,data:r}={number:void 0,data:[]},className:o="",...i})=>{const s=Ee(),a=n||(r==null?void 0:r.length)||0;return O.jsxs("div",{className:ne("community-details",o),children:[O.jsx(Go,{}),O.jsxs("div",{className:"member-details",children:[O.jsxs("div",{className:"top",children:[O.jsxs("h3",{children:[s.formatMessage({id:`${js}members`}),O.jsx("span",{className:"count",children:a})]}),O.jsx("p",{className:"text-small",children:O.jsx("a",{href:`/communities/${t}/members`,children:s.formatMessage({id:`${js}viewAll`})})})]}),O.jsx(Qm,{contributors:{total:n,data:r!=null&&r.length?r.reverse():[{},{},{},{},{}]},styling:{size:"medium",showGap:!0,showPlaceholders:a===0},cutoff:5})]}),O.jsx(Xm,{isMember:e,...i}),e&&O.jsx(De,{variant:"primary",icon:{icon:"plus"},styling:{fullWidth:!0},children:s.formatMessage({id:`${js}invite`})})]})};const ZT=({breadcrumbs:e,className:t=""})=>{const n=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(Je,{element:"p",children:n.formatMessage({id:"breadcrumbs_label"})}),O.jsx("ul",{className:ne("breadcrumbs text-small",t),children:e.map(({text:r,href:o,current:i=!1},s)=>O.jsxs("li",{children:[i&&O.jsx(Je,{element:"span",children:n.formatMessage({id:"breadcrumbs_currentPage"})}),O.jsx(zc,{href:i?void 0:o,children:r})]},`${window.btoa(r)}_${s}`))})]})};const ex=({options:e,allOption:t=!1,allowMultiple:n=!0,onChange:r=()=>{},className:o=""})=>{const i=Ee(),s=t?[{id:"all",text:typeof t!="boolean"&&t.text||i.formatMessage({id:"filters_all"})},...e]:e,[a,u]=D.useState(t?["all"]:[]),f=(c,h)=>{let d=[];a.includes(c)?d=a.filter(l=>l!==c):c==="all"?d=["all"]:n?d=[...a.filter(l=>l!=="all"),c]:d=[c],u(l=>(r&&typeof r=="function"&&r({current:d,previous:l}),d)),h&&typeof h=="function"&&h()};return O.jsx("ul",{className:ne("filters",o),children:s.map(({id:c,text:h,disabled:d=!1,callback:l=()=>{}})=>{let p={};return d&&(p={disabled:!0,"aria-label":i.formatMessage({id:"filters_disabled"},{name:h})}),O.jsx("li",{children:O.jsx("button",{className:ne(c,{selected:a.includes(c)}),onClick:m=>{m.preventDefault(),m.stopPropagation(),f(c,l)},...p,children:h})},c)})})};const Hs=bc({locale:"en",messages:Vc}),Jm=({page:e=1,length:t=0,limit:n=10,loadNextPage:r=()=>{},icon:o=!1,messages:i={button:Hs.formatMessage({id:"loadMore_button"}),endOfFeed:Hs.formatMessage({id:"loadMore_endOfFeed"}),error:Hs.formatMessage({id:"loadMore_error"})},className:s="",gtmContext:a="LoadMore"})=>{const[u,f]=D.useState(!1),[c,h]=D.useState(!1);if(t<=0||t<n*e)return null;const d=async l=>{try{await r(l)}catch(p){p instanceof Error&&p.message&&p.message.includes("Cannot read items")?h(!0):f(!0)}};return O.jsxs("footer",{className:ne("load-more",s),children:[u&&O.jsx("p",{className:"error",children:i.error}),c?O.jsx("p",{children:i.endOfFeed}):O.jsx(De,{variant:"secondary",icon:o,onClick:d,"data-gtm-event-context":a,"data-gtm-event-type":"load-more-click",className:"gtm-trackable","data-testid":"load-more-button",children:i.button})]})};let Ro=!1;const Zm=({element:e="div",id:t="more-menu",options:n,className:r=""})=>{const o=Ee(),i=D.useRef(null),[s,a]=D.useState(!1),u=f=>{i.current&&f.target instanceof HTMLElement&&!i.current.contains(f.target)&&a(!1)};return D.useEffect(()=>(document.addEventListener("click",u,!0),()=>{document.removeEventListener("click",u,!0)})),D.createElement(e,{ref:i,className:ne("more-menu text-medium",r),children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"ellipsis"},onClick:()=>a(!s),"aria-haspopup":"true","aria-expanded":s,"aria-controls":t,screenreaderText:o.formatMessage({id:"moreMenu"})}),O.jsx("ul",{id:t,hidden:!s,children:n.map(({href:f,onClick:c,text:h,icon:d,...l},p)=>{const m={...l,onClick:E=>{a(!1),typeof c=="function"&&c(E)},onFocus:()=>{Ro&&(clearTimeout(Ro),Ro=!1)},onBlur:()=>{Ro=setTimeout(()=>{a(!1)},100)}};return f&&(m.href=f),O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",icon:d?{icon:d,position:"left"}:!1,...m,children:h})},`${window.btoa(h)}_${p}`)})})]})})};const nu=({variant:e="default",version:t="default",className:n="",...r})=>O.jsx("p",{className:"logo-wrapper",children:O.jsx("a",{className:ne("logo",e,t,n),href:"/home/",...r,children:O.jsx(Je,{children:O.jsx(vr,{id:"apolitical"})})})});const tx={"2-1":901},rx=({layout:e="2-1",hideOnMobile:t=!1,className:n="",children:r})=>{const o=Ji(!0);let i=r;return D.Children.count(r)===1&&(i=D.Children.toArray(r)[0],i.props&&(i=i.props.children)),O.jsx("section",{className:ne("columns",`layout-${e}`,n),children:D.Children.map(i,(s,a)=>t!==!1&&a===t&&o&&o<tx[e]?null:s)})};const qs="cookieBanner_",Gs=["apol-cookie-banner","apolitical-performance-cookie-consent","functional-cookie-consent"],Ws=new Date(Date.now()+12*30*24*60*60*1e3),eg=()=>{const e=Ee(),[t,n,r]=Bd(Gs),[o,i]=D.useState(!t["apol-cookie-banner"]),s=()=>{Gs.forEach(c=>{n(c,!0,{path:"/",expires:Ws,domain:c==="apolitical-performance-cookie-consent"?".apolitical.co":void 0})}),i(!1),window.location.reload()},a=()=>{n("apol-cookie-banner",!0,{path:"/",expires:Ws}),Gs.forEach(c=>{if(c==="apol-cookie-banner"){n(c,!0,{path:"/",expires:Ws});return}r(c)}),i(!1)};if(!o)return null;const u=[{id:"settings",href:"/pages/cookie-policy",gtmType:"policy-page"},{id:"reject",onClick:a,gtmType:"reject-all"},{id:"accept",onClick:s,gtmType:"accepted-all"}],f=[];return u.forEach(c=>{f.push({variant:c.href?"tertiary":"primary",href:c.href,onClick:c.onClick,className:"gtm-trackable","data-gtm-event-context":"cookie-banner","data-gtm-event-type":`cookie-${c.gtmType}-click`,children:e.formatMessage({id:`${qs}buttons_${c.id}`})})}),O.jsxs("aside",{id:"cookie-banner",className:"text-medium",children:[O.jsx("h6",{children:e.formatMessage({id:`${qs}title`})}),O.jsx("p",{children:e.formatMessage({id:`${qs}text`})}),O.jsx(Zi,{buttons:f})]})},ir={platform:{order:["events","courses","qanda","articles"],events:{href:"/events/",gtmType:"events-click"},courses:{href:"/microcourses/",gtmType:"microcourses-click"},qanda:{href:"/questions-answers/",gtmType:"q-and-a-click"},articles:{href:"/solution-articles/",gtmType:"articles-click"}},community:{order:["support","post","join","guidelines"],support:{name:"Support FAQ",href:"/pages/support-faq",gtmType:"support-faq-click"},post:{href:"/pages/post-an-article",gtmType:"post-an-article-click"},join:{href:"/pages/who-can-join-the-community",gtmType:"who-can-join-click"},guidelines:{href:"/pages/values-and-guidelines",gtmType:"guidelines-and-values-click"}},company:{order:["story","team","careers","partner","contact"],story:{href:"/pages/our-story",gtmType:"our-story-click"},team:{href:"/pages/meet-our-team",gtmType:"team-click"},careers:{href:"/pages/careers",gtmType:"careers-click"},partner:{href:"/partnerships/",gtmType:"partner-with-us-click"},contact:{href:"/pages/get-in-touch",gtmType:"contact-click"},child:"legal"},legal:{order:["privacy","terms","cookie","accessibility"],privacy:{href:"https://about.apolitical.co/privacy-policy",gtmType:"privacy-policy-link"},terms:{href:"https://about.apolitical.co/terms-and-conditions",gtmType:"terms-conditions-link"},cookie:{href:"/pages/cookie-policy",gtmType:"cookie-policy-link"},accessibility:{href:"/pages/accessibility-statement",gtmType:"accessibility-link"},text:{order:["dataProtection","euDataProtection"],dataProtection:{email:"dpo@apolitical.co",gtmType:"email-dpo-link"},euDataProtection:{email:"dpo.agl@apolitical.foundation",gtmType:"email-eu-dpo-link"}}},contact:{text:{order:["correspondence","registered","berlin","support","business"],correspondence:{address:!0},registered:{address:!0},berlin:{address:!0},support:{email:"concierge@apolitical.co",gtmType:"concierge-email-click"},business:{email:"hello@apolitical.co",gtmType:"hello-email-click"}}},social:{order:["linkedin","twitter","facebook"],linkedin:{href:"https://www.linkedin.com/company/apolitical"},twitter:{href:"https://twitter.com/apoliticalco"},facebook:{href:"https://www.facebook.com/apoliticalco"}}};const xn="footer_",zo="SiteFooter",vd=({group:e})=>{const t=ir[e].order||[];let n=!1;return"text"in ir[e]&&(n=ir[e].text),O.jsxs(D.Fragment,{children:[O.jsx("p",{className:"pre-title",children:O.jsx(vr,{id:`${xn}${e}`})}),Array.isArray(t)&&t.length>0&&O.jsx("ul",{className:"text-medium",children:t.map(r=>{if(["order","child","text"].includes(r))return null;const{href:o,gtmType:i}=ir[e][r],s={};return["legal"].includes(e)&&(s.target="_blank",s.rel="noopener"),O.jsx("li",{children:O.jsx("a",{href:o,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":i,...s,children:O.jsx(vr,{id:`${xn}${e}_${r}`})})},`${e}_${r}`)})}),typeof n!="boolean"&&"order"in n&&Array.isArray(n.order)&&O.jsx("dl",{className:"text-medium",children:n.order.map(r=>O.jsxs(D.Fragment,{children:[O.jsx("dt",{children:O.jsx(vr,{id:`${xn}${e}_${r}`})}),O.jsxs("dd",{children:[typeof n!="boolean"&&n[r].address&&O.jsx("address",{children:O.jsx(vr,{id:`${xn}${e}_${r}_address`,values:{br:O.jsx("br",{})}})}),typeof n!="boolean"&&n[r].email&&O.jsx("a",{href:`mailto:${n[r].email}`,className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":n[r].gtmType,children:n[r].email})]})]},`dl-${e}-${r}`))})]},e)},iu=()=>O.jsx("div",{id:"footer",children:O.jsxs("div",{className:"wrapper",children:[O.jsx(Cc,{element:"hr"}),O.jsx(nu,{variant:"inverted",version:"full",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"logo-homepage-link"}),O.jsx("footer",{children:["platform","community","company","contact"].map(e=>O.jsxs("div",{className:"group",children:[O.jsx(vd,{group:e}),Object.keys(ir[e]).includes("child")&&O.jsx(vd,{group:ir[e].child})]},e))}),O.jsx("hr",{}),O.jsxs("div",{className:"sub-footer",children:[O.jsx("ul",{children:Array.isArray(ir.social.order)&&ir.social.order.map(e=>{const t=ir.social[e];return O.jsx("li",{className:e,children:O.jsx("a",{href:t.href,target:"_blank",rel:"noopener noreferrer",className:"gtm-trackable","data-gtm-event-context":zo,"data-gtm-event-type":"social-click",children:O.jsx("span",{className:"hidden",children:O.jsx(vr,{id:`${xn}social_${e}`})})})},e)})}),O.jsx("small",{children:O.jsx(vr,{id:`${xn}copyright`,values:{currentYear:new Date().getFullYear()}})})]})]})});const No="emailHelperTextBox_",nx=({type:e,email:t,redirectPath:n,resendVerificationCode:r})=>{const o=Ee(),[i,s]=D.useState({path:`${No}default`,type:"default",link:{},mail:{},error:""}),[a,u]=D.useState(!1),f=D.useCallback(l=>{l.preventDefault(),l.stopPropagation();const p=m=>{s({path:`${No}error_verificationFailedToSend`,type:"error",link:{"data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:E=>f(E),href:"#","data-testid":"send-verify-email-click"},mail:{href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"ErrorVerifyingBox","data-gtm-event-type":"email-concierge-click"},error:m})};if(typeof r!="function"){p(o.formatMessage({id:`${No}error_noFunction`}));return}u(!0),r(t).then(()=>{localStorage.setItem("email",t),window.location.href=n||"/signup/verify-email"}).catch(m=>{p(m.message)}).finally(()=>{u(!1)})},[t,n,r]);D.useEffect(()=>{let l=No,p="default",m={},E={};switch(e){case"gov":l+="autoApproved",p="success";break;case"nonGov":l+="unrecognisedEmail",p="error",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"NonGovEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break;case"pending":l+="pendingApproval",p="error",E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;case"verify":l+="emailUnverified",p="error",m={href:"#","data-gtm-event-context":"VerifyEmailBox","data-gtm-event-type":"SendEmailClick",className:"gtm-trackable",onClick:T=>f(T),"data-testid":"send-verify-email-click"};break;case"exists":l+="emailAlreadyExists",p="error",m={href:"/user-onboarding/login","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"login-click"},E={href:"mailto:concierge@apolitical.co",className:"gtm-trackable","data-gtm-event-context":"EmailExistsBox","data-gtm-event-type":"email-concierge-click"};break;default:l+="default",m={href:"https://about.apolitical.co/who-can-join-the-community","data-gtm-event-context":"DefaultEmailHelperTextBox","data-gtm-event-type":"LearnMoreClick"};break}s({...i,path:l,type:p,link:m,mail:E})},[e]);const c={};return["link","mail"].forEach(l=>{c[l]=Object.keys(i[l]).length?p=>O.jsx("a",{...i[l],children:p}):p=>p}),O.jsx(Gm,{type:i.type,heading:a?!1:o.formatMessage({id:`${i.path}_title`}),children:a?O.jsxs(O.Fragment,{children:[O.jsx(Er,{element:"span"}),O.jsx(Er,{element:"span"})]}):o.formatMessage({id:`${i.path}_text`},{...c,strong:l=>O.jsx("strong",{children:l}),em:l=>O.jsx("em",{children:l}),br:O.jsxs(O.Fragment,{children:[O.jsx("br",{}),O.jsx("br",{})]}),error:i.error})})};const Po="passwordRules_",tg="isMoreThanEightCharacters",rg="includesNumberAndSymbol",ng="includesLowerAndUppercase",ix={[tg]:"8Characters",[rg]:"numberSymbol",[ng]:"lowercaseUppercase"},ox=({matchingRules:e={isMoreThanEightCharacters:!1,includesNumberAndSymbol:!1,includesLowerAndUppercase:!1},className:t=""})=>{const n=Ee();return O.jsxs("aside",{className:ne("password-rules",t),children:[O.jsx("small",{children:n.formatMessage({id:`${Po}intro`})}),O.jsx("ul",{children:[tg,rg,ng].map(r=>O.jsxs("li",{className:ne({matches:e[r]}),children:[O.jsxs(Je,{children:[n.formatMessage({id:`${Po}rule_label`})," "]}),O.jsx("span",{children:n.formatMessage({id:`${Po}rule_${ix[r]}`})}),!e[r]&&O.jsxs(Je,{element:"strong",children:[" "," ",n.formatMessage({id:`${Po}notMet`})]})]},`rule-${r}`))})]})},ax=D.memo(ox);const sx=({text:e={},topRating:t=5,functions:{createRating:n=()=>null,updateRating:r=()=>{},reportError:o=()=>{}},className:i="",hasLoaded:s=!1})=>{const a=Ee(),[u,f]=D.useState({setUp:!1,id:null,rating:null,disabled:!0}),c=async()=>{try{const T=await n();f(_=>({..._,setUp:!0,id:T&&T.id,disabled:!1}))}catch(T){f(_=>({..._,setUp:!0,disabled:!0})),o(T)}};if(D.useEffect(()=>{s&&!u.setUp&&c()},[s]),!s)return O.jsx(Er,{className:"rating-placeholder"});const{id:h,rating:d,disabled:l}=u,p="ratings_",m={text:a.formatMessage({id:`${p}text`}),low:a.formatMessage({id:`${p}low`}),high:a.formatMessage({id:`${p}high`}),success:a.formatMessage({id:`${p}success`}),...e},E=async T=>{if(!(!h||l))try{f(_=>({..._,rating:T,disabled:!0})),await r({id:h,value:T})}catch(_){f(b=>({...b,rating:null})),o(_)}finally{f(_=>({..._,disabled:!1}))}};return O.jsxs("div",{className:ne("rating",i),children:[O.jsx("span",{className:"label",children:m[d?"success":"text"]}),O.jsx("ol",{children:Array.from(new Array(t).keys()).map(T=>{const _=T+1;return O.jsx("li",{className:ne({selected:d&&_<=d}),children:O.jsx(De,{variant:"tertiary",size:"small",icon:{icon:`star${!d||_>d?"_empty":""}`,position:"left",hover:"star"},screenreaderText:`${a.formatMessage({id:`${p}stars`},{number:_,total:t})}${_===1||_===t?` - ${m[_===1?"low":"high"]}`:""}`,onClick:b=>{b.preventDefault(),b.stopPropagation(),E(_)},disabled:l})},`rating-${_}`)})})]})};const ig=({id:e="search",className:t="",handleToggle:n=!1,defaultValue:r="",gtmContext:o="search-bar",gtmEvent:i="form-submission"})=>{const{searchIsOpen:s=!0,isDesktopVersion:a=!1}=n||{},u=Ee(),f=D.useRef(null);Jr(()=>{!n||a||!s||f.current&&f.current.focus()},[s]);const c=h=>{if(h.preventDefault(),h.stopPropagation(),!(!f.current||!f.current.value||f.current.value.length<1))return window&&window.location&&window.location.replace(`/search?search=${encodeURIComponent(f.current.value)}`)};return O.jsx("form",{onSubmit:c,className:ne("search-form gtm-trackable",t),"data-gtm-event-context":o,"data-gtm-event-type":i,children:O.jsx("fieldset",{id:`${e}-form`,hidden:n?!s:!1,role:"search",children:O.jsxs("p",{children:[O.jsx(Je,{element:"label",htmlFor:e,children:u.formatMessage({id:"search_label"})}),O.jsx("input",{ref:f,type:"search",id:e,name:e,defaultValue:r,placeholder:u.formatMessage({id:"search_placeholder"}),onKeyDown:h=>{h.key==="Enter"&&c(h)}}),O.jsx("button",{className:"clear",onClick:h=>{h.preventDefault(),h.stopPropagation(),f.current&&f.current.value&&(f.current.value="")},children:O.jsx(Je,{children:u.formatMessage({id:"search_clear"})})}),O.jsx("button",{className:"search",onClick:c,children:O.jsx(Je,{children:u.formatMessage({id:"search_cta"})})})]})})})};var cx="Expected a function",og="__lodash_hash_undefined__",ag=1/0,ux="[object Function]",lx="[object GeneratorFunction]",fx="[object Symbol]",dx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hx=/^\w*$/,px=/^\./,mx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gx=/[\\^$.*+?()[\]{}|]/g,yx=/\\(\\)?/g,vx=/^\[object .+?Constructor\]$/,_x=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Ex=typeof self=="object"&&self&&self.Object===Object&&self,ou=_x||Ex||Function("return this")();function bx(e,t){return e==null?void 0:e[t]}function wx(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Sx=Array.prototype,Tx=Function.prototype,sg=Object.prototype,Vs=ou["__core-js_shared__"],_d=function(){var e=/[^.]+$/.exec(Vs&&Vs.keys&&Vs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),cg=Tx.toString,au=sg.hasOwnProperty,ug=sg.toString,xx=RegExp("^"+cg.call(au).replace(gx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ed=ou.Symbol,Ox=Sx.splice,Ax=lg(ou,"Map"),Vi=lg(Object,"create"),bd=Ed?Ed.prototype:void 0,wd=bd?bd.toString:void 0;function tn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Cx(){this.__data__=Vi?Vi(null):{}}function Rx(e){return this.has(e)&&delete this.__data__[e]}function Nx(e){var t=this.__data__;if(Vi){var n=t[e];return n===og?void 0:n}return au.call(t,e)?t[e]:void 0}function Px(e){var t=this.__data__;return Vi?t[e]!==void 0:au.call(t,e)}function Ix(e,t){var n=this.__data__;return n[e]=Vi&&t===void 0?og:t,this}tn.prototype.clear=Cx;tn.prototype.delete=Rx;tn.prototype.get=Nx;tn.prototype.has=Px;tn.prototype.set=Ix;function Un(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Lx(){this.__data__=[]}function Mx(e){var t=this.__data__,n=sa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Ox.call(t,n,1),!0}function kx(e){var t=this.__data__,n=sa(t,e);return n<0?void 0:t[n][1]}function Bx(e){return sa(this.__data__,e)>-1}function Fx(e,t){var n=this.__data__,r=sa(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Un.prototype.clear=Lx;Un.prototype.delete=Mx;Un.prototype.get=kx;Un.prototype.has=Bx;Un.prototype.set=Fx;function on(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ux(){this.__data__={hash:new tn,map:new(Ax||Un),string:new tn}}function Dx(e){return ca(this,e).delete(e)}function $x(e){return ca(this,e).get(e)}function jx(e){return ca(this,e).has(e)}function Hx(e,t){return ca(this,e).set(e,t),this}on.prototype.clear=Ux;on.prototype.delete=Dx;on.prototype.get=$x;on.prototype.has=jx;on.prototype.set=Hx;function sa(e,t){for(var n=e.length;n--;)if(Zx(e[n][0],t))return n;return-1}function qx(e,t){t=zx(t,e)?[t]:Vx(t);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Xx(t[n++])];return n&&n==r?e:void 0}function Gx(e){if(!dg(e)||Kx(e))return!1;var t=eO(e)||wx(e)?xx:vx;return t.test(Jx(e))}function Wx(e){if(typeof e=="string")return e;if(cu(e))return wd?wd.call(e):"";var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Vx(e){return fg(e)?e:Qx(e)}function ca(e,t){var n=e.__data__;return Yx(t)?n[typeof t=="string"?"string":"hash"]:n.map}function lg(e,t){var n=bx(e,t);return Gx(n)?n:void 0}function zx(e,t){if(fg(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||cu(e)?!0:hx.test(e)||!dx.test(e)||t!=null&&e in Object(t)}function Yx(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kx(e){return!!_d&&_d in e}var Qx=su(function(e){e=rO(e);var t=[];return px.test(e)&&t.push(""),e.replace(mx,function(n,r,o,i){t.push(o?i.replace(yx,"$1"):r||n)}),t});function Xx(e){if(typeof e=="string"||cu(e))return e;var t=e+"";return t=="0"&&1/e==-ag?"-0":t}function Jx(e){if(e!=null){try{return cg.call(e)}catch{}try{return e+""}catch{}}return""}function su(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(cx);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s),s};return n.cache=new(su.Cache||on),n}su.Cache=on;function Zx(e,t){return e===t||e!==e&&t!==t}var fg=Array.isArray;function eO(e){var t=dg(e)?ug.call(e):"";return t==ux||t==lx}function dg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function tO(e){return!!e&&typeof e=="object"}function cu(e){return typeof e=="symbol"||tO(e)&&ug.call(e)==fx}function rO(e){return e==null?"":Wx(e)}function nO(e,t,n){var r=e==null?void 0:qx(e,t);return r===void 0?n:r}var iO=nO;const hg=jt(iO),Ne={timeouts:{},handlerCalled:{},getIsDesktopVersion:(e,t)=>{const n={navigation:{loggedIn:769,loggedOut:881},search:{loggedIn:961,loggedOut:1121}},r=i=>{const s=`logged${e?"In":"Out"}`;return t>=n[i][s]};let o={};return["navigation","search"].forEach(i=>{o[i]=r(i)}),o},shouldChangeHeaderIsVisible:(e,t,n)=>{Object.values(t).filter(o=>o===!0).length||n([{type:"headerIsVisible",value:e}])},handleMenus:({id:e,value:t,menus:n,dispatch:r})=>{if(n[e]===t||e==="account"&&t===!1&&n.navigation===!0)return;const o=Date.now();if(!t&&Ne.handlerCalled[e]&&o-Ne.handlerCalled[e]<500)return;Ne.handlerCalled[e]=o;let i=[{type:`menus.${e}`,value:t}];t===!0&&Object.keys(n).forEach(s=>{s===e||n[s]===!1||i.push({type:`menus.${s}`,value:!1})}),r(i)},findFirstChild:(e,t,n=!1)=>{if(!e||!e[0])return!1;for(let r=0;r<=e.length;r++){if(!e[r])continue;if(e[r][t]&&(!n||e[r][t].includes(n)))return e[r];if(!t.includes("."))continue;const o=hg(e[r],t);if(!(typeof o>"u")&&(!n||o[t]&&o[t].includes(n)||o.value&&o.value.includes(n)||o.toString().includes(n)))return e[r]}return e[0].children?Ne.findFirstChild(e[0].children,t,n):!1},autoFocus:({menu:e,navigationRef:t,isDesktopVersion:n,focusElements:r,dispatch:o})=>{if(!t.current||!t.current.children)return;const i=n?"desktop":"default";if(r[e][i]){r[e][i].focus();return}let s,a;switch(e){case"navigation":if(n){const u=Ne.findFirstChild(t.current.children,"attributes.aria-controls","navigation");s=Ne.findFirstChild(u.children,"href")}else s=Ne.findFirstChild(t.current.children,"href");s||(s=t.current);break;case"account":if(a=Ne.findFirstChild(t.current.children,"className","account"),!a||!a.children)return;s=Ne.findFirstChild(a.children,"href");break;default:return}s&&(o([{type:`focusElements.${e}.${i}`,value:s}]),s.focus())},events:{onClick:(e,{id:t,callback:n,isOpen:r})=>{e.target&&e.target.attributes&&e.target.attributes.href||(e.preventDefault(),e.stopPropagation(),clearTimeout(Ne.timeouts[t]),n(t,!r))},onFocus:({id:e})=>{clearTimeout(Ne.timeouts[e])},onMouseEnter:({id:e,callback:t})=>{clearTimeout(Ne.timeouts[e]),t(e,!0)},onBlur:({id:e,callback:t})=>{Ne.timeouts[e]=setTimeout(()=>{t(e,!1)},250)}}},zi={order:["home","topics","partners","account"],home:{href:"/home/",hasVariantText:!0,gtmType:"homepage-click"},topics:{order:["explore","topics"],menuId:"navigation",explore:{order:["events","courses","q-and-a","articles"],events:{href:"/events/",className:"icon events"},courses:{href:"/microcourses/",gtmType:"microcourses-click",className:"icon courses"},"q-and-a":{href:"/questions-answers/",className:"icon q-and-a"},articles:{href:"/solution-articles/",gtmType:"articles-click",className:"icon articles"}},topics:{order:["climate","cities-and-local-government","digital-and-data","education","equity-justice-and-inclusion","health-and-social-care","innovation","leadership-and-skills","life-in-government","policymaking","transport-and-infrastructure","work-and-the-economy"],className:"columns",climate:{href:"/topics/climate/"},"cities-and-local-government":{href:"/topics/cities-and-local-government/"},"digital-and-data":{href:"/topics/digital-and-data/"},education:{href:"/topics/education/"},"equity-justice-and-inclusion":{href:"/topics/equity-justice-and-inclusion/"},"health-and-social-care":{href:"/topics/health-and-social-care/"},innovation:{href:"/topics/innovation/"},"leadership-and-skills":{href:"/topics/leadership-and-skills/"},"life-in-government":{href:"/topics/life-in-government/"},policymaking:{href:"/topics/policymaking/"},"transport-and-infrastructure":{href:"/topics/transport-and-infrastructure/"},"work-and-the-economy":{href:"/topics/work-and-the-economy/"}}},partners:{href:"/partnerships/",onlyShow:"logged-out"},account:{order:["profile","settings","log-out"],className:"account",onlyShow:"logged-in",doTrack:!1,profile:{href:"/profiles/me"},settings:{href:"/profiles/me/manage-account"},"log-out":{href:"/user-onboarding/logout",className:"divider"}},buttons:{order:["login","signup"],login:{href:"/user-onboarding/login"},signup:{href:"/signup/?ref=header-banner",props:{variant:"primary"}}}},Yo=({id:e,isLoggedIn:t=!1,isDesktopVersion:n=!1,menus:r={},callback:o=()=>{},doTrack:i=null})=>{const s=Ee(),a=hg(zi,e);if(!a||a.onlyShow&&(a.onlyShow==="logged-in"&&!t||a.onlyShow==="logged-out"&&t))return null;const u="doTrack"in a,f=i===null?u?a.doTrack:!0:i,c=e.includes("buttons.");let h=`header_${e.replaceAll(".","_")}`;a.hasVariantText&&(h+=`_logged${t?"In":"Out"}`);let d=!1;if(a.href){let _=a.gtmType||`${e}-click`;if(_.includes(".")){const b=_.split("."),A=b[b.length-2];_=`${A==="topics"?`${A}-`:""}${b[b.length-1]}`}d={href:a.href,role:"menuitem"},f&&(d={...d,className:"gtm-trackable","data-gtm-event-type":_,"data-gtm-event-context":"HeaderButtons"}),c&&(d={...d,variant:"secondary",size:{mobile:"small",881:"large"},...a.props||{}})}const l=a.order&&a.order[0]&&a[a.order[0]],p=l&&a[a.order[0]].order,m=d&&typeof window<"u"&&window.location&&window.location.pathname===a.href;let E={},T={};if(l){const _=a.menuId||e,b={onClick:A=>Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]}),onFocus:()=>Ne.events.onFocus({id:_}),onBlur:()=>Ne.events.onBlur({id:_,callback:o}),onMouseLeave:()=>Ne.events.onBlur({id:_,callback:o}),onMouseEnter:()=>Ne.events.onMouseEnter({id:_,callback:o})};n&&(p&&(E={...b,onKeyPress:A=>{A.key==="Enter"&&Ne.events.onClick(A,{id:_,callback:o,isOpen:r[_]})},tabIndex:"0","aria-haspopup":!0,"aria-expanded":r[_],"aria-controls":_}),T={hidden:_ in r?!r[_]:!0}),p||(T={...T,...b})}return O.jsxs("li",{className:ne({[a.className]:a.className,"has-submenu":l,parent:p,active:m}),role:"none",...E,children:[d?D.createElement(c?De:"a",d,s.formatMessage({id:h})):s.formatMessage({id:h}),a.order&&O.jsx("ul",{...T,children:a.order.map(_=>{if(!a[_])return null;const b={isLoggedIn:t,isDesktopVersion:n,menus:r,callback:o,doTrack:u?f:null};return a[_].order?O.jsxs("li",{className:ne({[a[_].className]:a[_].className}),children:[s.formatMessage({id:`${h}_${_}`}),O.jsx("ul",{children:a[_].order.map(A=>O.jsx(Yo,{id:`${e}.${_}.${A}`,...b},A))})]},_):O.jsx(Yo,{id:`${e}.${_}`,...b},_)})})]},e)};const oO={height:67,height_desktop:83},uu=()=>{const e=Ee(),t=D.useContext(Fn),n=Ji(!0,!0),r=t&&typeof t.id=="string",o=D.useMemo(()=>Ne.getIsDesktopVersion(r,n),[r,n]),[i,s]=D.useReducer(Kb,{headerIsVisible:!0,menus:{navigation:!1,search:!1,account:!1},focusElements:{navigation:{desktop:!1,default:!1},account:{desktop:!1,default:!1}}}),{headerIsVisible:a,menus:u,focusElements:f}=i;Pp({scrollPosition:oO[`height${o.navigation?"_desktop":""}`],callbacks:{scrollUp:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!0,u,s)},scrollDown:()=>{!o&&u.navigation||Ne.shouldChangeHeaderIsVisible(!1,u,s)}}});const c=(d,l)=>{Ne.handleMenus({id:d,value:l,menus:u,dispatch:s})},h=D.useRef(null);return Jr(()=>{u.navigation&&Ne.autoFocus({menu:"navigation",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.navigation]),Jr(()=>{u.account&&Ne.autoFocus({menu:"account",navigationRef:h,isDesktopVersion:o.navigation,focusElements:f,dispatch:s})},[u.account]),t&&t.isLoading?null:O.jsxs(O.Fragment,{children:[O.jsxs("nav",{id:"header",className:ne({"logged-in":r,"logged-out":!r,visible:a}),children:[O.jsx(Je,{element:"a",href:"#content-of-page",children:e.formatMessage({id:"header_skip"})}),O.jsx(nu,{}),!o.navigation&&O.jsx("button",{className:"menu-button gtm-trackable",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("navigation",!u.navigation)},"data-gtm-event-type":"open-tab-menu-click","data-gtm-event-context":"HeaderLeft-Chevron","aria-haspopup":"true","aria-expanded":u.navigation,"aria-controls":"navigation",children:O.jsx(Je,{children:e.formatMessage({id:`header_menu_${u.navigation?"hide":"show"}`})})}),O.jsx("ul",{ref:h,id:"navigation",hidden:o.navigation||u.account?!1:!u.navigation,role:"menu","data-showing":!o.navigation&&u.account?"account":"default",children:zi.order.map(d=>O.jsx(Yo,{id:d,isLoggedIn:r,isDesktopVersion:o.navigation,menus:{navigation:u.navigation,account:u.account},callback:c},d))}),!o.search&&O.jsx("button",{className:"search toggle-search-button",onClick:d=>{d.preventDefault(),d.stopPropagation(),c("search",!u.search)},"aria-haspopup":"true","aria-expanded":u.search,"aria-controls":"search-form",children:O.jsx(Je,{children:e.formatMessage({id:`header_search_${u.search?"hide":"show"}`})})}),O.jsx(ig,{id:"global-search",handleToggle:{searchIsOpen:u.search,isDesktopVersion:o.search},gtmContext:"search-bar-header",gtmEvent:"form-submission"}),r?O.jsxs("button",{className:"account-button",onClick:d=>Ne.events.onClick(d,{id:"account",callback:c,isOpen:u.account}),onMouseEnter:()=>Ne.events.onMouseEnter({id:"account",callback:c}),onMouseLeave:()=>Ne.events.onBlur({id:"account",callback:c}),"aria-haspopup":"true","aria-expanded":u.account,"aria-controls":"navigation",children:[O.jsx(Je,{children:e.formatMessage({id:`header_account_${u.account?"hide":"show"}`})}),O.jsx(oa,{name:t&&t.name||"",src:t&&t.image&&t.image.thumbnail||""})]}):O.jsx("ul",{className:"sign-in-buttons",children:zi.buttons.order.map(d=>O.jsx(Yo,{id:`buttons.${d}`},d))})]}),O.jsx("hr",{id:"content-of-page"}),O.jsx("div",{className:ne("overlay",{open:u.navigation||u.account||!o.search&&u.search})})]})},aO=D.createContext(null),zs={didCatch:!1,error:null};class sO extends D.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=zs}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var n,r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:i,reason:"imperative-api"}),this.setState(zs)}}componentDidCatch(t,n){var r,o;(r=(o=this.props).onError)===null||r===void 0||r.call(o,t,n)}componentDidUpdate(t,n){const{didCatch:r}=this.state,{resetKeys:o}=this.props;if(r&&n.error!==null&&cO(t.resetKeys,o)){var i,s;(i=(s=this.props).onReset)===null||i===void 0||i.call(s,{next:o,prev:t.resetKeys,reason:"keys"}),this.setState(zs)}}render(){const{children:t,fallbackRender:n,FallbackComponent:r,fallback:o}=this.props,{didCatch:i,error:s}=this.state;let a=t;if(i){const u={error:s,resetErrorBoundary:this.resetErrorBoundary};if(D.isValidElement(o))a=o;else if(typeof n=="function")a=n(u);else if(r)a=D.createElement(r,u);else throw s}return D.createElement(aO.Provider,{value:{didCatch:i,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function cO(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((n,r)=>!Object.is(n,t[r]))}const uO=()=>{const e=Ee();return O.jsxs(O.Fragment,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:O.jsx(Hm,{variant:"error",text:e.formatMessage({id:"pageLayout_error"})})}),O.jsx(iu,{})]})},lO=({children:e,reportError:t,showFooter:n=!0,background:r="default",className:o="",locale:i="en"})=>{const s=Hp(e,{locale:i});return O.jsx(sO,{onError:t,fallback:O.jsx(uO,{}),children:O.jsx(D.Suspense,{fallback:O.jsx(Ym,{layout:"overview-page"}),children:O.jsx("div",{id:"wrapper",className:ne(o,{[r]:r!=="default"}),children:O.jsxs(Hg,{children:[O.jsx(uu,{}),O.jsx("div",{className:"content",children:s}),n&&O.jsx(iu,{}),O.jsx(eg,{})]})})})})},Sd={default:"tags_",headerTopics:"header_topics_topics_"},Ys={topic:{Climate:"climate",CitiesAndLocalGovernment:"cities-and-local-government",DigitalAndData:"digital-and-data",Education:"education",EquityJusticeAndInclusion:"equity-justice-and-inclusion",HealthAndSocialCare:"health-and-social-care",Innovation:"innovation",LeadershipAndSkills:"leadership-and-skills",LifeInGovernment:"life-in-government",Policymaking:"policymaking",TransportAndInfrastructure:"transport-and-infrastructure",WorkAndTheEconomy:"work-and-the-economy"},"from the community":"community"},fO={getTagDetails:e=>{if(e.includes("topic_")){if(e=Ys.topic[e.replace("topic_","")],e){const t=zi.topics.topics[e].href;return t?{id:e,href:t,text:`${Sd.headerTopics}${e}`}:null}return null}return Ys[e]?(e=Ys[e],{id:e,text:`${Sd.default}${e}`}):null}};const dO=({tags:e=[],color:t="default",forceOneLine:n=!1,canHaveLinks:r=!0,className:o="",gtmType:i="tag-click",gtmContext:s="tags"})=>{const a=Ee();if(!e||e.length<1)return null;const u=[];return e.forEach(f=>{if(!f)return;const c=fO.getTagDetails(f);c&&u.push(c)}),u.length<1?null:O.jsx("ul",{className:ne("tags text-small",t,o,{"one-line":n}),children:u.map(f=>{const c=a.formatMessage({id:f.text});return O.jsx("li",{children:f.href&&r?O.jsx("a",{href:f.href,className:"gtm-trackable","data-gtm-event-type":i,"data-gtm-event-context":s,children:c}):c},f.id)})})};const hO=({members:{total:e,data:t=[]},pagination:n,gtmContext:r="member",gtmType:o="member-click",className:i=""})=>{const s=Ee();return t.length===0?null:(e||(e=t.length),O.jsxs("div",{className:ne("members-list",i),children:[O.jsxs("h1",{children:[s.formatMessage({id:"membersList"}),O.jsx("span",{className:"count",children:e})]}),O.jsx("ul",{children:t.map((a,u)=>O.jsxs("li",{children:[O.jsx(aa,{member:a,gtmContext:r,gtmType:o}),a.isAdmin&&O.jsx(Wm,{children:s.formatMessage({id:"membersList_admin"})})]},u))}),n&&O.jsx(Jm,{...n,icon:{icon:"arrow-down",position:"right"},gtmContext:r})]}))},pO={showThread:!1,showForm:!1},lu=D.createContext(pO),mO=({children:e})=>{const[t,n]=D.useState({showThread:!1,showForm:!1});return O.jsx(lu.Provider,{value:{...t,updateConversation:n},children:e})};function Ac(){return Ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ac.apply(this,arguments)}function gO(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var yO=D.useLayoutEffect,vO=function(t){var n=Oe.useRef(t);return yO(function(){n.current=t}),n},Td=function(t,n){if(typeof t=="function"){t(n);return}t.current=n},_O=function(t,n){var r=D.useRef();return D.useCallback(function(o){t.current=o,r.current&&Td(r.current,null),r.current=n,n&&Td(n,o)},[n])},xd={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},EO=function(t){Object.keys(xd).forEach(function(n){t.style.setProperty(n,xd[n],"important")})},Od=EO,it=null,Ad=function(t,n){var r=t.scrollHeight;return n.sizingStyle.boxSizing==="border-box"?r+n.borderSize:r-n.paddingSize};function bO(e,t,n,r){n===void 0&&(n=1),r===void 0&&(r=1/0),it||(it=document.createElement("textarea"),it.setAttribute("tabindex","-1"),it.setAttribute("aria-hidden","true"),Od(it)),it.parentNode===null&&document.body.appendChild(it);var o=e.paddingSize,i=e.borderSize,s=e.sizingStyle,a=s.boxSizing;Object.keys(s).forEach(function(d){var l=d;it.style[l]=s[l]}),Od(it),it.value=t;var u=Ad(it,e);it.value=t,u=Ad(it,e),it.value="x";var f=it.scrollHeight-o,c=f*n;a==="border-box"&&(c=c+o+i),u=Math.max(c,u);var h=f*r;return a==="border-box"&&(h=h+o+i),u=Math.min(h,u),[u,f]}var Cd=function(){},wO=function(t,n){return t.reduce(function(r,o){return r[o]=n[o],r},{})},SO=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],TO=!!document.documentElement.currentStyle,xO=function(t){var n=window.getComputedStyle(t);if(n===null)return null;var r=wO(SO,n),o=r.boxSizing;if(o==="")return null;TO&&o==="border-box"&&(r.width=parseFloat(r.width)+parseFloat(r.borderRightWidth)+parseFloat(r.borderLeftWidth)+parseFloat(r.paddingRight)+parseFloat(r.paddingLeft)+"px");var i=parseFloat(r.paddingBottom)+parseFloat(r.paddingTop),s=parseFloat(r.borderBottomWidth)+parseFloat(r.borderTopWidth);return{sizingStyle:r,paddingSize:i,borderSize:s}},OO=xO;function pg(e,t,n){var r=vO(n);Oe.useLayoutEffect(function(){var o=function(s){return r.current(s)};if(e)return e.addEventListener(t,o),function(){return e.removeEventListener(t,o)}},[])}var AO=function(t){pg(window,"resize",t)},CO=function(t){pg(document.fonts,"loadingdone",t)},RO=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],NO=function(t,n){var r=t.cacheMeasurements,o=t.maxRows,i=t.minRows,s=t.onChange,a=s===void 0?Cd:s,u=t.onHeightChange,f=u===void 0?Cd:u,c=gO(t,RO),h=c.value!==void 0,d=Oe.useRef(null),l=_O(d,n),p=Oe.useRef(0),m=Oe.useRef(),E=function(){var b=d.current,A=r&&m.current?m.current:OO(b);if(A){m.current=A;var w=bO(A,b.value||b.placeholder||"x",i,o),N=w[0],F=w[1];p.current!==N&&(p.current=N,b.style.setProperty("height",N+"px","important"),f(N,{rowHeight:F}))}},T=function(b){h||E(),a(b)};return Oe.useLayoutEffect(E),AO(E),CO(E),Oe.createElement("textarea",Ac({},c,{onChange:T,ref:l}))},PO=Oe.forwardRef(NO);let Io=null;const pt="discussion_form_",mg=({content:e={type:"response",slugs:{}},meta:t={isLoading:!1,isInWrapper:!1,isEditing:!1},inputRef:n,maxLength:r=5e4,minRows:o=4,forceShow:i={cancel:!1,error:!1},functions:s={create:()=>{},handleSaveEdit:()=>{},handleCancel:()=>{},callback:()=>{},props:{create:{projectNames:["questions-answers"]}}},gtmContext:a="DiscussionForm"})=>{var B,G;const u=Ee(),f=D.useContext(Fn),[c,h]=D.useState(t.isEditing&&t.isEditing.text||""),[d,l]=D.useState(i.error||!1),[p,m]=D.useState(!1),E=D.useRef(null);if(n||(n=E),t.isLoading)return O.jsx(Er,{className:"discussion-card discussion-form","data-testid":"loading-placeholder"});const T=W=>{const V=W.target.value;h(V);let H;!f||!f.id?H=rr(u.formatMessage,`${pt}error_loggedOut`,e.type,"action"):V.length>=r&&(H=`${pt}error_tooLong`),H?l(H):d&&l(!1)};let _=`${e.type}-form`;if(e.type==="response"||e.type==="reply"){const W=e.type==="response"?((B=e.slugs)==null?void 0:B.question)||"":((G=e.slugs)==null?void 0:G.answer)||"";W&&(_=`${_}-${W.slice(-15)}`)}const b=async W=>{var H;if(W.preventDefault(),W.stopPropagation(),w)return;Io&&clearTimeout(Io),m("submitting");const V=window.location.pathname;try{let Y;switch(e.type){case"post":Y=await s.create({content:c});break;case"question":Y=await s.create({title:c,authorId:f&&f.id,...(H=s.props)==null?void 0:H.create});break;case"response":Y=await s.create({question:e.slugs.question},{body:c,authorId:f&&f.id,contentPath:V});break;case"reply":Y=await s.create({question:e.slugs.question,answer:e.slugs.answer},{body:c,authorId:f&&f.id,contentPath:V});break;default:break}await Jb(1e3),s.callback&&await s.callback(Y),Io=setTimeout(()=>{h(""),m("submitted"),A()},500)}catch(Y){const oe=Y;let Q=`${pt}error`;oe.message.includes("entry already exists")&&(Q=rr(u.formatMessage,`${pt}error_alreadyExists`,e.type,"action")),oe.message.includes("429")?Q=rr(u.formatMessage,`${pt}error_tooMany`,e.type,"action"):oe.message.includes("400")&&(Q=`${pt}error`),l(Q),A()}},A=()=>{Io=setTimeout(()=>{l(!1),m(!1)},5e3)},w=!c||!rw(c),N=p==="submitting",F=[];return(t.isEditing&&!N||i.cancel)&&F.push({variant:"secondary",size:{mobile:"small",600:"medium"},onClick:s.handleCancel,className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`cancel-${e.type}-click`,disabled:!i.cancel&&(!f||!f.id||!c),children:u.formatMessage({id:`${pt}cancel`})}),F.push({variant:"primary",size:{mobile:"small",600:"medium"},onClick:W=>{if(t.isEditing){m("submitting"),s.handleSaveEdit&&s.handleSaveEdit(E.current&&"value"in E.current?E.current.value:"");return}b(W)},className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":`${t.isEditing?"save":"submit"}-${e.type}-click`,"data-testid":"save-button",disabled:!f||!f.id||w||N||t.isEditing&&c===t.isEditing.text,children:u.formatMessage({id:`${pt}${N?t.isEditing?"saving":"posting":t.isEditing?"save":"post"}`})}),O.jsxs("form",{id:_,className:ne("discussion-card discussion-form",{"no-styling":t.isInWrapper&&t.isEditing}),"data-testid":`discussion-${e.type}-form`,children:[!t.isEditing&&["question"].includes(e.type)&&O.jsx("h2",{children:rr(u.formatMessage,`${pt}title`,e.type,"action")}),O.jsx(aa,{member:f||"community",gtmContext:a,gtmType:"profile-click"}),O.jsx(Je,{element:"label",showOnFocus:!1,htmlFor:`${_}-input`,children:rr(u.formatMessage,`${pt}label`,e.type,"action")}),O.jsx(PO,{ref:n,id:`${_}-input`,name:e.type,placeholder:rr(u.formatMessage,`${pt}placeholder`,e.type,"action"),onChange:T,value:c,maxLength:r,"aria-invalid":!!d,"aria-errormessage":"error-message",minRows:o,autoFocus:!!t.isEditing}),O.jsx("small",{children:rr(u.formatMessage,`${pt}explainer`,e.type,"action",{a:W=>O.jsx("a",{href:"https://about.apolitical.co/q-and-a-community-guidelines",className:"gtm-trackable","data-gtm-event-context":a,"data-gtm-event-type":"community-guidelines-link",children:W})})}),O.jsx(Zi,{buttons:F}),p==="submitted"&&O.jsx(Vo,{className:"success","data-testid":"success",children:rr(u.formatMessage,`${pt}success`,e.type,"action")}),d&&O.jsx(Vo,{id:"error-message",className:"error","data-testid":"error",children:i.error?i.error:typeof d=="string"?d.includes(" ")?d:u.formatMessage({id:d},{action:u.formatMessage({id:`discussion_action_${e.type}`}),maxLength:r}):d})]})},IO=({question:e,answer:t,reply:n})=>({...e&&{questionSlug:e},...t&&{answerSlug:t},...n&&{replySlug:n}}),LO=(e,t=10)=>!e||e.length===0?[]:e.reverse().slice(0,t);let qi=!1;const Ks=()=>{qi!==!1&&(clearTimeout(qi),qi=!1)},gg=({element:e="div",likes:t=0,peopleWhoLiked:n=!1,isShort:r=!0,userLiked:o=!1,content:i={type:"reply",slugs:{}},canLike:s=!0,functions:{createLike:a=()=>{},deleteLike:u=()=>{}}={}})=>{const f=Ee();D.useEffect(()=>{l(o)},[o]);const[c,h]=D.useState(t),[d,l]=D.useState(o),[p,m]=D.useState(!1),[E,T]=D.useState(!1),_=D.useMemo(()=>LO(n),[n]),b=window.location.pathname,A=N=>{if(N.preventDefault(),N.stopPropagation(),T(!1),qi)return Ks(),!1;if(Ks(),p||!s)return!1;qi=setTimeout(w,350)},w=async()=>{if(Ks(),p||!s)return!1;let N=d?c-1:c+1;N<0&&(N=0),m(!0),h(N),l(!d);try{if(i&&i.slugs){const F=IO(i.slugs);d?await u(F):await a(F,{contentPath:b})}}catch{h(t),l(o)}finally{m(!1)}};return D.createElement(e,{className:ne("likes-wrapper text-medium action-button",{"show-spinner":p,"is-liked":d,disabled:!s}),onClick:A,onMouseEnter:()=>{T(!0)},onMouseLeave:()=>{T(!1)},onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},children:O.jsxs(O.Fragment,{children:[O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:d?"heart":"heart_empty",animate:"bounce"},className:ne({"do-animation":d&&!o}),screenreaderText:s?f.formatMessage({id:`discussion_${i.type}_likes_${d?"unlike":"like"}`}):!1,onClick:A,disabled:!s,"aria-hidden":!s,"data-testid":"like-button","data-gtm-event-context":"Likes","data-gtm-event-type":`like-${i.type}-click`}),O.jsx("span",{className:"number-of-likes","data-testid":"number-of-likes",children:f.formatMessage({id:`discussion_likes${r?"_short":""}`},{number:c})}),n&&O.jsx(Em,{isOpen:E,isLoading:n.length===0,children:n.length&&O.jsx("ul",{children:_.map(N=>typeof N=="string"||!N.name?null:O.jsx("li",{children:N.name},N.id||window.btoa(N.name)))})})]})})};var Ko={exports:{}};Ko.exports;(function(e,t){var n=200,r="__lodash_hash_undefined__",o=1,i=2,s=9007199254740991,a="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",c="[object Boolean]",h="[object Date]",d="[object Error]",l="[object Function]",p="[object GeneratorFunction]",m="[object Map]",E="[object Number]",T="[object Null]",_="[object Object]",b="[object Promise]",A="[object Proxy]",w="[object RegExp]",N="[object Set]",F="[object String]",B="[object Symbol]",G="[object Undefined]",W="[object WeakMap]",V="[object ArrayBuffer]",H="[object DataView]",Y="[object Float32Array]",oe="[object Float64Array]",Q="[object Int8Array]",M="[object Int16Array]",z="[object Int32Array]",Z="[object Uint8Array]",de="[object Uint8ClampedArray]",X="[object Uint16Array]",K="[object Uint32Array]",se=/[\\^$.*+?()[\]{}|]/g,ue=/^\[object .+?Constructor\]$/,Fe=/^(?:0|[1-9]\d*)$/,J={};J[Y]=J[oe]=J[Q]=J[M]=J[z]=J[Z]=J[de]=J[X]=J[K]=!0,J[a]=J[u]=J[V]=J[c]=J[H]=J[h]=J[d]=J[l]=J[m]=J[E]=J[_]=J[w]=J[N]=J[F]=J[W]=!1;var re=typeof ce=="object"&&ce&&ce.Object===Object&&ce,Pe=typeof self=="object"&&self&&self.Object===Object&&self,Ae=re||Pe||Function("return this")(),st=t&&!t.nodeType&&t,ut=st&&!0&&e&&!e.nodeType&&e,Et=ut&&ut.exports===st,te=Et&&re.process,Ye=function(){try{return te&&te.binding&&te.binding("util")}catch{}}(),je=Ye&&Ye.isTypedArray;function bt(y,x){for(var R=-1,j=y==null?0:y.length,fe=0,ae=[];++R<j;){var pe=y[R];x(pe,R,y)&&(ae[fe++]=pe)}return ae}function Gt(y,x){for(var R=-1,j=x.length,fe=y.length;++R<j;)y[fe+R]=x[R];return y}function Rt(y,x){for(var R=-1,j=y==null?0:y.length;++R<j;)if(x(y[R],R,y))return!0;return!1}function mt(y,x){for(var R=-1,j=Array(y);++R<y;)j[R]=x(R);return j}function Sr(y){return function(x){return y(x)}}function wt(y,x){return y.has(x)}function gt(y,x){return y==null?void 0:y[x]}function He(y){var x=-1,R=Array(y.size);return y.forEach(function(j,fe){R[++x]=[fe,j]}),R}function St(y,x){return function(R){return y(x(R))}}function nt(y){var x=-1,R=Array(y.size);return y.forEach(function(j){R[++x]=j}),R}var Ke=Array.prototype,Tr=Function.prototype,S=Object.prototype,g=Ae["__core-js_shared__"],v=Tr.toString,C=S.hasOwnProperty,P=function(){var y=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return y?"Symbol(src)_1."+y:""}(),U=S.toString,q=RegExp("^"+v.call(C).replace(se,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),le=Et?Ae.Buffer:void 0,we=Ae.Symbol,Se=Ae.Uint8Array,Te=S.propertyIsEnumerable,he=Ke.splice,lt=we?we.toStringTag:void 0,ar=Object.getOwnPropertySymbols,xr=le?le.isBuffer:void 0,Wt=St(Object.keys,Object),Or=xt(Ae,"DataView"),Vt=xt(Ae,"Map"),Ar=xt(Ae,"Promise"),Cr=xt(Ae,"Set"),Rr=xt(Ae,"WeakMap"),Nt=xt(Object,"create"),an=Qe(Or),Tt=Qe(Vt),Dn=Qe(Ar),$n=Qe(Cr),jn=Qe(Rr),sn=we?we.prototype:void 0,Nr=sn?sn.valueOf:void 0;function Ue(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function Pr(){this.__data__=Nt?Nt(null):{},this.size=0}function Ir(y){var x=this.has(y)&&delete this.__data__[y];return this.size-=x?1:0,x}function zt(y){var x=this.__data__;if(Nt){var R=x[y];return R===r?void 0:R}return C.call(x,y)?x[y]:void 0}function cn(y){var x=this.__data__;return Nt?x[y]!==void 0:C.call(x,y)}function Hn(y,x){var R=this.__data__;return this.size+=this.has(y)?0:1,R[y]=Nt&&x===void 0?r:x,this}Ue.prototype.clear=Pr,Ue.prototype.delete=Ir,Ue.prototype.get=zt,Ue.prototype.has=cn,Ue.prototype.set=Hn;function qe(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function qn(){this.__data__=[],this.size=0}function Gn(y){var x=this.__data__,R=ur(x,y);if(R<0)return!1;var j=x.length-1;return R==j?x.pop():he.call(x,R,1),--this.size,!0}function Wn(y){var x=this.__data__,R=ur(x,y);return R<0?void 0:x[R][1]}function Vn(y){return ur(this.__data__,y)>-1}function Lr(y,x){var R=this.__data__,j=ur(R,y);return j<0?(++this.size,R.push([y,x])):R[j][1]=x,this}qe.prototype.clear=qn,qe.prototype.delete=Gn,qe.prototype.get=Wn,qe.prototype.has=Vn,qe.prototype.set=Lr;function et(y){var x=-1,R=y==null?0:y.length;for(this.clear();++x<R;){var j=y[x];this.set(j[0],j[1])}}function zn(){this.size=0,this.__data__={hash:new Ue,map:new(Vt||qe),string:new Ue}}function Yn(y){var x=ft(this,y).delete(y);return this.size-=x?1:0,x}function Kn(y){return ft(this,y).get(y)}function Qn(y){return ft(this,y).has(y)}function Xn(y,x){var R=ft(this,y),j=R.size;return R.set(y,x),this.size+=R.size==j?0:1,this}et.prototype.clear=zn,et.prototype.delete=Yn,et.prototype.get=Kn,et.prototype.has=Qn,et.prototype.set=Xn;function sr(y){var x=-1,R=y==null?0:y.length;for(this.__data__=new et;++x<R;)this.add(y[x])}function un(y){return this.__data__.set(y,r),this}function cr(y){return this.__data__.has(y)}sr.prototype.add=sr.prototype.push=un,sr.prototype.has=cr;function ct(y){var x=this.__data__=new qe(y);this.size=x.size}function Mr(){this.__data__=new qe,this.size=0}function Jn(y){var x=this.__data__,R=x.delete(y);return this.size=x.size,R}function Zn(y){return this.__data__.get(y)}function ei(y){return this.__data__.has(y)}function ti(y,x){var R=this.__data__;if(R instanceof qe){var j=R.__data__;if(!Vt||j.length<n-1)return j.push([y,x]),this.size=++R.size,this;R=this.__data__=new et(j)}return R.set(y,x),this.size=R.size,this}ct.prototype.clear=Mr,ct.prototype.delete=Jn,ct.prototype.get=Zn,ct.prototype.has=ei,ct.prototype.set=ti;function ri(y,x){var R=lr(y),j=!R&&mn(y),fe=!R&&!j&&dr(y),ae=!R&&!j&&!fe&&Dr(y),pe=R||j||fe||ae,me=pe?mt(y.length,String):[],Me=me.length;for(var be in y)(x||C.call(y,be))&&!(pe&&(be=="length"||fe&&(be=="offset"||be=="parent")||ae&&(be=="buffer"||be=="byteLength"||be=="byteOffset")||Pt(be,Me)))&&me.push(be);return me}function ur(y,x){for(var R=y.length;R--;)if(pn(y[R][0],x))return R;return-1}function kr(y,x,R){var j=x(y);return lr(y)?j:Gt(j,R(y))}function Yt(y){return y==null?y===void 0?G:T:lt&&lt in Object(y)?Ot(y):hn(y)}function ln(y){return yt(y)&&Yt(y)==a}function fn(y,x,R,j,fe){return y===x?!0:y==null||x==null||!yt(y)&&!yt(x)?y!==y&&x!==x:dn(y,x,R,j,fn,fe)}function dn(y,x,R,j,fe,ae){var pe=lr(y),me=lr(x),Me=pe?u:dt(y),be=me?u:dt(x);Me=Me==a?_:Me,be=be==a?_:be;var Ge=Me==_,Xe=be==_,Be=Me==be;if(Be&&dr(y)){if(!dr(x))return!1;pe=!0,Ge=!1}if(Be&&!Ge)return ae||(ae=new ct),pe||Dr(y)?Br(y,x,R,j,fe,ae):ai(y,x,Me,R,j,fe,ae);if(!(R&o)){var We=Ge&&C.call(y,"__wrapped__"),$e=Xe&&C.call(x,"__wrapped__");if(We||$e){var It=We?y.value():y,At=$e?x.value():x;return ae||(ae=new ct),fe(It,At,R,j,ae)}}return Be?(ae||(ae=new ct),Fr(y,x,R,j,fe,ae)):!1}function ni(y){if(!yn(y)||ui(y))return!1;var x=gn(y)?q:ue;return x.test(Qe(y))}function ii(y){return yt(y)&&Ur(y.length)&&!!J[Yt(y)]}function oi(y){if(!li(y))return Wt(y);var x=[];for(var R in Object(y))C.call(y,R)&&R!="constructor"&&x.push(R);return x}function Br(y,x,R,j,fe,ae){var pe=R&o,me=y.length,Me=x.length;if(me!=Me&&!(pe&&Me>me))return!1;var be=ae.get(y);if(be&&ae.get(x))return be==x;var Ge=-1,Xe=!0,Be=R&i?new sr:void 0;for(ae.set(y,x),ae.set(x,y);++Ge<me;){var We=y[Ge],$e=x[Ge];if(j)var It=pe?j($e,We,Ge,x,y,ae):j(We,$e,Ge,y,x,ae);if(It!==void 0){if(It)continue;Xe=!1;break}if(Be){if(!Rt(x,function(At,Qt){if(!wt(Be,Qt)&&(We===At||fe(We,At,R,j,ae)))return Be.push(Qt)})){Xe=!1;break}}else if(!(We===$e||fe(We,$e,R,j,ae))){Xe=!1;break}}return ae.delete(y),ae.delete(x),Xe}function ai(y,x,R,j,fe,ae,pe){switch(R){case H:if(y.byteLength!=x.byteLength||y.byteOffset!=x.byteOffset)return!1;y=y.buffer,x=x.buffer;case V:return!(y.byteLength!=x.byteLength||!ae(new Se(y),new Se(x)));case c:case h:case E:return pn(+y,+x);case d:return y.name==x.name&&y.message==x.message;case w:case F:return y==x+"";case m:var me=He;case N:var Me=j&o;if(me||(me=nt),y.size!=x.size&&!Me)return!1;var be=pe.get(y);if(be)return be==x;j|=i,pe.set(y,x);var Ge=Br(me(y),me(x),j,fe,ae,pe);return pe.delete(y),Ge;case B:if(Nr)return Nr.call(y)==Nr.call(x)}return!1}function Fr(y,x,R,j,fe,ae){var pe=R&o,me=Kt(y),Me=me.length,be=Kt(x),Ge=be.length;if(Me!=Ge&&!pe)return!1;for(var Xe=Me;Xe--;){var Be=me[Xe];if(!(pe?Be in x:C.call(x,Be)))return!1}var We=ae.get(y);if(We&&ae.get(x))return We==x;var $e=!0;ae.set(y,x),ae.set(x,y);for(var It=pe;++Xe<Me;){Be=me[Xe];var At=y[Be],Qt=x[Be];if(j)var ro=pe?j(Qt,At,Be,x,y,ae):j(At,Qt,Be,y,x,ae);if(!(ro===void 0?At===Qt||fe(At,Qt,R,j,ae):ro)){$e=!1;break}It||(It=Be=="constructor")}if($e&&!It){var Lt=y.constructor,hr=x.constructor;Lt!=hr&&"constructor"in y&&"constructor"in x&&!(typeof Lt=="function"&&Lt instanceof Lt&&typeof hr=="function"&&hr instanceof hr)&&($e=!1)}return ae.delete(y),ae.delete(x),$e}function Kt(y){return kr(y,vn,si)}function ft(y,x){var R=y.__data__;return ci(x)?R[typeof x=="string"?"string":"hash"]:R.map}function xt(y,x){var R=gt(y,x);return ni(R)?R:void 0}function Ot(y){var x=C.call(y,lt),R=y[lt];try{y[lt]=void 0;var j=!0}catch{}var fe=U.call(y);return j&&(x?y[lt]=R:delete y[lt]),fe}var si=ar?function(y){return y==null?[]:(y=Object(y),bt(ar(y),function(x){return Te.call(y,x)}))}:_n,dt=Yt;(Or&&dt(new Or(new ArrayBuffer(1)))!=H||Vt&&dt(new Vt)!=m||Ar&&dt(Ar.resolve())!=b||Cr&&dt(new Cr)!=N||Rr&&dt(new Rr)!=W)&&(dt=function(y){var x=Yt(y),R=x==_?y.constructor:void 0,j=R?Qe(R):"";if(j)switch(j){case an:return H;case Tt:return m;case Dn:return b;case $n:return N;case jn:return W}return x});function Pt(y,x){return x=x??s,!!x&&(typeof y=="number"||Fe.test(y))&&y>-1&&y%1==0&&y<x}function ci(y){var x=typeof y;return x=="string"||x=="number"||x=="symbol"||x=="boolean"?y!=="__proto__":y===null}function ui(y){return!!P&&P in y}function li(y){var x=y&&y.constructor,R=typeof x=="function"&&x.prototype||S;return y===R}function hn(y){return U.call(y)}function Qe(y){if(y!=null){try{return v.call(y)}catch{}try{return y+""}catch{}}return""}function pn(y,x){return y===x||y!==y&&x!==x}var mn=ln(function(){return arguments}())?ln:function(y){return yt(y)&&C.call(y,"callee")&&!Te.call(y,"callee")},lr=Array.isArray;function fr(y){return y!=null&&Ur(y.length)&&!gn(y)}var dr=xr||di;function fi(y,x){return fn(y,x)}function gn(y){if(!yn(y))return!1;var x=Yt(y);return x==l||x==p||x==f||x==A}function Ur(y){return typeof y=="number"&&y>-1&&y%1==0&&y<=s}function yn(y){var x=typeof y;return y!=null&&(x=="object"||x=="function")}function yt(y){return y!=null&&typeof y=="object"}var Dr=je?Sr(je):ii;function vn(y){return fr(y)?ri(y):oi(y)}function _n(){return[]}function di(){return!1}e.exports=fi})(Ko,Ko.exports);var MO=Ko.exports;const kO=jt(MO);const yg=({element:e="section",children:t,className:n,...r})=>D.createElement(e,{className:ne("modal",n),children:typeof t=="string"?O.jsx("p",{children:t}):t,...r});const vg=({id:e="content-overlay",isOpen:t=!1,maxWidth:n,functions:{onOpen:r=()=>{},onClose:o=()=>{}}={},forceShow:{error:i=!1}={},title:s,children:a,buttons:u,className:f="",gtmContext:c="Modal"})=>{const h=Ee(),[d,l]=D.useState(t),p=E=>{l(E),E?(r(),document.body.classList.add("has-overlay")):(o(),document.body.classList.remove("has-overlay"))};D.useEffect(()=>{p(t)},[t]);const m=n?{"--max-width":`${n/16}rem`}:{};return O.jsx("div",{className:ne("overlay",{open:d}),children:O.jsx(yg,{id:e,className:ne("overlay-modal",f,{"has-max-width":n}),hidden:!d,style:m,children:t&&O.jsxs(O.Fragment,{children:[O.jsxs("div",{className:"top",children:[O.jsx("h2",{children:s}),O.jsx(De,{variant:"tertiary",size:"medium",icon:{icon:"close"},onClick:()=>p(!1),className:"gtm-trackable","data-gtm-event-type":"close-modal-click","data-gtm-event-context":c,screenreaderText:h.formatMessage({id:"overlay_button"})})]}),O.jsx(Go,{}),a,u&&O.jsxs("div",{className:"bottom",children:[O.jsx(Go,{}),O.jsx(Zi,{buttons:u})]}),i&&O.jsx(Vo,{className:"error",children:i})]})})})},_g=(e,t)=>({"aria-haspopup":!0,"aria-expanded":t,"aria-controls":e}),Rd=e=>{const t={};return Object.keys(e).forEach(n=>{t[`${n}Slug`]=e[n]}),t};const tr="discussion_",BO=({element:e="div",content:t,isLoading:n=!1,originalAuthorId:r,functions:{content:{createContent:o,deleteContent:i,updateContent:s}={createContent:()=>{},deleteContent:()=>{},updateContent:()=>{}},likes:{createLike:a,deleteLike:u}={createLike:()=>{},deleteLike:()=>{}},comments:{openComments:f}={openComments:()=>{}}},links:c={},className:h,gtmContext:d="DiscussionAnswer",locale:l="en",children:p})=>{const m=Ee(),E=D.useContext(Fn),T=D.useContext(lu),[_,b]=D.useState({body:t&&t.body||"",isEditing:!1,didEdit:t&&t.isEdited||!1}),[A,w]=D.useState(!1),[N,F]=D.useState("");if(D.useEffect(()=>{b({..._,body:t&&t.body||"",didEdit:t&&t.isEdited||!1})},[t.isEdited]),n||!t||t.type==="answer"&&(!t.slugs||!t.slugs.question))return O.jsx(Er,{className:"discussion-card discussion-post"});const{author:B,canLike:G,createdAt:W,id:V,likes:H=0,userLiked:Y,comments:oe=0}=t,Q=E&&E.id&&typeof B!="string"&&B.id&&B.id===E.id||!1,M=typeof G=="boolean"?G:!Q,z=async K=>{K||(K=""),F("");try{if(!kO(K,_.body)){const se=t.type==="question"?{title:K}:{body:K};await s(Rd(t.slugs),se)}b({body:K,isEditing:!1,didEdit:!0})}catch{F(`${tr}form_error`)}},Z=()=>{T&&T.updateConversation&&T.updateConversation({showThread:!0,showForm:!0}),setTimeout(()=>{const se=`reply-form-${(t.type==="answer"?t.slug:t.slugs.answer||"").toLowerCase().slice(-15)}`,ue=document.getElementById(se),Fe=document.getElementById(`${se}-input`);Fe&&Fe.focus(),ue&&ue.scrollIntoView({behavior:"smooth"})},0)},de=()=>{try{i(Rd(t.slugs))}catch{F("delete-error")}},X=[{text:m.formatMessage({id:`${tr}moreMenu_report`}),href:`mailto:community@apolitical.co?subject=${encodeURI(m.formatMessage({id:`${tr}report_subject`}))}&body=${encodeURI(m.formatMessage({id:`${tr}report_body`},{contentType:t.type||"",contentSlug:t.slug||"",contentUrl:`${window.origin}${typeof process<"u"&&process.env.PUBLIC_URL||""}/${t.slugs.question||""}`}))}`,icon:"flag"}];return Q&&X.push({text:m.formatMessage({id:`${tr}moreMenu_edit`}),onClick:()=>b({..._,isEditing:!0}),icon:"pencil-paper",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`edit-${t.type}-click`},{text:m.formatMessage({id:`${tr}moreMenu_delete`}),onClick:K=>{K.preventDefault(),K.stopPropagation(),w(!0)},icon:"trash",className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`delete-${t.type}-click`,..._g(`delete-${t.slug}-modal`,A)}),D.createElement(e,{className:ne("discussion-post",h),"data-testid":`discussion-${t.type}-thread`,children:O.jsxs(O.Fragment,{children:[O.jsxs("div",{id:V||t.slug,className:ne("discussion-card",t.type,{editing:_.isEditing,"has-link":c.post&&!_.isEditing}),onClick:K=>{!c.post||_.isEditing||(K.preventDefault(),K.stopPropagation(),window.location.href=c.post)},children:[!_.isEditing&&O.jsx(aa,{member:B,additionalContent:{createdAt:W,didEdit:_.didEdit},className:typeof B!="string"&&B.id===r?"highlighted":"",gtmContext:d,gtmType:"profile-click"}),_.isEditing?O.jsx(mg,{content:{type:t.type,slugs:t.slugs},meta:{isLoading:n,isInWrapper:!0,isEditing:{text:_.body}},maxLength:t.type==="question"?250:5e4,forceShow:{error:N!==""&&N!=="delete-error"?m.formatMessage({id:N},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},functions:{create:o,handleSaveEdit:z,handleCancel:()=>{F(""),b({..._,isEditing:!1})}},gtmContext:`${d}Form`}):c.post?O.jsx("a",{href:c.post,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":"title-click",children:O.jsx(xc,{options:{overrides:{a:null}},children:_.body})}):O.jsx(xc,{options:{wrapper:t.type==="question"?"h1":D.Fragment,forceWrapper:t.type==="question",forceInline:t.type==="question",forceBlock:t.type!=="question"},children:_.body}),!_.isEditing&&O.jsxs("ul",{className:ne("actions text-medium",t.type),"data-testid":`${t.type}-actions`,children:[O.jsx(gg,{element:"li",likes:H,isShort:!1,userLiked:Y,content:{type:t.type,slugs:t.slugs},canLike:M,functions:{createLike:a,deleteLike:u}}),t.type==="question"&&O.jsxs("li",{className:"action-button",onClick:K=>{K.preventDefault(),K.stopPropagation(),c.comments&&(window.location.href=c.comments),typeof f=="function"&&f()},children:[O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},icon:{icon:"speech-bubble_square_thick"},href:c.comments?c.comments:!1,onClick:c.comments||typeof f!="function"?!1:f,className:"gtm-trackable","data-gtm-event-context":d,"data-gtm-event-type":`answer-${t.type}-click`,screenreaderText:m.formatMessage({id:`${tr}comments_screenReader`},{count:oe})}),O.jsx("span",{children:m.formatMessage({id:`${tr}comments`},{count:oe})})]}),(t.type==="answer"||t.type==="reply")&&O.jsx("li",{children:O.jsx(De,{variant:"tertiary",size:"medium",styling:{muted:!0},onClick:Z,children:m.formatMessage({id:`${tr}reply`})})}),O.jsx(Zm,{element:"li",id:`more-${t.slug}`,options:X})]})]}),p,O.jsx(vg,{id:`delete-${t.slug}-modal`,isOpen:A,functions:{onOpen:()=>{},onClose:()=>w(!1)},forceShow:{error:N==="delete-error"?m.formatMessage({id:"discussion_delete_error"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}):!1},title:m.formatMessage({id:"discussion_delete_title"},{action:m.formatMessage({id:`discussion_action_${t.type}`})}),buttons:[{variant:"secondary",onClick:()=>w(!1),children:m.formatMessage({id:"discussion_delete_cancel"})},{variant:"primary",className:"destructive",onClick:de,children:m.formatMessage({id:"discussion_delete_delete"})}],gtmContext:`${t.type.charAt(0).toUpperCase()}${t.type.slice(1)}:${t.slug}`,children:O.jsx(vr,{id:"discussion_delete_text",values:{p:K=>O.jsx("p",{children:K}),action:m.formatMessage({id:`discussion_action_${t.type}`})}})})]})})};const Qs="discussion_responses_",FO=({type:e="answer",responses:t=0})=>{const n=Ee();return O.jsxs("div",{className:"responses-heading",children:[O.jsx("h3",{children:n.formatMessage({id:`${Qs}title`},{action:n.formatMessage({id:`${Qs}${e}`}),count:t})}),t===0&&O.jsx("p",{children:rr(n.formatMessage,`${Qs}empty`,e,e)})]})};const UO=({isOpen:e=!1,count:t=0,children:n})=>{const r=Ee(),o=D.useRef(null),[i,s]=D.useState(e),[a,u]=D.useState("closed");D.useEffect(()=>{const d=o.current;if(d)return d.addEventListener("transitionend",f),()=>{d.removeEventListener("transitionend",f)}},[]),Jr(()=>{a==="closed"&&!i||u(["opening","open"].includes(a)?"ready-to-close":"opening")},[i]),D.useEffect(()=>{a==="ready-to-close"&&u("closing")},[a]);const f=({propertyName:d})=>{d==="max-height"&&u(l=>l==="opening"?"open":l==="closing"?"closed":l)},c=["opening","open"].includes(a),h=Hp(n,{element:"li"});return O.jsxs("div",{className:"thread-wrapper",children:[O.jsx(De,{variant:"secondary",size:"small",styling:{muted:!0},icon:{icon:`arrow_corner-down_${c?"left":"right"}`},onClick:()=>{s(!i)},children:r.formatMessage({id:`discussion_thread_${c?"hide":"show"}`},{count:t})}),O.jsx("ul",{ref:o,className:ne("thread",a),hidden:!i,children:h})]})};exports.ASSETS_BUCKET=Wo;exports.BannerSection=NS;exports.Breadcrumbs=ZT;exports.Button=De;exports.ButtonWrapper=Zi;exports.CollapsibleSection=Zc;exports.Columns=rx;exports.CommunityDetails=JT;exports.Contributors=Qm;exports.ConversationContext=lu;exports.CookieBanner=eg;exports.DiscussionConversation=mO;exports.DiscussionForm=mg;exports.DiscussionLikes=gg;exports.DiscussionPost=BO;exports.DiscussionThread=UO;exports.Divider=Go;exports.DownloadSection=OS;exports.EmailHelperTextBox=nx;exports.EmptyStateBox=Hm;exports.Filters=ex;exports.Footer=iu;exports.FullWidthSection=Jc;exports.Header=uu;exports.HelperTextBox=Gm;exports.HiddenFromScreenReaders=Cc;exports.HideShowTextBox=FT;exports.HighlightedTextBox=or;exports.IntlProvider=QT;exports.JoinButton=Xm;exports.Link=zc;exports.LoadMore=Jm;exports.LoadingBlock=zT;exports.LoadingPlaceholder=Er;exports.LoadingState=Ym;exports.Logo=nu;exports.LogoSection=AS;exports.MarkdownText=xc;exports.MarketingBox=PS;exports.Member=aa;exports.MembersList=hO;exports.Modal=yg;exports.MoreMenu=Zm;exports.NUMBER_OF_USERS=LS;exports.Overlay=vg;exports.PageLayout=lO;exports.PasswordRules=ax;exports.Pill=Wm;exports.ProfilePicture=oa;exports.ProgressBar=Vm;exports.Rating=sx;exports.ResponsesHeading=FO;exports.ResponsiveImage=qp;exports.SearchForm=ig;exports.StatusBanner=Vo;exports.Tags=dO;exports.Tooltip=Em;exports.UserContext=Fn;exports.UserProvider=XT;exports.VisuallyHidden=Je;exports.addAriaProps=_g;exports.getMember=ru;exports.headerData=zi;exports.useEffectAfterMount=Jr;exports.useFeatureFlag=qE;exports.useScreenWidth=Ji;exports.useScrollListener=Pp;exports.useScrollToHash=WE;